Commit 7f35c0b8 authored by kshinde's avatar kshinde

Protecting header columns on itemchange of detail

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@191825 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4452d75a
......@@ -2622,7 +2622,7 @@ conn = getConnection();
StringBuffer valueXmlString = new StringBuffer();
Connection conn = null;
PreparedStatement pstmt = null;
String hCurrCode = "";
String hCurrCode = "",reStr="";
ResultSet rs = null;
// GenericUtility genericUtility = GenericUtility.getInstance();
ConnDriver connDriver = new ConnDriver();
......@@ -3291,6 +3291,22 @@ conn = getConnection();
valueXmlString.append("</Detail1>");
break;
case 2:
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);
valueXmlString.append("<site_code protect = \"1\">").append("<![CDATA[" + genericUtility.getColumnValue("site_code", dom1) + "]]>").append("</site_code>");
valueXmlString.append("<cust_code protect = \"1\">").append("<![CDATA[" + genericUtility.getColumnValue("cust_code", dom1) + "]]>").append("</cust_code>");
valueXmlString.append("<curr_code protect = \"1\">").append("<![CDATA[" + genericUtility.getColumnValue("curr_code", dom1) + "]]>").append("</curr_code>");
valueXmlString.append("<sale_order protect = \"1\">").append("<![CDATA[" + checkNull(genericUtility.getColumnValue("sale_order", dom1)) + "]]>").append("</sale_order>");
valueXmlString.append("</Detail1>");
parentNodeList = dom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
......@@ -3313,7 +3329,7 @@ conn = getConnection();
childNodeName.equals(currentColumn)));
if (currentColumn.trim().equalsIgnoreCase("itm_default"))
{
tranId = genericUtility.getColumnValue("tran_id", dom);
tranId = checkNull(genericUtility.getColumnValue("tran_id", dom));
sql = "select rcv_ser from finctrl";
......
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