示例#1
0
 private void tsrbtnAuditBill_Click(object sender, EventArgs e)
 {
     try
     {
         if (ConfigManager.IsChecking(_currentDeptId))
         {
             MessageBox.Show("药品正在盘点中......");
             return;
         }
         if (_currentMaster == null)
         {
             MessageBox.Show("请选中一行");
             return;
         }
         if (_currentMaster.Audit_Flag == 1)
         {
             MessageBox.Show("不能对已审核单据进行操作");
             return;
         }
         else
         {
             _billProcessor.AuditBill(_currentMaster, _currentUserId, _currentDeptId);
             MessageBox.Show("审核成功,药品已经成功入库,请核查库存......");
             LoadData();
         }
     }
     catch (Exception error)
     {
         _currentMaster.Audit_Flag = 0;
         MessageBox.Show(error.Message);
     }
 }
示例#2
0
 private void tsrbtnAuditBill_Click(object sender, EventArgs e)
 {
     try
     {
         if (MessageBox.Show("下面将对本库房的所有盘点单据进行累加审核,您确认所有盘点单据已保存完毕并开始审核么?",
                             "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
         {
             this.Cursor = GWMHIS.BussinessLogicLayer.Classes.PublicStaticFun.WaitCursor();
             _billProcessor.AuditBill(_currentMaster, _currentUserId, _currentDeptId);
             LoadData();
             MessageBox.Show("审核成功,请核查审核药品库存");
         }
     }
     catch (Exception error)
     {
         MessageBox.Show(error.Message);
         return;
     }
     finally
     {
         this.Cursor = DefaultCursor;
     }
 }
示例#3
0
 private void tsrbtnAuditBill_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = GWMHIS.BussinessLogicLayer.Classes.PublicStaticFun.WaitCursor();
         if (ConfigManager.IsChecking(_currentDeptId))
         {
             MessageBox.Show("药品正在盘点中......");
             return;
         }
         if (_currentMaster == null)
         {
             MessageBox.Show("请选中一行");
             return;
         }
         if (_currentMaster.Audit_Flag == 1)
         {
             MessageBox.Show("不能对已审核单据进行操作");
             return;
         }
         else
         {
             _billProcessor = BillFactory.GetProcessor(_currentMaster.OpType);
             _billProcessor.AuditBill(_currentMaster, _currentUserId, _currentDeptId);
             MessageBox.Show("审核成功,请及时核查库存...");
             LoadData();
         }
     }
     catch (Exception error)
     {
         MessageBox.Show(error.Message);
     }
     finally
     {
         this.Cursor = DefaultCursor;
     }
 }