Commit 34a512f6 authored by smestry's avatar smestry

Updated the Product wizard for item description.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102414 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a5436140
...@@ -656,18 +656,19 @@ public class DDProductWizEditEJB extends ValidatorEJB implements DDProductWizEdi ...@@ -656,18 +656,19 @@ public class DDProductWizEditEJB extends ValidatorEJB implements DDProductWizEdi
rs.close(); rs = null; rs.close(); rs = null;
pstmt.close(); pstmt = null; pstmt.close(); pstmt = null;
// Changed by Sneha on 07-07-2016, to edit the item parent description [Start] // Changed by Sneha on 07-07-2016, to edit the item parent description [Start]
String attr_value = "";
String itemDescr = " SELECT ATTR_VALUE FROM OBJ_ATTRIBUTE WHERE ITEM_ATTR_VAL = 'ITEM_CODE:'||'"+ itemCode +"' " + String itemDescr = " SELECT ATTR_VALUE FROM OBJ_ATTRIBUTE WHERE ITEM_ATTR_VAL = 'ITEM_CODE:'||'"+ itemCode +"' " +
"AND LANGUAGES = 'EN' "; "AND LANGUAGES = 'EN' ";
pstmt = conn.prepareStatement(itemDescr); pstmt = conn.prepareStatement(itemDescr);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
valueXmlString.append("<attr_value>").append("<![CDATA["+ checkNullAndTrim(rs.getString(1)) +"]]>").append("</attr_value>\r\n"); attr_value = checkNullAndTrim(rs.getString(1));
} }
rs.close(); rs = null; rs.close(); rs = null;
pstmt.close(); pstmt = null; pstmt.close(); pstmt = null;
valueXmlString.append("<attr_value>").append("<![CDATA["+ attr_value +"]]>").append("</attr_value>\r\n");
// Changed by Sneha on 07-07-2016, to edit the item parent description [End] // Changed by Sneha on 07-07-2016, to edit the item parent description [End]
try try
......
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