Subversion Repositories SmartDukaan

Rev

Rev 24168 | 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>
29
	configureItemsForScanInDropDown();
23882 ashik.ali 30
	configureWarehousesForScanInDropDown();
23783 ashik.ali 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>
24168 amit.gupta 39
				<li><i class="icon_document_alt"></i>SCAN IN ITEMS for $warehouse.getName()</li>						  	
23783 ashik.ali 40
			</ol>
41
		</div>
42
	</div>
43
 
44
	<div id="scan-in-item-container">
45
    	<div class="row">
46
        	<div class="col-lg-3 form-group">
24168 amit.gupta 47
        		<input type="hidden" id="warehouseId" name="warehouseId" value="$warehouse.getId()" />
48
        		<input type="hidden" id="warehouseName" name="warehouseId" value="$warehouse.getName()" />
23783 ashik.ali 49
        		<select class="form-control input-sm" id = "items-for-scan-in" name = "items-for-scan-in" placeholder="Items">
50
					<option value="" disabled selected>Items</option>
51
					#foreach($item in $items)
52
         				<option value="$item.getId()" itemType="$item.getType()">$item.getBrand() $item.getDescription()</option>
53
         			#end
54
	             </select>
55
        	</div>
56
        	<div class="col-lg-2">
57
            	<input type="number" class="form-control" id="quantity" placeholder="Quantity" value="" />
58
        	</div>
59
			<div class="col-lg-2">
60
              	<button class="btn btn-primary" data-toggle="modal" data-target="#scanInItemModel" id="" onclick="scanInItemDialog()" type="button">Scan In</button>
61
			</div>
62
 
63
       	</div>
64
   	</div>
65
 
66
  	<div id="scan-in-items-table">
67
		<div class="row">
68
	    	<div class="col-lg-12">
69
	    		<table class="table table-striped table-advance table-hover">
70
	    			<tbody>
71
	    				<tr>
72
	    					<th>Item Name</th>
73
	    					<th>Availability</th>
24168 amit.gupta 74
	    					<th>Reserved</th>
23783 ashik.ali 75
	    				</tr>
76
	    				#if(!$adminCurrentInventorySnapshots.isEmpty())
77
			    			#foreach( $adminCurrentInventorySnapshot in $adminCurrentInventorySnapshots )
78
			    				<tr class="scan-in-item-details" data="$adminCurrentInventorySnapshot.getItemId()">
79
			    					<td>$itemIdDescriptionMap.get($adminCurrentInventorySnapshot.getItemId())</td>
80
			    					<td>$adminCurrentInventorySnapshot.getAvailability()</td>
24168 amit.gupta 81
			    					<td>$adminCurrentInventorySnapshot.getReserved()</td>
23783 ashik.ali 82
			    				</tr>
83
			    			#end
84
		    			#else
85
		    				<tr>
86
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
87
		    				</tr>
88
		    			#end
89
	    			</tbody>
90
	    		</table>
91
	    	</div>
92
	    </div>
93
    </div>
94
    #if(!$adminCurrentInventorySnapshots.isEmpty())
95
    	<div class="row" id="scan-in-items-paginated">
96
    		<div class="col-lg-9">
97
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
98
    		</div>
99
    		<div class="col-lg-3" style="text-align:right;">
100
				<div class="btn-group" style="width:40%">
101
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
102
				</div>
103
				<div class="btn-group" style="width:40%">
104
					#if($end >= $size)
105
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
106
					#else
107
						<button class="btn btn-primary next" style="width:100%">Next</button>
108
					#end
109
				</div>
110
	    	</div>
111
	    </div>
112
    #end
113
</section>
114
<div id="scan-in-item-details-container" style="background:white;background-color:white;">
115
</div>
26318 tejbeer 116
<div id="scanInItemModel" class="modal" role="dialog" data-backdrop="false">
23783 ashik.ali 117
	<div class="modal-dialog modal-lg">
118
       <!-- Modal content-->
119
	    <div class="modal-content">
120
	      <div class="modal-header">
121
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
122
	        <h4 class="modal-title">Scan In Item</h4>
123
	      </div>
124
	      <div class="modal-body">
125
			<input type="hidden" class="itemId" />
23882 ashik.ali 126
			<input type="hidden" class="warehouseId" />
127
			<h4 class="warehouseName modelHeaderCustom">Warehouse Name : <span></span></h4>
23783 ashik.ali 128
			<h4 class="itemInformation modelHeaderCustom">Item Details : <span></span></h4>
129
			<h4 class="itemQuantity modelHeaderCustom">Quantity : <span></span></h4>
130
			<h4 class="modal-title">Enter Serial Numbers</h4>
131
			<div id="serialNumberContainer">
132
			</div>
133
			<hr/>
134
			<span class="input-group-btn">
135
				<button type="button" id="scanInItemButton" class="btn btn-primary">Submit!</button>
136
	       	</span>
137
		  </div>
138
	      <div class="modal-footer">
139
	        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
140
	      </div>
141
	      </div>
142
	</div>
143
</div>