Commit d52fd928 authored by smestry's avatar smestry

Updated the Product wizard for wide space.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102432 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7c27d175
...@@ -424,7 +424,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -424,7 +424,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
attrValue = ""; attrValue = "";
} }
System.out.println("attrValue=======>>"+attrValue); //System.out.println("attrValue=======>>"+attrValue);
} }
// Changed by Sneha on 07-07-2016, to set parent item description in attr_value [End] // Changed by Sneha on 07-07-2016, to set parent item description in attr_value [End]
} }
...@@ -745,7 +745,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -745,7 +745,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
if ( childNode != null && childNode.getFirstChild() != null ) if ( childNode != null && childNode.getFirstChild() != null )
{ {
language_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); language_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("language_dtl=========>>"+language_dtl); //System.out.println("language_dtl=========>>"+language_dtl);
} }
else else
{ {
...@@ -846,10 +846,13 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -846,10 +846,13 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
//Changed by Samadhan for brand,limited edition purchase stop end //Changed by Samadhan for brand,limited edition purchase stop end
} }
// Changed by Sneha on 04-04-2016 for adding new item [Start] // Changed by Sneha on 04-04-2016 for adding new item [Start]
if(!"".equalsIgnoreCase(item_code)) if(!"".equalsIgnoreCase(item_code))
{ {
System.out.println("Updating the item ==========>>[" + item_code + "]"); System.out.println("Updating the item ==========>>[" + item_code + "]");
String whiteSpace = " ";
item_code = item_code + whiteSpace.substring(0,10-item_code.length());
System.out.println("item_code with whiteSpace is["+item_code+"]");
// Changed by Sneha on 04-04-2016 for adding new item [End] // Changed by Sneha on 04-04-2016 for adding new item [End]
sql = "UPDATE ITEM SET DESCR = ?, ITEM_SER = ?, GRP_CODE = ?, ITEM_TYPE = ?, LOC_TYPE = ?, " sql = "UPDATE ITEM SET DESCR = ?, ITEM_SER = ?, GRP_CODE = ?, ITEM_TYPE = ?, LOC_TYPE = ?, "
...@@ -1330,7 +1333,6 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -1330,7 +1333,6 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
String colors = checkNullAndTrim(itemAttrHashMap.get("COLOR:"+ phy_attrib_2 + ":" + "EN")); String colors = checkNullAndTrim(itemAttrHashMap.get("COLOR:"+ phy_attrib_2 + ":" + "EN"));
String dimensions = checkNullAndTrim(itemAttrHashMap.get("DIMENSION:"+ phy_attrib_3 + ":" + "EN")); String dimensions = checkNullAndTrim(itemAttrHashMap.get("DIMENSION:"+ phy_attrib_3 + ":" + "EN"));
String sizes = checkNullAndTrim(itemAttrHashMap.get("SIZE:" + phy_attrib_1 + ":" + "EN")); String sizes = checkNullAndTrim(itemAttrHashMap.get("SIZE:" + phy_attrib_1 + ":" + "EN"));
skuItemDescrs = checkNullAndTrim(descr + " " + colors.trim() + " " + dimensions.trim() + " " + sizes.trim()); skuItemDescrs = checkNullAndTrim(descr + " " + colors.trim() + " " + dimensions.trim() + " " + sizes.trim());
System.out.println("** language_dtl-------- **\n" + language_dtl); System.out.println("** language_dtl-------- **\n" + language_dtl);
...@@ -1368,7 +1370,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -1368,7 +1370,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
dimension = checkNullAndTrim(itemAttrHashMap.get("DIMENSION:"+ phy_attrib_3 + ":" + lang[0])); dimension = checkNullAndTrim(itemAttrHashMap.get("DIMENSION:"+ phy_attrib_3 + ":" + lang[0]));
size = checkNullAndTrim(itemAttrHashMap.get("SIZE:" + phy_attrib_1 + ":" + lang[0])); size = checkNullAndTrim(itemAttrHashMap.get("SIZE:" + phy_attrib_1 + ":" + lang[0]));
skuItemDescr = checkNullAndTrim(lang[2]) + " " + color.trim() + " " + dimension.trim() + " " + size.trim(); skuItemDescr = checkNullAndTrim(lang[1]) + " " + color.trim() + " " + dimension.trim() + " " + size.trim();
String sqllangdtlItemIns = "INSERT INTO OBJ_ATTRIBUTE (OBJ_NAME, ITEM_ATTR_VAL, COLUMN_NAME, LANGUAGES, ATTR_VALUE, UDF_STR1, UDF_STR2, CHG_DATE, CHG_USER, CHG_TERM)" String sqllangdtlItemIns = "INSERT INTO OBJ_ATTRIBUTE (OBJ_NAME, ITEM_ATTR_VAL, COLUMN_NAME, LANGUAGES, ATTR_VALUE, UDF_STR1, UDF_STR2, CHG_DATE, CHG_USER, CHG_TERM)"
+ " VALUES(?,?,?,?,?,?,?,?,?,?)"; + " VALUES(?,?,?,?,?,?,?,?,?,?)";
......
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