public PreparedChequesListVM(ITenantDBsDir dir, VoucherReqsTabVM vouchersTab)
     : base(dir.Vouchers.PreparedCheques, dir, false)
 {
     _main               = vouchersTab;
     Caption             = "Prepared Cheques";
     ViewVoucherCmd      = R2Command.Relay(_ => OnItemOpened(ItemsList.CurrentItem), null, "View Voucher Details");
     PrintVoucherCmd     = R2Command.Relay(PrintVoucher, null, "Print Cheque Voucher");
     EditChequeCmd       = R2Command.Relay(EditChequeDetails, _ => AppArgs.CanInputChequeDetails(false), "Edit Cheque Details");
     RemoveChequeInfoCmd = R2Command.Relay(RemoveChequeInfo, _ => AppArgs.CanInputChequeDetails(false), "Remove Cheque Details");
     MarkAsCancelledCmd  = R2Command.Relay(MarkAsCancelled, _ => AppArgs.CanMarkChequeAsCancelled(false), "Mark Cheque as “Cancelled”");
 }
Beispiel #2
0
        public MainWindowVM(ITenantDBsDir tenantDBsDir, bool clickRefresh = true) : base(tenantDBsDir)
        {
            DateRange      = new DateRangePickerVM(this);
            BankAcctPicker = new BankAccountPickerVM(this, clickRefresh);
            VoucherReqs    = new VoucherReqsTabVM(this);
            DcdrReport     = new DcdrTabVM(this);
            Journals       = new JournalsTabVM(this);
            AllChkVouchers = new AllVoucherRequestsVM(this);
            AdHocJobs      = new AdHocJobCmdsVM(this);

            PrintCmd.SetLabel("Print “Pending Checks” List");
        }