Commit 5828f502 authored by smestry's avatar smestry

Updated the java for product Wizard changes


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104134 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3d71273c
...@@ -474,7 +474,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -474,7 +474,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
custItemRefParent = ""; custItemRefParent = "";
} }
} }
System.out.println("custItemRefParent=======>>"+custItemRefParent); //System.out.println("custItemRefParent=======>>"+custItemRefParent);
//Changed by Sneha on 26-09-2019, to add trade mark for item parent [End] //Changed by Sneha on 26-09-2019, to add trade mark for item parent [End]
} }
} }
...@@ -1360,8 +1360,6 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -1360,8 +1360,6 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
//tranId = getTransID( "w_dd_productWiz", conn); //tranId = getTransID( "w_dd_productWiz", conn);
sizeMapDtl = ddProductWizEJB.getSizeMap(phy_attrib_1, size_codes, conn); sizeMapDtl = ddProductWizEJB.getSizeMap(phy_attrib_1, size_codes, conn);
String phy_attrib_6 = sizeMapDtl.get("DESCR"); 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); 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]
...@@ -1372,6 +1370,45 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -1372,6 +1370,45 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
// 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);
// Changed by Sneha on 16-12-2016, for barcode auto generation [Start]
DDProductWizEJB ddProductWiz = new DDProductWizEJB();
String barcodeFlagVal = ddProductWiz.getDefaultBarcodeFlagVal();
if(barcodeFlagVal.equalsIgnoreCase("Y"))
{
int paramName = 0;
item_barcode = ddProductWiz.generateTranId( "w_barcode", loginSiteCode, conn);
String countSerSql = "SELECT COUNT(1) AS COUNT FROM ITEM WHERE TRIM(udf__str2) = ? ";
PreparedStatement pstmtParamName = conn.prepareStatement(countSerSql);
pstmtParamName.setString(1, item_barcode);
ResultSet rsCnt = pstmtParamName.executeQuery();
if (rsCnt.next())
{
paramName = rsCnt.getInt("COUNT");
}
if( pstmtParamName != null )
{
pstmtParamName.close();
pstmtParamName = null;
}
if ( rsCnt != null )
{
rsCnt.close();
rsCnt = null;
}
System.out.println("2222222222222222222");
if (paramName != 0)
{
System.out.println("6666666666666666666666666");
isError = true;
String errMsg = "Invalid barcode generated. Generated Barcode already exists in item master.";
throw new Exception(errMsg);
}
}
// Changed by Sneha on 16-12-2016, for barcode auto generation [End]
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, " +
" PHY_ATTRIB_1, PHY_ATTRIB_2, PHY_ATTRIB_3, INTEGRAL_QTY, ISS_CRITERIA, UNIT__PUR, " + " PHY_ATTRIB_1, PHY_ATTRIB_2, PHY_ATTRIB_3, INTEGRAL_QTY, ISS_CRITERIA, UNIT__PUR, " +
...@@ -2170,7 +2207,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -2170,7 +2207,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
e.printStackTrace(); e.printStackTrace();
isError = true; isError = true;
retString = e.getMessage(); retString = e.getMessage();
throw new Exception(e); throw new ITMException(e);
} }
finally finally
{ {
......
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