2020-01-17 07:43:10 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.dms">
|
|
|
|
</vn-watcher>
|
|
|
|
<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"
|
|
|
|
url="DmsTypes"
|
|
|
|
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"
|
|
|
|
url="Companies"
|
|
|
|
show-field="code"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="Warehouse"
|
|
|
|
ng-model="$ctrl.dms.warehouseId"
|
|
|
|
url="Warehouses"
|
|
|
|
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 -->
|
|
|
|
<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"
|
|
|
|
url="Thermographs/getThermographModels"
|
|
|
|
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"
|
|
|
|
url="TravelThermographs/getThermographTemperatures"
|
|
|
|
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>
|