private void HandleAddDailyFlavor(object sender, DayInfoWPF.DayInfoEventArg e) { BatchWPF tmp = e.Batch_WPF; tmp.Store = Globals.SelectedStore; tmp.Day_number = Globals.DateTime_to_DayNumber(SelectedDate); bool success = lck_Comm.AddBatch(tmp); RefreshSelectedDay(); }
public bool DeleteBatch(BatchWPF Batch_WPF) { try { bool rtn = lck.DeleteBatch(Batch_WPF.Id); return(rtn); } catch (Exception ex) { Log("DeleteBatch(BatchWPF) - Error msg:" + ex.Message); return(false); } }
public bool UpdateBatch(int Batch_ID, BatchWPF Batch_WPF) { try { bool rtn = lck.UpdateBatch(Batch_ID, Batch_WPF.ToBatch()); return(rtn); } catch (Exception ex) { Log("UpdateBatch(int,BatchWPF) - Error msg:" + ex.Message); return(false); } }