using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; namespace FMSAdmin.Entities { public partial class CmSite { public CmSite() { BemsAlarmSetting = new HashSet(); BemsChartInfo = new HashSet(); BemsEnergyConfigPercentMonth = new HashSet(); BemsEnergyConfigPercentWeek = new HashSet(); BemsMeasureSchedule = new HashSet(); BemsNoticePrice = new HashSet(); BemsPeakHistory = new HashSet(); BemsPeopleIncrease = new HashSet(); BemsRentalRate = new HashSet(); BemsSitePrice = new HashSet(); BemsSitePriceHistory = new HashSet(); BemsWeatherHourly = new HashSet(); CmBuilding = new HashSet(); CmCompany = new HashSet(); CmDepartment = new HashSet(); CmFacilityTempSet = new HashSet(); CmFile = new HashSet(); CmHoliday = new HashSet(); CmHolidayCustom = new HashSet(); CmMenu = new HashSet(); CmPatrolCourse = new HashSet(); CmPatrolCoursePos = new HashSet(); CmPatrolGroup = new HashSet(); CmPatrolHistory = new HashSet(); CmPatrolHistoryPos = new HashSet(); CmPatrolPlan = new HashSet(); CmPatrolPos = new HashSet(); CmPatrolSchedule = new HashSet(); CmPatrolType = new HashSet(); CmUserGroup = new HashSet(); CmZoneTempHumiSet = new HashSet(); FmsDrawing = 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(); FmsMaterialTradeCompany = new HashSet(); FmsMaterialWarehouse = new HashSet(); FmsReport = new HashSet(); FmsWorkCodeCauseClass = new HashSet(); FmsWorkCodeCycleUnit = new HashSet(); FmsWorkCodeEmergency = new HashSet(); FmsWorkCodeHolidayWorkType = new HashSet(); FmsWorkCodeLegalInspectionAgency = new HashSet(); FmsWorkOrder = new HashSet(); FmsWorkRequest = new HashSet(); BemsAlarmGroupUser = new HashSet(); FmsAccident = new HashSet(); Equipments = new HashSet(); EquipmentRentInfoList = new HashSet(); FmsManual = new HashSet(); FmsManualHistory = new HashSet(); FmsEquipmentHistory = new HashSet(); FmsAlarmPointList = new HashSet(); FmsAlarmLogList = new HashSet(); BemsMonitoringPointHistory15minList = new HashSet(); CmRentalStatus = new HashSet(); CmOrganizationChartStatus = new HashSet(); CmCertificateStatus = new HashSet(); CmLayout = new HashSet(); FmsFacilityStateDetail = new HashSet(); BemsReportHistory = new HashSet(); FmsDailyReport = new HashSet(); FmsMonthlyReport = new HashSet(); FmsEnergyAnalysis = new HashSet(); CmSurvey = new HashSet(); } [Display(Name = "고유번호"), Key] public int SiteId { get; set; } [Display(Name = "현장 이름"), Required] [StringLength(50)] public string Name { get; set; } [Display(Name = "현장 주소 우편번호 1")] [StringLength(5)] public string AddressZip1 { get; set; } [Display(Name = "현장 주소 우편번호 2")] [StringLength(3)] public string AddressZip2 { get; set; } [Display(Name = "현장 주소 1")] [StringLength(100)] public string Address1 { get; set; } [Display(Name = "현장 주소 ")] [StringLength(100)] public string Adderss2 { get; set; } [Display(Name = "현장 전화번호")] [StringLength(24)] public string PhoneNo { get; set; } [Display(Name = "현장 홈페이지"), Column("URL")] [StringLength(100)] public string Url { get; set; } [Display(Name = "현장 세부설명")] [StringLength(1024)] public string Comment { get; set; } [Display(Name = "사용 유무")] public bool? IsUse { get; set; } [Display(Name = "정렬 번호")] public int? SortOrderNo { get; set; } [Display(Name = "데이터 생성일"), Column(TypeName = "datetime")] public DateTime? InsertedDate { get; set; } [Display(Name = "데이터 생성자 고유번호")] [StringLength(24)] public string InsertedUserId { get; set; } [Display(Name = "데이터 변경일"), Column(TypeName = "datetime")] public DateTime? UpdatedDate { get; set; } [Display(Name = "데이터 변경자 고유번호")] [StringLength(24)] public string UpdatedUserId { get; set; } [Display(Name = "(자동-true/수동-false) / 제어스케줄")] public bool? IsControlSchedule { get; set; } [Display(Name = "제어 스케쥴 시각")] public int? ScheduleCheckHour { get; set; } [Display(Name = "최대전력")] public double? MaxPeak { get; set; } [Display(Name = "위도"), Column("lat")] public double? Lat { get; set; } [Display(Name = "경도"), Column("lng")] public double? Lng { get; set; } [Display(Name = "제어스케쥴"), Column("controlSchedule")] public bool? ControlSchedule { get; set; } [Display(Name = "HDD기준온도"), Column("HDD")] [StringLength(24)] public string Hdd { get; set; } [Display(Name = "CDD기준온도"), Column("CDD")] [StringLength(24)] public string Cdd { get; set; } [Display(Name = "건축규모")] [StringLength(50)] public string BuildingSize { get; set; } [Display(Name = "연면적")] [StringLength(24)] public string GrossArea { get; set; } [Display(Name = "건축면적")] [StringLength(24)] public string BuildingArea { get; set; } [Display(Name = "용적율")] [StringLength(24)] public string FloorAreaRatio { get; set; } [Display(Name = "건폐율")] [StringLength(24)] public string BuildingCoverageRatio { get; set; } [Display(Name = "주용도")] [StringLength(10)] public string MainUse { get; set; } [Display(Name = "준공연도")] [StringLength(24)] public string CompletionDate { get; set; } [Display(Name = "용도별표준값")] [StringLength(24)] public string Standard { get; set; } [Display(Name = "주용도Index")] public int? MainUseIndex { get; set; } [Display(Name = "이미지")] public int? ImageFileId { get; set; } [ForeignKey("SiteId,ImageFileId")] public virtual CmFile ImageFile { get; set; } [Display(Name = "날씨API 시도")] public string ApiSido { get; set; } [Display(Name = "날씨API 시구군")] public string ApiSigun { get; set; } [Display(Name = "대시보드 이미지맵 X")] public int? ImageMapX { get; set; } [Display(Name = "대시보드 이미지맵 Y")] public int? ImageMapY { get; set; } [Display(Name = "설계/감리")] public string DesignSupervision { get; set; } [Display(Name = "시공사")] public string ConstructionCompany { get; set; } [Display(Name = "공사기간")] public string ConstructionPeriod { get; set; } [Display(Name = "구조")] public string Structure { get; set; } [Display(Name = "로비바닥")] public string LobbyFloor { get; set; } [Display(Name = "사무실바닥")] public string OfficeFloor { get; set; } [Display(Name = "화장실바닥")] public string ToiletFloor { get; set; } [Display(Name = "E/V홀")] public string EVHall { get; set; } [Display(Name = "주차장")] public string ParkingLot { get; set; } [Display(Name = "외벽")] public string OuterWall { get; set; } [Display(Name = "대지면적")] public string LandArea { get; set; } [Display(Name = "조경면적")] public string LandscapingArea { get; set; } [Display(Name = "건물층수")] public string BuildingFloors { get; set; } [Display(Name = "건고")] public string BuildingHeight { get; set; } [Display(Name = "전용율")] public string ConversionRate { get; set; } [Display(Name = "주차장시설")] public string ParkingFacilities { get; set; } [Display(Name = "강당시설")] public string AuditoriumFacilities { get; set; } public bool IsAdmin { get; set; } [InverseProperty("Site")] public virtual BemsEnergyDailyRegression BemsEnergyDailyRegression { get; set; } [InverseProperty("Site")] public virtual BemsPeakInfo BemsPeakInfo { get; set; } [InverseProperty("Site")] public virtual CmHolidayWeekend CmHolidayWeekend { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsAlarmSetting { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsChartInfo { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsEnergyConfigPercentMonth { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsEnergyConfigPercentWeek { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsMeasureSchedule { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsNoticePrice { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsPeakHistory { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsPeopleIncrease { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsRentalRate { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsSitePrice { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsSitePriceHistory { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsWeatherHourly { get; set; } [JsonIgnore] [InverseProperty("CmSite")] public virtual ICollection BemsReportFormat { get; set; } [JsonIgnore] [InverseProperty("CmSite")] public virtual ICollection CmBuilding { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmCompany { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmDepartment { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmFacilityTempSet { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmFile { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmHoliday { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmHolidayCustom { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmMenu { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmPatrolCourse { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmPatrolCoursePos { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmPatrolGroup { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmPatrolHistory { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmPatrolHistoryPos { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmPatrolPlan { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmPatrolPos { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmPatrolSchedule { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmPatrolType { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmUserGroup { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection CmZoneTempHumiSet { get; set; } [JsonIgnore] [InverseProperty("CmSite")] public virtual ICollection FmsDrawing { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsLicense { get; set; } [JsonIgnore] [InverseProperty("CmSite")] public virtual ICollection FmsMaterial { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsMaterialCarriedForward { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsMaterialCodeLocation { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsMaterialPurchaseOrder { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsMaterialPurchaseRequest { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsMaterialRelease { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsMaterialStored { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsMaterialTradeCompany { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsMaterialWarehouse { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsReport { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsWorkCodeCauseClass { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsWorkCodeCycleUnit { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsWorkCodeEmergency { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsWorkCodeHolidayWorkType { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsWorkCodeLegalInspectionAgency { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsWorkOrder { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsWorkRequest { get; set; } [InverseProperty("CmSite")] public virtual ICollection BemsAlarmGroupUser { get; set; } [InverseProperty("CmSite")] public virtual ICollection FmsAccident { get; set; } [InverseProperty(nameof(FmsEquipment.Site))] public virtual ICollection Equipments { get; set; } [InverseProperty(nameof(FmsEquipmentRentInfo.Site))] public virtual ICollection EquipmentRentInfoList { get; set; } [InverseProperty("CmSite")] public virtual ICollection FmsManual { get; set; } [InverseProperty("CmSite")] public virtual ICollection FmsManualHistory { get; set; } [InverseProperty("CmSite")] public virtual ICollection FmsEquipmentHistory { get; set; } [InverseProperty("Site")] public virtual ICollection FmsAlarmPointList { get; set; } [InverseProperty("Site")] public virtual ICollection FmsAlarmLogList { get; set; } [InverseProperty("Site")] public virtual ICollection BemsMonitoringPointHistory15minList { get; set; } [InverseProperty("CmSite")] public virtual ICollection CmRentalStatus { get; set; } [InverseProperty("CmSite")] public virtual ICollection CmOrganizationChartStatus { get; set; } [InverseProperty("CmSite")] public virtual ICollection CmCertificateStatus { get; set; } [InverseProperty("CmSite")] public virtual ICollection CmLayout { get; set; } [JsonIgnore] [InverseProperty("CmSite")] public virtual ICollection FmsFacilityStateDetail { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection BemsReportHistory { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsDailyReport { get; set; } [JsonIgnore] [InverseProperty("Site")] public virtual ICollection FmsMonthlyReport { get; set; } [JsonIgnore] [InverseProperty("CmSite")] public virtual ICollection FmsEnergyAnalysis { get; set; } [JsonIgnore] [InverseProperty("CmSite")] public virtual ICollection CmSurvey { get; set; } } }