コード例 #1
0
        public ActionResult AboutUs()
        {
            ViewBag.Menu = "AU";
            MEnterprise Menterprise = BLLMEnterprise.GetMEnterprise();

            ViewBag.MInfo = Menterprise;
            return(View());
        }
コード例 #2
0
        public ActionResult ManagementBrief()
        {
            ViewBag.Menu = "MB";
            string brief = BLLMEnterprise.GetMEnterprise().MEnterpriseBrief;

            ViewBag.BriefTxt = brief;
            return(View());
        }
コード例 #3
0
        public ActionResult MEnterpriseInfo()
        {
            ViewBag.MenuGroup = "SI";
            ViewBag.MenuTitle = "系统说明";
            MEnterprise menterprise = BLLMEnterprise.GetMEnterprise();

            if (menterprise == null)
            {
                menterprise = new MEnterprise();
            }
            return(View(menterprise));
        }
コード例 #4
0
        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());
        }
コード例 #5
0
        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));
        }
コード例 #6
0
        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));
        }