private void LoadGrid() { try { DataTable dtTableCT = new DataTable(); dtTableCT = congtyBUS.GetAll(); grdCtrlCongTy.DataSource = dtTableCT; } catch (Exception exception) { MessageBox.Show(exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void LoadCongTyInFo() { DataTable dtTableCongty = new DataTable(); dtTableCongty = congtyBUS.GetAll(); cbo_MaCongTy.DataSource = dtTableCongty; cbo_MaCongTy.ValueMember = "MaCT"; cbo_MaCongTy.DisplayMember = "MaCT"; txt_TenCongTy.DataBindings.Add("Text", dtTableCongty, "TEN_CONG_TY"); txt_SoTaiKhoan.DataBindings.Add("Text", dtTableCongty, "SO_TAI_KHOAN"); txt_MaSoThue.DataBindings.Add("Text", dtTableCongty, "MA_SO_THUE"); }
private void LoadComboCongTy() { try { DataTable dtTableCT = new DataTable(); dtTableCT = congTyBUS.GetAll(); cbo_CongTy.DataSource = dtTableCT; cbo_CongTy.DisplayMember = "TEN_CONG_TY"; cbo_CongTy.ValueMember = "MaCT"; cbo_CongTy.Text = ""; } catch (Exception exception) { MessageBox.Show(exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public TimkiemvaChonCongTyUI() { InitializeComponent(); grdCtrlCongTy.DataSource = congtyBUS.GetAll(); }
public TraCuuCongTyUI() { InitializeComponent(); grdCtrlCongTy.DataSource = congtyBUS.GetAll(); }