123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Reflection.Emit;
- using System.Text;
- using SqlSugar;
- using WCS.Data;
- using WCS.Data.Models;
- namespace WCS_Client.Frm
- {
- public class Current
- {
- public static List<WCS_TASK> TaskSet = new List<WCS_TASK>();
- /// <summary>
- /// plc列表
- /// </summary>
- public static List<WCS_PLC> PlcSet = new List<WCS_PLC>();
- public static void RefreshData(bool isRefreshTask = false)
- {
- TryCachHelper.TryExecute((db) =>
- {
- if (isRefreshTask)
- {
- TaskSet = db.Queryable<WCS_TASK>().ToList();
- }
- foreach (var plc in PlcSet)
- {
- plc.WCS_DBSet = db.Queryable<WCS_DBDEFINITION>().Where(v => v.DB_PLCNAME == plc.PLC_NAME).ToList();
- }
- });
- }
- private static List<ConvDbInfo> GetConvDBInfo(WCS_PLC plc, WCS_EQUIPMENTINFO item)
- {
- List<ConvDbInfo> equDBInfoSet = new List<ConvDbInfo>();
- return equDBInfoSet;
- }
- }
- }
|