C# 클래스 Card.XianFeng

상속: ICard
파일 보기 프로젝트 열기: DuBin1988/newsellinggas

공개 메소드들

메소드 설명
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
GetError ( int errCode ) : string

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

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

写新卡

XianFeng ( ) : System

비공개 메소드들

메소드 설명
FormatCard ( ) : int
FormatCard ( int com ) : int
ReadCard ( byte &cardNo, int BuyGasNum, int UpdateFlag ) : int
ReadCard ( int com, byte &cardNo, int BuyGasNum, int UpdateFlag ) : int
ReadCompany ( ) : int
ReadCompany ( int com ) : int
StaticCheckGasCard ( Int16 com, Int32 baut ) : int
StaticFormatGasCard ( Int16 com, Int32 baut, byte kmm, Int16 klx, byte kh, byte dqdm ) : 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
WriteUser ( byte cardNo, byte OldcardNo, int BuyGasNum, int UpdateFlag ) : int
WriteUser ( int com, byte cardNo, byte OldcardNo, int BuyGasNum, int UpdateFlag ) : int

메소드 상세

CheckGasCard() 공개 메소드

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

CheckGasCard() 공개 메소드

public CheckGasCard ( short com, int baud ) : int
com short
baud int
리턴 int

FormatGasCard() 공개 메소드

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
리턴 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

GetError() 공개 메소드

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

OpenCard() 공개 메소드

public OpenCard ( Int16 com, Int32 baud ) : int
com System.Int16
baud System.Int32
리턴 int

ReadGasCard() 공개 메소드

public ReadGasCard ( short com, int baud, string &kh, int &ql, decimal &money, short &cs ) : int
com short
baud int
kh string
ql int
money decimal
cs short
리턴 int

ReadGasCard() 공개 메소드

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
리턴 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

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 klx, string meterid ) : 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 生效标记
klx int
meterid string
리턴 int

XianFeng() 공개 메소드

public XianFeng ( ) : System
리턴 System