| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 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
- {
- /// <summary>
- /// 获取StlVdsOptinfoEntity 的实体类
- /// </summary>
- /// <param name="strStoveNo">电炉号</param>
- /// <param name="ob"></param>
- /// <param name="stationcode">工序点 如VD01</param>
- /// <returns></returns>
- public static StlVdsOptinfoEntity GetStlVdsOptinfoEntity(string strStoveNo, OpeBase ob, string stationcode)
- {
- try
- {
- var list =
- EntityHelper.GetData<StlVdsOptinfoEntity>(
- "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};
- }
- }
- }
- }
|