Commit c91f12a5 authored by rtiwari's avatar rtiwari

validation added in dept code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94460 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 64c98717
...@@ -203,6 +203,23 @@ public class WoIssPartialPrc extends ProcessEJB implements WoIssPartialPrcLocal, ...@@ -203,6 +203,23 @@ public class WoIssPartialPrc extends ProcessEJB implements WoIssPartialPrcLocal,
errString =itmDBAccessEJB.getErrorString("","VMDEP1","","",conn); errString =itmDBAccessEJB.getErrorString("","VMDEP1","","",conn);
return errString; return errString;
} }
sql ="select count(1) from workorder where work_order = ? and dept_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,worder);
pstmt.setString(2,deptCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
rs.close();rs= null;
pstmt.close();pstmt= null;
if( cnt==0)
{
errString =itmDBAccessEJB.getErrorString("","VMDEPCDWO","","",conn);
return errString;
}
} }
if(operation == 0 ) if(operation == 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