Commit 6b08841f authored by kmandhre's avatar kmandhre

set status,mfg_date,exp_date in itm_default


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92311 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5b4c09ff
...@@ -193,7 +193,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu ...@@ -193,7 +193,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
HashMap infoMap = null; HashMap infoMap = null;
String sretLocCode="",taxCal="",itemCodeOrd=""; String sretLocCode="",taxCal="",itemCodeOrd="";
double effCost=0; double effCost=0;
SimpleDateFormat simpleDateFormat = null;
try try
{ {
ITMDBAccessEJB dbEjb = new ITMDBAccessEJB(); ITMDBAccessEJB dbEjb = new ITMDBAccessEJB();
...@@ -208,6 +208,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu ...@@ -208,6 +208,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
connDriver=null; connDriver=null;
simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
switch( currentFormNo ) switch( currentFormNo )
{ {
case 1 : case 1 :
...@@ -259,6 +260,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu ...@@ -259,6 +260,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
{ {
valueXmlString.append("<ret_opt protect =\"0\">").append(retOpt).append("</ret_opt>"); valueXmlString.append("<ret_opt protect =\"0\">").append(retOpt).append("</ret_opt>");
} }
} }
if (currentColumn.trim().equals("itm_default") ) if (currentColumn.trim().equals("itm_default") )
{ {
...@@ -311,6 +313,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu ...@@ -311,6 +313,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
//valueXmlString.append("<ret_opt protect =\"0\">").append("").append("</ret_opt>"); //valueXmlString.append("<ret_opt protect =\"0\">").append("").append("</ret_opt>");
valueXmlString.append("<exch_rate protect =\"0\">").append("0").append("</exch_rate>"); valueXmlString.append("<exch_rate protect =\"0\">").append("0").append("</exch_rate>");
} }
else if (currentColumn.trim().equals("tran_date") ) else if (currentColumn.trim().equals("tran_date") )
{ {
...@@ -885,7 +888,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu ...@@ -885,7 +888,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
valueXmlString.append("<line_no__inv protect =\"0\">").append("<![CDATA["+""+"]]>").append("</line_no__inv>"); valueXmlString.append("<line_no__inv protect =\"0\">").append("<![CDATA["+""+"]]>").append("</line_no__inv>");
valueXmlString.append("<item_code protect =\"1\">").append("<![CDATA["+""+"]]>").append("</item_code>"); valueXmlString.append("<item_code protect =\"1\">").append("<![CDATA["+""+"]]>").append("</item_code>");
} }
valueXmlString.append("<status protect =\"0\">").append("<![CDATA["+"S"+"]]>").append("</status>"); //valueXmlString.append("<status protect =\"0\">").append("<![CDATA["+"S"+"]]>").append("</status>");
valueXmlString.append("<cost_rate protect =\"1\">").append("<![CDATA["+""+"]]>").append("</cost_rate>"); valueXmlString.append("<cost_rate protect =\"1\">").append("<![CDATA["+""+"]]>").append("</cost_rate>");
retOpt = retOpt == null ?"" : retOpt.trim(); retOpt = retOpt == null ?"" : retOpt.trim();
...@@ -941,7 +944,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu ...@@ -941,7 +944,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
{ {
valueXmlString.append("<rate protect =\"1\">").append("<![CDATA[0]]>").append("</rate>"); valueXmlString.append("<rate protect =\"1\">").append("<![CDATA[0]]>").append("</rate>");
} }
valueXmlString.append("<status protect =\"0\">").append("<![CDATA["+""+"]]>").append("</status>"); //valueXmlString.append("<status protect =\"0\">").append("<![CDATA["+""+"]]>").append("</status>");
retOpt = retOpt == null ?"" : retOpt.trim(); retOpt = retOpt == null ?"" : retOpt.trim();
if ("D".equals(retOpt)) if ("D".equals(retOpt))
...@@ -976,6 +979,9 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu ...@@ -976,6 +979,9 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
valueXmlString.append("<tax_env protect =\"0\">").append("<![CDATA[" + ""+"]]>").append("</tax_env>"); valueXmlString.append("<tax_env protect =\"0\">").append("<![CDATA[" + ""+"]]>").append("</tax_env>");
} }
valueXmlString.append("<ret_rep_flag protect =\"1\">").append("<![CDATA[R]]>").append("</ret_rep_flag>"); valueXmlString.append("<ret_rep_flag protect =\"1\">").append("<![CDATA[R]]>").append("</ret_rep_flag>");
valueXmlString.append("<status>").append("<![CDATA[S]]>").append("</status>"); //added by kunal on 7/12/12 as per Manoj instruction
valueXmlString.append("<mfg_date>").append("<![CDATA["+simpleDateFormat.format(new Date(2012, 00,01))+"]]>").append("</mfg_date>");//added by kunal on 7/12/12 as per Manoj instruction
valueXmlString.append("<exp_date>").append("<![CDATA["+simpleDateFormat.format(new Date(2049, 00, 01))+"]]>").append("</exp_date>");//added by kunal on 7/12/12 as per Manoj instruction
} }
else if(currentColumn.trim().equalsIgnoreCase("item_code")) else if(currentColumn.trim().equalsIgnoreCase("item_code"))
......
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