using Ewide.Core; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ewide.Application { public class HouseTaskInput { [Required(ErrorMessage = "巡查日期不能为空")] public DateTime PatrolDate { get; set; } [Required(ErrorMessage = "巡查人员/单位不能为空")] public string PatrolUser { get; set; } /// /// 沉降倾斜 /// public string SettlementTilt { get; set; } /// /// 沉降倾斜附件 /// public string SettlementTiltFiles { get; set; } /// /// 其他情况 /// public string OtherInfo { get; set; } /// /// 其他情况附件 /// public string OtherInfoFiles { get; set; } //[Required(ErrorMessage = "巡查初始等级不能为空")] public int InitGrade { get; set; } //[Required(ErrorMessage = "巡查损坏等级不能为空")] public int DamageGrade { get; set; } //[Required(ErrorMessage = "巡查综合等级不能为空")] public int ComprehensiveGrade { get; set; } #region 调查情况investigation /// /// 房屋场地 /// public string HouseSite { get; set; } /// /// 相邻施工 /// public string AdjacentConstruction { get; set; } /// /// 化学侵蚀 /// public string ChemicalErosion { get; set; } /// /// 结构拆改 /// public int? StructuralDismantling { get; set; } /// /// 加层改造 /// public int? AddingLayer { get; set; } /// /// 修缮加固 /// public string RepairAndReinforce { get; set; } /// /// 历史灾害 /// public string HistoricalCalamity { get; set; } /// /// 使用功能变更 /// public string FunctionalChange { get; set; } /// /// 其他调查内容 /// public string OtherContents { get; set; } #endregion /// /// 主要安全隐患综述 /// public string MainSafety { get; set; } /// /// 处理意见 /// public int? HandlingOpinion { get; set; } /// /// 处理意见备注 /// public string HandlingOpinionRemark { get; set; } /// /// 整改情况 /// public int? RectifyAndReform { get; set; } /// /// 整改情况备注 /// public string RectifyAndReformRemark { get; set; } /// /// 巡查结果:1正常,-1异常 /// //[Required(ErrorMessage = "巡查结果不能为空")] public int PatrolResult { get; set; } public string PatrolResultRemark { get; set; } /// /// 上报街道 /// public int? ReportRoad { get; set; } /// /// 上报街道时间 /// public DateTime? ReportRoadTime { get; set; } /// /// 上报区住建 /// public int? ReportArea { get; set; } /// /// 上报区住建时间 /// public DateTime? ReportAreaTime { get; set; } /// /// 上报备注 /// public string ReportRemark { get; set; } } public class AddHouseTaskInput : HouseTaskInput { } public class EditHouseTaskInput : HouseTaskInput { [Required(ErrorMessage = "任务Id不能为空")] public string Id { get; set; } } public class SubmitHouseTaskInput { [Required(ErrorMessage = "任务Id不能为空")] public string TaskId { get; set; } } public class QueryHouseTaskInput : PageInputBase { } }