72 lines
1.8 KiB
C#
72 lines
1.8 KiB
C#
using DefaultNamespace.ProcessMode;
|
|
using Framework.Manager;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ERP_BorrowingRequisitions : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 借料申请单输入
|
|
/// </summary>
|
|
public InputField Borrowingorder;
|
|
/// <summary>
|
|
/// 借料
|
|
/// </summary>
|
|
public Toggle BorrowingToggle;
|
|
/// <summary>
|
|
/// 发料
|
|
/// </summary>
|
|
public Toggle IssueToggle;
|
|
/// <summary>
|
|
/// 归还
|
|
/// </summary>
|
|
public Toggle returnToggle;
|
|
/// <summary>
|
|
/// 确定按钮
|
|
/// </summary>
|
|
public Button Enterbt;
|
|
/// <summary>
|
|
/// 选择toggle
|
|
/// </summary>
|
|
public Toggle ChooseToggle;
|
|
/// <summary>
|
|
/// 库存地点
|
|
/// </summary>
|
|
public InputField Inventorylocation;
|
|
/// <summary>
|
|
/// 归还按钮
|
|
/// </summary>
|
|
public Button Returnbt;
|
|
/// <summary>
|
|
/// 归还页面
|
|
/// </summary>
|
|
public GameObject Panel2;
|
|
void Start()
|
|
{
|
|
Enterbt.onClick.AddListener(() =>
|
|
{
|
|
if (MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>() { Borrowingorder.text, returnToggle.isOn.ToString() }))
|
|
{
|
|
Panel2.SetActive(true);
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
}
|
|
});
|
|
Returnbt.onClick.AddListener(() =>
|
|
{
|
|
if (MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>() { ChooseToggle.isOn.ToString(), Inventorylocation.text }))
|
|
{
|
|
Panel2.SetActive(true);
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
}
|
|
});
|
|
}
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|