Commit dceb500b authored by ppatro's avatar ppatro

update repl bug as per manohran sir


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92412 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5269856e
...@@ -69,6 +69,7 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote, ...@@ -69,6 +69,7 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
String sql = ""; String sql = "";
String updateSql = ""; String updateSql = "";
String updateReplSql = "";
java.sql.Timestamp expDate = null; java.sql.Timestamp expDate = null;
java.sql.Timestamp mfgDate = null; java.sql.Timestamp mfgDate = null;
...@@ -117,6 +118,7 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote, ...@@ -117,6 +118,7 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
PreparedStatement pstmtStock = null; PreparedStatement pstmtStock = null;
PreparedStatement pstmtUpd = null, pstmt1 = null,pstmtPick = null; PreparedStatement pstmtUpd = null, pstmt1 = null,pstmtPick = null;
PreparedStatement pstmtReplUpd = null;
ResultSet rsStock = null,rsPick = null; ResultSet rsStock = null,rsPick = null;
ResultSet rs = null, rs1 = null; ResultSet rs = null, rs1 = null;
boolean isError = false; boolean isError = false;
...@@ -960,7 +962,27 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote, ...@@ -960,7 +962,27 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
// end 16/10/11 manoharan update sordalloc // end 16/10/11 manoharan update sordalloc
///////////////// /////////////////
//Changed By Pragyan 24/12/12 To update location code and lot sl for replenished record.start
if(!locCodeTo.equalsIgnoreCase(locCode) || lotSl.equalsIgnoreCase(lotSlNew))
{
updateReplSql ="UPDATE REPL_ORD_DET SET LOC_CODE__TO = ? , LOT_SL = ? "
+ " WHERE REPL_ORDER = ? AND LINE_NO = ? ";
pstmtReplUpd = conn.prepareStatement(updateReplSql);
pstmtReplUpd.setString(1, locCodeTo);
pstmtReplUpd.setString(2, lotSlNew);
pstmtReplUpd.setString(3, replOrder);
pstmtReplUpd.setInt(4, replOrderLineNo);
int updCntRepl = pstmtReplUpd.executeUpdate();
System.out.println("Updating Replenishment change in location and lot sl ["+updCntRepl+"]");
if(pstmtReplUpd != null)
{
pstmtReplUpd.close();
pstmtReplUpd = null;
}
}
//Changed By Pragyan 24/12/12 To update location code and lot sl for replenished record.end
System.out.println("orderType [" + orderType + "]"); System.out.println("orderType [" + orderType + "]");
if ( "E".equals(orderType) || "F".equals(orderType) || "G".equals(orderType) || "H".equals(orderType) ) if ( "E".equals(orderType) || "F".equals(orderType) || "G".equals(orderType) || "H".equals(orderType) )
......
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