C# Класс Card.CangNanRZ

Наследование: ICard
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckGasCard ( short com, int baud ) : 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
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

Приватные методы

Метод Описание
ClearCard ( Int32 port, Int32 baud, Int32 &err ) : int
InitCard ( Int32 port, Int32 baud, Int32 &err ) : int
ReadCard1 ( int port, int baud, StringBuilder &CardId, long &CardMoney, long &UsedMoney, long &BoughtMoney, int &CardGasCount, StringBuilder &MeterType, int &CardType, long &AlarmValue, long &InputValue, long &OverValue, string &CardCount, StringBuilder &AreaCode, StringBuilder &Regist, double &Price, int &err ) : int
WriteCard ( int Port, int Baud, string CardId, int CardSpare, short CardCount, double Price, string Regist, int AlarmValue, int InputValue, int OverValue, int BuyGasCount, string MeterType, int CardType, string Remarks, int &Err, int OPCode ) : int
readCard ( int PortNo, int Baud, byte &cardNO, int &CardSpare, int &UsedGas, int &BoughtGas, int &GasCount, byte MeterType, int &CardType, int &AlarmValue, System.Int64 &InputValue, int &OverValue, byte &CardCount, byte Remarks, byte Regist, double &Price, int &Err ) : int

Описание методов

CheckGasCard() публичный Метод

public CheckGasCard ( short com, int baud ) : int
com short
baud int
Результат int

FormatGasCard() публичный Метод

public FormatGasCard ( short com, int baud, string kmm, string kh, string dqdm ) : int
com short
baud int
kmm string
kh string
dqdm string
Результат int

OpenCard() публичный Метод

航天卡实现,其他不用
public OpenCard ( Int16 com, Int32 baud ) : int
com System.Int16 串口号,0代表串口1
baud System.Int32
Результат int

ReadGasCard() публичный Метод

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
Результат int

Test() публичный Метод

public Test ( ) : string
Результат string

WriteGasCard() публичный Метод

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
Результат int

WriteNewCard() публичный Метод

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
Результат int