Commit 1ca1b4e6 authored by nkhan's avatar nkhan

add switch case in wfvaldata


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103663 ce508802-f39f-4f6c-b175-0d175dae99d5
parent acdd854f
...@@ -84,7 +84,7 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust ...@@ -84,7 +84,7 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust
PreparedStatement pstmt = null ; PreparedStatement pstmt = null ;
ResultSet rs = null; ResultSet rs = null;
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
int currentFormNo = 0;
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>"); StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
try try
{ {
...@@ -93,7 +93,15 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust ...@@ -93,7 +93,15 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust
conn = getConnection(); conn = getConnection();
//Changes and Commented By Bhushan on 09-06-2016 :END //Changes and Commented By Bhushan on 09-06-2016 :END
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode"); userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
//Changed By Nasruddin 12-oct-16 add objContext and switch case
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
}
switch (currentFormNo)
{
case 1:
{
parentNodeList = dom.getElementsByTagName("Detail1"); parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
...@@ -259,6 +267,15 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust ...@@ -259,6 +267,15 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust
} }
}//end of for }//end of for
}
break;
case 2:
{
}
break;
}
int errListSize = errList.size(); int errListSize = errList.size();
......
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