Subversion Repositories SmartDukaan

Rev

Rev 23882 | Go to most recent revision | Details | 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>
29
	configureWarehousesDropDown();
30
	configureWarehouseItemsDropDown();
31
	configureFofoUsersDropDown();
32
</script>
33
 
34
<section class="wrapper">            
35
	<div class="row">
36
		<div class="col-lg-12">
37
			<h3 class="page-header"><i class="icon_document_alt"></i>ITEM</h3>
38
			<ol class="breadcrumb">
39
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
40
				<li><i class="icon_document_alt"></i>SCAN OUT ITEMS</li>						  	
41
			</ol>
42
		</div>
43
	</div>
44
 
45
	<div id="scan-out-item-container">
46
    	<div class="row">
47
    		<div class="col-lg-2 form-group">
48
        		<select class="form-control input-sm" id = "warehouses" name = "warehouses" placeholder="Warehouses">
49
					<option value="" disabled selected>Warehouses</option>
50
					#foreach($warehouseId in $warehouseIdNameMap.keySet())
51
         				<option value="$warehouseId">$warehouseIdNameMap.get($warehouseId)</option>
52
         			#end
53
	             </select>
54
        	</div>
55
        	<div class="col-lg-2 form-group" id="warehouse-items-container">
56
        		<select class="form-control input-sm" id = "warehouse-items" name = "warehouse-items" placeholder="Items">
57
	             </select>
58
        	</div>
59
 
60
        	<div class="col-lg-2 form-group">
61
        		<select class="form-control input-sm" id = "fofo-users" name = "fofo-users" placeholder="Users">
62
					<option value="" disabled selected>Users</option>
63
					#foreach($fofoId in $fofoIdEmailIdMap.keySet())
64
         				<option value="$fofoId">$fofoIdEmailIdMap.get($fofoId)</option>
65
         			#end
66
	             </select>
67
        	</div>			
68
        	<div class="col-lg-2">
69
            	<input type="number" class="form-control" id="quantity" placeholder="Quantity" value="" />
70
        	</div>
71
			<div class="col-lg-2">
72
              	<button class="btn btn-primary" data-toggle="modal" data-target="#scanOutItemModel" id="" onclick="scanOutItemDialog()" type="button">Scan Out</button>
73
			</div>
74
 
75
       	</div>
76
   	</div>
77
 
78
  	<div id="scan-out-items-table">
79
		<div class="row">
80
	    	<div class="col-lg-12">
81
	    		<table class="table table-striped table-advance table-hover">
82
	    			<tbody>
83
	    				<tr>
84
	    					<th>Delivery Note Id</th>
85
	    					<th>Warehouse Name</th>
86
	    					<th>Item Name</th>
87
	    					<th>Creator Email Id</th>
88
	    					<th>Partner Email Id</th>
89
	    					<th>Serial Number</th>
90
	    					<th>Quantity</th>
91
	    					<th>Created On</th>
92
	    				</tr>
93
	    				#if(!$adminDeliveryNotes.isEmpty())
94
			    			#foreach( $adminDeliveryNote in $adminDeliveryNotes )
95
			    				<tr class="scan-out-item-details" data="$adminDeliveryNote.getDeliveryNoteId()">
96
			    					<td>$adminDeliveryNote.getDeliveryNoteId()</td>
97
			    					<td>$warehouseIdNameMap.get($adminDeliveryNote.getWarehouseId())</td>
98
			    					<td>$itemIdDescriptionMap.get($adminDeliveryNote.getItemId())</td>
99
			    					<td>$fofoIdEmailIdMap.get($adminDeliveryNote.getAdminId())</td>
100
			    					<td>$fofoIdEmailIdMap.get($adminDeliveryNote.getFofoId())</td>
101
		    						#if($adminDeliveryNote.getSerialNumber())
102
		    							<td>$adminDeliveryNote.getSerialNumber()</td>
103
		    						#else
104
		    							<td></td>
105
		    						#end
106
			    					<td>$adminDeliveryNote.getQuantity()</td>
107
			    					<td>$adminDeliveryNote.getFormattedCreateTimestamp()</td>
108
			    				</tr>
109
			    			#end
110
		    			#else
111
		    				<tr>
112
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
113
		    				</tr>
114
		    			#end
115
	    			</tbody>
116
	    		</table>
117
	    	</div>
118
	    </div>
119
    </div>
120
    #if(!$adminDeliveryNotes.isEmpty())
121
    	<div class="row" id="scan-out-items-paginated">
122
    		<div class="col-lg-9">
123
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
124
    		</div>
125
    		<div class="col-lg-3" style="text-align:right;">
126
				<div class="btn-group" style="width:40%">
127
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
128
				</div>
129
				<div class="btn-group" style="width:40%">
130
					#if($end >= $size)
131
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
132
					#else
133
						<button class="btn btn-primary next" style="width:100%">Next</button>
134
					#end
135
				</div>
136
	    	</div>
137
	    </div>
138
    #end
139
</section>
140
<div id="scan-out-item-details-container" style="background:white;background-color:white;">
141
</div>
142
<div id="scanOutItemModel" class="modal fade" role="dialog" data-backdrop="false">
143
	<div class="modal-dialog modal-lg">
144
       <!-- Modal content-->
145
	    <div class="modal-content">
146
	      <div class="modal-header">
147
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
148
	        <h4 class="modal-title">Scan Out Item</h4>
149
	      </div>
150
	      <div class="modal-body">
151
			<input type="hidden" class="itemId" />
152
			<input type="hidden" class="itemType" />
153
			<input type="hidden" class="warehouseId" />
154
			<input type="hidden" class="userId" />
155
			<h4 class="itemInformation modelHeaderCustom">Item Details : <span></span></h4>
156
			<h4 class="warehouseInformation modelHeaderCustom">Warehouse Details : <span></span></h4>
157
			<h4 class="userInformation modelHeaderCustom">User Details : <span></span></h4>
158
			<h4 class="itemQuantity modelHeaderCustom">Quantity : <span></span></h4>
159
			<h4 class="modal-title">Choose Serial Numbers</h4>
160
			<div id="serialNumberContainer">
161
			</div>
162
			<hr/>
163
			<span class="input-group-btn">
164
				<button type="button" id="scanOutItemButton" class="btn btn-primary">Submit!</button>
165
	       	</span>
166
		  </div>
167
	      <div class="modal-footer">
168
	        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
169
	      </div>
170
	      </div>
171
	</div>
172
</div>