54 lines
1.9 KiB
C#
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("库存地点");
|
|
|
|
|
|
}
|
|
}
|
|
} |