Пример #1
0
        private void cmdThemMoiBN_Click(object sender, EventArgs e)
        {
            try
            {
                frm_KCB_DANGKY frm = new frm_KCB_DANGKY();
                frm.m_enAction = action.Insert;
                frm.m_dtPatient = m_dtPatient;
                frm.grdList = grdList;
                frm.ShowDialog();
                if (frm.b_Cancel)
                {
                    grdList_SelectionChanged(grdList, new EventArgs());
                }
                ModifyCommand();
                ModifycommandAssignDetail();
                ModifyButtonCommandRegExam();
            }
            catch (Exception exception)
            {

            }
            finally
            {
               // CauHinh();
            }
        }
Пример #2
0
 /// <summary>
 /// hàm thục hiện việc thêm lần khám
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdThemLanKham_Click(object sender, EventArgs e)
 {
     try
     {
         frm_KCB_DANGKY frm = new frm_KCB_DANGKY();
         frm.txtMaBN.Text = Utility.sDbnull(grdList.GetValue(KcbLuotkham.Columns.IdBenhnhan));
         frm.txtMaLankham.Text = Utility.sDbnull(grdList.GetValue(KcbLuotkham.Columns.MaLuotkham));
         frm.m_enAction = action.Add;
         frm.m_dtPatient = m_dtPatient;
         frm.grdList = grdList;
         frm.ShowDialog();
         if (frm.b_Cancel)
         {
             grdList_SelectionChanged(grdList, new EventArgs());
         }
         ModifyCommand();
         ModifycommandAssignDetail();
         ModifyButtonCommandRegExam();
     }
     catch (Exception)
     {
     }
     finally
     {
         //CauHinh();
     }
 }