Commit 6827fc62 authored by rtiwari's avatar rtiwari

change for campgn no. functionality


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95162 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d169f438
...@@ -76,6 +76,7 @@ public class WoTransferIC extends ValidatorEJB implements WoTransferICLocal,WoTr ...@@ -76,6 +76,7 @@ public class WoTransferIC extends ValidatorEJB implements WoTransferICLocal,WoTr
ResultSet rs = null; ResultSet rs = null;
GenericUtility genericUtility = null; GenericUtility genericUtility = null;
ConnDriver connDriver = null; ConnDriver connDriver = null;
String campNoStr = "";
try try
{ {
genericUtility = GenericUtility.getInstance(); genericUtility = GenericUtility.getInstance();
...@@ -97,6 +98,21 @@ public class WoTransferIC extends ValidatorEJB implements WoTransferICLocal,WoTr ...@@ -97,6 +98,21 @@ public class WoTransferIC extends ValidatorEJB implements WoTransferICLocal,WoTr
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail1>"); valueXmlString.append("<Detail1>");
int childNodeListLength = childNodeList.getLength(); int childNodeListLength = childNodeList.getLength();
if (currentColumn.trim().equalsIgnoreCase("campgn_no"))
{
campNoStr = genericUtility.getColumnValue("campgn_no", dom);
System.out.println("::campgn_no::received -" + campNoStr);
if(campNoStr !=null && campNoStr.trim().length() > 0)
{
valueXmlString.append("<work_order protect='1'>").append("<![CDATA[]]>").append("</work_order>");
valueXmlString.append("<batch_quantity protect='1'></batch_quantity>");
}else
{
valueXmlString.append("<work_order protect='0'>").append("<![CDATA[]]>").append("</work_order>");
valueXmlString.append("<batch_quantity protect='0'></batch_quantity>");
}
}
if (currentColumn.trim().equalsIgnoreCase("loc_code__to")) if (currentColumn.trim().equalsIgnoreCase("loc_code__to"))
{ {
locCode = genericUtility.getColumnValue("loc_code__to", dom); locCode = genericUtility.getColumnValue("loc_code__to", dom);
......
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