Subversion Repositories SmartDukaan

Rev

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

Rev 27836 Rev 27842
Line 109... Line 109...
109
		var jsonObject = JSON.stringify(prebookingListingObject);
109
		var jsonObject = JSON.stringify(prebookingListingObject);
110
 
110
 
111
		console.log(jsonObject);
111
		console.log(jsonObject);
112
 
112
 
113
		if (confirm("Are you sure you want to submit the request") == true) {
113
		if (confirm("Are you sure you want to submit the request") == true) {
114
 
-
 
115
 
-
 
116
			doAjaxRequestWithJsonHandler(
-
 
117
				context
-
 
118
				+ "/partnerOnBoardingListing",
-
 
119
				"POST",
-
 
120
				jsonObject,
-
 
121
				function(response) {
-
 
122
 
-
 
123
					console.log("reponse" + response);
-
 
124
					if (response == 'true') {
-
 
125
							alert("successfully submit");
-
 
126
							panelListing("main-content");
-
 
127
 
-
 
128
						//doGetAjaxRequestHandler(context + "/partnerOnBoardingPanelById?id=" + data0,
114
			doAjaxRequestWithJsonHandler(context + "/partnerOnBoardingListing","POST",jsonObject,function(response) {
129
						//	function(response) {
115
		    	row.html(response);
130
//								console.log(response)
-
 
131
 
-
 
132
								//$('#example').DataTable().row.add(response).draw(false);
-
 
133
							//	$('#example').dataTable().fnUpdate(response,0, undefined, false);
-
 
134
 
-
 
135
 
-
 
136
							//});
-
 
137
					}
-
 
138
				});
116
			});
139
 
-
 
140
		}
117
		}
141
 
118
 
142
	});
119
	});
-
 
120
	
143
 
121
 
144
 
122
 
145
 
123
 
146
	$(document).on('click', ".partner-onboarding-index", function() {
124
	$(document).on('click', ".partner-onboarding-index", function() {
147
		panelListing("main-content");
125
		panelListing("main-content");
Line 195... Line 173...
195
			context
173
			context
196
			+ "/partnerOnBoardingListing",
174
			+ "/partnerOnBoardingListing",
197
			"POST",
175
			"POST",
198
			json,
176
			json,
199
			function(response) {
177
			function(response) {
200
 
178
				
201
				console.log("reponse" + response);
-
 
202
				if (response == 'true') {
-
 
203
					alert("successfully submit");
-
 
204
					panelListing("main-content");
179
					panelListing("main-content");
205
				}
180
				
206
 
181
 
207
			});
182
			});
208
	});
183
	});
209
 
184
 
210
	var table = $('#example').DataTable();
185
	var table = $('#example').DataTable();
Line 310... Line 285...
310
		function(response) {
285
		function(response) {
311
			$('#' + domId).html(response);
286
			$('#' + domId).html(response);
312
		});
287
		});
313
 
288
 
314
}
289
}
-
 
290
 function partnerOnBoardingListingJson() {
-
 
291
            var prebookingListingObject = {};
-
 
292
            prebookingListingObject['outletName'] = $('#outLetName1').val();
-
 
293
            prebookingListingObject['phoneNumber'] = $('#number1').val();
-
 
294
            acquireddate1 =$('#acquireddate1').val();
-
 
295
            if (acquireddate1 != "") {
-
 
296
                acquireddate1 = acquireddate1 + "T00:00:00";
-
 
297
            }
-
 
298
            
-
 
299
             prebookingListingObject['acquiredDate']=acquireddate1
-
 
300
            return JSON.stringify(prebookingListingObject);
-
 
301
        }
315
 
302
 
-
 
303
 
-
 
304
        function panelListing(domId) {
-
 
305
            doAjaxRequestHandler(context + "/partnerOnBoardingPanel", "GET",
-
 
306
                    function (response) {
-
 
307
                        $('#' + domId).html(response);
-
 
308
                    });
-
 
309
        }
316
 
310
 
317
 
311
 
318
 
312
 
319
 
313