public Arbeitsplatzauftrag(int artikelID, int fertigungszeit, int ruestzeit) { this.artikelID = artikelID; this.fertigungszeit = fertigungszeit; this.ruestzeit = ruestzeit; this.kapabedarfProTeil = Produktionsplanung.getBedarfByID(artikelID) * fertigungszeit; }
private static void createProductionList() { Productionlist.Reset(); Productionlist pl = Productionlist.Class; Produktionsplanung.berechnen(); for (int i = 1; i < 21; i++) { pl.AddItem(new ProductionlistItem(i, Produktionsplanung.getBedarfByID(i))); } pl.AddItem(new ProductionlistItem(26, Produktionsplanung.getBedarfByID(26))); for (int i = 29; i < 32; i++) { pl.AddItem(new ProductionlistItem(i, Produktionsplanung.getBedarfByID(i))); } for (int i = 49; i < 52; i++) { pl.AddItem(new ProductionlistItem(i, Produktionsplanung.getBedarfByID(i))); } for (int i = 54; i < 57; i++) { pl.AddItem(new ProductionlistItem(i, Produktionsplanung.getBedarfByID(i))); } }
public BPKaufteil(int id, String bezeichnung, Double diskontmenge, Double lieferzeit, Double lieferzeitAbweichung, Double bestellkostenNormal) { this.id = id; this.bezeichnung = bezeichnung; this.diskontmenge = diskontmenge; this.lieferzeit = lieferzeit; this.lieferzeitAbweichung = lieferzeitAbweichung; this.bestellkostenNormal = bestellkostenNormal; Warehousestock w = Warehousestock.Class; this.teileWert = w.GetArticleByID(id).Price; this.verbrauchPeriode0 = Produktionsplanung.getBedarfByID(id); this.verbrauchPeriode1 = ProduktionsplanungPeriode1.getBedarfByID(id); this.verbrauchPeriode2 = ProduktionsplanungPeriode2.getBedarfByID(id); this.verbrauchPeriode3 = ProduktionsplanungPeriode3.getBedarfByID(id); int aktuellePeriode = Static.Static.lastperiod + 1; /*Waitingliststock wls = Waitingliststock.Class; * var founditem = wls.GetMissingpartByID(id);*/ Futureinwardstockmovement fism = Futureinwardstockmovement.Class; var founditem = fism.GetOrdersByArticle(id); if (founditem != null) { foreach (var wli in founditem) { int lieferperiode = (int)Math.Floor(wli.Orderperiod + (this.lieferzeitGesamt / 5)); if (lieferperiode == aktuellePeriode) { this.geplanteBestellzugaengePeriode0 += wli.Amount; } else if (lieferperiode == aktuellePeriode + 1) { this.geplanteBestellzugaengePeriode1 += wli.Amount; } else if (lieferperiode == aktuellePeriode + 2) { this.geplanteBestellzugaengePeriode2 += wli.Amount; } else if (lieferperiode == aktuellePeriode + 3) { this.geplanteBestellzugaengePeriode3 += wli.Amount; } //if (wli.Orderperiod == aktuellePeriode) this.geplanteBestellzugaengePeriode0 += wli.Amount; //else if (wli.Orderperiod == aktuellePeriode + 1) this.geplanteBestellzugaengePeriode1 += wli.Amount; //else if (wli.Orderperiod == aktuellePeriode + 2) this.geplanteBestellzugaengePeriode2 += wli.Amount; //else if (wli.Orderperiod == aktuellePeriode + 3) this.geplanteBestellzugaengePeriode3 += wli.Amount; } } this.sicherheitsBestand = (int)(((lieferzeitAbweichung * ValueStore.Instance.sicherheitsFaktor) * durchSchnittsverbrauchProTag)); //this.sicherheitsBestand = ((int)(this.sicherheitsBestand / 10)) * 10; this.sicherheitsBestand = this.sicherheitsBestand + ((10 - (this.sicherheitsBestand % 10)) % 10); this.meldeBestand = ((int)((lieferzeit * durchSchnittsverbrauchProTag) + sicherheitsBestand)); this.meldeBestand = this.meldeBestand + ((10 - (this.meldeBestand % 10)) % 10); }