public ActionResult AboutUs() { ViewBag.Menu = "AU"; MEnterprise Menterprise = BLLMEnterprise.GetMEnterprise(); ViewBag.MInfo = Menterprise; return(View()); }
public ActionResult ManagementBrief() { ViewBag.Menu = "MB"; string brief = BLLMEnterprise.GetMEnterprise().MEnterpriseBrief; ViewBag.BriefTxt = brief; return(View()); }
public ActionResult MEnterpriseInfo() { ViewBag.MenuGroup = "SI"; ViewBag.MenuTitle = "系统说明"; MEnterprise menterprise = BLLMEnterprise.GetMEnterprise(); if (menterprise == null) { menterprise = new MEnterprise(); } return(View(menterprise)); }
public ActionResult MEnterpriseBiref(string action, string brief) { ViewBag.MenuGroup = "SI"; ViewBag.MenuTitle = "系统简介"; if (action == "Save") { brief = (brief == null ? "" : brief); MEnterprise enterprise = BLLMEnterprise.GetMEnterprise(); BLLMEnterprise.SetMEnterpriseBiref(enterprise == null ? 0 : enterprise.MEnterpriseID, brief); } ViewBag.CurrentMEnterprise = BLLMEnterprise.GetMEnterprise(); return(View()); }
public ActionResult MEnterpriseInfo(string id, string name, string tel, string email, string copy, string address, string shortbrief, string enterpriseLogo_f) { ViewBag.MenuGroup = "SI"; ViewBag.MenuTitle = "系统说明"; MEnterprise menterprise = new MEnterprise(); int mid = 0; if (!string.IsNullOrEmpty(id)) { mid = int.Parse(id); } menterprise = BLLMEnterprise.GetMEnterprise(); menterprise.MEnterpriseName = name; if (!string.IsNullOrEmpty(tel)) { menterprise.MEnterpriseTelphoneNumber = tel; } if (!string.IsNullOrEmpty(copy)) { menterprise.MEnterpriseRight = copy; } if (!string.IsNullOrEmpty(email)) { menterprise.MEnterpriseEmail = email; } if (!string.IsNullOrEmpty(address)) { menterprise.MEnterpriseAddress = address; } if (!string.IsNullOrEmpty(shortbrief)) { menterprise.MEnterpriseBriefShort = shortbrief; } if (!string.IsNullOrEmpty(enterpriseLogo_f)) { menterprise.MEnterpriseLogo = enterpriseLogo_f; } BLLMEnterprise.UpdateMEnterprise(menterprise); ViewBag.Result = "success"; return(View(menterprise)); }
public ActionResult TemplateList(int?page) { ViewBag.MenuGroup = "TL"; ViewBag.MenuTitle = "企业模板"; List <Templates> list = BLLTemplate.GetTemplateList(); if (page == null) { page = 1; } ViewBag.CurrentMEnterprise = BLLMEnterprise.GetMEnterprise(); ViewBag.TotalPage = list.Count(); ViewBag.CurrentPage = page.Value; int pageSize = 10; list = list.OrderBy(m => m.TemplateID).Skip((page.Value - 1) * pageSize).Take(pageSize).ToList(); return(View(list)); }