Subversion Repositories SmartDukaan

Rev

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

Rev 28977 Rev 29007
Line 199... Line 199...
199
			receeActual = receeActual + "T00:00:00";
199
			receeActual = receeActual + "T00:00:00";
200
		}
200
		}
201
		console.log("receeActual" + receeActual);
201
		console.log("receeActual" + receeActual);
202
 
202
 
203
 
203
 
204
 
-
 
205
		var twoDBoqPlanedDate = $(row).find("td:eq(16) input[type='date']").val();
204
		var twoDBoqPlanedDate = $(row).find("td:eq(16) input[type='date']").val();
206
		if (twoDBoqPlanedDate != "") {
205
		if (twoDBoqPlanedDate != "") {
207
			twoDBoqPlanedDate = twoDBoqPlanedDate + "T00:00:00";
206
			twoDBoqPlanedDate = twoDBoqPlanedDate + "T00:00:00";
208
		}
207
		}
209
 
208
 
Line 638... Line 637...
638
		}
637
		}
639
 
638
 
640
	});
639
	});
641
	$(document).on('click', ".design-complete", function() {
640
	$(document).on('click', ".design-complete", function() {
642
		var id = $(this).data('id');
641
		var id = $(this).data('id');
-
 
642
		var row = $(this).closest("tr");
643
		console.log('helo');
643
		console.log('helo');
-
 
644
		var receeActual = $(row).find("td:eq(14) input[type='date']").val();
-
 
645
		if (receeActual != "") {
-
 
646
			receeActual = receeActual + "T00:00:00";
-
 
647
		}
-
 
648
		var twoDBoqdate = $(row).find("td:eq(17) input[type='date']").val();
-
 
649
		if (twoDBoqdate != "") {
-
 
650
			twoDBoqdate = twoDBoqdate + "T00:00:00";
-
 
651
		}
-
 
652
		
-
 
653
		var poVenderDate = $(row).find("td:eq(23) input[type='date']").val();
-
 
654
		if (poVenderDate != "") {
-
 
655
			poVenderDate = poVenderDate + "T00:00:00";
-
 
656
		}
-
 
657
		var briefingPartner = $(row).find("td:eq(25) input[type='date']").val();
-
 
658
		if (briefingPartner != "") {
-
 
659
			briefingPartner = briefingPartner + "T00:00:00";
-
 
660
		}
-
 
661
		
-
 
662
		var deploymentDate = $(row).find("td:eq(27) input[type='date']").val();
-
 
663
		if (deploymentDate != "") {
-
 
664
			deploymentDate = deploymentDate + "T00:00:00";
-
 
665
		}
-
 
666
		
-
 
667
		var nocDate = $(row).find("td:eq(31) input[type='date']").val();
-
 
668
		if (nocDate != "") {
-
 
669
			nocDate = nocDate + "T00:00:00";
-
 
670
		}
-
 
671
		
-
 
672
		if(receeActual =="")
-
 
673
		{
-
 
674
			alert("Please Fill The Recee Actual Date");
-
 
675
			return
-
 
676
			
-
 
677
		}
-
 
678
		if(twoDBoqdate =="")
-
 
679
		{
-
 
680
			alert("Please Fill The 2D with BOQ Actual Date");
-
 
681
			return
-
 
682
			
-
 
683
		}
-
 
684
		if(poVenderDate =="")
-
 
685
		{
-
 
686
			alert("Please Fill The PO To Vendor Actual Date");
-
 
687
			return
-
 
688
			
-
 
689
		}
-
 
690
		if(briefingPartner=="")
-
 
691
		{
-
 
692
			alert("Please Fill The Briefing Partner Actual Date ");
-
 
693
			return
-
 
694
			
-
 
695
		}
-
 
696
		
-
 
697
		if(deploymentDate=="")
-
 
698
		{
-
 
699
			alert("Please Fill The Deployment Actual Date ");
-
 
700
			return
-
 
701
			
-
 
702
		}
-
 
703
		if(nocDate =="")
-
 
704
		{
-
 
705
			alert("Please Fill The NOC Actual Date ");
-
 
706
			return
-
 
707
			
-
 
708
		}
-
 
709
		
-
 
710
		
-
 
711
		
644
		var id = $(this).data('id');
712
		var id = $(this).data('id');
645
		console.log(id);
713
		console.log(id);
646
		if (confirm("Are you sure your Design TAT is Complete") == true) {
714
		if (confirm("Are you sure your Design TAT is Complete") == true) {
647
			doPostAjaxRequestHandler(context + "/partnerDesignTatCompleted?id=" + id,
715
			doPostAjaxRequestHandler(context + "/partnerDesignTatCompleted?id=" + id,
648
				function(response) {
716
				function(response) {