Subversion Repositories SmartDukaan

Rev

Rev 27529 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27509 tejbeer 1
<section>
2
 
3
 
4
<!--<style>
5
	.table-striped > tbody > tr:nth-child(odd) > td{
6
  		background: white;
7
  		background-color: white;
8
	}
9
	.table-striped > tbody > tr:nth-child(even) > td{
10
  		background: white;
11
  		background-color:white;
12
	}
13
	.table-striped > tbody > tr:hover > td,
14
	.table-striped > tbody > tr:hover {
15
		background-color: #e98c8f;
16
	  	color:white;
17
	}
18
	.btn:hover{
19
  		color: grey;
20
  		text-decoration: none;
21
	}
22
	.btn-primary:hover{
23
  		color: grey;
24
  		text-decoration: none;
25
	}
26
	.sale-details{
27
		cursor:pointer;
28
	}
29
</style>-->
30
 
31
<section class="wrapper">
32
	<div class="row">
33
		<div class="col-lg-12">
34
			<h3 class="page-header"><i class="icon_document_alt"></i>Details</h3>
35
			<ol class="breadcrumb">
36
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
37
				<li><i class="icon_document_alt"></i>Warehouse Brand Item Stock  Detail</li>					  	
38
			</ol>
39
		</div>
40
	</div>
41
 
42
 
43
 	<div class = "row">
44
			<div class="col-lg-2 form-group">
45
				<select class="form-control input-sm" id = "warehouseMap" name="warehouseMap" placeholder="Warehouse">
46
					<option value="" disabled selected>Warehouse</option>
47
						#foreach($wm in $warehouseMap.entrySet()))
48
	                    	<option value="$wm.getKey()">$wm.getValue()</option>
49
		             	#end
50
		          </select>
51
			</div>
52
 
53
			<div class="col-lg-2 form-group">
54
			   <select class="form-control input-sm" id = "brand" name="brand" placeholder="Brands">
55
				  <option value="" disabled selected>Brands</option>
56
					#foreach($brand in $brands))
57
	                    <option value="$brand">$brand</option>
58
		             #end
59
		       </select>
60
            </div>		             	
61
 
62
		     <div class="col-lg-2">
63
				<input class="btn btn-primary search-warehousewise-item"  type="button" value="Submit">	
64
			  </div>
65
 
66
		</div>
67
 
68
 
69
 
70
        <div class="row">
71
			<div class="col-lg-12">
72
				 <table id="warehouseBrandItemStock" class="table table-striped table-advance table-hover">
73
				 <thead>
74
	    			<tr>
75
	    				<th>Warehouse Name</th>
76
	    				<th>Item</th>
77
	    				<th>Stock Qty</th>
78
	    				<th>Stock Value</th>
79
	    			 </tr>
80
				 </thead>
81
	    			<tbody>
82
	    			    #foreach($key in $warehouseWiseItemStock)
83
	    				<tr>
84
	    	 		     <td>$warehouseMap.get($key.getWarehouseId())</td>
85
	    	 		     <td>$key.getBrand() $key.getModelName() $key.getModelNumber() $key.getColor()</td>
86
	    	 		     <td>$key.getStockQty()</td>
87
	    	 		     <td class="currency">$key.getStockValue()</td> 
88
	    				</tr>
89
	    				 #end
90
 
91
	    		    </tbody>
92
	    		</table>
93
			</div>
94
		</div>
95
 
96
 
97
</section>
98
<script type="text/javascript">
99
$(document).ready(function() {
100
    indentTable = $('#warehouseBrandItemStock').DataTable();
101
});
102
 
103
$(document).ready(function() {
104
$(".search-warehousewise-item")
105
		.live(
106
			'click',
107
			function() {
108
		var warehouseId = $('#warehouseMap').val();
109
			var brand = $('#brand').val();
110
 
111
 
112
			if (warehouseId === "" && brand === "") {
113
				alert("Field can't be empty");
114
				return;
115
			}
116
 
117
			if (warehouseId === "") {
118
				alert("Please Select the Warehouse");
119
				return;
120
			}
121
			if (brand === "") {
122
				alert("Please Select the Brand");
123
				return;
124
			}
125
         doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandItemStock?warehouseId="+warehouseId+"&brand="+brand,
126
			function(response) {
127
				$('#' + "main-content").html(response);
128
				console.log(response)
129
			});
130
});
131
});
132
</script>