using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using Core.Mes.Client.Comm.Attribute; namespace Core.StlMes.Client.Mcp.Treatment.Entity { public class YdmHttInitialEntityPlus : YdmHttInitialEntity { [Description("待判原因")] [Nullable(true)] [DataLength(100)] public string WatingDecisionMemo { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? SourceNum0 { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? SourceNum1 { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? SourceNum2 { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? SourceNumTotal { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? SourceNumTotal2 { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? GroupNum { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? FailNum { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? CouplingNum { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? JudgeNum { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? EndNum { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? XsActCount { get; set; } [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? CzNum { get; set; } //消耗支吨=期初+收料-缴库-废品-期末 [Description("支数")] [Nullable(true)] [DataLength(100)] public decimal? ConsumptionNum { get { return (ActCount ?? 0) + (SourceNumTotal2 ?? 0) - (JudgeNum ?? 0) - (FailNum ?? 0) - (EndNum ?? 0); // (EndNum ?? 0) + (FailNum ?? 0) + (JudgeNum ?? 0) - (ActCount ?? 0) - (SourceNumTotal ?? 0); } } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? SourceWt0 { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? SourceWt1 { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? SourceWt2 { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? SourceWtTotal { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? SourceWtTotal2 { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? GroupWt { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? FailWt { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? CouplingWt { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? JudgeWt { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? EndWt { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? XsActWeight { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? CzWeight { get; set; } [Description("重量")] [Nullable(true)] [DataLength(100)] public decimal? ConsumptionWt { get { return (ActWeight ?? 0) + (SourceWtTotal ?? 0) - (JudgeWt ?? 0) - (FailWt ?? 0) - (EndWt ?? 0); // return (EndWt ?? 0) + (FailWt ?? 0) + (JudgeWt ?? 0) - (ActWeight ?? 0) - (SourceWtTotal ?? 0); } } [Description("分切数")] [Nullable(true)] [DataLength(100)] public decimal? OutnumCut { get; set; } } }