Commit 871a4634 authored by cpatil's avatar cpatil

for purchase order type -- defult item series


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93368 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 29d533ac
......@@ -73,7 +73,7 @@ public class porderTypeIC extends ValidatorEJB implements porderTypeICLocal, por
ResultSet rs = null;
ConnDriver connDriver = new ConnDriver();
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
String orderType="",descr="",locGroupJwiss="" ;
String orderType="",descr="",locGroupJwiss="",itemSerDef="" ; // added itemSerDef on 24/07/13 by cpatil
try
{
......@@ -160,6 +160,34 @@ public class porderTypeIC extends ValidatorEJB implements porderTypeICLocal, por
}
}
}
// added by cpatil on 24/07/13 for default item ser start
if(childNodeName.equalsIgnoreCase("item_ser__def"))
{
itemSerDef = checkNull(genericUtility.getColumnValue("item_ser__def", dom));
if(itemSerDef != null && itemSerDef.trim().length() > 0)
{
sql = " SELECT COUNT(1) FROM ITEMSER WHERE ITEM_SER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,itemSerDef.trim());
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if( cnt == 0 )
{
errCode = "VTITEMSER1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
// end of 24/07/13
}
int errListSize = errList.size();
cnt = 0;
......
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