public void laydulieulencomboboxMaphieu(ComboBox cb) { bllpqlk = new PhieuQLKho_BLL(); this.cbbMaPhieuQL.DataSource = bllpqlk.getAllPQLKho(); this.cbbMaPhieuQL.DisplayMember = "_maPhieuQli"; this.cbbMaPhieuQL.ValueMember = "_maPhieuQli"; }
private void btnthem_Click(object sender, EventArgs e) { if (btnthem.Text == "Thêm") { chedobutton(false); btnXacNhan.Enabled = false; btnthem.Enabled = true; btnthem.Text = "Bỏ qua"; chedotextbox(true); } else { btnthem.Text = "Thêm"; chedobutton(true); chedotextbox(false); listpqlk = bllpqlk.getAllPQLKho(); duadulieulendgvCTPQL(dgvPQLK, listpqlk); } }
public PQLKho() { InitializeComponent(); bllpqlk = new PhieuQLKho_BLL(); listpqlk = new List <ePhieuQLiKho>(); listpqlk = bllpqlk.getAllPQLKho(); bllKho = new Kho_BLL(); duadulieulendgvCTPQL(dgvPQLK, listpqlk); DuadulieulencomboboxMaKho(comboBoxMaKho); loaddulieulencomboboxTinhTrang(comboTinhTrang); chedotextbox(false); chedobutton(true); }
public void loaddata() { lst = pqlkBLL.getAllPQLKho(); bds.DataSource = lst; dataPQLK.DataSource = bds; }