Beispiel #1
0
        void inventoryChart_ChartDataClicked(object sender, Infragistics.UltraChart.Shared.Events.ChartDataEventArgs e)
        {
            UltraChart currentChart = GetChartFromControls();

            if (_rootLevel)
            {
                if (currentChart != null)
                {
                    currentChart.DataSource = lStatisticsDAO.GetDashboardInventoryItems(e.RowLabel, (int)comboBoxLocations.SelectedValue);
                }

                _lastAssetType       = e.RowLabel;
                _rootLevel           = false;
                _resultsGrid.Visible = false;

                lbDisplayInfo.Text = String.Format("Displaying {0} -> {1} by manufacturer in '{2}'", tabControl1.SelectedTab.Text, e.RowLabel, comboBoxLocations.Text);
            }
            else
            {
                // user clicked on second level so need to display assets which have this manufacturer
                DataTable assetTable = lStatisticsDAO.GetDashboardInventoryAssets(e.RowLabel, _lastAssetType, tabControl1.SelectedTab.Text, (int)comboBoxLocations.SelectedValue);

                _resultsGrid.Visible    = true;
                _resultsGrid.DataSource = assetTable;
                _resultsGrid.Dock       = DockStyle.Fill;

                currentChart.Visible = false;
                tabControl1.SelectedTab.Controls.Add(_resultsGrid);

                _resultsGrid.DisplayLayout.Bands[0].Columns[0].CellAppearance.TextTrimming = Infragistics.Win.TextTrimming.EllipsisWord;
                _resultsGrid.DisplayLayout.Bands[0].Columns[0].CellMultiLine = Infragistics.Win.DefaultableBoolean.True;
                _resultsGrid.DisplayLayout.Bands[0].Columns[1].CellAppearance.TextTrimming = Infragistics.Win.TextTrimming.EllipsisWord;
                _resultsGrid.DisplayLayout.Bands[0].Columns[1].CellMultiLine = Infragistics.Win.DefaultableBoolean.True;
                _resultsGrid.DisplayLayout.Bands[0].Columns[2].CellAppearance.TextTrimming = Infragistics.Win.TextTrimming.EllipsisWord;
                _resultsGrid.DisplayLayout.Bands[0].Columns[2].CellMultiLine = Infragistics.Win.DefaultableBoolean.True;

                lbDisplayInfo.Text = String.Format
                                         ("{0} asset(s) of Type '{1}' in '{2}' with manufacturer of '{3}'",
                                         _resultsGrid.Rows.Count, _lastAssetType, comboBoxLocations.Text, e.RowLabel);
            }
        }
 private void licenseChart_ChartDataClicked(object sender, Infragistics.UltraChart.Shared.Events.ChartDataEventArgs e)
 {
     ((OverviewWorkItemController)_workItem.Controller).DisplayDrilldownData("Installations for : " + e.RowLabel);
 }
Beispiel #3
0
 protected void chart30Days_ChartDataClicked(object sender, Infragistics.UltraChart.Shared.Events.ChartDataEventArgs e)
 {
     ShowByDay(DateTime.Parse(e.RowLabel));
 }
 private void complianceChart_ChartDataClicked(object sender, Infragistics.UltraChart.Shared.Events.ChartDataEventArgs e)
 {
     ((OverviewWorkItemController)_workItem.Controller).DisplayDrilldownData("Compliance : " + e.RowLabel);
 }
Beispiel #5
0
 protected void UltraChart1_ChartDataClicked(object sender, Infragistics.UltraChart.Shared.Events.ChartDataEventArgs e)
 {
 }