Exemplo n.º 1
0
        private void nhânViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QLNhanVien f = new QLNhanVien();

            f.ShowDialog();
            LoadNhanVienToCobobox();
        }
Exemplo n.º 2
0
        private void btnNhanVien_Click(object sender, EventArgs e)
        {
            this.pnlChucNang.Controls.Clear();
            QLNhanVien FormNhanVien = new QLNhanVien();

            FormNhanVien.TopLevel = false;
            this.pnlChucNang.Controls.Add(FormNhanVien);
            FormNhanVien.Show();
        }
Exemplo n.º 3
0
        void hienthi()
        {
            this.pnlChucNang.Controls.Clear();
            QLNhanVien formQLNV = new QLNhanVien();

            formQLNV.TopLevel = false;
            this.pnlChucNang.Controls.Add(formQLNV);
            formQLNV.Show();
        }
Exemplo n.º 4
0
        //Them du lieu nhan vien tu bang du lieu QLNhanVien
        public bool ThemNV(string MaNV, string HoTen, string NgaySinh, string GioiTinh, string DiaChi, ref string err)
        {
            QLNhaXeDataContext qlNX = new QLNhaXeDataContext();
            QLNhanVien         nv   = new QLNhanVien();

            nv.MaNV     = MaNV;
            nv.HoTen    = HoTen;
            nv.NgaySinh = NgaySinh;
            nv.GioiTinh = GioiTinh;
            nv.DiaChi   = DiaChi;
            qlNX.QLNhanViens.InsertOnSubmit(nv);
            qlNX.QLNhanViens.Context.SubmitChanges();
            return(true);
        }
Exemplo n.º 5
0
        private void quảnLýThôngTinNhânViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QLNhanVien f = new QLNhanVien();

            f.Show();
        }
        private void mnuDanhMucNhanVien_Click(object sender, RoutedEventArgs e)
        {
            QLNhanVien f = new QLNhanVien();

            f.ShowDialog();
        }