using System.Collections.Generic; using System.Linq; using Core.Mes.Client.Comm.Tool; namespace Core.StlMes.Client.Mcp.Control.Entity { public class HttOfflineResultDentity { public bool Chk { get; set; } /// /// 实绩编号RESULT_NO /// private string resultNo = ""; public string ResultNo { get { return resultNo; } set { resultNo = value; } } /// /// 序号RESULT_SQE /// private string resultSqe = ""; public string ResultSqe { get { return resultSqe; } set { resultSqe = value; } } /// /// 炉计划ID HEAT_PLAN_NO /// private string heatPlanNo = ""; public string HeatPlanNo { get { return heatPlanNo; } set { heatPlanNo = value; } } /// /// 产线PLINE_CODE /// private string plineCode = ""; public string PlineCode { get { return plineCode; } set { plineCode = value; } } /// /// 产线描述PLINE_NAME /// private string plineName = ""; public string PlineName { get { return plineName; } set { plineName = value; } } /// /// 离线支数OFFLINE_NUM /// private string offlineNum = ""; public string OfflineNum { get { return offlineNum; } set { offlineNum = value; } } /// /// 离线重量OFFLINE_WT /// private string offlineWt = ""; public string OfflineWt { get { return offlineWt; } set { offlineWt = value; } } /// /// 物流去向代码GOWHERE_CODE /// private string gowhereCode = ""; public string GowhereCode { get { return gowhereCode; } set { gowhereCode = value; } } /// /// 物流去向名称GOWHERE_NAME /// private string gowhereName = ""; public string GowhereName { get { return gowhereName; } set { gowhereName = value; } } ///创建时间CREATE_TIME /// private string createTime = ""; public string CreateTime { get { return createTime; } set { createTime = value; } } ///工序点代码STATION_CODE /// private string stationCode = ""; public string StationCode { get { return stationCode; } set { stationCode = value; } } ///工序点描述STATION_DESC /// private string stationDesc = ""; public string StationDesc { get { return stationDesc; } set { stationDesc = value; } } ///工序点描述STATION_DESC /// private string batchNo = ""; public string BatchNo { get { return batchNo; } set { batchNo = value; } } ///工序点描述STATION_DESC /// private string memo = ""; public string Memo { get { return memo; } set { memo = value; } } protected string matNo = ""; public string MatNo { get { var list = listPortMarts.Where(p => p.Check).Select(p => p.MatNo).ToList(); return list.Any()?list.Aggregate((a, b) =>( a==""?"" : (a+ ","))+ b):""; } } private List listPortMarts = new DataSourceList(); public List ListPortMarts { get { return listPortMarts==null?new List() : listPortMarts.Where(p => p.PhyBatchNo == BatchNo).ToList(); } set { listPortMarts = value; } } public List GetTotal() { return listPortMarts; } } }