2024-10-18 18:41:02 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using YunDa.ISAS.Entities.AuditCommon;
|
|
|
|
|
|
using YunDa.ISAS.Entities.GeneralInformation;
|
|
|
|
|
|
|
|
|
|
|
|
namespace YunDa.SOMS.Entities.GeneralInformation
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 二次回路
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Table("gi_secondary_circuit")]
|
|
|
|
|
|
public class SecondaryCircuit: ISASFullAuditedEntity
|
|
|
|
|
|
{
|
|
|
|
|
|
public const int MaxNameLength = 200;
|
|
|
|
|
|
public const int MaxDescriptionLength = 500;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 顺序号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public virtual int SeqNo { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 二次回路名称
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[StringLength(MaxNameLength)]
|
|
|
|
|
|
public virtual string Name { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 回路类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public virtual CircuitTypeEnum CircuitType { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联显示图片路径
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[StringLength(MaxDescriptionLength)]
|
|
|
|
|
|
public virtual string PicturePath { get; set; }
|
2024-11-29 09:03:54 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联显示图片路径
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Column(TypeName = "nvarchar(max)")]
|
|
|
|
|
|
public virtual string PictureBase64 { get; set; }
|
2024-10-18 18:41:02 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public virtual string Code { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 所属变电站
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public virtual Guid TransformerSubstationId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey("TransformerSubstationId")]
|
|
|
|
|
|
public virtual TransformerSubstation TransformerSubstation { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[StringLength(MaxDescriptionLength)]
|
|
|
|
|
|
public virtual string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 备注
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[StringLength(MaxDescriptionLength)]
|
|
|
|
|
|
public virtual string Remark { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否在用
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DefaultValue(true)]
|
|
|
|
|
|
public virtual bool IsActive { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 回路类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum CircuitTypeEnum
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 交流回路
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("交流回路")]
|
|
|
|
|
|
ACCircuit = 1,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 控制回路
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("控制回路")]
|
|
|
|
|
|
ControlCircuit = 2,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 光纤回路
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("光纤回路")]
|
|
|
|
|
|
OpticalFiberCircuit = 3
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 校验类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum VerificationType
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 自动校验
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Automatic = 1,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 手动校验
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Manual = 2
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|