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 {
Timestamp parsedReschDate = null;
int lineNo = 0;
String complDate="";
String dueDateOrgStr = "",taskCode = "";
String dueDateOrgStr = "",taskCode = "",taskCodeCurr = "";
Document dom = null;
PreparedStatement pstmt = null,pstmt1 = null,pstmt2 = null;
ResultSet rs=null,rs2=null;
......@@ -77,8 +77,8 @@ public class POrderMilestone extends ValidatorEJB {
}
if(childNodeName.equalsIgnoreCase("task_code"))
{
taskCode = checkNull(genericUtility.getColumnValue("task_code",dom));
System.out.println("taskCode--->["+taskCode+"]");
taskCodeCurr = checkNull(genericUtility.getColumnValue("task_code",dom));
System.out.println("taskCode--->["+taskCodeCurr+"]");
}
if(childNodeName.equalsIgnoreCase("due_date"))
......@@ -165,32 +165,34 @@ public class POrderMilestone extends ValidatorEJB {
pstmt1.setString(1,tranIdPending);
pstmt1.setInt(2,lineNo);
pstmt1.setInt(3,delayDays);
pstmt1.setString(4,taskCode);
pstmt1.setTimestamp(5,dueDateHeader);
pstmt1.setTimestamp(6,reschDate);
pstmt1.setString(4,taskCodeCurr);
pstmt1.setTimestamp(5,dueDateOrg);
pstmt1.setTimestamp(6,parsedReschDate);
count = pstmt1.executeUpdate();
pstmt1.close();
pstmt1 = null;
System.out.println("NO. OF RECORDS INSERTED==== "+count);
}
rs.close();
rs=null;
pstmt.close();
pstmt=null;
/* *//*****Updating the due date for the ongoing task in header table***//*
//*****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);
pstmt1.setTimestamp(1,reschDate);
pstmt1.setString(2,tranIdPending);
count1 = pstmt1.executeUpdate();
pstmt1.close();
pstmt1 = null;
System.out.println("NO. OF RECORDS updated==== "+count1);*/
System.out.println("NO. OF RECORDS updated==== "+count1);
}
rs.close();
rs=null;
pstmt.close();
pstmt=null;
}
......
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