C# Class Card.JinKaMY

Inheritance: ICard
Mostra file Open project: DuBin1988/newsellinggas

Public Methods

Method Description
CheckGasCard ( Int16 com, Int32 baud ) : int
CheckGasCard ( short com, int baud ) : int
FormatGasCard ( Int16 com, Int32 baud, string kmm, string kh, string dqdm ) : int
FormatGasCard ( short com, int baud, string kmm, string kh, string dqdm ) : int
OpenCard ( Int16 com, Int32 baud ) : int

航天卡实现,其他不用

ReadGasCard ( short com, int baud, string &kh, int &ql, decimal &money, short &cs, Int16 &bkcs, string &yhh ) : int
ReadGasCard ( short com, int baud, string &kh, int &ql, decimal &money, short &cs, short &bkcs, string &dm ) : int
Test ( ) : string
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
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

Method Description
Gold_Buycard ( int com, int baud, byte kh, int ql, int cs ) : int
Gold_Formatcard ( int com, int baud, byte kh ) : int
Gold_Readcard ( int com, int baud, byte kh, int &ql, int &cs, int &type ) : int
Gold_Writecard ( int com, int baud, byte kh, int ql, int cs, int type ) : int
ReadCompany ( ) : int
StaticBuyGas ( Int32 port, Int32 baud, byte CardNum, Int32 GasNum, Int32 Times ) : int
StaticCheckGasCard ( Int16 com, Int32 baut ) : int
StaticCleanMoney ( Int32 port, Int32 baud, byte CardNum ) : int
StaticClearCard ( Int32 port, Int32 baud, byte CardNum ) : int
StaticError_message ( Int32 ErrorCode, byte ErrorMsg ) : void
StaticFormatGasCard ( Int16 com, Int32 baut, byte kmm, Int16 klx, byte kh, byte dqdm ) : int
StaticIsOurCard ( Int32 port, Int32 baud ) : int
StaticReadCard ( Int32 port, Int32 baud, byte CardNum, Int32 GasNum, Int32 Times, Int32 MeterType ) : int
StaticReadGasCard ( Int16 com, Int32 baut, byte kmm, Int16 &klx, Int16 &kzt, byte kh, byte dqdm, byte yhh, byte tm, Int32 &ql, Int16 &cs, Int32 &ljgql, Int16 &bkcs, Int32 &ljyql, Int32 &syql, Int32 &bjql, Int32 &czsx, Int32 &tzed, byte sqrq, Int32 &oldprice, Int32 &newprice, byte sxrq, byte sxbj ) : int
StaticWriteGasCard ( Int16 com, Int32 baut, byte kmm, Int16 klx, byte kh, byte dqdm, Int32 ql, Int16 cs, Int32 ljgql, Int32 bjql, Int32 czsx, Int32 tzed, byte sqrq, Int32 &oldprice, Int32 &newprice, byte sxrq, byte sxbj ) : int
StaticWriteNewCard ( Int16 com, Int32 baut, byte kmm, Int16 klx, Int16 kzt, byte kh, byte dqdm, byte yhh, byte tm, Int32 ql, Int16 cs, Int32 ljgql, Int16 bkcs, Int32 ljyql, Int32 bjql, Int32 czsx, Int32 tzed, byte sqrq, Int32 &oldprice, Int32 &newprice, byte sxrq, byte sxbj ) : int
StaticWriteUserCard ( Int32 port, Int32 baud, byte CardNum, Int32 GasNum, Int32 Times, Int32 MeterType ) : int

Method Details

CheckGasCard() public method

public CheckGasCard ( Int16 com, Int32 baud ) : int
com System.Int16
baud System.Int32
return int

CheckGasCard() public method

public CheckGasCard ( short com, int baud ) : int
com short
baud int
return int

FormatGasCard() public method

public FormatGasCard ( Int16 com, Int32 baud, string kmm, string kh, string dqdm ) : int
com System.Int16
baud System.Int32
kmm string
kh string
dqdm string
return int

FormatGasCard() public method

public FormatGasCard ( short com, int baud, string kmm, string kh, string dqdm ) : int
com short
baud int
kmm string
kh string
dqdm string
return int

OpenCard() public method

航天卡实现,其他不用
public OpenCard ( Int16 com, Int32 baud ) : int
com System.Int16 串口号,0代表串口1
baud System.Int32
return int

ReadGasCard() public method

public ReadGasCard ( short com, int baud, string &kh, int &ql, decimal &money, short &cs, Int16 &bkcs, string &yhh ) : int
com short
baud int
kh string
ql int
money decimal
cs short
bkcs System.Int16
yhh string
return int

ReadGasCard() public method

public ReadGasCard ( short com, int baud, string &kh, int &ql, decimal &money, short &cs, short &bkcs, string &dm ) : int
com short
baud int
kh string
ql int
money decimal
cs short
bkcs short
dm string
return int

Test() public method

public Test ( ) : string
return string

WriteGasCard() public method

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
return int

WriteNewCard() public method

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
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
return int

WriteNewCard() public method

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
return int