Subversion Repositories SmartDukaan

Rev

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

Rev 29213 Rev 29214
Line 4... Line 4...
4
 
4
 
5
		console.log("Hello");
5
		console.log("Hello");
6
		partnerDealerMapping("main-content");
6
		partnerDealerMapping("main-content");
7
 
7
 
8
	});
8
	});
9
	
9
 
10
	$(document).on('click', ".partner-onboarding-legal-index", function() {
10
	$(document).on('click', ".partner-onboarding-legal-index", function() {
11
 
11
 
12
		console.log("Hello");
12
		console.log("Hello");
13
		partnerOnboardingLegal("main-content");
13
		partnerOnboardingLegal("main-content");
14
 
14
 
Line 217... Line 217...
217
				partnerVerficationObject['onboardingId'] = onboardingId
217
				partnerVerficationObject['onboardingId'] = onboardingId
218
				partnerVerficationObject['comment'] = comment
218
				partnerVerficationObject['comment'] = comment
219
				partnerVerficationObject['nocGt'] = nocGt
219
				partnerVerficationObject['nocGt'] = nocGt
220
				partnerVerficationObject['rbmReason'] = rbmReason
220
				partnerVerficationObject['rbmReason'] = rbmReason
221
 
221
 
222
				partnerVerficationObject['nocDocument'] =	nocDocument
222
				partnerVerficationObject['nocDocument'] = nocDocument
223
 
223
 
224
				partnerVerficationObject['approval'] = approval
224
				partnerVerficationObject['approval'] = approval
225
 
225
 
226
				var jsonObject = JSON
226
				var jsonObject = JSON
227
					.stringify(partnerVerficationObject);
227
					.stringify(partnerVerficationObject);
Line 233... Line 233...
233
						+ "/partnerVerificationSubmit", "POST",
233
						+ "/partnerVerificationSubmit", "POST",
234
						jsonObject, function(response) {
234
						jsonObject, function(response) {
235
 
235
 
236
							if (response == 'true') {
236
							if (response == 'true') {
237
 
237
 
238
									partnerOnboardingVerification("main-content");
238
								partnerOnboardingVerification("main-content");
239
									}
239
							}
240
								else {
240
							else {
241
									row.html(response);
241
								row.html(response);
242
									row.css("background-color", "#F8F8FF");
242
								row.css("background-color", "#F8F8FF");
243
								}
243
							}
244
 
244
 
245
							});
245
						});
246
				}
246
				}
247
 
247
 
248
			});
248
			});
249
 
249
 
250
	$(document)
250
	$(document)
Line 333... Line 333...
333
		} else {
333
		} else {
334
			// Do nothing!
334
			// Do nothing!
335
		}
335
		}
336
	});
336
	});
337
 
337
 
338
	
338
 
339
	
339
 
340
	$(document).on('input', 'table#onboardingLegal input[type=file]', function() {
340
	$(document).on('input', 'table#onboardingLegal input[type=file]', function() {
341
		if (confirm('Confirm upload ?')) {
341
		if (confirm('Confirm upload ?')) {
342
			var fileSelector = $(this)[0];
342
			var fileSelector = $(this)[0];
343
			if (fileSelector != undefined
343
			if (fileSelector != undefined
344
				&& fileSelector.files[0] != undefined) {
344
				&& fileSelector.files[0] != undefined) {
Line 364... Line 364...
364
		} else {
364
		} else {
365
			// Do nothing!
365
			// Do nothing!
366
		}
366
		}
367
	});
367
	});
368
 
368
 
369
	
369
 
370
	
370
 
371
	$(document).on('input', 'table#onboardingLegal input[type=file]', function() {
371
	$(document).on('input', 'table#onboardingLegal input[type=file]', function() {
372
		if (confirm('Confirm upload ?')) {
372
		if (confirm('Confirm upload ?')) {
373
			var fileSelector = $(this)[0];
373
			var fileSelector = $(this)[0];
374
			if (fileSelector != undefined
374
			if (fileSelector != undefined
375
				&& fileSelector.files[0] != undefined) {
375
				&& fileSelector.files[0] != undefined) {
Line 395... Line 395...
395
		} else {
395
		} else {
396
			// Do nothing!
396
			// Do nothing!
397
		}
397
		}
398
	});
398
	});
399
 
399
 
400
	
400
 
401
		$(document).on('input', 'table#onboardingLegal input[type=file]', function() {
-
 
402
		if (confirm('Confirm upload ?')) {
-
 
403
			var fileSelector = $(this)[0];
-
 
404
			if (fileSelector != undefined
-
 
405
				&& fileSelector.files[0] != undefined) {
-
 
406
				var url = `${context}/document-upload`;
-
 
407
				console.log(url);
-
 
408
				var file = this.files[0];
-
 
409
				console.log("file" + file);
-
 
410
				let fileInput = $(this);
-
 
411
				console.log("fileInput" + file);
-
 
412
				doAjaxUploadRequestHandler(
-
 
413
					url,
-
 
414
					'POST',
-
 
415
					file,
-
 
416
					function(response) {
-
 
417
						console.log(response);
-
 
418
						var documentId = response.response.document_id;
-
 
419
						console.log("documentId : " + documentId);
-
 
420
						fileInput.closest('td').find("input[type=hidden]").val(documentId);
-
 
421
					});
-
 
422
				// alert("Retailer Shop Document
-
 
423
				// is required");
-
 
424
			}
-
 
425
		} else {
-
 
426
			// Do nothing!
-
 
427
		}
401
 
428
	});
-
 
429
	$(document)
402
	$(document)
430
		.on(
403
		.on(
431
			'click',
404
			'click',
432
			".submit-legal",
405
			".submit-legal",
433
			function() {
406
			function() {
Line 445... Line 418...
445
				var cancheque = $(row).find(".cancheque input[type=hidden]").val();
418
				var cancheque = $(row).find(".cancheque input[type=hidden]").val();
446
				var rent = $(row).find(".rent input[type=hidden]").val();
419
				var rent = $(row).find(".rent input[type=hidden]").val();
447
				var loi = $(row).find(".loi input[type=hidden]").val();
420
				var loi = $(row).find(".loi input[type=hidden]").val();
448
				var docCompleted = $(row).find("td:eq(12) option:selected").val();
421
				var docCompleted = $(row).find("td:eq(12) option:selected").val();
449
 
422
 
450
 
-
 
-
 
423
				console.log(aadhar)
451
 
424
 
452
				var anniversaryDate = $(row).find("td:eq(13) input[type='date']").val();
425
				var anniversaryDate = $(row).find("td:eq(13) input[type='date']").val();
453
 
426
 
454
				if (anniversaryDate != "") {
427
				if (anniversaryDate != "") {
455
					anniversaryDate = anniversaryDate + "T00:00:00";
428
					anniversaryDate = anniversaryDate + "T00:00:00";