Tz2/Assets/Zion/Scripts/ERP/转储调拨系统出库/RecipientTransferApplicatio...

76 lines
2.1 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using DefaultNamespace;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using MotionFramework;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// 转储调拨系统出库-m接收方调拨申请单签字签章
/// </summary>
public class RecipientTransferApplicationSignatureManager : MonoBehaviour
{
public Button plane1Button;
public Button plane2Button;
public Button plane3Button;
public GameObject plane1;
public GameObject plane2;
public GameObject plane3;
public TMP_InputField wuliaomingcheng;
public TMP_InputField guigexinghao;
Framework.Dto.TransferMaterialOutbound TransferMaterialOutbound;
private void Start()
{
plane3Button.onClick.AddListener(delegate
{
plane3.SetActive(false);
plane1.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide();
});
plane1Button.onClick.AddListener(delegate
{
plane1.SetActive(false);
plane2.SetActive(true);
// MotionEngine.GetModule<ProcessManager>().HandleClick("检查调拨电请审批通过状态");
MotionEngine.GetModule<ProcessManager>().HandleClick("检查调拨申请审批通过状态");
TutorialGuideManager.Instance.TriggerNextGuide();
});
plane2Button.onClick.AddListener(delegate
{
plane2.SetActive(false);
plane1.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide();
});
TransferMaterialOutbound = (Framework.Dto.TransferMaterialOutbound)GlobalDataStorage.Instance.materialTaskObj;
// 获取GlobalDataStorage实例
var globalData = MotionEngine.GetModule<GlobalDataStorage>();
string wuzimiaoshu = TransferMaterialOutbound.materialDescription;
string wuzibianma = TransferMaterialOutbound.materialCode;
wuliaomingcheng.text = wuzimiaoshu;
guigexinghao.text = wuzibianma;
}
}