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 ClsResLfsBLL { /// /// 获取StlLfsOptinfoEntity 的实体类 /// /// 电炉号 /// /// 工序点 如LF01 /// public static StlLfsOptinfoEntity GetStlLfsOptinfoEntity(string strStoveNo, OpeBase ob, string stationcode) { try { var list = EntityHelper.GetData( "Core.LgMes.Server.LgDeviceManager.PerformanceManage.SelectStlLfsOptinfoEntity", new object[] {strStoveNo}, ob); if ((list == null) || (list.Count <= 0)) return new StlLfsOptinfoEntity { StoveNo = strStoveNo, Disposaltime = "01", Stationcode = stationcode }; return list.FirstOrDefault(); } catch (Exception ex) { return new StlLfsOptinfoEntity {StoveNo = strStoveNo}; } } } }