Subversion Repositories SmartDukaan

Rev

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

Rev 29763 Rev 29774
Line 429... Line 429...
429
		var id = $(row).find("td:eq(0)").text();
429
		var id = $(row).find("td:eq(0)").text();
430
		var firstName = $(row).find("td:eq(1) input[type='text']").val();
430
		var firstName = $(row).find("td:eq(1) input[type='text']").val();
431
		var middleName = $(row).find("td:eq(2) input[type='text']").val();
431
		var middleName = $(row).find("td:eq(2) input[type='text']").val();
432
		var lastName = $(row).find("td:eq(3) input[type='text']").val();
432
		var lastName = $(row).find("td:eq(3) input[type='text']").val();
433
 
433
 
-
 
434
		var fatherName = $(row).find("td:eq(4) input[type='text']").val();
-
 
435
 
434
		var dob = $(row).find("td:eq(4) input[type='date']").val();
436
		var dob = $(row).find("td:eq(5) input[type='date']").val();
435
 
437
 
436
		if (dob != "") {
438
		if (dob != "") {
437
 
439
 
438
			dob = dob + "T00:00:00";
440
			dob = dob + "T00:00:00";
439
		}
441
		}
440
 
442
 
441
		var gender = $(row).find("td:eq(5) option:selected").val();
443
		var gender = $(row).find("td:eq(6) option:selected").val();
442
		var maritalStatus = $(row).find("td:eq(6) option:selected").val();
444
		var maritalStatus = $(row).find("td:eq(7) option:selected").val();
443
 
445
 
444
		var email = $(row).find("td:eq(7) input[type='text']").val();
446
		var email = $(row).find("td:eq(8) input[type='text']").val();
445
 
447
 
446
		var mobile = $(row).find("td:eq(8) input[type='text']").val();
448
		var mobile = $(row).find("td:eq(9) input[type='text']").val();
447
		var pan = $(row).find("td:eq(9) input[type='text']").val();
449
		var pan = $(row).find("td:eq(10) input[type='text']").val();
448
 
450
 
449
 
451
 
450
		var pandocId = $(row).find(".pandoc input[type=hidden]").val();
452
		var pandocId = $(row).find(".pandoc input[type=hidden]").val();
451
 
453
 
452
		var poaNO = $(row).find("td:eq(11) input[type='text']").val();
454
		var poaNO = $(row).find("td:eq(12) input[type='text']").val();
453
		var poaType = $(row).find("td:eq(12) option:selected").val();
455
		var poaType = $(row).find("td:eq(13) option:selected").val();
454
 
456
 
455
		var paoFrontd = $(row).find(".paof input[type=hidden]").val();
457
		var paoFrontd = $(row).find(".paof input[type=hidden]").val();
456
		var paoBackId = $(row).find(".paob input[type=hidden]").val();
458
		var paoBackId = $(row).find(".paob input[type=hidden]").val();
457
 
459
 
458
		var address1 = $(row).find("td:eq(15) input[type='text']").val();
460
		var address1 = $(row).find("td:eq(16) input[type='text']").val();
459
 
461
 
460
		var address2 = $(row).find("td:eq(16) input[type='text']").val();
462
		var address2 = $(row).find("td:eq(17) input[type='text']").val();
461
 
463
 
462
		var address3 = $(row).find("td:eq(17) input[type='text']").val();
464
		var address3 = $(row).find("td:eq(18) input[type='text']").val();
463
 
465
 
464
		var city = $(row).find("td:eq(18) input[type='text']").val();
466
		var city = $(row).find("td:eq(19) input[type='text']").val();
465
 
467
 
466
 
468
 
467
		var state = $(row).find("td:eq(19) input[type='text']").val();
469
		var state = $(row).find("td:eq(20) input[type='text']").val();
468
 
470
 
469
		var pincode = $(row).find("td:eq(20) input[type='text']").val();
471
		var pincode = $(row).find("td:eq(21) input[type='text']").val();
470
 
472
 
471
 
473
 
472
 
474
 
473
		console.log(city)
475
		console.log(city)
474
		if (dob === "") {
476
		if (dob === "") {
Line 480... Line 482...
480
		if (gender === "") {
482
		if (gender === "") {
481
			alert("gender is required");
483
			alert("gender is required");
482
			return;
484
			return;
483
		}
485
		}
484
 
486
 
-
 
487
 
-
 
488
		if (fatherName === "") {
-
 
489
			alert("Father Name is required");
-
 
490
			return;
-
 
491
		}
-
 
492
 
485
		if (maritalStatus === "") {
493
		if (maritalStatus === "") {
486
			alert("Marital Status is required");
494
			alert("Marital Status is required");
487
			return;
495
			return;
488
		}
496
		}
489
 
497
 
Line 555... Line 563...
555
 
563
 
556
		kycDetail['firstName'] = firstName
564
		kycDetail['firstName'] = firstName
557
		kycDetail['middleName'] = middleName
565
		kycDetail['middleName'] = middleName
558
		kycDetail['lastName'] = lastName
566
		kycDetail['lastName'] = lastName
559
 
567
 
-
 
568
		kycDetail['fatherName'] = fatherName
-
 
569
 
560
		kycDetail['dob'] = dob
570
		kycDetail['dob'] = dob
561
		kycDetail['gender'] = gender
571
		kycDetail['gender'] = gender
562
		kycDetail['maritalStatus'] = maritalStatus
572
		kycDetail['maritalStatus'] = maritalStatus
563
		kycDetail['email'] = email
573
		kycDetail['email'] = email
564
		kycDetail['mobile'] = mobile
574
		kycDetail['mobile'] = mobile