Commit 63aa8e6d authored by dsawant's avatar dsawant

updated for group code and tran code pay validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94314 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2bb34b09
...@@ -217,7 +217,16 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T ...@@ -217,7 +217,16 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
groupCode = genericUtility.getColumnValue("group_code", dom); groupCode = genericUtility.getColumnValue("group_code", dom);
tranCode = genericUtility.getColumnValue("tran_code", dom); tranCode = genericUtility.getColumnValue("tran_code", dom);
System.out.println("<<<<<<+"+groupCode+"+>>>>>>>"+tranCode); System.out.println("<<<<<<+"+groupCode+"+>>>>>>>"+tranCode);
if((groupCode != null && groupCode.trim().length() > 0))
if(groupCode == null || groupCode.trim().length() == 0)
{
System.out.println("enter for null validation group code");
errCode = "VMGRPCD";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
/* else
{ {
if(tranCode != null && tranCode.trim().length() > 0) if(tranCode != null && tranCode.trim().length() > 0)
...@@ -244,42 +253,23 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T ...@@ -244,42 +253,23 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
pstmt = null; pstmt = null;
} }
} }
} }*/
} }
else if(childNodeName.equalsIgnoreCase("tran_code__pay")) else if(childNodeName.equalsIgnoreCase("tran_code__pay"))
{ {
tranCodePay = genericUtility.getColumnValue("tran_code__pay", dom); tranCodePay = genericUtility.getColumnValue("tran_code__pay", dom);
tranCode = genericUtility.getColumnValue("tran_code", dom); tranCode = genericUtility.getColumnValue("tran_code", dom);
if(tranCodePay != null && tranCodePay.trim().length() > 0)
if(tranCodePay == null || tranCodePay.trim().length() == 0)
{ {
System.out.println("enter for null validation tran code pay");
// if(!(tranCodePay.equals(tranCode))) errCode = "VEPAYTO";
// { errList.add(errCode);
// sql = " select count(*) from transporter where tran_code = ? "; errFields.add(childNodeName.toLowerCase());
// pstmt = conn.prepareStatement(sql); }
// pstmt.setString(1, tranCode);
// rs = pstmt.executeQuery();
// if(rs.next())
// {
// cnt = rs.getInt(1);
// if(cnt == 0)
// {
// errCode = "VMPAYTO";
// errList.add(errCode);
// errFields.add(childNodeName.toLowerCase());
// break;
// }
// }
// rs.close();
// rs = null;
// pstmt.close();
// pstmt = null;
// }
}
// errCode = "VMTYPE";
// errList.add(errCode);
// 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