Beispiel #1
0
        private void cmdNew_Click(object sender, EventArgs e)
        {
            try
            {
                frm_themmoi_noiKCBBD frm = new frm_themmoi_noiKCBBD();
                frm.grdList = grdInsClinic;

                frm.em_Action = action.Insert;
                frm.ShowDialog();
            }
            catch (Exception)
            {
            }
        }
Beispiel #2
0
        /// <summary>
        /// hàm thực hiện việc sửa thôn tin
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            try
            {
                if (grdInsClinic.CurrentRow != null && grdInsClinic.CurrentRow.RowType == RowType.Record)
                {
                    v_ClinicID = Utility.Int32Dbnull(grdInsClinic.CurrentRow.Cells[DmucNoiKCBBD.Columns.IdKcbbd].Value, -1);
                    frm_themmoi_noiKCBBD frm = new frm_themmoi_noiKCBBD();
                    frm.grdList           = grdInsClinic;
                    frm.txtClinic_ID.Text = v_ClinicID.ToString();

                    frm.em_Action = action.Update;
                    frm.ShowDialog();
                }
            }
            catch (Exception)
            {
            }
        }
        /// <summary>
        /// hàm thực hiện việc sửa thôn tin 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            try
            {
                if (grdInsClinic.CurrentRow != null&&grdInsClinic.CurrentRow.RowType==RowType.Record)
                {
                    v_ClinicID = Utility.Int32Dbnull(grdInsClinic.CurrentRow.Cells[DmucNoiKCBBD.Columns.IdKcbbd].Value, -1);
                    frm_themmoi_noiKCBBD frm = new frm_themmoi_noiKCBBD();
                    frm.grdList = grdInsClinic;
                    frm.txtClinic_ID.Text = v_ClinicID.ToString();

                    frm.em_Action = action.Update;
                    frm.ShowDialog();
                }

            }
            catch (Exception)
            {

            }
        }
        private void cmdNew_Click(object sender, EventArgs e)
        {
            try
            {
                frm_themmoi_noiKCBBD frm = new frm_themmoi_noiKCBBD();
                frm.grdList = grdInsClinic;

                frm.em_Action = action.Insert;
                frm.ShowDialog();
            }
            catch (Exception)
            {

            }
        }