using Edge.Core.Parser.BinaryParser.Attributes; using System; using System.Collections.Generic; using System.Text; namespace Censtar_31064V105OrV106_Pump.MessageEntity.Outgoing { public class RegistrationOfShiftTransferRequest : MessageBase { public RegistrationOfShiftTransferRequest(int staffId) { if (staffId < 0 || staffId > 9999) throw new ArgumentOutOfRangeException("staffId must >=0 and <=9999"); base.Cmd = 0x32; this.员工号 = staffId; } [Format(2, EncodingType.BCD, 0)] public int 员工号 { get; set; } } }