Commit e8c5855b authored by jshinde's avatar jshinde

Request Id:W15JSUN001,Updating Storage Preference at Awms should be parameterized.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99837 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9ea82c61
/**
* PURPOSE : PalletizationConf component
* AUTHOR : Sneha Mestry
* DATE : 12-10-2015
*/
* PURPOSE : PalletizationConf component
* AUTHOR : Sneha Mestry
* DATE : 12-10-2015
*/
package ibase.webitm.ejb.wms;
......@@ -52,6 +52,7 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
ArrayList <String> errList = new ArrayList<String>();
ArrayList <String> errFields = new ArrayList <String> ();
DistCommon distComm = new DistCommon();
PreparedStatement pstmt = null;
ResultSet rs = null;
......@@ -429,10 +430,11 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
return count;
}
public void confirm( String tranId, String siteCode, Connection conn1 ) throws ITMException, SQLException
public void confirm( String tranId, String siteCode, Connection conn1 ) throws Exception
{
String sql = "", tranDate = "", invStat = "", qcType = "",
expDate = "", mfgDate = "", palletStatus = "", qcReqd = "", procMth = "", lineNoInterface = "", familyGrp = "", stroPref = "";
expDate = "", mfgDate = "", palletStatus = "", qcReqd = "", procMth = "", lineNoInterface = "", familyGrp = "",
stroPref = "",stroPrefF="",stroPrefM="",stroPrefS="",stroPrefR="";
double holdQuantity = 0, quantityDB = 0, packSize = 0, interfaceQty = 0, interfaceQtyRem = 0, totQuantity = 0, qtyPerArt = 0, noArt = 0;
PreparedStatement pstmt = null, pstmt1 = null;
ResultSet rs = null, rs1 = null;
......@@ -441,7 +443,14 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
DistCommon distComm = new DistCommon();
String nexpLoc = "", lockCode = "", expLoc = "";
ArrayList interfaceArrList = new ArrayList();
ConnDriver connDriver = new ConnDriver();
conn1 = connDriver.getConnectDB("DriverITM");
int interfaceQty1 = 0;
//Changed By Jagruti Shinde on 4/1/2016 Request Id:W15JSUN001[Start]
stroPrefF = distComm.getDisparams("999999", "AWMS_FAST_MOVING", conn1);
stroPrefM = distComm.getDisparams("999999", "AWMS_MEDIUM_MOVING", conn1);
stroPrefS = distComm.getDisparams("999999", "AWMS_SLOW_MOVING", conn1);
//Changed By Jagruti Shinde on 4/1/2016 Request Id:W15JSUN001[End]
try
{
System.out.println("::::::::::::::::: Inside confirm for palletization confirm :::::::::::::::: ");
......@@ -615,6 +624,25 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
familyGrp = (String) hm2.get("LOC_ZONE__PREF");
stroPref = (String) hm2.get("ANALYSIS_CLASS");
//Changed By Jagruti Shinde on 4/1/2016 Request Id:W15JSUN001[Start]
if(stroPref.equalsIgnoreCase(stroPrefF))
{
System.out.println("stroPrefF :"+stroPrefF);
stroPrefR = "F";
}
else if(stroPref.equalsIgnoreCase(stroPrefM))
{
System.out.println("stroPrefM :"+stroPrefM);
stroPrefR = "M";
}
else if(stroPref.equalsIgnoreCase(stroPrefS))
{
System.out.println("stroPrefS :"+stroPrefS);
stroPrefR = "S";
}
System.out.println("stroPref value inserted in AWMS :"+stroPrefR);
// Changed By Jagruti Shinde on 4/1/2016 Request Id:W15JSUN001[End]
/*
if("".equalsIgnoreCase(procMth) && procMth.length() <= 0)
{
......@@ -674,7 +702,11 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
hm.put("QC_TYPE", checkNullAndTrim(rs.getString("qc_sample_type")));
hm.put("TRANS_DT_ACK", "");
//hm.put("STRO_PREF", "");
hm.put("STRO_PREF", stroPref);
//Changed by Jagruti Shinde on 4/1/2016 Request Id:W15JSUN001[Start]
//hm.put("STRO_PREF", stroPref);
hm.put("STRO_PREF", stroPrefR);
//Changed by Jagruti Shinde on 4/1/2016 Request Id:W15JSUN001[End]
hm.put("LINE_NO", lineNoInterface);
interfaceArrList.add(hm);
......
-----------------------------------------------------DISPARM-----------------------------------------------------------------
insert into disparm (prd_code,var_name,var_type,var_value,descr,var_subs,
chg_date,chg_user,chg_term)
values ('999999','AWMS_FAST_MOVING','S','M','AWMS FAST MOVING',0,SYSDATE,'BASE','BASE');
insert into disparm (prd_code,var_name,var_type,var_value,descr,var_subs,
chg_date,chg_user,chg_term)
values ('999999','AWMS_MEDIUM_MOVING','S','Q','AWMS MEDIUM MOVING',0,SYSDATE,'BASE','BASE');
insert into disparm (prd_code,var_name,var_type,var_value,descr,var_subs,
chg_date,chg_user,chg_term)
values ('999999','AWMS_SLOW_MOVING','S','H','AWMS SLOW MOVING',0,sysdate,'BASE','BASE');
\ No newline at end of file
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