public void SwitchTagTab(TagTabs tab) { switch (tab) { case TagTabs.SystemDimensionTab: //click system tab JazzButton.EnergyViewSystemDimensionTagsTab.Click(); TagGrid = JazzGrid.EnergyAnalysisSystemDimensionTagList; break; case TagTabs.AreaDimensionTab: //click area tab JazzButton.EnergyViewAreaDimensionTagsTab.Click(); TagGrid = JazzGrid.EnergyAnalysisAreaDimensionTagList; break; case TagTabs.HierarchyTag: //click all tab JazzButton.EnergyViewALLTagsTab.Click(); TagGrid = JazzGrid.EnergyAnalysisAllTagList; break; default: //click all tab JazzButton.EnergyViewALLTagsTab.Click(); TagGrid = JazzGrid.EnergyAnalysisAllTagList; break; } }
/// <summary> /// Switch among "层级", "系统维度", "区域维度" /// </summary> public void SwitchTagTab(TagTabs tab) { switch (tab) { case TagTabs.SystemDimensionTab: //click system tab JazzButton.CostSystemDimensionTab.Click(); CommodityGrid = JazzGrid.OtherCommodityCostGrid; TotalCommotidyGrid = JazzGrid.TotalOtherCommodityCostGrid; break; case TagTabs.AreaDimensionTab: //click area tab JazzButton.CostAreaDimensionTabButton.Click(); CommodityGrid = JazzGrid.OtherCommodityCostGrid; TotalCommotidyGrid = JazzGrid.TotalOtherCommodityCostGrid; break; case TagTabs.HierarchyTag: //click all tab JazzButton.CostHierarchyTab.Click(); CommodityGrid = JazzGrid.CommodityCostGrid; TotalCommotidyGrid = JazzGrid.TotalCommodityCostGrid; break; default: //click all tab JazzButton.CostHierarchyTab.Click(); CommodityGrid = JazzGrid.CommodityCostGrid; TotalCommotidyGrid = JazzGrid.TotalCommodityCostGrid; break; } }
/// <summary> /// Switch among "全部数据点", "系统数据点", "区域数据点" /// </summary> /// <param name="tab"></param> public void SwitchTagTab(TagTabs tab) { switch (tab) { case TagTabs.SystemDimensionTab: //click system tab JazzButton.MultipleHierarchySystemDimensionTab.Click(); TagGrid = JazzGrid.MultiHierarchySystemDimensionTagList; break; case TagTabs.AreaDimensionTab: //click area tab JazzButton.MultipleHierarchyAreaDimensionTab.Click(); TagGrid = JazzGrid.MultiHierarchyAreaDimensionTagList; break; case TagTabs.HierarchyTag: JazzButton.MultipleHierarchyAllTags.Click(); TagGrid = JazzGrid.MultiHierarchyAllTagList; break; default: //click all tab JazzButton.MultipleHierarchyAllTags.Click(); TagGrid = JazzGrid.MultiHierarchyAllTagList; break; } }
public void SwitchTagTab(TagTabs tab) { bool IsEnergyConsumption = (JazzFunction.EnergyViewToolbar.GetFuncModeConvertTargetText().Contains("能耗") || JazzFunction.EnergyViewToolbar.GetFuncModeConvertTargetText().Contains("Energy consumption")); switch (tab) { case TagTabs.SystemDimensionTab: //click system tab if (IsEnergyConsumption) { JazzButton.EnergyViewSystemDimensionTagsTab.Click(); } else { JazzButton.UnitIndicatorSystemDimensionTagsTab.Click(); } UnitCostCommodityGrid = JazzGrid.OtherCommodityCostGrid; UnitCostTotalCommotidyGrid = JazzGrid.TotalOtherCommodityCostGrid; TagGrid = JazzGrid.EnergyAnalysisSystemDimensionTagList; break; case TagTabs.AreaDimensionTab: //click area tab if (IsEnergyConsumption) { JazzButton.EnergyViewAreaDimensionTagsTab.Click(); } else { JazzButton.UnitIndicatorAreaDimensionTagsTab.Click(); } UnitCostCommodityGrid = JazzGrid.OtherCommodityCostGrid; UnitCostTotalCommotidyGrid = JazzGrid.TotalOtherCommodityCostGrid; TagGrid = JazzGrid.EnergyAnalysisAreaDimensionTagList; break; case TagTabs.HierarchyTag: //click all tab if (IsEnergyConsumption) { JazzButton.EnergyViewALLTagsTab.Click(); } else { JazzButton.UnitIndicatorALLTagsTab.Click(); } UnitCostCommodityGrid = JazzGrid.CommodityUnitCostGrid; UnitCostTotalCommotidyGrid = JazzGrid.TotalCommodityUnitCostGrid; TagGrid = JazzGrid.EnergyAnalysisAllTagList; break; default: //click all tab if (IsEnergyConsumption) { JazzButton.EnergyViewALLTagsTab.Click(); } else { JazzButton.UnitIndicatorALLTagsTab.Click(); } UnitCostCommodityGrid = JazzGrid.CommodityUnitCostGrid; UnitCostTotalCommotidyGrid = JazzGrid.TotalCommodityUnitCostGrid; TagGrid = JazzGrid.EnergyAnalysisAllTagList; break; } }