Ejemplo n.º 1
0
 private void cmdNew_Click(object sender, EventArgs e)
 {
     try
     {
         frm_themmoi_benh frm = new frm_themmoi_benh();
         frm.m_dtDisease = m_dtDiease;
         frm.grdDiease   = grdDiease;
         frm.em_Action   = action.Insert;
         frm.ShowDialog();
         ModifyCommand();
     }catch (Exception exception)
     {
         ModifyCommand();
     }
 }
Ejemplo n.º 2
0
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            try
            {
                if (v_Disease_Id <= -1) return;
                frm_themmoi_benh frm = new frm_themmoi_benh();
                frm.m_dtDisease = m_dtDiease;
                frm.grdDiease = grdDiease;
                frm.em_Action = action.Update;
                frm.txtDiease_ID.Text = v_Disease_Id.ToString();
                frm.ShowDialog();
                ModifyCommand();
            }
            catch (Exception)
            {

                ModifyCommand();
            }
        }
Ejemplo n.º 3
0
 private void cmdEdit_Click(object sender, EventArgs e)
 {
     try
     {
         if (v_Disease_Id <= -1)
         {
             return;
         }
         frm_themmoi_benh frm = new frm_themmoi_benh();
         frm.m_dtDisease       = m_dtDiease;
         frm.grdDiease         = grdDiease;
         frm.em_Action         = action.Update;
         frm.txtDiease_ID.Text = v_Disease_Id.ToString();
         frm.ShowDialog();
         ModifyCommand();
     }
     catch (Exception)
     {
         ModifyCommand();
     }
 }
Ejemplo n.º 4
0
        private void cmdNew_Click(object sender, EventArgs e)
        {
            try
            {

                frm_themmoi_benh frm = new frm_themmoi_benh();
                frm.m_dtDisease = m_dtDiease;
                frm.grdDiease = grdDiease;
                frm.em_Action = action.Insert;
                frm.ShowDialog();
                ModifyCommand();
            }catch(Exception exception)
            {
                ModifyCommand();
            }
        }