using Core.Mes.Client.Comm.Attribute; 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 Newtonsoft.Json; namespace com.steering.mes.mcp.entity { [Serializable] /// /// 数据库表HTT_CRACK_DETECTION_ET所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/) /// 作者:tgcx-test 时间:2018-06-16 /// public class HttCrackDetectionEtEntity { /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// private string resultNo = ""; /// /// 炉计划ID /// private string heatPlanNo = ""; /// /// 产线代码 /// private string plineCode = ""; /// /// 产线描述 /// private string plineName = ""; /// /// 探伤支数 /// private decimal? testingNum = null; private decimal? testingWt = null; /// /// 合格支数 /// private decimal? passNum = null; /// /// 可疑支数 /// private decimal? dubiousNum = null; /// /// 复探支数 /// private decimal? ftestingNum = null; /// /// 复探合格支数 /// private decimal? fpassNum = null; /// /// 复原因 /// private string ftestingReason = ""; /// /// 最终合格支数 /// private decimal? epassNum = null; /// /// 最终废品支数 /// private decimal? ewasteNum = null; /// /// 废品原因 /// private string ewasteReason = ""; /// /// 采集/录入时间 /// private string colTime = ""; /// /// 采集/录入时间 /// private string colEndTime = ""; /// /// 操作人 /// private string colUser = ""; /// /// 操作班次 /// private string colShift = ""; /// /// 操作班组 /// private string colGroup = ""; /// /// 操作时间 /// private string createTime = ""; /// /// 修改时间 /// private string updateTime = ""; /// /// 修改人 /// private string updateName = ""; /// /// 生产(年月日) /// private string proYearMonthDay = ""; /// /// 结算日期(年月) /// private string balYearMonth = ""; /// /// 热处理次数 /// private decimal? processSeq = null; /// /// 批号 /// private string batchNo = ""; /// /// 合格支数(手探) /// private decimal? manualPassNum = null; /// /// 修磨复探合格支数(手探) /// private decimal? manualFtestingNum = null; /// /// 判切支数(手探) /// private decimal? rejectedNum = null; /// /// 最终合格支数(手探) /// private decimal? finalNum = null; /// /// 判废支数(手探) /// private decimal? rejectNum = null; /// /// 废品总米长 /// private decimal? totalFailLen = null; /// /// 待判支数 /// private decimal? pendingNum = null; /// /// 样管刻槽信息 /// private string notchInfo = ""; /// /// 槽长 /// private string notchLength = ""; /// /// 槽宽 /// private string notchWidth = ""; /// /// 槽深 /// private string notchDepth = ""; private string workUnit = ""; private string testingTime = ""; private string frimFlag = ""; [Description("是否审核")] [JsonProperty("frimFlag")] public string FrimFlag { get { return frimFlag; } set { if (value == "0") { frimFlag = "未审核"; } else if (value == "1") { frimFlag = "已审核"; } else { frimFlag = "已批准"; } ; } } /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// [Description("实绩编号")] [JsonProperty("resultNo")] public string ResultNo { get { return resultNo; } set { resultNo = value; } } /// /// 炉计划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("testingNum")] public decimal? TestingNum { get { return testingNum; } set { testingNum = value; } } /// /// 探伤支数 /// [Description("探伤重量")] [JsonProperty("testingWt")] public decimal? TestingWt { get { return testingWt; } set { testingWt = value; } } /// /// 合格支数 /// [Description("合格支数")] [JsonProperty("passNum")] public decimal? PassNum { get { return passNum; } set { passNum = value; } } /// /// 可疑支数 /// [Description("可疑支数")] [JsonProperty("dubiousNum")] public decimal? DubiousNum { get { return dubiousNum; } set { dubiousNum = value; } } /// /// 复探支数 /// [Description("复探支数")] [JsonProperty("ftestingNum")] public decimal? FtestingNum { get { return ftestingNum; } set { ftestingNum = value; } } /// /// 复探合格支数 /// [Description("复探合格支数")] [JsonProperty("fpassNum")] public decimal? FpassNum { get { return fpassNum; } set { fpassNum = value; } } /// /// 复原因 /// [Description("可疑原因")] [JsonProperty("ftestingReason")] public string FtestingReason { get { return ftestingReason; } set { ftestingReason = value; } } /// /// 最终合格支数 /// [Description("最终合格支数")] [JsonProperty("epassNum")] public decimal? EpassNum { get { return epassNum; } set { epassNum = value; } } /// /// 最终废品支数 /// [Description("最终废品支数")] [JsonProperty("ewasteNum")] public decimal? EwasteNum { get { return ewasteNum; } set { ewasteNum = value; } } /// /// 废品原因 /// [Description("废品原因")] [JsonProperty("ewasteReason")] public string EwasteReason { get { return ewasteReason; } set { ewasteReason = value; } } /// /// 采集/录入时间 /// [Description("开始时间")] [JsonProperty("colTime")] public string ColTime { get { return colTime; } set { colTime = value; } } /// /// 采集/录入时间 /// [Description("结束时间")] [JsonProperty("colTime")] public string ColEndTime { get { return colEndTime; } set { colEndTime = value; } } /// /// 操作人 /// [Description("操作人")] [JsonProperty("colUser")] public string ColUser { get { return colUser; } set { colUser = value; } } /// /// 操作班次 /// [Description("班次")] [JsonProperty("colShift")] public string ColShift { get { return colShift; } set { colShift = value; } } /// /// 操作班组 /// [Description("班组")] [JsonProperty("colGroup")] public string ColGroup { get { return colGroup; } set { colGroup = value; } } /// /// 操作时间 /// [Description("操作时间")] [JsonProperty("createTime")] public string CreateTime { get { return createTime; } set { createTime = value; } } /// /// 修改时间 /// [Description("修改时间")] [JsonProperty("updateTime")] public string UpdateTime { get { return updateTime; } set { updateTime = value; } } /// /// 修改人 /// [Description("修改人")] [JsonProperty("updateName")] public string UpdateName { get { return updateName; } set { updateName = 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("processSeq")] public decimal? ProcessSeq { get { return processSeq; } set { processSeq = value; } } /// /// 批号 /// [Description("批号")] [JsonProperty("batchNo")] public string BatchNo { get { return batchNo; } set { batchNo = value; } } /// /// 合格支数(手探) /// [Description("合格支数")] [JsonProperty("manualPassNum")] public decimal? ManualPassNum { get { return manualPassNum; } set { manualPassNum = value; } } /// /// 修磨复探合格支数(手探) /// [Description("修磨复探合格支数")] [JsonProperty("manualFtestingNum")] public decimal? ManualFtestingNum { get { return manualFtestingNum; } set { manualFtestingNum = value; } } /// /// 判切支数(手探) /// [Description("判切支数")] [JsonProperty("rejectedNum")] public decimal? RejectedNum { get { return rejectedNum; } set { rejectedNum = value; } } /// /// 最终合格支数(手探) /// [Description("最终合格支数")] [JsonProperty("finalNum")] public decimal? FinalNum { get { return finalNum; } set { finalNum = value; } } /// /// 判废支数(手探) /// [Description("判废支数")] [JsonProperty("rejectNum")] public decimal? RejectNum { get { return rejectNum; } set { rejectNum = value; } } /// /// 废品总米长 /// [Description("判切总米长")] [JsonProperty("totalFailLen")] public decimal? TotalFailLen { get { return totalFailLen; } set { totalFailLen = value; } } [Description("探伤报告")] [JsonProperty("Report")] public string Report { get; set; } [Description("管端手探报告")] [JsonProperty("ReportManual")] public string ReportManual { get; set; } [Description("涡流探伤报告")] [JsonProperty("ReportEt")] public string ReportEt { get; set; } [Description("管体探伤报告")] [JsonProperty("Report")] public string ReportFull { get; set; } [Description("管端手探报告")] [JsonProperty("ReportManual")] public string ReportManualFull { get; set; } [Description("涡流探伤报告")] [JsonProperty("ReportEt")] public string ReportEtFull { get; set; } /// /// 合格支数 /// private decimal? passNumEt = null; /// /// 可疑支数 /// private decimal? dubiousNumEt = null; /// /// 复探支数 /// private decimal? ftestingNumEt = null; /// /// 复探合格支数 /// private decimal? fpassNumEt = null; /// /// 最终合格支数 /// private decimal? epassNumEt = null; /// /// 最终废品支数 /// private decimal? ewasteNumEt = null; /// /// 合格支数 /// [Description("合格支数")] [JsonProperty("passNumEt")] public decimal? PassNumEt { get { return passNumEt; } set { passNumEt = value; } } /// /// 可疑支数 /// [Description("可疑支数")] [JsonProperty("dubiousNumEt")] public decimal? DubiousNumEt { get { return dubiousNumEt; } set { dubiousNumEt = value; } } /// /// 复探支数 /// [Description("复探支数")] [JsonProperty("ftestingNumEt")] public decimal? FtestingNumEt { get { return ftestingNumEt; } set { ftestingNumEt = value; } } /// /// 复探合格支数 /// [Description("复探合格支数")] [JsonProperty("fpassNumEt")] public decimal? FpassNumEt { get { return fpassNumEt; } set { fpassNumEt = value; } } /// /// 最终合格支数 /// [Description("最终合格支数")] [JsonProperty("epassNumEt")] public decimal? EpassNumEt { get { return epassNumEt; } set { epassNumEt = value; } } /// /// 最终废品支数 /// [Description("废品支数")] [JsonProperty("ewasteNumEt")] public decimal? EwasteNumEt { get { return ewasteNumEt; } set { ewasteNumEt = value; } } /// /// 待判支数 /// [Description("待判支数")] [JsonProperty("pendingNum")] public decimal? PendingNum { get { return pendingNum; } set { pendingNum = value; } } /// /// 样管刻槽信息 /// [Description("刻槽方向")] [JsonProperty("notchInfo")] public string NotchInfo { get { return notchInfo; } set { notchInfo = value; } } /// /// 槽长 /// [Description("槽长")] [JsonProperty("notchLength")] public string NotchLength { get { return notchLength; } set { notchLength = value; } } /// /// 槽宽 /// [Description("槽宽")] [JsonProperty("notchWidth")] public string NotchWidth { get { return notchWidth; } set { notchWidth = value; } } /// /// 槽深 /// [Description("槽深")] [JsonProperty("notchDepth")] public string NotchDepth { get { return notchDepth; } set { notchDepth = value; } } /// /// /// [Description("类型")] [JsonProperty("testingTime")] public string TestingTime { get { return testingTime; } set { testingTime = value; } } private string machineNo = ""; /// /// 机器编号 /// [Description("机器编号")] [JsonProperty("MACHINE_NO")] public string MachineNo { get { return machineNo; } set { machineNo = value; } } /// /// 探伤等级 /// private string testingGrade = ""; /// /// 判定炉号 /// private string judgeStoveNo = ""; /// /// 工序代码 /// private string processCode = ""; /// /// 不合原因(管端) /// private string disqualifiedReason = ""; /// /// 切合支数(管端) /// private decimal? qualifiedNumAfterCut = null; /// /// 不合支数(管端) /// private decimal? disqualifiedNum = null; /// /// 报表模板 0:管体超声UT 1:管端手探超声UT 4涡流ET 10: 管端超声UT 11: 管端手动磁粉MT 12:管端磁粉MT 13螺纹磁粉MT 14:管端电磁声EMAT 15: /// private string reportNo = ""; /// /// 探伤等级 /// [Description("探伤等级")] [Nullable(true)] [DataLength(10)] public string TestingGrade { get { return testingGrade; } set { testingGrade = value; } } /// /// 判定炉号 /// [Description("判定炉号")] [Nullable(true)] [DataLength(6)] public string JudgeStoveNo { get { return judgeStoveNo; } set { judgeStoveNo = value; } } /// /// 工序代码 /// [Description("工序代码")] [Nullable(true)] [DataLength(2)] public string ProcessCode { get { return processCode; } set { processCode = value; } } /// /// 不合原因(管端) /// [Description("不合原因")] [Nullable(true)] [DataLength(100)] public string DisqualifiedReason { get { return disqualifiedReason; } set { disqualifiedReason = value; } } /// /// 切合支数(管端) /// [Description("切合支数")] [Nullable(true)] [DataLength(6)] public decimal? QualifiedNumAfterCut { get { return qualifiedNumAfterCut; } set { qualifiedNumAfterCut = value; } } /// /// 不合支数(管端) /// [Description("不合支数")] [Nullable(true)] [DataLength(100)] public decimal? DisqualifiedNum { get { return disqualifiedNum; } set { disqualifiedNum = value; } } /// /// 报表模板 0:管体超声UT 1:管端手探超声UT 4涡流ET 10: 管端超声UT 11: 管端手动磁粉MT 12:管端磁粉MT 13螺纹磁粉MT 14:管端电磁声EMAT 15: /// [Description("探伤类型")] [Nullable(true)] [DataLength(5)] public string ReportNo { get { return reportNo; } set { reportNo = value; } } /// /// 探伤类型 /// private string testingType = ""; /// /// 探伤类型 /// [Description("探伤种类")] [Nullable(true)] [DataLength(20)] public string TestingType { get { return testingType; } set { testingType = value; } } /// /// 0- 管体 1-管端 /// private string testingPosition = ""; /// /// 0- 管体 1-管端 /// [Description("管体/管端")] [Nullable(true)] [DataLength(5)] public string TestingPosition { get { return testingPosition; } set { testingPosition = value; } } /// /// 0- 管体 1-管端 /// private string testingStandard = ""; /// /// /// [Description("探伤标准")] [Nullable(true)] [DataLength(5)] public string TestingStandard { get { return testingStandard; } set { testingStandard = value; } } private decimal? ewasteWt = null; /// /// 废品重量 (通用) /// [Description("废品重量")] [Nullable(true)] [DataLength(8)] public decimal? EwasteWt { get { return ewasteWt; } set { ewasteWt = value; } } [Description("备注")] public string Memo { get { return memo; } set { memo = value; } } [Description("作业单位")] [JsonProperty("workUnit")] public string WorkUnit { get { return workUnit; } set { workUnit = value; } } private string memo = ""; public HttCrackDetectionEtEntity 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 HttCrackDetectionEtEntity; } } } }