Commit c885999e authored by nkhan's avatar nkhan

Comment By Nasruddin


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103511 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d085e017
......@@ -129,7 +129,7 @@ implements CustomerLocal, CustomerRemote
System.out.println("CURRENT COLUMN IN VALIDATION [" + childNodeName + "]");
if (childNodeName.equalsIgnoreCase("cust_code"))
{
custCode = this.genericUtility.getColumnValue("cust_code", dom);
custCode = checkNull(this.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 = this.genericUtility.getColumnValue("ignore_credit", dom);
ignoreCredit = checkNull(this.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 = this.genericUtility.getColumnValue("ignore_days", dom);
ignoreDays = checkNull(this.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 = this.genericUtility.getColumnValue("acct_code__adv", dom);
acctCodeAdv = checkNull(this.genericUtility.getColumnValue("acct_code__adv", dom));
//if (acctCodeAdv != null)
//{
......@@ -368,10 +368,10 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("cctr_code__adv"))
{
cctrCodeAdv = this.genericUtility.getColumnValue("cctr_code__adv", dom);
cctrCodeAdv = checkNull(this.genericUtility.getColumnValue("cctr_code__adv", dom));
cnt = 0;
//if (cctrCodeAdv != null && cctrCodeAdv.trim().length() > 0)
//{
if (cctrCodeAdv != null && cctrCodeAdv.trim().length() > 0)
{
sql = "select count(*) as cnt from costctr where cctr_code =?";
pstmt = conn.prepareStatement(sql);
......@@ -392,15 +392,15 @@ implements CustomerLocal, CustomerRemote
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
//}
}
}
else if (childNodeName.equalsIgnoreCase("group_code"))
{
groupCode = this.genericUtility.getColumnValue("group_code", dom);
custCode = this.genericUtility.getColumnValue("cust_code", dom);
groupCode = checkNull(this.genericUtility.getColumnValue("group_code", dom));
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom));
//if (groupCode != null && groupCode.trim().length() > 0)
//{
if (groupCode != null && groupCode.trim().length() > 0)
{
if (!groupCode.equalsIgnoreCase(custCode))
{
cnt = 0;
......@@ -436,7 +436,7 @@ implements CustomerLocal, CustomerRemote
errFields.add(childNodeName.toLowerCase());
}
}
//}
}
/* /Comment By Nasruddin [16-SEP-16] START
else
{
......@@ -448,8 +448,8 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("cust_code__bil"))
{
custCodeBil = this.genericUtility.getColumnValue("cust_code__bil", dom);
custCode = this.genericUtility.getColumnValue("cust_code", dom);
custCodeBil = checkNull(this.genericUtility.getColumnValue("cust_code__bil", dom));
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom));
sql = "select key_flag from transetup where tran_window = 'w_customer'";
pstmt = conn.prepareStatement(sql);
......@@ -504,11 +504,11 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("stan_code"))
{
stanCode = this.genericUtility.getColumnValue("stan_code", dom);
stanCode = checkNull(this.genericUtility.getColumnValue("stan_code", dom));
cnt = 0;
//if (stanCode != null)
//{
if (stanCode != null)
{
sql = "select count(*) as cnt from station where stan_code =?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, stanCode);
......@@ -528,7 +528,7 @@ implements CustomerLocal, CustomerRemote
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
//}
}
/* Comment By Nasruddin [16-SEP-16] START
else
{
......@@ -541,7 +541,7 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("terr_code"))
{
terrCode = this.genericUtility.getColumnValue("terr_code", dom);
terrCode = checkNull(this.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 = this.genericUtility.getColumnValue("state_code", dom);
stateCode = checkNull(this.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 = this.genericUtility.getColumnValue("count_code", dom);
countCode =checkNull( this.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 = this.genericUtility.getColumnValue("cr_term", dom);
crTerm = checkNull(this.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 = this.genericUtility.getColumnValue("curr_code", dom);
currCode = checkNull(this.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 = this.genericUtility.getColumnValue("cust_code", dom);
custCode = checkNull(this.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 = this.genericUtility.getColumnValue("acct_code__ar", dom);
acctCodeAr = checkNull(this.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 = this.genericUtility.getColumnValue("cctr_code__ar", dom);
cctrCodeAr = checkNull(this.genericUtility.getColumnValue("cctr_code__ar", dom));
if (cctrCodeAr != null && cctrCodeAr.trim().length() > 0)
{
......@@ -826,7 +826,7 @@ implements CustomerLocal, CustomerRemote
}
else
{
acctCodeAr = this.genericUtility.getColumnValue("acct_code__ar", dom);
acctCodeAr = checkNull(this.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 = this.genericUtility.getColumnValue("tax_class", dom);
taxClass = checkNull(this.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 = this.genericUtility.getColumnValue("tax_chap", dom);
taxChap = checkNull(this.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 = this.genericUtility.getColumnValue("price_list", dom);
priceList = checkNull(this.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 = this.genericUtility.getColumnValue("price_list__clg", dom);
priceListClg = checkNull(this.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 = this.genericUtility.getColumnValue("sales_pers", dom);
salesPers = checkNull(this.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 = this.genericUtility.getColumnValue("sales_pers__1", dom);
salesPers1 = checkNull(this.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 = this.genericUtility.getColumnValue("sales_pers__2", dom);
salesPers2 = checkNull(this.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 = this.genericUtility.getColumnValue("tran_code", dom);
tranCode = checkNull(this.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 = this.genericUtility.getColumnValue("site_code__rcp", dom);
siteCodeRcp = checkNull(this.genericUtility.getColumnValue("site_code__rcp", dom));
if (siteCodeRcp != null && siteCodeRcp.trim().length() > 0)
{
......@@ -1144,7 +1144,7 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("black_listing"))
{
blackListing = this.genericUtility.getColumnValue("black_listing", dom);
blackListing = checkNull(this.genericUtility.getColumnValue("black_listing", dom));
if (!"P".equalsIgnoreCase(blackListing))
{
......@@ -1155,7 +1155,7 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("contact_code"))
{
contactCode = this.genericUtility.getColumnValue("contact_code", dom);
contactCode = checkNull(this.genericUtility.getColumnValue("contact_code", dom));
cnt = 0;
sql = "select count(*) as cnt from contact where contact_code =?";
......
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