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

40 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using UnityEngine;
using UnityEngine.UI;
namespace Zion.Scripts.ERP.退退
{
public class RetiredAssetOutboundDanJuManager : MonoBehaviour
{
public Button saveBt;
private void Start()
{
saveBt.onClick.AddListener(delegate
{
List<UI_StampConfirmation> uI_StampConfirmations = UI_StampConfirmationManager.Instance.uI_StampConfirmations;
List<string> stampNames = new List<string>();
for (int i = uI_StampConfirmations.Count - 1; i >= 0; i--)
{
Debug.Log(uI_StampConfirmations[i].name);
string IsChecked = uI_StampConfirmations[i].IsClick ? "true" : "false";
stampNames.Add(IsChecked);
}
bool isMatch = MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(stampNames);
if (isMatch) //查询
{
Debug.Log("单据验收完毕");
}
else
{
Debug.Log("未查询到入库单,请检查输入是否正确");
}
});
}
}
}