FmsConstructionEstimation.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace FMSAdmin.Entities {
  6. public partial class FmsConstructionEstimation {
  7. [Key]
  8. public int SiteId { get; set; }
  9. [Key]
  10. public int ConstructionId { get; set; }
  11. [Column(TypeName = "datetime")]
  12. public DateTime EstimateDate { get; set; }
  13. [Required]
  14. [StringLength(24)]
  15. public string EstimateUserId { get; set; }
  16. [Column("Safety01_CleanUp")]
  17. public bool? Safety01CleanUp { get; set; }
  18. [Column("Safety02_PersonalProtection")]
  19. public bool? Safety02PersonalProtection { get; set; }
  20. [Column("Safety03_FireExtinguisher")]
  21. public bool? Safety03FireExtinguisher { get; set; }
  22. [Column("Safety04_HighPlaceWork")]
  23. public bool? Safety04HighPlaceWork { get; set; }
  24. [Column("Safety05_Weld")]
  25. public bool? Safety05Weld { get; set; }
  26. [Column("Safety06_SurroundingCleanUp")]
  27. public bool? Safety06SurroundingCleanUp { get; set; }
  28. [Column("Safety07_SurroundingHealthy")]
  29. public bool? Safety07SurroundingHealthy { get; set; }
  30. [Column("Safety08_Noise")]
  31. public bool? Safety08Noise { get; set; }
  32. [Column("Safety09_FacilityProtection")]
  33. public bool? Safety09FacilityProtection { get; set; }
  34. [Column("Safety10_Waste")]
  35. public bool? Safety10Waste { get; set; }
  36. [Column("Safety11_Execution")]
  37. public bool? Safety11Execution { get; set; }
  38. [Column("Safety12_Announcement")]
  39. public bool? Safety12Announcement { get; set; }
  40. [Column("Ability01_Compliance")]
  41. public bool? Ability01Compliance { get; set; }
  42. [Column("Ability02_Fault")]
  43. public bool? Ability02Fault { get; set; }
  44. [Column("Ability03_SkillLevel")]
  45. public bool? Ability03SkillLevel { get; set; }
  46. [Column("Ability04_ProcessManagement")]
  47. public bool? Ability04ProcessManagement { get; set; }
  48. [Column("Ability05_Collaboration")]
  49. public bool? Ability05Collaboration { get; set; }
  50. [Column("Service01_Compliance")]
  51. public bool? Service01Compliance { get; set; }
  52. [Column("Service02_SkillLevel")]
  53. public bool? Service02SkillLevel { get; set; }
  54. [StringLength(1024)]
  55. public string Comment { get; set; }
  56. public double? TotalEstimateScore { get; set; }
  57. public double? SafetyScore { get; set; }
  58. public double? AbilityScore { get; set; }
  59. public double? ServiceScore { get; set; }
  60. [ForeignKey("EstimateUserId")]
  61. [InverseProperty("FmsConstructionEstimation")]
  62. public virtual CmUser CmUser { get; set; }
  63. [ForeignKey("SiteId,ConstructionId")]
  64. [InverseProperty("FmsConstructionEstimation")]
  65. public virtual FmsConstruction FmsConstruction { get; set; }
  66. }
  67. }