2019-10-24 22:53:53 +00:00
|
|
|
<mg-ajax path="ClientSamples" options="vnPost"></mg-ajax>
|
2019-11-07 10:19:05 +00:00
|
|
|
<vn-crud-model auto-load="true"
|
|
|
|
url="Companies"
|
|
|
|
data="companiesData"
|
|
|
|
order="code">
|
|
|
|
</vn-crud-model>
|
2018-07-31 09:08:22 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.clientSample"
|
|
|
|
form="form"
|
|
|
|
save="post">
|
|
|
|
</vn-watcher>
|
2018-12-14 11:56:21 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-07-31 09:08:22 +00:00
|
|
|
<vn-horizontal>
|
2019-11-04 12:55:20 +00:00
|
|
|
<vn-textfield vn-one
|
|
|
|
label="Recipient"
|
|
|
|
ng-model="$ctrl.clientSample.recipient">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one vn-id="sampleType"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.clientSample.typeFk"
|
2018-07-31 09:08:22 +00:00
|
|
|
model="ClientSample.typeFk"
|
2018-10-18 07:24:20 +00:00
|
|
|
fields="['code','hasCompany']"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Samples/visible"
|
2018-07-31 09:08:22 +00:00
|
|
|
show-field="description"
|
|
|
|
value-field="id"
|
|
|
|
label="Sample">
|
|
|
|
</vn-autocomplete>
|
2019-11-04 12:55:20 +00:00
|
|
|
<vn-autocomplete vn-one
|
2019-11-07 10:19:05 +00:00
|
|
|
ng-model="$ctrl.companyId"
|
2018-07-31 09:08:22 +00:00
|
|
|
model="ClientSample.companyFk"
|
2019-11-07 10:19:05 +00:00
|
|
|
data="companiesData"
|
2018-07-31 09:08:22 +00:00
|
|
|
show-field="code"
|
|
|
|
value-field="id"
|
|
|
|
label="Company"
|
|
|
|
ng-if="sampleType.selection.hasCompany">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Send"></vn-submit>
|
2018-10-17 07:28:38 +00:00
|
|
|
<vn-button label="Preview" ng-click="$ctrl.showPreview()"></vn-button>
|
2018-07-31 09:08:22 +00:00
|
|
|
<vn-button ui-sref="client.card.sample.index" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="show-preview"
|
|
|
|
on-open="$ctrl.onPreviewOpen()">
|
2019-11-06 07:20:45 +00:00
|
|
|
<tpl-body>
|
|
|
|
<div class="loading">
|
|
|
|
<vn-spinner enable="true"></vn-spinner>
|
|
|
|
</div>
|
|
|
|
</tpl-body>
|
2018-07-31 09:08:22 +00:00
|
|
|
</vn-dialog>
|