Subversion Repositories SmartDukaan

Rev

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

Rev 33233 Rev 33305
Line 18... Line 18...
18
 
18
 
19
	$(document).on('click', ".online-order", function() {
19
	$(document).on('click', ".online-order", function() {
20
		loadOnlineOrder("main-content");
20
		loadOnlineOrder("main-content");
21
	});
21
	});
22
 
22
 
-
 
23
 
-
 
24
	$(document).on('click', ".b2c-customer-list", function () {
-
 
25
		loadAllB2CUsersList("main-content");
-
 
26
	});
-
 
27
 
-
 
28
	$(document).on('click', ".fetch-data", function () {
-
 
29
		loadAllB2CUsersListByDate("main-content");
-
 
30
	});
-
 
31
 
23
	$(document).on('click', ".billed_order_item", function() {
32
	$(document).on('click', ".billed_order_item", function() {
24
		console.log("Helloo")
33
		console.log("Helloo")
25
		loadBilledOrder("main-content");
34
		loadBilledOrder("main-content");
26
	});
35
	});
27
 
36
 
Line 653... Line 662...
653
 
662
 
654
	});
663
	});
655
}
664
}
656
 
665
 
657
 
666
 
-
 
667
function loadAllB2CUsersList(domId) {
-
 
668
 
-
 
669
	doGetAjaxRequestHandler(`${context}/getB2cUserslist`, function (response) {
-
 
670
		$('#' + domId).html(response);
-
 
671
 
-
 
672
	});
-
 
673
}
-
 
674
 
-
 
675
function loadAllB2CUsersListByDate(domId) {
-
 
676
	var startDate = $("#startDate-b2c-user").val();
-
 
677
 
-
 
678
	var endDate = $("#endDate-b2c-user").val();
-
 
679
	if (startDate == "" || startDate == undefined) {
-
 
680
		alert("start date is not be empty!!");
-
 
681
		return;
-
 
682
	}
-
 
683
	if (endDate == "" || endDate == undefined) {
-
 
684
 
-
 
685
		alert("end date is not be empty!!");
-
 
686
		return;
-
 
687
	}
-
 
688
	doGetAjaxRequestHandler(`${context}/getB2cUserslistByDate?startDate=${startDate}&endDate=${endDate}`, function (response) {
-
 
689
		$('#' + domId).html(response);
-
 
690
 
-
 
691
	});
-
 
692
}
-
 
693
 
658
 
694
 
659
function loadUnsettledOrder(domId) {
695
function loadUnsettledOrder(domId) {
660
	doGetAjaxRequestHandler(context + "/unsettledOrders", function(response) {
696
	doGetAjaxRequestHandler(context + "/unsettledOrders", function(response) {
661
		$('#' + domId).html(response);
697
		$('#' + domId).html(response);
662
 
698