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.
142 lines
3.5 KiB
C#
142 lines
3.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Services;
|
|
using TradeModel;
|
|
using TradeManageNew;
|
|
using TradeData;
|
|
|
|
namespace TradeManage
|
|
{
|
|
/// <summary>
|
|
/// BaseDataNew 的摘要说明
|
|
/// </summary>
|
|
[WebService(Namespace = "http://tempuri.org/")]
|
|
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
|
[System.ComponentModel.ToolboxItem(false)]
|
|
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
|
|
[System.Web.Script.Services.ScriptService]
|
|
public class BaseDataNew : System.Web.Services.WebService
|
|
{
|
|
|
|
[WebMethod]
|
|
public string HelloWorld()
|
|
{
|
|
return "Hello World";
|
|
}
|
|
|
|
#region 平台店铺
|
|
[WebMethod(EnableSession = true)]
|
|
public List<JC_Shop> GetShopList(int PlatType, int CompanyId)
|
|
{
|
|
PagesNew.Login(this.Session);
|
|
|
|
|
|
BaseService obj = new BaseService();
|
|
var list = obj.GetShopList(CompanyId, PlatType);
|
|
|
|
|
|
|
|
return list;
|
|
|
|
}
|
|
#endregion
|
|
#region 读取物流渠道
|
|
[WebMethod(EnableSession = true)]
|
|
public List<JC_ExpressDetail> GetExpressPostList(int LogisticsId, int CompanyId)
|
|
{
|
|
PagesNew.Login(this.Session);
|
|
|
|
|
|
BaseService obj = new BaseService();
|
|
var list = DataNew.GetExpressPostList(CompanyId, LogisticsId);
|
|
|
|
|
|
|
|
return list;
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region 读取平台
|
|
[WebMethod(EnableSession = true)]
|
|
public List<JC_BaseCodeDetail> GetPlatBaseCode(int CompanyID, string KeyName)
|
|
{
|
|
PagesNew.Login(this.Session);
|
|
if (CompanyID == 0) CompanyID = Convert.ToInt32(Session["CompanyId"]);
|
|
return DataNew.GetPlatBaseCode(CompanyID, KeyName);
|
|
}
|
|
#endregion
|
|
|
|
|
|
#region 平台店铺
|
|
[WebMethod(EnableSession = true)]
|
|
public List<JC_Shop> GetShopListForTM(int PlatType)
|
|
{
|
|
PagesNew.Login(this.Session);
|
|
int UserId = Convert.ToInt32(Session["UserId"]);
|
|
|
|
string UserType = Convert.ToString(Session["UserType"]);
|
|
string AllShop = Convert.ToString(Session["AllShop"]);
|
|
BaseService obj = new BaseService();
|
|
var list = DataNew.GetShopListUser(UserId, PlatType, UserType, AllShop);
|
|
|
|
|
|
|
|
return list;
|
|
|
|
}
|
|
#endregion
|
|
|
|
|
|
#region 平台店铺主管
|
|
[WebMethod(EnableSession = true)]
|
|
public List<JC_Shop> GetShopAllList(int PlatType)
|
|
{
|
|
Pages.Login(this.Session);
|
|
int UserId = Convert.ToInt32(Session["UserId"]);
|
|
|
|
|
|
var list = DataNew.GetShopListFPage(UserId, PlatType, "M");
|
|
|
|
|
|
|
|
return list;
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region 平台店铺
|
|
[WebMethod(EnableSession = true)]
|
|
public List<JC_Shop> GetShopAllListNew(int PlatType, int CompanyId)
|
|
{
|
|
PagesNew.Login(this.Session);
|
|
|
|
|
|
BaseService obj = new BaseService();
|
|
var list = DataNew.GetShopAllList(CompanyId, PlatType);
|
|
|
|
|
|
|
|
return list;
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region
|
|
[WebMethod(EnableSession = true)]
|
|
public JC_ShopDataNew GetListShopDayFee(int ShopId)
|
|
{
|
|
PagesNew.Login(this.Session);
|
|
var model = DataNew.GetListShopDayFee(ShopId);
|
|
|
|
|
|
|
|
return model;
|
|
|
|
}
|
|
#endregion
|
|
}
|
|
}
|