Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28825 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 Activated Model</li>					  	
41
			</ol>
42
		</div>
43
	</div>
44
 
45
<div class="col-lg-6">
46
 	<table style="Width:100%; margin:15px">
47
		<tr>
48
			<td  style="Width:40%; float:left">
49
		     <div class = "row">
50
		       <div class="col-lg-12">
51
			    <div class="input-group">
52
		    		<select class="form-control input-sm" id = "brands" name="brands" placeholder="Brand">
53
						<option value="" disabled selected>Brand</option>
54
						  #foreach($brand in $brands))
55
	                      #if($brand == $selectedbrand)
56
		             		<option value="$brand" selected>$brand</option>
57
		             	  #else
58
		             		<option value="$brand">$brand</option>
59
		             	  #end
60
		             	  #end
61
		             	</select>
62
	    		<span class="input-group-btn">
63
	      			<button class="btn btn-primary submit" id="warehouse-brand-activated-sale" type="button">Go!</button>
64
	    		</span>
65
	          </div>
66
	          </div>
67
	         </div>
68
	        </td>
69
 
70
 
71
		</tr>
72
    </table>
73
<div class="row">
74
 
75
			<div class="col-lg-12">
76
				 <table id="warehouseActivatedModel" class="table table-striped table-advance table-hover">
77
				 <thead>
78
	    			<tr>
79
	    			    <th> W/H Id</th>
80
	    				<th>W/H Location</th>
81
	    			    <th>LMS</th>
82
	    			    <th>LMS Qty</th>
83
	    			    <th>LMTD</th>
84
	    			    <th>LMTD Qty</th>
85
	    				<th>MTD</th>
86
	    				<th>MTD Qty</th>
87
 
88
	    			 </tr>
89
				 </thead>
90
	    			<tbody>
91
	    			    #foreach($wam in $warehouseWiseActivatedModels)
92
	    				<tr>
93
	    				  <td>$wam.getWarehouseId()</td>
94
	    	 		      <td>$warehouseMap.get($wam.getWarehouseId())</td>
95
	    	 		      <td class="currency">$wam.getLms()</td>
96
	    	 		      <td>$wam.getLmsQty()</td>
97
	    	 		      <td class="currency">$wam.getLmtd()</td>
98
	    	 		      <td>$wam.getLmtdQty()</td>
99
	    	 		      <td class="currency">$wam.getMtd()</td>
100
	    	 		      <td>$wam.getMtdQty()</td>
101
 
102
 
103
	    				</tr>
104
	    				 #end
105
 
106
	    		    </tbody>
107
	    		</table>
108
		    </div>
109
 
110
</div>
111
 
112
</div>
113
 
114
	<div class="col-lg-6">
115
		<div id="warehouse-activated-table">
116
			<div class="row">
117
    			<div class="col-lg-12 warehouse-brand-activated-item-container">
118
	    		</div>
119
		    </div>
120
		</div>
121
	</div>
122
 
123
 
124
</section>
125
<script type="text/javascript">
126
$(document).ready(function() {
127
 
128
	  var table = $('#warehouseActivatedModel').DataTable( {
129
	        orderCellsTop: true,
130
	        fixedHeader: true
131
	});
132
 
133
 
134
    $('#warehouseActivatedModel tbody').on('click', 'tr', function () {
135
     	var data = table.row( this ).data();
136
     	var brand = $('#brands').val();
137
     	doGetAjaxRequestHandler(context + "/getWarehouseBrandWiseItemActivatedModel?warehouseId="+data[0]+"&brand="+brand, function(response) {
138
			$('.warehouse-brand-activated-item-container').html(response);
139
			console.log(response)
140
		});
141
	});
142
 
143
	$("#warehouse-brand-activated-sale").click(function() {
144
		var brand = $('#brands').val();
145
		doGetAjaxRequestHandler(context + "/getActivatedModelWarehouseWise?brand="+brand, function(response) {
146
			$('#' + "main-content").html(response);
147
			console.log(response)
148
		});
149
	});
150
});
151
 
152
</script>