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 @@
* PURPOSE :ConsolidatePalletIC component
* AUTHOR : Jagruti Shinde
* 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;
......
/**
* 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;
import ibase.system.config.ConnDriver;
......@@ -66,7 +80,7 @@ implements PalletReqConfLocal, PalletReqConfRemote
String lineNo = ""; String itemCode = ""; String lotNo = ""; String lotSl = ""; String noArt = ""; String quantity = "";
String empCodeAprv = ""; String siteCode = "";
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 lineList = new ArrayList();
int cntPal = 0;
......@@ -161,15 +175,6 @@ implements PalletReqConfLocal, PalletReqConfRemote
rs = pstmt.executeQuery();
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"));
itemCode = checkNullAndTrim(rs.getString("ITEM_CODE"));
lotNo = checkNullAndTrim(rs.getString("LOT_NO"));
......@@ -180,20 +185,9 @@ implements PalletReqConfLocal, PalletReqConfRemote
tranType=checkNullAndTrim(rs.getString("TRAN_TYPE"));
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))
if("O".equalsIgnoreCase(tranType))
{
System.out.println("Trantype:::O");
if ((itemCode != null) && (itemCode.length() > 0))
{
//Change by Jagruti Shinde for Exempted /BSR Location Request Id:W15JSUN017
//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";
//Changed by Jagruti Shinde,for considering QC rejected locations in Pallet out.Request id:[W16ASUN022]
//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";
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";
pstmt1 = conn.prepareStatement(sql);
pstmt1 = conn.prepareStatement(sqlDetails);
pstmt1.setString(1, siteCode);
pstmt1.setString(2, palletNo);
pstmt1.setString(3, palletNo + "Q");
......@@ -221,6 +215,14 @@ implements PalletReqConfLocal, PalletReqConfRemote
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))
{
System.out.println("Trantype:::O");
if ((itemCode != null) && (itemCode.length() > 0))
{
HashMap hm = new HashMap();
hm.put("ITEM_CODE", itemCode);
hm.put("REF_ID", tranId);
......@@ -252,9 +254,9 @@ implements PalletReqConfLocal, PalletReqConfRemote
interfaceArrList.add(hm);
System.out.println("interfacearraylist::PRS" + interfaceArrList.size());
}
rs1.close();
pstmt1.close();
//}
/*rs1.close();
pstmt1.close();*/
}
else
{
......@@ -314,6 +316,9 @@ implements PalletReqConfLocal, PalletReqConfRemote
interfaceArrList.add(hm);
System.out.println("interfacearraylist::RPZ" + interfaceArrList.size());
}
/*rs1.close();
pstmt1.close();*/
//}
}
rs.close();
pstmt.close();
......
/**
* 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;
......
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