using System.Collections.Generic; using DefaultNamespace.ProcessMode; using Framework.Manager; using MotionFramework; using TMPro; using UnityEngine; using UnityEngine.UI; namespace Zion.Scripts.ERP.库存物资库存地点批量切换 { /// /// m库存物资查询报表new /// public class InventoryBatchLocationSwitchReporterManager : MonoBehaviour { public TMP_InputField[] materialCodes; public TMP_InputField[] batchs; public TMP_InputField materialCode; public TMP_InputField factorie; public TMP_InputField storageLocation; public TMP_InputField batch; // 批量选择按钮 public Button materialCodeButton; public Button batchButton; public Button queryButton; public GameObject queryPlane; public Button piciduoxuan; public Button duozhongxuanzeanniu; void Start() { batchButton.onClick.AddListener(OnBatchSelectButtonClick); materialCodeButton.onClick.AddListener(OnMaterialCodeSelectButtonClick); queryButton.onClick.AddListener(OnQueryButtonClicked); piciduoxuan.onClick.AddListener(delegate { TutorialGuideManager.Instance.TriggerNextGuide(); }); duozhongxuanzeanniu.onClick.AddListener(delegate { TutorialGuideManager.Instance.TriggerNextGuide(); }); } private void OnQueryButtonClicked() { List parameters = new List(); foreach (var code in materialCodes) { parameters.Add(code.text); } foreach (var code in batchs) { parameters.Add(code.text); } parameters.Add(factorie.text); // parameters.Add(storageLocation.text); // TutorialGuideManager.Instance.TriggerNextGuide(); queryPlane.SetActive(true); if (MotionEngine.GetModule().HandleClick(parameters)) { TutorialGuideManager.Instance.TriggerNextGuide(queryButton.name); } } private void OnMaterialCodeSelectButtonClick() { materialCode.text = materialCodes[0].text; TutorialGuideManager.Instance.TriggerNextGuide(); } private void OnBatchSelectButtonClick() { batch.text = batchs[0].text; TutorialGuideManager.Instance.TriggerNextGuide(); } } }