Beispiel #1
0
 private void buttonRemoveLOT_Click(object sender, EventArgs e)
 {
     try
     {
         if (this.fastBatchMasterIndex.SelectedObject != null)
         {
             BatchMasterIndex batchMasterIndex = (BatchMasterIndex)this.fastBatchMasterIndex.SelectedObject;
             if (batchMasterIndex != null && batchMasterIndex.LotID != null)
             {
                 DialogResult dialogResult = CustomMsgBox.Show(this, "Vui lòng xác nhận xóa LOT đang chọn?" + "\r\n" + "\r\n" + "Batch: " + batchMasterIndex.BatchMasterCode + ", Lot: " + batchMasterIndex.LotCode, "Warning", MessageBoxButtons.YesNo);
                 if (dialogResult == DialogResult.Yes)
                 {
                     if (this.batchMasterController.RemoveLot((int)batchMasterIndex.LotID))
                     {
                         this.Loading();
                     }
                 }
             }
         }
     }
     catch (Exception exception)
     {
         ExceptionHandlers.ShowExceptionMessageBox(this, exception);
     }
 }
Beispiel #2
0
        private void fastBatchIndex_FormatRow(object sender, FormatRowEventArgs e)
        {
            BatchMasterIndex batchMasterIndex = (BatchMasterIndex)e.Model;

            if (batchMasterIndex.InActive)
            {
                e.Item.ForeColor = Color.Gray;
            }
        }
Beispiel #3
0
        public BatchMasterIndex GetActiveBatchMasterIndex()
        {
            BatchMasterIndex goodsReceiptIndexes = this.GetBatchMasterIndexes(false, GlobalEnums.ActiveOption.Active).Where(w => w.IsDefault).FirstOrDefault();

            return(goodsReceiptIndexes);
        }