C# 클래스 Card.CangNan

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

공개 메소드들

메소드 설명
CangNan ( ) : Com.Aote.Logs
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 ( 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 &dqdm ) : 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

비공개 메소드들

메소드 설명
ClearCard ( Int32 port, Int32 baud, Int32 &err ) : int
ClearCard ( int ReaderType, int port, int baud, int &err ) : int
InitCard ( Int32 port, Int32 baud, Int32 &err ) : int
IsCNCard ( int ReaderType, Int32 port, Int32 baud, StringBuilder &meterytpe, int &cardtype, Int32 &err ) : int
MadeCard ( int ReaderType, int port, int baud, StringBuilder AreaCode, StringBuilder CardId, StringBuilder UserId, int SaleWay, int CardMoney, int CardGasCount, int CardCount, StringBuilder MeterType, int AlarmValue, int InputValue, int OverValue, double Price, StringBuilder PriceStates, StringBuilder TimeTypeState, int StepCycle, StringBuilder PriceStartTime, int StepUseSpare1, double StepPrice1, int StepUseSpare2, double StepPrice2, StringBuilder AdjustTime1, int Duration1, double DurationPrice1, StringBuilder AdjustTime2, int Duration2, double DurationPrice2, StringBuilder PriceVersion, int opCode, int &err ) : int
ReadCard ( int ReaderType, int port, int baud, StringBuilder &AreaCode, StringBuilder &CardId, StringBuilder &UserId, int &SaleWay, long &CardMoney, int &CardGasCount, long &UsedMoney, long &BoughtMoney, long &MeterMoney, int &MeterGasCount, StringBuilder &CardCount, StringBuilder &MeterType, int &CardType, long &AlarmValue, long &InputValue, long &OverValue, double &Price, StringBuilder &PriceStates, StringBuilder &TimeTypeState, int &StepCycle, StringBuilder &PriceStartTime, long &StepUseSpare1, double &StepPrice1, long &StepUseSpare2, double &StepPrice2, StringBuilder &AdjustTime1, int &Duration1, double &DurationPrice1, StringBuilder &AdjustTime2, int &Duration2, double &DurationPrice2, StringBuilder &PriceVersion, int &err ) : int
WriteCard ( int ReaderType, int port, int baud, StringBuilder AreaCode, StringBuilder CardId, StringBuilder UserId, int SaleWay, int CardMoney, int CardGasCount, int CardCount, StringBuilder MeterType, int AlarmValue, int InputValue, int OverValue, double Price, StringBuilder PriceStates, StringBuilder TimeTypeState, int StepCycle, StringBuilder PriceStartTime, int StepUseSpare1, double StepPrice1, int StepUseSpare2, double StepPrice2, StringBuilder AdjustTime1, int Duration1, double DurationPrice1, StringBuilder AdjustTime2, int Duration2, double DurationPrice2, StringBuilder PriceVersion, int opCode, 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

메소드 상세

CangNan() 공개 메소드

public CangNan ( ) : Com.Aote.Logs
리턴 Com.Aote.Logs

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 ( 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, Int16 &bkcs, string &yhh ) : int
com short
baud int
kh string
ql int
money decimal
cs short
bkcs System.Int16
yhh string
리턴 int

ReadGasCard() 공개 메소드

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