Commit cc9c29d6 authored by prahate's avatar prahate

added validation for site_code__pbus column

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@199562 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a1fbd807
......@@ -92,7 +92,7 @@ implements CustomerLocal, CustomerRemote
String salesOption = "", dlvTerm = "", lossPerc = "", adhocReplPerc = "", termTableNo = "", priceListClg = "", salesPers1 = "", salesPers2 = "";
String keyFlag = "", active = "", lsVal3 = "", empCodeOrd = "", empCodeOrd1 = "", custCodePd = "", custCodeDisc = "", sgroupCode = "", custCodeAr = "", currCodeFrt = "";
String blankVar = "", custName = "", shName = "", availableYn = "", creditLmt = "", round = "", roundTo = "", currCodeIns = "";
String regCode = "", validUpto = "", regDate = "";
String regCode = "", validUpto = "", regDate = "", priBusinessSite = "";
int ctr = 0;
int currentFormNo = 0;
int cnt = 0, cnt1 = 0;
......@@ -1486,6 +1486,36 @@ implements CustomerLocal, CustomerRemote
}
}
// Added by Pankaj R on 12-Apr-19 [START]
else if (childNodeName.equalsIgnoreCase("site_code__pbus"))
{
priBusinessSite = checkNull(genericUtility.getColumnValue("site_code__pbus", dom));
if (priBusinessSite != null && priBusinessSite.trim().length() > 0)
{
cnt = 0;
sql = "select count(*) as cnt from site where site_code =?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, priBusinessSite);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (cnt == 0)
{
errCode = "VTPBSITECD";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
// Added by Pankaj R on 12-Apr-19 [END]
// Changed By Nasruddin khan [16/SEP/16] END
// else if(childNodeName.equalsIgnoreCase("cust_code__pd")){
......
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