void DisplayDetailReportCategory() { DetailReportPanelCategoryDropdown.GetComponent <Dropdown>().ClearOptions(); List <string> MonthList = new List <string>(); for (int i = 1; i < 5; i++) { int TargetTimeValue = CallTimeManager.TimeValue - (CallTimeManager.Month * i); if (TargetTimeValue >= 0) { MonthList.Add(CallTimeManager.ConvertMonthToString(CallTimeManager.GetMonthInt(TargetTimeValue))); } } DetailReportPanelCategoryDropdown.GetComponent <Dropdown>().AddOptions(MonthList); if (DetailReportPanelCategoryDropdown.GetComponent <Dropdown>().options.Count == 0) { DetailReportPanelCategoryDropdown.GetComponent <Dropdown>().interactable = false; } else { DetailReportPanelCategoryDropdown.GetComponent <Dropdown>().interactable = true; } }
public void Initializing() { DiplaySummary(); DisplayDetailCurrentReport(); DisplayDetailReportCategory(); DisplayBankList(); if (DetailReportPanelCategoryDropdown.GetComponent <Dropdown>().options.Count == 0) { ClearDetailReportPanel(false); } else { DisplayDetailPastReport(0); } }
public void DetailReportCategoryValueChange() { int DropdownValue = DetailReportPanelCategoryDropdown.GetComponent <Dropdown>().value; DisplayDetailPastReport(DropdownValue); }