Esempio n. 1
0
        private void ucPhong_Load(object sender, EventArgs e)
        {
            //  timer1.Start();
            _db = new BLL_LoaiThietBi(cls_Main.duongdanfileketnoi);
            _th = new BLL_TruongHoc(cls_Main.duongdanfileketnoi);
            _tb = new BLL_ThietBi(cls_Main.duongdanfileketnoi);
            LoadDanhSachTruong(ref err, cbTruongHoc);

            DanhSachPhongLoad();
            DanhSachTruongLoadAll();
        }
Esempio n. 2
0
 private void LoaiThietBi_Load(object sender, System.EventArgs e)
 {
     panel1.Visible = true;
     //  panel1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(128)));
     timer1.Start();
     timer2.Start();
     _db = new BLL_LoaiThietBi(cls_Main.duongdanfileketnoi);
     _th = new BLL_TruongHoc(cls_Main.duongdanfileketnoi);
     _tb = new BLL_ThietBi(cls_Main.duongdanfileketnoi);
     LoaiThietBiLoad();
     LoadDanhSachTruong(ref err, cbtruonghoc);
     cbtruonghoc.SelectedIndex = -1;
 }
Esempio n. 3
0
        private void ucBaoHThietBi_Load(object sender, EventArgs e)
        {
            cbgiaovien.SelectedIndex = -1;
            _tbb = new BLL_ThietBi(cls_Main.duongdanfileketnoi);
            _gv  = new BLL_GiaoVien(cls_Main.duongdanfileketnoi);
            LoadDanhSachNhanvien(ref err, cbnhanvien);
            LoadDanhSachNhanvien(ref err, cbgiaovien);
            KiemTraHoatDong();
            KiemTra();

            lblmaid.Text = String.Format("Mã thiết bị {0}", cls_Main._Luachon.ToString());
            ThongTin(cls_Main._Luachon);
        }
Esempio n. 4
0
        private void ThietBi_Load(object sender, EventArgs e)
        {
            _tbb = new BLL_ThietBi(cls_Main.duongdanfileketnoi);
            _db  = new BLL_LoaiThietBi(cls_Main.duongdanfileketnoi);
            _th  = new BLL_TruongHoc(cls_Main.duongdanfileketnoi);

            cbphonghoc.SelectedIndex = -1;
            cboLoaitb.SelectedIndex  = -1;
            load();
            LoadDanhSachPhong(ref err, cbphonghoc);

            var thietbilichsu = new ucLoadDanhSachLichSu();

            cls_Main.LoadUserControl3(cls_Controls.pncontrol, thietbilichsu);
        }
Esempio n. 5
0
        private void ucLoadDanhSachLichSu_Load(object sender, EventArgs e)
        {
            _tbb = new BLL_ThietBi(cls_Main.duongdanfileketnoi);
            DataTable dt = new DataTable(null);

            dt = _tbb.ThietBiLoad(ref err, cls_Main._Luachon);
            lblsoluong.Text = dt.Rows.Count.ToString();
            if (dt.Rows.Count > 0)
            {
                dgvthietbi.DataSource = dt;
            }
            else
            {
                dt.Rows.Clear();
                dgvthietbi.DataSource = dt;
            }
        }
Esempio n. 6
0
 private void ucMuonthietbi_Load(object sender, EventArgs e)
 {
     cbgiaovien.SelectedIndex = -1;
     _tbb         = new BLL_ThietBi(cls_Main.duongdanfileketnoi);
     _gv          = new BLL_GiaoVien(cls_Main.duongdanfileketnoi);
     lblmaid.Text = String.Format("Mã thiết bị {0}", cls_Main._Luachon.ToString());
     ThongTin(cls_Main._Luachon);
     LoadDanhSachNhanvien(ref err, cbnhanvien);
     LoadDanhSachNhanvien(ref err, cbgiaovien);
     if (cls_Main._now_st == 2 || cls_Main._fix_st == 3)
     {
         ToastNotification.Show(this, "Tình trạng thiết bị đang không hoạt động hoặc đang sửa chữa, không thể mượn lúc này. Hệ thống sẽ yêu cung cầu thông tin để sửa chữa.", null, 1000, (eToastGlowColor)eToastGlowColor.Red, (eToastPosition)eToastPosition.BottomCenter);
         this.Cursor                 = Cursors.WaitCursor;
         btnLuu.Enabled              = false;
         btnHuy.Enabled              = false;
         circularProgress1.Visible   = true;
         circularProgress1.IsRunning = true;
         cbgiaovien.Enabled          = false;
         cblichgv.Enabled            = false;
         cbnhanvien.Enabled          = false;
         lblchuyentrang.Visible      = true;
         _TChuyen.Enabled            = true;
         txtlydomuon.Enabled         = false;
     }
     if (cls_Main._rent_st == 3)
     {
         ToastNotification.Show(this, "Thiết bị đang được mượn vui lòng quay trở lại sau, Hoặc chọn chức năng trã thiết bị", null, 2000, (eToastGlowColor)eToastGlowColor.Red, (eToastPosition)eToastPosition.BottomCenter);
         btnLuu.Enabled        = false;
         btnHuy.Enabled        = false;
         btntrathietbi.Enabled = true;
         cbgiaovien.Enabled    = false;
         cblichgv.Enabled      = false;
         cbnhanvien.Enabled    = false;
         txtlydomuon.Enabled   = false;
     }
 }
Esempio n. 7
0
 private void ucTKDanhSachThietBi_Load(object sender, EventArgs e)
 {
     _tb = new BLL_ThietBi(cls_Main.duongdanfileketnoi);
 }
Esempio n. 8
0
 private void ucThietBiKhongHoatDong_Load(object sender, EventArgs e)
 {
     _tbb = new BLL_ThietBi(cls_Main.duongdanfileketnoi);
     KiemTra();
 }