Commit ff670e5a authored by jshinde's avatar jshinde

Request Id:[W16CSUN008] Duel approval is required for taking damage / Hold...

Request Id:[W16CSUN008] Duel approval is required for taking damage / Hold material out. after click on"Pallet req" button in Hold inventory transaction. Unconfirmed request  of pallet out will generate which will further approve by QA.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102096 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2009c607
...@@ -29,6 +29,7 @@ import ibase.utility.CommonConstants; ...@@ -29,6 +29,7 @@ import ibase.utility.CommonConstants;
import ibase.utility.UserInfoBean; import ibase.utility.UserInfoBean;
import ibase.webitm.ejb.ActionHandlerEJB; import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB; import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.utility.E12GenericUtility; import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator; import ibase.webitm.utility.TransIDGenerator;
...@@ -40,7 +41,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -40,7 +41,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
CommonWmsUtil commonWmsUtility = CommonWmsUtil.getInstance(); CommonWmsUtil commonWmsUtility = CommonWmsUtil.getInstance();
DistCommon distComm = new DistCommon();
public String distActionHandler(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException public String distActionHandler(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException
{ {
System.out.println("--------------ActionHandler method of Distribution Pallet Requisition ------------- : ["+tranId+"]"); System.out.println("--------------ActionHandler method of Distribution Pallet Requisition ------------- : ["+tranId+"]");
...@@ -761,10 +762,14 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -761,10 +762,14 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
boolean isError = false,isRecordExist = false; boolean isError = false,isRecordExist = false;
String sql = "",errString = "",loginSiteCode = "",userId = "",chgTerm = "",tranID = "",sqlStock = ""; String sql = "",errString = "",loginSiteCode = "",userId = "",chgTerm = "",tranID = "",sqlStock = "";
String itemCode="",lotNo="",lotSl = "",locCode = "",siteCode = "",noArt = "",locCodeFrom = "",locCodeTo = "", String itemCode="",lotNo="",lotSl = "",locCode = "",siteCode = "",noArt = "",locCodeFrom = "",locCodeTo = "",
lineNoInvHold = "",tranType = "",confirmed = "",sqlUpdate = "",refNo = "",palletNo = "",holdStatus = ""; lineNoInvHold = "",tranType = "",confirmed = "",sqlUpdate = "",refNo = "",palletNo = "",holdStatus = "",
confReqDsp="";
int updCnt = 0,lineNo = 0; int updCnt = 0,lineNo = 0;
double quantity = 0,allocQty = 0,palletCnt = 0; double quantity = 0,allocQty = 0,palletCnt = 0;
ResultSet rsStock = null; ResultSet rsStock = null;
//Changed by Jagruti Shinde Request Id:[W16CSUN008]
confReqDsp = checkNullAndTrim(distComm.getDisparams("999999", "CONF_REQ", conn));
System.out.println("CONF_REQ in disparm::::"+confReqDsp);
PalletReqConf palletConf = new PalletReqConf(); PalletReqConf palletConf = new PalletReqConf();
try try
{ {
...@@ -958,12 +963,17 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -958,12 +963,17 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
System.out.println("isRecordExist="+isRecordExist); System.out.println("isRecordExist="+isRecordExist);
if(isRecordExist) if(isRecordExist)
{
//Changed by Jagruti Shinde Request Id:[W16CSUN008][Start]
if("Y".equalsIgnoreCase(checkNullAndTrim(confReqDsp)))
{ {
errString = palletConf.confirm(tranID,xtraParams,forcedFlag,conn,false); errString = palletConf.confirm(tranID,xtraParams,forcedFlag,conn,false);
System.out.println("String after confirm pallet request="+errString); System.out.println("String after confirm pallet request="+errString);
}
if(errString != null && (errString.indexOf("VMTRANSACN") != -1)) //if(errString != null && (errString.indexOf("VMTRANSACN") != -1))
{ //{
//Changed by Jagruti Shinde Request Id:[W16CSUN008][End]
sqlUpdate = "UPDATE INV_HOLD SET REF_NO = ?, REF_SER = ? WHERE TRAN_ID = ? "; sqlUpdate = "UPDATE INV_HOLD SET REF_NO = ?, REF_SER = ? WHERE TRAN_ID = ? ";
pstmtUpdate = conn.prepareStatement(sqlUpdate); pstmtUpdate = conn.prepareStatement(sqlUpdate);
pstmtUpdate.setString(1, tranID); pstmtUpdate.setString(1, tranID);
...@@ -975,7 +985,8 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -975,7 +985,8 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
{ {
pstmtUpdate.close();pstmtUpdate=null; pstmtUpdate.close();pstmtUpdate=null;
} }
} //Changed by Jagruti Shinde Request Id:[W16CSUN008]
//}
} }
} }
else else
......
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