Commit 4c4cfa6b authored by agaikwad's avatar agaikwad

set scheme code in item_code item_changed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105165 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 03ff6454
...@@ -5819,7 +5819,6 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -5819,7 +5819,6 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCodeBill); pstmt.setString(1, custCodeBill);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
//added checkNull for rcp_mode
if (rs.next()) if (rs.next())
{ {
mCurr = rs.getString("curr_code"); mCurr = rs.getString("curr_code");
...@@ -6018,6 +6017,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -6018,6 +6017,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
String custName = "", addr1 = "", addr2 = "", addr3 = "", city = "", pin = "", countCode = "", stanCode = "", tranCode = "", stateCode = "", tele1 = "", tele2 = "", tele3 = "", fax1 = "", tranName = "", frtTerm = "", lsEmpCodeOrd = "", lsEmpCodeOrd1 = ""; String custName = "", addr1 = "", addr2 = "", addr3 = "", city = "", pin = "", countCode = "", stanCode = "", tranCode = "", stateCode = "", tele1 = "", tele2 = "", tele3 = "", fax1 = "", tranName = "", frtTerm = "", lsEmpCodeOrd = "", lsEmpCodeOrd1 = "";
String lsFname = "", lsLname = "", lsPendingOrder = ""; String lsFname = "", lsLname = "", lsPendingOrder = "";
lsCustCodeDlv = genericUtility.getColumnValue("cust_code__dlv", dom); lsCustCodeDlv = genericUtility.getColumnValue("cust_code__dlv", dom);
lsSiteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
System.out.println("cust_code__dlv -lsSiteCode["+lsSiteCode+"]");
lsItemser = genericUtility.getColumnValue("item_ser", dom); lsItemser = genericUtility.getColumnValue("item_ser", dom);
sql = "select cust_name, addr1, addr2,addr3, city, pin, count_code, stan_code,tran_code, state_code, " + "tele1, tele2, tele3,fax, term_table__no,emp_code__ord , emp_code__ord1 from customer where cust_code = ?"; sql = "select cust_name, addr1, addr2,addr3, city, pin, count_code, stan_code,tran_code, state_code, " + "tele1, tele2, tele3,fax, term_table__no,emp_code__ord , emp_code__ord1 from customer where cust_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -6210,7 +6211,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -6210,7 +6211,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pstmt = null; pstmt = null;
rs.close(); rs.close();
rs = null; rs = null;
System.out.println("Site Code is"+lsSiteCode);
if (lsPriceList == null || lsPriceList.trim().length() == 0) if (lsPriceList == null || lsPriceList.trim().length() == 0)
{ {
Timestamp orderDate = Timestamp.valueOf(genericUtility.getValidDateString(genericUtility.getColumnValue("order_date", dom1), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); Timestamp orderDate = Timestamp.valueOf(genericUtility.getValidDateString(genericUtility.getColumnValue("order_date", dom1), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
...@@ -6218,6 +6219,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -6218,6 +6219,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
} }
if (lsPriceList == null || lsPriceList.trim().length() == 0) if (lsPriceList == null || lsPriceList.trim().length() == 0)
{ {
System.out.println("if Price list is null then Site Code is"+lsSiteCode);
lsPriceList = priceListSite(lsSiteCode, lsCustCodeDlv, conn); lsPriceList = priceListSite(lsSiteCode, lsCustCodeDlv, conn);
} }
if (lsPlistClg == null || lsPlistClg.trim().length() == 0) if (lsPlistClg == null || lsPlistClg.trim().length() == 0)
...@@ -6605,8 +6607,11 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -6605,8 +6607,11 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
Timestamp orderDate = Timestamp.valueOf(genericUtility.getValidDateString(genericUtility.getColumnValue("order_date", dom1), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); Timestamp orderDate = Timestamp.valueOf(genericUtility.getValidDateString(genericUtility.getColumnValue("order_date", dom1), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
lsPriceList = getPriceListOrderType(orderDate, dom, dom1, dom2, conn); lsPriceList = getPriceListOrderType(orderDate, dom, dom1, dom2, conn);
} }
System.out.println("lsSiteCode["+lsSiteCode+"]");
if (lsPriceList == null || lsPriceList.trim().length() == 0) if (lsPriceList == null || lsPriceList.trim().length() == 0)
{ {
String lsSiteCode1 = checkNull(genericUtility.getColumnValue("site_code", dom));
System.out.println("lsSiteCode1["+lsSiteCode1+"]");
lsPriceList = priceListSite(lsSiteCode, lsCustCode, conn); lsPriceList = priceListSite(lsSiteCode, lsCustCode, conn);
} }
if (lbOrdFlag) if (lbOrdFlag)
...@@ -6884,7 +6889,6 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -6884,7 +6889,6 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCode); pstmt.setString(1, custCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
//added checkNull for rcpmode
if (rs.next()) if (rs.next())
{ {
mcurr = checkNull(rs.getString("curr_code")); mcurr = checkNull(rs.getString("curr_code"));
...@@ -8227,7 +8231,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8227,7 +8231,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(cnt == 0)continue;
sql = "select (case when apply_cust_list is null then ' ' else apply_cust_list end) as ls_apply_cust_list," + " (case when noapply_cust_list is null then ' ' else noapply_cust_list end) as ls_noapply_cust_list,order_type" + " from scheme_applicability where scheme_code =?"; sql = "select (case when apply_cust_list is null then ' ' else apply_cust_list end) as ls_apply_cust_list," + " (case when noapply_cust_list is null then ' ' else noapply_cust_list end) as ls_noapply_cust_list,order_type" + " from scheme_applicability where scheme_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsCurscheme); pstmt.setString(1, lsCurscheme);
...@@ -8262,6 +8266,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8262,6 +8266,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
{ {
lsSchemeCode=""; lsSchemeCode="";
// goto Nextrec // goto Nextrec
continue;
} }
} }
lsPrevscheme = lsSchemeCode; lsPrevscheme = lsSchemeCode;
...@@ -8293,14 +8298,29 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8293,14 +8298,29 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
{ {
ll_schcnt ++ ; ll_schcnt ++ ;
} }
else if (ll_schcnt == 1)
{
System.out.println("lsPrevscheme["+lsPrevscheme+"]");
lsSchemeCode=lsPrevscheme;
System.out.println("lsSchemeCode["+lsSchemeCode+"]");
}
} }
rs1.close(); rs1.close();
rs1 = null; rs1 = null;
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
if( ll_schcnt > 1)
{
lsSchemeCode="";
}
else if(lsCustSchemeCode.trim().length() > 0)
{
lsSchemeCode=lsCustSchemeCode;
} }
}
else else
{ {
valueXmlString.append("<item_code>").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>"); valueXmlString.append("<item_code>").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>");
...@@ -8327,12 +8347,14 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8327,12 +8347,14 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(Double.parseDouble(checkDouble(lcIntegralQty)) > 0 )
{
if (Double.parseDouble(checkDouble(mQty)) < Double.parseDouble(checkDouble(lcIntegralQty))) if (Double.parseDouble(checkDouble(mQty)) < Double.parseDouble(checkDouble(lcIntegralQty)))
{ {
lsSchemeCode = ""; lsSchemeCode = "";
} }
}
System.out.println("lsSchemeCode["+lsSchemeCode+"]");
sql = "select (case when item_stru is null then 'S' else item_stru end) as item_stru from item where item_code =?"; sql = "select (case when item_stru is null then 'S' else item_stru end) as item_stru from item where item_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCodeOrd); pstmt.setString(1, itemCodeOrd);
...@@ -8345,24 +8367,29 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8345,24 +8367,29 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
String itemCodeOrd1=itemCodeOrd;
lsOrderType = checkNull(genericUtility.getColumnValue("order_type", dom1)); lsOrderType = checkNull(genericUtility.getColumnValue("order_type", dom1));
lsDisPobOrdtypeList = distCommon.getDisparams("999999", "POB_ORD_TYPE", conn); lsDisPobOrdtypeList = distCommon.getDisparams("999999", "POB_ORD_TYPE", conn);
System.out.println("===lsDisPobOrdtypeList["+lsDisPobOrdtypeList+"]"); System.out.println("===lsDisPobOrdtypeList["+lsDisPobOrdtypeList+"]");
lbOrdFlag = false; lbOrdFlag = false;
System.out.println("===lsOrderType["+lsDisPobOrdtypeList+"]");
System.out.println("===lsDisPobOrdtypeList.length["+lsDisPobOrdtypeList.length()+"]");
if (lsDisPobOrdtypeList != null && lsDisPobOrdtypeList.trim().length() > 0) if (lsDisPobOrdtypeList != null && lsDisPobOrdtypeList.trim().length() > 0)
{ {
String lsDisPobOrdtypeListArr[] = lsDisPobOrdtypeList.split(","); String lsDisPobOrdtypeListArr[] = lsDisPobOrdtypeList.split(",");
ArrayList<String> disPobOrdtypeList=new ArrayList<String>(Arrays.asList(lsDisPobOrdtypeListArr)); ArrayList<String> disPobOrdtypeList=new ArrayList<String>(Arrays.asList(lsDisPobOrdtypeListArr));
System.out.println("disPobOrdtypeList["+disPobOrdtypeList+"]");
if(disPobOrdtypeList.contains(lsOrderType)) if(disPobOrdtypeList.contains(lsOrderType))
{ {
lbOrdFlag = true; lbOrdFlag = true;
} }
} }
System.out.println("lsItemStru["+lsItemStru+"] lsSchemeCode["+lsSchemeCode+"]lbOrdFlag["+lbOrdFlag+"]"); System.out.println("lsItemStru["+lsItemStru+"] lsSchemeCode["+lsSchemeCode+"]lbOrdFlag["+lbOrdFlag+"]");
if (lbOrdFlag) if (lbOrdFlag == true)
{ {
System.out.println("lbOrdFlag inside["+lbOrdFlag+"");
valueXmlString.append("<item_flg>").append("<![CDATA[" + 'I' + "]]>").append("</item_flg>"); valueXmlString.append("<item_flg>").append("<![CDATA[" + 'I' + "]]>").append("</item_flg>");
setNodeValue( dom, "item_flg", getAbsString( "I")); setNodeValue( dom, "item_flg", getAbsString( "I"));
valueXmlString.append("<item_code>").append("<![CDATA[" + itemCodeOrd + "]]>").append("</item_code>"); valueXmlString.append("<item_code>").append("<![CDATA[" + itemCodeOrd + "]]>").append("</item_code>");
...@@ -8389,7 +8416,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8389,7 +8416,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("scheme_applicability cnt["+cnt+"]");
if (cnt > 1) if (cnt > 1)
{ {
valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>"); valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>");
...@@ -8398,8 +8425,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8398,8 +8425,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
} }
else else
{ {
System.out.println("Else scheme_applicability");
valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>"); valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>");
setNodeValue( dom, "item_flg", getAbsString( "B" )); setNodeValue( dom, "item_flg", getAbsString( "B" ));
System.out.println("Else (F.equalsIgnoreCase(lsItemStru) lsSchemeCode["+lsSchemeCode+"]");
valueXmlString.append("<item_code protect = \"0\">").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>"); valueXmlString.append("<item_code protect = \"0\">").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>");
setNodeValue( dom, "item_code", getAbsString( lsSchemeCode )); setNodeValue( dom, "item_code", getAbsString( lsSchemeCode ));
reStr=itemChangedDet(dom, dom1, dom2, objContext, "item_code", editFlag, xtraParams); reStr=itemChangedDet(dom, dom1, dom2, objContext, "item_code", editFlag, xtraParams);
...@@ -8414,6 +8443,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8414,6 +8443,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
{ {
valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>"); valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>");
setNodeValue( dom, "item_flg", getAbsString( "B" )); setNodeValue( dom, "item_flg", getAbsString( "B" ));
System.out.println("(! F.equalsIgnoreCase(lsItemStru) lsSchemeCode["+lsSchemeCode+"]");
valueXmlString.append("<item_code protect = \"0\">").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>"); valueXmlString.append("<item_code protect = \"0\">").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>");
setNodeValue( dom, "item_code", getAbsString( lsSchemeCode )); setNodeValue( dom, "item_code", getAbsString( lsSchemeCode ));
reStr=itemChangedDet(dom, dom1, dom2, objContext, "item_code", editFlag, xtraParams); reStr=itemChangedDet(dom, dom1, dom2, objContext, "item_code", editFlag, xtraParams);
...@@ -8426,11 +8456,12 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8426,11 +8456,12 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
else if (!"F".equalsIgnoreCase(lsItemStru) && (lsSchemeCode == null || lsSchemeCode.trim().length() == 0)) else if (!"F".equalsIgnoreCase(lsItemStru) && (lsSchemeCode == null || lsSchemeCode.trim().length() == 0))
{ {
valueXmlString.append("<item_code protect = \"0\">").append("<![CDATA[]]>").append("</item_code>"); valueXmlString.append("<item_code protect = \"0\">").append("<![CDATA[]]>").append("</item_code>");
System.out.println("ll_schcnt["+ll_schcnt+"]");
if (ll_schcnt >= 1) if (ll_schcnt >= 1)
{ {
valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>"); valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>");
setNodeValue( dom, "item_flg", getAbsString( "B" )); setNodeValue( dom, "item_flg", getAbsString( "B" ));
System.out.println(" (! F.equalsIgnoreCase(lsItemStru) && (lsSchemeCode == null["+lsSchemeCode+"]");
valueXmlString.append("<item_code>").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>"); valueXmlString.append("<item_code>").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>");
setNodeValue( dom, "item_code", getAbsString( lsSchemeCode )); setNodeValue( dom, "item_code", getAbsString( lsSchemeCode ));
} }
...@@ -8438,8 +8469,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8438,8 +8469,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
{ {
valueXmlString.append("<item_flg>").append("<![CDATA[" + 'I' + "]]>").append("</item_flg>"); valueXmlString.append("<item_flg>").append("<![CDATA[" + 'I' + "]]>").append("</item_flg>");
setNodeValue( dom, "item_flg", getAbsString( "I" )); setNodeValue( dom, "item_flg", getAbsString( "I" ));
System.out.println("(itemCodeOrd1 == null["+itemCodeOrd+"]");
System.out.println(" (Else ! F.equalsIgnoreCase(lsItemStru) && (itemCodeOrd1 == null["+itemCodeOrd1+"]");
valueXmlString.append("<item_code protect = \"1\">").append("<![CDATA[" + itemCodeOrd + "]]>").append("</item_code>"); valueXmlString.append("<item_code protect = \"1\">").append("<![CDATA[" + itemCodeOrd + "]]>").append("</item_code>");
setNodeValue( dom, "item_code", getAbsString( itemCodeOrd )); setNodeValue( dom, "item_code", getAbsString( itemCodeOrd1 ));
} }
reStr=itemChangedDet(dom, dom1, dom2, objContext, "item_code", editFlag, xtraParams); reStr=itemChangedDet(dom, dom1, dom2, objContext, "item_code", editFlag, xtraParams);
pos = reStr.indexOf("<Detail2>"); pos = reStr.indexOf("<Detail2>");
...@@ -8448,7 +8481,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -8448,7 +8481,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
reStr = reStr.substring(0,pos); reStr = reStr.substring(0,pos);
valueXmlString.append(reStr); valueXmlString.append(reStr);
} }
System.out.println("after change item code "+valueXmlString.toString());
System.out.println("after itemchange itemCodeOrd"+itemCodeOrd);
sql = "select pack_code from siteitem where site_code = ? and item_code =?"; sql = "select pack_code from siteitem where site_code = ? and item_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsSiteCode); pstmt.setString(1, lsSiteCode);
...@@ -9447,7 +9481,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9447,7 +9481,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("lsItemser["+lsItemser+"]");
valueXmlString.append("<item_ser>").append("<![CDATA[" + lsItemser + "]]>").append("</item_ser>"); valueXmlString.append("<item_ser>").append("<![CDATA[" + lsItemser + "]]>").append("</item_ser>");
setNodeValue( dom, "item_ser", getAbsString( lsItemser)); setNodeValue( dom, "item_ser", getAbsString( lsItemser));
} }
...@@ -9512,12 +9546,12 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9512,12 +9546,12 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
} }
if (lsContractNo == null || lsContractNo.trim().length() == 0) if (lsContractNo == null || lsContractNo.trim().length() == 0)
{ {
System.out.println("ContractNo== NUll");
valueXmlString.append("<contract_no>").append("<![CDATA[" + lsContractNo + "]]>").append("</contract_no>"); valueXmlString.append("<contract_no>").append("<![CDATA[" + lsContractNo + "]]>").append("</contract_no>");
setNodeValue( dom, "contract_no", getAbsString( lsContractNo)); setNodeValue( dom, "contract_no", getAbsString( lsContractNo));
valueXmlString.append("<line_no__contr>").append("<![CDATA[" + lsLineNoContr + "]]>").append("</line_no__contr>"); valueXmlString.append("<line_no__contr>").append("<![CDATA[" + lsLineNoContr + "]]>").append("</line_no__contr>");
setNodeValue( dom, "line_no__contr", getAbsString( lsLineNoContr)); setNodeValue( dom, "line_no__contr", getAbsString( lsLineNoContr));
System.out.println("lsItemCode"+lsItemCode);
sql = "Select descr,unit,unit__rate,item_stru,pack_instr,unit__sal from item where item_code =?"; sql = "Select descr,unit,unit__rate,item_stru,pack_instr,unit__sal from item where item_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsItemCode); pstmt.setString(1, lsItemCode);
...@@ -9556,7 +9590,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9556,7 +9590,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("cnt["+cnt+"]");
if (cnt > 0) if (cnt > 0)
{ {
sql = "select descr from bom where bom_code =?"; sql = "select descr from bom where bom_code =?";
...@@ -9571,6 +9605,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9571,6 +9605,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("descr["+descr+"]");
} }
lsItemFlg = checkNull(genericUtility.getColumnValue("item_flg", dom)); lsItemFlg = checkNull(genericUtility.getColumnValue("item_flg", dom));
...@@ -9582,6 +9617,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9582,6 +9617,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
{ {
lsItemDesc = mDescr; lsItemDesc = mDescr;
} }
System.out.println("lsItemDesc["+lsItemDesc+"]");
valueXmlString.append("<item_descr>").append("<![CDATA[" + lsItemDesc + "]]>").append("</item_descr>"); valueXmlString.append("<item_descr>").append("<![CDATA[" + lsItemDesc + "]]>").append("</item_descr>");
setNodeValue( dom, "item_descr", getAbsString( lsItemDesc)); setNodeValue( dom, "item_descr", getAbsString( lsItemDesc));
...@@ -9589,6 +9625,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9589,6 +9625,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
{ {
lsUnitSal = uom; lsUnitSal = uom;
} }
System.out.println("lsUnitSal["+lsUnitSal+"]");
valueXmlString.append("<unit>").append("<![CDATA[" + lsUnitSal + "]]>").append("</unit>"); valueXmlString.append("<unit>").append("<![CDATA[" + lsUnitSal + "]]>").append("</unit>");
setNodeValue( dom, "unit", getAbsString( lsUnitSal)); setNodeValue( dom, "unit", getAbsString( lsUnitSal));
reStr=itemChangedDet(dom, dom1, dom2, objContext, "unit", editFlag, xtraParams); reStr=itemChangedDet(dom, dom1, dom2, objContext, "unit", editFlag, xtraParams);
...@@ -9597,6 +9634,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9597,6 +9634,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pos = reStr.indexOf("</Detail2>"); pos = reStr.indexOf("</Detail2>");
reStr = reStr.substring(0,pos); reStr = reStr.substring(0,pos);
valueXmlString.append(reStr); valueXmlString.append(reStr);
System.out.println("Unit ItemChangeD Called["+valueXmlString.toString()+"]");
valueXmlString.append("<unit__std>").append("<![CDATA[" + uom + "]]>").append("</unit__std>"); valueXmlString.append("<unit__std>").append("<![CDATA[" + uom + "]]>").append("</unit__std>");
setNodeValue( dom, "unit__std", getAbsString( uom)); setNodeValue( dom, "unit__std", getAbsString( uom));
valueXmlString.append("<unit__rate>").append("<![CDATA[" + uomr + "]]>").append("</unit__rate>"); valueXmlString.append("<unit__rate>").append("<![CDATA[" + uomr + "]]>").append("</unit__rate>");
...@@ -9612,10 +9650,12 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9612,10 +9650,12 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
valueXmlString.append("<item_flg>").append("<![CDATA[" + 'I' + "]]>").append("</item_flg>"); valueXmlString.append("<item_flg>").append("<![CDATA[" + 'I' + "]]>").append("</item_flg>");
setNodeValue( dom, "item_flg", getAbsString( "I")); setNodeValue( dom, "item_flg", getAbsString( "I"));
} }
} else }
else
{ {
lsItemCodeOrd = checkNull(genericUtility.getColumnValue("item_code__ord", dom1)); System.out.println("UOM else");
lsItemCodeOrd = checkNull(genericUtility.getColumnValue("item_code__ord", dom));
System.out.println("item_code__ord["+lsItemCodeOrd+"]");
sql = "select count(*) as cnt from item where item_code =?"; sql = "select count(*) as cnt from item where item_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsItemCodeOrd); pstmt.setString(1, lsItemCodeOrd);
...@@ -9628,7 +9668,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9628,7 +9668,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("cnt["+cnt);
if (cnt > 0) if (cnt > 0)
{ {
sql = "select descr from item where item_code =?"; sql = "select descr from item where item_code =?";
...@@ -9644,10 +9684,11 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9644,10 +9684,11 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
System.out.println("lsItemCode["+lsItemCode+"]");
System.out.println("lsItemCodeOrd["+lsItemCodeOrd+"]");
sql = "Select descr, unit from bom where bom_code =?"; sql = "Select descr, unit from bom where bom_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsItemCodeOrd); pstmt.setString(1, lsItemCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
...@@ -9718,35 +9759,41 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9718,35 +9759,41 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
valueXmlString.append("<rate>").append("<![CDATA[" + mRate + "]]>").append("</rate>"); valueXmlString.append("<rate>").append("<![CDATA[" + mRate + "]]>").append("</rate>");
setNodeValue( dom, "rate", getAbsString( String.valueOf(mRate))); setNodeValue( dom, "rate", getAbsString( String.valueOf(mRate)));
} }
System.out.println("Rate is:"+mRate);
mPriceListClg = checkNull(genericUtility.getColumnValue("price_list__clg", dom1)); mPriceListClg = checkNull(genericUtility.getColumnValue("price_list__clg", dom1));
System.out.println("mPriceListClg is:"+mPriceListClg);
if (mPriceListClg != null && mPriceListClg.trim().length() > 0) if (mPriceListClg != null && mPriceListClg.trim().length() > 0)
{ {
mRateClg = distCommon.pickRate(mPriceListClg, lrdateStr, lsItemCodeOrd, "", "L", lsQty, conn); mRateClg = distCommon.pickRate(mPriceListClg, lrdateStr, lsItemCodeOrd, "", "L", lsQty, conn);
System.out.println("mRateClg"+mRateClg);
} }
System.out.println("Pass mRateClg"+mRateClg);
lsListType = distCommon.getPriceListType(mPriceListClg, conn); lsListType = distCommon.getPriceListType(mPriceListClg, conn);
System.out.println("lsListType"+lsListType);
System.out.println("mRateClg"+mRateClg);
if ("B".equalsIgnoreCase(lsListType) && mRateClg < 0) if ("B".equalsIgnoreCase(lsListType) && mRateClg < 0)
{ {
mRateClg = 0.00; mRateClg = 0.00;
} }
if (mRateClg <= 0) if (mRateClg <= 0)
{ {
System.out.println("mRateClg <=0 mPriceListClg"+mPriceListClg);
if (mPriceListClg != null && mPriceListClg.trim().length() > 0) if (mPriceListClg != null && mPriceListClg.trim().length() > 0)
{ {
System.out.println("mRateClg <=0 mRateClg"+mRateClg);
valueXmlString.append("<rate__clg>").append("<![CDATA[" + mRateClg + "]]>").append("</rate__clg>"); valueXmlString.append("<rate__clg>").append("<![CDATA[" + mRateClg + "]]>").append("</rate__clg>");
setNodeValue( dom, "rate__clg", getAbsString( String.valueOf(mRateClg))); setNodeValue( dom, "rate__clg", getAbsString( String.valueOf(mRateClg)));
} }
else else
{ {
System.out.println("mRateClg <=0 ldRate"+ldRate);
valueXmlString.append("<rate__clg>").append("<![CDATA[" + ldRate + "]]>").append("</rate__clg>"); valueXmlString.append("<rate__clg>").append("<![CDATA[" + ldRate + "]]>").append("</rate__clg>");
setNodeValue( dom, "rate__clg", getAbsString( String.valueOf(ldRate))); setNodeValue( dom, "rate__clg", getAbsString( String.valueOf(ldRate)));
} }
} }
else else
{ {
System.out.println("mRateClg <=0 else mRateClg"+mRateClg);
valueXmlString.append("<rate__clg>").append("<![CDATA[" + mRateClg + "]]>").append("</rate__clg>"); valueXmlString.append("<rate__clg>").append("<![CDATA[" + mRateClg + "]]>").append("</rate__clg>");
setNodeValue( dom, "rate__clg", getAbsString( String.valueOf(mRateClg))); setNodeValue( dom, "rate__clg", getAbsString( String.valueOf(mRateClg)));
} }
...@@ -9756,7 +9803,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9756,7 +9803,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pos = reStr.indexOf("</Detail2>"); pos = reStr.indexOf("</Detail2>");
reStr = reStr.substring(0,pos); reStr = reStr.substring(0,pos);
valueXmlString.append(reStr); valueXmlString.append(reStr);
System.out.println("rate itemChanged Called"+valueXmlString.toString());
lsSaleOrder = checkNull(genericUtility.getColumnValue("sale_order", dom1)); lsSaleOrder = checkNull(genericUtility.getColumnValue("sale_order", dom1));
sql = "select quot_no from sorder where sale_order =?"; sql = "select quot_no from sorder where sale_order =?";
...@@ -9776,9 +9823,14 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9776,9 +9823,14 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
{ {
lsListType = "L"; lsListType = "L";
} }
double rate1 = Double.parseDouble(genericUtility.getColumnValue("rate", dom1)==null?"0.00":genericUtility.getColumnValue("rate", dom1));
double rate = Double.parseDouble(genericUtility.getColumnValue("rate", dom1)==null?"0.00":genericUtility.getColumnValue("rate", dom1)); double mRateClg1 = Double.parseDouble(genericUtility.getColumnValue("rate__clg", dom1)==null?"0.00":genericUtility.getColumnValue("rate__clg", dom1));
mRateClg = Double.parseDouble(genericUtility.getColumnValue("rate__clg", dom1)==null?"0.00":genericUtility.getColumnValue("rate__clg", dom1)); System.out.println("dom1 rate :"+rate1);
System.out.println("dom1 mRateClg1 :"+mRateClg1);
double rate = Double.parseDouble(genericUtility.getColumnValue("rate", dom)==null?"0.00":genericUtility.getColumnValue("rate", dom));
mRateClg = Double.parseDouble(genericUtility.getColumnValue("rate__clg", dom)==null?"0.00":genericUtility.getColumnValue("rate__clg", dom));
System.out.println("dom rate :"+rate);
System.out.println("dom mRateClg1 :"+mRateClg);
if ("B".equalsIgnoreCase(lsListType) || "I".equalsIgnoreCase(lsListType) || "F".equalsIgnoreCase(lsListType)) if ("B".equalsIgnoreCase(lsListType) || "I".equalsIgnoreCase(lsListType) || "F".equalsIgnoreCase(lsListType))
{ {
valueXmlString.append("<rate protect = \"1\">").append("<![CDATA["+rate+"]]>").append("</rate>"); valueXmlString.append("<rate protect = \"1\">").append("<![CDATA["+rate+"]]>").append("</rate>");
...@@ -9827,6 +9879,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9827,6 +9879,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
else else
{ {
//03/AUG/16 check up to here //03/AUG/16 check up to here
System.out.println("ContractNo!=NUll");
lsItemCodeOrd = checkNull(genericUtility.getColumnValue("item_code__ord", dom)); lsItemCodeOrd = checkNull(genericUtility.getColumnValue("item_code__ord", dom));
sql = "select count(*) as cnt from item where item_code =?"; sql = "select count(*) as cnt from item where item_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -9965,10 +10018,18 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -9965,10 +10018,18 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
valueXmlString.append("<unit__std >").append("<![CDATA[" + lsUnitStd + "]]>").append("</unit__std>"); valueXmlString.append("<unit__std >").append("<![CDATA[" + lsUnitStd + "]]>").append("</unit__std>");
setNodeValue( dom, "unit__std", getAbsString( lsUnitStd)); setNodeValue( dom, "unit__std", getAbsString( lsUnitStd));
String ldDespDateStr="";
if(ldDespDate != null)
{
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
String ldDespDateStr=simpleDateFormat.format(ldDespDate); ldDespDateStr=simpleDateFormat.format(ldDespDate);
System.out.println("=========ldDespDate["+ldDespDateStr+"]"); System.out.println("=========ldDespDate["+ldDespDateStr+"]");
}
else
{
ldDespDateStr="";
}
valueXmlString.append("<dsp_date>").append("<![CDATA[" + ldDespDateStr + "]]>").append("</dsp_date>"); valueXmlString.append("<dsp_date>").append("<![CDATA[" + ldDespDateStr + "]]>").append("</dsp_date>");
setNodeValue( dom, "dsp_date", getAbsString( ldDespDate.toString())); setNodeValue( dom, "dsp_date", getAbsString( ldDespDate.toString()));
...@@ -11971,6 +12032,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -11971,6 +12032,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
try try
{ {
ldRate = Double.parseDouble(checkDouble(genericUtility.getColumnValue("rate", dom))); ldRate = Double.parseDouble(checkDouble(genericUtility.getColumnValue("rate", dom)));
System.out.println("Rate is:"+ldRate);
//Timestamp mOrdDate = Timestamp.valueOf(genericUtility.getColumnValue("order_date", dom1)); //Timestamp mOrdDate = Timestamp.valueOf(genericUtility.getColumnValue("order_date", dom1));
mOrdDateStr = genericUtility.getColumnValue("order_date", dom1); mOrdDateStr = genericUtility.getColumnValue("order_date", dom1);
mVal = checkNull(genericUtility.getColumnValue("unit__rate", dom)); mVal = checkNull(genericUtility.getColumnValue("unit__rate", dom));
...@@ -12005,7 +12067,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -12005,7 +12067,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
ldtDateStr=mOrdDateStr; ldtDateStr=mOrdDateStr;
} }
lsPriceList = checkNull(genericUtility.getColumnValue("price_list", dom1)); lsPriceList = checkNull(genericUtility.getColumnValue("price_list", dom1));
System.out.println("lsPriceList rate"+lsPriceList);
if (lsPriceList == null || lsPriceList.trim().length() == 0) if (lsPriceList == null || lsPriceList.trim().length() == 0)
{ {
lcPlistDisc = getDiscount(itemCode, lsUnit, mQty, dom, dom1, dom2, conn); lcPlistDisc = getDiscount(itemCode, lsUnit, mQty, dom, dom1, dom2, conn);
...@@ -12068,27 +12130,30 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -12068,27 +12130,30 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("lsUdfStr1"+lsUdfStr1);
System.out.println("lsUdfStr2"+lsUdfStr2);
if ((lsUdfStr1 != null && lsUdfStr1.trim().length() > 0) && Double.parseDouble(checkDouble(lsUdfStr1)) > 0) if ((lsUdfStr1 != null && lsUdfStr1.trim().length() > 0) && Double.parseDouble(checkDouble(lsUdfStr1)) > 0)
{ {
lcRetDiff = (100 - Double.parseDouble(checkDouble(lsUdfStr1))) / 100; lcRetDiff = (100 - Double.parseDouble(checkDouble(lsUdfStr1))) / 100;
lcEscRate = lcRateStduom * lcRetDiff; lcEscRate = lcRateStduom * lcRetDiff;
System.out.println("lcRateStduom"+lcRateStduom);
valueXmlString.append("<rate__clg>").append("<![CDATA[" + lcEscRate + "]]>").append("</rate__clg>"); valueXmlString.append("<rate__clg>").append("<![CDATA[" + lcEscRate + "]]>").append("</rate__clg>");
} }
else else
{ {
mPriceListClg = checkNull(genericUtility.getColumnValue("price_list__clg", dom1)); mPriceListClg = checkNull(genericUtility.getColumnValue("price_list__clg", dom1));
System.out.println("mPriceListClg rate "+lsListType);
if (mPriceListClg != null && mPriceListClg.trim().length() > 0) if (mPriceListClg != null && mPriceListClg.trim().length() > 0)
{ {
mRateClg = distCommon.pickRate(mPriceListClg, ldtDateStr, mItem, "", "L", conn); mRateClg = distCommon.pickRate(mPriceListClg, ldtDateStr, mItem, "", "L", conn);
} }
lsListType = distCommon.getPriceListType(mPriceListClg, conn); lsListType = distCommon.getPriceListType(mPriceListClg, conn);
System.out.println("lsListType"+lsListType);
if ("B".equalsIgnoreCase(lsListType) && mRateClg == -1) if ("B".equalsIgnoreCase(lsListType) && mRateClg == -1)
{ {
mRateClg = 0; mRateClg = 0;
} }
System.out.println("mRateClg"+mRateClg);
if (mRateClg <= 0) if (mRateClg <= 0)
{ {
if (mPriceListClg != null && mPriceListClg.trim().length() > 0) if (mPriceListClg != null && mPriceListClg.trim().length() > 0)
...@@ -12096,6 +12161,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -12096,6 +12161,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
valueXmlString.append("<rate__clg>").append("<![CDATA[" + mRateClg + "]]>").append("</rate__clg>"); valueXmlString.append("<rate__clg>").append("<![CDATA[" + mRateClg + "]]>").append("</rate__clg>");
} else } else
{ {
System.out.println("ldRate else"+ldRate);
valueXmlString.append("<rate__clg>").append("<![CDATA[" + ldRate + "]]>").append("</rate__clg>"); valueXmlString.append("<rate__clg>").append("<![CDATA[" + ldRate + "]]>").append("</rate__clg>");
} }
} }
...@@ -12559,11 +12625,12 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -12559,11 +12625,12 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(cnt == 0)continue;
if (cnt == 0) /* if (cnt == 0)
{ {
// Goto Nextrec // Goto Nextrec
} }*/
sql = "select (case when apply_cust_list is null then ' ' else apply_cust_list end) as ls_apply_cust_list," sql = "select (case when apply_cust_list is null then ' ' else apply_cust_list end) as ls_apply_cust_list,"
+ " (case when noapply_cust_list is null then ' ' else noapply_cust_list end) as ls_noapply_cust_list, order_type" + " (case when noapply_cust_list is null then ' ' else noapply_cust_list end) as ls_noapply_cust_list, order_type"
+ " from scheme_applicability where scheme_code =?"; + " from scheme_applicability where scheme_code =?";
...@@ -12760,6 +12827,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -12760,6 +12827,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
{ {
valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>"); valueXmlString.append("<item_flg>").append("<![CDATA[" + 'B' + "]]>").append("</item_flg>");
setNodeValue( dom, "item_flg", getAbsString("B")); setNodeValue( dom, "item_flg", getAbsString("B"));
System.out.println("F.equalsIgnoreCase(lsItemStru) && lsSchemeCode.trim().length() > 0 lsSchemeCode"+lsSchemeCode);
valueXmlString.append("<item_code protect = \"1\">").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>"); valueXmlString.append("<item_code protect = \"1\">").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>");
setNodeValue( dom, "item_code", getAbsString(lsSchemeCode)); setNodeValue( dom, "item_code", getAbsString(lsSchemeCode));
...@@ -12785,6 +12853,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -12785,6 +12853,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
} }
else if (!"F".equalsIgnoreCase(lsItemStru) && (lsSchemeCode == null || lsSchemeCode.trim().length() == 0)) else if (!"F".equalsIgnoreCase(lsItemStru) && (lsSchemeCode == null || lsSchemeCode.trim().length() == 0))
{ {
System.out.println("F.equalsIgnoreCase(lsItemStru) && lsSchemeCode.trim().length() == 0 lsSchemeCode"+lsSchemeCode);
valueXmlString.append("<item_code protect = \"1\">").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>"); valueXmlString.append("<item_code protect = \"1\">").append("<![CDATA[" + lsSchemeCode + "]]>").append("</item_code>");
setNodeValue( dom, "item_code", getAbsString(lsSchemeCode)); setNodeValue( dom, "item_code", getAbsString(lsSchemeCode));
......
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