using System;
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 com.steering.mes.mcp.entity
{
///
/// 数据库表MCH_THREADER_RESULT所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/)
/// 作者:tgcx-test 时间:2018-10-15
///
[Serializable]
public class MchThreaderResultEntity
{
///
/// 结算日期(年月)
///
private string balYearMonth = "";
///
/// 批号
///
private string batchNo = "";
///
/// 创建时间
///
private string createTime = "";
///
/// 废品支数
///
private decimal? failNum;
///
/// 废品重量
///
private decimal? failWt;
///
/// 炉计划ID
///
private string heatPlanNo = "";
///
/// 是否监制
///
private string ifMonitorRcl = "";
///
/// 判定炉号
///
private string judgeStoveNo = "";
///
/// 分切数
///
private decimal? outnumCut;
///
/// 产线代码
///
private string plineCode = "";
///
/// 产线描述
///
private string plineName = "";
///
/// 监制编号
///
private string prdcrNo = "";
///
/// 监制人
///
private string producer = "";
///
/// 监制到场时间
///
private string producerTime = "";
///
/// 操作班组
///
private string proGroup = "";
///
/// 作业支数(有效生产数量)
///
private decimal? proNum;
///
/// 操作班次
///
private string proShift = "";
///
/// 操作时间
///
private string proTime = "";
///
/// 操作人
///
private string proUser = "";
///
/// 作业重量
///
private decimal? proWt;
///
/// 生产(年月日)
///
private string proYearMonthDay = "";
///
/// 实绩编号(机组+工序点代码+年月日+6位流水)
///
private string resultNo = "";
///
/// 炉计划ID
///
[Description("炉计划ID")]
[JsonProperty("heatPlanNo")]
public string HeatPlanNo
{
get { return heatPlanNo; }
set { heatPlanNo = value; }
}
///
/// 产线代码
///
[Description("产线代码")]
[JsonProperty("plineCode")]
public string PlineCode
{
get { return plineCode; }
set { plineCode = value; }
}
///
/// 产线描述
///
[Description("产线描述")]
[JsonProperty("plineName")]
public string PlineName
{
get { return plineName; }
set { plineName = value; }
}
///
/// 是否监制
///
[Description("是否监制")]
[JsonProperty("ifMonitorRcl")]
public string IfMonitorRcl
{
get { return ifMonitorRcl; }
set { ifMonitorRcl = value; }
}
///
/// 监制编号
///
[Description("监制编号")]
[JsonProperty("prdcrNo")]
public string PrdcrNo
{
get { return prdcrNo; }
set { prdcrNo = value; }
}
///
/// 监制人
///
[Description("监制人")]
[JsonProperty("producer")]
public string Producer
{
get { return producer; }
set { producer = value; }
}
///
/// 监制到场时间
///
[Description("监制到场时间")]
[JsonProperty("producerTime")]
public string ProducerTime
{
get { return producerTime; }
set { producerTime = value; }
}
///
/// 分切数
///
[Description("分切数")]
[JsonProperty("outnumCut")]
public decimal? OutnumCut
{
get { return outnumCut; }
set { outnumCut = value; }
}
///
/// 作业支数(有效生产数量)
///
[Description("作业支数")]
[JsonProperty("proNum")]
public decimal? ProNum
{
get { return proNum; }
set { proNum = value; }
}
///
/// 作业重量
///
[Description("作业重量")]
[JsonProperty("proWt")]
public decimal? ProWt
{
get { return proWt; }
set { proWt = value; }
}
///
/// 废品支数
///
[Description("废品支数")]
[JsonProperty("failNum")]
public decimal? FailNum
{
get { return failNum; }
set { failNum = value; }
}
///
/// 废品重量
///
[Description("废品重量")]
[JsonProperty("failWt")]
public decimal? FailWt
{
get { return failWt; }
set { failWt = value; }
}
///
/// 生产(年月日)
///
[Description("生产(年月日)")]
[JsonProperty("proYearMonthDay")]
public string ProYearMonthDay
{
get { return proYearMonthDay; }
set { proYearMonthDay = value; }
}
///
/// 结算日期(年月)
///
[Description("结算日期(年月)")]
[JsonProperty("balYearMonth")]
public string BalYearMonth
{
get { return balYearMonth; }
set { balYearMonth = value; }
}
///
/// 操作班次
///
[Description("班次")]
[JsonProperty("proShift")]
public string ProShift
{
get { return proShift; }
set { proShift = value; }
}
///
/// 操作班组
///
[Description("班组")]
[JsonProperty("proGroup")]
public string ProGroup
{
get { return proGroup; }
set { proGroup = value; }
}
///
/// 创建时间
///
[Description("创建时间")]
[JsonProperty("createTime")]
public string CreateTime
{
get { return createTime; }
set { createTime = value; }
}
///
/// 批号
///
[Description("批号")]
[JsonProperty("batchNo")]
public string BatchNo
{
get { return batchNo; }
set { batchNo = value; }
}
///
/// 操作人
///
[Description("操作人")]
[JsonProperty("proUser")]
public string ProUser
{
get { return proUser; }
set { proUser = value; }
}
///
/// 操作时间
///
[Description("操作时间")]
[JsonProperty("proTime")]
public string ProTime
{
get { return proTime; }
set { proTime = value; }
}
///
/// 判定炉号
///
[Description("判定炉号")]
[JsonProperty("judgeStoveNo")]
public string JudgeStoveNo
{
get { return judgeStoveNo; }
set { judgeStoveNo = value; }
}
///
/// 实绩编号(机组+工序点代码+年月日+6位流水)
///
[Description("实绩编号")]
[JsonProperty("resultNo")]
public string ResultNo
{
get { return resultNo; }
set { resultNo = value; }
}
private decimal? machineNo;
///
/// 机器编号
///
[Description("机器编号")]
[Nullable(true)]
[DataLength(2)]
public decimal? MachineNo
{
get { return machineNo; }
set { machineNo = value; }
}
[Description("合同号")]
public string OrderNo { get; set; }
public MchThreaderResultEntity 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 MchThreaderResultEntity;
}
}
}
}