2018-06-07 21:47:19 +00:00
|
|
|
<div pad-large style="min-width: 30em">
|
|
|
|
<form ng-submit="$ctrl.onSearch()">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
2018-11-05 09:14:31 +00:00
|
|
|
label="General search"
|
|
|
|
model="filter.search"
|
2018-06-07 21:47:19 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
2018-11-05 09:14:31 +00:00
|
|
|
vn-one
|
|
|
|
label="Nickname"
|
|
|
|
model="filter.nickname">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
2018-06-07 21:47:19 +00:00
|
|
|
vn-one
|
|
|
|
label="Ticket id"
|
|
|
|
model="filter.id">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Client id"
|
|
|
|
model="filter.clientFk">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="From"
|
|
|
|
model="filter.from">
|
|
|
|
</vn-date-picker>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="To"
|
|
|
|
model="filter.to">
|
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Agency"
|
|
|
|
field="filter.agencyModeFk"
|
2019-01-16 07:11:28 +00:00
|
|
|
url="/api/AgencyModes/isActive">
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Warehouse"
|
|
|
|
field="filter.warehouseFk"
|
2018-10-30 12:58:02 +00:00
|
|
|
url="/api/Warehouses">
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2018-10-30 12:58:02 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
field="filter.salesPersonFk"
|
2018-11-27 08:10:30 +00:00
|
|
|
url="/client/api/Clients/activeWorkersWithRole"
|
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
|
|
|
where="{role: 'employee'}"
|
|
|
|
label="Sales person">
|
|
|
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
2018-10-30 12:58:02 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Province"
|
|
|
|
field="filter.provinceFk"
|
|
|
|
url="/api/Provinces">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="State"
|
|
|
|
field="filter.stateFk"
|
|
|
|
url="/api/States">
|
|
|
|
</vn-autocomplete>
|
2018-12-12 13:30:48 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Order id"
|
|
|
|
model="filter.orderFk">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2018-12-21 11:06:01 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="State"
|
|
|
|
value-field="alertLevel"
|
|
|
|
show-field="code"
|
|
|
|
field="filter.alertLevel"
|
|
|
|
url="/api/AlertLevels">
|
|
|
|
</vn-autocomplete>
|
2018-10-30 12:58:02 +00:00
|
|
|
<vn-check
|
|
|
|
vn-one
|
2018-12-12 13:30:48 +00:00
|
|
|
label="My team"
|
2018-10-30 12:58:02 +00:00
|
|
|
field="filter.myTeam">
|
|
|
|
</vn-check>
|
|
|
|
</vn-horizontal>
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-horizontal margin-large-top>
|
|
|
|
<vn-submit label="Search"></vn-submit>
|
|
|
|
</vn-horizontal>
|
|
|
|
</form>
|
|
|
|
</div>
|