internal void DownloadAndUpdateAllBoxesForOrder() { var HDs = ReflexAccessModel.DownloadBoxesForOrder(Order.OrderName); foreach (var hd in HDs) { hd.Order.OrderName = Order.OrderName; } MysqlAccessModel.InsertAllBoxesToHdTable(HDs); }
public bool CheckIfScannedByPackStation() { HdModel hdToCheck = new HdModel(); hdToCheck = MysqlAccessModel.CheckIfScannedByPackStation(HdNumber); if (hdToCheck != null) { MessageBox.Show($"Hd {hdToCheck.HdNumber} was already scanned by pack station {hdToCheck.PackStationName} on {hdToCheck.ScanTimestamp.ToShortDateString()} at {hdToCheck.ScanTimestamp.TimeOfDay}.", "Warning!", MessageBoxButton.OK, MessageBoxImage.Warning); return(true); } else { return(false); } }
internal bool CheckIfOrderIsKnown() { return(MysqlAccessModel.CheckIfOrderIsKnown(Order.OrderName) is null ? false : true); }
internal void UpdateQuantityInHdTable() { MysqlAccessModel.UpdateQuantityInHdTable(this); }
internal void InsertIntoScannedByPackStation() { ScanTimestamp = DateTime.Now; MysqlAccessModel.InsertIntoScannedByPackStation(this); }
internal void InsertVasesForOrder() { MysqlAccessModel.InsertVasesForOrder(this); }
internal bool CheckIfExistsInHdTable() { return(MysqlAccessModel.CheckIfExistsInHdTable(HdNumber) is null ? false : true); }
internal void InsertOrder() { MysqlAccessModel.InsertOrder(Order.OrderName); }