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
{
///
/// 借料申请单输入
///
public InputField Borrowingorder;
///
/// 借料
///
public Toggle BorrowingToggle;
///
/// 发料
///
public Toggle IssueToggle;
///
/// 归还
///
public Toggle returnToggle;
///
/// 确定按钮
///
public Button Enterbt;
///
/// 选择toggle
///
public Toggle ChooseToggle;
///
/// 库存地点
///
public InputField Inventorylocation;
///
/// 归还按钮
///
public Button Returnbt;
///
/// 归还页面
///
public GameObject Panel2;
void Start()
{
Enterbt.onClick.AddListener(() =>
{
if (MotionFramework.MotionEngine.GetModule().HandleClick(new List() { Borrowingorder.text, returnToggle.isOn.ToString() }))
{
Panel2.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide();
}
});
Returnbt.onClick.AddListener(() =>
{
if (MotionFramework.MotionEngine.GetModule().HandleClick(new List() { ChooseToggle.isOn.ToString(), Inventorylocation.text }))
{
Panel2.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide();
}
});
}
// Update is called once per frame
void Update()
{
}
}