77 lines
2.9 KiB
C#
77 lines
2.9 KiB
C#
using DefaultNamespace.ProcessMode;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using static InterfaceManager;
|
|
/// <summary>
|
|
/// m查询物资采购合同执行状态
|
|
/// </summary>
|
|
public class ERPQueryPurchaseExecutionStatus : BasePanel
|
|
{
|
|
private InputField 物资采购合同执行_工厂, 物资采购合同执行_公司代码, 物资采购合同执行_批次, 物资采购合同执行_批次_1, 物资采购合同执行_批次_2;
|
|
private Button 物资采购合同执行_btn确定按钮, 物资采购合同执行_btn多批次, 物资采购合同执行_btn执行;
|
|
List<bool> isRightList = new List<bool>();
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
}
|
|
|
|
protected override void OnClick(string value)
|
|
{
|
|
base.OnClick(value);
|
|
switch (value)
|
|
{
|
|
case "物资采购合同执行_btn多批次":
|
|
LoadTriggerNextGuide();
|
|
break;
|
|
case "物资采购合同执行_btn执行":
|
|
GetControl<InputField>("物资采购合同执行_批次").text = GetControl<InputField>("物资采购合同执行_批次_1").text;
|
|
if (MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(value))
|
|
{
|
|
LoadTriggerNextGuide();
|
|
}
|
|
break;
|
|
case "物资采购合同执行_btn确定按钮":
|
|
LoadTriggerNextGuide();
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
protected override void OnInputChange(string inputPath, string value)
|
|
{
|
|
base.OnInputChange(inputPath, value);
|
|
switch (inputPath)
|
|
{
|
|
case "物资采购合同执行_工厂":
|
|
if (MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string> { value }))
|
|
{
|
|
LoadTriggerNextGuide();
|
|
}
|
|
break;
|
|
case "物资采购合同执行_公司代码":
|
|
if (MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string> { value }))
|
|
{
|
|
LoadTriggerNextGuide();
|
|
}
|
|
break;
|
|
case "物资采购合同执行_批次":
|
|
break;
|
|
case "物资采购合同执行_批次_1":
|
|
if (MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string> { value }))
|
|
{
|
|
LoadTriggerNextGuide();
|
|
}
|
|
break;
|
|
case "物资采购合同执行_批次_2":
|
|
if (MotionFramework.MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string> { value }))
|
|
{
|
|
LoadTriggerNextGuide();
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|