Commit a67150af authored by vdhoble's avatar vdhoble

Changes done for taskcode - D15CSUN014


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98364 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 760183d4
...@@ -41,7 +41,7 @@ public class POrderMilestone extends ValidatorEJB { ...@@ -41,7 +41,7 @@ public class POrderMilestone extends ValidatorEJB {
Timestamp parsedReschDate = null; Timestamp parsedReschDate = null;
int lineNo = 0; int lineNo = 0;
String complDate=""; String complDate="";
String dueDateOrgStr = "",taskCode = ""; String dueDateOrgStr = "",taskCode = "",taskCodeCurr = "";
Document dom = null; Document dom = null;
PreparedStatement pstmt = null,pstmt1 = null,pstmt2 = null; PreparedStatement pstmt = null,pstmt1 = null,pstmt2 = null;
ResultSet rs=null,rs2=null; ResultSet rs=null,rs2=null;
...@@ -77,8 +77,8 @@ public class POrderMilestone extends ValidatorEJB { ...@@ -77,8 +77,8 @@ public class POrderMilestone extends ValidatorEJB {
} }
if(childNodeName.equalsIgnoreCase("task_code")) if(childNodeName.equalsIgnoreCase("task_code"))
{ {
taskCode = checkNull(genericUtility.getColumnValue("task_code",dom)); taskCodeCurr = checkNull(genericUtility.getColumnValue("task_code",dom));
System.out.println("taskCode--->["+taskCode+"]"); System.out.println("taskCode--->["+taskCodeCurr+"]");
} }
if(childNodeName.equalsIgnoreCase("due_date")) if(childNodeName.equalsIgnoreCase("due_date"))
...@@ -165,14 +165,26 @@ public class POrderMilestone extends ValidatorEJB { ...@@ -165,14 +165,26 @@ public class POrderMilestone extends ValidatorEJB {
pstmt1.setString(1,tranIdPending); pstmt1.setString(1,tranIdPending);
pstmt1.setInt(2,lineNo); pstmt1.setInt(2,lineNo);
pstmt1.setInt(3,delayDays); pstmt1.setInt(3,delayDays);
pstmt1.setString(4,taskCode); pstmt1.setString(4,taskCodeCurr);
pstmt1.setTimestamp(5,dueDateHeader); pstmt1.setTimestamp(5,dueDateOrg);
pstmt1.setTimestamp(6,reschDate); pstmt1.setTimestamp(6,parsedReschDate);
count = pstmt1.executeUpdate(); count = pstmt1.executeUpdate();
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
System.out.println("NO. OF RECORDS INSERTED==== "+count); System.out.println("NO. OF RECORDS INSERTED==== "+count);
//*****Updating the due date for the ongoing task in header table***//*
sql = "update pur_milstn set due_date = ? where tran_id = ?";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setTimestamp(1,reschDate);
pstmt1.setString(2,tranIdPending);
count1 = pstmt1.executeUpdate();
pstmt1.close();
pstmt1 = null;
System.out.println("NO. OF RECORDS updated==== "+count1);
} }
rs.close(); rs.close();
rs=null; rs=null;
...@@ -180,17 +192,7 @@ public class POrderMilestone extends ValidatorEJB { ...@@ -180,17 +192,7 @@ public class POrderMilestone extends ValidatorEJB {
pstmt=null; pstmt=null;
/* *//*****Updating the due date for the ongoing task in header table***//*
sql = "update pur_milstn set due_date = ? where tran_id = ?";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setTimestamp(1,parsedReschDate);
pstmt1.setString(2,tranId);
count1 = pstmt1.executeUpdate();
pstmt1.close();
pstmt1 = null;
System.out.println("NO. OF RECORDS updated==== "+count1);*/
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment