using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NEIntelligentControl2.Models.Windturbine { public class ControlRecord { public string Id { set; get; } public string WindturbineId { set; get; } public string StationId { set; get; } public string ProjectId { set; get; } public string ModelId { set; get; } public OperateStyle ControlType { set; get; } public bool Recommend { set; get; } public string Guid { set; get; } public OperateStyle RecommendType { set; get; } public string UserName { set; get; } public int UserId { set; get; } public DateTime Time { set; get; } public string ErrorCode { set; get; } public string TimeString { get => Time.ToString("yyyy-MM-dd HH:mm:ss"); } /// /// 风场名称 /// public string StationName { get; set; } public string ControlTypeString { get { return this.ControlType.GetStringValue(); } } public string IsSuccess { get { if (this.ErrorCode != null && this.ErrorCode.Equals("0")) { return "是"; } else { return "否"; } } } } }