SampleDetail.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using Panuon.UI.Silver.Core;
  2. using System;
  3. using System.ComponentModel;
  4. namespace SHJX.Service.Model.Control
  5. {
  6. public class SampleDetail
  7. {
  8. [ReadOnlyColumn]
  9. [ColumnWidth("1*")]
  10. [Description("节点名称")]
  11. [DisplayName("节点名称")]
  12. public string NodeName { get; set; }
  13. [ColumnWidth("1*")]
  14. [Description("详细描述")]
  15. [DisplayName("详细描述")]
  16. public string Detail { get; set; }
  17. [ColumnWidth("1*")]
  18. [Description("样品体积")]
  19. [DisplayName("样品体积")]
  20. public double SampleVolume { get; set; }
  21. [ColumnWidth("1*")]
  22. [Description("样品倍数")]
  23. [DisplayName("样品倍数")]
  24. public double Multiple { get; set; }
  25. [ColumnWidth("1*")]
  26. [Description("硫酸汞")]
  27. [DisplayName("硫酸汞")]
  28. public double HgSO4 { get; set; }
  29. [ReadOnlyColumn]
  30. [ColumnWidth("1*")]
  31. [Description("样品类型")]
  32. [DisplayName("样品类型")]
  33. public string SampleType { get; set; }
  34. [ReadOnlyColumn]
  35. [ColumnWidth("1*")]
  36. [Description("样品浓度")]
  37. [DisplayName("样品浓度")]
  38. public string Concentration { get; set; }
  39. [ColumnWidth("1*")]
  40. [Description("快速滴定")]
  41. [DisplayName("快速滴定")]
  42. public bool QuickTitration { get; set; }
  43. [ColumnWidth("1*")]
  44. [IgnoreColumn]
  45. [DefaultValue(true)]
  46. [Description("任务下发")]
  47. [DisplayName("任务下发")]
  48. public bool WhetherSend { get; set; }
  49. [IgnoreColumn]
  50. [DefaultValue(false)]
  51. [Description("下发成功")]
  52. public bool TaskSendOk { get; set; }
  53. [IgnoreColumn]
  54. [DefaultValue(false)]
  55. [Description("是否完成")]
  56. public bool IsFinish { get; set; } = false;
  57. public SampleDetail()
  58. {
  59. Detail = DateTime.Now.ToString("MMddmmss");
  60. SampleVolume = 10;
  61. Multiple = 1;
  62. HgSO4 = 2;
  63. }
  64. }
  65. }