Subversion Repositories SmartDukaan

Rev

Rev 23783 | Rev 24168 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23783 ashik.ali 1
<style>
2
	.table-striped > tbody > tr:nth-child(odd) > td{
3
  		background: white;
4
  		background-color: white;
5
	}
6
	.table-striped > tbody > tr:nth-child(even) > td{
7
  		background: white;
8
  		background-color:white;
9
	}
10
	.table-striped > tbody > tr:hover > td,
11
	.table-striped > tbody > tr:hover {
12
		background-color: #e98c8f;
13
	  	color:white;
14
	}
15
	.btn:hover{
16
  		color: grey;
17
  		text-decoration: none;
18
	}
19
	.btn-primary:hover{
20
  		color: grey;
21
  		text-decoration: none;
22
	}
23
	.vendor-details{
24
		cursor:pointer;
25
	}
26
</style>
27
 
28
<script>
23882 ashik.ali 29
	configureWarehousesForScanOutDropDown();
23783 ashik.ali 30
	configureFofoUsersDropDown();
31
</script>
32
 
33
<section class="wrapper">            
34
	<div class="row">
35
		<div class="col-lg-12">
36
			<h3 class="page-header"><i class="icon_document_alt"></i>ITEM</h3>
37
			<ol class="breadcrumb">
38
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
39
				<li><i class="icon_document_alt"></i>SCAN OUT ITEMS</li>						  	
40
			</ol>
41
		</div>
42
	</div>
43
 
44
	<div id="scan-out-item-container">
45
    	<div class="row">
23882 ashik.ali 46
    		<div class="col-lg-2 form-group" id="admin-warehouses-container">
47
        		<select class="form-control" id="admin-warehouses-for-scan-out" placeholder="Warehouses">
48
        			<option value="" disabled selected>Warehouses</option>
49
        			#foreach($warehouse in $warehouses)
50
        				<option value="$warehouse.getId()">$warehouse.getName()</option>
51
        			#end
52
				</select>
23783 ashik.ali 53
        	</div>
54
 
55
        	<div class="col-lg-2 form-group">
56
        		<select class="form-control input-sm" id = "fofo-users" name = "fofo-users" placeholder="Users">
57
					<option value="" disabled selected>Users</option>
58
					#foreach($fofoId in $fofoIdEmailIdMap.keySet())
59
         				<option value="$fofoId">$fofoIdEmailIdMap.get($fofoId)</option>
60
         			#end
61
	             </select>
62
        	</div>
63
			<div class="col-lg-2">
64
              	<button class="btn btn-primary" data-toggle="modal" data-target="#scanOutItemModel" id="" onclick="scanOutItemDialog()" type="button">Scan Out</button>
65
			</div>
66
 
67
       	</div>
68
   	</div>
69
 
70
  	<div id="scan-out-items-table">
71
		<div class="row">
72
	    	<div class="col-lg-12">
73
	    		<table class="table table-striped table-advance table-hover">
74
	    			<tbody>
75
	    				<tr>
76
	    					<th>Delivery Note Id</th>
77
	    					<th>Warehouse Name</th>
78
	    					<th>Partner Email Id</th>
79
	    					<th>Created On</th>
80
	    				</tr>
81
	    				#if(!$adminDeliveryNotes.isEmpty())
82
			    			#foreach( $adminDeliveryNote in $adminDeliveryNotes )
83
			    				<tr class="scan-out-item-details" data="$adminDeliveryNote.getDeliveryNoteId()">
84
			    					<td>$adminDeliveryNote.getDeliveryNoteId()</td>
85
			    					<td>$warehouseIdNameMap.get($adminDeliveryNote.getWarehouseId())</td>
86
			    					<td>$fofoIdEmailIdMap.get($adminDeliveryNote.getFofoId())</td>
87
			    					<td>$adminDeliveryNote.getFormattedCreateTimestamp()</td>
88
			    				</tr>
89
			    			#end
90
		    			#else
91
		    				<tr>
92
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
93
		    				</tr>
94
		    			#end
95
	    			</tbody>
96
	    		</table>
97
	    	</div>
98
	    </div>
99
    </div>
100
    #if(!$adminDeliveryNotes.isEmpty())
101
    	<div class="row" id="scan-out-items-paginated">
102
    		<div class="col-lg-9">
103
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
104
    		</div>
105
    		<div class="col-lg-3" style="text-align:right;">
106
				<div class="btn-group" style="width:40%">
107
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
108
				</div>
109
				<div class="btn-group" style="width:40%">
110
					#if($end >= $size)
111
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
112
					#else
113
						<button class="btn btn-primary next" style="width:100%">Next</button>
114
					#end
115
				</div>
116
	    	</div>
117
	    </div>
118
    #end
119
</section>
120
<div id="scan-out-item-details-container" style="background:white;background-color:white;">
121
</div>
122
<div id="scanOutItemModel" class="modal fade" role="dialog" data-backdrop="false">
123
	<div class="modal-dialog modal-lg">
124
       <!-- Modal content-->
125
	    <div class="modal-content">
126
	      <div class="modal-header">
127
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
128
	        <h4 class="modal-title">Scan Out Item</h4>
129
	      </div>
130
	      <div class="modal-body">
131
			<input type="hidden" class="warehouseId" />
132
			<input type="hidden" class="userId" />
133
			<h4 class="warehouseInformation modelHeaderCustom">Warehouse Details : <span></span></h4>
134
			<h4 class="userInformation modelHeaderCustom">User Details : <span></span></h4>
23882 ashik.ali 135
			<h4 class="modal-title">Choose Instructions</h4>
136
			<div id="instructionItemsContainer">
23783 ashik.ali 137
			</div>
138
			<hr/>
139
			<span class="input-group-btn">
140
				<button type="button" id="scanOutItemButton" class="btn btn-primary">Submit!</button>
141
	       	</span>
142
		  </div>
143
	      <div class="modal-footer">
144
	        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
145
	      </div>
146
	      </div>
147
	</div>
148
</div>