Esempio n. 1
0
        public int Xoa(string msNhom)
        {
            NhomLinhVucModel nlv = new NhomLinhVucModel();

            nlv.MSNHOMLINHVUC = int.Parse(msNhom);
            return(nlv.Xoa());
        }
Esempio n. 2
0
        public int Them(string tenNhom)
        {
            NhomLinhVucModel nlv = new NhomLinhVucModel();

            nlv.TENNHOMLINHVUC = tenNhom;
            return(nlv.Them());
        }
        // GET: Admin/DuTru
        public ActionResult Index()
        {
            var magiangvien = ((TaiKhoanDangNhapModel)Session[Contains.SESSIONKEYDANGNHAP]).MSGIANGVIEN;

            ViewData["DSLopHocPhan"]  = new DuTruVatTuModel().DanhSachLopHocPhanTheoGiangVien(magiangvien);
            ViewData["DSNhomLinhVuc"] = new NhomLinhVucModel().DanhSach();
            return(View());
        }
Esempio n. 4
0
        public int CapNhat(string msNhom, string tenNhom)
        {
            NhomLinhVucModel nlv = new NhomLinhVucModel();

            nlv.MSNHOMLINHVUC  = int.Parse(msNhom);
            nlv.TENNHOMLINHVUC = tenNhom;
            return(nlv.CapNhat());
        }
        // GET: Admin/VatTuPhong
        public ActionResult Index()
        {
            PhongModel phong = new PhongModel();

            phong.MSGIANGVIEN         = ((TaiKhoanDangNhapModel)Session[Contains.SESSIONKEYDANGNHAP]).MSGIANGVIEN;
            ViewData["DSPhong"]       = phong.DanhSachPhongTheoGiangVien();
            ViewData["DSNhomLinhVuc"] = new NhomLinhVucModel().DanhSach();
            return(View());
        }
Esempio n. 6
0
 // GET: Admin/VatTu
 public ActionResult Index()
 {
     ViewData["DSNhomLinhVuc"] = new NhomLinhVucModel().DanhSach();
     return(View());
 }