public MeldungsDetailsTyp(ProduktDetailsTyp prod, DateTime date, int menge, string lieferSchein) { this.prod = prod; this.date = date; this.menge = menge; this.lieferSchein = lieferSchein; }
public ProduktNummerTyp erstelleProdukt(ProduktDetailsTyp prod) { using (var session = LagerComp.getDB().OpenSession()) using (var transaction = session.BeginTransaction()) { session.SaveOrUpdate(prod); transaction.Commit(); } return prod.prodNr; }
public MeldungsNummerTyp erstelleWarenausgang(ProduktDetailsTyp prod, int Anzahl) { return hesCore.getLagerComp().erstelleWarenausgang(prod, Anzahl); }
public ProduktNummerTyp erstelleProdukt(ProduktDetailsTyp prod) { return hesCore.getLagerComp().erstelleProdukt(prod); }
public MeldungsNummerTyp erstelleWareneingang(ProduktDetailsTyp prod, int Anzahl, object lieferSchein) { throw new NotImplementedException(); }
public MeldungsNummerTyp erstelleWarenausgang(ProduktDetailsTyp prod, int Anzahl) { return prodRepo.erstelleWarenausgang(prod, Anzahl); }
public ProduktNummerTyp erstelleProdukt(ProduktDetailsTyp prod) { return prodRepo.erstelleProdukt(prod); }
//NOT IMPLEMENTED da Produkte immer auf Lager public MeldungsNummerTyp erstelleWarenausgang(ProduktDetailsTyp prod, int Anzahl) { //TODO, prüfe ob Produkte auf Lager sind und erstelle dann einen Warenausgang return new MeldungsNummerTyp("_"); }