Subversion Repositories SmartDukaan

Rev

Rev 27756 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27756 Rev 27835
Line 1... Line 1...
1
<section>
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,
2
<script type="text/javascript">
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
<script>
-
 
32
    $(function(){
3
$(function(){
33
   
-
 
34
	    
-
 
35
		$("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"}); 
4
	$("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"}); 
36
		$("select.criteria-warehouse").chosen({no_results_text: "Oops, nothing found!"}); 
5
	$("select.criteria-warehouse").chosen({no_results_text: "Oops, nothing found!"}); 
37
		
-
 
38
		
-
 
39
	});
6
});
40
	
-
 
41
	     $('#brand').multiselect({
7
 $('#brand').multiselect({
42
    		includeSelectAllOption: true,
8
	includeSelectAllOption: true,
43
        		multiple:true,
9
		multiple:true,
44
        		maxHeight: 200,
10
		maxHeight: 200,
45
        		buttonWidth: '180px',
11
		buttonWidth: '180px',
46
        		numberDisplayed: 1,
12
		numberDisplayed: 1,
47
        	nonSelectedText: 'Brands',
13
	nonSelectedText: 'Brands',
48
        	nSelectedText: ' - Brand Selected',
14
	nSelectedText: ' - Brand Selected',
49
        	allSelectedText: 'All Brands Selected',
15
	allSelectedText: 'All Brands Selected',
50
        	enableFiltering: true,
16
	enableFiltering: true,
51
	        enableCaseInsensitiveFiltering : true
-
 
52
        });
-
 
53
        
-
 
54
             $('#warehouse').multiselect({
-
 
55
    		includeSelectAllOption: true,
-
 
56
        		multiple:true,
-
 
57
        		maxHeight: 200,
-
 
58
        		buttonWidth: '180px',
-
 
59
        		numberDisplayed: 1,
-
 
60
        	nonSelectedText: 'Warehouse',
-
 
61
        	nSelectedText: ' - Warehouse Selected',
-
 
62
        	allSelectedText: 'All Warehouse Selected',
-
 
63
        	enableFiltering: true,
-
 
64
	        enableCaseInsensitiveFiltering : true
17
    enableCaseInsensitiveFiltering : true
65
        });
18
});
66
        
19
        
-
 
20
$('#warehouse').multiselect({
-
 
21
	includeSelectAllOption: true,
-
 
22
	multiple:true,
-
 
23
	maxHeight: 200,
-
 
24
	buttonWidth: '180px',
-
 
25
	numberDisplayed: 1,
-
 
26
	nonSelectedText: 'Warehouse',
-
 
27
	nSelectedText: ' - Warehouse Selected',
-
 
28
	allSelectedText: 'All Warehouse Selected',
-
 
29
	enableFiltering: true,
-
 
30
    enableCaseInsensitiveFiltering : true
-
 
31
});
-
 
32
$(document).ready(function() {
-
 
33
	$("input.brandWiseSearch").click(function() {
-
 
34
	    var brands = $('#brand').val();
-
 
35
	    var category = $('#categoryName').val();
-
 
36
	    var warehouseId = $('#warehouse').val();
-
 
37
		if (brands == null) {
-
 
38
			alert("select the brand");
-
 
39
			return  false
-
 
40
		}
-
 
41
	    doGetAjaxRequestHandler(context + "/getWarehouseWiseItemStock?warehouseId="+warehouseId+"&brands="+brands+"&category="+category, function(response) {
-
 
42
			$('#warehosueItemStock').html(response);
-
 
43
			console.log(response)
-
 
44
		});
-
 
45
	});
-
 
46
});
67
</script>
47
</script>
68
 
48
 
69
<section class="wrapper">
49
<section class="wrapper">
70
 
50
 
71
 
51
 
Line 80... Line 60...
80
							#if($selectedBrand.contains($brand))						 
60
							#if($selectedBrand.contains($brand))						 
81
				              	<option value="$brand" selected>$brand</option>
61
				              	<option value="$brand" selected>$brand</option>
82
				             #else
62
				             #else
83
		             		<option value="$brand">$brand</option>
63
		             		<option value="$brand">$brand</option>
84
		             		#end
64
		             		#end
85
		             		#end
65
		             	#end
86
		             	</select>
66
		             	</select>
87
					</div>
67
					</div>
88
	      
68
	      
89
	     
69
	     
90
				<div class="col-lg-2 form-group">
70
				<div class="col-lg-2 form-group">
Line 128... Line 108...
128
 
108
 
129
		</div>
109
		</div>
130
					
110
					
131
 
111
 
132
</section>
112
</section>
133
<script type="text/javascript">
-
 
134
 
-
 
135
$(document).ready(function() {
-
 
136
$(document).on('click', ".brandWiseSearch",
-
 
137
			function() {
-
 
138
	
-
 
139
    var brands = $('#brand').val();
-
 
140
    var category = $('#categoryName').val();
-
 
141
    var warehouseId = $('#warehouse').val();
-
 
142
    	if (brands == null) {
-
 
143
					alert("select the brand");
-
 
144
					return  false
-
 
145
				}
-
 
146
          doGetAjaxRequestHandler(context + "/getWarehouseWiseItemStock?warehouseId="+warehouseId+"&brands="+brands+"&category="+category,
-
 
147
			function(response) {
-
 
148
				$('#warehosueItemStock').html(response);
-
 
149
				console.log(response)
-
 
150
			
-
 
151
			});
-
 
152
	});
-
 
153
});
-
 
154
 
-
 
155
</script>
-
 
156
113