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