コード例 #1
0
 private void ViewReport(ExpenseReportViewModel reportViewModel)
 {
     if (ShowExpenseReport != null)
     {
         ShowExpenseReport(reportViewModel, EventArgs.Empty);
     }
     //this.NavigationService.ShowExpenseReport(reportViewModel);
 }
コード例 #2
0
 public void ShowExpenseReport(ExpenseReportViewModel expenseReportViewModel)
 {
     EventHandler<EventArgs<ExpenseReportViewModel>> handler = this.ShowExpenseReportRequested;
     if (handler != null)
     {
         handler(this, new EventArgs<ExpenseReportViewModel>(expenseReportViewModel));
     }
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
 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();
     }
 }
コード例 #5
0
        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;
                });
        }
コード例 #6
0
        public void NewReport()
        {
            ExpenseReportViewModel reportVM = new ExpenseReportViewModel()
            {
                Approver = this.EmployeeViewModel.Manager,
                EmployeeId = this.EmployeeViewModel.EmployeeId,
                ExpenseReportId = 0,
            };

            this.ShowExpenseReportAsync(reportVM);
        }
コード例 #7
0
 private void ViewReport(ExpenseReportViewModel reportViewModel)
 {
     this.NavigationService.ShowExpenseReport(reportViewModel);   
 }
コード例 #8
0
 private void ViewReport(ExpenseReportViewModel reportViewModel)
 {
     this.NavigationService.ShowExpenseReport(reportViewModel);
 }