Esempio n. 1
0
        public HomePageViewModel()
        {
            _querytablecallbackdelegate = new QueryTableCallBackDelegate(QueryTableCallBack);
            InitializedCommand          = new DelegateCommand <object>(new Action <object>(this.Initialized));
            LoadedCommand             = new DelegateCommand <object>(new Action <object>(this.Loaded));
            SizeChangedCommand        = new DelegateCommand <object>(new Action <object>(this.SizeChanged));
            ShowPieChartCommand       = new DelegateCommand <object>(new Action <object>(this.ShowPieChart));
            ShowLineChartCommand      = new DelegateCommand <object>(new Action <object>(this.ShowLineChart));
            ShowHistogramChartCommand = new DelegateCommand <object>(new Action <object>(this.ShowHistogramChart));

            _totalSheBeiGuZhang    = "1111";
            _totalBanLiYeWu        = "2222";
            _totalXiangGangWangLai = "3333";
            _totalTaiWanWangLai    = "4444";
            _totalSheBeiZaiXian    = "5555";
            _totalGuanLiCiShu      = "6666";

            _topHeight        = 60;
            _regionTextHeight = 50;
            _regionRightWidth = 200;
            _region0Text      = "已受理业务统计图";
            _region1Text      = "已受理业务概率图表";
            _region2Text      = "已受理业务饼图表";
            _region3Text      = "已受理业务直方图表";

            _lineCharIndex      = -1;
            _histogramCharIndex = -1;
            _pieCharIndex       = -1;
            _occupancyCharIndex = -1;

            _bShowChart = ShowChartEnum.ShowChartEnum_Line;
        }
Esempio n. 2
0
        public SignStatViewModel()
        {
            _querytablecallbackdelegate = new QueryTableCallBackDelegate(QueryTableCallBack);
            LoadedCommand             = new DelegateCommand <object>(new Action <object>(this.Loaded));
            SizeChangedCommand        = new DelegateCommand <object>(new Action <object>(this.SizeChanged));
            ShowPieChartCommand       = new DelegateCommand <object>(new Action <object>(this.ShowPieChart));
            ShowLineChartCommand      = new DelegateCommand <object>(new Action <object>(this.ShowLineChart));
            ShowHistogramChartCommand = new DelegateCommand <object>(new Action <object>(this.ShowHistogramChart));
            StatisticsCommand         = new DelegateCommand <object>(new Action <object>(this.Statistics));
            VerifySelCommand          = new DelegateCommand <object>(new Action <object>(this.VerifySel));

            startTime         = DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd HH:mm:ss");
            endTime           = DateTime.Now.AddDays(7).ToString("yyyy-MM-dd HH:mm:ss");
            _leftListWidth    = 150;
            _topHeight        = 60;
            _regionTextHeight = 50;
            _bShowChart       = ShowChartEnum.ShowChartEnum_Histogram;

            _lineCharIndex      = -1;
            _histogramCharIndex = -1;
            _pieCharIndex       = -1;
        }