Commit 907a5a3c authored by smestry's avatar smestry

Updated java files for product wizard add and edit to add new field trade mark.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103479 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b4641895
......@@ -925,6 +925,10 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
String taxChap = genericUtility.getColumnValue("tax_chap", dom1);
//Changed by wasim on 27-07-2016 to add tax chapter [START]
//Changed by Sneha on 26-09-2019, to add new field trade mark [Start]
String tradeMark = genericUtility.getColumnValue("trade_mark", dom1);
//Changed by Sneha on 26-09-2019, to add new field trade mark [End]
valueXmlString.append("<Detail2 domID='0' selected = 'N'>\r\n");
if(currentColumn.equalsIgnoreCase("itm_default"))
......@@ -1018,6 +1022,10 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
//Changed by wasim on 27-07-2016 to add tax chapter [START]
valueXmlString.append("<tax_chap>").append("<![CDATA["+ checkNullAndTrim(taxChap) +"]]>").append("</tax_chap>\r\n");
//Changed by wasim on 27-07-2016 to add tax chapter [END]
//Changed by Sneha on 26-09-2019, to add new field trade mark [Start]
valueXmlString.append("<trade_mark>").append("<![CDATA["+ checkNullAndTrim(tradeMark) +"]]>").append("</trade_mark>\r\n");
//Changed by Sneha on 26-09-2019, to add new field trade mark [End]
}
valueXmlString.append("</Detail2>\r\n");
......@@ -1112,6 +1120,11 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
//Changed by wasim on 27-07-2016 to add tax chapter [START]
valueXmlString.append("<tax_chap>").append("<![CDATA["+ checkNullAndTrim(taxChap) +"]]>").append("</tax_chap>\r\n");
//Changed by wasim on 27-07-2016 to add tax chapter [END]
//Changed by Sneha on 26-09-2019, to add new field trade mark [Start]
valueXmlString.append("<trade_mark>").append("<![CDATA["+ checkNullAndTrim(tradeMark) +"]]>").append("</trade_mark>\r\n");
//Changed by Sneha on 26-09-2019, to add new field trade mark [End]
}
valueXmlString.append("</Detail2>\r\n");
......
......@@ -487,7 +487,8 @@ public class DDProductWizEditEJB extends ValidatorEJB implements DDProductWizEdi
{
System.out.println("---------- Inside itemChanged Case3 --------- ");
String itemCode = genericUtility.getColumnValue("item_code", dom1);
System.out.println("itemCode = "+ itemCode);
System.out.println("itemCode inside itemChanged Case3 ---->> "+ itemCode);
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ))
{
//Changed by Sneha on 30-03-2016, for login code [Start]
......@@ -572,6 +573,10 @@ public class DDProductWizEditEJB extends ValidatorEJB implements DDProductWizEdi
String taxChap = checkNullAndTrim(genericUtility.getColumnValue("tax_chap", preFormDom));
//Changed by wasim on 02-08-2016 to add tax_chap field [END]
//Changed by Sneha on 26-09-2019, to add new field trade mark [Start]
String tradeMark = checkNullAndTrim(genericUtility.getColumnValue("trade_mark", preFormDom));
//Changed by Sneha on 26-09-2019, to add new field trade mark [End]
valueXmlString.append("<item_code>").append("<![CDATA["+ checkNullAndTrim(item_code) +"]]>").append("</item_code>\r\n");
valueXmlString.append("<descr>").append("<![CDATA["+ checkNullAndTrim(descr) +"]]>").append("</descr>\r\n");
......@@ -619,6 +624,10 @@ public class DDProductWizEditEJB extends ValidatorEJB implements DDProductWizEdi
//Changed by wasim on 02-08-2016 to add tax_chap field [START]
valueXmlString.append("<tax_chap>").append("<![CDATA["+ taxChap +"]]>").append("</tax_chap>\r\n");
//Changed by wasim on 02-08-2016 to add tax_chap field [END]
//Changed by Sneha on 26-09-2019, to add new field trade mark [Start]
valueXmlString.append("<trade_mark>").append("<![CDATA["+ checkNullAndTrim(tradeMark) +"]]>").append("</trade_mark>\r\n");
//Changed by Sneha on 26-09-2019, to add new field trade mark [End]
}
else
{
......@@ -640,6 +649,7 @@ public class DDProductWizEditEJB extends ValidatorEJB implements DDProductWizEdi
" UDF__STR1, (SELECT TRIM(DESCR) FROM ITM_ATTRIB_VAL WHERE ATTRIB_CODE='Tax' AND ATTRIB_ID = ITEM.UDF__STR1) TAX " +
" ,PHY_ATTRIB_24,USAGE_TYPE " +//Added by samadhan on 23/12/2015 for brand and limited edition
" ,TAX_CHAP "+ // Added by wasim on 02-08-2016 to get tax_chap
" ,TRADE_MARK "+ // Added by Sneha on 27-09-2016 to get trade_mark
" FROM ITEM WHERE ITEM_CODE = '"+ itemCode +"'";
pstmt = conn.prepareStatement(itemParentSelect);
......@@ -685,6 +695,10 @@ public class DDProductWizEditEJB extends ValidatorEJB implements DDProductWizEdi
//Changed by wasim on 02-08-2016 to add tax_chap field [START]
valueXmlString.append("<tax_chap>").append("<![CDATA["+checkNullAndTrim(rs.getString("TAX_CHAP"))+"]]>").append("</tax_chap>\r\n");
//Changed by wasim on 02-08-2016 to add tax_chap field [END]
//Changed by Sneha on 26-09-2019, to add new field trade mark [Start]
valueXmlString.append("<trade_mark>").append("<![CDATA["+ checkNullAndTrim(rs.getString("TRADE_MARK")) +"]]>").append("</trade_mark>\r\n");
//Changed by Sneha on 26-09-2019, to add new field trade mark [End]
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
......@@ -979,6 +993,7 @@ public class DDProductWizEditEJB extends ValidatorEJB implements DDProductWizEdi
+ " UDF__STR1, (SELECT TRIM(DESCR) FROM ITM_ATTRIB_VAL WHERE ATTRIB_CODE='Tax' AND TRIM(ATTRIB_ID) = ITEM.UDF__STR1) TAX, HSN_NO "
+ " ,USAGE_TYPE, CATALOG_NO "//Changed by samadhan for limited edition and stop purchase
+ " ,TAX_CHAP "//Changed by wasim on 02-08-2016 for tax chapter
+ " ,TRADE_MARK "//Changed by Sneha on 27-09-2016 for trade mark
+ " FROM ITEM "
+ " WHERE ITEM_PARNT = '"+ itemCode +"'";
pstmt = conn.prepareStatement( skuDetails );
......@@ -1019,6 +1034,10 @@ public class DDProductWizEditEJB extends ValidatorEJB implements DDProductWizEdi
valueXmlString.append("<tax_chap>").append("<![CDATA["+ checkNullAndTrim(rs.getString("TAX_CHAP")) +"]]>").append("</tax_chap>\r\n");
//Changed by wasim on 02-08-2016 for tax chapter [END]
//Changed by Sneha on 26-09-2019, to add new field trade mark [Start]
valueXmlString.append("<trade_mark>").append("<![CDATA["+ checkNullAndTrim(rs.getString("TRADE_MARK")) +"]]>").append("</trade_mark>\r\n");
//Changed by Sneha on 26-09-2019, to add new field trade mark [End]
String categoryDescr = rs.getString(10);
String[] categoryDescrs = categoryDescr.split(",");
String categoryCode = "";
......
......@@ -42,7 +42,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
item_width= "", item_height= "", price_list_dtl= "", item_gross_wt= "", item_parnt_desc= "", item_type_descr= "", item_ser_descr= "",
descr= "", grp_code_descr= "", site_codes= "", color_codes= "", dimension_desc= "", supp_item_dtl= "", item_barcode= "", item_category= "",
img_path= "", sh_descr= "", long_descr= "", meta_desc= "", meta_keywords= "", meta_title= "", loc_code= "", suppCode= "", loc_type= "", loc_type_child= "", pack_size_descr= "",
language_dtl= "", language= "", categoryId= "", tax= "",item_commodity = "";
language_dtl= "", language= "", categoryId= "", tax= "",item_commodity = "", tradeMarkParent = "", tradeMarkChild = "";
private Double pur_lead_time = 0.00;
//Changed by wasim on 15-07-2015 [START]
private String deleteSkus = "",attributeSetId = "",item_parnt = "",hdrlanguage_dtl = "";
......@@ -147,6 +147,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
try
{
System.out.println("<<=========Inside updateItemDetails========>>");
dom = genericUtility.parseString(xmlStringAll);
int currDetailListLength = 0;
......@@ -443,16 +444,30 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
}
}
//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 item parent [Start]
else if (nodeName.equalsIgnoreCase("trade_mark"))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
tradeMarkParent = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
}
else
{
tradeMarkParent = "";
}
}
//System.out.println("tradeMarkParent ==========>>[" + tradeMarkParent + "]");
//Changed by Sneha on 26-09-2019, to add trade mark for item parent [End]
}
}
String sql = "UPDATE ITEM SET DESCR = ?, ITEM_SER = ?, GRP_CODE = ?, ITEM_TYPE = ?, LOC_TYPE = ?, LOC_CODE = ?, "
+ " SH_DESCR = ?, PHY_ATTRIB_17 = ?, PHY_ATTRIB_18 = ?, PHY_ATTRIB_19 = ?, PHY_ATTRIB_20 = ?, PHY_ATTRIB_21 = ?, "
+ " LOC_TYPE__PARENT = ?, PUR_LEAD_TIME = ?, UDF__STR1 = ?, CHG_DATE = SYSDATE, CHG_TERM = ?, CHG_USER = ? "
+ " ,PHY_ATTRIB_24 = ?" //Changed by samadhan on 23/12/2015 for brand
+ " ,PHY_ATTRIB_24 = ? " //Changed by samadhan on 23/12/2015 for brand
+ " ,TAX_CHAP = ? " //Changed by wasim on 02-08-2016 for tax chapter
+ " ,TRADE_MARK = ? " //Changed by sneha on 27-09-2016 for trade mark
+ " WHERE ITEM_CODE = ?";
System.out.println("sh_descr = ["+ checkNullAndTrim(sh_descr) +"] img_path = ["+checkNullAndTrim(img_path)+"] long_descr = ["+checkNullAndTrim(long_descr)+"]");
System.out.println("meta_desc = ["+ checkNullAndTrim(meta_desc) +"] meta_keywords = ["+checkNullAndTrim(meta_keywords)+"] meta_title = ["+checkNullAndTrim(meta_title)+"]");
......@@ -492,7 +507,8 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
pstmtIns.setString(18, brandCode);//phy_attrib_24
//Changed by Samadhan on 23/12/2015 for brand end
pstmtIns.setString(19, taxChapParent); //Changed by wasim on 02-08-2016 for tax chapter for item parent
pstmtIns.setString(20, item_code);
pstmtIns.setString(20, tradeMarkParent); //Changed by Sneha on 27-09-2016
pstmtIns.setString(21, item_code);
pstmtIns.executeUpdate();
pstmtIns.close(); pstmtIns = null;
......@@ -567,7 +583,6 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
pstmtIns.close(); pstmtIns = null;
}
Node currDetail = null;
NodeList detail2List = null;
NodeList currDetailList = null;
......@@ -876,12 +891,28 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
}
}
//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 [Start]
else if (nodeName.equalsIgnoreCase("trade_mark"))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
tradeMarkChild = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
}
else
{
tradeMarkChild = "";
}
}
///System.out.println("tradeMarkChild ==========>>[" + tradeMarkChild + "]");
//Changed by Sneha on 26-09-2019, to add trade mark for child item [End]
}
// Changed by Sneha on 04-04-2016 for adding new item [Start]
if(!"".equalsIgnoreCase(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+"]");
......@@ -893,6 +924,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
+ " PUR_LEAD_TIME = ?, UDF__STR1 = ?, CHG_DATE = SYSDATE, CHG_TERM = ?, CHG_USER = ?, HSN_NO = ?"
+ " ,PHY_ATTRIB_24 = ?, USAGE_TYPE = ?, CATALOG_NO = ? " //Changed by samadhan on 23/12/2015 for brand, limited edition,stop purchase
+ " ,TAX_CHAP = ? " //Changed by wasim on 02/08/2016 for tax chap for child items
+ " ,TRADE_MARK = ? " //Changed By Sneha on 27-09-2016 for adding trade mark for child item
+ " WHERE ITEM_CODE = ?";
pstmtIns = conn.prepareStatement( sql );
......@@ -925,7 +957,8 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
pstmtIns.setString(24, stopPurchase);//cotalog_no
//Changed by Samadhan for brand,limited edition purchase stop end
pstmtIns.setString(25, taxChapChild); //Changed by wasim on 02-08-2016 for tax chapter for child items
pstmtIns.setString(26, item_code);
pstmtIns.setString(26, tradeMarkChild);//Changed By Sneha on 27-09-2016 for adding trade mark for child item
pstmtIns.setString(27, item_code);
pstmtIns.executeUpdate();
pstmtIns.close(); pstmtIns = null;
......@@ -1289,9 +1322,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
" PHY_ATTRIB_1, PHY_ATTRIB_2, PHY_ATTRIB_3, INTEGRAL_QTY, ISS_CRITERIA, UNIT__PUR, " +
" PHY_ATTRIB_23, UDF__STR2, ACTIVE, PHY_ATTRIB_22, SUPP_SOUR, QC_REQD, PACK_CODE, " +
" ORDER_OPT, ITEM_USAGE, AUTO_REQC, LOC_TYPE__PARENT, CHG_DATE, CHG_TERM, CHG_USER,PUR_LEAD_TIME,UDF__STR1,HSN_NO,PHY_ATTRIB_6," +
" USAGE_TYPE,PHY_ATTRIB_24,PHY_ATTRIB_8,CATALOG_NO,TAX_CHAP)" + //Changed by wasim on 02-08-2016 to add tax chapter for new child item
" PO_RATE_OPTION " + // Added by Manish on 21-09-2016 as per devendra sir
" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
" USAGE_TYPE,PHY_ATTRIB_24,PHY_ATTRIB_8,CATALOG_NO,TAX_CHAP," + //Changed by wasim on 02-08-2016 to add tax chapter for new child item
" PO_RATE_OPTION, " + // Added by Manish on 21-09-2016 as per devendra sir
" TRADE_MARK) " + // Changed By Sneha on 27-09-2016 for adding trade mark for child item
" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
pstmtIns = conn.prepareStatement( sql );
pstmtIns.setString(1, tranId);
pstmtIns.setString(2, descr);
......@@ -1339,6 +1373,7 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
pstmtIns.setString(44, stopPurchase);
pstmtIns.setString(45, taxChapChild);//Added by wasim on 02-08-2016 to add tax chapter for child items
pstmtIns.setString(46, "A"); //Added by Manish on 21-08-2016
pstmtIns.setString(47, tradeMarkChild);//Changed By Sneha on 27-09-2016 for adding trade mark for child item
pstmtIns.executeUpdate();
pstmtIns.close(); pstmtIns = null;
......
......@@ -75,7 +75,9 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
item_width, item_height, price_list_dtl, item_gross_wt, item_parnt_desc, item_type_desc, itemser_descr,
descr, grp_code_desc, site_codes, color_codes, dimension_desc, supp_item_desc, item_barcode, item_category,
img_path, item_sh_descr, long_desc, meta_desc, meta_keywords, meta_title, loc_code,
loginSiteCode , language_dtl, categoryId, tax, item_commodity, taxChapParent = "",taxChapChild = ""; // Added By Parikshit on 23/02/2015[Added variable language_dtl ]
loginSiteCode , language_dtl, categoryId, tax, item_commodity, taxChapParent = "",taxChapChild = "", // Added By Parikshit on 23/02/2015[Added variable language_dtl ]
tradeMarkChild = "", tradeMarkParent = "";
//Added by Chetan Mahajan on date:06/02/2015 [Added new fields] Start
private Double pur_lead_time ;
private String suppCode = "" ,loc_type = "",loc_type_child = "", pack_size_dtl = "" ; // Added By Parikshit on 20/02/2015[Added pack_size_dtl]
......@@ -156,13 +158,13 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
boolean localConnection = false;
boolean isError = false;
System.out.println("insertItemdetails:::");
System.out.println("@@@@@@@ inside insertItemdetails @@@@@@@");
NodeList detail2dom = null;
Document dom = null;
int det2length = 0;
System.out.println("xmlStringAll::"+xmlStringAll);
System.out.println("xmlStringAll ========>>"+xmlStringAll);
dom = genericUtility.parseString(xmlStringAll);
......@@ -416,6 +418,16 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
}
//Changed by wasim on 27-07-2016 to add tax chapter for item parent [END]
//Changed by Sneha on 26-09-2019, to add trade mark for item parent [Start]
else if (nodeName.equalsIgnoreCase("trade_mark"))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
tradeMarkParent = checkNull(childNode.getFirstChild().getNodeValue());
}
}
//Changed by Sneha on 26-09-2019, to add trade mark for item parent [End]
}
/*System.out.println("item_parnt : "+ item_parnt +" grp_code : "+ grp_code +" item_parnt_desc : "+ item_parnt_desc + " item_type : "
+ item_type +" descr : "+ descr +" dimension_desc : "+ dimension_desc);*/
......@@ -435,13 +447,22 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
" auto_reqc, loc_type__parent, chg_date, chg_term, chg_user,pur_lead_time,udf__str1,usage_type,phy_attrib_24,po_rate_option)" +
" Values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";//Added by Parikshit Kumbhar on 26/05/2015 [Added udf__str1 in query]
*/
String sql = "insert into item (item_code, descr, item_ser, grp_code, item_type, unit, track_shelf_life, unit__rate, " +
//Changed by Sneha on 26-09-2019, to add trade mark for item parent [Start]
/*String sql = "insert into item (item_code, descr, item_ser, grp_code, item_type, unit, track_shelf_life, unit__rate, " +
" stk_opt, loc_type, loc_code, INTEGRAL_QTY, ISS_CRITERIA, UNIT__PUR, sh_descr, phy_attrib_17, phy_attrib_18, phy_attrib_19, " +
" phy_attrib_20, phy_attrib_21, active, supp_sour, qc_reqd, pack_code, order_opt, item_usage, " +
" auto_reqc, loc_type__parent, chg_date, chg_term, chg_user,pur_lead_time,udf__str1,usage_type,phy_attrib_24,po_rate_option,tax_chap)" +
" Values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
" Values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";*/
String sql = "insert into item (item_code, descr, item_ser, grp_code, item_type, unit, track_shelf_life, unit__rate, " +
" stk_opt, loc_type, loc_code, INTEGRAL_QTY, ISS_CRITERIA, UNIT__PUR, sh_descr, phy_attrib_17, phy_attrib_18, phy_attrib_19, " +
" phy_attrib_20, phy_attrib_21, active, supp_sour, qc_reqd, pack_code, order_opt, item_usage, " +
" auto_reqc, loc_type__parent, chg_date, chg_term, chg_user,pur_lead_time,udf__str1,usage_type," +
" phy_attrib_24,po_rate_option,tax_chap, trade_mark)" +
" Values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
//Changed by wasim on 27-07-2016 to add tax chapter [END]
//Changed by Samadhan on 21/12/2015 for Limited Edition and size grid End
//Changed by Sneha on 26-09-2019, to add trade mark for item parent [End]
try
{
if (conn == null)
......@@ -500,6 +521,7 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
pstmtIns.setString(35, brandCode);//Added by Samadhan on 21/12/2015 for Brand code .
pstmtIns.setString(36, "A");//Added by Samadhan on 23/05/2016
pstmtIns.setString(37, taxChapParent);//Added by wasim on 27/07/2016
pstmtIns.setString(38, tradeMarkParent);//Added by Sneha on 27-09-2016
/*pstmtIns.addBatch();
pstmtIns.clearParameters();*/
......@@ -823,6 +845,16 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
}
//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 [Start]
else if (nodeName.equalsIgnoreCase("trade_mark"))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
tradeMarkChild = checkNull(childNode.getFirstChild().getNodeValue());
}
}
//Changed by Sneha on 26-09-2019, to add trade mark for child item [End]
//Added by Parikshit Kumbhar on date:20/04/2015 [Added pack_size_dtl] end
/*System.out.println("item_descr : "+ item_descr +" item_length : "+ item_length +" item_width : "+ item_width
+ " item_height : "+ item_height +" price_list_dtl : "+ price_list_dtl +" item_gross_wt : "+ item_gross_wt);*/
......@@ -853,13 +885,24 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
" order_opt, item_usage, auto_reqc, loc_type__parent, chg_date, chg_term, chg_user,pur_lead_time,udf__str1,hsn_no,phy_attrib_6,usage_type,phy_attrib_24,phy_attrib_8,po_rate_option)" +
" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";*/
sql = "insert into item (item_code, descr, item_parnt, item_ser, grp_code, item_type, unit, track_shelf_life, unit__rate, " +
//Changed by Sneha on 26-09-2019, to add trade mark for child item [Start]
/*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, " +
" phy_attrib_1, phy_attrib_2, phy_attrib_3, INTEGRAL_QTY, ISS_CRITERIA, UNIT__PUR, " +
" phy_attrib_23, udf__str2, active, phy_attrib_22, supp_sour, qc_reqd, pack_code, " +
" order_opt, item_usage, auto_reqc, loc_type__parent, chg_date, chg_term, chg_user,pur_lead_time,udf__str1,hsn_no,phy_attrib_6,usage_type,phy_attrib_24,phy_attrib_8,po_rate_option,tax_chap)" +
" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; */
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, " +
" phy_attrib_1, phy_attrib_2, phy_attrib_3, INTEGRAL_QTY, ISS_CRITERIA, UNIT__PUR, " +
" phy_attrib_23, udf__str2, active, phy_attrib_22, supp_sour, qc_reqd, pack_code, " +
" order_opt, item_usage, auto_reqc, loc_type__parent, chg_date, chg_term," +
" chg_user,pur_lead_time,udf__str1,hsn_no,phy_attrib_6,usage_type,phy_attrib_24," +
"phy_attrib_8,po_rate_option,tax_chap, trade_mark)" +
" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
//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]
sizeMap = getSizeMap(phy_attrib_1,size_codes,conn);
//Changed by Samadhan on 21/15/2015 for size grid End
......@@ -910,7 +953,7 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
pstmtIns.setString(43, sizeMap.get("SH_DESCR"));//Added By Samadhan on 21/12/2015 for Size Short Descr
pstmtIns.setString(44, "A");//Added By Samadhan on 23/05/2016
pstmtIns.setString(45, taxChapChild);//Added By wasim on 27/07/2016 for adding tax chapter for child item
pstmtIns.setString(46, tradeMarkChild);//Changed By Sneha on 27-09-2016 for adding trade mark for child item
pstmtIns.executeUpdate();
pstmtIns.close(); pstmtIns = null;
......
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