mes_swipe_card.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using Business.Core.Attributes;
  2. using Business.Model;
  3. using Microsoft.EntityFrameworkCore;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. namespace Bussiness.Model.ProductionProcess
  7. {
  8. /// <summary>
  9. /// mes打卡记录表
  10. /// </summary>
  11. [CollectionName("dopbase", "mes_swipe_card")]
  12. [Comment("mes打卡记录表")]
  13. public class mes_swipe_card : BaseEntity
  14. {
  15. ///// <summary>
  16. ///// mes打卡记录id
  17. ///// </summary>
  18. //[Key]
  19. //[Comment("mes打卡记录id")]
  20. //public long id { get; set; }
  21. /// <summary>
  22. /// 生产车间
  23. /// </summary>
  24. [Required]
  25. [StringLength(255)]
  26. [Comment("生产车间")]
  27. public string? product_org { get; set; }
  28. /// <summary>
  29. /// 生产产线
  30. /// </summary>
  31. [Required]
  32. [StringLength(255)]
  33. [Comment("生产产线")]
  34. public string? product_line { get; set; }
  35. /// <summary>
  36. /// 卡号
  37. /// </summary>
  38. [Required]
  39. [StringLength(80)]
  40. [Comment("卡号")]
  41. public string? card_no { get; set; }
  42. /// <summary>
  43. /// 工单编号
  44. /// </summary>
  45. [StringLength(50)]
  46. [Comment("工单编号")]
  47. public string? order_no { get; set; }
  48. /// <summary>
  49. /// 上线时间
  50. /// </summary>
  51. [Comment("上线时间")]
  52. public DateTime? up_line_time { get; set; }
  53. /// <summary>
  54. /// 下线时间
  55. /// </summary>
  56. [Comment("下线时间")]
  57. public DateTime? off_line_time { get; set; }
  58. /// <summary>
  59. /// 刷卡类型 1 白班 ,2 晚班
  60. /// </summary>
  61. [Comment("刷卡类型")]
  62. public int type { get; set; }
  63. /// <summary>
  64. /// 刷卡日期
  65. /// </summary>
  66. [Comment("刷卡日期")]
  67. public DateTime swipe_date { get; set; }
  68. }
  69. }