44 lines
1.7 KiB
C#
44 lines
1.7 KiB
C#
using DefaultNamespace;
|
|
using DefaultNamespace.ProcessMode;
|
|
using Framework.Manager;
|
|
using MotionFramework;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ApplicationFormCustodyComponent : MonoBehaviour
|
|
{
|
|
public Button closeBt;
|
|
|
|
public UI_StampConfirmation uI_StampConfirmation1;
|
|
public UI_StampConfirmation uI_StampConfirmation2;
|
|
public UI_StampConfirmation uI_StampConfirmation3;
|
|
|
|
public GameObject 物料编码;
|
|
public GameObject 物料描述;
|
|
public GameObject 领料数量;
|
|
|
|
private void Start()
|
|
{
|
|
closeBt.onClick.AddListener(delegate
|
|
{
|
|
if (MotionEngine.GetModule<GlobalDataStorage>().ExamName.Contains("代保管物资出库"))
|
|
{
|
|
List<string> li = new List<string>();
|
|
|
|
li.Add(uI_StampConfirmation1.IsClick.ToString());
|
|
li.Add(uI_StampConfirmation2.IsClick.ToString());
|
|
li.Add(uI_StampConfirmation3.IsClick.ToString());
|
|
|
|
if (MotionEngine.GetModule<ProcessManager>().HandleClick(li))
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
}
|
|
});
|
|
|
|
物料编码.transform.Find("text").GetComponent<TMP_Text>().text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValue("物料编码");
|
|
物料描述.transform.Find("text").GetComponent<TMP_Text>().text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValue("物料描述");
|
|
领料数量.transform.Find("text").GetComponent<TMP_Text>().text = MotionEngine.GetModule<GlobalDataStorage>().GetTaskBookValue("发出数量");
|
|
}
|
|
} |