54 lines
1.8 KiB
C#
54 lines
1.8 KiB
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
using WI;
|
|||
|
|
namespace CHN
|
|||
|
|
{
|
|||
|
|
public class Panel_DashBoard : PanelBase
|
|||
|
|
{
|
|||
|
|
public UI_DashboardCheckListBox dashBoardCheckListBox;
|
|||
|
|
|
|||
|
|
public Panel_CompleteAlramHistory completeAlramHistory;
|
|||
|
|
public Panel_Library library;
|
|||
|
|
public Panel_WorkConditionAnalysis workConditionAnalysis;
|
|||
|
|
public Panel_WorkTimeAnalysis workTimeAnalysis;
|
|||
|
|
public override void AfterAwake()
|
|||
|
|
{
|
|||
|
|
dashBoardCheckListBox = GetComponentInChildren<UI_DashboardCheckListBox>(true);
|
|||
|
|
|
|||
|
|
completeAlramHistory = FindSingle<Panel_CompleteAlramHistory>();
|
|||
|
|
library = FindSingle<Panel_Library>();
|
|||
|
|
workConditionAnalysis = FindSingle<Panel_WorkConditionAnalysis>();
|
|||
|
|
workTimeAnalysis = FindSingle<Panel_WorkTimeAnalysis>();
|
|||
|
|
|
|||
|
|
PlayerPrefs.SetInt("isCompleteAlramHistory", 0);
|
|||
|
|
PlayerPrefs.SetInt("isLibrary", 0);
|
|||
|
|
PlayerPrefs.SetInt("isWorkConditionAnalysis", 0);
|
|||
|
|
PlayerPrefs.SetInt("isWorkTimeAnalysis", 0);
|
|||
|
|
|
|||
|
|
SetDashBoardCheckListBox();
|
|||
|
|
}
|
|||
|
|
public Dictionary<string, GameObject> GetDashboardItem()
|
|||
|
|
{
|
|||
|
|
var dic = new Dictionary<string, GameObject>();
|
|||
|
|
|
|||
|
|
dic.Add("<22>Ϸ<EFBFBD> <20>˶<EFBFBD> <20>ð<EFBFBD>", completeAlramHistory.gameObject);
|
|||
|
|
dic.Add("<22><><EFBFBD>̺귯<CCBA><EAB7AF>", library.gameObject);
|
|||
|
|
dic.Add("<22>۾<EFBFBD> <20><><EFBFBD><EFBFBD> <20>м<EFBFBD>", workConditionAnalysis.gameObject);
|
|||
|
|
dic.Add("<22>۾<EFBFBD> <20>ð<EFBFBD> <20>м<EFBFBD>", workTimeAnalysis.gameObject);
|
|||
|
|
|
|||
|
|
return dic;
|
|||
|
|
}
|
|||
|
|
private void SetDashBoardCheckListBox()
|
|||
|
|
{
|
|||
|
|
var dashboardItem = GetDashboardItem();
|
|||
|
|
|
|||
|
|
dashBoardCheckListBox.Init(dashboardItem);
|
|||
|
|
}
|
|||
|
|
public void Open()
|
|||
|
|
{
|
|||
|
|
SetActive(true);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|