Tz2/Assets/Scripts/ClaimBreakingAgreementCompo...

72 lines
1.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
/// <summary>
/// 违约索赔组件
/// </summary>
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<string> list = new List<string>();
list.Add(gongchang.text);
list.Add(gongsi.text);
list.Add(pici1.text);
list.Add(pici2.text);
if (MotionEngine.GetModule<ProcessManager>().HandleClick(list))
{
queryPanel.SetActive(true);
FileComponent.DownloadSingleFile("系统数据-附件1供应计划清单");
datika.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide(queryBtn.name);
}
}
}