Song.Site/API/Product.asmx.cs

(完整代码) 1KB

using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;

using WeiSha.Common;

using Song.ServiceInterfaces;
using Song.Entities;

namespace Song.Site.SOAP
{
    /// <summary>
    /// Product 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class Product : System.Web.Services.WebService
    {

        [WebMethod]
        //检索产品
        public Song.Entities.Product[] GetProduct(int ps, string searTxt)
        {
            //产品所有资源的路径
            string resPath = Upload.Get["Product"].Virtual;
            Song.Entities.Organization org = Business.Do<IOrganization>().OrganCurrent();
            Song.Entities.Product[] pds = Business.Do<IContents>().ProductCount(org.Org_ID, 0, 0, false, true, "");
            foreach (Song.Entities.Product entity in pds)
            {
                //将文章内容与简介去除,以方便数据传输
                entity.Pd_Details = "";
                entity.Pd_Logo = resPath + entity.Pd_Logo;
                entity.Pd_LogoSmall = resPath + entity.Pd_LogoSmall;
                entity.Pd_QrCode = resPath + entity.Pd_QrCode;
            }
            return pds;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。