public override object PerformSelectOneObject()
        {
            Ecm.WebReferences.MasterService.Rex_Dm_Quyetdinh rex_Dm_Quyetdinh = new Ecm.WebReferences.MasterService.Rex_Dm_Quyetdinh();
            try
            {
                int     focusedRow = gridView1.GetDataSourceRowIndex(gridView1.FocusedRowHandle);
                DataRow dr         = ds_Quyetdinh.Tables[0].Rows[focusedRow];
                if (dr != null)
                {
                    rex_Dm_Quyetdinh.Id_Quyetdinh = dr["Id_Quyetdinh"];
                    rex_Dm_Quyetdinh.Ma_Quyetdinh = dr["Ma_Quyetdinh"];
                    rex_Dm_Quyetdinh.Sohieu       = dr["Sohieu"];
                    rex_Dm_Quyetdinh.Trichyeu     = dr["Trichyeu"];
                    rex_Dm_Quyetdinh.Noidung      = dr["Noidung"];
                    rex_Dm_Quyetdinh.Nguoiky      = dr["Nguoiky"];
                    rex_Dm_Quyetdinh.Ngayky       = dr["Ngayky"];
                    rex_Dm_Quyetdinh.Ngaybatdau   = dr["Ngaybatdau"];
                    rex_Dm_Quyetdinh.Ngayketthuc  = dr["Ngayketthuc"];
                }
                Selected_Rex_Dm_Quyetdinh = rex_Dm_Quyetdinh;
                this.Dispose();
                this.Close();
                return(rex_Dm_Quyetdinh);
            }
            catch (Exception ex)
            {
#if DEBUG
                MessageBox.Show(ex.Message);
#endif
                return(null);
            }
        }
        public object UpdateObject()
        {
            Ecm.WebReferences.MasterService.Rex_Dm_Quyetdinh objRex_Dm_Quyetdinh = new Ecm.WebReferences.MasterService.Rex_Dm_Quyetdinh();
            objRex_Dm_Quyetdinh.Id_Quyetdinh = gridView1.GetFocusedRowCellValue("Id_Quyetdinh");
            objRex_Dm_Quyetdinh.Ma_Quyetdinh = txtMa_Quyetdinh.EditValue;
            objRex_Dm_Quyetdinh.Sohieu       = txtSohieu.EditValue;
            objRex_Dm_Quyetdinh.Trichyeu     = txtTrichyeu.EditValue;
            objRex_Dm_Quyetdinh.Noidung      = txtNoidung.EditValue;
            objRex_Dm_Quyetdinh.Nguoiky      = txtNguoiky.EditValue;
            objRex_Dm_Quyetdinh.Ngayky       = dtNgay_Ky.EditValue;
            objRex_Dm_Quyetdinh.Ngaybatdau   = dtNgay_Batdau.EditValue;
            objRex_Dm_Quyetdinh.Ngayketthuc  = dtNgay_Ketthuc.EditValue;

            return(objMasterService.Update_Rex_Dm_Quyetdinh(objRex_Dm_Quyetdinh));
        }
        public object InsertObject()
        {
            Ecm.WebReferences.MasterService.Rex_Dm_Quyetdinh objRex_Dm_Quyetdinh = new Ecm.WebReferences.MasterService.Rex_Dm_Quyetdinh();

            objRex_Dm_Quyetdinh.Id_Quyetdinh = -1;
            objRex_Dm_Quyetdinh.Ma_Quyetdinh = txtMa_Quyetdinh.EditValue;
            objRex_Dm_Quyetdinh.Sohieu       = txtSohieu.EditValue;
            objRex_Dm_Quyetdinh.Trichyeu     = txtTrichyeu.EditValue;
            objRex_Dm_Quyetdinh.Noidung      = txtNoidung.EditValue;
            objRex_Dm_Quyetdinh.Nguoiky      = txtNguoiky.EditValue;
            objRex_Dm_Quyetdinh.Ngayky       = dtNgay_Ky.EditValue;
            objRex_Dm_Quyetdinh.Ngaybatdau   = dtNgay_Batdau.EditValue;
            objRex_Dm_Quyetdinh.Ngayketthuc  = dtNgay_Ketthuc.EditValue;

            return(objMasterService.Insert_Rex_Dm_Quyetdinh(objRex_Dm_Quyetdinh));
        }
 public object DeleteObject()
 {
     Ecm.WebReferences.MasterService.Rex_Dm_Quyetdinh objRex_Dm_Quyetdinh = new Ecm.WebReferences.MasterService.Rex_Dm_Quyetdinh();
     objRex_Dm_Quyetdinh.Id_Quyetdinh = gridView1.GetFocusedRowCellValue("Id_Quyetdinh");
     return(objMasterService.Delete_Rex_Dm_Quyetdinh(objRex_Dm_Quyetdinh));
 }