mes_schedule_occupy.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using Business.Core.Attributes;
  2. using Business.Model;
  3. using Microsoft.EntityFrameworkCore;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.ComponentModel.DataAnnotations;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace Bussiness.Model.Production
  12. {
  13. /// <summary>
  14. /// 排程时间占用记录表
  15. /// </summary>
  16. [CollectionName("dopbase", "mes_schedule_occupy")]
  17. [Comment("排程时间占用记录表")]
  18. public class mes_schedule_occupy : BaseEntity
  19. {
  20. ///// <summary>
  21. ///// 排程时间占用记录id
  22. ///// </summary>
  23. //[Key]
  24. //[Comment("排程时间占用记录id")]
  25. //public long id { get; set; }
  26. /// <summary>
  27. /// 开始时间
  28. /// </summary>
  29. [Comment("开始时间")]
  30. public DateTime? start_time { get; set; }
  31. /// <summary>
  32. /// 结束时间
  33. /// </summary>
  34. [Comment("结束时间")]
  35. public DateTime? end_time { get; set; }
  36. /// <summary>
  37. /// 工作时长(h)
  38. /// </summary>
  39. [Precision(20, 8)]
  40. [Comment("工作时长(h)")]
  41. public decimal? working_minute { get; set; }
  42. /// <summary>
  43. /// 状态 0-待使用,1-已使用
  44. /// </summary>
  45. [DefaultValue(0)]
  46. [Comment("状态 0-待使用,1-已使用")]
  47. public int? status { get; set; }
  48. /// <summary>
  49. /// 是否锁定 0-正常,1-锁定
  50. /// </summary>
  51. [DefaultValue(0)]
  52. [Comment("是否锁定 0-正常,1-锁定")]
  53. public int? is_Locked { get; set; }
  54. /// <summary>
  55. /// 生产组织id
  56. /// </summary>
  57. [Comment("生产组织id")]
  58. public long? prd_org_id { get; set; }
  59. /// <summary>
  60. /// 工作中心id:工位id
  61. /// </summary>
  62. [Comment("工作中心id")]
  63. public long? work_center_id { get; set; }
  64. /// <summary>
  65. /// 工作日历id
  66. /// </summary>
  67. [Comment("工作日历id")]
  68. public long? work_calendar_id { get; set; }
  69. }
  70. }