Exemple #1
0
 private void Xuly()
 {
     ListThamSo = TSbus.selectThamSo();
     TienTB.ResetText();
     CayTB.ResetText();
     TienTB.AppendText(ListThamSo[0].SoTienToiDaPT.ToString());
     CayTB.AppendText(ListThamSo[0].SoCayToiDaPT.ToString());
 }
 private void XoaCay_Load(object sender, EventArgs e)
 {
     thamso      = new ThamSoBUS();
     cayBus      = new CayCanhBUS();
     ViTriBus    = new ViTriBUS();
     tsDTO       = thamso.selectThamSo();
     listViTri   = ViTriBus.selectVT();
     listcayCanh = cayBus.select();
 }
 private void SuaCay_Load(object sender, EventArgs e)
 {
     cayBus            = new CayCanhBUS();
     ViTriBus          = new ViTriBUS();
     LoaiCayBus        = new LoaiCayBUS();
     TinhTrangBus      = new TinhTrangBUS();
     thamso            = new ThamSoBUS();
     tsDTO             = thamso.selectThamSo();
     TenCaytb.ReadOnly = true;
 }
 private void ThemCay_Load(object sender, EventArgs e)
 {
     thamso       = new ThamSoBUS();
     cayBus       = new CayCanhBUS();
     ViTriBus     = new ViTriBUS();
     LoaiCayBus   = new LoaiCayBUS();
     TinhTrangBus = new TinhTrangBUS();
     tsDTO        = thamso.selectThamSo();
     loadViTriVao_Combobox();
     loadLoaiCayVao_Combobox();
     loadTinhTrangVao_Combobox();
 }
 private void Vattu_Load(object sender, EventArgs e)
 {
     vattuBus     = new VattuBUS();
     DonViTinhBus = new DonViTinhBUS();
     GiaVatTuBus  = new GiaVatTuBUS();
     phieumuaBUS  = new PhieuMuaVatTuBUS();
     loadMaVatTu_Combobox();
     listVatTu    = vattuBus.selectvattu();
     listDonVi    = DonViTinhBus.selectDonVi();
     listGiaVatTu = GiaVatTuBus.selectGiaVat();
     thamso       = new ThamSoBUS();
     tsDTO        = thamso.selectThamSo();
     Donvi_Combobox();
 }