/// <summary> /// 问卷详情界面(新增/编辑) /// </summary> /// <returns></returns> public ActionResult QuestionDetail() { //绑定问卷类型 var questionType = new List <CS_Master_2>(); questionType = _el.GetQuestionType(); ViewData["QuestionType"] = questionType; bool isEdit = Boolean.Parse(Request.QueryString["isEdit"]); string vguid = Request.QueryString["Vguid"]; Business_Questionnaire questionMain = new Business_Questionnaire(); if (isEdit)//编辑 { questionMain = _el.GetQuestionByVguid(vguid); } else//新增 { questionMain.Vguid = Guid.NewGuid(); } Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.QuestionModule); ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.isEdit = isEdit; ViewBag.questionMainModel = questionMain; return(View()); }