예제 #1
0
        public void onCreateComponet()
        {
            controller = new GYMBaseManageController();
            controller.QueryEntryDataRange(out startDate, out endDate);

            baseChartHelper = new ChartControlHelper(this.chartControl1);
            baseDatabuilder = new SingleDataValueSeriesBuilder();
            baseDatabuilder.CreateSeries("跑步训练量", DevExpress.XtraCharts.ViewType.Line);

            appChartHelper = new ChartControlHelper(chartControl2);
            appDataBuilder = new List <SingleDataValueSeriesBuilder>();
            foreach (var item in new GYMCatalogManageController().TravleAllEntities())
            {
                SingleDataValueSeriesBuilder temp = new SingleDataValueSeriesBuilder();
                temp.CreateSeries(item.Name, DevExpress.XtraCharts.ViewType.Line);
                appDataBuilder.Add(temp);
            }

            dateChartHelper      = new ChartControlHelper(this.chartControl3);
            dateCountDataBuilder = new SingleDataValueSeriesBuilder();
            dateCountDataBuilder.CreateSeries("temp", DevExpress.XtraCharts.ViewType.Pie);
            dateCountDataBuilder.StyleDesigner.SetPieLengedFormat("{A}:{V:n0}天");

            sumChartHelper     = new ChartControlHelper(this.chartControl4);
            dateSumDataBuilder = new SingleDataValueSeriesBuilder();
            dateSumDataBuilder.CreateSeries("temp", DevExpress.XtraCharts.ViewType.Bar);
            dateSumDataBuilder.StyleDesigner.SetPieLengedFormat("{A}");
            dateSumDataBuilder.StyleDesigner.SetBarSeriesEachColor(true);
        }
예제 #2
0
        private void UC_GYMCompareItem_Load(object sender, EventArgs e)
        {
            chartHelper  = new ChartControlHelper(this.chartControl1);
            dataBuilder  = new SingleDataValueSeriesBuilder();
            statistician = new GYMAPPARATUSStatistician(GParam.Create());

            startDate = DateTime.Now.Date;
            endDate   = DateTime.Now.Date;
        }
예제 #3
0
        public void onCreateComponet()
        {
            statistician = new DailyPlanSignStatistician(GParam.Create());

            chartHelper_Month = new ChartControlHelper(chartControl_Month);
            dataBuilder_Month = new SingleDataValueSeriesBuilder();
            dataBuilder_Month.CreateSeries("Result", DevExpress.XtraCharts.ViewType.Bar);
            dataBuilder_Month.StyleDesigner.SetPieLengedFormat("{A}");
            dataBuilder_Month.StyleDesigner.SetBarSeriesEachColor(true);

            chartHelper_Year = new ChartControlHelper(chartControl_Year);
            dataBuilder_Year = new MulitSingleDataValueSeriesBuilder();
            dataBuilder_Year.CreateSeriesDict(DevExpress.XtraCharts.ViewType.Line);
        }
예제 #4
0
        public void onCreateComponet()
        {
            statistician = new DailyPlanSignStatistician(GParam.Create());

            chartHelper_Precent = new ChartControlHelper(chart_Present);
            dataBuilder_Precent = new SingleDataValueSeriesBuilder();
            dataBuilder_Precent.CreateSeries("Precent", DevExpress.XtraCharts.ViewType.Pie);
            dataBuilder_Precent.StyleDesigner.SetPieLengedFormat("{A} - {V}天数");

            chartHelper_State = new ChartControlHelper(chart_State);
            dataBuilder_State = new SingleDataValueSeriesBuilder();
            dataBuilder_State.CreateSeries("State", DevExpress.XtraCharts.ViewType.Bar);
            dataBuilder_State.StyleDesigner.SetBarSeriesEachColor(true);
            dataBuilder_State.StyleDesigner.SetSeriesLengedOption(true, "{A}");

            controller = new DailyPlanSignManageController();

            builder           = new TB_DailyPlanSignBuilder();
            adapter           = new TB_DailyPlanSignAdapter();
            gridHelper_Record = new GridControlHelper(this.gridView_record, this.gridControl_record);
        }
예제 #5
0
        public void onCreateComponet()
        {
            statistician = new ReadPlanCompareStatistician(GParam.Create());

            chartHelper_ReadDays = new ChartControlHelper(this.chart_ReadDaysCount);
            databuilder_ReadDays = new SingleDataValueSeriesBuilder();
            databuilder_ReadDays.CreateSeries("ReadDays", DevExpress.XtraCharts.ViewType.Pie);
            databuilder_ReadDays.StyleDesigner.SetPieLengedFormat("{A} - {V} 天");

            chartHelper_Contruction = new ChartControlHelper(this.chart_ReadConstruction);
            databuilder_Contruction = new SingleDataValueSeriesBuilder();
            databuilder_Contruction.CreateSeries("Construction", DevExpress.XtraCharts.ViewType.Bar);
            databuilder_Contruction.StyleDesigner.SetSeriesLengedOption(true, "{A}");
            databuilder_Contruction.StyleDesigner.SetBarSeriesEachColor(true);

            chartHelper_State = new ChartControlHelper(this.chart_ReadPlanState);
            dataBuilder_State = new SingleDataValueSeriesBuilder();
            dataBuilder_State.CreateSeries("ReadPlanState", DevExpress.XtraCharts.ViewType.Pie);
            dataBuilder_State.StyleDesigner.SetPieLengedFormat("{A} - {V} 本");

            gridHelper = new GridControlHelper(this.gridView_MonthRecord, this.gridControl_MonthRecord);
        }