using System.Collections; using System.Collections.Generic; using DefaultNamespace.ProcessMode; using Framework.Manager; using MotionFramework; using TMPro; using UnityEngine; using UnityEngine.UI; /// /// m转移过账-初始屏幕 /// public class TransferTransactionInitialScreenManager : MonoBehaviour { public TMP_InputField TransferInitialScreenMovementType; // 转移过账初始屏幕的移动类型输入框 public TMP_InputField TransferInitialScreenPlant; // 转移过账初始屏幕的工厂输入框 public TMP_InputField TransferInitialScreenStorageLocation; // 转移过账初始屏幕的库存地点输入框 public Button TransferInitialScreenQuery; // 转移过账初始屏幕的查询输入框 public TMP_InputField TransferPurchaseOrderNumber; // 转移过账采购订单的采购订单号输入框 public Button TransferPurchaseOrderQuery; // 转移过账采购订单的查询输入框 public TMP_InputField TransferSelectionScreenQuantity; // 转移过账选择屏幕的数量输入框 public TMP_InputField TransferSelectionScreenBatch; // 转移过账选择屏幕的批次输入框 public Button TransferSelectionScreenSave; // 转移过账选择屏幕的保存输入框 public GameObject plane1; public GameObject plane2; public GameObject plane3; void Start() { // 绑定转移过账初始屏幕查询按钮事件 TransferInitialScreenQuery.onClick.AddListener(OnTransferInitialScreenQueryClick); // 绑定采购订单查询按钮事件 TransferPurchaseOrderQuery.onClick.AddListener(OnTransferPurchaseOrderQueryClick); // 绑定选择屏幕保存按钮事件 TransferSelectionScreenSave.onClick.AddListener(OnTransferSelectionScreenSaveClick); } /// /// 转移过账初始屏幕查询按钮点击事件 /// private void OnTransferInitialScreenQueryClick() { Debug.Log("转移过账初始屏幕查询按钮被点击"); // List list = new List(); // list.Add(TransferInitialScreenMovementType.text); // list.Add(TransferInitialScreenPlant.text); // list.Add(TransferInitialScreenStorageLocation.text); // MotionEngine.GetModule().HandleClick(list); plane1.SetActive(false); plane2.SetActive(true); TutorialGuideManager.Instance.TriggerNextGuide(); } /// /// 采购订单查询按钮点击事件 /// private void OnTransferPurchaseOrderQueryClick() { Debug.Log("采购订单查询按钮被点击"); // 在这里添加查询逻辑 // List list = new List(); // list.Add(TransferPurchaseOrderNumber.text); // MotionEngine.GetModule().HandleClick(list); plane2.SetActive(false); plane3.SetActive(true); TutorialGuideManager.Instance.TriggerNextGuide(); } /// /// 选择屏幕保存按钮点击事件 /// private void OnTransferSelectionScreenSaveClick() { Debug.Log("选择屏幕保存按钮被点击"); // 在这里添加保存逻辑 List list = new List(); list.Add(TransferInitialScreenMovementType.text); list.Add(TransferInitialScreenPlant.text); list.Add(TransferInitialScreenStorageLocation.text); list.Add(TransferPurchaseOrderNumber.text); list.Add(TransferSelectionScreenBatch.text); list.Add(TransferSelectionScreenQuantity.text); if (MotionEngine.GetModule().HandleClick(list)) { TutorialGuideManager.Instance.TriggerNextGuide(); } } }