FmsConstruction.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace FMSAdmin.Entities
  6. {
  7. public partial class FmsConstruction
  8. {
  9. [Key]
  10. public int SiteId { get; set; }
  11. [Key]
  12. public int ConstructionId { get; set; }
  13. [Required]
  14. [StringLength(256)]
  15. public string Name { get; set; }
  16. public int ConstructionTypeId { get; set; }
  17. [Column(TypeName = "datetime")]
  18. public DateTime StartDate { get; set; }
  19. [Column(TypeName = "datetime")]
  20. public DateTime EndDate { get; set; }
  21. public int PartnerId { get; set; }
  22. [Required]
  23. [StringLength(256)]
  24. public string ConstructLocation { get; set; }
  25. [Required]
  26. [StringLength(24)]
  27. public string OwnerShipName { get; set; }
  28. public short? CommitmentMan { get; set; }
  29. [Required]
  30. [StringLength(20)]
  31. public string OwnerShipPhoneNo { get; set; }
  32. [Column(TypeName = "datetime")]
  33. public DateTime? WeldWorkStartTime { get; set; }
  34. [Column(TypeName = "datetime")]
  35. public DateTime? WeldWorkEndTime { get; set; }
  36. [Column(TypeName = "datetime")]
  37. public DateTime? GasWorkStartTime { get; set; }
  38. [Column(TypeName = "datetime")]
  39. public DateTime? GasWorkEndTime { get; set; }
  40. [Column(TypeName = "datetime")]
  41. public DateTime? PaintWorkStartTime { get; set; }
  42. [Column(TypeName = "datetime")]
  43. public DateTime? PaintWorkEndTime { get; set; }
  44. [StringLength(1024)]
  45. public string Comment { get; set; }
  46. public short ProgressId { get; set; }
  47. [Column(TypeName = "datetime")]
  48. public DateTime AddDate { get; set; }
  49. [Column(TypeName = "datetime")]
  50. public DateTime UpdateDate { get; set; }
  51. [StringLength(1024)]
  52. public string ConstructionDetail { get; set; }
  53. [StringLength(1024)]
  54. public string InOutStockName { get; set; }
  55. public int? FileId1 { get; set; }
  56. public int? FileId2 { get; set; }
  57. public int? FileId3 { get; set; }
  58. [ForeignKey("SiteId,FileId1")]
  59. [InverseProperty("FmsConstructionCmFile")]
  60. public virtual CmFile CmFile { get; set; }
  61. [ForeignKey("SiteId,FileId3")]
  62. [InverseProperty("FmsConstructionCmFile1")]
  63. public virtual CmFile CmFile1 { get; set; }
  64. [ForeignKey("SiteId,FileId2")]
  65. [InverseProperty("FmsConstructionCmFileNavigation")]
  66. public virtual CmFile CmFileNavigation { get; set; }
  67. [ForeignKey("SiteId,PartnerId")]
  68. [InverseProperty("FmsConstruction")]
  69. public virtual CmPartner CmPartner { get; set; }
  70. [ForeignKey("SiteId,ConstructionTypeId")]
  71. [InverseProperty("FmsConstruction")]
  72. public virtual FmsConstructionCodeType FmsConstructionCodeType { get; set; }
  73. [ForeignKey(nameof(ProgressId))]
  74. [InverseProperty(nameof(FmsConstructionCodeProgress.FmsConstruction))]
  75. public virtual FmsConstructionCodeProgress Progress { get; set; }
  76. [InverseProperty("FmsConstruction")]
  77. public virtual FmsConstructionEstimation FmsConstructionEstimation { get; set; }
  78. }
  79. }