215 lines
		
	
	
		
			6.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			215 lines
		
	
	
		
			6.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| 
								 | 
							
								using APT.BaseData.Domain.Entities.FM;
							 | 
						|||
| 
								 | 
							
								using APT.Infrastructure.Core;
							 | 
						|||
| 
								 | 
							
								using APT.MS.Domain.Enums;
							 | 
						|||
| 
								 | 
							
								using System;
							 | 
						|||
| 
								 | 
							
								using System.Collections.Generic;
							 | 
						|||
| 
								 | 
							
								using System.ComponentModel;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								namespace APT.MS.Domain.Entities.DM
							 | 
						|||
| 
								 | 
							
								{
							 | 
						|||
| 
								 | 
							
								    /// <summary>
							 | 
						|||
| 
								 | 
							
								    /// 设备设施库
							 | 
						|||
| 
								 | 
							
								    /// </summary>
							 | 
						|||
| 
								 | 
							
								    [Description("设备设施库")]
							 | 
						|||
| 
								 | 
							
								    public class T_DM_DEVICE_BASE : MesEntityBase
							 | 
						|||
| 
								 | 
							
								    {
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 编码
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("编码")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public string CODE { get; set; }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 名称
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("名称")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public string NAME { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 内部编码
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("内部编码")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public string MACHINE_CODE { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// TPMID
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("TPMID")]
							 | 
						|||
| 
								 | 
							
								        public Guid? TPM_ID { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 系统分类
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("系统分类")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        [DataFieldForeignKey("Nav_Category")]
							 | 
						|||
| 
								 | 
							
								        public Guid? CATEGORY_ID { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 系统分类
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("系统分类")]
							 | 
						|||
| 
								 | 
							
								        public T_DM_CATEGORY Nav_Category { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 类型
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("类型")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        [DataFieldForeignKey("Nav_Type")]
							 | 
						|||
| 
								 | 
							
								        public Guid? TYPE_ID { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 类型
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("类型")]
							 | 
						|||
| 
								 | 
							
								        public T_DM_TYPE Nav_Type { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///是否应急物资
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("是否应急物资")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public bool IS_EMERGENCY { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///规格
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("规格")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public string SPEC { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///数量
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("数量")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public int QTY { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///单位
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("单位")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public string UNIT { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///用途
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("用途")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public string PURPOSE { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///存放位置
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("存放位置")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public string POSITION { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///管理部门
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("管理部门")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        [DataFieldForeignKey("Nav_Department")]
							 | 
						|||
| 
								 | 
							
								        public Guid? DEPARTMENT_ID { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 管理部门
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("管理部门")]
							 | 
						|||
| 
								 | 
							
								        public T_FM_DEPARTMENT Nav_Department { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///管理责任人
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("管理责任人")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        [DataFieldForeignKey("Nav_User")]
							 | 
						|||
| 
								 | 
							
								        public Guid? USER_ID { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 管理责任人
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("管理责任人")]
							 | 
						|||
| 
								 | 
							
								        public T_FM_USER Nav_User { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///主要技术参数
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("主要技术参数")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public string PARAMETER { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 类别 :设备、设施、其他
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("类别")]
							 | 
						|||
| 
								 | 
							
								        [EnumName("DMDeviceTypeEnum")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldTable]
							 | 
						|||
| 
								 | 
							
								        [FormFieldQuery]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public DMDeviceTypeEnum DEVICE_TYPE { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 是否已发送
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("是否已发送")]
							 | 
						|||
| 
								 | 
							
								        public int IS_SEND { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 附件
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("附件")]
							 | 
						|||
| 
								 | 
							
								        public List<T_DM_DEVICE_BASE_FILE> Nav_Files { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 采购
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("采购")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public ICollection<T_DM_DEVICE_BASE_PURCHASE> Nav_Purchases { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 设备设施点检(有关联)
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("设备设施点检")]
							 | 
						|||
| 
								 | 
							
								        public ICollection<T_DM_DEVICE_BASE_CHECK> Nav_ListCheck { get; set; }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 设备设施巡检(没有关联)
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("设备设施巡检")]
							 | 
						|||
| 
								 | 
							
								        public ICollection<T_DM_DEVICE_BASE_CHECK> Nav_ListCheckCircle { get; set; }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 设备设施维保
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("设备设施维保")]
							 | 
						|||
| 
								 | 
							
								        public ICollection<T_DM_DEVICE_MAINTENANCE_PLAN> Nav_ListMaintenance { get; set; }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 检修记录
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("检修记录")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public ICollection<T_DM_DEVICE_BASE_OVERHAUL> Nav_Overhaul { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 检验检测
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        [Description("检验检测")]
							 | 
						|||
| 
								 | 
							
								        [FormFieldEdit]
							 | 
						|||
| 
								 | 
							
								        public ICollection<T_DM_DEVICE_BASE_INSPECTION> Nav_Inspection { get; set; }
							 | 
						|||
| 
								 | 
							
								    }
							 | 
						|||
| 
								 | 
							
								}
							 |