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.
54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Services;
|
|
using NetLibrary;
|
|
using NetLibrary.Data;
|
|
using TradeData;
|
|
using TradeModel;
|
|
using System.Data;
|
|
|
|
namespace TradeManage.test
|
|
{
|
|
/// <summary>
|
|
/// test 的摘要说明
|
|
/// </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 test : System.Web.Services.WebService
|
|
{
|
|
|
|
[WebMethod]
|
|
public string HelloWorld()
|
|
{
|
|
return "Hello World";
|
|
}
|
|
[WebMethod(EnableSession = true)]
|
|
public JsonModel<List<API_Country>> GetGoodsInfoList(int PageIndex, int PageSize, string Sort)
|
|
{
|
|
|
|
var obj = new API_CountryService();
|
|
|
|
JsonModel<List<API_Country>> resultModel = new JsonModel<List<API_Country>>();
|
|
|
|
int RowCount = 0;
|
|
RefParameterCollection Param = new RefParameterCollection();
|
|
|
|
//if (SortId > 0)
|
|
// Param.Add("SortId", "=", SortId, DbType.Int32);
|
|
|
|
resultModel.DataSource = obj.GetListAPI_Country(Param, PageIndex, PageSize, Sort, out RowCount);
|
|
resultModel.RowCount = RowCount;
|
|
|
|
return resultModel;
|
|
|
|
}
|
|
}
|
|
|
|
}
|