Commit e672c77b authored by kshinde's avatar kshinde

Make header columns protected on IC of Detail columns

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@190797 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7ac7b602
......@@ -4311,33 +4311,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
ctr = 0;
reStr = itemChanged(dom1, dom1, dom2, "1","itm_defaultedit", editFlag, xtraParams);
reStr=reStr.substring(reStr.indexOf("<Detail1>"), reStr.indexOf("</Detail1>"));
System.out.println("Detail 1String"+reStr);
valueXmlString = new StringBuffer(
"<?xml version = \"1.0\"?> <Root> <header> <editFlag>");
valueXmlString.append(editFlag).append("</editFlag> </header>");
valueXmlString.append(reStr);
sundryCodePay = genericUtility.getColumnValue("sundry_code__pay", dom1);
sundryTypePay = genericUtility.getColumnValue("sundry_type__pay", dom1);
sundryType = genericUtility.getColumnValue("sundry_type", dom1);
cctrCodeAp = genericUtility.getColumnValue("cctr_code__ap", dom1);
cctrCodePay = genericUtility.getColumnValue("cctr_code__pay", dom1);
currCode = genericUtility.getColumnValue("curr_code", dom1);
exchRate = genericUtility.getColumnValue("exch_rate", dom1);
sundryCode= genericUtility.getColumnValue("sundry_code", dom1);
valueXmlString.append("<exch_rate protect = \"1\">").append("<![CDATA[" + exchRate + "]]>").append("</exch_rate>");
valueXmlString.append("<curr_code protect = \"1\">").append("<![CDATA[" + currCode + "]]>").append("</curr_code>");
valueXmlString.append("<sundry_type protect = \"0\">").append("<![CDATA[" + sundryType + "]]>").append("</sundry_type>");
valueXmlString.append("<sundry_code protect = \"0\">").append("<![CDATA[" + sundryCode + "]]>").append("</sundry_code>");
valueXmlString.append("<sundry_type__pay protect = \"1\">").append("<![CDATA[" + sundryTypePay + "]]>").append("</sundry_type__pay>");
valueXmlString.append("<sundry_code__pay protect = \"1\">").append("<![CDATA[" + sundryCodePay + "]]>").append("</sundry_code__pay>");
valueXmlString.append("<vouch_type protect = \"1\">").append("<![CDATA[" + vouchType + "]]>").append("</vouch_type>");
valueXmlString.append("</Detail1>");
valueXmlString.append("<Detail2>");
childNodeListLength = childNodeList.getLength();
......@@ -4463,6 +4437,33 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
ctr = 0;
reStr = itemChanged(dom1, dom1, dom2, "1","itm_defaultedit", editFlag, xtraParams);
reStr=reStr.substring(reStr.indexOf("<Detail1>"), reStr.indexOf("</Detail1>"));
System.out.println("Detail 1String"+reStr);
valueXmlString = new StringBuffer(
"<?xml version = \"1.0\"?> <Root> <header> <editFlag>");
valueXmlString.append(editFlag).append("</editFlag> </header>");
valueXmlString.append(reStr);
sundryCodePay = genericUtility.getColumnValue("sundry_code__pay", dom1);
sundryTypePay = genericUtility.getColumnValue("sundry_type__pay", dom1);
sundryType = genericUtility.getColumnValue("sundry_type", dom1);
cctrCodeAp = genericUtility.getColumnValue("cctr_code__ap", dom1);
cctrCodePay = genericUtility.getColumnValue("cctr_code__pay", dom1);
currCode = genericUtility.getColumnValue("curr_code", dom1);
exchRate = genericUtility.getColumnValue("exch_rate", dom1);
sundryCode= genericUtility.getColumnValue("sundry_code", dom1);
valueXmlString.append("<exch_rate protect = \"1\">").append("<![CDATA[" + exchRate + "]]>").append("</exch_rate>");
valueXmlString.append("<curr_code protect = \"1\">").append("<![CDATA[" + currCode + "]]>").append("</curr_code>");
valueXmlString.append("<sundry_type protect = \"0\">").append("<![CDATA[" + sundryType + "]]>").append("</sundry_type>");
valueXmlString.append("<sundry_code protect = \"0\">").append("<![CDATA[" + sundryCode + "]]>").append("</sundry_code>");
valueXmlString.append("<sundry_type__pay protect = \"1\">").append("<![CDATA[" + sundryTypePay + "]]>").append("</sundry_type__pay>");
valueXmlString.append("<sundry_code__pay protect = \"1\">").append("<![CDATA[" + sundryCodePay + "]]>").append("</sundry_code__pay>");
valueXmlString.append("<vouch_type protect = \"1\">").append("<![CDATA[" + vouchType + "]]>").append("</vouch_type>");
valueXmlString.append("</Detail1>");
valueXmlString.append("<Detail3>");
childNodeListLength = childNodeList.getLength();
do
......
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