Commit c9df162f authored by nkhan's avatar nkhan

*** empty log message ***


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103520 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8d944b85
...@@ -129,7 +129,7 @@ implements CustomerLocal, CustomerRemote ...@@ -129,7 +129,7 @@ implements CustomerLocal, CustomerRemote
System.out.println("CURRENT COLUMN IN VALIDATION [" + childNodeName + "]"); System.out.println("CURRENT COLUMN IN VALIDATION [" + childNodeName + "]");
if (childNodeName.equalsIgnoreCase("cust_code")) if (childNodeName.equalsIgnoreCase("cust_code"))
{ {
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom)); custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
sql = "select key_flag from transetup where tran_window = 'w_customer'"; sql = "select key_flag from transetup where tran_window = 'w_customer'";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -260,7 +260,7 @@ implements CustomerLocal, CustomerRemote ...@@ -260,7 +260,7 @@ implements CustomerLocal, CustomerRemote
} Comment By Nkhan [16-SEP-16] END */ } Comment By Nkhan [16-SEP-16] END */
else if (childNodeName.equalsIgnoreCase("ignore_credit")) else if (childNodeName.equalsIgnoreCase("ignore_credit"))
{ {
ignoreCredit = checkNull(this.genericUtility.getColumnValue("ignore_credit", dom)); ignoreCredit = checkNull(genericUtility.getColumnValue("ignore_credit", dom));
cnt = 0; cnt = 0;
if (ignoreCredit != null && ignoreCredit.trim().length() > 0) if (ignoreCredit != null && ignoreCredit.trim().length() > 0)
...@@ -294,7 +294,7 @@ implements CustomerLocal, CustomerRemote ...@@ -294,7 +294,7 @@ implements CustomerLocal, CustomerRemote
} Comment By Nkhan [16-SEP-16] END */ } Comment By Nkhan [16-SEP-16] END */
else if (childNodeName.equalsIgnoreCase("ignore_days")) else if (childNodeName.equalsIgnoreCase("ignore_days"))
{ {
ignoreDays = checkNull(this.genericUtility.getColumnValue("ignore_days", dom)); ignoreDays = checkNull(genericUtility.getColumnValue("ignore_days", dom));
cnt = 0; cnt = 0;
if (ignoreDays != null && ignoreDays.trim().length() > 0) if (ignoreDays != null && ignoreDays.trim().length() > 0)
...@@ -310,7 +310,7 @@ implements CustomerLocal, CustomerRemote ...@@ -310,7 +310,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("acct_code__adv")) else if (childNodeName.equalsIgnoreCase("acct_code__adv"))
{ {
acctCodeAdv = checkNull(this.genericUtility.getColumnValue("acct_code__adv", dom)); acctCodeAdv = checkNull(genericUtility.getColumnValue("acct_code__adv", dom));
//if (acctCodeAdv != null) //if (acctCodeAdv != null)
//{ //{
...@@ -368,7 +368,7 @@ implements CustomerLocal, CustomerRemote ...@@ -368,7 +368,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("cctr_code__adv")) else if (childNodeName.equalsIgnoreCase("cctr_code__adv"))
{ {
cctrCodeAdv = checkNull(this.genericUtility.getColumnValue("cctr_code__adv", dom)); cctrCodeAdv = checkNull(genericUtility.getColumnValue("cctr_code__adv", dom));
cnt = 0; cnt = 0;
if (cctrCodeAdv != null && cctrCodeAdv.trim().length() > 0) if (cctrCodeAdv != null && cctrCodeAdv.trim().length() > 0)
{ {
...@@ -396,8 +396,8 @@ implements CustomerLocal, CustomerRemote ...@@ -396,8 +396,8 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("group_code")) else if (childNodeName.equalsIgnoreCase("group_code"))
{ {
groupCode = checkNull(this.genericUtility.getColumnValue("group_code", dom)); groupCode = checkNull(genericUtility.getColumnValue("group_code", dom));
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom)); custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
if (groupCode != null && groupCode.trim().length() > 0) if (groupCode != null && groupCode.trim().length() > 0)
{ {
...@@ -448,8 +448,8 @@ implements CustomerLocal, CustomerRemote ...@@ -448,8 +448,8 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("cust_code__bil")) else if (childNodeName.equalsIgnoreCase("cust_code__bil"))
{ {
custCodeBil = checkNull(this.genericUtility.getColumnValue("cust_code__bil", dom)); custCodeBil = checkNull(genericUtility.getColumnValue("cust_code__bil", dom));
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom)); custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
sql = "select key_flag from transetup where tran_window = 'w_customer'"; sql = "select key_flag from transetup where tran_window = 'w_customer'";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -504,7 +504,7 @@ implements CustomerLocal, CustomerRemote ...@@ -504,7 +504,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("stan_code")) else if (childNodeName.equalsIgnoreCase("stan_code"))
{ {
stanCode = checkNull(this.genericUtility.getColumnValue("stan_code", dom)); stanCode = checkNull(genericUtility.getColumnValue("stan_code", dom));
cnt = 0; cnt = 0;
if (stanCode != null) if (stanCode != null)
...@@ -541,7 +541,7 @@ implements CustomerLocal, CustomerRemote ...@@ -541,7 +541,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("terr_code")) else if (childNodeName.equalsIgnoreCase("terr_code"))
{ {
terrCode = checkNull(this.genericUtility.getColumnValue("terr_code", dom)); terrCode = checkNull(genericUtility.getColumnValue("terr_code", dom));
if (terrCode != null && terrCode.trim().length() > 0) if (terrCode != null && terrCode.trim().length() > 0)
{ {
...@@ -569,7 +569,7 @@ implements CustomerLocal, CustomerRemote ...@@ -569,7 +569,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("state_code")) else if (childNodeName.equalsIgnoreCase("state_code"))
{ {
stateCode = checkNull(this.genericUtility.getColumnValue("state_code", dom)); stateCode = checkNull(genericUtility.getColumnValue("state_code", dom));
if (stateCode != null && stateCode.trim().length() > 0) if (stateCode != null && stateCode.trim().length() > 0)
{ {
...@@ -597,7 +597,7 @@ implements CustomerLocal, CustomerRemote ...@@ -597,7 +597,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("count_code")) else if (childNodeName.equalsIgnoreCase("count_code"))
{ {
countCode =checkNull( this.genericUtility.getColumnValue("count_code", dom) ); countCode =checkNull( genericUtility.getColumnValue("count_code", dom) );
if (countCode != null && countCode.trim().length() > 0) if (countCode != null && countCode.trim().length() > 0)
{ {
...@@ -625,7 +625,7 @@ implements CustomerLocal, CustomerRemote ...@@ -625,7 +625,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("cr_term")) else if (childNodeName.equalsIgnoreCase("cr_term"))
{ {
crTerm = checkNull(this.genericUtility.getColumnValue("cr_term", dom)); crTerm = checkNull(genericUtility.getColumnValue("cr_term", dom));
if (crTerm != null && crTerm.trim().length() > 0) if (crTerm != null && crTerm.trim().length() > 0)
{ {
...@@ -653,7 +653,7 @@ implements CustomerLocal, CustomerRemote ...@@ -653,7 +653,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("curr_code")) else if (childNodeName.equalsIgnoreCase("curr_code"))
{ {
currCode = checkNull(this.genericUtility.getColumnValue("curr_code", dom)); currCode = checkNull(genericUtility.getColumnValue("curr_code", dom));
cnt = 0; cnt = 0;
sql = "select count(*) as cnt from currency where curr_code =?"; sql = "select count(*) as cnt from currency where curr_code =?";
...@@ -679,7 +679,7 @@ implements CustomerLocal, CustomerRemote ...@@ -679,7 +679,7 @@ implements CustomerLocal, CustomerRemote
{ {
if (editFlag.equalsIgnoreCase("E")) if (editFlag.equalsIgnoreCase("E"))
{ {
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom)); custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
sql = "select curr_code from customer where cust_code =?"; sql = "select curr_code from customer where cust_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -741,7 +741,7 @@ implements CustomerLocal, CustomerRemote ...@@ -741,7 +741,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("acct_code__ar")) else if (childNodeName.equalsIgnoreCase("acct_code__ar"))
{ {
acctCodeAr = checkNull(this.genericUtility.getColumnValue("acct_code__ar", dom)); acctCodeAr = checkNull(genericUtility.getColumnValue("acct_code__ar", dom));
if (acctCodeAr != null && acctCodeAr.trim().length() > 0) if (acctCodeAr != null && acctCodeAr.trim().length() > 0)
{ {
...@@ -799,7 +799,7 @@ implements CustomerLocal, CustomerRemote ...@@ -799,7 +799,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("cctr_code__ar")) else if (childNodeName.equalsIgnoreCase("cctr_code__ar"))
{ {
cctrCodeAr = checkNull(this.genericUtility.getColumnValue("cctr_code__ar", dom)); cctrCodeAr = checkNull(genericUtility.getColumnValue("cctr_code__ar", dom));
if (cctrCodeAr != null && cctrCodeAr.trim().length() > 0) if (cctrCodeAr != null && cctrCodeAr.trim().length() > 0)
{ {
...@@ -826,7 +826,7 @@ implements CustomerLocal, CustomerRemote ...@@ -826,7 +826,7 @@ implements CustomerLocal, CustomerRemote
} }
else else
{ {
acctCodeAr = checkNull(this.genericUtility.getColumnValue("acct_code__ar", dom)); acctCodeAr = checkNull(genericUtility.getColumnValue("acct_code__ar", dom));
if (acctCodeAr != null && acctCodeAr.trim().length() > 0) if (acctCodeAr != null && acctCodeAr.trim().length() > 0)
{ {
valueXmlString.append("<cctr_code__ar ><![CDATA[" + blankVar + "]]></cctr_code__ar>"); valueXmlString.append("<cctr_code__ar ><![CDATA[" + blankVar + "]]></cctr_code__ar>");
...@@ -840,7 +840,7 @@ implements CustomerLocal, CustomerRemote ...@@ -840,7 +840,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("tax_class")) else if (childNodeName.equalsIgnoreCase("tax_class"))
{ {
taxClass = checkNull(this.genericUtility.getColumnValue("tax_class", dom)); taxClass = checkNull(genericUtility.getColumnValue("tax_class", dom));
if (taxClass != null && taxClass.trim().length() > 0) if (taxClass != null && taxClass.trim().length() > 0)
{ {
...@@ -868,7 +868,7 @@ implements CustomerLocal, CustomerRemote ...@@ -868,7 +868,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("tax_chap")) else if (childNodeName.equalsIgnoreCase("tax_chap"))
{ {
taxChap = checkNull(this.genericUtility.getColumnValue("tax_chap", dom)); taxChap = checkNull(genericUtility.getColumnValue("tax_chap", dom));
if (taxChap != null && taxChap.trim().length() > 0) if (taxChap != null && taxChap.trim().length() > 0)
{ {
...@@ -896,7 +896,7 @@ implements CustomerLocal, CustomerRemote ...@@ -896,7 +896,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("price_list")) else if (childNodeName.equalsIgnoreCase("price_list"))
{ {
priceList = checkNull(this.genericUtility.getColumnValue("price_list", dom)); priceList = checkNull(genericUtility.getColumnValue("price_list", dom));
if (priceList != null && priceList.trim().length() > 0) if (priceList != null && priceList.trim().length() > 0)
{ {
...@@ -924,7 +924,7 @@ implements CustomerLocal, CustomerRemote ...@@ -924,7 +924,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("price_list__clg")) else if (childNodeName.equalsIgnoreCase("price_list__clg"))
{ {
priceListClg = checkNull(this.genericUtility.getColumnValue("price_list__clg", dom)); priceListClg = checkNull(genericUtility.getColumnValue("price_list__clg", dom));
if (priceListClg != null && priceListClg.trim().length() > 0) if (priceListClg != null && priceListClg.trim().length() > 0)
{ {
...@@ -952,7 +952,7 @@ implements CustomerLocal, CustomerRemote ...@@ -952,7 +952,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("sales_pers")) else if (childNodeName.equalsIgnoreCase("sales_pers"))
{ {
salesPers = checkNull(this.genericUtility.getColumnValue("sales_pers", dom)); salesPers = checkNull(genericUtility.getColumnValue("sales_pers", dom));
if (salesPers != null && salesPers.trim().length() > 0) if (salesPers != null && salesPers.trim().length() > 0)
{ {
...@@ -988,7 +988,7 @@ implements CustomerLocal, CustomerRemote ...@@ -988,7 +988,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("sales_pers__1")) else if (childNodeName.equalsIgnoreCase("sales_pers__1"))
{ {
salesPers1 = checkNull(this.genericUtility.getColumnValue("sales_pers__1", dom)); salesPers1 = checkNull(genericUtility.getColumnValue("sales_pers__1", dom));
if (salesPers1 != null && salesPers1.trim().length() > 0) if (salesPers1 != null && salesPers1.trim().length() > 0)
{ {
cnt = 0; cnt = 0;
...@@ -1015,7 +1015,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1015,7 +1015,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("sales_pers__2")) else if (childNodeName.equalsIgnoreCase("sales_pers__2"))
{ {
salesPers2 = checkNull(this.genericUtility.getColumnValue("sales_pers__2", dom)); salesPers2 = checkNull(genericUtility.getColumnValue("sales_pers__2", dom));
if (salesPers2 != null && salesPers2.trim().length() > 0) if (salesPers2 != null && salesPers2.trim().length() > 0)
{ {
cnt = 0; cnt = 0;
...@@ -1042,7 +1042,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1042,7 +1042,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("tran_code")) else if (childNodeName.equalsIgnoreCase("tran_code"))
{ {
tranCode = checkNull(this.genericUtility.getColumnValue("tran_code", dom)); tranCode = checkNull(genericUtility.getColumnValue("tran_code", dom));
if (tranCode != null && tranCode.trim().length() > 0) if (tranCode != null && tranCode.trim().length() > 0)
{ {
...@@ -1070,7 +1070,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1070,7 +1070,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("site_code__rcp")) else if (childNodeName.equalsIgnoreCase("site_code__rcp"))
{ {
siteCodeRcp = checkNull(this.genericUtility.getColumnValue("site_code__rcp", dom)); siteCodeRcp = checkNull(genericUtility.getColumnValue("site_code__rcp", dom));
if (siteCodeRcp != null && siteCodeRcp.trim().length() > 0) if (siteCodeRcp != null && siteCodeRcp.trim().length() > 0)
{ {
...@@ -1098,8 +1098,8 @@ implements CustomerLocal, CustomerRemote ...@@ -1098,8 +1098,8 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("site_code")) else if (childNodeName.equalsIgnoreCase("site_code"))
{ {
siteCode = checkNull(this.genericUtility.getColumnValue("site_code", dom)); siteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
channelPartner = checkNull(this.genericUtility.getColumnValue("channel_partner", dom)); channelPartner = checkNull(genericUtility.getColumnValue("channel_partner", dom));
if ("Y".equalsIgnoreCase(channelPartner) && (siteCode == null || siteCode.trim().length() <= 0)) if ("Y".equalsIgnoreCase(channelPartner) && (siteCode == null || siteCode.trim().length() <= 0))
//if ("Y".equalsIgnoreCase(channelPartner) && (siteCode == null && siteCode.trim().length() <= 0)) Comment By Nasruddin [16-SEP-16] //if ("Y".equalsIgnoreCase(channelPartner) && (siteCode == null && siteCode.trim().length() <= 0)) Comment By Nasruddin [16-SEP-16]
...@@ -1144,7 +1144,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1144,7 +1144,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("black_listing")) else if (childNodeName.equalsIgnoreCase("black_listing"))
{ {
blackListing = checkNull(this.genericUtility.getColumnValue("black_listing", dom)); blackListing = checkNull(genericUtility.getColumnValue("black_listing", dom));
if (!"P".equalsIgnoreCase(blackListing)) if (!"P".equalsIgnoreCase(blackListing))
{ {
...@@ -1155,7 +1155,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1155,7 +1155,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("contact_code")) else if (childNodeName.equalsIgnoreCase("contact_code"))
{ {
contactCode = checkNull(this.genericUtility.getColumnValue("contact_code", dom)); contactCode = checkNull(genericUtility.getColumnValue("contact_code", dom));
cnt = 0; cnt = 0;
sql = "select count(*) as cnt from contact where contact_code =?"; sql = "select count(*) as cnt from contact where contact_code =?";
...@@ -1180,7 +1180,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1180,7 +1180,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("bank_code")) else if (childNodeName.equalsIgnoreCase("bank_code"))
{ {
bankCode = checkNull(this.genericUtility.getColumnValue("bank_code", dom)); bankCode = checkNull(genericUtility.getColumnValue("bank_code", dom));
// if (bankCode != null) Comment By Nasruddin [16-SEP-16] // if (bankCode != null) Comment By Nasruddin [16-SEP-16]
if (bankCode != null && bankCode.trim().length() > 0) if (bankCode != null && bankCode.trim().length() > 0)
...@@ -1209,7 +1209,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1209,7 +1209,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("price_list__disc")) else if (childNodeName.equalsIgnoreCase("price_list__disc"))
{ {
priceListDisc = checkNull(this.genericUtility.getColumnValue("price_list__disc", dom)); priceListDisc = checkNull(genericUtility.getColumnValue("price_list__disc", dom));
if (priceListDisc != null && priceListDisc.trim().length() > 0) if (priceListDisc != null && priceListDisc.trim().length() > 0)
{ {
...@@ -1240,7 +1240,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1240,7 +1240,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("sales_option")) else if (childNodeName.equalsIgnoreCase("sales_option"))
{ {
salesOption = checkNull(this.genericUtility.getColumnValue("sales_option", dom)); salesOption = checkNull(genericUtility.getColumnValue("sales_option", dom));
if (salesOption == null || salesOption.trim().length() <= 0) if (salesOption == null || salesOption.trim().length() <= 0)
{ {
...@@ -1251,7 +1251,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1251,7 +1251,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("dlv_term")) else if (childNodeName.equalsIgnoreCase("dlv_term"))
{ {
dlvTerm = checkNull(this.genericUtility.getColumnValue("dlv_term", dom)); dlvTerm = checkNull(genericUtility.getColumnValue("dlv_term", dom));
System.out.println("@@@@@@@@@@@@@@@@@ added check null fro dlvterm@@@@@@@@@"+dlvTerm); System.out.println("@@@@@@@@@@@@@@@@@ added check null fro dlvterm@@@@@@@@@"+dlvTerm);
if (dlvTerm != null && dlvTerm.trim().length() > 0) if (dlvTerm != null && dlvTerm.trim().length() > 0)
{ {
...@@ -1279,7 +1279,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1279,7 +1279,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("loss_perc")) else if (childNodeName.equalsIgnoreCase("loss_perc"))
{ {
lossPerc = checkNull(this.genericUtility.getColumnValue("loss_perc", dom)); lossPerc = checkNull(genericUtility.getColumnValue("loss_perc", dom));
if (lossPerc.trim() != null) if (lossPerc.trim() != null)
{ {
cnt1 = Integer.parseInt(lossPerc); cnt1 = Integer.parseInt(lossPerc);
...@@ -1293,7 +1293,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1293,7 +1293,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("adhoc_repl_perc")) else if (childNodeName.equalsIgnoreCase("adhoc_repl_perc"))
{ {
adhocReplPerc = checkNull(this.genericUtility.getColumnValue("adhoc_repl_perc", dom)); adhocReplPerc = checkNull(genericUtility.getColumnValue("adhoc_repl_perc", dom));
double adhocvalue = 0.00; double adhocvalue = 0.00;
if (adhocReplPerc != null && adhocReplPerc.trim().length() > 0) if (adhocReplPerc != null && adhocReplPerc.trim().length() > 0)
...@@ -1312,7 +1312,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1312,7 +1312,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("term_table__no")) else if (childNodeName.equalsIgnoreCase("term_table__no"))
{ {
termTableNo = checkNull(this.genericUtility.getColumnValue("term_table__no", dom)); termTableNo = checkNull(genericUtility.getColumnValue("term_table__no", dom));
//if( termTableNo != null) Changed By Nasruddin [16-sep-16] //if( termTableNo != null) Changed By Nasruddin [16-sep-16]
if (termTableNo != null && termTableNo.trim().length() > 0) if (termTableNo != null && termTableNo.trim().length() > 0)
...@@ -1340,7 +1340,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1340,7 +1340,7 @@ implements CustomerLocal, CustomerRemote
} }
else if (childNodeName.equalsIgnoreCase("emp_code__ord")) else if (childNodeName.equalsIgnoreCase("emp_code__ord"))
{ {
empCodeOrd = checkNull(this.genericUtility.getColumnValue("emp_code__ord", dom)); empCodeOrd = checkNull(genericUtility.getColumnValue("emp_code__ord", dom));
if (empCodeOrd != null && empCodeOrd.trim().length() > 0) if (empCodeOrd != null && empCodeOrd.trim().length() > 0)
{ {
...@@ -1369,7 +1369,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1369,7 +1369,7 @@ implements CustomerLocal, CustomerRemote
} else if (childNodeName.equalsIgnoreCase("emp_code__ord1")) } else if (childNodeName.equalsIgnoreCase("emp_code__ord1"))
{ {
empCodeOrd1 = checkNull(this.genericUtility.getColumnValue("emp_code__ord1", dom)); empCodeOrd1 = checkNull(genericUtility.getColumnValue("emp_code__ord1", dom));
if (empCodeOrd1 != null && empCodeOrd1.trim().length() > 0) if (empCodeOrd1 != null && empCodeOrd1.trim().length() > 0)
{ {
cnt = 0; cnt = 0;
...@@ -1396,7 +1396,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1396,7 +1396,7 @@ implements CustomerLocal, CustomerRemote
}//Changed By Nasruddin khan [19/JUL/16] START }//Changed By Nasruddin khan [19/JUL/16] START
else if( childNodeName.equalsIgnoreCase("comm_table")){ else if( childNodeName.equalsIgnoreCase("comm_table")){
commTable = checkNull(this.genericUtility.getColumnValue("comm_table", dom)); commTable = checkNull(genericUtility.getColumnValue("comm_table", dom));
if( commTable != null && commTable.trim().length() > 0){ if( commTable != null && commTable.trim().length() > 0){
cnt = 0; cnt = 0;
...@@ -1428,7 +1428,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1428,7 +1428,7 @@ implements CustomerLocal, CustomerRemote
else if( childNodeName.equalsIgnoreCase("disc_list")) else if( childNodeName.equalsIgnoreCase("disc_list"))
{ {
discList = checkNull(this.genericUtility.getColumnValue("disc_list", dom)); discList = checkNull(genericUtility.getColumnValue("disc_list", dom));
if( discList != null && discList.trim().length() > 0){ if( discList != null && discList.trim().length() > 0){
cnt = 0; cnt = 0;
...@@ -1583,7 +1583,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1583,7 +1583,7 @@ implements CustomerLocal, CustomerRemote
childNodeName = childNode.getNodeName(); childNodeName = childNode.getNodeName();
if (childNodeName.trim().equalsIgnoreCase("reg_code")) if (childNodeName.trim().equalsIgnoreCase("reg_code"))
{ {
regCode = checkNull(this.genericUtility.getColumnValue("reg_code", dom)); regCode = checkNull(genericUtility.getColumnValue("reg_code", dom));
if (regCode != null && regCode.trim().length() > 0) if (regCode != null && regCode.trim().length() > 0)
{ {
...@@ -1616,7 +1616,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1616,7 +1616,7 @@ implements CustomerLocal, CustomerRemote
} }
} else if (childNodeName.trim().equalsIgnoreCase("reg_date")) } else if (childNodeName.trim().equalsIgnoreCase("reg_date"))
{ {
regDate = this.genericUtility.getColumnValue("reg_date", dom); regDate = genericUtility.getColumnValue("reg_date", dom);
if (regDate == null) if (regDate == null)
{ {
errCode = "VTREGNULL"; errCode = "VTREGNULL";
...@@ -1625,8 +1625,8 @@ implements CustomerLocal, CustomerRemote ...@@ -1625,8 +1625,8 @@ implements CustomerLocal, CustomerRemote
} }
} else if (childNodeName.trim().equalsIgnoreCase("valid_upto")) } else if (childNodeName.trim().equalsIgnoreCase("valid_upto"))
{ {
validUpto = this.genericUtility.getColumnValue("valid_upto", dom); validUpto = genericUtility.getColumnValue("valid_upto", dom);
regDate = this.genericUtility.getColumnValue("reg_date", dom); regDate = genericUtility.getColumnValue("reg_date", dom);
if (validUpto == null) if (validUpto == null)
{ {
errCode = "VTVALNULL"; errCode = "VTVALNULL";
...@@ -1816,7 +1816,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1816,7 +1816,7 @@ implements CustomerLocal, CustomerRemote
if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit")) if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{ {
resBKList = checkNull(this.genericUtility.getColumnValue("reas_code__bklist", dom)); resBKList = checkNull(genericUtility.getColumnValue("reas_code__bklist", dom));
sql = "select descr from gencodes where fld_name = 'REAS_CODE__BKLIST' " + "and fld_value = ?"; sql = "select descr from gencodes where fld_name = 'REAS_CODE__BKLIST' " + "and fld_value = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, resBKList); pstmt.setString(1, resBKList);
...@@ -1831,7 +1831,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1831,7 +1831,7 @@ implements CustomerLocal, CustomerRemote
pstmt = null; pstmt = null;
valueXmlString.append("<bklist_reason ><![CDATA[" + lsDescr + "]]></bklist_reason>"); valueXmlString.append("<bklist_reason ><![CDATA[" + lsDescr + "]]></bklist_reason>");
lsBKListed = checkNull(this.genericUtility.getColumnValue("black_listed", dom)); lsBKListed = checkNull(genericUtility.getColumnValue("black_listed", dom));
if (lsBKListed.equalsIgnoreCase("N")) if (lsBKListed.equalsIgnoreCase("N"))
{ {
valueXmlString.append("<reas_code__bklist protect = \"1\"><![CDATA[" + lsNull + "]]></reas_code__bklist>"); valueXmlString.append("<reas_code__bklist protect = \"1\"><![CDATA[" + lsNull + "]]></reas_code__bklist>");
...@@ -1842,7 +1842,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1842,7 +1842,7 @@ implements CustomerLocal, CustomerRemote
} }
} else if (currentColumn.trim().equalsIgnoreCase("itm_default")) } else if (currentColumn.trim().equalsIgnoreCase("itm_default"))
{ {
resBKList = checkNull(this.genericUtility.getColumnValue("reas_code__bklist", dom)); resBKList = checkNull(genericUtility.getColumnValue("reas_code__bklist", dom));
sql = "select descr from gencodes where fld_name = 'REAS_CODE__BKLIST' " + "and fld_value = ?"; sql = "select descr from gencodes where fld_name = 'REAS_CODE__BKLIST' " + "and fld_value = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, resBKList); pstmt.setString(1, resBKList);
...@@ -1858,7 +1858,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1858,7 +1858,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<bklist_reason ><![CDATA[" + lsDescr + "]]></bklist_reason>"); valueXmlString.append("<bklist_reason ><![CDATA[" + lsDescr + "]]></bklist_reason>");
lsBKListed = checkNull(this.genericUtility.getColumnValue("black_listed", dom)); lsBKListed = checkNull(genericUtility.getColumnValue("black_listed", dom));
if ("N".equalsIgnoreCase(lsBKListed)) if ("N".equalsIgnoreCase(lsBKListed))
{ {
valueXmlString.append("<reas_code__bklist protect = \"1\"><![CDATA[" + lsNull + "]]></reas_code__bklist>"); valueXmlString.append("<reas_code__bklist protect = \"1\"><![CDATA[" + lsNull + "]]></reas_code__bklist>");
...@@ -1869,9 +1869,9 @@ implements CustomerLocal, CustomerRemote ...@@ -1869,9 +1869,9 @@ implements CustomerLocal, CustomerRemote
} }
} else if (currentColumn.trim().equalsIgnoreCase("cust_code")) } else if (currentColumn.trim().equalsIgnoreCase("cust_code"))
{ {
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom)); custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
custCodeBill = checkNull(this.genericUtility.getColumnValue("cust_code__bil", dom)); custCodeBill = checkNull(genericUtility.getColumnValue("cust_code__bil", dom));
// if(custCodeBill==null && // if(custCodeBill==null &&
// custCodeBill.trim().length()<=0){ // custCodeBill.trim().length()<=0){
valueXmlString.append("<cust_code__bil><![CDATA[" + custCode + "]]></cust_code__bil>"); valueXmlString.append("<cust_code__bil><![CDATA[" + custCode + "]]></cust_code__bil>");
...@@ -1880,7 +1880,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1880,7 +1880,7 @@ implements CustomerLocal, CustomerRemote
} else if (currentColumn.trim().equalsIgnoreCase("stan_code")) } else if (currentColumn.trim().equalsIgnoreCase("stan_code"))
{ {
stanCode = checkNull(this.genericUtility.getColumnValue("stan_code", dom)); stanCode = checkNull(genericUtility.getColumnValue("stan_code", dom));
sql = "select state_code, city, pin from station where stan_code = ?"; sql = "select state_code, city, pin from station where stan_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, stanCode); pstmt.setString(1, stanCode);
...@@ -1933,15 +1933,15 @@ implements CustomerLocal, CustomerRemote ...@@ -1933,15 +1933,15 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<curr_code><![CDATA[" + currCode + "]]></curr_code>"); valueXmlString.append("<curr_code><![CDATA[" + currCode + "]]></curr_code>");
} else if (currentColumn.trim().equalsIgnoreCase("cust_name")) } else if (currentColumn.trim().equalsIgnoreCase("cust_name"))
{ {
custName = checkNull(this.genericUtility.getColumnValue("cust_name", dom)); custName = checkNull(genericUtility.getColumnValue("cust_name", dom));
chqName = checkNull(this.genericUtility.getColumnValue("chq_name", dom)); chqName = checkNull(genericUtility.getColumnValue("chq_name", dom));
if (chqName == null || chqName.trim().length() <= 0) if (chqName == null || chqName.trim().length() <= 0)
{ {
valueXmlString.append("<chq_name><![CDATA[" + custName + "]]></chq_name>"); valueXmlString.append("<chq_name><![CDATA[" + custName + "]]></chq_name>");
} }
} else if (currentColumn.trim().equalsIgnoreCase("terr_code")) } else if (currentColumn.trim().equalsIgnoreCase("terr_code"))
{ {
terrCode = checkNull(this.genericUtility.getColumnValue("terr_code", dom)); terrCode = checkNull(genericUtility.getColumnValue("terr_code", dom));
if (terrCode != null && terrCode.trim().length() > 0) if (terrCode != null && terrCode.trim().length() > 0)
{ {
...@@ -1962,7 +1962,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1962,7 +1962,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<territory_descr><![CDATA[" + terrDesc + "]]></territory_descr>"); valueXmlString.append("<territory_descr><![CDATA[" + terrDesc + "]]></territory_descr>");
} else if (currentColumn.trim().equalsIgnoreCase("sales_pers")) } else if (currentColumn.trim().equalsIgnoreCase("sales_pers"))
{ {
salesPers = checkNull(this.genericUtility.getColumnValue("sales_pers", dom)); salesPers = checkNull(genericUtility.getColumnValue("sales_pers", dom));
sql = "select sp_name from sales_pers where sales_pers=?"; sql = "select sp_name from sales_pers where sales_pers=?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, salesPers); pstmt.setString(1, salesPers);
...@@ -1978,7 +1978,7 @@ implements CustomerLocal, CustomerRemote ...@@ -1978,7 +1978,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<sp_name><![CDATA[" + spName + "]]></sp_name>"); valueXmlString.append("<sp_name><![CDATA[" + spName + "]]></sp_name>");
} else if (currentColumn.trim().equalsIgnoreCase("contact_code")) } else if (currentColumn.trim().equalsIgnoreCase("contact_code"))
{ {
contactCode = checkNull(this.genericUtility.getColumnValue("contact_code", dom)); contactCode = checkNull(genericUtility.getColumnValue("contact_code", dom));
sql = "select name, sh_name, cont_pers, cont_pfx, addr1, addr2,addr3, city, pin, state_code," + " count_code, tele1, tele2, tele3,tele_ext, fax, email_addr, edi_addr" + " from contact where contact_code = ?"; sql = "select name, sh_name, cont_pers, cont_pfx, addr1, addr2,addr3, city, pin, state_code," + " count_code, tele1, tele2, tele3,tele_ext, fax, email_addr, edi_addr" + " from contact where contact_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -2010,7 +2010,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2010,7 +2010,7 @@ implements CustomerLocal, CustomerRemote
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
custName = checkNull(this.genericUtility.getColumnValue("cust_name", dom)); custName = checkNull(genericUtility.getColumnValue("cust_name", dom));
if (custName == null || custName.trim().length() <= 0) if (custName == null || custName.trim().length() <= 0)
{ {
valueXmlString.append("<cust_name>").append("<![CDATA[" + name + "]]>").append("</cust_name>"); valueXmlString.append("<cust_name>").append("<![CDATA[" + name + "]]>").append("</cust_name>");
...@@ -2018,20 +2018,20 @@ implements CustomerLocal, CustomerRemote ...@@ -2018,20 +2018,20 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<sh_name><![CDATA[" + shName + "]]></sh_name>"); valueXmlString.append("<sh_name><![CDATA[" + shName + "]]></sh_name>");
} }
contPfx1 = checkNull(this.genericUtility.getColumnValue("cont_pfx", dom)); contPfx1 = checkNull(genericUtility.getColumnValue("cont_pfx", dom));
if (contPfx1 == null || contPfx1.trim().length() <= 0) if (contPfx1 == null || contPfx1.trim().length() <= 0)
{ {
valueXmlString.append("<cont_pfx><![CDATA[" + contPfx + "]]></cont_pfx>"); valueXmlString.append("<cont_pfx><![CDATA[" + contPfx + "]]></cont_pfx>");
} }
contPers1 = checkNull(this.genericUtility.getColumnValue("cont_pers", dom)); contPers1 = checkNull(genericUtility.getColumnValue("cont_pers", dom));
if (contPers1 == null || contPers1.trim().length() <= 0) if (contPers1 == null || contPers1.trim().length() <= 0)
{ {
valueXmlString.append("<cont_pers><![CDATA[" + contPers + "]]></cont_pers>"); valueXmlString.append("<cont_pers><![CDATA[" + contPers + "]]></cont_pers>");
} }
Add1 = checkNull(this.genericUtility.getColumnValue("addr1", dom)); Add1 = checkNull(genericUtility.getColumnValue("addr1", dom));
if (Add1 == null || Add1.trim().length() <= 0) if (Add1 == null || Add1.trim().length() <= 0)
{ {
valueXmlString.append("<addr1><![CDATA[" + addr1 + "]]></addr1>"); valueXmlString.append("<addr1><![CDATA[" + addr1 + "]]></addr1>");
...@@ -2052,19 +2052,19 @@ implements CustomerLocal, CustomerRemote ...@@ -2052,19 +2052,19 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<fax ><![CDATA[" + fax + "]]></fax>"); valueXmlString.append("<fax ><![CDATA[" + fax + "]]></fax>");
} }
emailAddr1 = checkNull(this.genericUtility.getColumnValue("email_addr", dom)); emailAddr1 = checkNull(genericUtility.getColumnValue("email_addr", dom));
if (emailAddr1 == null || emailAddr1.trim().length() <= 0) if (emailAddr1 == null || emailAddr1.trim().length() <= 0)
{ {
valueXmlString.append("<email_addr ><![CDATA[" + emailAddr + "]]></email_addr>"); valueXmlString.append("<email_addr ><![CDATA[" + emailAddr + "]]></email_addr>");
} }
ediAddr1 = checkNull(this.genericUtility.getColumnValue("edi_addr", dom)); ediAddr1 = checkNull(genericUtility.getColumnValue("edi_addr", dom));
if (ediAddr1 == null || ediAddr1.trim().length() <= 0) if (ediAddr1 == null || ediAddr1.trim().length() <= 0)
{ {
valueXmlString.append("<edi_addr ><![CDATA[" + ediAddr + "]]></edi_addr>"); valueXmlString.append("<edi_addr ><![CDATA[" + ediAddr + "]]></edi_addr>");
} }
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom)); custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
sql2 = "select key_flag from transetup where tran_window = 'w_customer'"; sql2 = "select key_flag from transetup where tran_window = 'w_customer'";
pstmt2 = conn.prepareStatement(sql2); pstmt2 = conn.prepareStatement(sql2);
rs2 = pstmt2.executeQuery(); rs2 = pstmt2.executeQuery();
...@@ -2079,14 +2079,14 @@ implements CustomerLocal, CustomerRemote ...@@ -2079,14 +2079,14 @@ implements CustomerLocal, CustomerRemote
if (custCode == null && !(keyFlag.equalsIgnoreCase("A"))) if (custCode == null && !(keyFlag.equalsIgnoreCase("A")))
{ {
contactCode = checkNull(this.genericUtility.getColumnValue("contact_code", dom)); contactCode = checkNull(genericUtility.getColumnValue("contact_code", dom));
valueXmlString.append("<cust_code ><![CDATA[" + contactCode + "]]></cust_code>"); valueXmlString.append("<cust_code ><![CDATA[" + contactCode + "]]></cust_code>");
} }
custCodeBill = checkNull(this.genericUtility.getColumnValue("cust_code__bil", dom)); custCodeBill = checkNull(genericUtility.getColumnValue("cust_code__bil", dom));
if (custCodeBill == null || custCodeBill.trim().length() <= 0) if (custCodeBill == null || custCodeBill.trim().length() <= 0)
{ {
contactCode = checkNull(this.genericUtility.getColumnValue("contact_code", dom)); contactCode = checkNull(genericUtility.getColumnValue("contact_code", dom));
valueXmlString.append("<cust_code__bil ><![CDATA[" + contactCode + "]]></cust_code__bil>"); valueXmlString.append("<cust_code__bil ><![CDATA[" + contactCode + "]]></cust_code__bil>");
sql = "select cust_name from customer where cust_code =?"; sql = "select cust_name from customer where cust_code =?";
...@@ -2108,10 +2108,10 @@ implements CustomerLocal, CustomerRemote ...@@ -2108,10 +2108,10 @@ implements CustomerLocal, CustomerRemote
} }
} }
groupCode = checkNull(this.genericUtility.getColumnValue("group_code", dom)); groupCode = checkNull(genericUtility.getColumnValue("group_code", dom));
if (groupCode == null || groupCode.trim().length() <= 0) if (groupCode == null || groupCode.trim().length() <= 0)
{ {
contactCode = checkNull(this.genericUtility.getColumnValue("contact_code", dom)); contactCode = checkNull(genericUtility.getColumnValue("contact_code", dom));
valueXmlString.append("<group_code ><![CDATA[" + contactCode + "]]></group_code>"); valueXmlString.append("<group_code ><![CDATA[" + contactCode + "]]></group_code>");
sql = "select cust_name from customer where cust_code =?"; sql = "select cust_name from customer where cust_code =?";
...@@ -2134,7 +2134,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2134,7 +2134,7 @@ implements CustomerLocal, CustomerRemote
} }
} else if (currentColumn.trim().equalsIgnoreCase("bank_code")) } else if (currentColumn.trim().equalsIgnoreCase("bank_code"))
{ {
bankCode = checkNull(this.genericUtility.getColumnValue("bank_code", dom)); bankCode = checkNull(genericUtility.getColumnValue("bank_code", dom));
sql = "select bank_name from bank where bank_code=?"; sql = "select bank_name from bank where bank_code=?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -2152,7 +2152,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2152,7 +2152,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<bank_name ><![CDATA[" + bankName + "]]></bank_name>"); valueXmlString.append("<bank_name ><![CDATA[" + bankName + "]]></bank_name>");
} else if (currentColumn.trim().equalsIgnoreCase("channel_partner")) } else if (currentColumn.trim().equalsIgnoreCase("channel_partner"))
{ {
channelPartner = checkNull(this.genericUtility.getColumnValue("channel_partner", dom)); channelPartner = checkNull(genericUtility.getColumnValue("channel_partner", dom));
if (channelPartner.equalsIgnoreCase("Y")) if (channelPartner.equalsIgnoreCase("Y"))
{ {
...@@ -2167,7 +2167,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2167,7 +2167,7 @@ implements CustomerLocal, CustomerRemote
} }
} else if (currentColumn.trim().equalsIgnoreCase("black_listed")) } else if (currentColumn.trim().equalsIgnoreCase("black_listed"))
{ {
lsBKListed = checkNull(this.genericUtility.getColumnValue("black_listed", dom)); lsBKListed = checkNull(genericUtility.getColumnValue("black_listed", dom));
System.out.println("black_listed :- " + lsBKListed); System.out.println("black_listed :- " + lsBKListed);
if (lsBKListed.equalsIgnoreCase("N")) if (lsBKListed.equalsIgnoreCase("N"))
...@@ -2182,7 +2182,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2182,7 +2182,7 @@ implements CustomerLocal, CustomerRemote
} }
} else if (currentColumn.trim().equalsIgnoreCase("reas_code__bklist")) } else if (currentColumn.trim().equalsIgnoreCase("reas_code__bklist"))
{ {
resBKList = checkNull(this.genericUtility.getColumnValue("reas_code__bklist", dom)); resBKList = checkNull(genericUtility.getColumnValue("reas_code__bklist", dom));
sql = "select descr from gencodes where fld_name = 'REAS_CODE__BKLIST' and fld_value =?"; sql = "select descr from gencodes where fld_name = 'REAS_CODE__BKLIST' and fld_value =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -2200,7 +2200,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2200,7 +2200,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<bklist_reason >").append("<![CDATA[" + lsDescr + "]]>").append("</bklist_reason>"); valueXmlString.append("<bklist_reason >").append("<![CDATA[" + lsDescr + "]]>").append("</bklist_reason>");
} else if (currentColumn.trim().equalsIgnoreCase("cr_term")) } else if (currentColumn.trim().equalsIgnoreCase("cr_term"))
{ {
crTerm = checkNull(this.genericUtility.getColumnValue("cr_term", dom)); crTerm = checkNull(genericUtility.getColumnValue("cr_term", dom));
sql = "select cr_days from crterm where cr_term =?"; sql = "select cr_days from crterm where cr_term =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -2229,7 +2229,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2229,7 +2229,7 @@ implements CustomerLocal, CustomerRemote
} }
} else if (currentColumn.trim().equalsIgnoreCase("group_code")) } else if (currentColumn.trim().equalsIgnoreCase("group_code"))
{ {
groupCode = checkNull(this.genericUtility.getColumnValue("group_code", dom)); groupCode = checkNull(genericUtility.getColumnValue("group_code", dom));
sql = "select cust_name from customer where cust_code =?"; sql = "select cust_name from customer where cust_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -2247,7 +2247,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2247,7 +2247,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<customer_cust_name ><![CDATA[" + custName + "]]></customer_cust_name>"); valueXmlString.append("<customer_cust_name ><![CDATA[" + custName + "]]></customer_cust_name>");
} else if (currentColumn.trim().equalsIgnoreCase("cust_code__bil")) } else if (currentColumn.trim().equalsIgnoreCase("cust_code__bil"))
{ {
custCodeBill = checkNull(this.genericUtility.getColumnValue("cust_code__bil", dom)); custCodeBill = checkNull(genericUtility.getColumnValue("cust_code__bil", dom));
sql = "select cust_name from customer where cust_code =?"; sql = "select cust_name from customer where cust_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -2265,7 +2265,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2265,7 +2265,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<customer_cust_name_1 ><![CDATA[" + custName + "]]></customer_cust_name_1>"); valueXmlString.append("<customer_cust_name_1 ><![CDATA[" + custName + "]]></customer_cust_name_1>");
} else if (currentColumn.trim().equalsIgnoreCase("emp_code__ord")) } else if (currentColumn.trim().equalsIgnoreCase("emp_code__ord"))
{ {
empCodeOrd = checkNull(this.genericUtility.getColumnValue("emp_code__ord", dom)); empCodeOrd = checkNull(genericUtility.getColumnValue("emp_code__ord", dom));
if (empCodeOrd != null) if (empCodeOrd != null)
{ {
sql = "select emp_fname,emp_lname,dept_code from employee where emp_code=?"; sql = "select emp_fname,emp_lname,dept_code from employee where emp_code=?";
...@@ -2289,7 +2289,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2289,7 +2289,7 @@ implements CustomerLocal, CustomerRemote
} }
} else if (currentColumn.trim().equalsIgnoreCase("emp_code__ord1")) } else if (currentColumn.trim().equalsIgnoreCase("emp_code__ord1"))
{ {
empCodeOrd1 = checkNull(this.genericUtility.getColumnValue("emp_code__ord1", dom)); empCodeOrd1 = checkNull(genericUtility.getColumnValue("emp_code__ord1", dom));
if (empCodeOrd1 != null) if (empCodeOrd1 != null)
{ {
sql = "select emp_fname,emp_lname,dept_code from employee where emp_code=?"; sql = "select emp_fname,emp_lname,dept_code from employee where emp_code=?";
...@@ -2336,7 +2336,7 @@ implements CustomerLocal, CustomerRemote ...@@ -2336,7 +2336,7 @@ implements CustomerLocal, CustomerRemote
if (currentColumn.trim().equalsIgnoreCase("reg_code")) if (currentColumn.trim().equalsIgnoreCase("reg_code"))
{ {
regCode = checkNull(this.genericUtility.getColumnValue("reg_code", dom)); regCode = checkNull(genericUtility.getColumnValue("reg_code", dom));
sql = "select descr from reg_requirements where reg_code=?"; sql = "select descr from reg_requirements where reg_code=?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
......
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