C# Class WareDealer.WareService

Mostrar archivo Open project: hanksoft/KillJD Class Usage Examples

Public Methods

Method 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

Method 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 method

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

GetBatchWarePrice() public method

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

GetEvaluateMsg() public method

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

GetImgPath() public method

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

GetInstance() public static method

获取实例
public static GetInstance ( ) : WareService
return WareService

GetRemoteImage() public method

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

GetSearchList() public method

public GetSearchList ( string keyword ) : List
keyword string
return List

GetTimeStamp() public method

获取时间戳
public GetTimeStamp ( ) : string
return string

GetTitleContent() public method

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

GetTitleContent() public method

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

GetTitleContent() public method

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

GetWareInfo() public method

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

GetWareInfoByID() public method

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

GetWareMobilePriceByID() public method

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

GetWarePriceByID() public method

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

ReloadImg() public method

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

SaveImageFromWeb() public method

public SaveImageFromWeb ( string imgUrl, string path, string fileName ) : int
imgUrl string
path string
fileName string
return int

UpdateWarePriceByID() public method

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

UpdateWareinfo() public method

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