Commit e778ea66 authored by manohar's avatar manohar

manual physical scan and physical scann schedule changes from base


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91951 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 514404de
...@@ -456,6 +456,38 @@ public class MPhyItemScanIC extends ValidatorEJB implements MPhyItemScanICLocal, ...@@ -456,6 +456,38 @@ public class MPhyItemScanIC extends ValidatorEJB implements MPhyItemScanICLocal,
System.out.println("locCode ="+locCode); System.out.println("locCode ="+locCode);
double quantityTest = 0.0; double quantityTest = 0.0;
//added by Kunal on 10/10/12 start
date1 = Timestamp.valueOf(genericUtility.getValidDateString( genericUtility.getColumnValue("tran_date", dom2) , genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("tran date="+date1);
itemCode = genericUtility.getColumnValue("item_code", dom);
lotNo = genericUtility.getColumnValue("lot_no", dom);
lotSl = genericUtility.getColumnValue("lot_sl", dom);
sql = "select count(*) from physcan h , physcandet d where h.tran_id = d.tran_id and h.tran_date = ? "
+" and d.loc_code= ? and d.lot_no = ? and d.lot_sl = ? and d.item_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1, date1);
pstmt.setString(2, locCode);
pstmt.setString(3, lotNo);
pstmt.setString(4, lotSl);
pstmt.setString(5, itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
count = rs.getInt(1);
}
pstmt.close();
pstmt = null;
rs.close();
rs = null;
if(count > 0)
{
errString = getErrorString("phy_input","ALLRDSCN",userId);
break;
}
//added by Kunal on 10/10/12 end
sSQL = "select inv_stat from location where loc_code = ? "; sSQL = "select inv_stat from location where loc_code = ? ";
pstmt = conn.prepareStatement(sSQL); pstmt = conn.prepareStatement(sSQL);
pstmt.setString(1, locCode); pstmt.setString(1, locCode);
...@@ -661,6 +693,7 @@ public class MPhyItemScanIC extends ValidatorEJB implements MPhyItemScanICLocal, ...@@ -661,6 +693,7 @@ public class MPhyItemScanIC extends ValidatorEJB implements MPhyItemScanICLocal,
} }
} }
} }
} }
} }
......
...@@ -32509,7 +32509,37 @@ VALUES ( ...@@ -32509,7 +32509,37 @@ VALUES (
COMMIT; COMMIT;
INSERT INTO MESSAGES
(
MSG_NO ,
MSG_STR ,
MSG_DESCR ,
MSG_TYPE ,
MSG_OPT ,
MSG_TIME ,
ALARM ,
ERR_SOURCE ,
CHG_DATE ,
CHG_USER ,
CHG_TERM ,
OVERRIDE_INPUT ,
MAIL_OPTION
)
VALUES
('ALLRDSCN',
'Already Scanned Record',
'Selected Record is Already Scanned,Please verify ',
'E',
NULL,
NULL,
NULL,
NULL,
sysdate,
'BASE',
'BASE',
NULL,
NULL
);
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