예제 #1
0
 /// <summary>
 /// 点击表格按钮事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvNotice_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         //查看按钮
         if (dgvNotice.Columns[e.ColumnIndex].Name == "colBtn_1")
         {
             //终末质控的都是已归档病人,需归档退回
             if (!string.IsNullOrEmpty(dgvNotice.Rows[e.RowIndex].Cells["document_state"].Value.ToString()))
             {
                 App.Msg("该患者已经归档,请点击申请按钮退回!", this.ParentForm);
                 return;
             }
             else
             {
                 frmDocView frm = new frmDocView(dgvNotice.Rows[e.RowIndex].Cells["PATIENT_ID"].Value.ToString(), "D", dgvNotice.Rows[e.RowIndex].Cells["id"].Value.ToString());
                 frm.Refresh += new frmDocView.RefEventHandler(dgvNoticeShow);
                 frm.ShowDialog();
             }
         }
         //退回申请按钮
         if (dgvNotice.Columns[e.ColumnIndex].Name == "colBtn_2")
         {
             if (!string.IsNullOrEmpty(dgvNotice.Rows[e.RowIndex].Cells["document_state"].Value.ToString()))
             {
                 Base_Function.BLL_DOCTOR.Doc_Return.FrmApply_DocReturn_Record frm = new Base_Function.BLL_DOCTOR.Doc_Return.FrmApply_DocReturn_Record(dgvNotice.Rows[e.RowIndex].Cells["住院号"].Value.ToString());
                 frm.ShowDialog();
             }
             //else
             //{
             //    App.Msg("该患者未归档,不需申请!");
             //}
         }
     }
 }
예제 #2
0
 private void dgvNotice_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         //查看按钮
         if (dgvNotice.Columns[e.ColumnIndex].Name == "colBtn_1")
         {
             frmDocView frm = new frmDocView(dgvNotice.Rows[e.RowIndex].Cells["PATIENT_ID"].Value.ToString(), type, dgvNotice.Rows[e.RowIndex].Cells["id"].Value.ToString());
             frm.Refresh += new frmDocView.RefEventHandler(DataShow);
             frm.ShowDialog();
         }
     }
 }