// 构造函数 public SCStatus_99() { this.CommandIdentifier = "99"; //==前面的定长字段 //<status code><max print width><protocol version> //1-char 3-char 4-char FixedLengthFields.Add(new FixedLengthField(SIPConst.F_StatusCode, 1)); // 1-char, fixed-length required field: 0 or 1 or 2 FixedLengthFields.Add(new FixedLengthField(SIPConst.F_MaxPrintWidth, 3)); // 3-char, fixed-length required field FixedLengthFields.Add(new FixedLengthField(SIPConst.F_ProtocolVersion, 4)); // 4-char, fixed-length required field: x.xx // 校验码相关,todo this.VariableLengthFields.Add(new VariableLengthField(SIPConst.F_AY_SequenceNumber, false)); }
// 构造函数 public Login_93() { this.CommandIdentifier = "93"; //==前面的定长字段 //<UID algorithm><PWD algorithm> //1-char 1-char FixedLengthFields.Add(new FixedLengthField(SIPConst.F_UIDAlgorithm, 1)); FixedLengthFields.Add(new FixedLengthField(SIPConst.F_PWDAlgorithm, 1)); // <login user id><login password><location code> // CN CO CP this.VariableLengthFields.Add(new VariableLengthField(SIPConst.F_CN_LoginUserId, true)); this.VariableLengthFields.Add(new VariableLengthField(SIPConst.F_CO_LoginPassword, true)); this.VariableLengthFields.Add(new VariableLengthField(SIPConst.F_CP_LocationCode, false)); // 校验码相关,todo this.VariableLengthFields.Add(new VariableLengthField(SIPConst.F_AY_SequenceNumber, false)); }