Esempio n. 1
0
 /// <summary>
 /// 获取头部菜单JSON字符串
 /// </summary>
 /// <returns>JSON字符串</returns>
 public ActionResult getHeadMenuJson1111111111111111111111111()
 {
     if (ConfigCls.getMenuShowMode() == "2")
     {
         return(Content(JsonConvert.SerializeObject(new Message(true, getHeadMenuStr2(), "")), "text/html;charset=UTF-8"));
     }
     else
     {
         string PageCode = Request.Params["PageCode"];
         if (PageCode.Substring(0, 3) == "008")
         {
             return(Content(JsonConvert.SerializeObject(new Message(true, getHeadMenuStr3(",008,"), "")), "text/html;charset=UTF-8"));
         }
         if (PageCode.Substring(0, 3) == "009")
         {
             return(Content(JsonConvert.SerializeObject(new Message(true, getHeadMenuStr3(",009,"), "")), "text/html;charset=UTF-8"));
         }
         if (PageCode.Substring(0, 3) == "010")
         {
             return(Content(JsonConvert.SerializeObject(new Message(true, getHeadMenuStr3(",010,"), "")), "text/html;charset=UTF-8"));
         }
         if (PageCode.Substring(0, 3) == "006" || PageCode.Substring(0, 3) == "007")
         {
             return(Content(JsonConvert.SerializeObject(new Message(true, getHeadMenuStr1(",006,007,"), "")), "text/html;charset=UTF-8"));
         }
         return(Content(JsonConvert.SerializeObject(new Message(true, getHeadMenuStr1(",001,002,003,004,005,"), "")), "text/html;charset=UTF-8"));//008,009,010,011,
     }
 }