You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/MvcShipping/Controllers/MsWebSiteController.cs

64 lines
1.6 KiB
C#

3 years ago
using System;
using System.Linq;
using System.Web.Mvc;
using DSWeb.MvcShipping.Models.MsMessTip;
using DSWeb.MvcShipping.DAL.MsWebSite;
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 MsWebSiteController : Controller
{
//
// GET:
public ActionResult Index()
{
return View();
}
public ContentResult GetWebSite(string id)
{
var dataList = MsWebSiteDAL.GetWebSite(id);
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 = MsWebSiteDAL.GetTempletURL(gid);
foreach (var listStr in list)
{
id += listStr.GID + "|";
url = listStr.MAINIMGURL;
}
if(id!="")
{
id = id.Substring(0, id.Length - 1);
}
Response.Redirect(url);
return View();
}
#region 参照部分
#endregion
}
}