Beispiel #1
0
        // GET: LoaiAction
        public ActionResult MenuDanhSachTinhNang()
        {
            ViewBag.ListController = LoaiControllerQueries.LayDanhSachNghiepVu();
            var model = LoaiActionQueries.LayDanhSachTinhNang();

            return(View(model));
        }
Beispiel #2
0
        public ActionResult ChinhSuaTinhNang(LoaiActionViewModel actionInfo, FormCollection f)
        {
            var MoTa     = f["MoTa"].ToString();
            var MaAction = f["MaAction"].ToString();
            var model    = LoaiActionQueries.ChinhSuaTinhNang(actionInfo);

            return(RedirectToAction("MenuDanhSachTinhNang", "LoaiAction"));
        }
Beispiel #3
0
        public ActionResult ChinhSuaTinhNang(int MaAction)
        {
            ViewBag.ListController = LoaiControllerQueries.LayDanhSachNghiepVu();
            var model = LoaiActionQueries.LayDanhSachTinhNang();

            ViewBag.model = LoaiActionQueries.ThongTinChiTiet(MaAction);
            return(View(model));
        }
        public PartialViewResult SidebarPartial()
        {
            TaiKhoanViewModel TaiKhoan = Session["TaiKhoan"] as TaiKhoanViewModel;
            var LoaiController         = LoaiControllerQueries.LayDanhSachNghiepVu();

            ViewBag.LoaiAction = LoaiActionQueries.LayDanhSachActionTheoQuyen(TaiKhoan.MaQuyen);
            return(PartialView(LoaiController));
        }
Beispiel #5
0
 public ActionResult PhanQuyen(string MaQuyen)
 {
     //Lấy thông tin chi tiết quyền
     ViewBag.Quyen = QuyenQueries.LayThongTinChiTiet(MaQuyen);
     //Lay danh sach action
     ViewBag.Action = LoaiActionQueries.LayDanhSachTinhNang();
     //Lay danh sach action cua 1 quyen
     ViewBag.PhanQuyen = PhanQuyenQueries.LayDanhSachPhanQuyen(MaQuyen);
     return(View());
 }