Commit 9f790c8b authored by wansari's avatar wansari

W15GSUN003 changed by wasim for updating pallet_status.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99284 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f209f656
...@@ -237,6 +237,8 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -237,6 +237,8 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
//transactionId = generateTranTd("w_interface2",today.toString(),loginSite,conn); //transactionId = generateTranTd("w_interface2",today.toString(),loginSite,conn);
palletStatus = commonWmsUtility.getFullOrPrtialPalletOut(palletNo,"D-SO",tranId,siteCode,conn);
System.out.println("Pallet Status recevied from common util="+palletStatus);
HashMap interfaceHmap = new HashMap(); HashMap interfaceHmap = new HashMap();
/*hm = commonWmsUtility.getItemVoumeMap(itemCode,lotNo,conn); /*hm = commonWmsUtility.getItemVoumeMap(itemCode,lotNo,conn);
...@@ -289,7 +291,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -289,7 +291,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
interfaceHmap.put("MFG_DATE", ""); interfaceHmap.put("MFG_DATE", "");
interfaceHmap.put("PALLET_NO", palletNo); interfaceHmap.put("PALLET_NO", palletNo);
interfaceHmap.put("MSG_STAT", "N"); interfaceHmap.put("MSG_STAT", "N");
interfaceHmap.put("PALLET_STATUS", ""); interfaceHmap.put("PALLET_STATUS", palletStatus);
interfaceHmap.put("LOCK_STAT", ""); interfaceHmap.put("LOCK_STAT", "");
interfaceHmap.put("ERR_COD", ""); interfaceHmap.put("ERR_COD", "");
interfaceHmap.put("ERR_DESC", ""); interfaceHmap.put("ERR_DESC", "");
...@@ -305,7 +307,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -305,7 +307,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
if(flag == 0) if(flag == 0)
{ {
sql = "SELECT D.ITEM_CODE,I.DESCR,D.LINE_NO,D.QUANTITY,D.UNIT,D.LOT_NO,D.LOT_SL,D.LOC_CODE,S.NO_ART,S.QTY_PER_ART" sql = "SELECT D.ITEM_CODE,I.DESCR,D.LINE_NO,D.QUANTITY,D.UNIT,D.LOT_NO,D.LOT_SL,D.LOC_CODE,S.NO_ART,S.QTY_PER_ART,H.SITE_CODE"
//+" FROM STOCK S,DISTORD_ISSDET D,DISTORD_ISS H WHERE" //Changed by wasim on 20-08-2015 to add inv_stat AWMS validation //+" FROM STOCK S,DISTORD_ISSDET D,DISTORD_ISS H WHERE" //Changed by wasim on 20-08-2015 to add inv_stat AWMS validation
+" FROM STOCK S,DISTORD_ISSDET D,DISTORD_ISS H,LOCATION L,ITEM I WHERE" +" FROM STOCK S,DISTORD_ISSDET D,DISTORD_ISS H,LOCATION L,ITEM I WHERE"
+" S.ITEM_CODE = D.ITEM_CODE" +" S.ITEM_CODE = D.ITEM_CODE"
...@@ -343,6 +345,8 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -343,6 +345,8 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
notArt = rs.getDouble("NO_ART"); notArt = rs.getDouble("NO_ART");
qtyPerArt = rs.getDouble("QTY_PER_ART"); qtyPerArt = rs.getDouble("QTY_PER_ART");
siteCode = checkNullAndTrim(rs.getString("SITE_CODE"));
noArtQuot= quantity / qtyPerArt ; noArtQuot= quantity / qtyPerArt ;
noArtRem = quantity % qtyPerArt ; noArtRem = quantity % qtyPerArt ;
...@@ -358,6 +362,9 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -358,6 +362,9 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
System.out.println("Quantity["+quantity+"]ShipperSize["+qtyPerArt+"]noArtQuot["+noArtQuot+"]" System.out.println("Quantity["+quantity+"]ShipperSize["+qtyPerArt+"]noArtQuot["+noArtQuot+"]"
+ "noArtRem["+noArtRem+"]notArt["+notArt+"]TotalQuantity["+totalQuantity+"]"); + "noArtRem["+noArtRem+"]notArt["+notArt+"]TotalQuantity["+totalQuantity+"]");
palletStatus = commonWmsUtility.getFullOrPrtialPalletOut(palletNo,"D-SO",tranId,siteCode,conn);
System.out.println("Pallet Status recevied from common util="+palletStatus);
HashMap interfaceHmap = new HashMap(); HashMap interfaceHmap = new HashMap();
interfaceHmap.put("TRAN_ID", ""); interfaceHmap.put("TRAN_ID", "");
...@@ -379,7 +386,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -379,7 +386,7 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
interfaceHmap.put("MFG_DATE", ""); interfaceHmap.put("MFG_DATE", "");
interfaceHmap.put("PALLET_NO", palletNo); interfaceHmap.put("PALLET_NO", palletNo);
interfaceHmap.put("MSG_STAT", "N"); interfaceHmap.put("MSG_STAT", "N");
interfaceHmap.put("PALLET_STATUS", ""); interfaceHmap.put("PALLET_STATUS", palletStatus);
interfaceHmap.put("LOCK_STAT", ""); interfaceHmap.put("LOCK_STAT", "");
interfaceHmap.put("ERR_COD", ""); interfaceHmap.put("ERR_COD", "");
interfaceHmap.put("ERR_DESC", ""); interfaceHmap.put("ERR_DESC", "");
......
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