2025-03-12 12:04:19 +09:00
|
|
|
|
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>();
|
|
|
|
|
|
|
2025-03-20 14:09:04 +09:00
|
|
|
|
PlayerPrefs.SetInt("isCompleteAlramHistory", 1);
|
|
|
|
|
|
PlayerPrefs.SetInt("isLibrary", 1);
|
2025-03-12 12:04:19 +09:00
|
|
|
|
PlayerPrefs.SetInt("isWorkConditionAnalysis", 0);
|
|
|
|
|
|
PlayerPrefs.SetInt("isWorkTimeAnalysis", 0);
|
|
|
|
|
|
|
|
|
|
|
|
SetDashBoardCheckListBox();
|
2025-03-18 13:57:27 +09:00
|
|
|
|
SetActive(false);
|
2025-03-12 12:04:19 +09:00
|
|
|
|
}
|
|
|
|
|
|
public Dictionary<string, GameObject> GetDashboardItem()
|
|
|
|
|
|
{
|
|
|
|
|
|
var dic = new Dictionary<string, GameObject>();
|
|
|
|
|
|
|
2025-03-12 18:55:01 +09:00
|
|
|
|
dic.Add("<22>Ϸ<EFBFBD> <20>ð<EFBFBD> <20>˶<EFBFBD>", completeAlramHistory.gameObject);
|
2025-03-12 12:04:19 +09:00
|
|
|
|
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);
|
|
|
|
|
|
}
|
2025-04-15 15:27:26 +09:00
|
|
|
|
public void ActiveDashBoard(bool isActive)
|
2025-03-12 12:04:19 +09:00
|
|
|
|
{
|
2025-04-15 15:27:26 +09:00
|
|
|
|
SetActive(isActive);
|
2025-03-12 12:04:19 +09:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|