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();
 }
Пример #2
0
 private void LichCS_Load(object sender, EventArgs e)
 {
     vattuBus     = new VattuBUS();
     lichBus      = new LichChamSocBUS();
     cayBus       = new CayCanhBUS();
     DonViTinhBus = new DonViTinhBUS();
     listDonVi    = DonViTinhBus.selectDonVi();
     listVatTu    = vattuBus.selectvattu();
 }
 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;
 }
        //Bao cáo tình trạng cây cảnh


        private void TTCayCanh_Load(object sender, EventArgs e)
        {
            TTBus         = new BCTinhTrangBUS();
            cayBus        = new CayCanhBUS();
            loaiBus       = new LoaiCayBUS();
            tinhTrangBus  = new TinhTrangBUS();
            listTinhTrang = tinhTrangBus.selectTT();
            listloaiCay   = loaiBus.selectLoaiCay();
            listCay       = cayBus.select();
        }
Пример #5
0
 private void QuanLyCayCanh_Load(object sender, EventArgs e)
 {
     vtBus         = new ViTriBUS();
     loaiBus       = new LoaiCayBUS();
     cayBus        = new CayCanhBUS();
     tinhtrangBus  = new TinhTrangBUS();
     listtinhtrang = tinhtrangBus.selectTT();
     listloai      = loaiBus.selectLoaiCay();
     listVT        = vtBus.selectVT();
     loadData_Vao_GridView();
 }
 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();
 }
Пример #7
0
        private void LenLich_Load(object sender, EventArgs e)
        {
            lichBus  = new LichChamSocBUS();
            vattuBus = new VattuBUS();

            cayBus       = new CayCanhBUS();
            DonViTinhBus = new DonViTinhBUS();
            listDonVi    = DonViTinhBus.selectDonVi();
            listVatTu    = vattuBus.selectvattu();
            //selectedLoaiVatTu = int.Parse(comboBoxMaVatTu.SelectedValue.ToString());

            maChamSocTB.ReadOnly = true;
            gioTB.ReadOnly       = true;
            PhutTB.ReadOnly      = true;
            soLuongTB.ReadOnly   = true;
            ghiChuTB.ReadOnly    = true;
            soLuongTB.ReadOnly   = true;
        }