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