C# 클래스 KillPrice.Helper.DBHelper

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

공개 메소드들

메소드 설명
GetInstance ( ) : DBHelper
WareClear ( ) : void

清空商品库

WareDelOne ( string rid ) : void

删除单个商品

WareGetAll ( ) : List

获取所有商品信息

WareGetAll ( string typeid ) : List
WareGetOne ( string rid ) : ProductInfo

获取某个商品信息

WareInsert ( ProductInfo _myProduct ) : void

插入商品信息

WarePriceDel ( System.Int64 id ) : void

删除商品价格

WarePriceHistoryGet ( string pid ) : List

获取商品历史价格

WarePriceInsert ( ProductPriceHistory price ) : void
WarePriceInsert ( string pid, double price ) : void

插入商品价格

WarePriceInsert ( string pid, double price, System.DateTime dt ) : void

插入商品价格

WarePriceUpdate ( string pid, double price ) : void

更新商品价格

WareTypeGet ( ) : List
WareUpdate ( ProductInfo _myProduct ) : void

更新商品信息

비공개 메소드들

메소드 설명
DBHelper ( ) : Hank.ComLib
GetDb ( ) : OtDB

建立数据库连接

메소드 상세

GetInstance() 공개 정적인 메소드

public static GetInstance ( ) : DBHelper
리턴 DBHelper

WareClear() 공개 메소드

清空商品库
public WareClear ( ) : void
리턴 void

WareDelOne() 공개 메소드

删除单个商品
public WareDelOne ( string rid ) : void
rid string
리턴 void

WareGetAll() 공개 메소드

获取所有商品信息
public WareGetAll ( ) : List
리턴 List

WareGetAll() 공개 메소드

public WareGetAll ( string typeid ) : List
typeid string
리턴 List

WareGetOne() 공개 메소드

获取某个商品信息
public WareGetOne ( string rid ) : ProductInfo
rid string 商品编号
리턴 WareDealer.Mode.ProductInfo

WareInsert() 공개 메소드

插入商品信息
public WareInsert ( ProductInfo _myProduct ) : void
_myProduct WareDealer.Mode.ProductInfo
리턴 void

WarePriceDel() 공개 메소드

删除商品价格
public WarePriceDel ( System.Int64 id ) : void
id System.Int64 商品序号
리턴 void

WarePriceHistoryGet() 공개 메소드

获取商品历史价格
public WarePriceHistoryGet ( string pid ) : List
pid string
리턴 List

WarePriceInsert() 공개 메소드

public WarePriceInsert ( ProductPriceHistory price ) : void
price WareDealer.Mode.ProductPriceHistory
리턴 void

WarePriceInsert() 공개 메소드

插入商品价格
public WarePriceInsert ( string pid, double price ) : void
pid string 商品编号
price double 商品价格
리턴 void

WarePriceInsert() 공개 메소드

插入商品价格
public WarePriceInsert ( string pid, double price, System.DateTime dt ) : void
pid string 商品编号
price double 商品价格
dt System.DateTime 入库时间
리턴 void

WarePriceUpdate() 공개 메소드

更新商品价格
public WarePriceUpdate ( string pid, double price ) : void
pid string
price double
리턴 void

WareTypeGet() 공개 메소드

public WareTypeGet ( ) : List
리턴 List

WareUpdate() 공개 메소드

更新商品信息
public WareUpdate ( ProductInfo _myProduct ) : void
_myProduct WareDealer.Mode.ProductInfo
리턴 void