Commit c9b06ba4 authored by tmahadi's avatar tmahadi

changes related to firmplan as per new requirements


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104358 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 64822e13
...@@ -10,36 +10,56 @@ public class SiteItemSummaryBean ...@@ -10,36 +10,56 @@ public class SiteItemSummaryBean
private String siteCode = "",itemCode = "",workOrder = "",siteCodeShip = "",transTran = "", private String siteCode = "",itemCode = "",workOrder = "",siteCodeShip = "",transTran = "",
locCode = "",lotSl="",lotNo="",lineNoOrder = ""; locCode = "",lotSl="",lotNo="",lineNoOrder = "";
private double otherSiteQty = 0; private double otherSiteQty = 0;
private double reqQuantity=0;
ArrayList stockList = new ArrayList(); ArrayList stockList = new ArrayList();
public String getTransTran() { public String getTransTran() {
return transTran; return transTran;
} }
public void setTransTran(String transTran) { public void setTransTran(String transTran) {
this.transTran = transTran; this.transTran = transTran;
} }
public String getSiteCodeShip() { public String getSiteCodeShip() {
return siteCodeShip; return siteCodeShip;
} }
public void setSiteCodeShip(String siteCodeShip) { public void setSiteCodeShip(String siteCodeShip) {
this.siteCodeShip = siteCodeShip; this.siteCodeShip = siteCodeShip;
} }
public String getWorkOrder() { public String getWorkOrder() {
return workOrder; return workOrder;
} }
public void setWorkOrder(String workOrder) { public void setWorkOrder(String workOrder) {
this.workOrder = workOrder; this.workOrder = workOrder;
} }
public double getOtherSiteQty(){ public double getOtherSiteQty(){
return otherSiteQty; return otherSiteQty;
} }
public void setOtherSiteQty(double otherSiteQty) public void setOtherSiteQty(double otherSiteQty)
{ {
this.otherSiteQty = otherSiteQty; System.out.println("before:::" + this.otherSiteQty);
this.otherSiteQty += otherSiteQty;
System.out.println("after:::" + this.otherSiteQty);
}
public double getReqQuantity(){
return reqQuantity;
}
public void setReqQuantity(double reqQuantity)
{
System.out.println("before required:::" + this.reqQuantity);
this.reqQuantity += reqQuantity;
System.out.println("after required:::" + this.reqQuantity);
} }
//Changed by wasim on 11-04-2016 to set allocated quantity with stock details [START] //Changed by wasim on 11-04-2016 to set allocated quantity with stock details [START]
public void setStockValues(HashMap hm) public void setStockValues(HashMap hm)throws Exception
{ {
HashMap oldStockMap = null; HashMap oldStockMap = null;
int index = indexofStock(hm); int index = indexofStock(hm);
...@@ -55,6 +75,7 @@ public class SiteItemSummaryBean ...@@ -55,6 +75,7 @@ public class SiteItemSummaryBean
System.out.println("SO/DO new quantity added="+totalQty); System.out.println("SO/DO new quantity added="+totalQty);
oldStockMap.put("QUANTITY", totalQty); oldStockMap.put("QUANTITY", totalQty);
stockList.set(index, oldStockMap); stockList.set(index, oldStockMap);
} }
else else
{ {
...@@ -71,6 +92,7 @@ public class SiteItemSummaryBean ...@@ -71,6 +92,7 @@ public class SiteItemSummaryBean
oldStockMap.put("EXP_DATE", hm.get("EXP_DATE")); oldStockMap.put("EXP_DATE", hm.get("EXP_DATE"));
stockList.add(hm); stockList.add(hm);
} }
} }
public ArrayList getStockList() public ArrayList getStockList()
...@@ -91,12 +113,14 @@ public class SiteItemSummaryBean ...@@ -91,12 +113,14 @@ public class SiteItemSummaryBean
this.nonAllocQty = nonAllocQty; this.nonAllocQty = nonAllocQty;
}*/ }*/
public String getSiteCode() { public String getSiteCode() {
return siteCode; return siteCode;
} }
public void setSiteCode(String siteCode) { public void setSiteCode(String siteCode) {
this.siteCode = siteCode; this.siteCode = siteCode;
} }
public String getItemCode() { public String getItemCode() {
return itemCode; return itemCode;
} }
public void setItemCode(String itemCode) { public void setItemCode(String itemCode) {
...@@ -104,18 +128,23 @@ public class SiteItemSummaryBean ...@@ -104,18 +128,23 @@ public class SiteItemSummaryBean
} }
//Changed by wasim on 11-04-2016 for get set method for stock update [START] //Changed by wasim on 11-04-2016 for get set method for stock update [START]
public String getLotNo() { public String getLotNo() {
return lotNo; return lotNo;
} }
public void setLotNo(String lotNo) { public void setLotNo(String lotNo) {
this.lotNo = lotNo; this.lotNo = lotNo;
} }
public String getLotSl() { public String getLotSl() {
return lotSl; return lotSl;
} }
public void setLotSl(String lotSl) { public void setLotSl(String lotSl) {
this.lotSl = lotSl; this.lotSl = lotSl;
} }
public String getLocCode() { public String getLocCode() {
return locCode; return locCode;
} }
public void setLocCode(String locCode) { public void setLocCode(String locCode) {
...@@ -159,6 +188,7 @@ public class SiteItemSummaryBean ...@@ -159,6 +188,7 @@ public class SiteItemSummaryBean
//Changed by wasim on on 13-07-2016 for get set method for line number order [START] //Changed by wasim on on 13-07-2016 for get set method for line number order [START]
public String getLineNoOrder() { public String getLineNoOrder() {
return lineNoOrder; return lineNoOrder;
} }
public void setLineNoOrder(String lineNoOrder) { public void setLineNoOrder(String lineNoOrder) {
...@@ -166,4 +196,11 @@ public class SiteItemSummaryBean ...@@ -166,4 +196,11 @@ public class SiteItemSummaryBean
} }
//Changed by wasim on on 11-04-2016 for get set method for line number order [END] //Changed by wasim on on 11-04-2016 for get set method for line number order [END]
/*@Override
public String toString() {
return "qty[" +this.getOtherSiteQty()+ "] lotno in site item bean[" +this.getLotNo()+ "]";
}*/
} }
...@@ -8,7 +8,7 @@ import java.text.SimpleDateFormat; ...@@ -8,7 +8,7 @@ import java.text.SimpleDateFormat;
public class WorderStkBean public class WorderStkBean
{ {
private double potencyAdj = 0,stkQuantityNew = 0,updQty = 0,qtyAdj = 0,reserveStkQty = 0; private double potencyAdj = 0,stkQuantityNew = 0,updQty = 0,qtyAdj = 0,reserveStkQty = 0;
private double allocQty = 0,stkQuantity = 0,stkPotencyPerc = 0,actualAllocQty = 0,requiredQty = 0; private double allocQty = 0,stkQuantity = 0,stkPotencyPerc = 0,actualAllocQty = 0;
java.sql.Timestamp expDate = null,mfgDate = null; java.sql.Timestamp expDate = null,mfgDate = null;
private String locCode = "",lotNo = "",lotSl = "",siteCode = "",itemCode = "",itemRef = "",alternate = "",itemDescr = "", private String locCode = "",lotNo = "",lotSl = "",siteCode = "",itemCode = "",itemRef = "",alternate = "",itemDescr = "",
workOrder = "",expLevel = "",critItem = "",unit = "",dimension = "",reserveStk = "",reserveStkTranId = "", workOrder = "",expLevel = "",critItem = "",unit = "",dimension = "",reserveStk = "",reserveStkTranId = "",
...@@ -204,14 +204,8 @@ public class WorderStkBean ...@@ -204,14 +204,8 @@ public class WorderStkBean
public void setStkQuantity(double stkQuantity) { public void setStkQuantity(double stkQuantity) {
this.stkQuantity = stkQuantity; this.stkQuantity = stkQuantity;
} }
/*
public double getRequiredQuantity() {
return requiredQty;
}
public void setRequiredQuantity(double requiredQty) {
this.requiredQty = requiredQty;
}
*/
public String getCritItem() { public String getCritItem() {
return critItem; return critItem;
} }
...@@ -258,6 +252,12 @@ public class WorderStkBean ...@@ -258,6 +252,12 @@ public class WorderStkBean
return quantity; return quantity;
} }
@Override
public String toString() {
return " in work order bean Item Code:[" + this.getItemCode() +"], Lot No:["+ this.getLotNo() +"], lotsl [" + this.getLotSl() + "], loccode [" + this.getLocCode() +"]";
}
/* 31-may-16 manoharan Comparator for sorting the list by work_order,exp_lev, exp_date*/ /* 31-may-16 manoharan Comparator for sorting the list by work_order,exp_lev, exp_date*/
public static Comparator<WorderStkBean> WoStkBeanComparator = new Comparator<WorderStkBean>() { public static Comparator<WorderStkBean> WoStkBeanComparator = new Comparator<WorderStkBean>() {
...@@ -282,5 +282,7 @@ public class WorderStkBean ...@@ -282,5 +282,7 @@ public class WorderStkBean
//return KeyStockBean2.compareTo(KeyStockBean1); //return KeyStockBean2.compareTo(KeyStockBean1);
} }
}; };
} }
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