C# Class WareDealer.WareService

Afficher le fichier Open project: hanksoft/KillJD Class Usage Examples

Méthodes publiques

Méthode Description
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

更新商品信息

Private Methods

Méthode Description
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

Method Details

ClearHtml() public méthode

清空文本中HTML标签
public ClearHtml ( string text ) : string
text string
Résultat string

GetBatchWarePrice() public méthode

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

GetEvaluateMsg() public méthode

获取评价详细信息
public GetEvaluateMsg ( string tID, bool needAllComment ) : void
tID string
needAllComment bool
Résultat void

GetImgPath() public méthode

获取图片路径
public GetImgPath ( string strHtml ) : string
strHtml string
Résultat string

GetInstance() public static méthode

获取实例
public static GetInstance ( ) : WareService
Résultat WareService

GetRemoteImage() public méthode

获取远端图片
public GetRemoteImage ( string imgSrc ) : Bitmap
imgSrc string 远端图片地址
Résultat System.Drawing.Bitmap

GetSearchList() public méthode

public GetSearchList ( string keyword ) : List
keyword string
Résultat List

GetTimeStamp() public méthode

获取时间戳
public GetTimeStamp ( ) : string
Résultat string

GetTitleContent() public méthode

解析标题字符
public GetTitleContent ( string strTitle ) : string
strTitle string
Résultat string

GetTitleContent() public méthode

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

GetTitleContent() public méthode

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

GetWareInfo() public méthode

获取商品扩展信息
public GetWareInfo ( string url ) : ProductInfo
url string
Résultat WareDealer.Mode.ProductInfo

GetWareInfoByID() public méthode

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

GetWareMobilePriceByID() public méthode

获取手机专享价
public GetWareMobilePriceByID ( string pid ) : double
pid string
Résultat double

GetWarePriceByID() public méthode

获取指定商品价格
public GetWarePriceByID ( string pid ) : double
pid string 商品编号
Résultat double

ReloadImg() public méthode

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

SaveImageFromWeb() public méthode

public SaveImageFromWeb ( string imgUrl, string path, string fileName ) : int
imgUrl string
path string
fileName string
Résultat int

UpdateWarePriceByID() public méthode

更新商品信息
public UpdateWarePriceByID ( string pid ) : void
pid string 商品编号
Résultat void

UpdateWareinfo() public méthode

更新商品信息
public UpdateWareinfo ( ProductInfo ware ) : void
ware WareDealer.Mode.ProductInfo 商品对象
Résultat void