Commit 05ff86f4 authored by jshinde's avatar jshinde

Request Id:[W16CSUN009] Same as in expiry and near expiry request user want...

Request Id:[W16CSUN009]  Same as in expiry and near expiry request user want flag for full and partial pallet in rejection status.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102362 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 841bb168
...@@ -44,7 +44,7 @@ public class InvHoldGen ...@@ -44,7 +44,7 @@ public class InvHoldGen
String chgTerm = ""; String chgTerm = "";
String retString = ""; String retString = "";
String tranId = "",asnNo = ""; String tranId = "",asnNo = "";
String holdInsertSql = "", sqlSelAsn = "", holddetInsertSql = ""; String holdInsertSql = "", sqlSelAsn = "", holddetInsertSql = "",lineNoSl ="";//Added by Jagruti Shinde
java.sql.Timestamp chgDate = null,currDate = null,currDate2 = null; java.sql.Timestamp chgDate = null,currDate = null,currDate2 = null;
int lineNo = 0,stdDays=0; int lineNo = 0,stdDays=0;
...@@ -79,7 +79,9 @@ public class InvHoldGen ...@@ -79,7 +79,9 @@ public class InvHoldGen
pstmtHold = conn.prepareStatement(holdInsertSql);//addd by Ritesh on 09/05/13 end pstmtHold = conn.prepareStatement(holdInsertSql);//addd by Ritesh on 09/05/13 end
holddetInsertSql = "INSERT INTO INV_HOLD_DET(TRAN_ID,LINE_NO,ITEM_CODE,SITE_CODE,LOC_CODE,LOT_NO,LOT_SL,HOLD_STATUS,SCH_REL_DATE) VALUES(?,?,?,?,?,?,?,?,?)"; //Changed by Jagruti Shinde for inserting line_no_sl for qc rejected pallet. Req id:[W16CSUN009]
//holddetInsertSql = "INSERT INTO INV_HOLD_DET(TRAN_ID,LINE_NO,ITEM_CODE,SITE_CODE,LOC_CODE,LOT_NO,LOT_SL,HOLD_STATUS,SCH_REL_DATE) VALUES(?,?,?,?,?,?,?,?,?)";
holddetInsertSql = "INSERT INTO INV_HOLD_DET(TRAN_ID,LINE_NO,ITEM_CODE,SITE_CODE,LOC_CODE,LOT_NO,LOT_SL,HOLD_STATUS,SCH_REL_DATE ,LINE_NO_SL ) VALUES(?,?,?,?,?,?,?,?,?,?)";
pstmtHolddet = conn.prepareStatement(holddetInsertSql); pstmtHolddet = conn.prepareStatement(holddetInsertSql);
//GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
...@@ -142,6 +144,8 @@ public class InvHoldGen ...@@ -142,6 +144,8 @@ public class InvHoldGen
locCode = ""; locCode = "";
lotNo = ""; lotNo = "";
lotSl = ""; lotSl = "";
//Changed by Jagruti Shinde for inserting line_no_sl for qc rejected pallet. Req id:[W16CSUN009]
lineNoSl = "";
if ( dataMap.get("item_code") != null ) if ( dataMap.get("item_code") != null )
{ {
...@@ -163,7 +167,12 @@ public class InvHoldGen ...@@ -163,7 +167,12 @@ public class InvHoldGen
{ {
lotSl = (String)dataMap.get("lot_sl"); lotSl = (String)dataMap.get("lot_sl");
} }
//Changed by Jagruti Shinde for inserting line_no_sl for qc rejected pallet. Req id:[W16CSUN009][Start]
if ( dataMap.get("line_no") != null )
{
lineNoSl = (String)dataMap.get("line_no");
}
//Changed by Jagruti Shinde for inserting line_no_sl for qc rejected pallet. Req id:[W16CSUN009][End]
//add by cpatil start on 28-07-12 as per manoharan sir //add by cpatil start on 28-07-12 as per manoharan sir
...@@ -196,6 +205,7 @@ public class InvHoldGen ...@@ -196,6 +205,7 @@ public class InvHoldGen
pstmtHolddet.setString( 7, lotSl ); pstmtHolddet.setString( 7, lotSl );
pstmtHolddet.setString( 8, "H" ); pstmtHolddet.setString( 8, "H" );
pstmtHolddet.setTimestamp( 9, currDate2 ); //add by cpatil on 28-07-12 as per manoharan sir pstmtHolddet.setTimestamp( 9, currDate2 ); //add by cpatil on 28-07-12 as per manoharan sir
pstmtHolddet.setString( 10, lineNoSl ); //Added by Jagruti Shinde Req id:[W16CSUN009]
pstmtHolddet.addBatch(); pstmtHolddet.addBatch();
pstmtHolddet.clearParameters(); pstmtHolddet.clearParameters();
dataMap.clear(); dataMap.clear();
......
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