2019-11-22 09:42:05 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2023-05-29 13:21:37 +00:00
|
|
|
url="WorkerDms/{{$ctrl.$params.id}}/filter"
|
2020-04-03 15:52:47 +00:00
|
|
|
link="{worker: $ctrl.$params.id}"
|
2019-11-22 09:42:05 +00:00
|
|
|
limit="20"
|
|
|
|
data="$ctrl.workerDms"
|
|
|
|
order="dmsFk DESC"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-w-lg">
|
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="dmsFk" shrink>Id</vn-th>
|
2021-02-05 11:09:48 +00:00
|
|
|
<vn-th field="hardCopyNumber" shrink number>Order</vn-th>
|
2019-11-22 09:42:05 +00:00
|
|
|
<vn-th field="reference" shrink>Reference</vn-th>
|
|
|
|
<vn-th expand>Description</vn-th>
|
|
|
|
<vn-th field="hasFile" shrink>Original</vn-th>
|
2020-09-03 13:11:16 +00:00
|
|
|
<vn-th shrink>File</vn-th>
|
2021-08-15 06:35:14 +00:00
|
|
|
<vn-th field="created">Created</vn-th>
|
2019-11-22 09:42:05 +00:00
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="document in $ctrl.workerDms">
|
|
|
|
<vn-td number shrink>{{::document.dmsFk}}</vn-td>
|
2021-02-05 11:09:48 +00:00
|
|
|
<vn-td shrink number>
|
|
|
|
<span class="chip" title="{{::document.hardCopyNumber}}"
|
|
|
|
ng-class="{'message': document.hardCopyNumber}">
|
|
|
|
{{::document.hardCopyNumber}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-04-03 15:52:47 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<span title="{{::document.reference}}">
|
|
|
|
{{::document.reference}}
|
2019-11-22 09:42:05 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td expand>
|
2020-04-03 15:52:47 +00:00
|
|
|
<span title="{{::document.description}}">
|
|
|
|
{{::document.description}}
|
2019-11-22 09:42:05 +00:00
|
|
|
</span>
|
2020-09-03 13:11:16 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
2023-05-29 13:21:37 +00:00
|
|
|
<vn-check
|
2021-02-05 11:09:48 +00:00
|
|
|
ng-model="document.hasFile"
|
2020-09-03 13:11:16 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2019-11-22 09:42:05 +00:00
|
|
|
<vn-td shrink>
|
2020-06-12 12:28:29 +00:00
|
|
|
<span title="{{'Download file' | translate}}" class="link"
|
2023-05-29 13:21:37 +00:00
|
|
|
ng-click="$ctrl.downloadFile(document.dmsFk, document.isDocuware)">
|
2020-06-12 12:28:29 +00:00
|
|
|
{{::document.file}}
|
|
|
|
</span>
|
2019-11-22 09:42:05 +00:00
|
|
|
</vn-td>
|
2021-08-15 06:35:14 +00:00
|
|
|
<vn-td shrink-datetime>
|
2020-04-03 15:52:47 +00:00
|
|
|
{{::document.created | date:'dd/MM/yyyy HH:mm'}}
|
2019-11-22 09:42:05 +00:00
|
|
|
</vn-td>
|
2023-05-30 13:34:11 +00:00
|
|
|
<vn-td expand>
|
2020-06-12 12:28:29 +00:00
|
|
|
<vn-icon-button title="{{'Download file' | translate}}"
|
|
|
|
icon="cloud_download"
|
2023-05-29 13:21:37 +00:00
|
|
|
ng-click="$ctrl.downloadFile(document.dmsFk, document.isDocuware)">
|
2020-06-12 12:28:29 +00:00
|
|
|
</vn-icon-button>
|
2020-12-18 16:23:04 +00:00
|
|
|
<vn-icon-button ui-sref="worker.card.dms.edit({dmsId: {{::document.dmsFk}}})"
|
2019-11-22 09:42:05 +00:00
|
|
|
icon="edit"
|
|
|
|
title="{{'Edit file' | translate}}">
|
|
|
|
</vn-icon-button>
|
2023-05-30 13:34:11 +00:00
|
|
|
<vn-icon-button
|
|
|
|
icon="delete"
|
|
|
|
ng-click="confirm.show($index)"
|
|
|
|
title="{{'Remove file' | translate}}"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
2019-11-22 09:42:05 +00:00
|
|
|
</vn-td>
|
2023-05-30 13:34:11 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<vn-icon-button title="{{'Download file' | translate}}"
|
|
|
|
icon="cloud_download"
|
|
|
|
ng-click="$ctrl.downloadFile(document.dmsFk, document.isDocuware)">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button ui-sref="worker.card.dms.edit({dmsId: {{::document.dmsFk}}})"
|
|
|
|
icon="edit"
|
|
|
|
title="{{'Edit file' | translate}}">
|
|
|
|
</vn-icon-button>
|
2019-11-22 09:42:05 +00:00
|
|
|
<vn-icon-button
|
|
|
|
icon="delete"
|
2020-04-28 12:26:02 +00:00
|
|
|
ng-click="confirm.show($index)"
|
2019-11-22 09:42:05 +00:00
|
|
|
title="{{'Remove file' | translate}}"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
2020-04-28 12:26:02 +00:00
|
|
|
<a ui-sref="worker.card.dms.create"
|
2019-11-22 09:42:05 +00:00
|
|
|
vn-tooltip="Upload file"
|
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
2023-05-29 13:21:37 +00:00
|
|
|
<vn-confirm
|
2019-11-22 09:42:05 +00:00
|
|
|
vn-id="confirm"
|
|
|
|
message="This file will be deleted"
|
|
|
|
question="Are you sure you want to continue?"
|
2020-04-28 12:26:02 +00:00
|
|
|
on-accept="$ctrl.deleteDms($data)">
|
2023-05-29 13:21:37 +00:00
|
|
|
</vn-confirm>
|