using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using Core.Mes.Client.Comm.Attribute;
namespace Core.StlMes.Client.Mcp.Control.Entity
{
[Serializable]
///
/// 数据库表MCH_FINAL_CHECK_RESULT_D所对应的实体类(生成工具:代码生成工具3.0)
/// 作者:朱少波 时间:2019-02-21
///
public class MchFinalCheckResultDEntity
{
[Description("选择")]
[Nullable(true)]
[DataLength(20)]
public bool Check { get; set; }
///
/// 实绩编号
///
private string resultNo = "";
///
/// 材料号(管号)
///
private string matNo = "";
///
/// 喷印管号
///
private decimal? measuringSeq = null;
///
/// 逐支跟踪号
///
private string barCode = "";
///
/// 位置代码
///
private string positionCode = "";
///
/// 不合项代码
///
private string unpassCode = "";
///
/// 不合项
///
private string unpassName = "";
///
/// 不合描述
///
private string unpassMemo = "";
///
/// 0-合格 1-不合 2-废品
///
private string station = "";
///
/// 处置代码
///
private string treatmentCode = "";
///
/// 处置方式
///
private string treatmentName = "";
///
/// 位置
///
private string positionName = "";
///
/// 是否尺寸检验(光管)
///
protected string isSizeCheck = "";
///
/// 是否外观检验(光管)
///
protected string isAppCheck = "";
///
/// 0-合格 1-废品 (光管)
///
private string replayStation = "";
///
/// 喷印管号
///
private decimal? replayMeasuringSeq = null;
///
/// 实绩编号
///
[Description("实绩编号")]
[Nullable(false)]
[DataLength(24)]
public string ResultNo
{
get { return resultNo; }
set { resultNo = value; }
}
///
/// 材料号(管号)
///
[Description("材料号(管号)")]
[Nullable(false)]
[DataLength(20)]
public string MatNo
{
get { return matNo; }
set { matNo = value; }
}
///
/// 喷印管号
///
[Description("喷印管号")]
[Nullable(true)]
[DataLength(10)]
public decimal? MeasuringSeq
{
get { return measuringSeq; }
set { measuringSeq = value; }
}
///
/// 逐支跟踪号
///
[Description("逐支跟踪号")]
[Nullable(true)]
[DataLength(20)]
public string BarCode
{
get { return barCode; }
set { barCode = value; }
}
///
/// 位置代码
///
[Description("位置代码")]
[Nullable(false)]
[DataLength(20)]
public string PositionCode
{
get { return positionCode; }
set { positionCode = value; }
}
///
/// 不合项代码
///
[Description("不合项")]
[Nullable(true)]
[DataLength(20)]
public string UnpassCode
{
get { return unpassCode; }
set { unpassCode = value; }
}
///
/// 不合项
///
[Description("不合项")]
[Nullable(true)]
[DataLength(20)]
public string UnpassName
{
get { return unpassName; }
set { unpassName = value; }
}
///
/// 不合描述
///
[Description("不合描述")]
[Nullable(true)]
[DataLength(1)]
public string UnpassMemo
{
get { return unpassMemo; }
set { unpassMemo = value; }
}
///
/// 0-合格 1-不合 2-废品
///
[Description("状态")]
[Nullable(true)]
[DataLength(1)]
public string Station
{
get { return station; }
set { station = value; }
}
///
/// 处置代码
///
[Description("处置方式")]
[Nullable(true)]
[DataLength(20)]
public string TreatmentCode
{
get { return treatmentCode; }
set { treatmentCode = value; }
}
///
/// 处置方式
///
[Description("处置方式")]
[Nullable(true)]
[DataLength(20)]
public string TreatmentName
{
get { return treatmentName; }
set { treatmentName = value; }
}
///
/// 位置
///
[Description("位置")]
[Nullable(false)]
[DataLength(20)]
public string PositionName
{
get { return positionName; }
set { positionName = value; }
}
///
/// 责任单位代码
///
private string responsibleCode = "";
///
/// 责任单位
///
private string responsibleName = "";
///
/// 责任单位代码
///
[Description("责任单位")]
[Nullable(true)]
[DataLength(40)]
public string ResponsibleCode
{
get { return responsibleCode; }
set { responsibleCode = value; }
}
///
/// 责任单位
///
[Description("责任单位")]
[Nullable(true)]
[DataLength(40)]
public string ResponsibleName
{
get { return responsibleName; }
set { responsibleName = value; }
}
///
/// 处置代码(支)
///
private string treatmentCode1 = "";
///
/// 处置方式(支)
///
private string treatmentName1 = "";
///
/// 处置代码(支)
///
[Description("处置方式(支)")]
[Nullable(true)]
[DataLength(40)]
public string TreatmentCode1
{
get { return treatmentCode1; }
set { treatmentCode1 = value; }
}
///
/// 处置方式(支)
///
[Description("处置方式(支)")]
[Nullable(true)]
[DataLength(40)]
public string TreatmentName1
{
get { return treatmentName1; }
set { treatmentName1 = value; }
}
///
/// 是否尺寸检验(光管)
///
[Description("是否尺寸检验")]
[Nullable(true)]
[DataLength(1)]
public string IsSizeCheck
{
get { return isSizeCheck; }
set { isSizeCheck = value; }
}
///
/// 是否外观检验(光管)
///
[Description("是否外观检验")]
[Nullable(true)]
[DataLength(1)]
public string IsAppCheck
{
get { return isAppCheck; }
set { isAppCheck = value; }
}
///
/// 0-合格 1-废品 (光管)
///
[Description("最终状态")]
[Nullable(true)]
[DataLength(1)]
public string ReplayStation
{
get { return replayStation; }
set { replayStation = value; }
}
private string scrapCode = "";
///
/// 废品代码
///
[Description("废品代码")]
[Nullable(true)]
[DataLength(1)]
public string ScrapCode
{
get { return scrapCode; }
set { scrapCode = value; }
}
private string scrapName = "";
///
/// 废品代码
///
[Description("废品原因")]
[Nullable(true)]
[DataLength(1)]
public string ScrapName
{
get { return scrapName; }
set { scrapName = value; }
}
///
/// 处置代码
///
private string treatmentNo = "";
///
/// 处置代码
///
[Description("处置单号")]
[Nullable(false)]
[DataLength(40)]
public string TreatmentNo
{
get { return treatmentNo; }
set { treatmentNo = value; }
}
///
/// 最终管号
///
[Description("最终管号")]
[Nullable(false)]
[DataLength(40)]
public decimal? ReplayMeasuringSeq
{
get { return replayMeasuringSeq; }
set { replayMeasuringSeq = value; }
}
public MchFinalCheckResultDEntity Clone()
{
using (var memStream = new MemoryStream())
{
var binaryFormatter = new BinaryFormatter(null,
new StreamingContext(StreamingContextStates.Clone));
binaryFormatter.Serialize(memStream, this);
memStream.Seek(0, SeekOrigin.Begin);
return binaryFormatter.Deserialize(memStream) as MchFinalCheckResultDEntity;
}
}
}
}