Exemplo n.º 1
0
        private void Form_TPB_ThongTinNV_Load(object sender, EventArgs e)
        {
            _maPhongBan  = pbbll.layMaPhongBan(FormDangNhap._tenDN, FormDangNhap._MK).ToString();
            _tenPhongBan = pbbll.layTenPhongBan(FormDangNhap._tenDN, FormDangNhap._MK).ToString();


            tbMaPhongBan.Text = _maPhongBan;
            tbTenPB.Text      = _tenPhongBan;

            btnDSNhanVienLam.Enabled = false;
            loadNhanVienDangLam();
            //dataGridView1.RowHeadersVisible = false;
            // dataGridView1.AllowUserToResizeRows = false;
        }
Exemplo n.º 2
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;
        }