IBCR83.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System.ComponentModel.DataAnnotations;
  2. using WCS.Entity;
  3. namespace WCS.WorkEngineering.Protocol.BCR
  4. {
  5. /// <summary>
  6. /// 满轮主线读取
  7. /// </summary>
  8. public interface IBCR83 : IProtocol
  9. {
  10. public short index { get; set; }
  11. [StringLength(50)]
  12. public string BcrCode { get; set; }
  13. [StringLength(50)]
  14. public string BcrCode1 { get; set; }
  15. [StringLength(50)]
  16. public string BcrCode2 { get; set; }
  17. [StringLength(50)]
  18. public string BcrCode3 { get; set; }
  19. [StringLength(50)]
  20. public string BcrCode4 { get; set; }
  21. [StringLength(50)]
  22. public string BcrCode5 { get; set; }
  23. [StringLength(50)]
  24. public string BcrCode6 { get; set; }
  25. [StringLength(50)]
  26. public string BcrCode7 { get; set; }
  27. [StringLength(50)]
  28. public string BcrCode8 { get; set; }
  29. [StringLength(50)]
  30. public string BcrCode9 { get; set; }
  31. [StringLength(50)]
  32. public string BcrCode10 { get; set; }
  33. [StringLength(50)]
  34. public string BcrCode11 { get; set; }
  35. /// <summary>
  36. /// 获取历史扫码记录
  37. /// </summary>
  38. /// <returns></returns>
  39. public List<string> GetBcrCodeList()
  40. {
  41. return new List<string>() {
  42. BcrCode1.Trim('\0'),
  43. BcrCode2.Trim('\0'),
  44. BcrCode3.Trim('\0'),
  45. BcrCode4.Trim('\0'),
  46. BcrCode5.Trim('\0'),
  47. BcrCode6.Trim('\0'),
  48. BcrCode7.Trim('\0'),
  49. BcrCode8.Trim('\0'),
  50. BcrCode9.Trim('\0'),
  51. BcrCode10.Trim('\0'),
  52. BcrCode11.Trim('\0') };
  53. }
  54. }
  55. }