#region << 版 本 注 释 >>
/*----------------------------------------------------------------
* 命名空间:WIDESEAWCS_QuartzJob
* 创建者:胡童庆
* 创建时间:2024/8/2 16:13:36
* 版本:V1.0.0
* 描述:设备信息实体
*
* ----------------------------------------------------------------
* 修改人:
* 修改时间:
* 版本:V1.0.1
* 修改说明:
*
*----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using Magicodes.ExporterAndImporter.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Core.DB.Models;
namespace WIDESEAWCS_QuartzJob.Models
{
///
/// 设备信息
///
[SugarTable(nameof(Dt_DeviceInfo), "设备信息")]
public class Dt_DeviceInfo : BaseEntity
{
///
/// 主键
///
[ImporterHeader(IsIgnore = true)]
[ExporterHeader(DisplayName = "主键")]
[SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "主键")]
public int Id { get; set; }
///
/// 设备编号
///
[ImporterHeader(Name = "设备编号")]
[ExporterHeader(DisplayName = "设备编号")]
[SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "设备编号")]
public string DeviceCode { get; set; }
///
/// 设备名称
///
[ImporterHeader(Name = "设备名称")]
[ExporterHeader(DisplayName = "设备名称")]
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "设备名称")]
public string DeviceName { get; set; }
///
/// 设备类型
///
[ImporterHeader(Name = "设备类型")]
[ExporterHeader(DisplayName = "设备类型")]
[SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "设备类型")]
public string DeviceType { get; set; }
///
/// 设备状态
///
[ImporterHeader(Name = "设备状态")]
[ExporterHeader(DisplayName = "设备状态")]
[SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "设备状态")]
public string DeviceStatus { get; set; }
///
/// 设备IP
///
[ImporterHeader(Name = "设备IP")]
[ExporterHeader(DisplayName = "设备IP")]
[SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "设备IP")]
public string DeviceIp { get; set; }
///
/// 设备端口
///
[ImporterHeader(Name = "设备端口")]
[ExporterHeader(DisplayName = "设备端口")]
[SugarColumn(IsNullable = false, ColumnDescription = "设备端口")]
public int DevicePort { get; set; }
///
/// PLC类型
///
[ImporterHeader(Name = "PLC类型")]
[ExporterHeader(DisplayName = "PLC类型")]
[SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "PLC类型")]
public string DevicePlcType { get; set; }
///
/// 备注
///
[ImporterHeader(Name = "备注")]
[ExporterHeader(DisplayName = "备注")]
[SugarColumn(Length = 200, IsNullable = true, ColumnDescription = "备注")]
public string DeviceRemark { get; set; }
///
/// 设备协议集合
///
[ImporterHeader(IsIgnore =true)]
[ExporterHeader(IsIgnore = true)]
[Navigate(NavigateType.OneToMany, nameof(Dt_DeviceProtocol.DeviceId), nameof(Id)), SugarColumn(IsIgnore = true, IsNullable = true)]
public List ProtocolList { get; set; }
}
}