using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using Core.Mes.Client.Comm.Attribute;
using Newtonsoft.Json;
namespace Core.StlMes.Client.SaleOrder
{
[Serializable]
public class CraftOrdDesignStdPicSmpDetailEntity:ICloneable
{
///
/// 工艺文件号
///
private string craftNo = "";
///
/// 工序代码
///
private string processCode = "";
///
/// ORD_LN_PK
///
private string ordLnPk = "";
///
/// CRAFT_SEQ
///
private string craftSeq = "";
///
/// CRAFT_SEQ
///
private string pic = "";
///
/// LOOP_VALUE
///
[Description("PIC")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("pic")]
public string Pic
{
get { return pic; }
set { pic = value; }
}
///
/// 工艺文件号
///
[Description("工艺文件号")]
[Nullable(false)]
[DataLength(150)]
public string CraftNo
{
get { return craftNo; }
set { craftNo = value; }
}
///
/// 工序代码
///
[Description("工序代码")]
[Nullable(false)]
[DataLength(100)]
public string ProcessCode
{
get { return processCode; }
set { processCode = value; }
}
///
/// ORD_LN_PK
///
[Description("ORD_LN_PK")]
[Nullable(false)]
[DataLength(150)]
public string OrdLnPk
{
get { return ordLnPk; }
set { ordLnPk = value; }
}
///
/// 序号
///
[Description("序号")]
[Nullable(false)]
[DataLength(150)]
public string CraftSeq
{
get { return craftSeq; }
set { craftSeq = value; }
}
///
/// DESGIN_KEY
///
private string type = "";
///
/// DESGIN_KEY
///
[Description("分类")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("type")]
public string Type
{
get { return type; }
set { type = value; }
}
///
/// SPLINE_NO
///
private string splineNo = "";
///
/// SPLINE_NO
///
[Description("试样码")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("splineNo")]
public string SplineNo
{
get { return splineNo; }
set { splineNo = value; }
}
///
/// PHY_CODE_MIN
///
private string phyCodeMin = "";
///
/// PHY_CODE_MIN
///
[Description("试样组代码")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("phyCodeMin")]
public string PhyCodeMin
{
get { return phyCodeMin; }
set { phyCodeMin = value; }
}
///
/// PHY_NAME_MIN
///
private string phyNameMin = "";
///
/// PHY_NAME_MIN
///
[Description("试样组")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("phyNameMin")]
public string PhyNameMin
{
get { return phyNameMin; }
set { phyNameMin = value; }
}
///
/// RATE
///
private string rate = "";
///
/// RATE
///
[Description("取样频率代码")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("rate")]
public string Rate
{
get { return rate; }
set { rate = value; }
}
///
/// DESC_RATE
///
private string descRate = "";
///
/// DESC_RATE
///
[Description("取样频率")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("descRate")]
public string DescRate
{
get { return descRate; }
set { descRate = value; }
}
///
/// BATCH_UNIT
///
private string batchUnit = "";
///
/// BATCH_UNIT
///
[Description("分批单位")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("batchUnit")]
public string BatchUnit
{
get { return batchUnit; }
set { batchUnit = value; }
}
///
/// BATCH_CNT
///
private string batchCnt = "";
///
/// BATCH_CNT
///
[Description("分批数量")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("batchCnt")]
public string BatchCnt
{
get { return batchCnt; }
set { batchCnt = value; }
}
///
/// BATCH_CNT
///
private string batchCntM = "";
///
/// BATCH_CNT
///
[Description("母管分批数量")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("batchCntM")]
public string BatchCntM
{
get { return batchCntM; }
set { batchCntM = value; }
}
///
/// SAMPLE_COUNT
///
private string sampleCount = "";
///
/// SAMPLE_COUNT
///
[Description("样条个数(每管头)")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("sampleCount")]
public string SampleCount
{
get { return sampleCount; }
set { sampleCount = value; }
}
///
/// DESC_COUNT
///
private string descCount = "";
///
/// DESC_COUNT
///
[Description("管头个数(每炉或批)")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("descCount")]
public string DescCount
{
get { return descCount; }
set { descCount = value; }
}
///
/// POSITION
///
private string position = "";
///
/// POSITION
///
[Description("取样位置代码")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("position")]
public string Position
{
get { return position; }
set { position = value; }
}
///
/// DESC_POSITION
///
private string descPosition = "";
///
/// DESC_POSITION
///
[Description("取样位置")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("type")]
public string DescPosition
{
get { return descPosition; }
set { descPosition = value; }
}
///
/// LENGTH
///
private string length = "";
///
/// LENGTH
///
[Description("样条长度")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("length")]
public string Length
{
get { return length; }
set { length = value; }
}
///
/// WIDTH
///
private string width = "";
///
/// WIDTH
///
[Description("样条宽度")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("width")]
public string Width
{
get { return width; }
set { width = value; }
}
///
/// SAMPLE_STYLE
///
private string sampleStyle = "";
///
/// SAMPLE_STYLE
///
[Description("样条形状代码")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("sampleStyle")]
public string SampleStyle
{
get { return sampleStyle; }
set { sampleStyle = value; }
}
///
/// SAMPLE_STYLE_DESC
///
private string sampleStyleDesc = "";
///
/// SAMPLE_STYLE_DESC
///
[Description("样条形状")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("sampleStyle")]
public string SampleStyleDesc
{
get { return sampleStyleDesc; }
set { sampleStyleDesc = value; }
}
///
/// PHY_NAME_GROUP
///
private string phyNameGroup = "";
///
/// PHY_NAME_GROUP
///
[Description("检验项集合")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("phyNameGroup")]
public string PhyNameGroup
{
get { return phyNameGroup; }
set { phyNameGroup = value; }
}
///
/// PHY_NAME_GROUP
///
private string phyCodeGroup = "";
///
/// PHY_CODE_GROUP
///
[Description("检验项集合")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("phyCodeGroup")]
public string PhyCodeGroup
{
get { return phyCodeGroup; }
set { phyCodeGroup = value; }
}
///
/// ATTACH_PERCENT
///
private string attachPercent = "";
///
/// ATTACH_PERCENT
///
[Description("抽样比例")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("attachPercent")]
public string AttachPercent
{
get { return attachPercent; }
set { attachPercent = value; }
}
///
/// ATTACH_COUNT
///
private string attachCount = "";
///
/// ATTACH_COUNT
///
[Description("抽样比例最小管数")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("attachCount")]
public string AttachCount
{
get { return attachCount; }
set { attachCount = value; }
}
///
/// TOP_STOVE
///
private string topStove = "";
///
/// TOP_STOVE
///
[Description("前几炉(生产批)")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("topStove")]
public string TopStove
{
get { return topStove; }
set { topStove = value; }
}
///
/// LOOP_VALUE
///
private string loopValue = "";
///
/// LOOP_VALUE
///
[Description("循环炉数(生产批)")]
[Nullable(false)]
[DataLength(40)]
[JsonProperty("loopValue")]
public string LoopValue
{
get { return loopValue; }
set { loopValue = value; }
}
public object 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);
}
}
}
}