56 lines
1.4 KiB
C#
56 lines
1.4 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using WI;
|
|
using UnityEngine.UI;
|
|
using TMPro;
|
|
using System;
|
|
|
|
namespace CHN
|
|
{
|
|
public class Panel_WorkConditionAnalysis : PanelBase
|
|
{
|
|
private Button Button_StartDay;
|
|
private Button Button_EndDay;
|
|
private TextMeshProUGUI Text_StartDay;
|
|
private TextMeshProUGUI Text_EndDay;
|
|
private TMP_Dropdown Dropdown_Facility;
|
|
private TMP_InputField InputField_WorkOrderNumber;
|
|
private Button Button_Search;
|
|
private Button Button_Close;
|
|
|
|
private UI_Calendar ui_Calendar;
|
|
|
|
public override void AfterAwake()
|
|
{
|
|
ui_Calendar = transform.GetComponentInChildren<UI_Calendar>();
|
|
Button_Close.onClick.AddListener(() => SetActive(false));
|
|
Button_StartDay.onClick.AddListener(OnClickStartDayBtn);
|
|
Button_EndDay.onClick.AddListener(OnClickEndDayBtn);
|
|
|
|
ui_Calendar.Close();
|
|
|
|
Text_StartDay.text = DateTime.Now.ToString("yyyy-MM-dd");
|
|
Text_EndDay.text = DateTime.Now.ToString("yyyy-MM-dd");
|
|
|
|
SetActive(false);
|
|
}
|
|
|
|
private void OnClickStartDayBtn()
|
|
{
|
|
ui_Calendar.Open(Text_StartDay);
|
|
}
|
|
|
|
private void OnClickEndDayBtn()
|
|
{
|
|
ui_Calendar.Open(Text_EndDay);
|
|
}
|
|
|
|
public void Open()
|
|
{
|
|
SetActive(true);
|
|
}
|
|
}
|
|
}
|
|
|