using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; public class DeviceOfPartDataProxy : DataProxy { public string m_TableName; public List m_PartInfos; public override void OnRegister() { } public PartDataInfo GetPartInfoByPartName(string partName) { return m_PartInfos.Find(t => t.partName == partName); } /// /// 从Excel文件读取流程信息 /// /// 表明 /// 表头 /// public List ReadStepMsgInfoFromTable(string tableName) { m_TableName = tableName + GlobalConfig.excelSuffix; m_PartInfos = new List(); string tmpPath = System.IO.Path.Combine(GlobalConfig.partTablePath, m_TableName); if (File.Exists(tmpPath)) { m_PartInfos = ExcelHelper.ReadInfoFromExcel(tmpPath, 1); } return m_PartInfos; } }