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 { /// /// test 的摘要说明 /// [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> GetGoodsInfoList(int PageIndex, int PageSize, string Sort) { var obj = new API_CountryService(); JsonModel> resultModel = new JsonModel>(); 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; } } }