Commit 2a9d3b89 authored by dsawant's avatar dsawant

updated for auto generation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94306 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6ae17e1c
......@@ -254,28 +254,28 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
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.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;
// }
}
// errCode = "VMTYPE";
// errList.add(errCode);
......
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