Commit acb70c75 authored by manohar's avatar manohar

Changes related to other site, rounding and min required stock


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101962 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0991f4a4
......@@ -21,6 +21,7 @@ import java.sql.SQLException;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.webitm.ejb.mfg.MfgCommon;
import javax.ejb.Stateless;
......@@ -262,7 +263,7 @@ public class WoFirmplanIC extends ValidatorEJB implements WoFirmplanICLocal, WoF
// method for item change
public String itemChanged(Document dom, Document dom1, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
String childNodeName = null;
String childNodeName = null,leastExpdtActivRm = "N";
StringBuffer valueXmlString = new StringBuffer();
int ctr = 0;
NodeList parentNodeList = null;
......@@ -284,6 +285,7 @@ public class WoFirmplanIC extends ValidatorEJB implements WoFirmplanICLocal, WoF
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
String sysDate = sdf.format(currentDate.getTime());
System.out.println("Now the date is :=> " + sysDate);
MfgCommon mfgCommon = new MfgCommon();
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
......@@ -329,9 +331,16 @@ public class WoFirmplanIC extends ValidatorEJB implements WoFirmplanICLocal, WoF
{
campgnNo = checkNull(genericUtility.getColumnValue("campgn_no", dom));
workOrder = checkNull(genericUtility.getColumnValue("work_order", dom));
leastExpdtActivRm = mfgCommon.getEnvMfg("999999", "LEAST_EXPDT_ACTIVE_R", conn);
if ("NULLFOUND".equals(leastExpdtActivRm))
{
leastExpdtActivRm = "N";
}
System.out.println(" Itemchanged called for [" + currentColumn + "] ==> [" + columnValue + "] campgnNo [" + campgnNo + "] workOrder [" + workOrder + "]");
valueXmlString.append("<campgn_no protect = \"0\">").append("<![CDATA[" + campgnNo + "]]>").append("</campgn_no>");
valueXmlString.append("<work_order protect = \"0\">").append("<![CDATA[" + workOrder + "]]>").append("</work_order>");
valueXmlString.append("<least_expdt_active_rm protect = \"1\">").append("<![CDATA[" + leastExpdtActivRm + "]]>").append("</least_expdt_active_rm>");
/*if ( campgnNo != null && !"null".equals(campgnNo) && campgnNo.trim().length() > 0 )
{
valueXmlString.append("<work_order protect = \"1\">").append("<![CDATA[ ]]>").append("</work_order>");
......
......@@ -8,7 +8,7 @@ import java.text.SimpleDateFormat;
public class WorderStkBean
{
private double potencyAdj = 0,stkQuantityNew = 0,updQty = 0,qtyAdj = 0,reserveStkQty = 0;
private double allocQty = 0,stkQuantity = 0,stkPotencyPerc = 0,actualAllocQty = 0;
private double allocQty = 0,stkQuantity = 0,stkPotencyPerc = 0,actualAllocQty = 0,requiredQty = 0;
java.sql.Timestamp expDate = null,mfgDate = null;
private String locCode = "",lotNo = "",lotSl = "",siteCode = "",itemCode = "",itemRef = "",alternate = "",itemDescr = "",
workOrder = "",expLevel = "",critItem = "",unit = "",dimension = "",reserveStk = "",reserveStkTranId = "",
......@@ -204,8 +204,14 @@ public class WorderStkBean
public void setStkQuantity(double stkQuantity) {
this.stkQuantity = stkQuantity;
}
/*
public double getRequiredQuantity() {
return requiredQty;
}
public void setRequiredQuantity(double requiredQty) {
this.requiredQty = requiredQty;
}
*/
public String getCritItem() {
return critItem;
}
......
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