private async void ButtonUserReportsClick(object sender, RoutedEventArgs e) { if (NavigatorReportsType == ReportsType.Demo) { NavigatorReportsType = ReportsType.Custom; AutomationProperties.SetName(buttonUserReports, StiLocalization.Get("NavigatorRT", "CustomReports")); } else { NavigatorReportsType = ReportsType.Demo; AutomationProperties.SetName(buttonUserReports, StiLocalization.Get("NavigatorRT", "DemoReports")); } await FillDataAsync(); }
public FrmReportMachine(ReportsType reportType) { NAMConfig configData = null; ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap(); fileMap.ExeConfigFilename = @"NAMSettings.config"; // relative path names possible Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None); configData = config.GetSection("NAMSettings") as NAMConfig; if ( config != null && configData!= null) { diskUsagePerc = configData.DiskUsagePercentage; } InitializeComponent(); InitializeResourceString(); rptType = reportType; }
private void cboReport_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (cboReport.SelectedIndex > 0) { if (cboReport.SelectedIndex == 1) { reportsType = ReportsType.Summary; } if (cboReport.SelectedIndex == 2) { reportsType = ReportsType.Count; } if (cboReport.SelectedIndex == 3) { reportsType = ReportsType.Statistics; } } }
public ReportInfos(ReportsType.Reports Types) { InitializeComponent(); nuYear.Value = DateTime.Now.Year; nuMonth.Value = DateTime.Now.Month; ReportType = Types; if (ReportType == ReportsType.Reports.EmployeeCollect) { this.TitleContent = Utility.GetResourceStr("员工统计信息报表"); } else if (ReportType == ReportsType.Reports.EmployeePension) { this.TitleContent = Utility.GetResourceStr("薪酬明细报表"); } else if (ReportType == ReportsType.Reports.EmployeeTruct) { this.TitleContent = Utility.GetResourceStr("员工结构统计报表"); } initEvents(); }
//public async Task LoadAllExpenseReportsAsync() //{ // await this.ViewService.ExecuteBusyActionAsync( // async () => // { // this.Load(await this._repository.GetExpenseReportsAsync(this.EmployeeViewModel.EmployeeId)); // }); //} public void LoadSavedExpenseReports() { reportsType = ReportsType.Saved; this.Load(this._repository.GetExpenseReportsByStatus(this.EmployeeViewModel.EmployeeId, ExpenseReportStatus.Saved)); }