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

57 lines
1.6 KiB
C#

using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using UnityEngine;
using UnityEngine.UI;
public class RetiredAssetOutboundCustodyManager : MonoBehaviour
{
public InputField danhao;
public InputField gongchang;
public Button chaxun;
public Button dayin;
public Button dayin2;
public GameObject plane1;
public Toggle togg;
private void Start()
{
togg.onValueChanged.AddListener(delegate
{
TutorialGuideManager.Instance.TriggerNextGuide();
});
dayin.onClick.AddListener(delegate
{
TutorialGuideManager.Instance.TriggerNextGuide();
});
chaxun.onClick.AddListener(delegate
{
List<string> stampNames = new List<string>();
stampNames.Add(danhao.text);
stampNames.Add(gongchang.text);
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(stampNames);
plane1.SetActive(true);
Debug.Log("查询结果:" + isMatch);
TutorialGuideManager.Instance.TriggerNextGuide();
});
dayin2.onClick.AddListener(delegate
{
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("打印");
TutorialGuideManager.Instance.TriggerNextGuide();
});
}
}