|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.Services;
|
|
|
|
|
using TradeModel;
|
|
|
|
|
using TradeData;
|
|
|
|
|
|
|
|
|
|
namespace TradeManageNew
|
|
|
|
|
{
|
|
|
|
|
/// <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 DT_DefaultData2 GetDefaultDataForTM3()
|
|
|
|
|
{
|
|
|
|
|
PagesNew.Login(this.Session);
|
|
|
|
|
int CompanyId = Convert.ToInt32(Session["CompanyId"]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BaseService obj = new BaseService();
|
|
|
|
|
|
|
|
|
|
var model = DataNew.GetDefaultDataForTM3(CompanyId);
|
|
|
|
|
|
|
|
|
|
//if (model != null)
|
|
|
|
|
//{
|
|
|
|
|
// model.AddPrice = model.TotalPrice * MRate;
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
return model;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
#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 JC_ShopDataNew GetListShopDayFee(int ShopId)
|
|
|
|
|
{
|
|
|
|
|
PagesNew.Login(this.Session);
|
|
|
|
|
var model = DataNew.GetListShopDayFee(ShopId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return model;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 平台店铺主管
|
|
|
|
|
[WebMethod(EnableSession = true)]
|
|
|
|
|
public List<JC_Shop> GetShopAllList(int PlatType)
|
|
|
|
|
{
|
|
|
|
|
PagesNew.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> GetShopList(int PlatType)
|
|
|
|
|
{
|
|
|
|
|
PagesNew.Login(this.Session);
|
|
|
|
|
int CompanyId = Convert.ToInt32(Session["CompanyId"]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BaseService obj = new BaseService();
|
|
|
|
|
var list = obj.GetShopList(CompanyId, PlatType);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
}
|