158 lines
4.7 KiB
C#
158 lines
4.7 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DefaultNamespace.ProcessMode;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using static InterfaceManager;
|
|
public class ERP_FactoryAcceptance : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 对应两个角色选择框
|
|
/// </summary>
|
|
public Toggle PanelPC1;
|
|
/// <summary>
|
|
/// 对应两个角色选择框
|
|
/// </summary>
|
|
public Toggle PanelPC2;
|
|
/// <summary>
|
|
/// 页面1
|
|
/// </summary>
|
|
public GameObject Pane1;
|
|
/// <summary>
|
|
/// 页面2
|
|
/// </summary>
|
|
public GameObject Pane2;
|
|
/// <summary>
|
|
/// 页面1确定
|
|
/// </summary>
|
|
public Button Panel1Enter;
|
|
/// <summary>
|
|
/// 页面2选择框1
|
|
/// </summary>
|
|
public Toggle Panel2Toggle1;
|
|
/// <summary>
|
|
/// 页面2选择框2
|
|
/// </summary>
|
|
public Toggle Panel2Toggle2;
|
|
/// <summary>
|
|
/// 页面2选择框3
|
|
/// </summary>
|
|
public Toggle Panel2Toggle3;
|
|
/// <summary>
|
|
/// 页面2选择框4
|
|
/// </summary>
|
|
public Toggle Panel2Toggle4;
|
|
/// <summary>
|
|
/// 页面2选择框5
|
|
/// </summary>
|
|
public Toggle Panel2Toggle5;
|
|
/// <summary>
|
|
/// 页面2选择框6
|
|
/// </summary>
|
|
public Toggle Panel2Toggle6;
|
|
/// <summary>
|
|
/// 页面2确定
|
|
/// </summary>
|
|
public Button Panel2Edit;
|
|
/// <summary>
|
|
/// 页面2编辑面板
|
|
/// </summary>
|
|
public GameObject Panel2EditPanel;
|
|
/// <summary>
|
|
/// 页面2编辑面板新增按钮
|
|
/// </summary>
|
|
public Button Panel2EditPanelAddBt;
|
|
/// <summary>
|
|
/// 物料编码toggle
|
|
/// </summary>
|
|
public Toggle matrialtrueToggle;
|
|
/// <summary>
|
|
/// 文件选择toggle
|
|
/// </summary>
|
|
public Toggle foldertrueToggle;
|
|
/// <summary>
|
|
/// 选择完成文件上传按钮
|
|
/// </summary>
|
|
public Button uploadbt;
|
|
void Start()
|
|
{
|
|
PanelPC1 = FindObjectByName<Toggle>("出场验收处理_页面1_toggle1");
|
|
PanelPC2 = FindObjectByName<Toggle>("出场验收处理__页面1_toggle2");
|
|
Panel1Enter = FindObjectByName<Button>("出场验收处理_页面1-确定");
|
|
Pane1 = FindObjectByName<Transform>("出场验收处理_Panel1").gameObject;
|
|
Pane2 = FindObjectByName<Transform>("出场验收处理_Panel2").gameObject;
|
|
Panel2Toggle1 = FindObjectByName<Toggle>("出场验收处理_Panel2_toggle1");
|
|
Panel2Toggle2 = FindObjectByName<Toggle>("出场验收处理_Panel2_toggle2");
|
|
Panel2Toggle3 = FindObjectByName<Toggle>("出场验收处理_Panel2_toggle3");
|
|
Panel2Toggle4 = FindObjectByName<Toggle>("出场验收处理_Panel2_toggle4");
|
|
Panel2Toggle5 = FindObjectByName<Toggle>("出场验收处理_Panel2_toggle5");
|
|
Panel2Toggle6 = FindObjectByName<Toggle>("出场验收处理_Panel2_toggle6");
|
|
Panel2Edit = FindObjectByName<Button>("出场验收处理_Panel2_编辑");
|
|
Panel2EditPanel = FindObjectByName<Transform>("出场验收处理_Panel2_编辑页面").gameObject;
|
|
Panel2EditPanelAddBt = FindObjectByName<Button>("出场验收处理_Panel2_新增按钮");
|
|
matrialtrueToggle.onValueChanged.AddListener((a) =>
|
|
{
|
|
if (a)
|
|
{
|
|
LoadTriggerNextGuide();
|
|
}
|
|
});
|
|
foldertrueToggle.onValueChanged.AddListener((a) =>
|
|
{
|
|
if (a)
|
|
{
|
|
LoadTriggerNextGuide();
|
|
}
|
|
});
|
|
Panel1Enter.onClick.AddListener(() =>
|
|
{
|
|
if (PanelPC1.isOn)
|
|
{
|
|
Pane1.SetActive(false);
|
|
Pane2.SetActive(true);
|
|
}
|
|
//LoadTriggerNextGuide();
|
|
});
|
|
Panel2Edit.onClick.AddListener(() =>
|
|
{
|
|
|
|
if (matrialtrueToggle.isOn)
|
|
{
|
|
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("true");
|
|
}
|
|
else
|
|
{
|
|
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("false");
|
|
}
|
|
if (Panel2Toggle1.isOn)
|
|
{
|
|
Panel2EditPanel.SetActive(true);
|
|
}
|
|
LoadTriggerNextGuide();
|
|
});
|
|
Panel2EditPanelAddBt.onClick.AddListener(() =>
|
|
{
|
|
|
|
LoadTriggerNextGuide();
|
|
|
|
});
|
|
uploadbt.onClick.AddListener(() =>
|
|
{
|
|
|
|
if (foldertrueToggle.isOn)
|
|
{
|
|
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("true");
|
|
}
|
|
else
|
|
{
|
|
MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick("false");
|
|
}
|
|
LoadTriggerNextGuide();
|
|
});
|
|
}
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|