Beispiel #1
0
        public IraViewModel(IXlsFileReader xlsFileReader,
                            IBookIraEndpoint bookIraEndpoint,
                            IDialogService showDialog,
                            IBookAccountSettingsEndpoint settingsEndpoint,
                            IAccountPairsEndpoint accoutPairsEndpoint,
                            IProcessToJournalService processToJournalService)
        {
            _xlsFileReader           = xlsFileReader;
            _bookIraEndpoint         = bookIraEndpoint;
            _showDialog              = showDialog;
            _settingsEndpoint        = settingsEndpoint;
            _accoutPairsEndpoint     = accoutPairsEndpoint;
            _processToJournalService = processToJournalService;

            _bookName = "Knjiga izlaznih računa";

            LoadDataCommand           = new DelegateCommand(LoadDataFromFile);
            SaveDataCommand           = new DelegateCommand(SaveToDatabase, CanSaveItems);
            AccountsSettingsCommand   = new DelegateCommand(OpenAccountsSettings);
            FilterDataCommand         = new DelegateCommand(FilterPrimke);
            ProcessItemCommand        = new DelegateCommand(ProcessItem, CanProcess);
            CalculationsReportCommand = new DelegateCommand(ShowCalculationDialog);
            UnmarkProcessedCommand    = new DelegateCommand(UnmarkProcessed, CanUnmark);
            OpenEditCommand           = new DelegateCommand(EditSelectedRow, CanEditRow);
            HzzoCommand = new DelegateCommand(OpenHzzoDialog);

            LoadIra();
        }
Beispiel #2
0
        public HzzoPaymentsDialogViewModel(IXlsFileReader xlsFileReader,
                                           IBookIraHzzoEndpoint bookIraHzzoEndpoint,
                                           IBookIraEndpoint bookIraEndpoint)
        {
            _xlsFileReader       = xlsFileReader;
            _bookIraHzzoEndpoint = bookIraHzzoEndpoint;
            _bookIraEndpoint     = bookIraEndpoint;

            FilterDataCommand     = new DelegateCommand(FilterData);
            LoadDataCommand       = new DelegateCommand(LoadDataFromFileAsync);
            SaveDataCommand       = new DelegateCommand(SaveToDatabase, CanSaveItems);
            ConnectPaymentCommand = new DelegateCommand(ConnectPaymentsToInvoice);
        }
Beispiel #3
0
        public IraViewModel(IXlsFileReader xlsFileReader,
                            IBookIraEndpoint bookIraEndpoint,
                            IDialogService showDialog,
                            IBookAccountSettingsEndpoint settingsEndpoint,
                            IAccountPairsEndpoint accoutPairsEndpoint)
        {
            _xlsFileReader       = xlsFileReader;
            _bookIraEndpoint     = bookIraEndpoint;
            _showDialog          = showDialog;
            _settingsEndpoint    = settingsEndpoint;
            _accoutPairsEndpoint = accoutPairsEndpoint;

            _bookName = "Knjiga izlaznih računa";

            LoadDataCommand           = new DelegateCommand(LoadDataFromFile);
            SaveDataCommand           = new DelegateCommand(SaveToDatabase, CanSaveItems);
            AccountsSettingsCommand   = new DelegateCommand(OpenAccountsSettings);
            FilterDataCommand         = new DelegateCommand(FilterPrimke);
            ProcessItemCommand        = new DelegateCommand(ProcessItem, CanProcess);
            CalculationsReportCommand = new DelegateCommand(ShowCalculationDialog);
        }