2018-07-18 12:38:43 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/order/api/Orders"
|
2018-09-06 10:47:25 +00:00
|
|
|
filter="::$ctrl.filter"
|
2018-07-18 12:38:43 +00:00
|
|
|
limit="20"
|
2018-11-27 14:02:54 +00:00
|
|
|
data="orders" auto-load="false">
|
2018-07-18 12:38:43 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<div margin-medium>
|
2018-10-15 09:43:57 +00:00
|
|
|
<div class="vn-list">
|
|
|
|
<vn-card pad-medium-h>
|
2018-11-27 14:02:54 +00:00
|
|
|
<vn-searchbar auto-load="false"
|
2018-10-15 09:43:57 +00:00
|
|
|
panel="vn-order-search-panel"
|
|
|
|
model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
2018-11-21 13:30:32 +00:00
|
|
|
auto-load="true"
|
2018-10-15 09:43:57 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-card>
|
|
|
|
</div>
|
2018-07-18 12:38:43 +00:00
|
|
|
<vn-card margin-medium-v pad-medium>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2018-09-06 10:47:25 +00:00
|
|
|
<vn-th field="id" default-order="DESC">Id</vn-th>
|
2018-07-18 12:38:43 +00:00
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
2018-10-08 12:38:16 +00:00
|
|
|
<vn-th field="isConfirmed">Confirmed</vn-th>
|
|
|
|
<vn-th field="sourceApp">Created from</vn-th>
|
2018-09-06 10:47:25 +00:00
|
|
|
<vn-th field="created">Created</vn-th>
|
2018-10-08 12:38:16 +00:00
|
|
|
<vn-th field="companyFk">Company</vn-th>
|
2018-07-18 12:38:43 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="order in orders" class="clickable"
|
2018-10-10 10:58:27 +00:00
|
|
|
ui-sref="order.card.summary({id: {{::order.id}}})">
|
2018-07-18 12:38:43 +00:00
|
|
|
<vn-td>{{::order.id}}</vn-td>
|
2018-09-06 10:47:25 +00:00
|
|
|
<vn-td>
|
|
|
|
<span class="link" ng-click="$ctrl.showDescriptor($event, order.clientFk)">
|
|
|
|
{{::order.client.name}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2018-10-08 12:38:16 +00:00
|
|
|
<vn-td>
|
|
|
|
<vn-check
|
|
|
|
field="order.isConfirmed"
|
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::order.sourceApp}}</vn-td>
|
|
|
|
<vn-td>{{::order.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
|
2018-09-06 10:47:25 +00:00
|
|
|
<vn-td>{{::order.company.code}}</vn-td>
|
2018-10-10 12:03:56 +00:00
|
|
|
<vn-td>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, order)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
2018-07-18 12:38:43 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
2018-12-11 10:59:44 +00:00
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
<vn-empty-rows ng-if="model.data === null" translate>
|
2018-11-21 13:30:32 +00:00
|
|
|
Enter a new search
|
2018-07-18 12:38:43 +00:00
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
scroll-selector="ui-view">
|
|
|
|
</vn-pagination>
|
|
|
|
</div>
|
2018-10-10 12:03:56 +00:00
|
|
|
<a ui-sref="order.create" vn-bind="+" vn-tooltip="New order" fixed-bottom-right>
|
2018-07-24 11:48:31 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
2018-07-18 12:38:43 +00:00
|
|
|
</a>
|
2018-10-10 12:03:56 +00:00
|
|
|
<vn-client-descriptor-popover vn-id="descriptor"></vn-client-descriptor-popover>
|
|
|
|
<vn-dialog class="dialog-summary"
|
|
|
|
vn-id="order-summary-dialog">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-order-summary order="$ctrl.order"></vn-order-summary>
|
|
|
|
</tpl-body>
|
2018-11-19 07:42:29 +00:00
|
|
|
</vn-dialog>
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="summary"
|
|
|
|
class="dialog-summary summary">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-order-summary order="$ctrl.selectedOrder"></vn-order-summary>
|
|
|
|
</tpl-body>
|
2018-10-10 12:03:56 +00:00
|
|
|
</vn-dialog>
|