using System; using System.Linq; using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.LgClassModel; using CoreFS.CA06; namespace Core.StlMes.Client.LgResMgt { public class ClsResEafBLL { /// /// 获取StlEafOptinfoEntity 实体类 /// /// 电炉号 /// /// 站点 如 EAF01 /// public static StlEafOptinfoEntity GetStlEafOptinfoEntity(string strStoveNo, OpeBase ob, string stationcode) { try { var list = EntityHelper.GetData( "Core.LgMes.Server.LgDeviceManager.PerformanceManage.SelectStlEafOptinfoEntity", new object[] {strStoveNo}, ob); if ((list == null) || (list.Count <= 0)) return new StlEafOptinfoEntity { StoveNo = strStoveNo, Disposaltime = "01", Stationcode = stationcode }; return list.FirstOrDefault(); } catch (Exception ex) { return new StlEafOptinfoEntity {StoveNo = strStoveNo}; } } } }