Tz2/Assets/Zion/Scripts/ERP/物资领用出库/InventoryTransactionManager.cs

61 lines
1.5 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using MotionFramework;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// 管理库存收发货+物资领用出库
/// </summary>
public class InventoryTransactionManager : MonoBehaviour
{
public TMP_InputField numberinput;
public Button querybt;
public GameObject plane1;
public GameObject plane2;
public GameObject plane3;
public TMP_InputField shuliang;
public TMP_InputField pici;
public TMP_InputField kucundidian;
public Button jiancha;
public Button guozhang;
private void Start()
{
jiancha.onClick.AddListener(delegate
{
List<string> list = new List<string>();
list.Add(shuliang.text);
list.Add(pici.text);
list.Add(kucundidian.text);
if (MotionEngine.GetModule<ProcessManager>().HandleClick(list))
{
plane2.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide();
}
});
guozhang.onClick.AddListener(delegate
{
// MotionEngine.GetModule<ProcessManager>().HandleClick("过账");
TutorialGuideManager.Instance.TriggerNextGuide();
});
querybt.onClick.AddListener(delegate
{
MotionEngine.GetModule<ProcessManager>().HandleClick(numberinput.text);
plane3.SetActive(false);
plane1.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide();
});
}
}