Subversion Repositories SmartDukaan

Rev

Rev 28477 | Rev 30080 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28477 Rev 29103
Line 16... Line 16...
16
			console.log(startDate);
16
			console.log(startDate);
17
			console.log(addValue)
17
			console.log(addValue)
18
 
18
 
19
			doGetAjaxRequestHandler(context
19
			doGetAjaxRequestHandler(context
20
				+ "/getPlacementPlanByCatalogId?catalogItemIds=" +
20
				+ "/getPlacementPlanByCatalogId?catalogItemIds=" +
21
				catalogIds + "&addValue=" + addValue + "&subValue=" + subValue + "&date=" + startDate + "&warehouseId="  + warehouseId,
21
				catalogIds + "&addValue=" + addValue + "&subValue=" + subValue + "&date=" + startDate + "&warehouseId=" + warehouseId,
22
				function(response) {
22
				function(response) {
23
					$('.' + "placement-plan-detail").html(response);
23
					$('.' + "placement-plan-detail").html(response);
24
					console.log(response)
24
					console.log(response)
25
				});
25
				});
26
		});
26
		});
27
 
27
 
28
 
28
 
-
 
29
	$(document).on('click', ".mk_fetch_plan",
-
 
30
		function() {
-
 
31
 
-
 
32
			var catalogIds = $('.criteria-item-catalogids').val();
-
 
33
			console.log(catalogIds);
-
 
34
			var addValue = $('#addRange').val();
-
 
35
			var subValue = $('#subNumber').val();
-
 
36
			var startDateTime = $('input[name="saleDate"]').val();
-
 
37
 
-
 
38
			var warehouseId = $('#warehouseMap').val();
-
 
39
 
-
 
40
			window.location.href = context + "/placementPlan/statement?catalogItemIds=" +
-
 
41
				catalogIds + "&addValue=" + addValue + "&subValue=" + subValue + "&date=" + startDate + "&warehouseId=" + warehouseId;
-
 
42
 
-
 
43
		});
-
 
44
 
-
 
45
 
29
	$(document).on('click', ".resetValue",
46
	$(document).on('click', ".resetValue",
30
		function() {
47
		function() {
31
			$('#addRange').val(0);
48
			$('#addRange').val(0);
32
			$('#subNumber').val(0);
49
			$('#subNumber').val(0);
33
		});
50
		});