2020-09-21 12:10:15 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
2019-11-07 10:19:05 +00:00
|
|
|
url="Companies"
|
|
|
|
data="companiesData"
|
|
|
|
order="code">
|
|
|
|
</vn-crud-model>
|
2020-09-17 18:12:52 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="Samples/visible"
|
|
|
|
data="samplesVisible"
|
|
|
|
order="description">
|
|
|
|
</vn-crud-model>
|
2018-07-31 09:08:22 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="ClientSamples"
|
2018-07-31 09:08:22 +00:00
|
|
|
data="$ctrl.clientSample"
|
2020-03-09 08:00:03 +00:00
|
|
|
insert-mode="true"
|
|
|
|
form="form">
|
2018-07-31 09:08:22 +00:00
|
|
|
</vn-watcher>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="Companies"
|
|
|
|
data="companiesData"
|
|
|
|
order="code">
|
|
|
|
</vn-crud-model>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-07-31 09:08:22 +00:00
|
|
|
<vn-horizontal>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-textfield
|
2019-11-04 12:55:20 +00:00
|
|
|
label="Recipient"
|
2020-02-18 10:14:02 +00:00
|
|
|
ng-model="$ctrl.clientSample.recipient"
|
|
|
|
info="Its only used when sample is sent">
|
2019-11-04 12:55:20 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
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"
|
2020-02-26 13:30:30 +00:00
|
|
|
fields="['code','hasCompany', 'hasPreview']"
|
2020-09-17 18:12:52 +00:00
|
|
|
data="samplesVisible"
|
2018-07-31 09:08:22 +00:00
|
|
|
show-field="description"
|
|
|
|
label="Sample">
|
|
|
|
</vn-autocomplete>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-autocomplete
|
2019-11-07 10:19:05 +00:00
|
|
|
ng-model="$ctrl.companyId"
|
2020-02-26 13:30:30 +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"
|
|
|
|
label="Company"
|
|
|
|
ng-if="sampleType.selection.hasCompany">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Send"></vn-submit>
|
2020-02-26 13:30:30 +00:00
|
|
|
<vn-button ng-if="sampleType.selection.hasPreview"
|
|
|
|
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-11 11:26:22 +00:00
|
|
|
<tpl-body class="client-sample-dialog">
|
2019-11-06 07:20:45 +00:00
|
|
|
<div class="loading">
|
|
|
|
<vn-spinner enable="true"></vn-spinner>
|
|
|
|
</div>
|
|
|
|
</tpl-body>
|
2018-07-31 09:08:22 +00:00
|
|
|
</vn-dialog>
|