Esempio n. 1
0
 private void Browser_IsBrowserInitializedChanged(object sender, IsBrowserInitializedChangedEventArgs e)
 {
     service         = new ChartsService(this._ifForm.Browser.GetMainFrame());
     _ifForm.Handler = service;
     service.RegisterContainer("container1", splitContainer.Panel1);
     service.RegisterContainer("container2", splitContainer.Panel2);
 }
Esempio n. 2
0
 public string getAccountingBalance(string start_date, string stop_date)
 {
     try
     {
         cs = new ChartsService();
         Dictionary <string, List <decimal> > result = cs.getAccountBalanceService(start_date, stop_date);
         if (result != null)
         {
             return(FinanceResultData.getFinanceResultData().success(200, result, "科目余额"));
         }
         else
         {
             return(FinanceResultData.getFinanceResultData().success(500, null, "科目余额图表未查询到数据或数据有误"));
         }
     }
     catch (InvalidOperationException ex)
     {
         //身份验证不通过
         return(FinanceResultData.getFinanceResultData().fail(401, null, ex.Message));
     }
     catch (Exception ex)
     {
         //未知的错误
         return(FinanceResultData.getFinanceResultData().fail(500, null, "未知的错误"));
     }
 }
Esempio n. 3
0
        private readonly Period[] implementedBySplitter = new Period[] { Period.Day }; //TODO remove when all splitters will be done

        public StatisticsController(IQueryBus queryBus, ICommandBus commandBus, MessagesServiceFactory messagesServiceFactory, ReportsService reportsService, ChartsService chartsService)
        {
            this._queryBus               = queryBus;
            this._commandBus             = commandBus;
            this._messagesServiceFactory = messagesServiceFactory;
            this._reportsService         = reportsService;
            this._chartsService          = chartsService;
        }
Esempio n. 4
0
        private void buttonGeneruj_Click(object sender, RoutedEventArgs e)
        {
            if (comboBoxFirstColumn.SelectedIndex == -1 ||
                comboBoxSecondColumn.SelectedIndex == -1 ||
                comboBoxClassColumn.SelectedIndex == -1)
            {
                MessageBox.Show("Nie wybrano wartości dla wszystkich kolumn");
            }
            else
            {
                classPointList = DataTableService.GetColumnFromTableAsClassPointList(mainTable, comboBoxFirstColumn.SelectedIndex, comboBoxSecondColumn.SelectedIndex, comboBoxClassColumn.SelectedIndex);

                cartesianChart.Series = ChartsService.GetNewSeriesCollectionDependOnColumns(classPointList);
                axisX.Title           = comboBoxFirstColumn.SelectedItem.ToString();
                axisY.Title           = comboBoxSecondColumn.SelectedItem.ToString();

                buttonRozwinKlasyfikacje.IsEnabled = true;
            }
        }
 public PeriodStatisticsService(ChartsService chartsService, StatisticsGroupingService statisticsGroupingService)
 {
     this._chartsService             = chartsService;
     this._statisticsGroupingService = statisticsGroupingService;
 }
Esempio n. 6
0
 public ChartsController(ChartsService service)
 {
     _service = service;
 }
Esempio n. 7
0
 private void buttonGenerujWykres_Click(object sender, RoutedEventArgs e)
 {
     cartesianChart.Series = ChartsService.GetSeriesCollectionForLineChart(valuesWithClass);
 }