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
<script type="text/javascript">
31
 
32
 
33
	</script>
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>Details</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>Warehouse Brand Stock  Detail</li>					  	
41
			</ol>
42
		</div>
43
	</div>
44
 
45
 	<table style="Width:100%; margin:15px">
46
		<tr>
47
			<td  style="Width:20%; float:left">
48
		     <div class = "row">
49
		       <div class="col-lg-12">
50
			    <div class="input-group">
51
		    			<select class="form-control input-sm" id = "warehouseMap" name="warehouseMap" placeholder="Warehouse">
52
							<option value="" disabled selected>Warehouse</option>
53
						  #foreach($wm in $warehouseMap.entrySet()))
54
 
55
		             		<option value="$wm.getKey()">$wm.getValue()</option>
56
		             		#end
57
		             	</select>
58
	    		<span class="input-group-btn">
59
	      			<button class="btn btn-primary submit" id="warehouse-wise-stock" type="button">Go!</button>
60
	    		</span>
61
	          </div>
62
	          </div>
63
	         </div>
64
	        </td>
65
 
66
 
67
		</tr>
68
    </table>
69
<div class="row">
70
 
71
			<div class="col-lg-12">
72
				 <table id="warehouseBrandStock" class="table table-striped table-advance table-hover">
73
				 <thead>
74
	    			<tr>
75
	    			    <th>Warehouse Id</th>
76
	    				<th>Warehouse Name</th>
77
	    				<th>Brand</th>
78
	    				<th>Stock Qty</th>
79
	    				<th>Stock Value</th>
80
	    			 </tr>
81
				 </thead>
82
	    			<tbody>
83
	    			    #foreach($key in $warehouseWiseBrandStock)
84
	    				<tr>
85
	    				 <td>$key.getWarehouseId()</td>
86
	    	 		     <td>$warehouseMap.get($key.getWarehouseId())</td>
87
	    	 		     <td>$key.getBrand()</td>
88
	    	 		     <td>$key.getStockQty()</td>
89
	    	 		     <td class="currency">$key.getStockValue()</td> 
90
	    				</tr>
91
	    				 #end
92
 
93
	    		    </tbody>
94
	    		</table>
95
						</div>
96
 
97
 
98
			</div>
99
 
100
 
101
</section>
102
<script type="text/javascript">
103
$(document).ready(function() {
104
    indentTable = $('#warehouseBrandStock').DataTable();
105
 
106
 
107
    $('#warehouseBrandStock tbody').on('click', 'tr', function () {
108
        var data = indentTable.row( this ).data();
109
        doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandItemStock?warehouseId="+data[0]+"&brand="+data[2],
110
			function(response) {
111
				$('#' + "main-content").html(response);
112
				console.log(response)
113
			});
114
    } );
115
});
116
 
117
 
118
$(document).ready(function() {
119
$("#warehouse-wise-stock")
120
		.live(
121
			'click',
122
			function() {
123
		var warehouseId = 	$('#warehouseMap').val();
124
          doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId="+warehouseId,
125
			function(response) {
126
				$('#' + "main-content").html(response);
127
				console.log(response)
128
			});
129
	});
130
});
131
 
132
</script>