C# 클래스 WareDealer.WareService

파일 보기 프로젝트 열기: hanksoft/KillJD 1 사용 예제들

공개 메소드들

메소드 설명
ClearHtml ( string text ) : string

清空文本中HTML标签

GetBatchWarePrice ( List pids ) : void

批量价格获取

GetEvaluateMsg ( string tID, bool needAllComment ) : void

获取评价详细信息

GetImgPath ( string strHtml ) : string

获取图片路径

GetInstance ( ) : WareService

获取实例

GetRemoteImage ( string imgSrc ) : Bitmap

获取远端图片

GetSearchList ( string keyword ) : List
GetTimeStamp ( ) : string

获取时间戳

GetTitleContent ( string strTitle ) : string

解析标题字符

GetTitleContent ( string str, string title ) : string

获取字符中指定标签的值

GetTitleContent ( string str, string title, string attrib ) : string

获取字符中指定标签的值

GetWareInfo ( string url ) : ProductInfo

获取商品扩展信息

GetWareInfoByID ( string pid ) : ProductInfo

根据商品编号获取商品信息

GetWareMobilePriceByID ( string pid ) : double

获取手机专享价

GetWarePriceByID ( string pid ) : double

获取指定商品价格

ReloadImg ( ProductInfo myInfo, bool isSaveToDB ) : void

重载图片

SaveImageFromWeb ( string imgUrl, string path, string fileName ) : int
UpdateWarePriceByID ( string pid ) : void

更新商品信息

UpdateWareinfo ( ProductInfo ware ) : void

更新商品信息

비공개 메소드들

메소드 설명
BatchParse ( string url, WarePriceType src ) : void

批价格解析

GetBatchWareInfo ( ) : ProductInfo

商品批量模式信息获取

GetMinPrice ( double price1, double price2, double price3, double price4 ) : double

冒泡算法求最小非0值

GetMinPriceSrc ( double price1, double price2, double price3, double price4 ) : JdWarePrice
GetSingleWareInfo ( ) : ProductInfo

商品普通模式信息获取

GetWareArea ( ) : void

商品配送区域

GetWareBaseInfo ( string url, bool isNew ) : ProductInfo

获取商品页面具备信息

GetWareEvaluate ( string tID ) : void

获取评价统计数据

GetWarePromotion ( string skuid, string venderID, string shopID, string area, string cat ) : void

获取商品促销信息

GetWareService ( string tID, string venderId, string cat, string dispatch ) : int

获取服务信息

WareService ( ) : WareDealer.Helper

메소드 상세

ClearHtml() 공개 메소드

清空文本中HTML标签
public ClearHtml ( string text ) : string
text string
리턴 string

GetBatchWarePrice() 공개 메소드

批量价格获取
public GetBatchWarePrice ( List pids ) : void
pids List 商品编号集合
리턴 void

GetEvaluateMsg() 공개 메소드

获取评价详细信息
public GetEvaluateMsg ( string tID, bool needAllComment ) : void
tID string
needAllComment bool
리턴 void

GetImgPath() 공개 메소드

获取图片路径
public GetImgPath ( string strHtml ) : string
strHtml string
리턴 string

GetInstance() 공개 정적인 메소드

获取实例
public static GetInstance ( ) : WareService
리턴 WareService

GetRemoteImage() 공개 메소드

获取远端图片
public GetRemoteImage ( string imgSrc ) : Bitmap
imgSrc string 远端图片地址
리턴 System.Drawing.Bitmap

GetSearchList() 공개 메소드

public GetSearchList ( string keyword ) : List
keyword string
리턴 List

GetTimeStamp() 공개 메소드

获取时间戳
public GetTimeStamp ( ) : string
리턴 string

GetTitleContent() 공개 메소드

解析标题字符
public GetTitleContent ( string strTitle ) : string
strTitle string
리턴 string

GetTitleContent() 공개 메소드

获取字符中指定标签的值
public GetTitleContent ( string str, string title ) : string
str string 字符串
title string 标签
리턴 string

GetTitleContent() 공개 메소드

获取字符中指定标签的值
public GetTitleContent ( string str, string title, string attrib ) : string
str string 字符串
title string 标签
attrib string 属性名
리턴 string

GetWareInfo() 공개 메소드

获取商品扩展信息
public GetWareInfo ( string url ) : ProductInfo
url string
리턴 WareDealer.Mode.ProductInfo

GetWareInfoByID() 공개 메소드

根据商品编号获取商品信息
public GetWareInfoByID ( string pid ) : ProductInfo
pid string
리턴 WareDealer.Mode.ProductInfo

GetWareMobilePriceByID() 공개 메소드

获取手机专享价
public GetWareMobilePriceByID ( string pid ) : double
pid string
리턴 double

GetWarePriceByID() 공개 메소드

获取指定商品价格
public GetWarePriceByID ( string pid ) : double
pid string 商品编号
리턴 double

ReloadImg() 공개 메소드

重载图片
public ReloadImg ( ProductInfo myInfo, bool isSaveToDB ) : void
myInfo WareDealer.Mode.ProductInfo
isSaveToDB bool 是否入库
리턴 void

SaveImageFromWeb() 공개 메소드

public SaveImageFromWeb ( string imgUrl, string path, string fileName ) : int
imgUrl string
path string
fileName string
리턴 int

UpdateWarePriceByID() 공개 메소드

更新商品信息
public UpdateWarePriceByID ( string pid ) : void
pid string 商品编号
리턴 void

UpdateWareinfo() 공개 메소드

更新商品信息
public UpdateWareinfo ( ProductInfo ware ) : void
ware WareDealer.Mode.ProductInfo 商品对象
리턴 void