2019-07-30 06:51:38 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/api/ClaimDms"
|
|
|
|
link="{claimFk: $ctrl.$stateParams.id}"
|
|
|
|
filter="::$ctrl.filter"
|
|
|
|
limit="20"
|
|
|
|
data="$ctrl.claimDms">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="dmsFk" default-order="DESC" shrink>Id</vn-th>
|
2019-09-26 11:45:42 +00:00
|
|
|
<vn-th shrink>Type</vn-th>
|
|
|
|
<vn-th shrink number>Order</vn-th>
|
|
|
|
<vn-th shrink>Reference</vn-th>
|
2019-09-12 10:12:39 +00:00
|
|
|
<vn-th expand>Description</vn-th>
|
2019-09-26 11:45:42 +00:00
|
|
|
<vn-th shrink>Original</vn-th>
|
2019-09-12 10:12:39 +00:00
|
|
|
<vn-th shrink>File</vn-th>
|
2019-07-30 06:51:38 +00:00
|
|
|
<vn-th shrink>Employee</vn-th>
|
2019-09-26 11:45:42 +00:00
|
|
|
<vn-th>Created</vn-th>
|
2019-09-12 10:12:39 +00:00
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
2019-07-30 06:51:38 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="document in $ctrl.claimDms">
|
|
|
|
<vn-td number shrink>{{::document.dmsFk}}</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<span title="{{::document.dms.dmsType.name}}">
|
|
|
|
{{::document.dms.dmsType.name}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink number>
|
2019-09-12 10:12:39 +00:00
|
|
|
<span class="chip" title="{{::document.dms.hardCopyNumber}}"
|
|
|
|
ng-class="{'message': document.dms.hardCopyNumber}">
|
2019-07-30 06:51:38 +00:00
|
|
|
{{::document.dms.hardCopyNumber}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<span title="{{::document.dms.reference}}">
|
|
|
|
{{::document.dms.reference}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-09-12 10:12:39 +00:00
|
|
|
<vn-td expand>
|
2019-07-30 06:51:38 +00:00
|
|
|
<span title="{{::document.dms.description}}">
|
|
|
|
{{::document.dms.description}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-check disabled="true"
|
|
|
|
field="document.dms.hasFile">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2019-09-12 10:12:39 +00:00
|
|
|
<vn-td shrink>
|
2019-07-30 06:51:38 +00:00
|
|
|
<a target="_blank"
|
|
|
|
title="{{'Download file' | translate}}"
|
|
|
|
href="api/dms/{{::document.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}">
|
|
|
|
{{::document.dms.file}}
|
|
|
|
</a>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<span class="link"
|
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, document.dms.workerFk)">
|
|
|
|
{{::document.dms.worker.user.nickname | dashIfEmpty}}
|
|
|
|
</span></vn-td>
|
|
|
|
<vn-td>
|
|
|
|
{{::document.dms.created | dateTime:'dd/MM/yyyy HH:mm'}}
|
|
|
|
</vn-td>
|
2019-09-12 10:12:39 +00:00
|
|
|
<vn-td shrink>
|
2019-07-30 06:51:38 +00:00
|
|
|
<a target="_blank"
|
|
|
|
href="api/dms/{{::document.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}">
|
|
|
|
<vn-icon-button
|
|
|
|
icon="cloud_download"
|
|
|
|
title="{{'Download file' | translate}}">
|
|
|
|
</vn-icon-button>
|
|
|
|
</a>
|
2019-09-12 10:12:39 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon-button icon="edit"
|
|
|
|
ui-sref="claim.card.dms.edit({dmsId: {{::document.dmsFk}}})"
|
2019-07-30 06:51:38 +00:00
|
|
|
title="{{'Edit file' | translate}}">
|
|
|
|
</vn-icon-button>
|
2019-09-12 10:12:39 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon-button icon="delete"
|
2019-07-30 06:51:38 +00:00
|
|
|
ng-click="$ctrl.showDeleteConfirm($index)"
|
|
|
|
title="{{'Remove file' | translate}}"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-vertical>
|
|
|
|
<vn-pagination model="model"></vn-pagination>
|
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
<a ui-sref="claim.card.dms.create"
|
|
|
|
vn-tooltip="Upload file"
|
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="confirm"
|
|
|
|
message="This file will be deleted"
|
|
|
|
question="Are you sure you want to continue?"
|
|
|
|
on-response="$ctrl.deleteDms(response)">
|
|
|
|
</vn-confirm>
|