/// <summary>
        /// 习题详情界面(新增/编辑)
        /// </summary>
        /// <returns></returns>
        public ActionResult ExerciseDetail()
        {
            //绑定习题类型
            var exerciseType = new List <CS_Master_2>();

            exerciseType             = _el.GetExerciseType();
            ViewData["ExerciseType"] = exerciseType;
            ExerciseLibraryLogic exerciseLibraryLogic = new ExerciseLibraryLogic();
            var exerciseInputType = exerciseLibraryLogic.GetInputType();

            ViewData["exerciseInputType"] = exerciseInputType;
            //绑定录入类型
            var inputType = new List <CS_Master_2>();

            inputType             = _el.GetInputType();
            ViewData["InputType"] = inputType;
            bool   isEdit = Boolean.Parse(Request.QueryString["isEdit"]);
            string vguid  = Request.QueryString["Vguid"];
            Business_Exercises_Infomation exerciseMain = new Business_Exercises_Infomation();

            if (isEdit)//编辑
            {
                exerciseMain = _el.GetExerciseByVguid(vguid);
            }
            else//新增
            {
                exerciseMain.Vguid = Guid.NewGuid();
            }
            Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.ExerciseModule);

            ViewBag.CurrentModulePermission = roleModuleModel;
            ViewBag.isEdit            = isEdit;
            ViewBag.exerciseMainModel = exerciseMain;
            return(View());
        }
Example #2
0
        public ActionResult FormalList()
        {
            //绑定录入类型
            var inputType = new List <CS_Master_2>();

            inputType             = _exerciseLibraryLogic.GetInputType();
            ViewData["InputType"] = inputType;
            Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.KnowledgeFormalModule);

            ViewBag.CurrentModulePermission = roleModuleModel;
            return(View());
        }
Example #3
0
        public ActionResult CheckedList()
        {
            //绑定习题状态
            var exerciseStatus = new List <CS_Master_2>();

            exerciseStatus             = _el.GetExerciseStatus();
            ViewData["ExerciseStatus"] = exerciseStatus;

            //绑定录入类型
            var inputType = new List <CS_Master_2>();

            inputType             = _exerciseLibraryLogic.GetInputType();
            ViewData["InputType"] = inputType;

            var exerciseType = _el.GetExerciseType();

            ViewData["exerciseType"] = exerciseType;
            Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.ExerciseLibraryFormalModule);

            ViewBag.CurrentModulePermission = roleModuleModel;
            return(View());
        }