Commit d7a08cce authored by smane's avatar smane

Changes done for genvalidation of 'W_SORDFORM_ATT' window.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97609 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bc603272
...@@ -82,6 +82,7 @@ public class SordAtt extends ValidatorEJB implements SordAttLocal, SordAttRemote ...@@ -82,6 +82,7 @@ public class SordAtt extends ValidatorEJB implements SordAttLocal, SordAttRemote
String loginSite = ""; String loginSite = "";
String siteCode = ""; String siteCode = "";
String itemSer = "",columnValue = "",custCode="",orderDate = ""; String itemSer = "",columnValue = "",custCode="",orderDate = "";
String errFldName="";
NodeList parentNodeList = null; NodeList parentNodeList = null;
NodeList childNodeList = null; NodeList childNodeList = null;
Node parentNode = null; Node parentNode = null;
...@@ -90,6 +91,7 @@ public class SordAtt extends ValidatorEJB implements SordAttLocal, SordAttRemote ...@@ -90,6 +91,7 @@ public class SordAtt extends ValidatorEJB implements SordAttLocal, SordAttRemote
int ctr,currentFormNo=0; int ctr,currentFormNo=0;
int childNodeListLength; int childNodeListLength;
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
HashMap<String , String > errorMap= new HashMap<String, String>();
try try
{ {
conn = getConnection(); conn = getConnection();
...@@ -1019,12 +1021,38 @@ public class SordAtt extends ValidatorEJB implements SordAttLocal, SordAttRemote ...@@ -1019,12 +1021,38 @@ public class SordAtt extends ValidatorEJB implements SordAttLocal, SordAttRemote
GenVal genValidate = new GenVal(); GenVal genValidate = new GenVal();
//errCode = genValidate.genVal("W_SORDFORM_ATT" ,objContext,dom ,conn); //errCode = genValidate.genVal("W_SORDFORM_ATT" ,objContext,dom ,conn);
errCode = genValidate.genVal("W_SORDFORM_ATT" ,objContext,dom );//Conn argument removed by manoj dtd 28/11/2014 //comment added by sagar on 17/03/15
/*errCode = genValidate.genVal("W_SORDFORM_ATT" ,objContext,dom );//Conn argument removed by manoj dtd 28/11/2014
if (errCode != null && errCode.trim().length() > 0) if (errCode != null && errCode.trim().length() > 0)
{ {
errString = getErrorString("", errCode, userId); errString = getErrorString("", errCode, userId);
break; break;
}*/
//Added by sagar on 17/03/15 , As per discussion with P.Sali , Start..
errorMap = genValidate.genVal("W_SORDFORM_ATT" ,objContext,dom );//code added by sagar on 17/03/15
if(!errorMap.isEmpty())
{
System.out.println(">>>>>>>>Return Non empty errorMap in SordAtt:"+errorMap.size());
Iterator iterator = errorMap.entrySet().iterator();
while (iterator.hasNext())
{
Map.Entry mapEntry = (Map.Entry) iterator.next();
errCode= (String) mapEntry.getKey();
errFldName= (String) mapEntry.getValue();
System.out.println(">>>>>>>>errFldName:"+errFldName);
System.out.println(">>>>>>>>errCode:"+errCode);
if (errCode != null && errCode.trim().length() > 0)
{
errString = getErrorString(errFldName, errCode, userId);
break;
}
}
}
else
{
System.out.println(">>>>In SordAtt errorMap is empty:"+errorMap);
} }
//Added by sagar on 17/03/15 , As per discussion with P.Sali , End.
for(ctr = 0; ctr < childNodeListLength; ctr++) for(ctr = 0; ctr < childNodeListLength; ctr++)
{ {
childNode = childNodeList.item(ctr); childNode = childNodeList.item(ctr);
......
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