电子药箱通讯服务端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

SimpleDrugLotProtocol.cs 641B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Rdh.SocketServer.Client.Models
  7. {
  8. /// <summary>
  9. /// 表示药品和批号信息的协议的类
  10. /// </summary>
  11. public class SimpleDrugLotProtocol : ModelProtocol
  12. {
  13. public string? Barcode { get; set; }
  14. public string? DrugKey { get; set; }
  15. public string? DrugLotCode { get; set; }
  16. public override string GetContent()
  17. {
  18. return Barcode
  19. + AddBlockContent(DrugKey)
  20. + AddBlockContent(DrugLotCode);
  21. }
  22. }
  23. }