public ActionResult CommitedDetail() { Business_WeChatPush_Information weChatMainModel = new Business_WeChatPush_Information(); bool isEdit = Boolean.Parse(Request.QueryString["isEdit"]); string vguid = Request.QueryString["Vguid"]; List <CS_Master_2> pushType = new List <CS_Master_2>(); pushType = _cl.GetPushTypeList(); ViewData["PushType"] = pushType; List <CS_Master_2> weChatPush = new List <CS_Master_2>(); weChatPush = _cl.GetWeChatPushType(); ViewData["WeChatPushType"] = weChatPush; List <Business_Exercises_Infomation> exerciseList = new List <Business_Exercises_Infomation>(); exerciseList = _cl.GetExerciseList(); ViewData["ExerciseList"] = exerciseList; ViewData["RevenueTypeList"] = _dl.GetRevenueType(); weChatMainModel = _cl.GetWeChatMainByVguid(vguid); Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(CurrentUser.GetCurrentUser().Role, ModuleVguid.SubmitListModule); ViewBag.CurrentModulePermission = roleModuleModel; var pushObject = _dl.GetPushObjectStr(vguid); ViewBag.WeChatModel = weChatMainModel; ViewBag.pushObject = pushObject; ViewBag.listCountersignType = _dl.GetMasterDataType(MasterVGUID.CountersignType); ViewBag.listRedPacketType = _dl.GetMasterDataType(MasterVGUID.RedPacketType); return(View()); }
/// <summary> /// 获取角色下每个模块的权限 /// </summary> /// <param name="roleVguid">角色Vguid</param> /// <param name="moduleVguid">模块Vguid</param> /// <returns></returns> public Sys_Role_Module GetRoleModulePermission(string roleVguid, string moduleVguid) { using (SqlSugarClient _dbMsSql = SugarDao.SugarDao_MsSql.GetInstance()) { Guid roleVGUID = Guid.Parse(roleVguid); Guid moduleVGUID = Guid.Parse(moduleVguid); Sys_Role_Module roleModuleModel = new Sys_Role_Module(); if (roleVguid == Common.Tools.MasterVGUID.SysAdminRole) { roleModuleModel.Reads = 1; roleModuleModel.Edit = 1; roleModuleModel.Deletes = 1; roleModuleModel.Adds = 1; roleModuleModel.Submit = 1; roleModuleModel.Approved = 1; roleModuleModel.Import = 1; roleModuleModel.Export = 1; } else { roleModuleModel = _dbMsSql.Queryable <Sys_Role_Module>().Where(i => i.RoleVGUID == roleVGUID && i.ModuleVGUID == moduleVGUID).SingleOrDefault(); if (roleModuleModel == null) { return(new Sys_Role_Module() { Reads = 0, Edit = 0, Deletes = 0, Adds = 0, Submit = 0, Approved = 0, Import = 0, Export = 0 }); } } return(roleModuleModel); } }
/// <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()); }
public ActionResult PaymentHistory() { Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.PaymentHistoryModule); ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
public ActionResult UserInfo() { Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.PersonModule); GetDepartment(); ViewBag.CurrentModulePermission = roleModuleModel; //绑定状态清单 List <CS_Master_2> itemStatus = _ul.ApprovalStatusSelect(); List <SelectListItem> StatusSelect = new List <SelectListItem>(); StatusSelect.Add(new SelectListItem() { Value = "", Text = "不限" }); foreach (var list in itemStatus) { StatusSelect.Add(new SelectListItem() { Value = list.DESC0, Text = list.DESC0 }); } ViewData["StatusSelect"] = StatusSelect; ViewData["CurrentUser"] = CurrentUser.GetCurrentUser().LoginName; return(View()); }
public ActionResult PushMsgReport() { Sys_Role_Module roleModuleModel = _authorityManageLogic.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.PushRecordsModule); ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
public ActionResult UserManagementDetail() { bool isEdit = bool.Parse(Request.QueryString["isEdit"]); //绑定角色 List <Sys_Role> sysRoleList = new List <Sys_Role>(); sysRoleList = _ul.GetSysRoleList(); ViewData["SysRoleList"] = sysRoleList; //绑定公司 // List<Master_Organization> companyList = new List<Master_Organization>(); // companyList = _ul.GetCompanyList(); // ViewData["CompanyList"] = companyList; List <Master_Organization> departmentList = new List <Master_Organization>(); Sys_User sysRoleModel = new Sys_User(); if (isEdit) { string vguid = Request.QueryString["Vguid"]; sysRoleModel = _ul.GetUserInfoByVguid(vguid); // departmentList = GetDepartmentListByEdit(sysRoleModel.Company.ToString()); } Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.UserSystemModule); ViewBag.DepartmentList = departmentList; ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.UserInfo = sysRoleModel; ViewBag.isEdit = isEdit; return(View()); }
/// <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()); }
public ActionResult AuthorityManagement() { Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.AuthorityModule); ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
private string GetModuleList(int did, int rid) { IList all = Sys_Dep_Module.Init().GetAll("DepID=" + did, null); IList all2 = Sys_Role_Module.Init().GetAll("RoleID=" + rid, null); List <string> list = new List <string>(); foreach (object current in all) { Sys_Dep_ModuleInfo sys_Dep_ModuleInfo = current as Sys_Dep_ModuleInfo; if (!list.Contains(string.Concat(sys_Dep_ModuleInfo.ModuleID))) { list.Add(string.Concat(sys_Dep_ModuleInfo.ModuleID)); } } foreach (object current in all2) { Sys_Role_ModuleInfo sys_Role_ModuleInfo = current as Sys_Role_ModuleInfo; if (!list.Contains(string.Concat(sys_Role_ModuleInfo.ModuleID))) { list.Add(string.Concat(sys_Role_ModuleInfo.ModuleID)); } } string result; if (list.Count != 0) { result = string.Join(",", list.ToArray()); } else { result = ""; } return(result); }
public ActionResult Index() { Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.UserSystemModule); ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
// // GET: /Systemmanagement/UserManage/ public ActionResult UserManagement() { var listAllRoles = _ul.GetAllRoles(); ViewBag.listAllRoles = listAllRoles; Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.UserSystemModule); ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
public ActionResult QuestionReport() { List <Business_Questionnaire> exerciseList = _sl.GetCheckedQuestionList(); Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.QuestionReport); ViewData["currLoginName"] = CurrentUser.GetCurrentUser().LoginName; ViewBag.exerciseCheckedList = exerciseList; ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
public ActionResult ConfigManagement() { List <Master_Configuration> configList = new List <Master_Configuration>(); configList = _configManagementLogic.GetConfigList(); Sys_Role_Module roleModuleModel = _authorityManageLogic.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.ConfigModule); ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.configList = configList; return(View()); }
public ActionResult MarkingExercise() { Sys_Role_Module roleModuleModel = _authorityManageLogic.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.MarkingShortQuestionModule); List <V_ExercisesUserInformation> exerciseList = new List <V_ExercisesUserInformation>(); exerciseList = _markingExerciseLogic.GetExerciseList(); ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.exerciseList = exerciseList; return(View()); }
/// <summary> /// 推送列表界面 /// </summary> /// <returns></returns> public ActionResult DraftList() { List <CS_Master_2> pushType = new List <CS_Master_2>(); pushType = _dl.GetPushTypeList(); ViewData["PushType"] = pushType; Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.DraftListModule); ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
public ActionResult FormalDetail() { Guid vguid = Guid.Parse(Request.QueryString["Vguid"]); var knowledgeInfo = _draftLogic.GetKnowledgeBaseInfoByVguid(vguid); ViewBag.knowledgeInfo = knowledgeInfo; Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.KnowledgeFormalModule); ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
public ActionResult ScoreReport() { List <Business_Exercises_Infomation> exerciseList = _sl.GetCheckedExerciseList(); List <CS_Master_2> exportTypeList = _sl.GetExportTypeList(); Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.ScoreRecordsModule); ViewData["currLoginName"] = CurrentUser.GetCurrentUser().LoginName; ViewBag.exportType = exportTypeList; ViewBag.exerciseCheckedList = exerciseList; ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
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()); }
/// <summary> /// 问卷列表界面 /// </summary> /// <returns></returns> public ActionResult QuestionList() { //绑定问卷状态 var exerciseStatus = new List <CS_Master_2>(); exerciseStatus = _el.GetQuestionStatus(); ViewData["QuestionStatus"] = exerciseStatus; Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.QuestionModule); ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
public ActionResult AuthorityDetail() { bool isEdit = bool.Parse(Request.QueryString["isEdit"]); string roleInfoVguid = Request.QueryString["roleTypeVguid"]; Sys_Role sysRole = new Sys_Role(); if (isEdit) { sysRole = _al.GetRoleTypeInfo(roleInfoVguid); } Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.AuthorityModule); ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.RoleTypeInfo = sysRole; ViewBag.isEdit = isEdit; return(View()); }
private void Show(string id) { Sys_RoleInfo byId = Sys_Role.Init().GetById(Convert.ToInt32(id)); this.ViewState["sr"] = byId; this.RoleName.Value = byId.RoleName; this.Notes.Value = byId.Notes; IList all = Sys_Role_Module.Init().GetAll("RoleID=" + id, null); List <string> list = new List <string>(); for (int i = 0; i < all.Count; i++) { Sys_Role_ModuleInfo sys_Role_ModuleInfo = all[i] as Sys_Role_ModuleInfo; list.Add(string.Concat(sys_Role_ModuleInfo.ModuleID)); } this.ViewState["old_module"] = list; this.powerListBind(all, this.powerList); }
public ActionResult Index() { bool isEdit = bool.Parse(Request.QueryString["isEdit"]); string vguid = Request.QueryString["VGUID"]; Business_EquityAllocation equityAllocation = new Business_EquityAllocation(); Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.UserSystemModule); ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.Equity = equityAllocation; ViewBag.isEdit = isEdit; ViewBag.VGUID = vguid; ViewData["currentUserDepartment"] = ""; if (!string.IsNullOrEmpty(CurrentUser.GetCurrentUser().Department)) { ViewData["currentUserDepartment"] = CurrentUser.GetCurrentUser().Department; } return(View()); }
/// <summary> /// 习题列表界面 /// </summary> /// <returns></returns> public ActionResult ExerciseList() { //绑定习题状态 var exerciseStatus = new List <CS_Master_2>(); exerciseStatus = _el.GetExerciseStatus(); ViewData["ExerciseStatus"] = exerciseStatus; //绑定录入类型 var inputType = new List <CS_Master_2>(); inputType = _el.GetInputType(); ViewData["InputType"] = inputType; Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.ExerciseModule); ViewBag.CurrentModulePermission = roleModuleModel; return(View()); }
public ActionResult Index() { bool isEdit = bool.Parse(Request.QueryString["isEdit"]); Business_CleaningCompany cleaningCompany = new Business_CleaningCompany(); if (isEdit) { string vguid = Request.QueryString["Vguid"]; cleaningCompany = GetCleaningCompanyByVguid(vguid); // departmentList = GetDepartmentListByEdit(sysRoleModel.Company.ToString()); } Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.UserSystemModule); ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.UserInfo = cleaningCompany; ViewBag.isEdit = isEdit; return(View()); }
public ActionResult CheckedDetail() { //绑定问卷类型 var questionType = new List <CS_Master_2>(); questionType = _cl.GetQuestionType(); ViewData["QuestionType"] = questionType; string vguid = Request.QueryString["Vguid"]; ViewData["Type"] = Request.QueryString["Type"]; Business_Questionnaire questionMain = new Business_Questionnaire(); questionMain = _cl.GetQuestionByVguid(vguid); Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.CheckedQuestionModule); ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.questionMainModel = questionMain; return(View()); }
public ActionResult CheckedDetail() { //绑定习题类型 var exerciseType = new List <CS_Master_2>(); exerciseType = _cl.GetExerciseType(); ViewData["ExerciseType"] = exerciseType; string vguid = Request.QueryString["Vguid"]; ViewData["Type"] = Request.QueryString["Type"]; Business_Exercises_Infomation exerciseMain = new Business_Exercises_Infomation(); exerciseMain = _cl.GetExerciseByVguid(vguid); Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.CheckedExerciseModule); ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.exerciseMainModel = exerciseMain; return(View()); }
public ActionResult DraftDetail() { bool isEdit = Boolean.Parse(Request.QueryString["isEdit"]); Guid vguid = Guid.Parse(Request.QueryString["Vguid"] ?? Guid.Empty.ToString()); Business_KnowledgeBase_Information knowledgeInfo = new Business_KnowledgeBase_Information(); if (isEdit) { knowledgeInfo = _draftLogic.GetKnowledgeBaseInfoByVguid(vguid); } else { knowledgeInfo.Vguid = Guid.NewGuid(); } ViewBag.knowledgeInfo = knowledgeInfo; Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(Common.CurrentUser.GetCurrentUser().Role, Common.Tools.ModuleVguid.KnowledgeDraftModule); ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.isEdit = isEdit; return(View()); }
/// <summary> /// 保存模块权限 /// </summary> /// <param name="roleTypeModel"></param> /// <param name="permissionList"></param> /// <param name="isEdit"></param> /// <returns></returns> public bool SaveRole(Sys_Role roleTypeModel, List <U_Module> permissionList, bool isEdit) { bool result = false; if (isEdit)//编辑 { Sys_Role sysRoleModels = _as.GetRoleTypeInfo(roleTypeModel.Vguid.ToString()); sysRoleModels.Role = roleTypeModel.Role; sysRoleModels.Description = roleTypeModel.Description; sysRoleModels.ChangeDate = DateTime.Now; sysRoleModels.ChangeUser = Common.CurrentUser.GetCurrentUser().LoginName; //获取所有模块信息 List <Sys_Module> sysModuleList = _as.GetSysModuleList(); List <Sys_Role_Module> sysRoleList = new List <Sys_Role_Module>(); foreach (var item in sysModuleList) { //按照模块区分list var list = permissionList.FindAll(p => p.ModuleName == item.Vguid.ToString()); Sys_Role_Module sysRoleModel = new Sys_Role_Module(); //list为循环当前模块的权限集合 foreach (var i in list) { switch (i.RightType) { case (int)AuthorityEnum.Reads: sysRoleModel.Reads = 1; break; case (int)AuthorityEnum.Adds: sysRoleModel.Adds = 1; break; case (int)AuthorityEnum.Edit: sysRoleModel.Edit = 1; break; case (int)AuthorityEnum.Deletes: sysRoleModel.Deletes = 1; break; case (int)AuthorityEnum.Submit: sysRoleModel.Submit = 1; break; case (int)AuthorityEnum.Approved: sysRoleModel.Approved = 1; break; case (int)AuthorityEnum.Import: sysRoleModel.Import = 1; break; case (int)AuthorityEnum.Export: sysRoleModel.Export = 1; break; } } if (list.Count > 0) { sysRoleModel.Vguid = Guid.NewGuid(); sysRoleModel.RoleVGUID = roleTypeModel.Vguid; sysRoleModel.ModuleVGUID = item.Vguid; sysRoleModel.CreatedDate = DateTime.Now; sysRoleModel.CreatedUser = Common.CurrentUser.GetCurrentUser().LoginName; sysRoleModel.ChangeDate = DateTime.Now; sysRoleList.Add(sysRoleModel); } } result = _as.SaveRole(sysRoleModels, sysRoleList, isEdit); } else//新增 { //角色主信息 roleTypeModel.Vguid = Guid.NewGuid(); roleTypeModel.CreatedDate = DateTime.Now; roleTypeModel.CreatedUser = Common.CurrentUser.GetCurrentUser().LoginName; roleTypeModel.ChangeDate = DateTime.Now; //获取所有模块信息 List <Sys_Module> sysModuleList = _as.GetSysModuleList(); List <Sys_Role_Module> sysRoleList = new List <Sys_Role_Module>(); foreach (var item in sysModuleList) { //按照模块区分list var list = permissionList.FindAll(p => p.ModuleName == item.Vguid.ToString()); Sys_Role_Module sysRoleModel = new Sys_Role_Module(); //list为循环当前模块的权限集合 foreach (var i in list) { switch (i.RightType) { case (int)AuthorityEnum.Reads: sysRoleModel.Reads = 1; break; case (int)AuthorityEnum.Adds: sysRoleModel.Adds = 1; break; case (int)AuthorityEnum.Edit: sysRoleModel.Edit = 1; break; case (int)AuthorityEnum.Deletes: sysRoleModel.Deletes = 1; break; case (int)AuthorityEnum.Submit: sysRoleModel.Submit = 1; break; case (int)AuthorityEnum.Approved: sysRoleModel.Approved = 1; break; case (int)AuthorityEnum.Import: sysRoleModel.Import = 1; break; case (int)AuthorityEnum.Export: sysRoleModel.Export = 1; break; } } if (list.Count > 0) { sysRoleModel.Vguid = Guid.NewGuid(); sysRoleModel.RoleVGUID = roleTypeModel.Vguid; sysRoleModel.ModuleVGUID = item.Vguid; sysRoleModel.CreatedDate = DateTime.Now; sysRoleModel.CreatedUser = Common.CurrentUser.GetCurrentUser().LoginName; sysRoleModel.ChangeDate = DateTime.Now; sysRoleList.Add(sysRoleModel); } } result = _as.SaveRole(roleTypeModel, sysRoleList, isEdit); } return(result); }
public ActionResult DraftDetail() { Business_WeChatPush_Information weChatMainModel = new Business_WeChatPush_Information(); bool isEdit = Boolean.Parse(Request.QueryString["isEdit"]); string vguid = Request.QueryString["Vguid"]; List <CS_Master_2> pushType = new List <CS_Master_2>(); pushType = _dl.GetPushTypeList(); ViewData["PushType"] = pushType; List <CS_Master_2> weChatPushType = new List <CS_Master_2>(); weChatPushType = _dl.GetWeChatPushType(); ViewData["WeChatPushType"] = weChatPushType; List <Business_Exercises_Infomation> exerciseList = new List <Business_Exercises_Infomation>(); exerciseList = _dl.GetExerciseList(); ViewData["ExerciseList"] = exerciseList; List <Business_KnowledgeBase_Information> knowledgeList = new List <Business_KnowledgeBase_Information>(); knowledgeList = _dl.GetknowledgeList(); ViewData["KnowledgeList"] = knowledgeList; List <Business_Questionnaire> questionList = new List <Business_Questionnaire>(); questionList = _dl.GetQuestionList(); ViewData["QuestionList"] = questionList; ViewData["RevenueTypeList"] = _dl.GetRevenueType(); ViewData["LabelType"] = _dl.GetLabels(); string pushObject = string.Empty; string pushName = string.Empty; if (isEdit) //编辑 { weChatMainModel = _dl.GetWeChatMainByVguid(vguid); pushObject = _dl.GetPushObjectPhone(vguid); pushName = _dl.GetPushObjectStr(vguid); } Sys_Role_Module roleModuleModel = _al.GetRoleModulePermission(CurrentUser.GetCurrentUser().Role, ModuleVguid.DraftListModule); ViewData["currentUserDepartment"] = ""; if (!string.IsNullOrEmpty(CurrentUser.GetCurrentUser().Department)) { ViewData["currentUserDepartment"] = CurrentUser.GetCurrentUser().Department; } ViewBag.PushObject = pushObject; ViewBag.PushName = pushName; ViewBag.CurrentModulePermission = roleModuleModel; ViewBag.WeChatModel = weChatMainModel; ViewBag.isEdit = isEdit; ViewBag.listCountersignType = _dl.GetMasterDataType(MasterVGUID.CountersignType); ViewBag.listRedPacketType = _dl.GetMasterDataType(MasterVGUID.RedPacketType); return(View()); }