99 lines
3.7 KiB
C#
99 lines
3.7 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DefaultNamespace.ProcessMode;
|
|
using Framework.Manager;
|
|
using MotionFramework;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
/// <summary>
|
|
/// m转移过账-初始屏幕
|
|
/// </summary>
|
|
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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 转移过账初始屏幕查询按钮点击事件
|
|
/// </summary>
|
|
private void OnTransferInitialScreenQueryClick()
|
|
{
|
|
Debug.Log("转移过账初始屏幕查询按钮被点击");
|
|
|
|
// List<string> list = new List<string>();
|
|
// list.Add(TransferInitialScreenMovementType.text);
|
|
// list.Add(TransferInitialScreenPlant.text);
|
|
// list.Add(TransferInitialScreenStorageLocation.text);
|
|
// MotionEngine.GetModule<ProcessManager>().HandleClick(list);
|
|
|
|
plane1.SetActive(false);
|
|
plane2.SetActive(true);
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 采购订单查询按钮点击事件
|
|
/// </summary>
|
|
private void OnTransferPurchaseOrderQueryClick()
|
|
{
|
|
Debug.Log("采购订单查询按钮被点击");
|
|
// 在这里添加查询逻辑
|
|
// List<string> list = new List<string>();
|
|
// list.Add(TransferPurchaseOrderNumber.text);
|
|
// MotionEngine.GetModule<ProcessManager>().HandleClick(list);
|
|
|
|
plane2.SetActive(false);
|
|
plane3.SetActive(true);
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 选择屏幕保存按钮点击事件
|
|
/// </summary>
|
|
private void OnTransferSelectionScreenSaveClick()
|
|
{
|
|
Debug.Log("选择屏幕保存按钮被点击");
|
|
// 在这里添加保存逻辑
|
|
List<string> list = new List<string>();
|
|
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<ProcessManager>().HandleClick(list))
|
|
{
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
}
|
|
}
|
|
}
|