146 lines
3.8 KiB
C#
146 lines
3.8 KiB
C#
using DefaultNamespace.ProcessMode;
|
|
using OfficeOpenXml.FormulaParsing.Excel.Functions.RefAndLookup;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using static InterfaceManager;
|
|
|
|
public class ERP_ScrapWarehousingRequisition : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 页面1工厂输入框
|
|
/// </summary>
|
|
[Header("页面1工厂输入框")] public InputField factory;
|
|
|
|
/// <summary>
|
|
/// 页面1报废申请单号
|
|
/// </summary>
|
|
[Header("页面1报废申请单号")] public InputField Scraporder;
|
|
|
|
/// <summary>
|
|
/// 页面1查询按钮
|
|
/// </summary>
|
|
[Header("页面1查询按钮")] public Button Selectbt;
|
|
|
|
/// <summary>
|
|
/// 页面2过账按钮
|
|
/// </summary>
|
|
[Header("页面2过账按钮")] public Button Postingbt;
|
|
|
|
/// <summary>
|
|
/// 页面2选择
|
|
/// </summary>
|
|
[Header("页面2选择")] public Toggle Choose_2;
|
|
|
|
/// <summary>
|
|
/// 页面2意见输入框
|
|
/// </summary>
|
|
[Header("页面2意见输入框")] public InputField Posting;
|
|
|
|
/// <summary>
|
|
/// 页面2保存意见按钮
|
|
/// </summary>
|
|
[Header("页面2保存意见按钮")] public Button Saveopinionbt;
|
|
|
|
/// <summary>
|
|
/// 页面3选择
|
|
/// </summary>
|
|
[Header("页面3选择")] public Toggle Choose_3;
|
|
|
|
/// <summary>
|
|
/// 页面3库存地点
|
|
/// </summary>
|
|
[Header("页面3库存地点")] public InputField Inventorylocation;
|
|
|
|
/// <summary>
|
|
/// 页面3检查按钮
|
|
/// </summary>
|
|
[Header("页面3检查按钮")] public Button checkbt;
|
|
|
|
/// <summary>
|
|
/// 是否点击了页面3的检查按钮
|
|
/// </summary>
|
|
public bool Ischeck;
|
|
|
|
/// <summary>
|
|
/// 页面3过账按钮
|
|
/// </summary>
|
|
[Header("页面3过账按钮")] public Button Postingbt_3;
|
|
|
|
/// <summary>
|
|
/// 页面1
|
|
/// </summary>
|
|
[Header("页面1")] public GameObject Panel1;
|
|
|
|
/// <summary>
|
|
/// 页面2
|
|
/// </summary>
|
|
[Header("页面2")] public GameObject Panel2;
|
|
|
|
/// <summary>
|
|
/// 页面3
|
|
/// </summary>
|
|
[Header("页面3")] public GameObject Panel3;
|
|
|
|
void Start()
|
|
{
|
|
Selectbt.onClick.AddListener(() =>
|
|
{
|
|
List<string> answer = new List<string>();
|
|
answer.Add(factory.text);
|
|
answer.Add(Scraporder.text);
|
|
if (MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(answer))
|
|
{
|
|
Panel1.SetActive(false);
|
|
Panel2.SetActive(true);
|
|
LoadTriggerNextGuide();
|
|
}
|
|
});
|
|
Saveopinionbt.onClick.AddListener(() =>
|
|
{
|
|
Postingbt.interactable = true;
|
|
LoadTriggerNextGuide();
|
|
});
|
|
checkbt.onClick.AddListener(() =>
|
|
{
|
|
Ischeck = true;
|
|
LoadTriggerNextGuide();
|
|
});
|
|
Choose_2.onValueChanged.AddListener((a) =>
|
|
{
|
|
if (Choose_2.isOn)
|
|
{
|
|
LoadTriggerNextGuide();
|
|
}
|
|
});
|
|
Choose_3.onValueChanged.AddListener((a) =>
|
|
{
|
|
if (Choose_3.isOn)
|
|
{
|
|
LoadTriggerNextGuide();
|
|
}
|
|
});
|
|
Postingbt_3.onClick.AddListener(() =>
|
|
{
|
|
List<string> answer = new List<string>();
|
|
string str = "";
|
|
answer.Add(Choose_2.isOn.ToString().ToLower());
|
|
answer.Add(Posting.text);
|
|
answer.Add(Choose_3.isOn.ToString().ToLower());
|
|
answer.Add(Inventorylocation.text);
|
|
if (Ischeck)
|
|
{
|
|
str = "检查";
|
|
}
|
|
|
|
answer.Add(str);
|
|
if (MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(answer))
|
|
LoadTriggerNextGuide();
|
|
});
|
|
}
|
|
|
|
void Update()
|
|
{
|
|
}
|
|
} |