Commit afe7bc70 authored by smestry's avatar smestry

W15FSUN008, Updated class file for Palletization for Family group and storage...

W15FSUN008, Updated class file for Palletization for Family group  and storage preference in swms_to_awms table.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99459 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3c91c811
...@@ -432,7 +432,7 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf ...@@ -432,7 +432,7 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
public void confirm( String tranId, String siteCode, Connection conn1 ) throws ITMException, SQLException public void confirm( String tranId, String siteCode, Connection conn1 ) throws ITMException, SQLException
{ {
String sql = "", tranDate = "", invStat = "", qcType = "", String sql = "", tranDate = "", invStat = "", qcType = "",
expDate = "", mfgDate = "", palletStatus = "", qcReqd = "", procMth = "", lineNoInterface = ""; expDate = "", mfgDate = "", palletStatus = "", qcReqd = "", procMth = "", lineNoInterface = "", familyGrp = "", stroPref = "";
double holdQuantity = 0, quantityDB = 0, packSize = 0, interfaceQty = 0, interfaceQtyRem = 0, totQuantity = 0, qtyPerArt = 0, noArt = 0; double holdQuantity = 0, quantityDB = 0, packSize = 0, interfaceQty = 0, interfaceQtyRem = 0, totQuantity = 0, qtyPerArt = 0, noArt = 0;
PreparedStatement pstmt = null, pstmt1 = null; PreparedStatement pstmt = null, pstmt1 = null;
ResultSet rs = null, rs1 = null; ResultSet rs = null, rs1 = null;
...@@ -607,6 +607,9 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf ...@@ -607,6 +607,9 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
HashMap hm2 = new HashMap(); HashMap hm2 = new HashMap();
hm2 = commonWmsUtility.getPalletizedAttributes(rs.getString("item_code"), siteCode, conn1); hm2 = commonWmsUtility.getPalletizedAttributes(rs.getString("item_code"), siteCode, conn1);
procMth = (String) hm2.get("PROC_MTH"); procMth = (String) hm2.get("PROC_MTH");
familyGrp = (String) hm2.get("LOC_ZONE__PREF");
stroPref = (String) hm2.get("ANALYSIS_CLASS");
if("".equalsIgnoreCase(procMth) && procMth.length() <= 0) if("".equalsIgnoreCase(procMth) && procMth.length() <= 0)
{ {
...@@ -634,7 +637,8 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf ...@@ -634,7 +637,8 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
hm.put("DESCR", checkNullAndTrim(rs.getString("descr"))); hm.put("DESCR", checkNullAndTrim(rs.getString("descr")));
hm.put("UNIT", checkNullAndTrim(rs.getString("unit"))); hm.put("UNIT", checkNullAndTrim(rs.getString("unit")));
hm.put("ITEM_TYPE", checkNullAndTrim(rs.getString("item_type"))); hm.put("ITEM_TYPE", checkNullAndTrim(rs.getString("item_type")));
hm.put("FAMILY_GRP", ""); hm.put("FAMILY_GRP", familyGrp);
//hm.put("FAMILY_GRP", "");
hm.put("IN_OUT", "I"); hm.put("IN_OUT", "I");
hm.put("REF_SER", "PZ"); hm.put("REF_SER", "PZ");
hm.put("REF_ID", tranId); hm.put("REF_ID", tranId);
...@@ -662,7 +666,8 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf ...@@ -662,7 +666,8 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
hm.put("ERR_DESC", ""); hm.put("ERR_DESC", "");
hm.put("QC_TYPE", checkNullAndTrim(qcType)); hm.put("QC_TYPE", checkNullAndTrim(qcType));
hm.put("TRANS_DT_ACK", ""); hm.put("TRANS_DT_ACK", "");
hm.put("STRO_PREF", ""); //hm.put("STRO_PREF", "");
hm.put("STRO_PREF", stroPref);
hm.put("LINE_NO", lineNoInterface); hm.put("LINE_NO", lineNoInterface);
interfaceArrList.add(hm); interfaceArrList.add(hm);
......
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