Commit d085e017 authored by nkhan's avatar nkhan

*** empty log message ***


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103510 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8edaa138
......@@ -154,7 +154,8 @@ implements CustomerLocal, CustomerRemote
errCode = "VMCODNULL";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
} else if ("A".equalsIgnoreCase(editFlag))
}
else if ("A".equalsIgnoreCase(editFlag))
{
cnt = 0;
sql = "select count(*) as ll_count from customer where cust_code =?";
......@@ -1097,8 +1098,8 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("site_code"))
{
siteCode = this.genericUtility.getColumnValue("site_code", dom);
channelPartner = this.genericUtility.getColumnValue("channel_partner", dom);
siteCode = checkNull(this.genericUtility.getColumnValue("site_code", dom));
channelPartner = checkNull(this.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]
......@@ -1179,7 +1180,7 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("bank_code"))
{
bankCode = this.genericUtility.getColumnValue("bank_code", dom);
bankCode = checkNull(this.genericUtility.getColumnValue("bank_code", dom));
// if (bankCode != null) Comment By Nasruddin [16-SEP-16]
if (bankCode != null && bankCode.trim().length() > 0)
......@@ -1208,7 +1209,7 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("price_list__disc"))
{
priceListDisc = this.genericUtility.getColumnValue("price_list__disc", dom);
priceListDisc = checkNull(this.genericUtility.getColumnValue("price_list__disc", dom));
if (priceListDisc != null && priceListDisc.trim().length() > 0)
{
......@@ -1239,7 +1240,7 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("sales_option"))
{
salesOption = this.genericUtility.getColumnValue("sales_option", dom);
salesOption = checkNull(this.genericUtility.getColumnValue("sales_option", dom));
if (salesOption == null || salesOption.trim().length() <= 0)
{
......@@ -1278,9 +1279,8 @@ implements CustomerLocal, CustomerRemote
}
else if (childNodeName.equalsIgnoreCase("loss_perc"))
{
lossPerc = this.genericUtility.getColumnValue("loss_perc", dom);
if (lossPerc != null)
lossPerc = checkNull(this.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 = this.genericUtility.getColumnValue("adhoc_repl_perc", dom);
adhocReplPerc = checkNull(this.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 = this.genericUtility.getColumnValue("term_table__no", dom);
termTableNo = checkNull(this.genericUtility.getColumnValue("term_table__no", dom));
//if( termTableNo != null) Changed By Nasruddin [16-sep-16]
if (termTableNo != null && termTableNo.trim().length() > 0)
......@@ -1583,7 +1583,7 @@ implements CustomerLocal, CustomerRemote
childNodeName = childNode.getNodeName();
if (childNodeName.trim().equalsIgnoreCase("reg_code"))
{
regCode = this.genericUtility.getColumnValue("reg_code", dom);
regCode = checkNull(this.genericUtility.getColumnValue("reg_code", dom));
if (regCode != null && regCode.trim().length() > 0)
{
......@@ -1607,7 +1607,8 @@ implements CustomerLocal, CustomerRemote
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
} else
}
else
{
errCode = "VTRCODNULL";
errList.add(errCode);
......
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