Commit 141ca886 authored by pchavan's avatar pchavan

Correct CDATA type error while passing the data.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@190636 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 23ec8e29
...@@ -4051,30 +4051,30 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4051,30 +4051,30 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
valueXmlString.append("<rec_date>").append("<![CDATA["+currAppdate.trim()+"]]>").append("</rec_date>"); valueXmlString.append("<rec_date>").append("<![CDATA["+currAppdate.trim()+"]]>").append("</rec_date>");
String tranSer="P-RCP"; String tranSer="P-RCP";
valueXmlString.append("<tran_ser>").append("<![CDATA["+tranSer+"]]>").append("</tran_ser>"); valueXmlString.append("<tran_ser>").append("<![CDATA["+tranSer+"]]>").append("</tran_ser>");
valueXmlString.append("<amount>").append("<![CDATA[0]>").append("</amount>"); valueXmlString.append("<amount>").append("<![CDATA[0]]>").append("</amount>");
valueXmlString.append("<tax>").append("<![CDATA[0]>").append("</tax>"); valueXmlString.append("<tax>").append("<![CDATA[0]]>").append("</tax>");
valueXmlString.append("<discount>").append("<![CDATA[0]>").append("</discount>"); valueXmlString.append("<discount>").append("<![CDATA[0]]>").append("</discount>");
valueXmlString.append("<insurance_amt>").append("<![CDATA[0]>").append("</insurance_amt>"); valueXmlString.append("<insurance_amt>").append("<![CDATA[0]]>").append("</insurance_amt>");
valueXmlString.append("<frt_amt>").append("<![CDATA[0]>").append("</frt_amt>"); valueXmlString.append("<frt_amt>").append("<![CDATA[0]]>").append("</frt_amt>");
valueXmlString.append("<exch_rate>").append("<![CDATA[0]>").append("</exch_rate>"); valueXmlString.append("<exch_rate>").append("<![CDATA[0]]>").append("</exch_rate>");
valueXmlString.append("<curr_code__frt>").append("<![CDATA[]>").append("</curr_code__frt>"); valueXmlString.append("<curr_code__frt>").append("<![CDATA[]]>").append("</curr_code__frt>");
valueXmlString.append("<curr_code__ins>").append("<![CDATA[]>").append("</curr_code__ins>"); valueXmlString.append("<curr_code__ins>").append("<![CDATA[]]>").append("</curr_code__ins>");
valueXmlString.append("<supp_code>").append("<![CDATA[]>").append("</supp_code>"); valueXmlString.append("<supp_code>").append("<![CDATA[]]>").append("</supp_code>");
valueXmlString.append("<supp_name>").append("<![CDATA[]>").append("</supp_name>"); valueXmlString.append("<supp_name>").append("<![CDATA[]]>").append("</supp_name>");
valueXmlString.append("<tran_code>").append("<![CDATA[]>").append("</tran_code>"); valueXmlString.append("<tran_code>").append("<![CDATA[]]>").append("</tran_code>");
valueXmlString.append("<transporter_name>").append("<![CDATA[]>").append("</transporter_name>"); valueXmlString.append("<transporter_name>").append("<![CDATA[]]>").append("</transporter_name>");
valueXmlString.append("<curr_code>").append("<![CDATA[]>").append("</curr_code>"); valueXmlString.append("<curr_code>").append("<![CDATA[]]>").append("</curr_code>");
valueXmlString.append("<item_ser>").append("<![CDATA[]>").append("</item_ser>"); valueXmlString.append("<item_ser>").append("<![CDATA[]]>").append("</item_ser>");
valueXmlString.append("<itemser_descr>").append("<![CDATA[]>").append("</itemser_descr>"); valueXmlString.append("<itemser_descr>").append("<![CDATA[]]>").append("</itemser_descr>");
valueXmlString.append("<vouch_created >").append("<![CDATA[N]>").append("</vouch_created>"); valueXmlString.append("<vouch_created >").append("<![CDATA[N]]>").append("</vouch_created>");
valueXmlString.append("<reciept_type >").append("<![CDATA[F]>").append("</reciept_type>"); valueXmlString.append("<reciept_type >").append("<![CDATA[F]]>").append("</reciept_type>");
valueXmlString.append("<accept_criteria >").append("<![CDATA[P]>").append("</accept_criteria>"); valueXmlString.append("<accept_criteria >").append("<![CDATA[P]]>").append("</accept_criteria>");
lsPostType = disscommon.getDisparams("999999", "POST_PORCP_SA", conn); lsPostType = disscommon.getDisparams("999999", "POST_PORCP_SA", conn);
if("NULLFOUND".equalsIgnoreCase(lsPostType) || lsPostType == null || lsPostType.trim().length() ==0) if("NULLFOUND".equalsIgnoreCase(lsPostType) || lsPostType == null || lsPostType.trim().length() ==0)
{ {
lsPostType="A"; lsPostType="A";
} }
valueXmlString.append("<post_type >").append("<![CDATA["+lsPostType+"]>").append("</post_type>"); valueXmlString.append("<post_type >").append("<![CDATA["+lsPostType+"]]>").append("</post_type>");
sql = "select emp_code from users where code = ?"; sql = "select emp_code from users where code = ?";
pstmt = conn.prepareStatement( sql ); pstmt = conn.prepareStatement( sql );
pstmt.setString(1,chguser); pstmt.setString(1,chguser);
...@@ -4096,11 +4096,11 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4096,11 +4096,11 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
if ( !"Y".equalsIgnoreCase(lsqcreqd)) if ( !"Y".equalsIgnoreCase(lsqcreqd))
{ {
valueXmlString.append("<qc_reqd protect =\"1\">").append("<![CDATA["+lsqcreqd+"]>").append("</qc_reqd>"); valueXmlString.append("<qc_reqd protect =\"1\">").append("<![CDATA["+lsqcreqd+"]]>").append("</qc_reqd>");
} }
else else
{ {
valueXmlString.append("<qc_reqd protect =\"0\">").append("<![CDATA["+lsqcreqd+"]>").append("</qc_reqd>"); valueXmlString.append("<qc_reqd protect =\"0\">").append("<![CDATA["+lsqcreqd+"]]>").append("</qc_reqd>");
} }
lsinvacct =disscommon.getDisparams("999999", "INV_ACCT_PORCP", conn); lsinvacct =disscommon.getDisparams("999999", "INV_ACCT_PORCP", conn);
if("NULLFOUND".equalsIgnoreCase(lsPostType) || lsPostType == null || lsPostType.trim().length() ==0) if("NULLFOUND".equalsIgnoreCase(lsPostType) || lsPostType == null || lsPostType.trim().length() ==0)
...@@ -4114,10 +4114,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4114,10 +4114,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
if("Y".equalsIgnoreCase(lsinvacct) && "Y".equalsIgnoreCase(lsinvacctqc)) if("Y".equalsIgnoreCase(lsinvacct) && "Y".equalsIgnoreCase(lsinvacctqc))
{ {
valueXmlString.append("<post_prov>").append("<![CDATA[Y]>").append("</post_prov>"); valueXmlString.append("<post_prov>").append("<![CDATA[Y]]>").append("</post_prov>");
} else } else
{ {
valueXmlString.append("<post_prov>").append("<![CDATA[N]>").append("</post_prov>"); valueXmlString.append("<post_prov>").append("<![CDATA[N]]>").append("</post_prov>");
} }
} }
...@@ -4141,8 +4141,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4141,8 +4141,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs.close(); rs.close();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
valueXmlString.append("<site_descr>").append("<![CDATA["+msdesc+"]>").append("</site_descr>"); valueXmlString.append("<site_descr>").append("<![CDATA["+msdesc+"]]>").append("</site_descr>");
valueXmlString.append("<stan_code__dest>").append("<![CDATA["+lsstancode+"]>").append("</stan_code__dest>"); valueXmlString.append("<stan_code__dest>").append("<![CDATA["+lsstancode+"]]>").append("</stan_code__dest>");
} }
if ((suppcode != null && suppcode.trim().length()>0) && (sitecode != null && sitecode.trim().length()>0) && (itemser != null && itemser.trim().length()>0)) if ((suppcode != null && suppcode.trim().length()>0) && (sitecode != null && sitecode.trim().length()>0) && (itemser != null && itemser.trim().length()>0))
...@@ -4175,7 +4175,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4175,7 +4175,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs.close(); rs.close();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
valueXmlString.append("<purc_order>").append("<![CDATA["+purcorder.trim()+"]>").append("</purc_order>"); valueXmlString.append("<purc_order>").append("<![CDATA["+purcorder.trim()+"]]>").append("</purc_order>");
} }
} }
} }
...@@ -4188,7 +4188,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4188,7 +4188,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
itemser = genericUtility.getColumnValue("itemser", dom); itemser = genericUtility.getColumnValue("itemser", dom);
if(suppcode == null || suppcode.trim().length() == 0) if(suppcode == null || suppcode.trim().length() == 0)
{ {
valueXmlString.append("<supp_name>").append("<![CDATA[]>").append("</supp_name>"); valueXmlString.append("<supp_name>").append("<![CDATA[]]>").append("</supp_name>");
} }
if(suppcode != null && suppcode.trim().length() >0) if(suppcode != null && suppcode.trim().length() >0)
{ {
...@@ -4207,12 +4207,12 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4207,12 +4207,12 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
valueXmlString.append("<supp_name>").append("<![CDATA["+suppname+"]>").append("</supp_name>"); valueXmlString.append("<supp_name>").append("<![CDATA["+suppname+"]]>").append("</supp_name>");
valueXmlString.append("<tran_code>").append("<![CDATA["+trancode+"]>").append("</tran_code>"); valueXmlString.append("<tran_code>").append("<![CDATA["+trancode+"]]>").append("</tran_code>");
valueXmlString.append("<stan_code__load>").append("<![CDATA["+stancode+"]>").append("</stan_code__load>"); valueXmlString.append("<stan_code__load>").append("<![CDATA["+stancode+"]]>").append("</stan_code__load>");
valueXmlString.append("<curr_code>").append("<![CDATA["+currcode+"]>").append("</curr_code>"); valueXmlString.append("<curr_code>").append("<![CDATA["+currcode+"]]>").append("</curr_code>");
valueXmlString.append("<supp_code__ship>").append("<![CDATA["+suppcode+"]>").append("</supp_code__ship>"); valueXmlString.append("<supp_code__ship>").append("<![CDATA["+suppcode+"]]>").append("</supp_code__ship>");
valueXmlString.append("<supp_name__ship>").append("<![CDATA["+suppname+"]>").append("</supp_name__ship>"); valueXmlString.append("<supp_name__ship>").append("<![CDATA["+suppname+"]]>").append("</supp_name__ship>");
} }
purcorder = genericUtility.getColumnValue("purc_order", dom); purcorder = genericUtility.getColumnValue("purc_order", dom);
if(purcorder == null || purcorder.trim().length()==0) if(purcorder == null || purcorder.trim().length()==0)
...@@ -4235,9 +4235,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4235,9 +4235,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
valueXmlString.append("<curr_code>").append("<![CDATA["+currcode+"]>").append("</curr_code>"); valueXmlString.append("<curr_code>").append("<![CDATA["+currcode+"]]>").append("</curr_code>");
valueXmlString.append("<tran_code>").append("<![CDATA["+trancode+"]>").append("</tran_code>"); valueXmlString.append("<tran_code>").append("<![CDATA["+trancode+"]]>").append("</tran_code>");
valueXmlString.append("<stan_code__load>").append("<![CDATA["+stancode+"]>").append("</stan_code__load>"); valueXmlString.append("<stan_code__load>").append("<![CDATA["+stancode+"]]>").append("</stan_code__load>");
trandt = genericUtility.getColumnValue("eff_date", dom); trandt = genericUtility.getColumnValue("eff_date", dom);
ldttrandt = Timestamp.valueOf(genericUtility.getValidDateString(trandt.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+" 00:00:00.0"); ldttrandt = Timestamp.valueOf(genericUtility.getValidDateString(trandt.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+" 00:00:00.0");
System.out.println("Date is"+ldttrandt); System.out.println("Date is"+ldttrandt);
...@@ -4257,7 +4257,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4257,7 +4257,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
lcexchrate =fincommon.getDailyExchRateSellBuy(currcode, lscurrcodebase, sitecode, trandt, "B", conn); lcexchrate =fincommon.getDailyExchRateSellBuy(currcode, lscurrcodebase, sitecode, trandt, "B", conn);
if(exchrate >0) if(exchrate >0)
{ {
valueXmlString.append("<exch_rate>").append("<![CDATA["+exchrate+"]>").append("</exch_rate>"); valueXmlString.append("<exch_rate>").append("<![CDATA["+exchrate+"]]>").append("</exch_rate>");
} }
} }
} }
...@@ -4293,7 +4293,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4293,7 +4293,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
valueXmlString.append("<purc_order>").append("<![CDATA["+purcorder.trim()+"]>").append("</purc_order>"); valueXmlString.append("<purc_order>").append("<![CDATA["+purcorder.trim()+"]]>").append("</purc_order>");
} }
} }
...@@ -4331,11 +4331,11 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4331,11 +4331,11 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
{ {
if("Y".equalsIgnoreCase(lsqcreqd)) if("Y".equalsIgnoreCase(lsqcreqd))
{ {
valueXmlString.append("<qc_reqd>").append("<![CDATA["+lsqcreqd+"]>").append("</qc_reqd>"); valueXmlString.append("<qc_reqd>").append("<![CDATA["+lsqcreqd+"]]>").append("</qc_reqd>");
} }
else else
{ {
valueXmlString.append("<qc_reqd>").append("<![CDATA["+lsqcreqd+"]>").append("</qc_reqd>"); valueXmlString.append("<qc_reqd>").append("<![CDATA["+lsqcreqd+"]]>").append("</qc_reqd>");
} }
} }
} }
...@@ -4356,7 +4356,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4356,7 +4356,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
valueXmlString.append("<supp_name__ship>").append("<![CDATA["+descr+"]>").append("</supp_name__ship>"); valueXmlString.append("<supp_name__ship>").append("<![CDATA["+descr+"]]>").append("</supp_name__ship>");
} }
else if (currentColumn.trim().equalsIgnoreCase("purc_order")) else if (currentColumn.trim().equalsIgnoreCase("purc_order"))
{ {
...@@ -4399,17 +4399,17 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4399,17 +4399,17 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
valueXmlString.append("<purc_order>").append("<![CDATA["+purcorder+"]>").append("</purc_order>"); valueXmlString.append("<purc_order>").append("<![CDATA["+purcorder+"]]>").append("</purc_order>");
valueXmlString.append("<supp_code>").append("<![CDATA["+mScode+"]>").append("</supp_code>"); valueXmlString.append("<supp_code>").append("<![CDATA["+mScode+"]]>").append("</supp_code>");
valueXmlString.append("<curr_code>").append("<![CDATA["+mCurr+"]>").append("</curr_code>"); valueXmlString.append("<curr_code>").append("<![CDATA["+mCurr+"]]>").append("</curr_code>");
valueXmlString.append("<tran_code>").append("<![CDATA["+mtrancd+"]>").append("</tran_code>"); valueXmlString.append("<tran_code>").append("<![CDATA["+mtrancd+"]]>").append("</tran_code>");
valueXmlString.append("<item_ser protect =\"1\">").append("<![CDATA["+lsitemser+"]>").append("</item_ser>"); valueXmlString.append("<item_ser protect =\"1\">").append("<![CDATA["+lsitemser+"]]>").append("</item_ser>");
valueXmlString.append("<trans_mode>").append("<![CDATA["+lstransmode+"]>").append("</trans_mode>"); valueXmlString.append("<trans_mode>").append("<![CDATA["+lstransmode+"]]>").append("</trans_mode>");
valueXmlString.append("<pord_type>").append("<![CDATA["+lspordtype+"]>").append("</pord_type>"); valueXmlString.append("<pord_type>").append("<![CDATA["+lspordtype+"]]>").append("</pord_type>");
valueXmlString.append("<accept_criteria>").append("<![CDATA["+lscri+"]>").append("</accept_criteria>"); valueXmlString.append("<accept_criteria>").append("<![CDATA["+lscri+"]]>").append("</accept_criteria>");
valueXmlString.append("<supp_code__ship>").append("<![CDATA["+mScode+"]>").append("</supp_code__ship>"); valueXmlString.append("<supp_code__ship>").append("<![CDATA["+mScode+"]]>").append("</supp_code__ship>");
valueXmlString.append("<anal_code>").append("<![CDATA["+lsanalcode+"]>").append("</anal_code>"); valueXmlString.append("<anal_code>").append("<![CDATA["+lsanalcode+"]]>").append("</anal_code>");
valueXmlString.append("<cr_term>").append("<![CDATA["+lscrterm+"]>").append("</cr_term>"); valueXmlString.append("<cr_term>").append("<![CDATA["+lscrterm+"]]>").append("</cr_term>");
if(lscrterm != null && lscrterm.trim().length()>0 ) if(lscrterm != null && lscrterm.trim().length()>0 )
{ {
sql=" select descr from crterm where cr_term=?"; sql=" select descr from crterm where cr_term=?";
...@@ -4429,9 +4429,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4429,9 +4429,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
valueXmlString.append("<crterm_descr>").append("<![CDATA["+lscrtermdescr+"]>").append("</crterm_descr>"); valueXmlString.append("<crterm_descr>").append("<![CDATA["+lscrtermdescr+"]>").append("</crterm_descr>");
if(lsbankcdpay == null ||lsbankcdpay.trim().length() == 0 ) if(lsbankcdpay == null ||lsbankcdpay.trim().length() == 0 )
{ {
valueXmlString.append("<bank_code__pay>").append("<![CDATA[]>").append("</bank_code__pay>"); valueXmlString.append("<bank_code__pay>").append("<![CDATA[]]>").append("</bank_code__pay>");
valueXmlString.append("<bank_name__ben>").append("<![CDATA[]>").append("</bank_name__ben>"); valueXmlString.append("<bank_name__ben>").append("<![CDATA[]]>").append("</bank_name__ben>");
valueXmlString.append("<bank_acct_no__ben>").append("<![CDATA[]>").append("</bank_acct_no__ben>"); valueXmlString.append("<bank_acct_no__ben>").append("<![CDATA[]]>").append("</bank_acct_no__ben>");
} }
else else
{ {
...@@ -4452,9 +4452,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4452,9 +4452,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
valueXmlString.append("<bank_code__pay>").append("<![CDATA["+lsbankcdpay+"]>").append("</bank_code__pay>"); valueXmlString.append("<bank_code__pay>").append("<![CDATA["+lsbankcdpay+"]]>").append("</bank_code__pay>");
valueXmlString.append("<bank_name__ben>").append("<![CDATA["+lsbname+"]>").append("</bank_name__ben>"); valueXmlString.append("<bank_name__ben>").append("<![CDATA["+lsbname+"]]>").append("</bank_name__ben>");
valueXmlString.append("<bank_acct_no__ben>").append("<![CDATA["+lsacctno+"]>").append("</bank_acct_no__ben>"); valueXmlString.append("<bank_acct_no__ben>").append("<![CDATA["+lsacctno+"]]>").append("</bank_acct_no__ben>");
} }
sql="select descr from itemser where item_ser = ?"; sql="select descr from itemser where item_ser = ?";
...@@ -4494,13 +4494,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4494,13 +4494,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
//Modified by Anjali R. on [30/08/2018][To check dc_date is null][End] //Modified by Anjali R. on [30/08/2018][To check dc_date is null][End]
System.out.println("ldtdc is"+ldtdc); System.out.println("ldtdc is"+ldtdc);
valueXmlString.append("<eff_date>").append(ldtdc1).append("</eff_date>"); //valueXmlString.append("<eff_date>").append(ldtdc1).append("</eff_date>");
valueXmlString.append("<eff_date>").append("<![CDATA["+ldtdc1+"]]>").append("</eff_date>");
} }
else else
{ {
ldttrandt = Timestamp.valueOf(genericUtility.getValidDateString(ldttrandt1.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+" 00:00:00.0"); ldttrandt = Timestamp.valueOf(genericUtility.getValidDateString(ldttrandt1.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+" 00:00:00.0");
System.out.println("ldttrandt1 is"+ldttrandt1); System.out.println("ldttrandt1 is"+ldttrandt1);
valueXmlString.append("<eff_date>").append("<![CDATA["+ldttrandt1+"]>").append("</eff_date>"); valueXmlString.append("<eff_date>").append("<![CDATA["+ldttrandt1+"]]>").append("</eff_date>");
} }
System.out.println("mScode"+mScode); System.out.println("mScode"+mScode);
sql="select supp_name from supplier where supp_code =?"; sql="select supp_name from supplier where supp_code =?";
...@@ -4625,11 +4627,11 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4625,11 +4627,11 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
lcexchrate=fincommon.getDailyExchRateSellBuy(mCurr, lscurrcodebase, lssitecode, Effdate1, "B", conn); lcexchrate=fincommon.getDailyExchRateSellBuy(mCurr, lscurrcodebase, lssitecode, Effdate1, "B", conn);
if(lcexchrate > 0) if(lcexchrate > 0)
{ {
valueXmlString.append("<exch_rate protect =\"1\">").append("<![CDATA["+lcexchrate+"]>").append("</exch_rate>"); valueXmlString.append("<exch_rate protect =\"1\">").append("<![CDATA["+lcexchrate+"]]>").append("</exch_rate>");
} }
else else
{ {
valueXmlString.append("<exch_rate protect =\"1\">").append("<![CDATA["+mPcnt+"]>").append("</exch_rate>"); valueXmlString.append("<exch_rate protect =\"1\">").append("<![CDATA["+mPcnt+"]]>").append("</exch_rate>");
} }
} }
// COMMENTED by Nandkumar Gadkari on 17MAR2018 // COMMENTED by Nandkumar Gadkari on 17MAR2018
...@@ -6663,7 +6665,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -6663,7 +6665,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
if ("Y".equalsIgnoreCase(lstrackshelflife)) if ("Y".equalsIgnoreCase(lstrackshelflife))
{ {
valueXmlString.append("<shelf_life__type >").append("E").append("</shelf_life__type>"); valueXmlString.append("<shelf_life__type >").append("<![CDATA[E]]>").append("</shelf_life__type>");
} }
else else
{ {
...@@ -7097,7 +7099,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -7097,7 +7099,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
if (("S".equalsIgnoreCase(lssource) || "P".equalsIgnoreCase(lssource)) && "2".equalsIgnoreCase(lsstkopt)) if (("S".equalsIgnoreCase(lssource) || "P".equalsIgnoreCase(lssource)) && "2".equalsIgnoreCase(lsstkopt))
{ {
lstranid = checkNull(genericUtility.getColumnValue("tran_id", dom)); lstranid = checkNull(genericUtility.getColumnValue("tran_id", dom));
valueXmlString.append("<lot_no >").append(lstranid).append("</lot_no>"); //valueXmlString.append("<lot_no >").append(lstranid).append("</lot_no>");
valueXmlString.append("<lot_no >").append("<![CDATA["+lstranid+"]]>").append("</lot_no>");
} }
} }
...@@ -7720,7 +7724,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -7720,7 +7724,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
if("NOTFOUND".equalsIgnoreCase(lssitemfg)) if("NOTFOUND".equalsIgnoreCase(lssitemfg))
{ {
valueXmlString.append("<site_code__mfg >").append(" ").append("</site_code__mfg>"); //valueXmlString.append("<site_code__mfg >").append(" ").append("</site_code__mfg>");
valueXmlString.append("<site_code__mfg >").append("<![CDATA[ ]]>").append("</site_code__mfg>");
} }
lscostctr = checkNull(genericUtility.getColumnValue( "cctr_code__dr", dom )); lscostctr = checkNull(genericUtility.getColumnValue( "cctr_code__dr", dom ));
if(lscostctr == null || lscostctr.trim().length()==0) if(lscostctr == null || lscostctr.trim().length()==0)
...@@ -7762,11 +7768,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -7762,11 +7768,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
System.out.println("StkOpt is"+lsstkopt); System.out.println("StkOpt is"+lsstkopt);
if("0".equalsIgnoreCase(lsstkopt)) if("0".equalsIgnoreCase(lsstkopt))
{ {
valueXmlString.append("<effect_stock >").append("N").append("</effect_stock>"); //valueXmlString.append("<effect_stock >").append("N").append("</effect_stock>");
valueXmlString.append("<effect_stock >").append("<![CDATA[N]]>").append("</effect_stock>");
} }
else else
{ {
valueXmlString.append("<effect_stock >").append("Y").append("</effect_stock>"); //valueXmlString.append("<effect_stock >").append("Y").append("</effect_stock>");
valueXmlString.append("<effect_stock >").append("<![CDATA[Y]]>").append("</effect_stock>");
} }
String lsbudgetamtanal1="",lsconsumedamtanal1="",lsdeptcode=""; String lsbudgetamtanal1="",lsconsumedamtanal1="",lsdeptcode="";
double lsbudgetamtanal=0,lsconsumedamtanal=0,lcbudgetamt=0; double lsbudgetamtanal=0,lsconsumedamtanal=0,lcbudgetamt=0;
...@@ -8025,11 +8035,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -8025,11 +8035,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
{ {
if((mpending / mOrdQty * 100) <= mCancperc) if((mpending / mOrdQty * 100) <= mCancperc)
{ {
valueXmlString.append("<canc_bo >").append("Y").append("</canc_bo>"); //valueXmlString.append("<canc_bo >").append("Y").append("</canc_bo>");
valueXmlString.append("<canc_bo >").append("<![CDATA[Y]]>").append("</canc_bo>");
} }
else else
{ {
valueXmlString.append("<canc_bo >").append("N").append("</canc_bo>"); // valueXmlString.append("<canc_bo >").append("N").append("</canc_bo>");
valueXmlString.append("<canc_bo >").append("<![CDATA[N]]>").append("</canc_bo>");
} }
} }
...@@ -8537,11 +8551,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -8537,11 +8551,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
lctarewt1 = checkNull(genericUtility.getColumnValue( "tare_weight", dom )); lctarewt1 = checkNull(genericUtility.getColumnValue( "tare_weight", dom ));
if(lcgrosswt1==null || lcgrosswt1.trim().length() == 0) if(lcgrosswt1==null || lcgrosswt1.trim().length() == 0)
{ {
valueXmlString.append("<gross_weight >").append("0").append("</gross_weight>"); // valueXmlString.append("<gross_weight >").append("0").append("</gross_weight>");
valueXmlString.append("<gross_weight >").append("<![CDATA[0]]>").append("</gross_weight>");
} }
if(lctarewt1==null || lctarewt1.trim().length() == 0) if(lctarewt1==null || lctarewt1.trim().length() == 0)
{ {
valueXmlString.append("<tare_weight >").append("0").append("</tare_weight>"); // valueXmlString.append("<tare_weight >").append("0").append("</tare_weight>");
valueXmlString.append("<tare_weight >").append("<![CDATA[0]]>").append("</tare_weight>");
} }
lcgrosswt=(lcgrosswt1 == null || lcgrosswt1.trim().length() == 0 ) ? 0 : Double.parseDouble(lcgrosswt1); lcgrosswt=(lcgrosswt1 == null || lcgrosswt1.trim().length() == 0 ) ? 0 : Double.parseDouble(lcgrosswt1);
lctarewt=(lctarewt1 == null || lctarewt1.trim().length() == 0) ? 0 : Double.parseDouble(lctarewt1); lctarewt=(lctarewt1 == null || lctarewt1.trim().length() == 0) ? 0 : Double.parseDouble(lctarewt1);
...@@ -8567,11 +8585,16 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -8567,11 +8585,16 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
System.out.println("tare_weight2["+lctarewt2+"]"); System.out.println("tare_weight2["+lctarewt2+"]");
if(lcgrosswt2==null || lcgrosswt2.trim().length() == 0) if(lcgrosswt2==null || lcgrosswt2.trim().length() == 0)
{ {
valueXmlString.append("<gross_weight >").append("0").append("</gross_weight>"); // valueXmlString.append("<gross_weight >").append("0").append("</gross_weight>");
valueXmlString.append("<gross_weight >").append("<![CDATA[0]]>").append("</gross_weight>");
} }
if(lctarewt2==null || lctarewt2.trim().length() == 0) if(lctarewt2==null || lctarewt2.trim().length() == 0)
{ {
valueXmlString.append("<tare_weight >").append("0").append("</tare_weight>"); // valueXmlString.append("<tare_weight >").append("0").append("</tare_weight>");
valueXmlString.append("<tare_weight >").append("<![CDATA[0]]>").append("</tare_weight>");
} }
lcgrosswt=(lcgrosswt2 == null || lcgrosswt2.trim().length() == 0) ? 0 : Double.parseDouble(lcgrosswt2); lcgrosswt=(lcgrosswt2 == null || lcgrosswt2.trim().length() == 0) ? 0 : Double.parseDouble(lcgrosswt2);
lctarewt=(lctarewt2 == null || lctarewt2.trim().length() == 0) ? 0 : Double.parseDouble(lctarewt2); lctarewt=(lctarewt2 == null || lctarewt2.trim().length() == 0) ? 0 : Double.parseDouble(lctarewt2);
......
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