Commit 35694017 authored by cpatil's avatar cpatil

added and modify for supreme to minimize execution time


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96870 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e84c1491
package ibase.webitm.ejb.mfg;
import java.sql.Timestamp;
public class DataBean
{
String itemCode="";
Timestamp dueDate = null;
double demand = 0, supply = 0,stockQty = 0,othSupply = 0,pendDOQty = 0, pendDRQty = 0, pendIndQty = 0 , pendPOQty = 0;
String tranId = "", tranSer="";
public String getItemCode()
{
return itemCode;
}
public void setItemCode(String itemCode)
{
this.itemCode = itemCode;
}
public Timestamp getDueDate() {
return dueDate;
}
public void setDueDate(Timestamp dueDate)
{
this.dueDate = dueDate;
}
public double getDemand()
{
return demand;
}
public void setDemand(double demand)
{
this.demand = demand;
}
public double getSupply()
{
return supply;
}
public void setSupply(double supply)
{
this.supply = supply;
}
public double getStockQty()
{
return stockQty;
}
public void setStockQty(double stockQty)
{
this.stockQty = stockQty;
}
public double getOthSupply()
{
return othSupply;
}
public void setOthSupply(double othSupply)
{
this.othSupply = othSupply;
}
public double getPendDOQty()
{
return pendDOQty;
}
public void setPendDOQty(double pendDOQty)
{
this.pendDOQty = pendDOQty;
}
public double getPendDRQty() {
return pendDRQty;
}
public void setPendDRQty(double pendDRQty)
{
this.pendDRQty = pendDRQty;
}
public double getPendIndQty()
{
return pendIndQty;
}
public void setPendIndQty(double pendIndQty)
{
this.pendIndQty = pendIndQty;
}
public double getPendPOQty()
{
return pendPOQty;
}
public void setPendPOQty(double pendPOQty)
{
this.pendPOQty = pendPOQty;
}
public String getTranId()
{
return tranId;
}
public void setTranId(String tranId)
{
this.tranId = tranId;
}
public String getTranSer()
{
return tranSer;
}
public void setTranSer(String tranSer)
{
this.tranSer = tranSer;
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -288,6 +288,7 @@ public class RunMRPWiz extends ValidatorEJB implements RunMRPWizLocal, RunMRPWiz
String orderType="";
java.sql.Date orderDueDate=null;
String itemCodeOnlyList=""; // added 20/11/14 by cpatil
try
{
......@@ -523,10 +524,17 @@ public class RunMRPWiz extends ValidatorEJB implements RunMRPWizLocal, RunMRPWiz
System.out.println("sale_order=="+saleOrder+"itemCode=="+itemCode);
System.out.println("ctr1=="+ctr1);
if(ctr1 > 0)
{
itemCodeList = itemCodeList + ",'"+saleOrder+itemCode+"'" ;
itemCodeOnlyList = itemCodeOnlyList + ",'"+itemCode+"'" ;
}
else
{
itemCodeList = "'"+saleOrder+itemCode+"'" ;
itemCodeOnlyList = "'"+itemCode+"'" ;
}
System.out.println("itemCodeList=="+itemCodeList);
System.out.println("itemCodeOnlyList=="+itemCodeOnlyList);
orderType= checkNull(genericUtility.getColumnValueFromNode( "order_type", detail2List.item(ctr1) ));
System.out.println("inside for orderType["+orderType+"]");
......@@ -558,6 +566,7 @@ public class RunMRPWiz extends ValidatorEJB implements RunMRPWizLocal, RunMRPWiz
argData.append("<date_from>").append(genericUtility.getColumnValue("date_from",dom1)).append("</date_from>\r\n");
argData.append("<date_to>").append(genericUtility.getColumnValue("date_to",dom1)).append("</date_to>\r\n");
argData.append("<item_code_list>").append(itemCodeList).append("</item_code_list>\r\n");
argData.append("<item_code_only_list>").append(itemCodeOnlyList).append("</item_code_only_list>\r\n");
argData.append("<site_code__from>").append(siteCodeFr).append("</site_code__from>\r\n");
argData.append("<site_code__to>").append(siteCodeTo).append("</site_code__to\r\n>");
argData.append("<item_code__from>").append("00").append("</item_code__from>\r\n");
......
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