Commit b674bd02 authored by jshinde's avatar jshinde

Added pallets description


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101471 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8e9f67f4
...@@ -2,6 +2,14 @@ ...@@ -2,6 +2,14 @@
* PURPOSE :ConsolidatePalletIC component * PURPOSE :ConsolidatePalletIC component
* AUTHOR : Jagruti Shinde * AUTHOR : Jagruti Shinde
* DATE : 14-01-2016 * DATE : 14-01-2016
* Normal Pallet :Item_ser__rg1::other than 'FS',Location Group::other than Exempted,QC status::not in QC
* Pallet with suffix 'Q':Item_ser__rg1::other than 'FS',Location Group::other than Exempted,QC status::pending in QC
* Pallet with suffix 'X':Item_ser__rg1::other than 'FS',Location Group::Exempted ,QC status::not in QC
* Pallet with suffix 'M':Item_ser__rg1::other than 'FS',Location Group::Exempted ,QC status::pending in QC
* Pallet with suffix 'B':Item_ser__rg1::'FS' ,Location Group::other than Exempted,QC status::not in QC
* Pallet with suffix 'S':Item_ser__rg1::'FS' ,Location Group::other than Exempted,QC status::pending in QC
* Pallet with suffix 'P':Item_ser__rg1::'FS' ,Location Group::Exempted ,QC status::not in QC
* Pallet with suffix 'U':Item_ser__rg1::'FS' ,Location Group::Exempted ,QC status::pending in QC
*/ */
package ibase.webitm.ejb.wms; package ibase.webitm.ejb.wms;
......
/**
* Purpose:Create transaction screen Pallet Request, Request ID: W15GSUN001
* Purpose:Create Pallet Request with stock details ,Request ID: W15HSUN003
* Normal Pallet :Item_ser__rg1::other than 'FS',Location Group::other than Exempted,QC status::not in QC
* Pallet with suffix 'Q':Item_ser__rg1::other than 'FS',Location Group::other than Exempted,QC status::pending in QC
* Pallet with suffix 'X':Item_ser__rg1::other than 'FS',Location Group::Exempted ,QC status::not in QC
* Pallet with suffix 'M':Item_ser__rg1::other than 'FS',Location Group::Exempted ,QC status::pending in QC
* Pallet with suffix 'B':Item_ser__rg1::'FS' ,Location Group::other than Exempted,QC status::not in QC
* Pallet with suffix 'S':Item_ser__rg1::'FS' ,Location Group::other than Exempted,QC status::pending in QC
* Pallet with suffix 'P':Item_ser__rg1::'FS' ,Location Group::Exempted ,QC status::not in QC
* Pallet with suffix 'U':Item_ser__rg1::'FS' ,Location Group::Exempted ,QC status::pending in QC
* Pallet with suffix 'R':Rejected Pallet
*/
package ibase.webitm.ejb.wms; package ibase.webitm.ejb.wms;
import ibase.system.config.ConnDriver; import ibase.system.config.ConnDriver;
...@@ -66,7 +80,7 @@ implements PalletReqConfLocal, PalletReqConfRemote ...@@ -66,7 +80,7 @@ implements PalletReqConfLocal, PalletReqConfRemote
String lineNo = ""; String itemCode = ""; String lotNo = ""; String lotSl = ""; String noArt = ""; String quantity = ""; String lineNo = ""; String itemCode = ""; String lotNo = ""; String lotSl = ""; String noArt = ""; String quantity = "";
String empCodeAprv = ""; String siteCode = ""; String empCodeAprv = ""; String siteCode = "";
String loginSite = ""; String qtyPerArt = ""; String refSer = "PRS"; String loginSite = ""; String qtyPerArt = ""; String refSer = "PRS";
String descr = "",unit = "",itemType = "",mfgDate = "", expiryDate = "",tranType=""; String descr = "",unit = "",itemType = "",mfgDate = "", expiryDate = "",tranType="",sqlDetails="";
ArrayList palletList = new ArrayList(); ArrayList palletList = new ArrayList();
ArrayList lineList = new ArrayList(); ArrayList lineList = new ArrayList();
int cntPal = 0; int cntPal = 0;
...@@ -161,15 +175,6 @@ implements PalletReqConfLocal, PalletReqConfRemote ...@@ -161,15 +175,6 @@ implements PalletReqConfLocal, PalletReqConfRemote
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
while (rs.next()) while (rs.next())
{ {
for (int i = 0; i < palletList.size(); i++)
{
System.out.println("palletarray" + (String)palletList.get(i));
}
for (int i = 0; i < lineList.size(); i++)
{
System.out.println("linearray" + (String)lineList.get(i));
}
palletNo = checkNullAndTrim(rs.getString("PALLET_NO")); palletNo = checkNullAndTrim(rs.getString("PALLET_NO"));
itemCode = checkNullAndTrim(rs.getString("ITEM_CODE")); itemCode = checkNullAndTrim(rs.getString("ITEM_CODE"));
lotNo = checkNullAndTrim(rs.getString("LOT_NO")); lotNo = checkNullAndTrim(rs.getString("LOT_NO"));
...@@ -180,81 +185,78 @@ implements PalletReqConfLocal, PalletReqConfRemote ...@@ -180,81 +185,78 @@ implements PalletReqConfLocal, PalletReqConfRemote
tranType=checkNullAndTrim(rs.getString("TRAN_TYPE")); tranType=checkNullAndTrim(rs.getString("TRAN_TYPE"));
System.out.println("Tran Type="+tranType); System.out.println("Tran Type="+tranType);
sqlDetails = "SELECT S.QTY_PER_ART,I.DESCR ,S.UNIT,I.ITEM_TYPE ,S.MFG_DATE,S.EXP_DATE FROM STOCK S ,ITEM I WHERE S.SITE_CODE=? AND S.LOC_CODE IN (?,?,?,?,?,?,?,?,?) AND S.ITEM_CODE= ? AND S.LOT_NO= ? AND S.LOT_SL= ? AND S.ITEM_CODE=I.ITEM_CODE AND S.QUANTITY>0";
//if((tranType == null) && (tranType.length() == 0))
pstmt1 = conn.prepareStatement(sqlDetails);
pstmt1.setString(1, siteCode);
pstmt1.setString(2, palletNo);
pstmt1.setString(3, palletNo + "Q");
pstmt1.setString(4, palletNo + "B");
pstmt1.setString(5, palletNo + "X");
pstmt1.setString(6, palletNo + "M");
pstmt1.setString(7, palletNo + "U");
pstmt1.setString(8, palletNo + "P");
pstmt1.setString(9, palletNo + "S");
//Changed by Jagruti Shinde,for considering QC rejected locations in Pallet out.Request id:[W16ASUN022][start]
pstmt1.setString(10, palletNo + "R");
pstmt1.setString(11, itemCode);
pstmt1.setString(12, lotNo);
pstmt1.setString(13, lotSl);
//Changed by Jagruti Shinde,for considering QC rejected locations in Pallet out.Request id:[W16ASUN022][end]
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
qtyPerArt = checkNullAndTrim(rs1.getString("QTY_PER_ART"));
descr = checkNullAndTrim(rs1.getString("DESCR"));
unit = checkNullAndTrim(rs1.getString("UNIT"));
itemType = checkNullAndTrim(rs1.getString("ITEM_TYPE"));
mfgDate = checkNullAndTrim(rs1.getString("MFG_DATE"));
expiryDate = checkNullAndTrim(rs1.getString("EXP_DATE"));
palletStatus = CommonWmsUtil.getFullOrPrtialPalletOut(palletNo, refSer, tranId, siteCode, conn);
System.out.println("palletStatus for PRS" + palletStatus);
}
rs1.close();
pstmt1.close();
if("O".equalsIgnoreCase(tranType)) if("O".equalsIgnoreCase(tranType))
{ {
System.out.println("Trantype:::O"); System.out.println("Trantype:::O");
if ((itemCode != null) && (itemCode.length() > 0)) if ((itemCode != null) && (itemCode.length() > 0))
{ {
//Change by Jagruti Shinde for Exempted /BSR Location Request Id:W15JSUN017 HashMap hm = new HashMap();
//sql = "SELECT S.QTY_PER_ART,I.DESCR ,S.UNIT,I.ITEM_TYPE ,S.MFG_DATE,S.EXP_DATE FROM STOCK S ,ITEM I WHERE S.SITE_CODE=? AND S.LOC_CODE IN (?,?) AND S.ITEM_CODE= ? AND S.LOT_NO= ? AND S.LOT_SL= ? AND S.ITEM_CODE=I.ITEM_CODE"; hm.put("ITEM_CODE", itemCode);
//Changed by Jagruti Shinde,for considering QC rejected locations in Pallet out.Request id:[W16ASUN022] hm.put("REF_ID", tranId);
//sql = "SELECT S.QTY_PER_ART,I.DESCR ,S.UNIT,I.ITEM_TYPE ,S.MFG_DATE,S.EXP_DATE FROM STOCK S ,ITEM I WHERE S.SITE_CODE=? AND S.LOC_CODE IN (?,?,?,?,?,?,?,?) AND S.ITEM_CODE= ? AND S.LOT_NO= ? AND S.LOT_SL= ? AND S.ITEM_CODE=I.ITEM_CODE AND S.QUANTITY>0"; hm.put("REF_SER", refSer);
sql = "SELECT S.QTY_PER_ART,I.DESCR ,S.UNIT,I.ITEM_TYPE ,S.MFG_DATE,S.EXP_DATE FROM STOCK S ,ITEM I WHERE S.SITE_CODE=? AND S.LOC_CODE IN (?,?,?,?,?,?,?,?,?) AND S.ITEM_CODE= ? AND S.LOT_NO= ? AND S.LOT_SL= ? AND S.ITEM_CODE=I.ITEM_CODE AND S.QUANTITY>0"; hm.put("TRAN_DATE", checkNullAndTrim(String.valueOf(today)));
hm.put("QTY_PER_ART", qtyPerArt);
pstmt1 = conn.prepareStatement(sql); hm.put("LOT_NO", lotNo);
pstmt1.setString(1, siteCode); hm.put("LOT_SL", lotSl);
pstmt1.setString(2, palletNo); hm.put("QUANTITY", noArt);
pstmt1.setString(3, palletNo + "Q"); hm.put("TOTAL_QTY", quantity);
pstmt1.setString(4, palletNo + "B"); hm.put("PALLET_NO", palletNo);
pstmt1.setString(5, palletNo + "X"); hm.put("LINE_NO", lineNo);
pstmt1.setString(6, palletNo + "M"); hm.put("DESCR", descr);
pstmt1.setString(7, palletNo + "U"); hm.put("UNIT", unit);
pstmt1.setString(8, palletNo + "P"); hm.put("ITEM_TYPE", itemType);
pstmt1.setString(9, palletNo + "S"); hm.put("FAMILY_GRP", "");
//Changed by Jagruti Shinde,for considering QC rejected locations in Pallet out.Request id:[W16ASUN022][start] hm.put("TRAN_ID", "");
pstmt1.setString(10, palletNo + "R"); hm.put("IN_OUT", "O");
pstmt1.setString(11, itemCode); hm.put("EXP_DATE", expiryDate);
pstmt1.setString(12, lotNo); hm.put("MFG_DATE", mfgDate);
pstmt1.setString(13, lotSl); hm.put("PALLET_STATUS", palletStatus);
//Changed by Jagruti Shinde,for considering QC rejected locations in Pallet out.Request id:[W16ASUN022][end] hm.put("MSG_STAT", "N");
hm.put("LOCK_STAT", "");
rs1 = pstmt1.executeQuery(); hm.put("ERR_COD", "");
if (rs1.next()) hm.put("ERR_DESC", "");
{ hm.put("QC_TYPE", "");
qtyPerArt = checkNullAndTrim(rs1.getString("QTY_PER_ART")); hm.put("TRANS_DT_ACK", "");
descr = checkNullAndTrim(rs1.getString("DESCR")); hm.put("STRO_PREF", "");
unit = checkNullAndTrim(rs1.getString("UNIT"));
itemType = checkNullAndTrim(rs1.getString("ITEM_TYPE"));
mfgDate = checkNullAndTrim(rs1.getString("MFG_DATE"));
expiryDate = checkNullAndTrim(rs1.getString("EXP_DATE"));
palletStatus = CommonWmsUtil.getFullOrPrtialPalletOut(palletNo, refSer, tranId, siteCode, conn);
System.out.println("palletStatus for PRS" + palletStatus);
HashMap hm = new HashMap();
hm.put("ITEM_CODE", itemCode);
hm.put("REF_ID", tranId);
hm.put("REF_SER", refSer);
hm.put("TRAN_DATE", checkNullAndTrim(String.valueOf(today)));
hm.put("QTY_PER_ART", qtyPerArt);
hm.put("LOT_NO", lotNo);
hm.put("LOT_SL", lotSl);
hm.put("QUANTITY", noArt);
hm.put("TOTAL_QTY", quantity);
hm.put("PALLET_NO", palletNo);
hm.put("LINE_NO", lineNo);
hm.put("DESCR", descr);
hm.put("UNIT", unit);
hm.put("ITEM_TYPE", itemType);
hm.put("FAMILY_GRP", "");
hm.put("TRAN_ID", "");
hm.put("IN_OUT", "O");
hm.put("EXP_DATE", expiryDate);
hm.put("MFG_DATE", mfgDate);
hm.put("PALLET_STATUS", palletStatus);
hm.put("MSG_STAT", "N");
hm.put("LOCK_STAT", "");
hm.put("ERR_COD", "");
hm.put("ERR_DESC", "");
hm.put("QC_TYPE", "");
hm.put("TRANS_DT_ACK", "");
hm.put("STRO_PREF", "");
interfaceArrList.add(hm); interfaceArrList.add(hm);
System.out.println("interfacearraylist::PRS" + interfaceArrList.size()); System.out.println("interfacearraylist::PRS" + interfaceArrList.size());
} //}
rs1.close(); /*rs1.close();
pstmt1.close(); pstmt1.close();*/
} }
else else
{ {
...@@ -310,10 +312,13 @@ implements PalletReqConfLocal, PalletReqConfRemote ...@@ -310,10 +312,13 @@ implements PalletReqConfLocal, PalletReqConfRemote
hm.put("QC_TYPE", ""); hm.put("QC_TYPE", "");
hm.put("TRANS_DT_ACK", ""); hm.put("TRANS_DT_ACK", "");
hm.put("STRO_PREF", ""); hm.put("STRO_PREF", "");
interfaceArrList.add(hm); interfaceArrList.add(hm);
System.out.println("interfacearraylist::RPZ" + interfaceArrList.size()); System.out.println("interfacearraylist::RPZ" + interfaceArrList.size());
} }
/*rs1.close();
pstmt1.close();*/
//}
} }
rs.close(); rs.close();
pstmt.close(); pstmt.close();
......
/** /**
* Purpose:Create transaction screen Pallet Request, Request ID: W15GSUN001 * Purpose:Create transaction screen Pallet Request, Request ID: W15GSUN001
* Purpose:Create Pallet Request with stock details ,Request ID: W15HSUN003 * Purpose:Create Pallet Request with stock details ,Request ID: W15HSUN003
* Normal Pallet :Item_ser__rg1::other than 'FS',Location Group::other than Exempted,QC status::not in QC
* Pallet with suffix 'Q':Item_ser__rg1::other than 'FS',Location Group::other than Exempted,QC status::pending in QC
* Pallet with suffix 'X':Item_ser__rg1::other than 'FS',Location Group::Exempted ,QC status::not in QC
* Pallet with suffix 'M':Item_ser__rg1::other than 'FS',Location Group::Exempted ,QC status::pending in QC
* Pallet with suffix 'B':Item_ser__rg1::'FS' ,Location Group::other than Exempted,QC status::not in QC
* Pallet with suffix 'S':Item_ser__rg1::'FS' ,Location Group::other than Exempted,QC status::pending in QC
* Pallet with suffix 'P':Item_ser__rg1::'FS' ,Location Group::Exempted ,QC status::not in QC
* Pallet with suffix 'U':Item_ser__rg1::'FS' ,Location Group::Exempted ,QC status::pending in QC
* Pallet with suffix 'R':Rejected Pallet
*/ */
package ibase.webitm.ejb.wms; package ibase.webitm.ejb.wms;
......
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