private void ViewReport(ExpenseReportViewModel reportViewModel) { if (ShowExpenseReport != null) { ShowExpenseReport(reportViewModel, EventArgs.Empty); } //this.NavigationService.ShowExpenseReport(reportViewModel); }
public void ShowExpenseReport(ExpenseReportViewModel expenseReportViewModel) { EventHandler<EventArgs<ExpenseReportViewModel>> handler = this.ShowExpenseReportRequested; if (handler != null) { handler(this, new EventArgs<ExpenseReportViewModel>(expenseReportViewModel)); } }
private async Task ApproveExpenseReportAsync(ExpenseReportViewModel reportViewModel) { if (await this._viewService.ConfirmAsync( "Confirm expense report", "Are you sure you want to approve this expense report?")) { reportViewModel.Approve(); } }
private async Task ApproveExpenseReportAsync(ExpenseReportViewModel reportViewModel) { if (await this._viewService.ConfirmAsync( "Confirm expense report", "Are you sure you want to approve this expense report?")) { await reportViewModel.ApproveAsync(); } }
public async void ShowExpenseReportAsync(ExpenseReportViewModel expenseReportViewModel) { await this.ViewService.ExecuteBusyActionAsync( async () => { var editReportVM = new EditExpenseReportViewModel(); editReportVM.ExpenseReport = expenseReportViewModel; AddChargesViewModel addChargesVM = new AddChargesViewModel(); await addChargesVM.LoadChargesAsync(); editReportVM.AddCharges = addChargesVM; ExpenseReportChargesViewModel associatedChargesVM = new ExpenseReportChargesViewModel(); await associatedChargesVM.LoadChargesAsync(expenseReportViewModel.ExpenseReportId); editReportVM.AssociatedCharges = associatedChargesVM; this.CurrentViewModel = editReportVM; }); }
public void NewReport() { ExpenseReportViewModel reportVM = new ExpenseReportViewModel() { Approver = this.EmployeeViewModel.Manager, EmployeeId = this.EmployeeViewModel.EmployeeId, ExpenseReportId = 0, }; this.ShowExpenseReportAsync(reportVM); }
private void ViewReport(ExpenseReportViewModel reportViewModel) { this.NavigationService.ShowExpenseReport(reportViewModel); }