Commit 0deb726d authored by rtiwari's avatar rtiwari

updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94463 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e775e8d4
......@@ -44,6 +44,7 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo
String tranType="";
String empCode = "",loginCode= "";
int upd = 0;
String analysisClass= "",cycleCriteria="",unit = "";
try
{
conn.setAutoCommit(false);
......@@ -131,6 +132,24 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo
System.out.println("invStat"+invStat+" quantityInput="+quantityInput);
// ADDED ON 31/MAR/2014 BY RITESH START
sql ="select unit,analysis_class,cycle_criteria from item where item_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if( rs.next())
{
unit = rs.getString("unit");
analysisClass = rs.getString("analysis_class");
cycleCriteria = rs.getString("cycle_criteria");
}
rs.close();
rs = null;
pstmt.close();
pstmt=null;
// ADDED ON 31/MAR/2014 BY RITESH END
if(tranType!=null && !"E".equalsIgnoreCase(tranType))
{
sSQL = "UPDATE STOCK SET LAST_PHYC_DATE = ? WHERE ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ? AND LOT_SL = ?";
......@@ -241,6 +260,17 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo
// pstmt1=null;
// System.out.println("EMP_CODE__USER updated success::"+upd);
// added BY RITESH 01/mar/14 end
// added BY RITESH 31/mar/14 START
sql = " UPDATE PHYSCANDET SET analysis_class = ? ,cycle_criteria = ? WHERE TRAN_ID = ? AND LINE_NO = ? ";
pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,analysisClass);
pstmt1.setString(2,cycleCriteria);
pstmt1.setString(3,tranId);
pstmt1.setInt(4,lineNo);
int recUpd = pstmt1.executeUpdate();
pstmt1.close();
pstmt1=null;
System.out.println(" analysis_class, cycle_criteria updated "+recUpd ); // added BY RITESH 31/mar/14 END
}
rs2.close();
......
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