| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.IO;
- using System.Runtime.Serialization;
- using System.Runtime.Serialization.Formatters.Binary;
- using Core.Mes.Client.Comm.Attribute;
- using Newtonsoft.Json;
- namespace Core.StlMes.Client.Mcp.Control.Entity
- {
- [Serializable]
- /// <summary>
- /// 数据库表MCH_BUG_D所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/)
- /// 作者:tgcx-test 时间:2018-09-03
- /// </summary>
- public class MchBugDEntity
- {
- /// <summary>
- /// 废品缺陷编号(实绩编号+3位流水)
- /// </summary>
- private string failBill = "";
- /// <summary>
- /// 废品缺陷序号
- /// </summary>
- private string failBillSqe = "";
- /// <summary>
- /// 实绩编号(机组+工序点代码+年月日+6位流水)
- /// </summary>
- private string resultNo = "";
- /// <summary>
- /// 炉计划ID
- /// </summary>
- private string heatPlanNo = "";
- /// <summary>
- /// 缺陷代码
- /// </summary>
- private string failTypeCode = "";
- /// <summary>
- /// 缺陷名称
- /// </summary>
- private string failTypeName = "";
- /// <summary>
- /// 废品支数
- /// </summary>
- private decimal? failNum = null;
- /// <summary>
- /// 废品重量
- /// </summary>
- private decimal? failWt = null;
- /// <summary>
- /// 产线代码
- /// </summary>
- private string plineCode = "";
- /// <summary>
- /// 产线描述
- /// </summary>
- private string plineName = "";
- /// <summary>
- /// 废品分类(00可疑、10废品、20绝废)
- /// </summary>
- private string failSort = "";
- /// <summary>
- /// 废品去向
- /// </summary>
- private string failDirect = "";
- /// <summary>
- /// 批号
- /// </summary>
- private string batchNo = "";
- /// <summary>
- ///
- /// </summary>
- [Description("选择")]
- [Nullable(false)]
- [DataLength(30)]
- public bool Chk { get; set; }
- /// <summary>
- /// 废品缺陷编号(实绩编号+3位流水)
- /// </summary>
- [Description("废品缺陷编号(实绩编号+3位流水)")]
- [JsonProperty("failBill")]
- public string FailBill
- {
- get { return failBill; }
- set { failBill = value; }
- }
- /// <summary>
- /// 废品缺陷序号
- /// </summary>
- [Description("废品缺陷序号")]
- [JsonProperty("failBillSqe")]
- public string FailBillSqe
- {
- get { return failBillSqe; }
- set { failBillSqe = value; }
- }
- /// <summary>
- /// 实绩编号(机组+工序点代码+年月日+6位流水)
- /// </summary>
- [Description("实绩编号(机组+工序点代码+年月日+6位流水)")]
- [JsonProperty("resultNo")]
- public string ResultNo
- {
- get { return resultNo; }
- set { resultNo = value; }
- }
- /// <summary>
- /// 炉计划ID
- /// </summary>
- [Description("炉计划ID")]
- [JsonProperty("heatPlanNo")]
- public string HeatPlanNo
- {
- get { return heatPlanNo; }
- set { heatPlanNo = value; }
- }
- /// <summary>
- /// 缺陷代码
- /// </summary>
- [Description("原因")]
- [JsonProperty("failTypeCode")]
- public string FailTypeCode
- {
- get { return failTypeCode; }
- set { failTypeCode = value; }
- }
- /// <summary>
- /// 缺陷名称
- /// </summary>
- [Description("缺陷名称")]
- [JsonProperty("failTypeName")]
- public string FailTypeName
- {
- get { return failTypeName; }
- set { failTypeName = value; }
- }
- /// <summary>
- /// 支数
- /// </summary>
- [Description("支数")]
- [JsonProperty("failNum")]
- public decimal? FailNum
- {
- get { return failNum; }
- set { failNum = value; }
- }
- /// <summary>
- /// 废品重量
- /// </summary>
- [Description("重量")]
- [JsonProperty("failWt")]
- public decimal? FailWt
- {
- get { return failWt; }
- set { failWt = value; }
- }
- /// <summary>
- /// 产线代码
- /// </summary>
- [Description("产线代码")]
- [JsonProperty("plineCode")]
- public string PlineCode
- {
- get { return plineCode; }
- set { plineCode = value; }
- }
- /// <summary>
- /// 产线描述
- /// </summary>
- [Description("产线描述")]
- [JsonProperty("plineName")]
- public string PlineName
- {
- get { return plineName; }
- set { plineName = value; }
- }
- /// <summary>
- /// 废品分类(00可疑、10废品、20绝废)
- /// </summary>
- [Description("废品分类(00可疑、10废品、20绝废)")]
- [JsonProperty("failSort")]
- public string FailSort
- {
- get { return failSort; }
- set { failSort = value; }
- }
- /// <summary>
- /// 废品去向
- /// </summary>
- [Description("废品去向")]
- [JsonProperty("failDirect")]
- public string FailDirect
- {
- get { return failDirect; }
- set { failDirect = value; }
- }
- /// <summary>
- /// 批号
- /// </summary>
- [Description("批号")]
- [JsonProperty("batchNo")]
- public string BatchNo
- {
- get { return batchNo; }
- set { batchNo = value; }
- }
- protected string matNo = "";
- /// <summary>
- /// 批号
- /// </summary>
- [Description("材料号")]
- [Nullable(true)]
- [DataLength(8)]
- public string MatNo
- {
- get { return matNo; }
- set { matNo = value; }
- }
- public List<PortMchBatchSampleResultEntityWithCheck> ListData { get; set; }
- public MchBugDEntity 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 MchBugDEntity;
- }
- }
- }
- }
|