using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; namespace FMSAdmin.Entities { public partial class CmBusinessField { public CmBusinessField() { CmAnnouncement = new HashSet(); CmGuideline = new HashSet(); CmUser = new HashSet(); CmPartner = new HashSet(); FmsDailyReport = new HashSet(); FmsMonthlyReport = new HashSet(); FmsFacilityManual = new HashSet(); FmsLicense = new HashSet(); FmsMaterial = new HashSet(); FmsMaterialCarriedForward = new HashSet(); FmsMaterialCodeLocation = new HashSet(); FmsMaterialPurchaseOrder = new HashSet(); FmsMaterialPurchaseRequest = new HashSet(); FmsMaterialRelease = new HashSet(); FmsMaterialStored = new HashSet(); FmsMaterialWarehouse = new HashSet(); FmsReport = new HashSet(); FmsWorkOrder = new HashSet(); FmsWorkRequest = new HashSet(); FmsWorkSchedule = new HashSet(); } //업무 구분 /* [Display(Name = "현장 고유번호"), Key] public int SiteId { get; set; } */ [Display(Name = "업무분야 고유번호"), Key] public int BusinessFieldId { get; set; } [Display(Name = "업무분야 명칭"), Required] [StringLength(50)] public string Name { get; set; } [Display(Name = "사용 유무")] public bool? IsUse { get; set; } /* [ForeignKey(nameof(SiteId))] public virtual CmSite Site { get; set; } */ [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection BemsReportFormat { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection CmAnnouncement { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection CmGuideline { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection CmUser { get; set; } [JsonIgnore] [InverseProperty("BusinessField")] public virtual ICollection CmPartner { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsDailyReport { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsMonthlyReport { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsFacilityManual { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsLicense { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsMaterial { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsMaterialCarriedForward { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsMaterialCodeLocation { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsMaterialPurchaseOrder { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsMaterialPurchaseRequest { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsMaterialRelease { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsMaterialStored { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsMaterialWarehouse { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsReport { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsWorkOrder { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsWorkRequest { get; set; } [JsonIgnore] [InverseProperty("CmBusinessField")] public virtual ICollection FmsWorkSchedule { get; set; } } }