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
	configureItemsForScanInDropDown();
30
</script>
31
 
32
<section class="wrapper">            
33
	<div class="row">
34
		<div class="col-lg-12">
35
			<h3 class="page-header"><i class="icon_document_alt"></i>ITEM</h3>
36
			<ol class="breadcrumb">
37
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
38
				<li><i class="icon_document_alt"></i>SCAN IN ITEMS</li>						  	
39
			</ol>
40
		</div>
41
	</div>
42
 
43
	<div id="scan-in-item-container">
44
    	<div class="row">
45
        	<div class="col-lg-3 form-group">
46
        		<select class="form-control input-sm" id = "items-for-scan-in" name = "items-for-scan-in" placeholder="Items">
47
					<option value="" disabled selected>Items</option>
48
					#foreach($item in $items)
49
         				<option value="$item.getId()" itemType="$item.getType()">$item.getBrand() $item.getDescription()</option>
50
         			#end
51
	             </select>
52
        	</div>
53
 
54
        	<div class="col-lg-2">
55
            	<input type="number" class="form-control" id="quantity" placeholder="Quantity" value="" />
56
        	</div>
57
        	<div class="col-lg-2">
58
            	<input type="number" class="form-control" id="reserved" placeholder="Reserved" value="" />
59
        	</div>
60
			<div class="col-lg-2">
61
              	<button class="btn btn-primary" data-toggle="modal" data-target="#scanInItemModel" id="" onclick="scanInItemDialog()" type="button">Scan In</button>
62
			</div>
63
 
64
       	</div>
65
   	</div>
66
 
67
  	<div id="scan-in-items-table">
68
		<div class="row">
69
	    	<div class="col-lg-12">
70
	    		<table class="table table-striped table-advance table-hover">
71
	    			<tbody>
72
	    				<tr>
73
	    					<th>Item Name</th>
74
	    					<th>Reserved</th>
75
	    					<th>Availability</th>
76
	    				</tr>
77
	    				#if(!$adminCurrentInventorySnapshots.isEmpty())
78
			    			#foreach( $adminCurrentInventorySnapshot in $adminCurrentInventorySnapshots )
79
			    				<tr class="scan-in-item-details" data="$adminCurrentInventorySnapshot.getItemId()">
80
			    					<td>$itemIdDescriptionMap.get($adminCurrentInventorySnapshot.getItemId())</td>
81
			    					<td>$adminCurrentInventorySnapshot.getReserved()</td>
82
			    					<td>$adminCurrentInventorySnapshot.getAvailability()</td>
83
			    				</tr>
84
			    			#end
85
		    			#else
86
		    				<tr>
87
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
88
		    				</tr>
89
		    			#end
90
	    			</tbody>
91
	    		</table>
92
	    	</div>
93
	    </div>
94
    </div>
95
    #if(!$adminCurrentInventorySnapshots.isEmpty())
96
    	<div class="row" id="scan-in-items-paginated">
97
    		<div class="col-lg-9">
98
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
99
    		</div>
100
    		<div class="col-lg-3" style="text-align:right;">
101
				<div class="btn-group" style="width:40%">
102
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
103
				</div>
104
				<div class="btn-group" style="width:40%">
105
					#if($end >= $size)
106
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
107
					#else
108
						<button class="btn btn-primary next" style="width:100%">Next</button>
109
					#end
110
				</div>
111
	    	</div>
112
	    </div>
113
    #end
114
</section>
115
<div id="scan-in-item-details-container" style="background:white;background-color:white;">
116
</div>
117
<div id="scanInItemModel" class="modal fade" role="dialog" data-backdrop="false">
118
	<div class="modal-dialog modal-lg">
119
       <!-- Modal content-->
120
	    <div class="modal-content">
121
	      <div class="modal-header">
122
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
123
	        <h4 class="modal-title">Scan In Item</h4>
124
	      </div>
125
	      <div class="modal-body">
126
			<input type="hidden" class="itemId" />
127
			<h4 class="itemInformation modelHeaderCustom">Item Details : <span></span></h4>
128
			<h4 class="itemQuantity modelHeaderCustom">Quantity : <span></span></h4>
129
			<h4 class="itemReservedQuantity modelHeaderCustom">Reserved : <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>