Commit 95a9fdea authored by prane's avatar prane

changes reverted

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214780 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 056def84
...@@ -8,7 +8,6 @@ import ibase.webitm.ejb.ITMDBAccessEJB; ...@@ -8,7 +8,6 @@ import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.fin.FinCommon; import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.fin.FinCommonInvAcct; import ibase.webitm.ejb.fin.FinCommonInvAcct;
import ibase.webitm.ejb.fin.InvAcct; import ibase.webitm.ejb.fin.InvAcct;
import ibase.webitm.ejb.mfg.InvDemSuppTraceBean;
import ibase.webitm.utility.GenericUtility; import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator; import ibase.webitm.utility.TransIDGenerator;
...@@ -237,10 +236,6 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo ...@@ -237,10 +236,6 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
String lotSlIss =""; String lotSlIss ="";
String msgType= ""; String msgType= "";
int llCnt=0; int llCnt=0;
/**Added by Pavan Rane 24dec19 start[to update demand/supply in summary table(RunMRP process) related changes]*/
Timestamp dueDateOrd = null;
String siteCodeDlv = "";
/**Added by Pavan Rane 24dec19 start[to update demand/supply in summary table(RunMRP process) related changes]*/
String confirmed="",confPasswd="",lsPwdVerified="",sql1="",lsLedgPostConf="",loginEmpCode="",saleOrder="",lineNoSord="",itemCodeOrd="",expLev=""; String confirmed="",confPasswd="",lsPwdVerified="",sql1="",lsLedgPostConf="",loginEmpCode="",saleOrder="",lineNoSord="",itemCodeOrd="",expLev="";
double ldQty=0.00,ldBalQty=0.00,qtytoballocated=0.00,qtyAlloc=0.00,lcAllocatedqty=0.00; double ldQty=0.00,ldBalQty=0.00,qtytoballocated=0.00,qtyAlloc=0.00,lcAllocatedqty=0.00;
boolean lbAllocated=false,isError=false; boolean lbAllocated=false,isError=false;
...@@ -258,8 +253,7 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo ...@@ -258,8 +253,7 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"); loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
System.out.println("@V@ loginEmpCode :- ["+loginEmpCode+"]"); System.out.println("@V@ loginEmpCode :- ["+loginEmpCode+"]");
InvDemSuppTraceBean invDemSupTrcBean = new InvDemSuppTraceBean();
HashMap demandSupplyMap = new HashMap();
//Added by sarita to get Current Date with time[00:00:00.0] on 12 JUN 18 [START] //Added by sarita to get Current Date with time[00:00:00.0] on 12 JUN 18 [START]
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat()); SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat());
java.util.Date currentDate = new java.util.Date(); java.util.Date currentDate = new java.util.Date();
...@@ -1623,43 +1617,6 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo ...@@ -1623,43 +1617,6 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
upd = pstmt1.executeUpdate(); upd = pstmt1.executeUpdate();
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
/**Added by Pavan Rane 24dec19 start[to update demand/supply in summary table(RunMRP process) related changes]*/
sql = "select b.due_date, a.site_code__dlv from distorder a, distorder_det b"
+ " where a.dist_order = b.dist_order"
+ " and a.dist_order = ?"
+ " and b.line_no = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1,distOrder);
pstmt1.setInt(2,lineNoDistOrder);
rs1 = pstmt1.executeQuery();
if(rs1.next())
{
dueDateOrd = rs1.getTimestamp("due_date"); // to populate due_date and site_code
siteCodeDlv = rs1.getString("site_code__dlv");
}
pstmt1.close();
pstmt1 = null;
demandSupplyMap.put("site_code", siteCodeDlv);
demandSupplyMap.put("item_code", itemCode);
demandSupplyMap.put("ref_ser", "D-ORDR");
demandSupplyMap.put("ref_id", distOrder);
demandSupplyMap.put("ref_line", ""+lineNoDistOrder);
demandSupplyMap.put("due_date", dueDateOrd);
demandSupplyMap.put("demand_qty", 0.0);
demandSupplyMap.put("supply_qty", quantity *(-1));
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("errString["+errString+"]");
return errString;
}
/**Added by Pavan Rane 24dec19 end[to update demand/supply in summary table(RunMRP process) related changes]*/
} }
} }
rs.close(); rs.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