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

56 lines
1.3 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 MaterialIssueDocumentPrinterManager : MonoBehaviour
{
public InputField gongchang;
public InputField guozhangriqi;
public Button querybt;
public Button querybt1;
public Button querybt2;
public GameObject plane1;
private void Start()
{
querybt.onClick.AddListener(delegate
{
List<string> list = new List<string>();
list.Add(gongchang.text);
list.Add(guozhangriqi.text);
if (MotionEngine.GetModule<ProcessManager>().HandleClick(list))
{
TutorialGuideManager.Instance.TriggerNextGuide();
plane1.SetActive(true);
}
});
querybt1.onClick.AddListener(delegate
{
TutorialGuideManager.Instance.TriggerNextGuide();
});
querybt2.onClick.AddListener(delegate
{
MotionEngine.GetModule<ProcessManager>().HandleClick("打印");
TutorialGuideManager.Instance.TriggerNextGuide();
});
}
}