Commit ba8aa18f authored by caluka's avatar caluka

retailer and doctor land line validations added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98680 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8cc52062
...@@ -89,6 +89,7 @@ public class POBWizIC extends ValidatorEJB implements POBWizICLocal, POBWizICRem ...@@ -89,6 +89,7 @@ public class POBWizIC extends ValidatorEJB implements POBWizICLocal, POBWizICRem
String quantity = "", rate = "", freeQtyStr = "", discountStr = "", pobNo = "", loginEmpCode = ""; String quantity = "", rate = "", freeQtyStr = "", discountStr = "", pobNo = "", loginEmpCode = "";
String pobOrdType = "", OrdType1 = "", OrdTypeSplit = "", resultOrdType = ""; String pobOrdType = "", OrdType1 = "", OrdTypeSplit = "", resultOrdType = "";
String siteCode="",priceListHdr="",priceListGrp=""; String siteCode="",priceListHdr="",priceListGrp="";
String scTele1="",scTele2="",retTele1="",retTele2="";
int cnt = 0; int cnt = 0;
int ctr = 0; int ctr = 0;
int childNodeListLength; int childNodeListLength;
...@@ -389,16 +390,59 @@ public class POBWizIC extends ValidatorEJB implements POBWizICLocal, POBWizICRem ...@@ -389,16 +390,59 @@ public class POBWizIC extends ValidatorEJB implements POBWizICLocal, POBWizICRem
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
} }
} else if (childNodeName.equalsIgnoreCase("ret_mobile_no_2")) } else if (childNodeName.equalsIgnoreCase("sc_tele_1"))
{ {
scTele1 = this.genericUtility.getColumnValue("sc_tele_1", dom);
if (scTele1 != null && scTele1.trim().length() > 0)
{
String pattern = "^[0-9]*$";
if (!scTele1.matches(pattern))
{
errCode = "VTSTRGTEL1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}else if (childNodeName.equalsIgnoreCase("sc_tele_2"))
{
scTele2 = this.genericUtility.getColumnValue("sc_tele_2", dom);
if (scTele2 != null && scTele2.trim().length() > 0)
{
String pattern = "^[0-9]*$";
if (!scTele2.matches(pattern))
{
errCode = "VTSTRGTEL2";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}else if (childNodeName.equalsIgnoreCase("ret_tele_1"))
{
retTele1 = this.genericUtility.getColumnValue("ret_tele_1", dom);
if (retTele1 != null && retTele1.trim().length() > 0)
{
String pattern = "^[0-9]*$";
if (!retTele1.matches(pattern))
{
errCode = "VTRETTEL1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
retMobileNo2 = this.genericUtility.getColumnValue("ret_mobile_no_2", dom); }else if (childNodeName.equalsIgnoreCase("ret_tele_2"))
if (retMobileNo2 != null && retMobileNo2.trim().length() > 0) {
retTele2 = this.genericUtility.getColumnValue("ret_tele_2", dom);
if (retTele2 != null && retTele2.trim().length() > 0)
{ {
String pattern = "^[0-9]*$"; String pattern = "^[0-9]*$";
if (!retMobileNo2.matches(pattern)) if (!retTele2.matches(pattern))
{ {
errCode = "VTREMOBNO2"; errCode = "VTRETTEL2";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
......
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