Commit a4298afd authored by cpatil's avatar cpatil

modify for edit


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93707 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 95f028fa
...@@ -66,7 +66,7 @@ public class SiteRegNoIC extends ValidatorEJB implements SiteRegNoICLocal,SiteRe ...@@ -66,7 +66,7 @@ public class SiteRegNoIC extends ValidatorEJB implements SiteRegNoICLocal,SiteRe
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
String userId=""; String userId="";
String siteCode="",effFromStr="",validUptoStr="",finEntity="",errCode="",errorType="",refCode=""; String siteCode="",effFromStr="",validUptoStr="",finEntity="",errCode="",errorType="",refCode="",regNo="";
Timestamp effFrom=null,validUpto=null; Timestamp effFrom=null,validUpto=null;
ArrayList<String> errList = new ArrayList<String>(); ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>(); ArrayList<String> errFields = new ArrayList<String>();
...@@ -114,7 +114,7 @@ public class SiteRegNoIC extends ValidatorEJB implements SiteRegNoICLocal,SiteRe ...@@ -114,7 +114,7 @@ public class SiteRegNoIC extends ValidatorEJB implements SiteRegNoICLocal,SiteRe
siteCode = genericUtility.getColumnValue("site_code",dom); siteCode = genericUtility.getColumnValue("site_code",dom);
finEntity = genericUtility.getColumnValue("fin_entity",dom); finEntity = genericUtility.getColumnValue("fin_entity",dom);
System.out.println("@@@@@ for validation for primary "); System.out.println("@@@@@ for validation for primary ");
if(refCode!= null && refCode.trim().length() > 0 && siteCode!= null && siteCode.trim().length() > 0 && finEntity!= null && finEntity.trim().length() > 0 ) if( (!("E".equalsIgnoreCase(editFlag))) && refCode!= null && refCode.trim().length() > 0 && siteCode!= null && siteCode.trim().length() > 0 && finEntity!= null && finEntity.trim().length() > 0 )
{ {
sql = " select count(1) from siteregno where site_code = ? and fin_entity = ? and ref_code = ? "; sql = " select count(1) from siteregno where site_code = ? and fin_entity = ? and ref_code = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -219,6 +219,22 @@ public class SiteRegNoIC extends ValidatorEJB implements SiteRegNoICLocal,SiteRe ...@@ -219,6 +219,22 @@ public class SiteRegNoIC extends ValidatorEJB implements SiteRegNoICLocal,SiteRe
} }
if(childNodeName.equalsIgnoreCase("reg_no") )
{
System.out.println("@@@@@ validation reg_no executed");
regNo = genericUtility.getColumnValue("reg_no",dom);
if ( regNo == null || regNo.trim().length() == 0 )
{
errCode = "VMREGNONUL";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
if(childNodeName.equalsIgnoreCase("eff_from")) if(childNodeName.equalsIgnoreCase("eff_from"))
{ {
System.out.println("@@@@@ date validation executed"); System.out.println("@@@@@ date validation executed");
......
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