Subversion Repositories SmartDukaan

Rev

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

Rev 29841 Rev 29884
Line 642... Line 642...
642
		var row = $(this).closest("tr");
642
		var row = $(this).closest("tr");
643
 
643
 
644
		console.log(row);
644
		console.log(row);
645
 
645
 
646
		var id = $(row).find("td:eq(2)").text();
646
		var id = $(row).find("td:eq(2)").text();
647
		var businessType = $(row).find("td:eq(3) option:selected").val();
647
		var status = $(row).find("td:eq(3) option:selected").val();
648
		var firstName = $(row).find("td:eq(4) input[type='text']").val();
-
 
649
		var middleName = $(row).find("td:eq(5) input[type='text']").val();
-
 
650
		var lastName = $(row).find("td:eq(6) input[type='text']").val();
-
 
651
 
648
 
652
		var fatherName = $(row).find("td:eq(7) input[type='text']").val();
-
 
653
 
649
 
-
 
650
		var businessType = $(row).find("td:eq(4) option:selected").val();
-
 
651
		var firstName = $(row).find("td:eq(5) input[type='text']").val();
-
 
652
		var middleName = $(row).find("td:eq(6) input[type='text']").val();
-
 
653
		var lastName = $(row).find("td:eq(7) input[type='text']").val();
-
 
654
 
-
 
655
		var fatherName = $(row).find("td:eq(8) input[type='text']").val();
-
 
656
 
654
		var dob = $(row).find("td:eq(8) input[type='date']").val();
657
		var dob = $(row).find("td:eq(9) input[type='date']").val();
655
 
658
 
656
		if (dob != "") {
659
		if (dob != "") {
657
 
660
 
658
			dob = dob + "T00:00:00";
661
			dob = dob + "T00:00:00";
659
		}
662
		}
660
 
663
 
661
		var gender = $(row).find("td:eq(9) option:selected").val();
664
		var gender = $(row).find("td:eq(10) option:selected").val();
662
		var maritalStatus = $(row).find("td:eq(10) option:selected").val();
665
		var maritalStatus = $(row).find("td:eq(11) option:selected").val();
663
 
666
 
664
		var email = $(row).find("td:eq(11) input[type='text']").val();
667
		var email = $(row).find("td:eq(12) input[type='text']").val();
665
 
668
 
666
		var mobile = $(row).find("td:eq(12) input[type='text']").val();
669
		var mobile = $(row).find("td:eq(13) input[type='text']").val();
667
		var pan = $(row).find("td:eq(13) input[type='text']").val();
670
		var pan = $(row).find("td:eq(14) input[type='text']").val();
668
 
671
 
669
 
672
 
670
		var pandocId = $(row).find(".pandoc input[type=hidden]").val();
673
		var pandocId = $(row).find(".pandoc input[type=hidden]").val();
671
 
674
 
672
		var poaNO = $(row).find("td:eq(15) input[type='text']").val();
675
		var poaNO = $(row).find("td:eq(16) input[type='text']").val();
673
		var poaType = $(row).find("td:eq(16) option:selected").val();
676
		var poaType = $(row).find("td:eq(17) option:selected").val();
674
 
677
 
675
		var paoFrontd = $(row).find(".paof input[type=hidden]").val();
678
		var paoFrontd = $(row).find(".paof input[type=hidden]").val();
676
		var paoBackId = $(row).find(".paob input[type=hidden]").val();
679
		var paoBackId = $(row).find(".paob input[type=hidden]").val();
677
 
680
 
678
		var address1 = $(row).find("td:eq(19) input[type='text']").val();
681
		var address1 = $(row).find("td:eq(20) input[type='text']").val();
679
 
682
 
680
		var address2 = $(row).find("td:eq(20) input[type='text']").val();
683
		var address2 = $(row).find("td:eq(21) input[type='text']").val();
681
 
684
 
682
		var address3 = $(row).find("td:eq(21) input[type='text']").val();
685
		var address3 = $(row).find("td:eq(22) input[type='text']").val();
683
 
686
 
684
		var city = $(row).find("td:eq(22) input[type='text']").val();
687
		var city = $(row).find("td:eq(23) input[type='text']").val();
685
 
688
 
686
 
689
 
687
		var state = $(row).find("td:eq(23) input[type='text']").val();
690
		var state = $(row).find("td:eq(24) input[type='text']").val();
688
 
691
 
689
		var pincode = $(row).find("td:eq(24) input[type='text']").val();
692
		var pincode = $(row).find("td:eq(25) input[type='text']").val();
690
 
693
 
691
 
694
 
692
 
695
 
693
		console.log(city)
696
		console.log(city)
694
		if (dob === "") {
697
		if (dob === "") {
Line 776... Line 779...
776
			return;
779
			return;
777
		}
780
		}
778
 
781
 
779
		var kycDetail = {};
782
		var kycDetail = {};
780
		kycDetail['id'] = id
783
		kycDetail['id'] = id
-
 
784
		kycDetail['status'] = status
781
		kycDetail['businessType'] = businessType
785
		kycDetail['businessType'] = businessType
782
		kycDetail['firstName'] = firstName
786
		kycDetail['firstName'] = firstName
783
		kycDetail['middleName'] = middleName
787
		kycDetail['middleName'] = middleName
784
		kycDetail['lastName'] = lastName
788
		kycDetail['lastName'] = lastName
785
 
789