Commit c0675a9e authored by vdhoble's avatar vdhoble

D15CSUN015-due date recalculation changes...

added new field date_format for dynamic value of application date format


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98274 ce508802-f39f-4f6c-b175-0d175dae99d5
parent edf682cf
...@@ -51,7 +51,7 @@ public class POrderMilestone extends ValidatorEJB { ...@@ -51,7 +51,7 @@ public class POrderMilestone extends ValidatorEJB {
Timestamp dueDateHeader = null,reschDate = null; Timestamp dueDateHeader = null,reschDate = null;
Timestamp complDateNew = null,dueDateOrg = null; Timestamp complDateNew = null,dueDateOrg = null;
String retString = "SUCCESS"; String retString = "SUCCESS";
String sqlResch =""; String sqlResch ="",dateFormat = "";
System.out.println("xmlString DOM-->>["+xmlDataAll+"]"); System.out.println("xmlString DOM-->>["+xmlDataAll+"]");
try try
{ {
...@@ -87,17 +87,23 @@ public class POrderMilestone extends ValidatorEJB { ...@@ -87,17 +87,23 @@ public class POrderMilestone extends ValidatorEJB {
System.out.println("dueDateOrgStr--->["+dueDateOrgStr+"]"); System.out.println("dueDateOrgStr--->["+dueDateOrgStr+"]");
} }
if(childNodeName.equalsIgnoreCase("date_format"))
{
dateFormat = checkNull(genericUtility.getColumnValue("date_format",dom));
System.out.println("dateFormat--->["+dateFormat+"]");
}
} }
if(complDate.length() > 0)//completion date is not null if(complDate.length() > 0)//completion date is not null
{ {
complDateNew = Timestamp.valueOf(genericUtility.getValidDateString(complDate, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0"); complDateNew = Timestamp.valueOf(genericUtility.getValidDateString(complDate, dateFormat,genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("completionDate ====parsed into sql format:::::"+complDateNew); System.out.println("completionDate ====parsed into sql format:::::"+complDateNew);
} }
if(dueDateOrgStr.length() > 0) if(dueDateOrgStr.length() > 0)
{ {
dueDateOrg = Timestamp.valueOf(genericUtility.getValidDateString(dueDateOrgStr, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0"); dueDateOrg = Timestamp.valueOf(genericUtility.getValidDateString(dueDateOrgStr,dateFormat,genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("Due Date Original ====parsed into sql format:::==="+dueDateOrg); System.out.println("Due Date Original ====parsed into sql format:::==="+dueDateOrg);
} }
......
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