Commit de905c25 authored by mchauhan's avatar mchauhan

validation for pack_code in Adjustment receipt

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@209348 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e0232cb2
......@@ -121,6 +121,7 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
String stkOpt="",itemSerMst="",othSeries="",noArtStr="";
String transfer="",tranDateStr="",effDate="";
String suppCodeMfg="",unitAlt="";
String packCode="";//Added By Mukesh Chauhan on 11/10/19
int cnt = 0;
int cntv = 0,cntLoc=0;
int cntItmSer = 0,noArt=0;
......@@ -980,6 +981,35 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
}
}
}
//Added By Mukesh Chauhan On 11/10/19
else if (childNodeName.equalsIgnoreCase("pack_code"))
{
packCode = this.genericUtility.getColumnValue("pack_code", dom);
cnt=0;
if(packCode !=null && packCode.trim().length()>0)
{
sql = "select count(*) from packing where pack_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, packCode);
rs = pstmt.executeQuery();
System.out.println("PACK CODE>>>>>"+packCode);
if (rs.next())
{
cnt = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (cnt == 0)
{
errCode = "VTPCKCDM";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}//END
}
break;
}
......
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