public void GetData(string p_ma_nv) { suckhoe.MaNV = p_ma_nv; dtDienBienSK = suckhoe.GetData(); if (dtDienBienSK.Rows.Count > 0) { PrepareDataSource(dtDienBienSK.Copy()); EditDtgInterface(); } }
private void RefreshDataSource() { suckhoe = new Business.CNVC.CNVC_DienBienSK(); suckhoe.MaNV = ma_nv; DataTable dt = suckhoe.GetData(); if (dt != null) { PrepareDataSource(dt); EditDtgInterface(); } }
private void QLNS_DienBienSK_Load(object sender, EventArgs e) { //suckhoe.MaNV = "1"; DataTable dt = suckhoe.GetData(); if (dt != null) { PrepareDataSource(dt); EditDtgInterface(); } ResetInterface(true); }
void Prepare_SK() { try { DataTable dt = oCNVC_DienBienSK.GetData(); if (dt != null && dt.Rows.Count > 0) { dt_SucKhoe = (from a in dt.AsEnumerable() select a).CopyToDataTable(); } } catch (Exception) { } }
private void RefreshDataSource() { suckhoe = new Business.CNVC.CNVC_DienBienSK(); suckhoe.MaNV = ma_nv; DataTable dt = suckhoe.GetData(); if (dt != null) { PrepareDataSource(dt); EditDtgInterface(); } }