using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
namespace TProduct.Model
{
///
/// 测试台基本信息
///
public partial class WorkBenchBase : System.ICloneable
{
public WorkBenchBase() { }
public WorkBenchBase(WorkBenchBase rhs)
{
this.ID = rhs.ID;
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.UpdateUserID = rhs.UpdateUserID;
this.UpdateTime = rhs.UpdateTime;
this.Code = rhs.Code;
this.Name = rhs.Name;
this.ProductStyleID = rhs.ProductStyleID;
this.LastUseTime = rhs.LastUseTime;
this.LastUseUserID = rhs.LastUseUserID;
this.UseStatus = rhs.UseStatus;
this.PipeIndex = rhs.PipeIndex;
this.PipeParas = rhs.PipeParas;
this.ProductType = rhs.ProductType;
this.LinkType = rhs.LinkType;
this.TestType = rhs.TestType;
this.TestMethod = rhs.TestMethod;
this.TestSetting = rhs.TestSetting;
this.Model3dPath = rhs.Model3dPath;
this.Model3dTag = rhs.Model3dTag;
this.Tag = rhs.Tag;
this.LinkTag = rhs.LinkTag;
this.SortCode = rhs.SortCode;
this.MeterInfo = rhs.MeterInfo;
this.LinkInfo = rhs.LinkInfo;
this.IStationID = rhs.IStationID;
}
public virtual void Reset(WorkBenchBase rhs)
{
this.ID = rhs.ID;
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.UpdateUserID = rhs.UpdateUserID;
this.UpdateTime = rhs.UpdateTime;
this.Code = rhs.Code;
this.Name = rhs.Name;
this.ProductStyleID = rhs.ProductStyleID;
this.LastUseTime = rhs.LastUseTime;
this.LastUseUserID = rhs.LastUseUserID;
this.UseStatus = rhs.UseStatus;
this.PipeParas = rhs.PipeParas;
this.LinkType = rhs.LinkType;
this.TestType = rhs.TestType;
this.TestMethod = rhs.TestMethod;
this.TestSetting = rhs.TestSetting;
this.Model3dPath = rhs.Model3dPath;
this.Model3dTag = rhs.Model3dTag;
this.Tag = rhs.Tag;
this.LinkTag = rhs.LinkTag;
this.SortCode = rhs.SortCode;
this.MeterInfo = rhs.MeterInfo;
this.LinkInfo = rhs.LinkInfo;
this.IStationID = rhs.IStationID;
}
///
/// 标识
///
[Display(Name = "标识")]
public long ID { get; set; }
///
/// 创建人
///
[Display(Name = "创建人")]
public long CreateUserID { get; set; }
///
/// 创建时间
///
[Display(Name = "创建时间")]
public DateTime CreateTime { get; set; }
///
/// 更新人
///
[Display(Name = "更新人")]
public long UpdateUserID { get; set; }
///
/// 外部ID
///
[Display(Name = "外部ID")]
public string IStationID
{
get { return _istationID; }
set { _istationID = value; }
}
private string _istationID;
///
/// 更新时间
///
[Display(Name = "更新时间")]
public DateTime UpdateTime { get; set; }
///
/// SortCode
///
[Display(Name = "排序号")]
public int SortCode { get; set; } = 0;
///
/// 编号
///
[Display(Name = "编号")]
public string Code { get; set; }
///
/// 名称
///
[Display(Name = "名称")]
public string Name { get; set; }
///
/// 设备分类ID
///
[Display(Name = "设备分类ID")]
public List ProductStyleID { get; set; }
///
/// 设备分类
///
[Display(Name = "设备分类")]
public TProduct.Model.eProductType ProductType
{
get { return _producttype; }
set { _producttype = value; }
}
private TProduct.Model.eProductType _producttype;
///
/// LinkInfo
///
[Display(Name = "LinkInfo")]
public TProduct.Model.LinkInfo4Bench LinkInfo { get; set; }
///
/// 仪表信息
///
[Display(Name = "仪表信息")]
public TProduct.Model.MeterInfo4Bench MeterInfo
{
get { return _meterInfo; }
set { _meterInfo = value; }
}
private TProduct.Model.MeterInfo4Bench _meterInfo;
///
/// 最后一次使用时间
///
[Display(Name = "最后一次使用时间")]
public DateTime? LastUseTime { get; set; }
///
/// 最后一次使用人
///
[Display(Name = "最后一次使用人")]
public long? LastUseUserID { get; set; }
///
/// 通讯类型
///
[Display(Name = "通讯类型")]
public eLinkType LinkType { get; set; } = eLinkType.ShunZhou;
///
/// 使用状态
///
[Display(Name = "使用状态")]
public eUseStatus UseStatus { get; set; }
///
/// 管路标识 0表示没有设置
///
[Display(Name = "管路标识")]
public int PipeIndex { get; set; }
///
/// 管路参数 PipeParas4Pump 类
///
[Display(Name = "管路参数对应(PipeParas4Pump)")]
public string PipeParas { get; set; }
///
/// 测试类型
///
[Display(Name = "测试类型")]
public List TestType { get; set; }
///
/// 测试方法
///
[Display(Name = "测试方法对应(WorkBenchParas4Method)")]
public string TestMethod { get; set; }
///
/// 测试设定
///
[Display(Name = "管路参数对应(WorkBenchParas4Setting)")]
public string TestSetting { get; set; }
///
/// 三维模型路径
///
[Display(Name = "三维模型路径")]
public string Model3dPath
{
get { return _model3dPath; }
set { _model3dPath = value; }
}
private string _model3dPath;
///
/// 三维模型程序标签
///
[Display(Name = "三维模型程序标签")]
public string Model3dTag
{
get { return _model3dTag; }
set { _model3dTag = value; }
}
private string _model3dTag;
///
/// 标签
///
[Display(Name = "标签")]
public string Tag
{
get { return _tag; }
set { _tag = value; }
}
private string _tag;
///
/// 标签
///
[Display(Name = "通讯标签")]
public string LinkTag
{
get { return _linkTag; }
set { _linkTag = value; }
}
private string _linkTag;
public WorkBenchBase Clone()
{
return (WorkBenchBase)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}