C# Class Card.WeiXing

Inheritance: ICard, IVerbose, INewParameters
Afficher le fichier Open project: DuBin1988/newsellinggas

Méthodes publiques

Méthode Description
CheckGasCard ( short com, int baud ) : int
FormatGasCard ( short com, int baud, string kmm, string kh, string dqdm ) : int
GetError ( int errCode ) : string

根据错误码,该错误码不在GenericService的Errors数组中,数组中的错误,统一处理,此处只返回不在错误列表中的错误信息

OpenCard ( short com, int baud ) : int
ReadGasCard ( short com, int baud, string &kh, int &ql, decimal &money, short &cs, short &bkcs, string &yhh ) : int
SetParam ( Newtonsoft.Json.Linq.JObject json ) : void
Test ( ) : string
WeiXing ( ) : System
WriteGasCard ( short com, int baud, string &kmm, string kh, string dqdm, int ql, int csql, int ccsql, short cs, int ljgql, int bjql, int czsx, int tzed, string sqrq, string cssqrq, int oldprice, int newprice, string sxrq, string sxbj ) : int
WriteNewCard ( short com, int baud, string &kmm, short kzt, string kh, string dqdm, string yhh, string tm, int ql, int csql, int ccsql, short cs, int ljgql, short bkcs, int ljyql, int bjql, int czsx, int tzed, string sqrq, string cssqrq, int oldprice, int newprice, string sxrq, string sxbj, int klx, string meterid ) : int

Private Methods

Méthode Description
ZJWX_GasClearCard ( Int32 lcdev, byte results ) : int
ZJWX_GasExitPort ( Int32 lcdev ) : Int32
ZJWX_GasInitPort ( Int16 iPort, Int32 lBaud, byte results ) : Int32
ZJWX_GasMakeCard ( Int32 lcdev, int iMeterType, int iCardType, byte CardNo, byte results ) : int
ZJWX_GasReadCardInfo ( Int32 lcdev, byte PamaInfo, byte LadderInfo, byte results ) : int
ZJWX_GasWriteCardInfo ( Int32 lcdev, byte PamaInfo, byte LadderInfo, byte results ) : int

Method Details

CheckGasCard() public méthode

public CheckGasCard ( short com, int baud ) : int
com short
baud int
Résultat int

FormatGasCard() public méthode

public FormatGasCard ( short com, int baud, string kmm, string kh, string dqdm ) : int
com short
baud int
kmm string
kh string
dqdm string
Résultat int

GetError() public méthode

根据错误码,该错误码不在GenericService的Errors数组中,数组中的错误,统一处理,此处只返回不在错误列表中的错误信息
public GetError ( int errCode ) : string
errCode int 错误代码
Résultat string

OpenCard() public méthode

public OpenCard ( short com, int baud ) : int
com short
baud int
Résultat int

ReadGasCard() public méthode

public ReadGasCard ( short com, int baud, string &kh, int &ql, decimal &money, short &cs, short &bkcs, string &yhh ) : int
com short
baud int
kh string
ql int
money decimal
cs short
bkcs short
yhh string
Résultat int

SetParam() public méthode

public SetParam ( Newtonsoft.Json.Linq.JObject json ) : void
json Newtonsoft.Json.Linq.JObject
Résultat void

Test() public méthode

public Test ( ) : string
Résultat string

WeiXing() public méthode

public WeiXing ( ) : System
Résultat System

WriteGasCard() public méthode

public WriteGasCard ( short com, int baud, string &kmm, string kh, string dqdm, int ql, int csql, int ccsql, short cs, int ljgql, int bjql, int czsx, int tzed, string sqrq, string cssqrq, int oldprice, int newprice, string sxrq, string sxbj ) : int
com short
baud int
kmm string
kh string
dqdm string
ql int
csql int
ccsql int
cs short
ljgql int
bjql int
czsx int
tzed int
sqrq string
cssqrq string
oldprice int
newprice int
sxrq string
sxbj string
Résultat int

WriteNewCard() public méthode

public WriteNewCard ( short com, int baud, string &kmm, short kzt, string kh, string dqdm, string yhh, string tm, int ql, int csql, int ccsql, short cs, int ljgql, short bkcs, int ljyql, int bjql, int czsx, int tzed, string sqrq, string cssqrq, int oldprice, int newprice, string sxrq, string sxbj, int klx, string meterid ) : int
com short
baud int
kmm string
kzt short
kh string
dqdm string
yhh string
tm string
ql int
csql int
ccsql int
cs short
ljgql int
bkcs short
ljyql int
bjql int
czsx int
tzed int
sqrq string
cssqrq string
oldprice int
newprice int
sxrq string
sxbj string
klx int
meterid string
Résultat int