Пример #1
0
        private void frmPhieuSuaChua_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSet1.PhieuSuaChua' table. You can move, or remove it, as needed.
            this.phieuSuaChuaTableAdapter.Fill(this.dataSet1.PhieuSuaChua, cbBienSo.Text);
            cbBienSo.DataSource    = XeBUS.Xe_DanhSach();
            cbBienSo.DisplayMember = "BienSo";
            cbBienSo.ValueMember   = "BienSo";

            cbVTPT.DataSource    = VatTuPhuTungBUS.VatTuPhuTung_GetAll();
            cbVTPT.DisplayMember = "MaVatTuPhuTung";
            cbVTPT.ValueMember   = "DonGia";

            cbNoiDung.DataSource    = TienCongBUS.TienCong_GetAll();
            cbNoiDung.DisplayMember = "NoiDungSuaChua";
            cbNoiDung.ValueMember   = "DonGia";

            cbNoiDung.Text     = "";
            cbVTPT.Text        = "";
            lbcSoLuongTon.Text = "";
            txtSoLuong.Text    = "";

            this.cbBienSo.SelectedIndexChanged  += new System.EventHandler(this.cbBienSo_SelectedIndexChanged);
            this.cbNoiDung.SelectedIndexChanged += new System.EventHandler(this.cbNoiDung_SelectedIndexChanged);
            this.cbVTPT.SelectedIndexChanged    += new System.EventHandler(this.cbVTPT_SelectedIndexChanged);
        }
 private void frmVatTuPhuTung_Load(object sender, EventArgs e)
 {
     // TODO: This line of code loads data into the 'quanlygaraoto1.CT_PHIEUSUACHUA' table. You can move, or remove it, as needed.
     this.cT_PHIEUSUACHUATableAdapter.Fill(this.quanlygaraoto1.CT_PHIEUSUACHUA);
     // TODO: This line of code loads data into the 'quanlygaraoto1.sp_VatTuPhuTung_GetAll' table. You can move, or remove it, as needed.
     this.sp_VatTuPhuTung_GetAllTableAdapter.Fill(this.quanlygaraoto1.sp_VatTuPhuTung_GetAll);
     // TODO: This line of code loads data into the 'quanlygaraoto1.CT_PHIEUSUACHUA' table. You can move, or remove it, as needed.
     this.cT_PHIEUSUACHUATableAdapter.Fill(this.quanlygaraoto1.CT_PHIEUSUACHUA);
     // TODO: This line of code loads data into the 'quanlygaraoto1.sp_VatTuPhuTung_GetAll' table. You can move, or remove it, as needed.
     this.sp_VatTuPhuTung_GetAllTableAdapter.Fill(this.quanlygaraoto1.sp_VatTuPhuTung_GetAll);
     tableDSVTPT.DataSource = PhieuNhapVatTuPhuTungBUS.PhieuNhapVatTuPhuTung_GetAll(dateNgayNhap.Text);
     cbMaVTPT.DataSource    = VatTuPhuTungBUS.VatTuPhuTung_GetAll();
     cbMaVTPT.DisplayMember = "mavattuphutung";
     cbMaVTPT.ValueMember   = "DonGia";
     cbMaVTPT.Text          = "";
     txtTenVTPT.Text        = "";
     txtDonGia.Text         = "";
 }
 private void LoadVatTu()
 {
     tableDSVTPT.DataSource = VatTuPhuTungBUS.VatTuPhuTung_GetAll();
 }
Пример #4
0
 private void frmKhoVatTu_Load(object sender, EventArgs e)
 {
     tableKhoVatTu.DataSource = VatTuPhuTungBUS.VatTuPhuTung_GetAll();
 }