RegistrationOfShiftTransferRequest.cs 631 B

123456789101112131415161718192021
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Censtar_31064V105OrV106_Pump.MessageEntity.Outgoing
  6. {
  7. public class RegistrationOfShiftTransferRequest : MessageBase
  8. {
  9. public RegistrationOfShiftTransferRequest(int staffId)
  10. {
  11. if (staffId < 0 || staffId > 9999)
  12. throw new ArgumentOutOfRangeException("staffId must >=0 and <=9999");
  13. base.Cmd = 0x32;
  14. this.员工号 = staffId;
  15. }
  16. [Format(2, EncodingType.BCD, 0)]
  17. public int 员工号 { get; set; }
  18. }
  19. }