コード例 #1
0
        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();
        }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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);
     }
 }