Tz2/Assets/Scripts/OutboundOrderManager.cs

54 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using MotionFramework;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
namespace DefaultNamespace
{
public class OutboundOrderManager : MonoBehaviour
{
public TMP_InputField dayinriqi;
public TMP_InputField kuguanyuan;
public TMP_InputField lingliaoyuan;
public GameObject ;
public GameObject ;
public GameObject ;
public GameObject ;
public GameObject ;
public Button close;
private void Start()
{
close.onClick.AddListener(delegate
{
List<string> list = new List<string>();
list.Add(dayinriqi.text);
list.Add(kuguanyuan.text);
list.Add(lingliaoyuan.text);
if(MotionEngine.GetModule<ProcessManager>().HandleClick(list))
TutorialGuideManager.Instance.TriggerNextGuide(close.name);
});
.transform.Find("text").GetComponent<TMP_Text>().text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValue("物料编码");
.transform.Find("text").GetComponent<TMP_Text>().text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValue("物料描述");
.transform.Find("text").GetComponent<TMP_Text>().text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValue("批次号");
.transform.Find("text").GetComponent<TMP_Text>().text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValue("数量");
.transform.Find("text").GetComponent<TMP_Text>().text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValue("库存地点");
}
}
}