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