2020-01-17 07:43:10 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.dms">
|
|
|
|
</vn-watcher>
|
2020-09-17 18:12:52 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="DmsTypes"
|
|
|
|
data="dmsTypes"
|
|
|
|
order="name">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="Companies"
|
|
|
|
data="companies"
|
|
|
|
order="code">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="Warehouses"
|
|
|
|
data="warehouses"
|
|
|
|
order="name">
|
|
|
|
</vn-crud-model>
|
2020-01-17 07:43:10 +00:00
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
ng-submit="$ctrl.onSubmit()"
|
|
|
|
class="vn-ma-md"
|
|
|
|
enctype="multipart/form-data">
|
|
|
|
<div class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
2020-02-28 06:17:19 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="Thermograph"
|
|
|
|
ng-model="$ctrl.dms.thermographId"
|
|
|
|
url="TravelThermographs"
|
|
|
|
where="{travelFk: null}"
|
|
|
|
show-field="thermographFk"
|
|
|
|
value-field="thermographFk">
|
2020-05-27 11:11:41 +00:00
|
|
|
<tpl-item>
|
|
|
|
{{thermographFk}}
|
|
|
|
</tpl-item>
|
|
|
|
<append>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="add_circle"
|
|
|
|
vn-tooltip="New thermograph"
|
|
|
|
ng-click="$ctrl.onAddThermographClick($event)"
|
|
|
|
vn-acl="buyer"
|
|
|
|
vn-acl-action="remove">
|
|
|
|
</vn-icon-button>
|
|
|
|
</append>
|
2020-02-28 06:17:19 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-textfield vn-one
|
|
|
|
label="State"
|
|
|
|
ng-model="$ctrl.dms.state"
|
|
|
|
rule>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-one
|
|
|
|
label="Reference"
|
|
|
|
ng-model="$ctrl.dms.reference"
|
|
|
|
rule>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="Type"
|
|
|
|
ng-model="$ctrl.dms.dmsTypeId"
|
2020-09-17 18:12:52 +00:00
|
|
|
data="dmsTypes"
|
2020-02-28 06:17:19 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2020-01-17 07:43:10 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="Company"
|
|
|
|
ng-model="$ctrl.dms.companyId"
|
2020-09-17 18:12:52 +00:00
|
|
|
data="companies"
|
2020-01-17 07:43:10 +00:00
|
|
|
show-field="code"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="Warehouse"
|
|
|
|
ng-model="$ctrl.dms.warehouseId"
|
2020-09-17 18:12:52 +00:00
|
|
|
data="warehouses"
|
2020-01-17 07:43:10 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textarea vn-one vn-focus
|
|
|
|
label="Description"
|
|
|
|
ng-model="$ctrl.dms.description"
|
|
|
|
rule>
|
|
|
|
</vn-textarea>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-file
|
|
|
|
vn-one
|
|
|
|
label="File"
|
|
|
|
ng-model="$ctrl.dms.files"
|
|
|
|
accept="{{$ctrl.allowedContentTypes}}"
|
|
|
|
multiple="true">
|
|
|
|
<append>
|
|
|
|
<vn-icon vn-none
|
|
|
|
color-marginal
|
|
|
|
title="{{$ctrl.contentTypesInfo}}"
|
|
|
|
icon="info">
|
|
|
|
</vn-icon>
|
|
|
|
</append>
|
|
|
|
</vn-input-file>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Upload"></vn-submit>
|
|
|
|
<vn-button ui-sref="travel.card.thermograph.index" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</div>
|
|
|
|
</form>
|
2020-05-27 11:11:41 +00:00
|
|
|
<!-- Create thermograph dialog -->
|
2020-05-27 12:34:34 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="modelsModel"
|
|
|
|
url="Thermographs/getThermographModels"
|
|
|
|
data="thermographModels">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
|
|
|
vn-id="temperaturesModel"
|
|
|
|
url="TravelThermographs/getThermographTemperatures"
|
|
|
|
data="thermographTemperatures">
|
|
|
|
</vn-crud-model>
|
2020-05-27 11:11:41 +00:00
|
|
|
<vn-dialog class="edit"
|
|
|
|
vn-id="newThermographDialog"
|
|
|
|
on-accept="$ctrl.onNewThermographAccept()"
|
|
|
|
message="New thermograph">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
required="true"
|
|
|
|
label="Identifier"
|
|
|
|
ng-model="$ctrl.newThermograph.thermographId"
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
required="true"
|
|
|
|
label="Model"
|
|
|
|
ng-model="$ctrl.newThermograph.model"
|
2020-05-27 12:34:34 +00:00
|
|
|
data="thermographModels"
|
2020-05-27 11:11:41 +00:00
|
|
|
show-field="value"
|
|
|
|
value-field="value">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
required="true"
|
|
|
|
label="Warehouse"
|
|
|
|
ng-model="$ctrl.newThermograph.warehouseId"
|
|
|
|
url="Warehouses"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
required="true"
|
|
|
|
label="Temperature"
|
|
|
|
ng-model="$ctrl.newThermograph.temperature"
|
2020-05-27 12:34:34 +00:00
|
|
|
data="thermographTemperatures"
|
2020-05-27 11:11:41 +00:00
|
|
|
show-field="value"
|
|
|
|
value-field="value">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Create</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|