2023-02-28 06:49:34 +00:00
|
|
|
<div class="vn-w-md" ng-show="$ctrl.currentPDA">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
label="Current PDA"
|
|
|
|
ng-model="$ctrl.currentPDA.description"
|
|
|
|
disabled="true">
|
|
|
|
<append>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="delete"
|
|
|
|
vn-tooltip="Deallocate PDA"
|
|
|
|
ng-click="$ctrl.deallocatePDA()"
|
2023-02-28 11:46:48 +00:00
|
|
|
vn-acl="hr, productionAssi">
|
2023-02-28 06:49:34 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
</append>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
</div>
|
|
|
|
<form name="form" ng-show="!$ctrl.currentPDA" ng-submit="$ctrl.allocatePDA()" class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
2023-02-28 11:46:48 +00:00
|
|
|
vn-acl="hr, productionAssi"
|
2023-02-28 06:49:34 +00:00
|
|
|
ng-model="$ctrl.newPDA"
|
|
|
|
url="DeviceProductions"
|
|
|
|
fields="['id', 'modelFk', 'serialNumber']"
|
|
|
|
where="{'stateFk': 'idle'}"
|
|
|
|
label="New PDA"
|
|
|
|
order="id"
|
|
|
|
value-field="id"
|
|
|
|
show-field="serialNumber">
|
|
|
|
<tpl-item>
|
2023-04-12 08:02:06 +00:00
|
|
|
<div>
|
|
|
|
ID: {{id}}
|
|
|
|
</div>
|
2023-04-19 07:54:54 +00:00
|
|
|
<div class="text-caption text-grey">
|
2023-04-12 08:02:06 +00:00
|
|
|
{{modelFk}}, {{serialNumber}}
|
|
|
|
</div>
|
2023-02-28 06:49:34 +00:00
|
|
|
</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
disabled="!$ctrl.newPDA"
|
|
|
|
label="Assign">
|
|
|
|
</vn-submit>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|