/// <summary> /// Item按钮触发 /// </summary> public void ItemToggle_OnValueChanged(bool ison) { if (ison) { print("ItemBtn_OnClick!"); OperationTicketDetailsUI_N.Instance.Show(info); TwoTicketSystemManage.Instance.ShowOperationTicketPath(info); ToggleGroup toggleGroup = TwoTicketSystemUI_N.Instance.toggleGroup; FunctionSwitchBarManage.Instance.SetTransparentToggle(true); changeTextColor.ClickTextColor(); } else { changeTextColor.NormalTextColor(); TwoTicketSystemManage.Instance.Hide(); FunctionSwitchBarManage.Instance.SetTransparentToggle(false); OperationTicketDetailsUI_N.Instance.SetWindowActive(false); } }
/// <summary> /// Item按钮触发 /// </summary> public void ItemToggle_OnValueChanged(bool ison) { if (ison) { //print("ItemBtn_OnClick!"); GetInspectionDetail(InspectionTrackInfo, infoDetail => { //FunctionSwitchBarManage.Instance.SetTransparentToggle(true);//暂时先不透明 changeTextColor.ClickTextColor(); MobileInspectionInfoManage.Instance.CloseWindow(); //关闭巡检点详情窗口 MobileInspectionHistoryDetailsUI.Instance.CloseBtn_OnClick(); //关闭巡检项窗口 if (infoDetail == null || infoDetail.Route == null) { if (UGUIMessageBox.Instance) { UGUIMessageBox.Instance.ShowMessage("该巡检路线,详情为空!"); } return; } InspectionTrackInfo = infoDetail; MobileInspectionDetailsUI.Instance.Show(InspectionTrackInfo); MobileInspectionInfoFollow.Instance.DateUpdate(InspectionTrackInfo); //ToggleGroup toggleGroup = MobileInspectionUI_N.Instance.toggleGroup; //FunctionSwitchBarManage.Instance.SetTransparentToggle(true); //changeTextColor.ClickTextColor(); }); } else { changeTextColor.NormalTextColor(); MobileInspectionInfoFollow.Instance.Hide(); //FunctionSwitchBarManage.Instance.SetTransparentToggle(false); MobileInspectionDetailsUI.Instance.SetWindowActive(false); MobileInspectionInfoManage.Instance.CloseWindow(); //关闭巡检点详情窗口 MobileInspectionHistoryDetailsUI.Instance.CloseBtn_OnClick(); //关闭巡检项窗口 } }