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
System.out.println("CURRENT COLUMN IN VALIDATION [" + childNodeName + "]");
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'";
pstmt = conn.prepareStatement(sql);
......@@ -260,7 +260,7 @@ implements CustomerLocal, CustomerRemote
} Comment By Nkhan [16-SEP-16] END */
else if (childNodeName.equalsIgnoreCase("ignore_credit"))
{
ignoreCredit = checkNull(this.genericUtility.getColumnValue("ignore_credit", dom));
ignoreCredit = checkNull(genericUtility.getColumnValue("ignore_credit", dom));
cnt = 0;
if (ignoreCredit != null && ignoreCredit.trim().length() > 0)
......@@ -294,7 +294,7 @@ implements CustomerLocal, CustomerRemote
} Comment By Nkhan [16-SEP-16] END */
else if (childNodeName.equalsIgnoreCase("ignore_days"))
{
ignoreDays = checkNull(this.genericUtility.getColumnValue("ignore_days", dom));
ignoreDays = checkNull(genericUtility.getColumnValue("ignore_days", dom));
cnt = 0;
if (ignoreDays != null && ignoreDays.trim().length() > 0)
......@@ -310,7 +310,7 @@ implements CustomerLocal, CustomerRemote
}
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)
//{
......@@ -368,7 +368,7 @@ implements CustomerLocal, CustomerRemote
}
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;
if (cctrCodeAdv != null && cctrCodeAdv.trim().length() > 0)
{
......@@ -396,8 +396,8 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("group_code"))
{
groupCode = checkNull(this.genericUtility.getColumnValue("group_code", dom));
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom));
groupCode = checkNull(genericUtility.getColumnValue("group_code", dom));
custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
if (groupCode != null && groupCode.trim().length() > 0)
{
......@@ -448,8 +448,8 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("cust_code__bil"))
{
custCodeBil = checkNull(this.genericUtility.getColumnValue("cust_code__bil", dom));
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom));
custCodeBil = checkNull(genericUtility.getColumnValue("cust_code__bil", dom));
custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
sql = "select key_flag from transetup where tran_window = 'w_customer'";
pstmt = conn.prepareStatement(sql);
......@@ -504,7 +504,7 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("stan_code"))
{
stanCode = checkNull(this.genericUtility.getColumnValue("stan_code", dom));
stanCode = checkNull(genericUtility.getColumnValue("stan_code", dom));
cnt = 0;
if (stanCode != null)
......@@ -541,7 +541,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -569,7 +569,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -597,7 +597,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -625,7 +625,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -653,7 +653,7 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("curr_code"))
{
currCode = checkNull(this.genericUtility.getColumnValue("curr_code", dom));
currCode = checkNull(genericUtility.getColumnValue("curr_code", dom));
cnt = 0;
sql = "select count(*) as cnt from currency where curr_code =?";
......@@ -679,7 +679,7 @@ implements CustomerLocal, CustomerRemote
{
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 =?";
pstmt = conn.prepareStatement(sql);
......@@ -741,7 +741,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -799,7 +799,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -826,7 +826,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
valueXmlString.append("<cctr_code__ar ><![CDATA[" + blankVar + "]]></cctr_code__ar>");
......@@ -840,7 +840,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -868,7 +868,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -896,7 +896,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -924,7 +924,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -952,7 +952,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -988,7 +988,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
cnt = 0;
......@@ -1015,7 +1015,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
cnt = 0;
......@@ -1042,7 +1042,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -1070,7 +1070,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -1098,8 +1098,8 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("site_code"))
{
siteCode = checkNull(this.genericUtility.getColumnValue("site_code", dom));
channelPartner = checkNull(this.genericUtility.getColumnValue("channel_partner", dom));
siteCode = checkNull(genericUtility.getColumnValue("site_code", 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)) Comment By Nasruddin [16-SEP-16]
......@@ -1144,7 +1144,7 @@ implements CustomerLocal, CustomerRemote
}
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))
{
......@@ -1155,7 +1155,7 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("contact_code"))
{
contactCode = checkNull(this.genericUtility.getColumnValue("contact_code", dom));
contactCode = checkNull(genericUtility.getColumnValue("contact_code", dom));
cnt = 0;
sql = "select count(*) as cnt from contact where contact_code =?";
......@@ -1180,7 +1180,7 @@ implements CustomerLocal, CustomerRemote
}
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 && bankCode.trim().length() > 0)
......@@ -1209,7 +1209,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -1240,7 +1240,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -1251,7 +1251,7 @@ implements CustomerLocal, CustomerRemote
}
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);
if (dlvTerm != null && dlvTerm.trim().length() > 0)
{
......@@ -1279,7 +1279,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
cnt1 = Integer.parseInt(lossPerc);
......@@ -1293,7 +1293,7 @@ implements CustomerLocal, CustomerRemote
}
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;
if (adhocReplPerc != null && adhocReplPerc.trim().length() > 0)
......@@ -1312,7 +1312,7 @@ implements CustomerLocal, CustomerRemote
}
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 && termTableNo.trim().length() > 0)
......@@ -1340,7 +1340,7 @@ implements CustomerLocal, CustomerRemote
}
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)
{
......@@ -1369,7 +1369,7 @@ implements CustomerLocal, CustomerRemote
} 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)
{
cnt = 0;
......@@ -1396,7 +1396,7 @@ implements CustomerLocal, CustomerRemote
}//Changed By Nasruddin khan [19/JUL/16] START
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){
cnt = 0;
......@@ -1428,7 +1428,7 @@ implements CustomerLocal, CustomerRemote
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){
cnt = 0;
......@@ -1583,7 +1583,7 @@ implements CustomerLocal, CustomerRemote
childNodeName = childNode.getNodeName();
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)
{
......@@ -1616,7 +1616,7 @@ implements CustomerLocal, CustomerRemote
}
} else if (childNodeName.trim().equalsIgnoreCase("reg_date"))
{
regDate = this.genericUtility.getColumnValue("reg_date", dom);
regDate = genericUtility.getColumnValue("reg_date", dom);
if (regDate == null)
{
errCode = "VTREGNULL";
......@@ -1625,8 +1625,8 @@ implements CustomerLocal, CustomerRemote
}
} else if (childNodeName.trim().equalsIgnoreCase("valid_upto"))
{
validUpto = this.genericUtility.getColumnValue("valid_upto", dom);
regDate = this.genericUtility.getColumnValue("reg_date", dom);
validUpto = genericUtility.getColumnValue("valid_upto", dom);
regDate = genericUtility.getColumnValue("reg_date", dom);
if (validUpto == null)
{
errCode = "VTVALNULL";
......@@ -1816,7 +1816,7 @@ implements CustomerLocal, CustomerRemote
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 = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, resBKList);
......@@ -1831,7 +1831,7 @@ implements CustomerLocal, CustomerRemote
pstmt = null;
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"))
{
valueXmlString.append("<reas_code__bklist protect = \"1\"><![CDATA[" + lsNull + "]]></reas_code__bklist>");
......@@ -1842,7 +1842,7 @@ implements CustomerLocal, CustomerRemote
}
} 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 = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, resBKList);
......@@ -1858,7 +1858,7 @@ implements CustomerLocal, CustomerRemote
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))
{
valueXmlString.append("<reas_code__bklist protect = \"1\"><![CDATA[" + lsNull + "]]></reas_code__bklist>");
......@@ -1869,9 +1869,9 @@ implements CustomerLocal, CustomerRemote
}
} 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 &&
// custCodeBill.trim().length()<=0){
valueXmlString.append("<cust_code__bil><![CDATA[" + custCode + "]]></cust_code__bil>");
......@@ -1880,7 +1880,7 @@ implements CustomerLocal, CustomerRemote
} 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 = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, stanCode);
......@@ -1933,15 +1933,15 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<curr_code><![CDATA[" + currCode + "]]></curr_code>");
} else if (currentColumn.trim().equalsIgnoreCase("cust_name"))
{
custName = checkNull(this.genericUtility.getColumnValue("cust_name", dom));
chqName = checkNull(this.genericUtility.getColumnValue("chq_name", dom));
custName = checkNull(genericUtility.getColumnValue("cust_name", dom));
chqName = checkNull(genericUtility.getColumnValue("chq_name", dom));
if (chqName == null || chqName.trim().length() <= 0)
{
valueXmlString.append("<chq_name><![CDATA[" + custName + "]]></chq_name>");
}
} 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)
{
......@@ -1962,7 +1962,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<territory_descr><![CDATA[" + terrDesc + "]]></territory_descr>");
} 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=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, salesPers);
......@@ -1978,7 +1978,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<sp_name><![CDATA[" + spName + "]]></sp_name>");
} 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 = ?";
pstmt = conn.prepareStatement(sql);
......@@ -2010,7 +2010,7 @@ implements CustomerLocal, CustomerRemote
pstmt.close();
pstmt = null;
custName = checkNull(this.genericUtility.getColumnValue("cust_name", dom));
custName = checkNull(genericUtility.getColumnValue("cust_name", dom));
if (custName == null || custName.trim().length() <= 0)
{
valueXmlString.append("<cust_name>").append("<![CDATA[" + name + "]]>").append("</cust_name>");
......@@ -2018,20 +2018,20 @@ implements CustomerLocal, CustomerRemote
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)
{
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)
{
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)
{
valueXmlString.append("<addr1><![CDATA[" + addr1 + "]]></addr1>");
......@@ -2052,19 +2052,19 @@ implements CustomerLocal, CustomerRemote
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)
{
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)
{
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'";
pstmt2 = conn.prepareStatement(sql2);
rs2 = pstmt2.executeQuery();
......@@ -2079,14 +2079,14 @@ implements CustomerLocal, CustomerRemote
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>");
}
custCodeBill = checkNull(this.genericUtility.getColumnValue("cust_code__bil", dom));
custCodeBill = checkNull(genericUtility.getColumnValue("cust_code__bil", dom));
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>");
sql = "select cust_name from customer where cust_code =?";
......@@ -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)
{
contactCode = checkNull(this.genericUtility.getColumnValue("contact_code", dom));
contactCode = checkNull(genericUtility.getColumnValue("contact_code", dom));
valueXmlString.append("<group_code ><![CDATA[" + contactCode + "]]></group_code>");
sql = "select cust_name from customer where cust_code =?";
......@@ -2134,7 +2134,7 @@ implements CustomerLocal, CustomerRemote
}
} 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=?";
pstmt = conn.prepareStatement(sql);
......@@ -2152,7 +2152,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<bank_name ><![CDATA[" + bankName + "]]></bank_name>");
} 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"))
{
......@@ -2167,7 +2167,7 @@ implements CustomerLocal, CustomerRemote
}
} 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);
if (lsBKListed.equalsIgnoreCase("N"))
......@@ -2182,7 +2182,7 @@ implements CustomerLocal, CustomerRemote
}
} 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 =?";
pstmt = conn.prepareStatement(sql);
......@@ -2200,7 +2200,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<bklist_reason >").append("<![CDATA[" + lsDescr + "]]>").append("</bklist_reason>");
} 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 =?";
pstmt = conn.prepareStatement(sql);
......@@ -2229,7 +2229,7 @@ implements CustomerLocal, CustomerRemote
}
} 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 =?";
pstmt = conn.prepareStatement(sql);
......@@ -2247,7 +2247,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<customer_cust_name ><![CDATA[" + custName + "]]></customer_cust_name>");
} 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 =?";
pstmt = conn.prepareStatement(sql);
......@@ -2265,7 +2265,7 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<customer_cust_name_1 ><![CDATA[" + custName + "]]></customer_cust_name_1>");
} 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)
{
sql = "select emp_fname,emp_lname,dept_code from employee where emp_code=?";
......@@ -2289,7 +2289,7 @@ implements CustomerLocal, CustomerRemote
}
} 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)
{
sql = "select emp_fname,emp_lname,dept_code from employee where emp_code=?";
......@@ -2336,7 +2336,7 @@ implements CustomerLocal, CustomerRemote
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=?";
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