Tz2/Assets/Zion/Scripts/ERP/10kV变压器代保管出库/RetiredAssetOutboundSAPMana...

50 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class RetiredAssetOutboundSAPManager : MonoBehaviour
{
public InputField cangku;
public InputField pici;
public Toggle shangjia;
public Button chaxun;
public Button shengchengzhuanchudan;
public GameObject plane1;
public Button b1;
private void Start()
{
b1.onClick.AddListener(delegate
{
TutorialGuideManager.Instance.TriggerNextGuide();
});
chaxun.onClick.AddListener(delegate
{
List<string> stampNames = new List<string>();
stampNames.Add(cangku.text);
stampNames.Add(pici.text);
stampNames.Add(shangjia.isOn.ToString());
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(stampNames);
plane1.SetActive(true);
Debug.Log("查询结果:" + isMatch);
TutorialGuideManager.Instance.TriggerNextGuide();
});
shengchengzhuanchudan.onClick.AddListener(delegate
{
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("生成转储单");
TutorialGuideManager.Instance.TriggerNextGuide();
});
}
}