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
groupCode = genericUtility.getColumnValue("group_code", dom);
tranCode = genericUtility.getColumnValue("tran_code", dom);
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)
......@@ -244,42 +253,23 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
pstmt = null;
}
}
}
}*/
}
else if(childNodeName.equalsIgnoreCase("tran_code__pay"))
{
tranCodePay = genericUtility.getColumnValue("tran_code__pay", dom);
tranCode = genericUtility.getColumnValue("tran_code", dom);
if(tranCodePay != null && tranCodePay.trim().length() > 0)
{
// if(!(tranCodePay.equals(tranCode)))
// {
// sql = " select count(*) from transporter where tran_code = ? ";
// 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;
// }
if(tranCodePay == null || tranCodePay.trim().length() == 0)
{
System.out.println("enter for null validation tran code pay");
errCode = "VEPAYTO";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
// 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