Пример #1
0
        /// <summary>
        /// hàm thực hiện thêm mới đối tượng
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdNew_Click(object sender, EventArgs e)
        {
            frm_themmoi_dichvu_kcb frm = new frm_themmoi_dichvu_kcb();

            frm.m_enAction       = action.Insert;
            frm.m_dtDataRelation = m_dtDmucDichvu_kcb;
            frm.ShowDialog();
        }
Пример #2
0
        /// <summary>
        /// hàm thực hiện sửa thông tin
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            frm_themmoi_dichvu_kcb frm = new frm_themmoi_dichvu_kcb();

            frm.m_enAction            = action.Update;
            frm.m_dtDataRelation      = m_dtDmucDichvu_kcb;
            frm._txtInsObject_ID.Text =
                Utility.Int32Dbnull(grd_Insurance_Objects.CurrentRow.Cells[DmucDichvukcb.Columns.IdDichvukcb].Value, -1).ToString();

            frm.ShowDialog();
        }
Пример #3
0
 /// <summary>
 /// hàm thực hiện thêm mới đối tượng
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdNew_Click(object sender, EventArgs e)
 {
     frm_themmoi_dichvu_kcb frm = new frm_themmoi_dichvu_kcb();
     frm.m_enAction = action.Insert;
     frm.m_dtDataRelation = m_dtDmucDichvu_kcb;
     frm.ShowDialog();
 }
Пример #4
0
        /// <summary>
        /// hàm thực hiện sửa thông tin 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            frm_themmoi_dichvu_kcb frm = new frm_themmoi_dichvu_kcb();
            frm.m_enAction = action.Update;
            frm.m_dtDataRelation = m_dtDmucDichvu_kcb;
            frm._txtInsObject_ID.Text =
                Utility.Int32Dbnull(grd_Insurance_Objects.CurrentRow.Cells[DmucDichvukcb.Columns.IdDichvukcb].Value, -1).ToString();

            frm.ShowDialog();
        }