82 lines
2.5 KiB
C#
82 lines
2.5 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DefaultNamespace;
|
|
using DefaultNamespace.ProcessMode;
|
|
using Framework.Manager;
|
|
using MotionFramework;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ReviewContractChangeApplication : MonoBehaviour
|
|
{
|
|
public InputField gongchang;
|
|
|
|
public InputField gongsi;
|
|
|
|
public InputField pici;
|
|
public InputField pici1;
|
|
public InputField pici2;
|
|
public InputField pici3;
|
|
public InputField pici4;
|
|
|
|
public Button piciBt;
|
|
public Button picizhixingBt;
|
|
|
|
public GameObject piciWin;
|
|
// public InputField pici;
|
|
public Button querybt;
|
|
private Framework.Dto.InventoryReversalVoucherAnalyzer returnRevVoucherAnalyzer;
|
|
|
|
public GameObject queryWin;
|
|
//public GameObject datika;
|
|
private void Start()
|
|
{
|
|
querybt.onClick.AddListener(OnQueryButtonClicked);
|
|
returnRevVoucherAnalyzer = (Framework.Dto.InventoryReversalVoucherAnalyzer)MotionEngine.GetModule<GlobalDataStorage>().materialTaskObj;
|
|
piciBt.onClick.AddListener(OnPiciButtonClicked);
|
|
picizhixingBt.onClick.AddListener(OnPicizhixingButtonClicked);
|
|
}
|
|
|
|
private void OnPicizhixingButtonClicked()
|
|
{
|
|
pici.text = pici1.text;
|
|
piciWin.SetActive(false);
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
|
|
}
|
|
|
|
private void OnPiciButtonClicked()
|
|
{
|
|
piciWin.SetActive(true);
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
}
|
|
|
|
private void OnQueryButtonClicked()
|
|
{
|
|
List<string> list = new List<string>();
|
|
list.Add(gongchang.text);
|
|
list.Add(gongsi.text);
|
|
list.Add(pici1.text);
|
|
list.Add(pici2.text);
|
|
list.Add(pici3.text);
|
|
list.Add(pici4.text);
|
|
if (MotionEngine.GetModule<ProcessManager>().HandleClick(list))
|
|
{
|
|
if (returnRevVoucherAnalyzer.formselection == "合同1")
|
|
{
|
|
FileComponent.DownloadSingleFile("附件2 系统数据-合同执行计划_合同1");
|
|
}
|
|
else
|
|
{
|
|
FileComponent.DownloadSingleFile("附件2 系统数据-合同执行计划_合同2");
|
|
}
|
|
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
FileComponent.DownloadSingleFile("合同变更判断及原因_答题卡1");
|
|
queryWin.SetActive(true);
|
|
//datika.SetActive(true);
|
|
}
|
|
// FileComponent.DownloadSingleFile( "附件2 系统数据-合同执行计划_合同2");
|
|
}
|
|
} |