Commit 232e2c9b authored by prane's avatar prane

to update demand and supply in inv_dem_supp table for mrp summary data by calling common component.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214745 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d7ab189e
...@@ -19,6 +19,7 @@ import ibase.webitm.ejb.dis.InvAllocTraceBean; ...@@ -19,6 +19,7 @@ import ibase.webitm.ejb.dis.InvAllocTraceBean;
import ibase.webitm.ejb.mfg.LotWiseScanBean; import ibase.webitm.ejb.mfg.LotWiseScanBean;
import ibase.webitm.ejb.mfg.WOBean; import ibase.webitm.ejb.mfg.WOBean;
import ibase.webitm.ejb.mfg.GenWOIssue; import ibase.webitm.ejb.mfg.GenWOIssue;
import ibase.webitm.ejb.mfg.InvDemSuppTraceBean;
import ibase.webitm.ejb.mfg.adv.WorkorderIssConf; import ibase.webitm.ejb.mfg.adv.WorkorderIssConf;
import ibase.webitm.ejb.sys.UtilMethods; import ibase.webitm.ejb.sys.UtilMethods;
...@@ -120,6 +121,8 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo ...@@ -120,6 +121,8 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
} }
System.out.println("After preConfirmChk processing"); System.out.println("After preConfirmChk processing");
//genericUtility = GenericUtility.getInstance(); //genericUtility = GenericUtility.getInstance();
InvDemSuppTraceBean invDemSupTrcBean = new InvDemSuppTraceBean();
HashMap demandSupplyMap = new HashMap();
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
stkUpdMap = new HashMap(); stkUpdMap = new HashMap();
DistCommon distCommon = new DistCommon(); DistCommon distCommon = new DistCommon();
...@@ -758,6 +761,30 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo ...@@ -758,6 +761,30 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
upd = pstmt.executeUpdate(); upd = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null ; pstmt = null ;
/**Added by Pavan Rane 24dec19 start[to update demand/supply in summary table(RunMRP process) related changes]*/
demandSupplyMap.put("site_code", siteCode);
demandSupplyMap.put("item_code", itemCode);
demandSupplyMap.put("ref_ser", "W-BIL");
demandSupplyMap.put("ref_id", workOrder);
demandSupplyMap.put("ref_line", "NA");
demandSupplyMap.put("due_date", effDate);
demandSupplyMap.put("demand_qty", quantity*(-1));
demandSupplyMap.put("supply_qty", 0.0);
demandSupplyMap.put("change_type", "C");
demandSupplyMap.put("chg_process", "T");
demandSupplyMap.put("chg_user", genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
demandSupplyMap.put("chg_term", genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId"));
errString = invDemSupTrcBean.updateDemandSupply(demandSupplyMap, conn);
if(errString != null && errString.trim().length() > 0)
{
System.out.println("retString["+errString+"]");
return errString;
}
/**Added by Pavan Rane 24dec19 end[to update demand/supply in summary table(RunMRP process) related changes]*/
} }
} }
rsDet.close(); rsDet.close();
......
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