예제 #1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            frmAddHealthExamination m_frmAddHealthExamination = new frmAddHealthExamination();

            m_frmAddHealthExamination.iFunction = 1;
            m_frmAddHealthExamination.ShowDialog();
            if (m_frmAddHealthExamination.DialogResult == DialogResult.OK)
            {
                FillGridControl();
            }
        }
예제 #2
0
        private void btnupdate_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmAddHealthExamination m_frmAddHealthExamination = new frmAddHealthExamination();

            m_frmAddHealthExamination.iFunction         = 2;
            m_frmAddHealthExamination.m_HealthExamTable = new HealthExaminationDAO().GetByID(int.Parse(txtHealthExamID.Text));
            m_frmAddHealthExamination.ShowDialog();
            if (m_frmAddHealthExamination.DialogResult == DialogResult.OK)
            {
                FillGridControl();
            }
        }
예제 #3
0
 private void btnCapNhat_Click(object sender, EventArgs e)
 {
     if (txtHealthExamID.Text.Length == 0)
     {
         XtraMessageBox.Show("Vui lòng chọn đợt khám cần cập nhật", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         frmAddHealthExamination m_frmAddHealthExamination = new frmAddHealthExamination();
         m_frmAddHealthExamination.iFunction         = 2;
         m_frmAddHealthExamination.m_HealthExamTable = new HealthExaminationDAO().GetByID(int.Parse(txtHealthExamID.Text));
         m_frmAddHealthExamination.ShowDialog();
         if (m_frmAddHealthExamination.DialogResult == DialogResult.OK)
         {
             FillGridControl();
         }
     }
 }