Exemple #1
0
 public ActionResult CompanyManagerWelcome(DateTime?SDate = null, DateTime?EDate = null)
 {
     ViewBag.isAdmin = false;
     if (!string.IsNullOrEmpty(Request.QueryString["companyIds"]))
     {
         var replaceList = new List <string>()
         {
             "一", "二", "三", "四", "五", "六", "七", "八", "九"
         };
         ViewBag.isAdmin = true;
         var companys = Request.QueryString["companyIds"];
         ViewBag.companys = companys;
         var companyName = companyRepo.GetCompanysName(companys, ",");
         replaceList.ForEach(o => {
             companyName = companyName.Replace(o, "第" + o);
         });
         companyName        += "分公司";
         ViewBag.companyName = companyName;
     }
     return(View());
 }