Tz2/Assets/Zion/Scripts/配送/ERP/脚本违约索赔(技师)/ERPQueryPurchaseExecutionSt...

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;
}
}
}