private void MoHinhDaoTao_Load(object sender, EventArgs e) { dtDSMoHinh = oMoHinhDaoTao.GetData(); if (dtDSMoHinh != null) { PrepareDataSource(); EditDtgInterface(); } }
private void NV_MoHinh_HinhThuc_Load(object sender, EventArgs e) { try { DataTable dt_mh = oMoHinhDaoTao.GetData(); DataTable dt_ht = oHinhThucDaoTao.GetData(); clb_MoHinh.DataSource = dt_mh; clb_MoHinh.ValueMember = "id"; clb_MoHinh.DisplayMember = "ten_mo_hinh"; clb_HinhThuc.DataSource = dt_ht; clb_HinhThuc.ValueMember = "id"; clb_HinhThuc.DisplayMember = "ten_hinh_thuc"; } catch (Exception) { } }
/// <summary> /// Refresh Data Source cho dtg sau moi lan thao tac /// </summary> private void RefreshDataSource() { Business.MoHinhDaoTao mh = new Business.MoHinhDaoTao(); // khong dung chung oChucVu duoc ??? dtDSMoHinh = mh.GetData(); PrepareDataSource(); }
/// <summary> /// Refresh Data Source cho dtg sau moi lan thao tac /// </summary> private void RefreshDataSource() { Business.MoHinhDaoTao mh = new Business.MoHinhDaoTao(); // khong dung chung oChucVu duoc ??? dtDSMoHinh = mh.GetData(); PrepareDataSource(); }