using System; using System.Linq; using System.Web.Mvc; using DSWeb.MvcShipping.Models.MsMessTip; using DSWeb.MvcShipping.DAL.MsMessTip; using DSWeb.MvcShipping.Helper; using DSWeb.MvcShipping.Comm.Cookie; using System.Collections.Generic; using HcUtility.Comm; using HcUtility.Core; namespace DSWeb.MvcShipping.Controllers { [JsonRequestBehavior] public class MsMessTipController : Controller { // // GET: public ActionResult Index() { return View(); } public ContentResult GetMessTip() { var dataList = MsMessTipDAL.GetMessTip(Session["USERID"].ToString()); var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = dataList.Count, data = dataList.ToList() });// return new ContentResult() { Content = json }; } // // GET: / public ActionResult LayShow() { string id = ""; string url = ""; string gid = Request.QueryString["gid"];//模板ID //string id = Request.QueryString["id"];//模块ID //根据模板gid判断加载的页面templet url var list = MsMessTipDAL.GetTempletURL(gid, Session["COMPANYID"].ToString()); foreach (var listStr in list) { id += listStr.GID + "|"; url = listStr.LINKURL; } if (id.Length > 0) { id = id.Substring(0, id.Length - 1); } Response.Redirect("../MsTemplet/" + url + "?id=" + id + "&cid=" + Session["COMPANYID"].ToString() + "&tid=" + gid); return View(); } #region 参照部分 #endregion } }