Subversion Repositories SmartDukaan

Rev

Rev 27509 | Rev 27538 | Go to most recent revision | Details | Compare with Previous | 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
 
27529 tejbeer 31
<script>
32
    $(function(){
33
 
34
		$("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"}); 
35
 
36
	});
37
</script>
38
 
27509 tejbeer 39
<section class="wrapper">
40
 
27529 tejbeer 41
 
42
 
43
 
44
 
45
    	<div class="row">
46
    	  <div class="col-lg-2">
47
			 <select  multiple="multiple" name="brands" id="brands" data-placeholder="Choose Brands" class="chosen-select criteria-brands">
48
				#foreach ($brand in $brands)	
49
				#if($selectedBrand.contains($brand))						 
50
					<option value="$brand" selected>$brand</option>
51
					#else
52
					<option value="$brand" >$brand</option>
53
					#end
54
			    #end
55
			</select>
56
	      </div>
57
 
58
	      <div class="col-lg-2">
59
			<input class="btn btn-primary brandWiseSearch"  type="button" value="submit">	
60
		  </div>
61
 
27509 tejbeer 62
		</div>
63
 
64
        <div class="row">
65
			<div class="col-lg-12">
66
				 <table id="warehouseBrandItemStock" class="table table-striped table-advance table-hover">
67
				 <thead>
68
	    			<tr>
69
	    				<th>Item</th>
27529 tejbeer 70
	    				<th>Unit Price</th>
27509 tejbeer 71
	    				<th>Stock Qty</th>
72
	    				<th>Stock Value</th>
27529 tejbeer 73
	    				<th>Pending Indent</th>
27509 tejbeer 74
	    			 </tr>
75
				 </thead>
76
	    			<tbody>
77
	    			    #foreach($key in $warehouseWiseItemStock)
78
	    				<tr>
79
	    	 		     <td>$key.getBrand() $key.getModelName() $key.getModelNumber() $key.getColor()</td>
27529 tejbeer 80
	    	 		     <td>$key.getUnitPrice()</td>
27509 tejbeer 81
	    	 		     <td>$key.getStockQty()</td>
82
	    	 		     <td class="currency">$key.getStockValue()</td> 
27529 tejbeer 83
	    	 		      <td>$key.getPendingIndent()</td>
27509 tejbeer 84
	    				</tr>
85
	    				 #end
86
 
87
	    		    </tbody>
88
	    		</table>
89
			</div>
90
		</div>
91
 
92
 
93
</section>
94
<script type="text/javascript">
95
$(document).ready(function() {
27529 tejbeer 96
    indentable = $('#warehouseBrandItemStock').DataTable();
27509 tejbeer 97
});
98
 
99
$(document).ready(function() {
27529 tejbeer 100
$(".brandWiseSearch")
27509 tejbeer 101
		.live(
102
			'click',
103
			function() {
27529 tejbeer 104
	var warehouseId = $warehouseId;
105
    var brands = $('#brands').val();
106
 
107
    	if (brands == null) {
108
					alert("select the brand");
109
					return  false
110
				}
111
          doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandItemStock?warehouseId="+warehouseId+"&brands="+brands,
27509 tejbeer 112
			function(response) {
27529 tejbeer 113
				$('.warehouse-brand-item-container').html(response);
27509 tejbeer 114
				console.log(response)
27529 tejbeer 115
 
27509 tejbeer 116
			});
27529 tejbeer 117
	});
27509 tejbeer 118
});
27529 tejbeer 119
 
27509 tejbeer 120
</script>