using System; using System.Collections.Generic; using DefaultNamespace; using DefaultNamespace.ProcessMode; using Framework.Manager; using Framework.Utils; using MotionFramework; using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; namespace Zion.Scripts.ERP.库存物资查询报表 { public class InventoryStockQueryReportManager : MonoBehaviour { public TMP_InputField factoryInputField; public TMP_InputField cityInputField; public Button queryButton; public Button saveButton; public GameObject queryPanel; private void Start() { queryButton.onClick.AddListener(OnQueryButtonClicked); saveButton.onClick.AddListener(OnSaveButtonClicked); } private void OnSaveButtonClicked() { // string path = Application.streamingAssetsPath + "/Excel/库存积压表.XLSX"; // Debug.Log(path); // FileUtils.OpenFile(path); MotionEngine.GetModule().HandleClick("导出表格"); FileComponent.DownloadSingleFile( "附件1:库存积压表"); } private void OnQueryButtonClicked() { List list = new List(); list.Add(factoryInputField.text); list.Add(cityInputField.text); if (MotionEngine.GetModule().HandleClick(list)) { queryPanel.SetActive(true); TutorialGuideManager.Instance.TriggerNextGuide(queryButton.name); } } } }