using System;
using System.Collections;
using System.Collections.Generic;
using DefaultNamespace;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using MotionFramework;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
///
/// 违约索赔组件
///
public class ClaimBreakingAgreementComponent : MonoBehaviour
{
public Button queryBtn;
public Button piciweiyi;
public InputField gongchang;
public InputField gongsi;
public InputField pici;
public InputField pici1;
public InputField pici2;
public GameObject piciweiyiPanel;
public GameObject queryPanel;
public InputField stateWuliao;
public Button btzhixing;
public GameObject datika;
private void Start()
{
queryBtn.onClick.AddListener(Query);
piciweiyi.onClick.AddListener(OpenPiciWeiYi);
btzhixing.onClick.AddListener(OnClickZhixing);
}
private void OnClickZhixing()
{
piciweiyiPanel.gameObject.SetActive(false);
pici.text = pici1.text;
stateWuliao.text = "";
TutorialGuideManager.Instance.TriggerNextGuide(btzhixing.name);
}
private void OpenPiciWeiYi()
{
piciweiyiPanel.gameObject.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide(piciweiyi.name);
}
private void Query()
{
List list = new List();
list.Add(gongchang.text);
list.Add(gongsi.text);
list.Add(pici1.text);
list.Add(pici2.text);
if (MotionEngine.GetModule().HandleClick(list))
{
queryPanel.SetActive(true);
FileComponent.DownloadSingleFile("系统数据-附件1:供应计划清单");
datika.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide(queryBtn.name);
}
}
}