Commit 1cbc3372 authored by mjadhav's avatar mjadhav

add date format tag


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98265 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2de677dc
...@@ -136,7 +136,7 @@ public class GenPurcMilestoneSch extends ValidatorEJB implements Schedule { ...@@ -136,7 +136,7 @@ public class GenPurcMilestoneSch extends ValidatorEJB implements Schedule {
//" and not exists (select 1 from PUR_MILSTN i where i.purc_order = po.purc_order and i.line_no__ord = pterm.line_no) " + //" and not exists (select 1 from PUR_MILSTN i where i.purc_order = po.purc_order and i.line_no__ord = pterm.line_no) " +
" and pterm.task_code is not null " " and pterm.task_code is not null "
+ " and po.conf_date + pterm.rel_after <= sysdate"; + " and po.conf_date + pterm.rel_after <= sysdate";
// + " and po.conf_date + pterm.rel_after >= sysdate";//testing purpose //+ " and po.conf_date + pterm.rel_after >= sysdate";//testing purpose
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -556,6 +556,7 @@ public class GenPurcMilestoneSch extends ValidatorEJB implements Schedule { ...@@ -556,6 +556,7 @@ public class GenPurcMilestoneSch extends ValidatorEJB implements Schedule {
xmlBuff.append( "<compl_date><![CDATA[]]></compl_date>"); xmlBuff.append( "<compl_date><![CDATA[]]></compl_date>");
xmlBuff.append( "<allow_override><![CDATA["+allowOverride+"]]></allow_override>"); xmlBuff.append( "<allow_override><![CDATA["+allowOverride+"]]></allow_override>");
xmlBuff.append( "<amount_orig><![CDATA["+calAmt+"]]></amount_orig>"); xmlBuff.append( "<amount_orig><![CDATA["+calAmt+"]]></amount_orig>");
xmlBuff.append( "<date_format><![CDATA["+e12GenericUtility.getApplDateFormat()+"]]></date_format>");
/*xmlBuff.append( "<add_user><![CDATA["+chgUser+"]]></add_user>"); /*xmlBuff.append( "<add_user><![CDATA["+chgUser+"]]></add_user>");
xmlBuff.append( "<add_date><![CDATA["+ sdf.format(currentDate).toString() +"]]></add_date>"); xmlBuff.append( "<add_date><![CDATA["+ sdf.format(currentDate).toString() +"]]></add_date>");
xmlBuff.append( "<add_term><![CDATA["+chgTerm+"]]></add_term>"); xmlBuff.append( "<add_term><![CDATA["+chgTerm+"]]></add_term>");
......
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