| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- 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 CraftOrdDesignStdPicSmpTotalEntity: 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>
- /// 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>
- /// 工艺文件号
- /// </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>
- /// 根据批数分情况讨论
- /// </summary>
- private decimal? batchNum;
- /// <summary>
- /// 根据批数分情况讨论
- /// </summary>
- [Description("分类")]
- [Nullable(false)]
- [DataLength(40)]
- [JsonProperty("type")]
- public decimal? BatchNum
- {
- get { return batchNum; }
- set { batchNum = value; }
- }
- /// <summary>
- /// 第几批
- /// </summary>
- private decimal? batchNo = 0;
- /// <summary>
- /// 第几批
- /// </summary>
- [Description("批号")]
- [Nullable(false)]
- [DataLength(40)]
- [JsonProperty("batchNo")]
- public decimal? BatchNo
- {
- get { return batchNo; }
- set { batchNo = value; }
- }
- /// <summary>
- /// SAMPLE_LENGTH
- /// </summary>
- private string sampleLength = "";
- /// <summary>
- /// SAMPLE_NO
- /// </summary>
- [Description("样管长度")]
- [Nullable(false)]
- [DataLength(40)]
- [JsonProperty("sampleLength")]
- public string SampleLength
- {
- get { return sampleLength; }
- set { sampleLength = 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>
- /// 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>
- /// REMARK
- /// </summary>
- private string remark = "";
- /// <summary>
- /// REMARK
- /// </summary>
- [Description("备注说明")]
- [Nullable(false)]
- [DataLength(40)]
- [JsonProperty("remark")]
- public string Remark
- {
- get { return remark; }
- set { remark = 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>
- /// SPLINE_NO
- /// </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>
- /// 根据炉数分情况讨论,可能是公式 5n+2 或者<=2
- /// </summary>
- private string stoveNum = "";
- /// <summary>
- /// 根据炉数分情况讨论,可能是公式 5n+2 或者<=2
- /// </summary>
- [Description("炉数")]
- [Nullable(true)]
- [DataLength(20)]
- public string StoveNum
- {
- get { return stoveNum; }
- set { stoveNum = value; }
- }
- public object Tag { get; set; }
- 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);
- }
- }
- }
- }
|