Esempio n. 1
0
        public Form_ThongTinCaNhan()
        {
            InitializeComponent();

            nvBLL = new NhanVienBLL();
            pbBLL = new PhongBanBLL();
        }
Esempio n. 2
0
 public Form_Main()
 {
     InitializeComponent();
     nvBLL = new NhanVienBLL();
     pbBLL = new PhongBanBLL();
     ctBLL = new CongTrinhBLL();
 }
Esempio n. 3
0
 public Form_QLNhanVien()
 {
     InitializeComponent();
     nhanVienBLL = new NhanVienBLL();
     PhongBanBLL = new PhongBanBLL();
     dataGridView1.AutoGenerateColumns = false;
     comboBox1.Items.Add("Nhân Viên");
     comboBox1.Items.Add("Quản Lý");
     dataGridView1.DataSource = nhanVienBLL.getAllNhanVien();
 }
Esempio n. 4
0
 public Form_TPB_QuanLyNhanVien()
 {
     InitializeComponent();
     pbbll = new PhongBanBLL();
     nvbll = new NhanVienBLL();
     tkbll = new TaiKhoanBLL();
     pcbll = new PhanCongBLL();
     db    = new QLLD_DBDataContext();
     ckn   = new ChuoiKetNoi();
     dataGridView1.Columns[2].DefaultCellStyle.Format = "dd/MM/yyyy";
     cbbTK_NV.Text     = "Theo Tên NV";
     _trangThaiTimKiem = "L";
 }
        public Form_PhanCong()
        {
            InitializeComponent();

            pbBLL = new PhongBanBLL();
            nvBLL = new NhanVienBLL();
            cvBLL = new CongViecBLL();
            ctBLL = new CongTrinhBLL();

            dataGridView_CongViecCuaNhanVien.AutoGenerateColumns = dataGridView_DanhSachCongTrinh.AutoGenerateColumns = dataGridView_DanhSachCongViecCuaCongTrinh.AutoGenerateColumns = dataGridView_NhanVienTrongPhongBan.AutoGenerateColumns = false;

            dataGridView_DanhSachCongTrinh.DataSource = ctBLL.getAllCongTrinh_DangThucHien_QuaHan();
        }
        // public static

        public Form_NVDA_QuanLyCongTrinh()
        {
            InitializeComponent();
            ctbll = new CongTrinhBLL();
            pbbll = new PhongBanBLL();
            pcbll = new PhanCongBLL();
            ckn   = new ChuoiKetNoi();
            dataGridView1.Columns[3].DefaultCellStyle.Format = "###,##";
            dataGridView1.Columns[4].DefaultCellStyle.Format = "dd/MM/yyyy";
            dataGridView1.Columns[5].DefaultCellStyle.Format = "dd/MM/yyyy";
            dataGridView1.Columns[6].DefaultCellStyle.Format = "dd/MM/yyyy";

            cbbTK_NV.Text       = "Theo Tên CT";
            _trangThaiCongTrinh = "TC";
        }
Esempio n. 7
0
        public Form_ThongTinCaNhan()
        {
            ThongtincanhanBLL = new ThongtincanhanBLL();
            PhongBanBLL       = new PhongBanBLL();
            nhanVienBLL       = new NhanVienBLL();
            InitializeComponent();
            var listData = ThongtincanhanBLL.getthongtinNhanVien(tenTK);

            foreach (var item in listData)
            {
                tbMaNV.Text      = item.idNhanVien;
                tbTenNV.Text     = item.tenNhanVien;
                tbDiaChi.Text    = item.diaChi;
                tbSDT.Text       = item.sdt;
                txtChucVu.Text   = item.chucVu == 0?"Nhân Viên":"Quản Lý";
                txtPhongBan.Text = PhongBanBLL.getTenPhongBan(item.idPhongBan);
                idPB             = item.idPhongBan;
            }
        }
Esempio n. 8
0
        public Form_Main()
        {
            InitializeComponent();
            nvbll = new NhanVienBLL();
            pbbll = new PhongBanBLL();
            string tenPhongBan = pbbll.layTenPhongBan(FormDangNhap._tenDN, FormDangNhap._MK);
            string tenNhanVien = nvbll.layTenNhanVien(FormDangNhap._tenDN, FormDangNhap._MK);

            lbXinChao.Text  = "Xin chào: " + tenNhanVien;
            lbPhongBan.Text = "Phòng Ban: " + tenPhongBan;

            //biến ngăn mở form nhiều lần
            f_NV_HT = true;
            //form Thông tin cá nhân và đổi mật khẩu
            f_TTCN = true;
            f_DMK  = true;


            //form tpb phòng ban thường
            f_TPB_QLNV    = true;
            f_TPB_PCNV    = true;
            f_TPB_QLNC    = true;
            f_TPB_CC      = true;
            f_TPB_QLL     = true;
            f_TPB_QLL_DTT = true;

            //form nv phong ban thường
            f_NV_XLLV = true;
            f_NV_LH   = true;


            //form tpb pda
            f_NVPDA_CC = true;
            f_DSNV_N   = true;
            f_DSCT_HT  = true;

            //form nv pda
            f_NVDA_DSNV  = true;
            f_NVDA_DSCT  = true;
            f_NVDA_QLCT  = true;
            f_NVPDA_QLNV = true;
            f_NVPDA_QLL  = true;
        }
Esempio n. 9
0
 public FrmPhongBan()
 {
     InitializeComponent();
     PhongBanBLL = new PhongBanBLL();
 }
Esempio n. 10
0
 public FrmLichSuLamViec()
 {
     InitializeComponent();
     LSLVBLL     = new LichSuLamViecBLL();
     PhongBanBLL = new PhongBanBLL();
 }
Esempio n. 11
0
 public FormPhongBan()
 {
     InitializeComponent();
     phongBanBLL = new PhongBanBLL();
     id          = "";
 }