ExamSample.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. namespace YBEE.EQM.Core;
  8. /// <summary>
  9. /// 抽样方案
  10. /// </summary>
  11. [Comment("抽样方案")]
  12. public partial class ExamSample : IEntity
  13. {
  14. /// <summary>
  15. /// 主键
  16. /// </summary>
  17. [Comment("主键")]
  18. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  19. public int Id { get; set; }
  20. /// <summary>
  21. /// 监测计划ID
  22. /// </summary>
  23. [Comment("监测计划ID")]
  24. [Required]
  25. public int ExamPlanId { get; set; }
  26. /// <summary>
  27. /// 序,同一监测从1开始计数
  28. /// </summary>
  29. [Description("序,同一监测从1开始计数")]
  30. [Required]
  31. public int Sequence { get; set; } = 1;
  32. /// <summary>
  33. /// 名称
  34. /// </summary>
  35. [Comment("名称")]
  36. [Required, StringLength(100)]
  37. public string Name { get; set; }
  38. /// <summary>
  39. /// 全称
  40. /// </summary>
  41. [Comment("全称")]
  42. [Required, StringLength(200)]
  43. public string FullName { get; set; }
  44. /// <summary>
  45. /// 简称
  46. /// </summary>
  47. [Required, StringLength(50)]
  48. public string ShortName { get; set; }
  49. /// <summary>
  50. /// 备注
  51. /// </summary>
  52. [Comment("备注")]
  53. [StringLength(200)]
  54. public string Remark { get; set; } = "";
  55. /// <summary>
  56. /// 是否选中使用的方案
  57. /// </summary>
  58. [Comment("是否选中使用的方案")]
  59. public bool IsSelected { get; set; } = false;
  60. /// <summary>
  61. /// 选中使用时间
  62. /// </summary>
  63. [Comment("选中使用时间")]
  64. public DateTime? SelectedTime { get; set; }
  65. /// <summary>
  66. /// 选中使用操作用户ID
  67. /// </summary>
  68. [Comment("选中使用操作用户ID")]
  69. public int? SelectedSysUserId { get; set; }
  70. /// <summary>
  71. /// 一对一引用(监测信息)
  72. /// </summary>
  73. public virtual ExamPlan ExamPlan { get; set; }
  74. /// <summary>
  75. /// 一对一引用(选中使用操作用户)
  76. /// </summary>
  77. public virtual SysUser SelectedSysUser { get; set; }
  78. }