电子药箱通讯服务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ResponseLendDrugProtocol.cs 933B

6 mesi fa
123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.Specialized;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Rdh.SocketServer.Client.Models
  8. {
  9. /// <summary>
  10. /// 表示回传借药信息的数据协议的类
  11. /// </summary>
  12. public class ResponseLendDrugProtocol : EleMedKitProtocol
  13. {
  14. public ResponseLendDrugProtocol()
  15. {
  16. this.Command = EleMedKitCommand.ResponseDrugLend;
  17. CountFlag = 1.ToString();
  18. }
  19. public List<SimpleDrugLotProtocol>? ListLendResult { get; set; }
  20. public string LineEnd { get => EleMedKitProtocolFlags.LineSpiltor; }
  21. public override string GetContent()
  22. {
  23. return base.GetContent()
  24. + AddList<SimpleDrugLotProtocol>(ListLendResult)
  25. + AddLineContent(LineEnd)
  26. + AddLineContent(CountFlag);
  27. }
  28. }
  29. }