C# Класс Card.YuXiangRC

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

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

Метод Описание
CheckGasCard ( Int16 com, Int32 baud ) : int

判卡

FormatGasCard ( Int16 com, Int32 baud, string kmm, string kh, string dqdm ) : 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

写新卡

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

Метод Описание
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

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

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

判卡
public CheckGasCard ( Int16 com, Int32 baud ) : int
com System.Int16 串口号,0代表串口1
baud System.Int32
Результат int

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

格式化卡
public FormatGasCard ( Int16 com, Int32 baud, string kmm, string kh, string dqdm ) : int
com System.Int16 串口号,0代表串口1
baud System.Int32
kmm string 卡密码
kh string 卡号
dqdm string 地区代码
Результат int

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

读卡
public ReadGasCard ( short com, int baud, string &kh, int &ql, decimal &money, short &cs, short &bkcs, string &dm ) : int
com short 串口号,0代表串口1
baud int
kh string 卡号
ql int 气量
money decimal 金额
cs short 次数
bkcs short 补卡次数
dm 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 串口号,0代表串口1
baud int
kmm string 卡密码
kh string 卡号
dqdm string 地区代码
ql int 气量,小于或等于0,表示退气,大于0表示购气。
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 串口号,0代表串口1
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