Пример #1
0
 //修改
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     //MessageBox.Show("现在请使用右边按钮【一键发送】,方便快捷!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
     //return;
     if (this.dataGridViewEx1.CurrentCell != null)
     {
         //未发药
         if (Convert.ToBoolean(dsMessageData.dtMessageMaster.Rows[this.dataGridViewEx1.CurrentCell.RowIndex]["drug_flag"]))
         {
             //[20100514.1.04]
             FrmAddDrugMessage frmCharge = new FrmAddDrugMessage(MasterID, _currentUser, _currentDept, DeptCode, YfCode, IsDrug, DrugType, dsMessageData.dtMessageOrder, IsOper);
             //frmCharge.currentDept = _currentDept;
             //frmCharge.currentUser = _currentUser;
             frmCharge.WindowState = FormWindowState.Maximized;
             frmCharge.MdiParent   = this.MdiParent;
             //frmCharge.BindDataGrid();
             ((GWMHIS.BussinessLogicLayer.Interfaces.IInvokForm) this.Parent.Parent.Parent).AddFormToTabPage(frmCharge);
             //frmCharge.ShowDialog();
             //llabrush_Click(null, null);
             //dataGridViewEx1_CurrentCellChanged(null, null);
             //MessageBox.Show("请重新刷新病人列表!", "提示", MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1);
         }
         else
         {
             MessageBox.Show("已发药的统领单不能维护!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
 }
Пример #2
0
        //新增
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            //MessageBox.Show("现在请使用右边按钮【一键发送】,方便快捷!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //return;
            //[20100514.1.04]
            FrmAddDrugMessage frmCharge = new FrmAddDrugMessage(0, _currentUser, _currentDept, IsOper);

            //frmCharge.currentDept = _currentDept;
            //frmCharge.currentUser = _currentUser;
            frmCharge.WindowState = FormWindowState.Maximized;
            frmCharge.MdiParent   = this.MdiParent;
            //frmCharge.BindDataGrid();
            ((GWMHIS.BussinessLogicLayer.Interfaces.IInvokForm) this.Parent.Parent.Parent).AddFormToTabPage(frmCharge);
            //frmCharge.ShowDialog();
            //llabrush_Click(null, null);
            //dataGridViewEx1_CurrentCellChanged(null, null);
            //MessageBox.Show("请重新刷新病人列表!", "提示", MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1);
        }