From e080eaddaf5683f00a7bbf74555b84a3bba78ad5 Mon Sep 17 00:00:00 2001 From: lvhao <1787281936@qq.com> Date: Fri, 9 Jun 2023 08:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A7=E5=88=B6=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Script/ERP/WorkInfoTeam.cs | 6 ++++++ Assets/Script/LH/GameMannage.cs | 36 +++++++++++++++++++++++++++---- 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/Assets/Script/ERP/WorkInfoTeam.cs b/Assets/Script/ERP/WorkInfoTeam.cs index 89f9902..9724b3c 100644 --- a/Assets/Script/ERP/WorkInfoTeam.cs +++ b/Assets/Script/ERP/WorkInfoTeam.cs @@ -13,6 +13,7 @@ public class WorkInfoTeam : MonoBehaviour public WorkInfo wInfo; public ExamRecord ExamRec;//操作记录 public InfoPanel[] InfoPanels;//面板组 + public GameMannage mannage; string CourseName; int i; @@ -129,7 +130,11 @@ public class WorkInfoTeam : MonoBehaviour case "总价": wInfo.ZJ = ReadCon.List_Task[i].Value; break; } + mannage.AddDataToDic(ReadCon.List_Task[i].PropName, ReadCon.List_Task[i].Value); + } + + Debug.Log(mannage.allData.Count); //物料编码 if (wInfo.TaskType.Contains("入库")) { @@ -177,6 +182,7 @@ public class WorkInfoTeam : MonoBehaviour } + public void ShowPaperOrder()//显示对应业务的纸质单据 { //if(wInfo.Panel_Paper!=null) diff --git a/Assets/Script/LH/GameMannage.cs b/Assets/Script/LH/GameMannage.cs index 2fe2a51..96512af 100644 --- a/Assets/Script/LH/GameMannage.cs +++ b/Assets/Script/LH/GameMannage.cs @@ -55,12 +55,12 @@ public class GameMannage : MonoBehaviour //业务脚本 public WorkInfoTeam info; - public List> new2 = new List>(); - - public Dictionary new1 = new Dictionary(); - public Dictionary> allTaskMessage = new Dictionary>(); + public Dictionary allTasks = new Dictionary(); + + public Dictionary allData = new Dictionary(); + void Awake() { instance = this; @@ -77,6 +77,8 @@ public class GameMannage : MonoBehaviour } + #region 流程 + //车辆进入 工厂 public void TruckInFactory() { @@ -153,6 +155,32 @@ public class GameMannage : MonoBehaviour cangwaiWuzi.SetActive(false); } + #endregion + + #region 加载所有任务 数据 + public void AddTaskToDic(string key,TaskModel value) + { + if (!allTasks.ContainsKey(key)) + { + allTasks.Add(key, value); + } + } + + public void AddDataToDic(string key ,string value) + { + if (!allData.ContainsKey(key)) + { + allData.Add(key, value); + } + } + + #endregion + + #region + #endregion + + #region + #endregion //返回上一场景 public void ReturnToExitScene() {