BemsReportFormat.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 BemsReportFormat {
  7. public BemsReportFormat() {
  8. BemsReportFormatToFacility = new List<BemsReportFormatToFacility>();
  9. BemsReportFormatContent = new List<BemsReportFormatContent>();
  10. }
  11. [Display(Name = "사이트 ID"), Key]
  12. public int SiteId { get; set; }
  13. //리포트 포맷 관리
  14. [Display(Name = "일지 포맷 ID"), Key]
  15. public int ReportFormatId { get; set; }
  16. [Display(Name = "업부 분야 ID"), Required]
  17. public int? BusinessFieldId { get; set; }
  18. [Display(Name = "포맷 이름"), Required]
  19. [StringLength(50)]
  20. public string FormatName { get; set; }
  21. [ForeignKey("SiteId")]
  22. [InverseProperty("BemsReportFormat")]
  23. public virtual CmSite CmSite { get; set; }
  24. [ForeignKey("BusinessFieldId")]
  25. [InverseProperty("BemsReportFormat")]
  26. public virtual CmBusinessField CmBusinessField { get; set; }
  27. [InverseProperty("BemsReportFormat")]
  28. public virtual ICollection<BemsReportHistory> BemsReportHistory { get; set; }
  29. [InverseProperty("BemsReportFormat")]
  30. public virtual ICollection<BemsReportFormatToFacility> BemsReportFormatToFacility { get; set; }
  31. [InverseProperty("BemsReportFormat")]
  32. public virtual ICollection<BemsReportFormatContent> BemsReportFormatContent { get; set; }
  33. }
  34. }