using DefaultNamespace.ProcessMode; using OfficeOpenXml.FormulaParsing.Excel.Functions.RefAndLookup; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using static InterfaceManager; public class ERP_ScrapWarehousingRequisition : MonoBehaviour { /// /// 页面1工厂输入框 /// [Header("页面1工厂输入框")] public InputField factory; /// /// 页面1报废申请单号 /// [Header("页面1报废申请单号")] public InputField Scraporder; /// /// 页面1查询按钮 /// [Header("页面1查询按钮")] public Button Selectbt; /// /// 页面2过账按钮 /// [Header("页面2过账按钮")] public Button Postingbt; /// /// 页面2选择 /// [Header("页面2选择")] public Toggle Choose_2; /// /// 页面2意见输入框 /// [Header("页面2意见输入框")] public InputField Posting; /// /// 页面2保存意见按钮 /// [Header("页面2保存意见按钮")] public Button Saveopinionbt; /// /// 页面3选择 /// [Header("页面3选择")] public Toggle Choose_3; /// /// 页面3库存地点 /// [Header("页面3库存地点")] public InputField Inventorylocation; /// /// 页面3检查按钮 /// [Header("页面3检查按钮")] public Button checkbt; /// /// 是否点击了页面3的检查按钮 /// public bool Ischeck; /// /// 页面3过账按钮 /// [Header("页面3过账按钮")] public Button Postingbt_3; /// /// 页面1 /// [Header("页面1")] public GameObject Panel1; /// /// 页面2 /// [Header("页面2")] public GameObject Panel2; /// /// 页面3 /// [Header("页面3")] public GameObject Panel3; void Start() { Selectbt.onClick.AddListener(() => { List answer = new List(); answer.Add(factory.text); answer.Add(Scraporder.text); if (MotionFramework.MotionEngine.GetModule().HandleClick(answer)) { Panel1.SetActive(false); Panel2.SetActive(true); LoadTriggerNextGuide(); } }); Saveopinionbt.onClick.AddListener(() => { Postingbt.interactable = true; LoadTriggerNextGuide(); }); checkbt.onClick.AddListener(() => { Ischeck = true; LoadTriggerNextGuide(); }); Choose_2.onValueChanged.AddListener((a) => { if (Choose_2.isOn) { LoadTriggerNextGuide(); } }); Choose_3.onValueChanged.AddListener((a) => { if (Choose_3.isOn) { LoadTriggerNextGuide(); } }); Postingbt_3.onClick.AddListener(() => { List answer = new List(); string str = ""; answer.Add(Choose_2.isOn.ToString().ToLower()); answer.Add(Posting.text); answer.Add(Choose_3.isOn.ToString().ToLower()); answer.Add(Inventorylocation.text); if (Ischeck) { str = "检查"; } answer.Add(str); if (MotionFramework.MotionEngine.GetModule().HandleClick(answer)) LoadTriggerNextGuide(); }); } void Update() { } }