Commit 056def84 authored by prane's avatar prane

changes reverted

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214779 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6b6c7cd5
......@@ -11,7 +11,6 @@ import java.rmi.RemoteException;
import java.text.SimpleDateFormat;
import ibase.webitm.ejb.*;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.mfg.InvDemSuppTraceBean;
import ibase.webitm.utility.*;
import ibase.system.config.*;
import ibase.utility.CommonConstants;
......@@ -86,8 +85,7 @@ public class DemandGenPrc extends ProcessEJB implements DemandGenPrcLocal, Deman
conn.setAutoCommit(false);
fromDT = genericUtility.getColumnValue("from_date", Dom);
toDT = genericUtility.getColumnValue("to_date", Dom);
InvDemSuppTraceBean invDemSupTrcBean = new InvDemSuppTraceBean();
HashMap demandSupplyMap = new HashMap();
// custCode=genericUtility.getColumnValue("cust_code",Dom);
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat());
loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
......@@ -257,36 +255,6 @@ public class DemandGenPrc extends ProcessEJB implements DemandGenPrcLocal, Deman
System.out.println("xmlString::" + xmlString);
retString = saveData(loginSite, xmlString, userId, conn);
/**Added by Pavan Rane 24dec19 start[to update demand/supply in summary table(RunMRP process) related changes]*/
if (retString.indexOf("Success") > -1)
{
String[] arrayForTranIdIssue = retString.split("<TranID>");
int endIndexIssue = arrayForTranIdIssue[1].indexOf("</TranID>");
String transId = arrayForTranIdIssue[1].substring(0, endIndexIssue);
System.out.println("@V@ Tran id :- [" + transId + "]");
demandSupplyMap.put("site_code", keyData[0]);
demandSupplyMap.put("item_code", keyData[1]);
demandSupplyMap.put("ref_ser", "I-DEM");
demandSupplyMap.put("ref_id", transId);
demandSupplyMap.put("ref_line", "NA");
demandSupplyMap.put("due_date", dueDateTimestmp);
demandSupplyMap.put("demand_qty", indDemandrow.get(eachIndDemand));
demandSupplyMap.put("supply_qty", 0.0);
demandSupplyMap.put("change_type", "A");
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);
demandSupplyMap.clear();
if(errString != null && errString.trim().length() > 0)
{
System.out.println("errString["+errString+"]");
return errString;
}
}
/**Added by Pavan Rane 24dec19 end[to update demand/supply in summary table(RunMRP process) related changes]*/
} else {
qtyStdUom1 = distCommon.getConvQuantityFact(unit, unitStd, keyData[1], indDemandrow.get(eachIndDemand), convQtyStduom, conn);
qtyStdUom = Double.parseDouble((String) qtyStdUom1.get(1));
......@@ -298,30 +266,6 @@ public class DemandGenPrc extends ProcessEJB implements DemandGenPrcLocal, Deman
pstmt1.setString(3, tranID);
updcnt = pstmt1.executeUpdate();
System.out.println("updcnt" + updcnt);
/**Added by Pavan Rane 24dec19 start[to update demand/supply in summary table(RunMRP process) related changes]*/
if(updcnt > 0)
{
demandSupplyMap.put("site_code", keyData[0]);
demandSupplyMap.put("item_code", keyData[1]);
demandSupplyMap.put("ref_ser", "I-DEM");
demandSupplyMap.put("ref_id", tranID);
demandSupplyMap.put("ref_line", "1");
demandSupplyMap.put("due_date", dueDateTimestmp);
demandSupplyMap.put("demand_qty", qtyStdUom);
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);
demandSupplyMap.clear();
if(errString != null && errString.trim().length() > 0)
{
System.out.println("errString["+errString+"]");
return errString;
}
}
/**Added by Pavan Rane 24dec19 end[to update demand/supply in summary table(RunMRP process) related changes]*/
}
......
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