Пример #1
0
        public void DrawChart()
        {
            if (_IDepartmentStatisticsBarChartView.gvDepartmentStatisticsSource == null)
            {
                IReimburseFacade _IReimburseFacade = InstanceFactory.CreateReimburseFacade();

                List <EmployeeReimburseStatistics> employeeSalaryStatistics =
                    _IReimburseFacade.DepartmentStatistics(
                        Convert.ToDateTime(_IStatisticsConditionView.FromDate),
                        Convert.ToDateTime(_IStatisticsConditionView.ToDate),
                        _IStatisticsConditionView.DepartmentID, _IStatisticsConditionView.CompanyID,
                        _IStatisticsConditionView.IsAccumulated, _LoginUser);
                _IDepartmentStatisticsBarChartView.gvDepartmentStatisticsSource =
                    UtilityPresenter.TurnToEmployeeReimburseStatisticsDataTable(employeeSalaryStatistics,
                                                                                UtilityPresenter.StatisticsTableTypeEnum.
                                                                                Department);
            }
        }
Пример #2
0
        public void DrawChart()
        {
            if (_IEmployeeStatisticsTableView.gvEmployeeStatisticsTableSource == null)
            {
                IReimburseFacade _IReimburseFacade = InstanceFactory.CreateReimburseFacade();

                List <EmployeeReimburseStatistics> employeeSalaryStatistics =
                    _IReimburseFacade.EmployeeStatistics(
                        Convert.ToDateTime(_IEmployeeStatisticsConditionView.FromDate),
                        Convert.ToDateTime(_IEmployeeStatisticsConditionView.ToDate),
                        _IEmployeeStatisticsConditionView.DepartmentID,
                        _IEmployeeStatisticsConditionView.CompanyID,
                        _IEmployeeStatisticsConditionView.EmployeeName, _LoginUser);

                DataTable dt = UtilityPresenter.TurnToEmployeeReimburseStatisticsDataTable(employeeSalaryStatistics,
                                                                                           UtilityPresenter.
                                                                                           StatisticsTableTypeEnum.
                                                                                           Employee);
                _IEmployeeStatisticsTableView.gvEmployeeStatisticsTableSource = dt;
            }
        }