Exemplo n.º 1
0
        public ProcessedJournalsDialogViewModel(IAccountingJournalEndpoint accountingJournalEndpoint)
        {
            _accountingJournalEndpoint = accountingJournalEndpoint;

            OpenJournalCommand = new DelegateCommand(OpenSelectedJournal, CanOpenJournal);
            LoadJournalCommand = new DelegateCommand(OpenSelectedJournal, CanOpenJournal);
        }
        public ProcessToJournalViewModel(IDialogService openDialog, IAccountingJournalEndpoint accountingJournalEndpoint)
        {
            _showDialog = openDialog;
            _accountingJournalEndpoint = accountingJournalEndpoint;

            AccountsLinkCommand = new DelegateCommand(AddNewPair, CanAddPair);
            AddRowCommand       = new DelegateCommand(AddRow);
            DeleteRowCommand    = new DelegateCommand(DeleteRow);
            ProcessCommand      = new DelegateCommand(ProcessRows);
        }
Exemplo n.º 3
0
        public BalanceCardDialogViewModel(IBookAccountsEndpoint bookAccountsEndpoint,
                                          IAccountingJournalEndpoint accountingJournalEndpoint,
                                          IDialogService showDialog)
        {
            _bookAccountsEndpoint      = bookAccountsEndpoint;
            _accountingJournalEndpoint = accountingJournalEndpoint;
            _showDialog = showDialog;

            PrintCommand = new DelegateCommand <Visual>(ShowPreview);
        }
Exemplo n.º 4
0
        public MainLedgerViewModel(IAccountingJournalEndpoint accountingJournalEndpoint,
                                   IDialogService showDialog)
        {
            _accountingJournalEndpoint = accountingJournalEndpoint;
            _showDialog = showDialog;

            SaveChangesCommand = new DelegateCommand(SaveChanges, CanSaveChanges);
            OpenCardCommand    = new DelegateCommand(OpenAccountBalance);
            PrintCommand       = new DelegateCommand <Visual>(ShowPreview);
            FilterDataCommand  = new DelegateCommand(FilterJournal);

            LoadJournalDetails();
        }
Exemplo n.º 5
0
        public NewJournalDialogViewModel(IConfiguration config,
                                         IDialogService showDialog,
                                         IAccountingJournalEndpoint accountingJournalEndpoint)
        {
            _config     = config;
            _showDialog = showDialog;
            _accountingJournalEndpoint = accountingJournalEndpoint;

            OpenNewJournalCommand = new DelegateCommand(OpenJournal);
            AddRowCommand         = new DelegateCommand(AddNewRow, CanAddNewRow);
            OpenCardCommand       = new DelegateCommand(OpenAccountBalance);
            SaveJournalCommand    = new DelegateCommand(SaveJournal, CanSaveJournal);
        }
Exemplo n.º 6
0
        public JournalViewModel(IAccountingJournalEndpoint accountingJournalEndpoint, IDialogService showDialog)
        {
            _accountingJournalEndpoint = accountingJournalEndpoint;
            _showDialog = showDialog;

            LoadJournalCommand   = new DelegateCommand(LoadJournalDetails);
            ProcessItemCommand   = new DelegateCommand(ProcessJournal, CanProcess);
            DeleteJournalCommand = new DelegateCommand(DeleteJournal, CanDelete);
            SumColumnsCommand    = new DelegateCommand(DeleteRow);
            LoadSavedCommand     = new DelegateCommand(LoadProcessedHeaders);
            SaveChangesCommand   = new DelegateCommand(SaveChanges, CanSaveChanges);
            OpenCardCommand      = new DelegateCommand(OpenAccountBalance);
            NewJournalCommand    = new DelegateCommand(OpenNewJournal);
            PrintCommand         = new DelegateCommand <Visual>(ShowPreview);
            CellValueChanged     = new DelegateCommand(SumColumns);

            LoadHeaders();
        }
Exemplo n.º 7
0
        public JournalViewModel(IAccountingJournalEndpoint accountingJournalEndpoint)
        {
            _accountingJournalEndpoint = accountingJournalEndpoint;

            LoadJournalCommand = new DelegateCommand(LoadJournalDetails);
        }
Exemplo n.º 8
0
 public ProcessToJournalService(IAccountingJournalEndpoint accountingJournalEndpoint)
 {
     _accountingJournalEndpoint = accountingJournalEndpoint;
 }