Commit 6330ab23 authored by smestry's avatar smestry

Updated the java file to generate the item code as a combination of paren_code+color_code+size_code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103619 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b57bad64
...@@ -1310,7 +1310,11 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -1310,7 +1310,11 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start]
//tranId = getTransID( "w_dd_productWiz", conn); //tranId = getTransID( "w_dd_productWiz", conn);
tranId = getTransID( "w_dd_productWiz", item_parnt, phy_attrib_1, phy_attrib_2, conn); sizeMapDtl = ddProductWizEJB.getSizeMap(phy_attrib_1, size_codes, conn);
String phy_attrib_6 = sizeMapDtl.get("DESCR");
System.out.println("phy_attrib_6======>>"+phy_attrib_6);
tranId = getTransID( "w_dd_productWiz", item_parnt, phy_attrib_6, phy_attrib_2, conn);
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End]
// Changed by samadhan on 19/05/16 [start] // Changed by samadhan on 19/05/16 [start]
...@@ -1318,7 +1322,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -1318,7 +1322,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
tranId = tranId + whiteSpace.substring(0,10-tranId.length()); tranId = tranId + whiteSpace.substring(0,10-tranId.length());
System.out.println("tranId with whiteSpace is["+tranId+"]"); System.out.println("tranId with whiteSpace is["+tranId+"]");
// Changed by samadhan on 19/05/16 [end] // Changed by samadhan on 19/05/16 [end]
sizeMapDtl = ddProductWizEJB.getSizeMap(phy_attrib_1, size_codes, conn); //sizeMapDtl = ddProductWizEJB.getSizeMap(phy_attrib_1, size_codes, conn);
sql = "INSERT INTO ITEM (ITEM_CODE, DESCR, ITEM_PARNT, ITEM_SER, GRP_CODE, ITEM_TYPE, UNIT, TRACK_SHELF_LIFE, UNIT__RATE, " + sql = "INSERT INTO ITEM (ITEM_CODE, DESCR, ITEM_PARNT, ITEM_SER, GRP_CODE, ITEM_TYPE, UNIT, TRACK_SHELF_LIFE, UNIT__RATE, " +
" STK_OPT, LOC_TYPE, LOC_CODE, LENGTH, WIDTH, HEIGHT, GROSS_WEIGHT, " + " STK_OPT, LOC_TYPE, LOC_CODE, LENGTH, WIDTH, HEIGHT, GROSS_WEIGHT, " +
...@@ -2162,7 +2166,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -2162,7 +2166,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start]
//private String getTransID( String windowName, Connection conn ) throws ITMException //private String getTransID( String windowName, Connection conn ) throws ITMException
private String getTransID( String windowName, String item_parnt, String phy_attrib_1, String phy_attrib_2, Connection conn ) throws ITMException private String getTransID( String windowName, String item_parnt, String phy_attrib_6, String phy_attrib_2, Connection conn ) throws ITMException
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End]
{ {
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
...@@ -2213,7 +2217,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -2213,7 +2217,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start]
xmlValues = xmlValues + "<item_parnt>" + itemParntStr + "</item_parnt>"; xmlValues = xmlValues + "<item_parnt>" + itemParntStr + "</item_parnt>";
xmlValues = xmlValues + "<phy_attrib_2>" + phy_attrib_2 + "</phy_attrib_2>"; xmlValues = xmlValues + "<phy_attrib_2>" + phy_attrib_2 + "</phy_attrib_2>";
xmlValues = xmlValues + "<phy_attrib_1>" + phy_attrib_1 + "</phy_attrib_1>"; xmlValues = xmlValues + "<phy_attrib_6>" + phy_attrib_6 + "</phy_attrib_6>";
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End]
xmlValues = xmlValues + "</Detail1></Root>"; xmlValues = xmlValues + "</Detail1></Root>";
......
...@@ -864,7 +864,11 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR ...@@ -864,7 +864,11 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
} }
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start]
//tranId = getTransID( "w_dd_productWiz", conn); //tranId = getTransID( "w_dd_productWiz", conn);
tranId = getTransID( "w_dd_productWiz", item_parnt, phy_attrib_1, phy_attrib_2, conn); sizeMap = getSizeMap(phy_attrib_1,size_codes,conn);
String phy_attrib_6 = sizeMap.get("DESCR");
System.out.println("phy_attrib_6======>>"+phy_attrib_6);
tranId = getTransID( "w_dd_productWiz", item_parnt, phy_attrib_6, phy_attrib_2, conn);
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End]
// Changed by samadhan on 19/05/16 [start] // Changed by samadhan on 19/05/16 [start]
...@@ -907,7 +911,7 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR ...@@ -907,7 +911,7 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
//Changed by wasim on 27-07-2016 to add tax chapter for child items [END] //Changed by wasim on 27-07-2016 to add tax chapter for child items [END]
//Changed by Sneha on 26-09-2019, to add trade mark for child item [End] //Changed by Sneha on 26-09-2019, to add trade mark for child item [End]
sizeMap = getSizeMap(phy_attrib_1,size_codes,conn); //sizeMap = getSizeMap(phy_attrib_1,size_codes,conn);
//Changed by Samadhan on 21/15/2015 for size grid End //Changed by Samadhan on 21/15/2015 for size grid End
pstmtIns = conn.prepareStatement( sql ); pstmtIns = conn.prepareStatement( sql );
...@@ -1826,7 +1830,7 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR ...@@ -1826,7 +1830,7 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
*/ */
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start]
//private String getTransID( String windowName, Connection conn ) throws ITMException //private String getTransID( String windowName, Connection conn ) throws ITMException
private String getTransID( String windowName, String item_parnt, String phy_attrib_1, String phy_attrib_2, Connection conn ) throws ITMException private String getTransID( String windowName, String item_parnt, String phy_attrib_6, String phy_attrib_2, Connection conn ) throws ITMException
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End]
{ {
//System.out.println("@@@@@@ Inside getTransID @@@@@@"); //System.out.println("@@@@@@ Inside getTransID @@@@@@");
...@@ -1877,8 +1881,8 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR ...@@ -1877,8 +1881,8 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [Start]
xmlValues = xmlValues + "<item_parnt>" + itemParntStr + "</item_parnt>"; xmlValues = xmlValues + "<item_parnt>" + itemParntStr + "</item_parnt>";
xmlValues = xmlValues + "<phy_attrib_2>" + phy_attrib_2 + "</phy_attrib_2>"; xmlValues = xmlValues + "<phy_attrib_2>" + phy_attrib_2 + "</phy_attrib_2>"; // color
xmlValues = xmlValues + "<phy_attrib_1>" + phy_attrib_1 + "</phy_attrib_1>"; xmlValues = xmlValues + "<phy_attrib_6>" + phy_attrib_6 + "</phy_attrib_6>"; // size
// Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End] // Changed by Sneha on 30-09-2016, for generating tranid as parent_code, color_code, size_code [End]
xmlValues = xmlValues + "</Detail1></Root>"; xmlValues = xmlValues + "</Detail1></Root>";
......
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