C# 클래스 Card.TianSkyXin

MainWindow.xaml 的交互逻辑
상속: ICard, IVerbose
파일 보기 프로젝트 열기: DuBin1988/newsellinggas

공개 메소드들

메소드 설명
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
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 klx, string meterid ) : int

비공개 메소드들

메소드 설명
GetBuyTimes ( int port, int baud, int &buyTimes ) : int
GetCardGas ( int port, int baud, int &cardGas ) : int
GetCardID ( int port, int baud, StringBuilder cardID ) : int
GetErrors ( int ret, StringBuilder &errInfo ) : int
GetUserParam ( int port, int baud, StringBuilder meterFlag, StringBuilder userNo, StringBuilder userType, int &alarmGas, int &overLimit, int &inputValue, int &largeFlowControl ) : int
GetVer ( StringBuilder verInfo ) : int
InitCard ( int port, int baud ) : int
OpenCard ( int port, int baud, StringBuilder meterFlag, StringBuilder userNo, StringBuilder userType, int alarmGas, int overLimit, int inputValue, int LargeFlowControl ) : int
SaleGas ( int port, int baud, int gas, int buyTimes ) : int
SetUserParam ( int port, int baud, StringBuilder meterFlag, StringBuilder userNo, StringBuilder userType, int alarmGas, int overLimit, int inputValue, int largeFlowControl ) : 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

GetError() 공개 메소드

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

OpenCard() 공개 메소드

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

ReadGasCard() 공개 메소드

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