| Line 24... |
Line 24... |
| 24 |
cursor:pointer;
|
24 |
cursor:pointer;
|
| 25 |
}
|
25 |
}
|
| 26 |
</style>
|
26 |
</style>
|
| 27 |
|
27 |
|
| 28 |
<script>
|
28 |
<script>
|
| 29 |
configureWarehousesDropDown();
|
29 |
//configureWarehousesDropDown();
|
| 30 |
configureWarehouseInstructionItemsDropDown();
|
30 |
configureWarehouseInstructionItemsDropDown();
|
| 31 |
configureFofoUsersDropDown();
|
31 |
configureFofoUsersDropDown();
|
| 32 |
</script>
|
32 |
</script>
|
| 33 |
|
33 |
|
| 34 |
<section class="wrapper">
|
34 |
<section class="wrapper">
|
| 35 |
<div class="row">
|
35 |
<div class="row">
|
| 36 |
<div class="col-lg-12">
|
36 |
<div class="col-lg-12">
|
| 37 |
<h3 class="page-header"><i class="icon_document_alt"></i>ITEM</h3>
|
37 |
<h3 class="page-header"><i class="icon_document_alt"></i>ITEM</h3>
|
| 38 |
<ol class="breadcrumb">
|
38 |
<ol class="breadcrumb">
|
| 39 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
39 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
| 40 |
<li><i class="icon_document_alt"></i>INSTRUCTION ITEMS</li>
|
40 |
<li><i class="icon_document_alt"></i>INSTRUCTION ITEMS - $warehouse.getName()</li>
|
| 41 |
</ol>
|
41 |
</ol>
|
| 42 |
</div>
|
42 |
</div>
|
| 43 |
</div>
|
43 |
</div>
|
| 44 |
|
44 |
|
| 45 |
<div id="instruction-item-container">
|
45 |
<div id="instruction-item-container">
|
| 46 |
<div class="row">
|
46 |
<div class="row">
|
| 47 |
<div class="col-lg-2 form-group" id="admin-warehouses-container">
|
- |
|
| 48 |
<select class="form-control" id="admin-warehouses" placeholder="Warehouses">
|
- |
|
| 49 |
<option value="" disabled selected>Warehouses</option>
|
- |
|
| 50 |
#foreach($warehouse in $warehouses)
|
- |
|
| 51 |
<option value="$warehouse.getId()">$warehouse.getName()</option>
|
- |
|
| 52 |
#end
|
- |
|
| 53 |
</select>
|
- |
|
| 54 |
</div>
|
- |
|
| 55 |
|
- |
|
| 56 |
<div class="col-lg-2 form-group" id="warehouse-instruction-items-container">
|
47 |
<div class="col-lg-2 form-group" id="warehouse-instruction-items-container">
|
| 57 |
<select class="form-control input-sm" id = "warehouse-instruction-items" name = "warehouse-instruction-items" placeholder="Items" multiple>
|
48 |
<select class="form-control input-sm" id = "warehouse-instruction-items" name = "warehouse-instruction-items" placeholder="Items" multiple>
|
| 58 |
</select>
|
49 |
</select>
|
| 59 |
</div>
|
50 |
</div>
|
| 60 |
|
51 |
|
| 61 |
<div class="col-lg-2 form-group">
|
52 |
<div class="col-lg-2 form-group">
|
| - |
|
53 |
<input type="hidden" id="warehouseId" value="$warehouse.getId()"/>
|
| 62 |
<select class="form-control input-sm" id = "fofo-users" name = "fofo-users" placeholder="Users">
|
54 |
<select class="form-control input-sm" id="fofo-users" name="fofo-users" placeholder="Users">
|
| 63 |
<option value="" disabled selected>Users</option>
|
55 |
<option value="" disabled selected>Users</option>
|
| 64 |
#foreach($fofoId in $fofoIdEmailIdMap.keySet())
|
56 |
#foreach($fofoId in $userIdStoreNameMap.keySet())
|
| 65 |
<option value="$fofoId">$fofoIdEmailIdMap.get($fofoId)</option>
|
57 |
<option value="$fofoId">$userIdStoreNameMap.get($fofoId)</option>
|
| 66 |
#end
|
58 |
#end
|
| 67 |
</select>
|
59 |
</select>
|
| 68 |
</div>
|
60 |
</div>
|
| 69 |
<div class="col-lg-2">
|
61 |
<div class="col-lg-2">
|
| 70 |
<button class="btn btn-primary" data-toggle="modal" data-target="#instructionItemModel" id="" onclick="instructionItemDialog()" type="button">Process</button>
|
62 |
<button class="btn btn-primary" data-toggle="modal" data-target="#instructionItemModel" id="" onclick="instructionItemDialog()" type="button">Process</button>
|
| Line 77... |
Line 69... |
| 77 |
<div class="row">
|
69 |
<div class="row">
|
| 78 |
<div class="col-lg-12">
|
70 |
<div class="col-lg-12">
|
| 79 |
<table class="table table-striped table-advance table-hover">
|
71 |
<table class="table table-striped table-advance table-hover">
|
| 80 |
<tbody>
|
72 |
<tbody>
|
| 81 |
<tr>
|
73 |
<tr>
|
| 82 |
<th>Warehouse Name</th>
|
- |
|
| 83 |
<th>Partner Email Id</th>
|
74 |
<th>Partner Details</th>
|
| 84 |
<th>Status</th>
|
75 |
<th>Status</th>
|
| 85 |
<th>Created On</th>
|
76 |
<th>Created On</th>
|
| 86 |
</tr>
|
77 |
</tr>
|
| 87 |
#if(!$instructionItems.isEmpty())
|
78 |
#if(!$instructionItems.isEmpty())
|
| 88 |
#foreach( $instructionItem in $instructionItems )
|
79 |
#foreach( $instructionItem in $instructionItems )
|
| 89 |
<tr class="instruction-item-details" data="$instructionItem.getId()">
|
80 |
<tr class="instruction-item-details" data="$instructionItem.getId()">
|
| 90 |
<td>$warehouseIdNameMap.get($instructionItem.getWarehouseId())</td>
|
- |
|
| 91 |
<td>$fofoIdEmailIdMap.get($instructionItem.getFofoId())</td>
|
81 |
<td>$userIdStoreNameMap.get($instructionItem.getFofoId())</td>
|
| 92 |
<td>$instructionItem.getStatus()</td>
|
82 |
<td>$instructionItem.getStatus()</td>
|
| 93 |
<td>$instructionItem.getFormattedCreateTimestamp()</td>
|
83 |
<td>$dateTimeFormatter.format($instructionItem.getCreateTimestamp())</td>
|
| 94 |
</tr>
|
84 |
</tr>
|
| 95 |
#end
|
85 |
#end
|
| 96 |
#else
|
86 |
#else
|
| 97 |
<tr>
|
87 |
<tr>
|
| 98 |
<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
88 |
<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
| Line 135... |
Line 125... |
| 135 |
</div>
|
125 |
</div>
|
| 136 |
<div class="modal-body">
|
126 |
<div class="modal-body">
|
| 137 |
<input type="hidden" class="itemIds" />
|
127 |
<input type="hidden" class="itemIds" />
|
| 138 |
<input type="hidden" class="warehouseId" />
|
128 |
<input type="hidden" class="warehouseId" />
|
| 139 |
<input type="hidden" class="userId" />
|
129 |
<input type="hidden" class="userId" />
|
| 140 |
<h4 class="warehouseInformation modelHeaderCustom">Warehouse Details : <span></span></h4>
|
130 |
<h4 class="warehouseInformation modelHeaderCustom">Warehouse Details : $warehouse.getName()<span></span></h4>
|
| 141 |
<h4 class="userInformation modelHeaderCustom">User Details : <span></span></h4>
|
131 |
<h4 class="userInformation modelHeaderCustom">User Details : <span></span></h4>
|
| 142 |
<h4 class="itemInformation modelHeaderCustom">Items : <span></span></h4>
|
132 |
<h4 class="itemInformation modelHeaderCustom">Items : <span></span></h4>
|
| 143 |
<div id="instructionItemsContainer">
|
133 |
<div id="instructionItemsContainer">
|
| 144 |
</div>
|
134 |
</div>
|
| 145 |
<hr/>
|
135 |
<hr/>
|
| Line 150... |
Line 140... |
| 150 |
<div class="modal-footer">
|
140 |
<div class="modal-footer">
|
| 151 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
141 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
| 152 |
</div>
|
142 |
</div>
|
| 153 |
</div>
|
143 |
</div>
|
| 154 |
</div>
|
144 |
</div>
|
| 155 |
</div>
|
- |
|
| 156 |
|
145 |
</div>
|
| - |
|
146 |
<script type="text/javascript">
|
| - |
|
147 |
$(()=>{
|
| - |
|
148 |
loadWarehouseInstructionItemsByWarehouseId("warehouse-instruction-items-container", $("#warehouseId").val());
|
| - |
|
149 |
});
|
| - |
|
150 |
</script>
|
| - |
|
151 |
|
| 157 |
|
152 |
|