public CloseProfitLossAccountListViewModel(ICloseProfitLossAccountsService closeProfitLossAccountsService, ITLDocumentsService tLDocumentsService,
                                            IOpeningClosingsService openingClosingsService, IAccDocumentItemsService accDocumentItemsService,
                                            ICurrencyExchangesService currencyExchangesService, IAccDocumentHeadersService accDocumentHeadersService,
                                            IAppContextService appContextService, ISLsService sLsService, ICompanyInformationsService companyInformationsService)
 {
     _tLDocumentsService             = tLDocumentsService;
     _companyInformationsService     = companyInformationsService;
     CompanyInformationModel         = _companyInformationsService.GetCompanyInformationModel();
     _accDocumentHeadersService      = accDocumentHeadersService;
     _openingClosingsService         = openingClosingsService;
     _accDocumentItemsService        = accDocumentItemsService;
     _currencyExchangesService       = currencyExchangesService;
     _closeProfitLossAccountsService = closeProfitLossAccountsService;
     _sLsService                  = sLsService;
     _appContextService           = appContextService;
     AccDocumentItemListViewModel = SmObjectFactory.Container.GetInstance <AccDocumentItemListViewModel>();
     SLsDropDownOpenedCommand     = new RelayCommand(OnSLsDropDownOpened, () => SLs != null && SLs.Any());
     DLs1DropDownOpenedCommand    = new RelayCommand <string>(OnDLs1DropDownOpened);
     DLs2DropDownOpenedCommand    = new RelayCommand <string>(OnDLs2DropDownOpened);
     //TransferCommand = new RelayCommand<ObservableCollection<object>>(OnTransfer, (o) => AccDocumentItems.Count > 0);
     //AllTransferCommand = new RelayCommand<ObservableCollection<object>>(OnAllTransfer, (o) => AccDocumentItems.Count > 0);
     //AllReturnCommand = new RelayCommand<ObservableCollection<object>>(OnAllReturn, (o) => AccDocumentItems1.Count > 0);
     //ReturnCommand = new RelayCommand<ObservableCollection<object>>(OnReturn, (o) => AccDocumentItems1.Count > 0);
     TransferCommand    = new RelayCommand <ObservableCollection <object> >(OnTransfer);
     AllTransferCommand = new RelayCommand <ObservableCollection <object> >(OnAllTransfer);
     AllReturnCommand   = new RelayCommand <ObservableCollection <object> >(OnAllReturn);
     ReturnCommand      = new RelayCommand <ObservableCollection <object> >(OnReturn);
     ExportCommand      = new RelayCommand(OnExport, () => !Close);
     ViewSystemDocumentHeaderCommand = new RelayCommand(OnViewSystemDocumentHeader);
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
     // Close = true;
     //   TypeDocumentsDropDownOpenedCommand = new RelayCommand(OnTypeDocumentsDropDownOpened);
 }
 public AccDocumentHeaderListViewModel(IAppContextService appContextService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _appContextService          = appContextService;
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
        public ReviewAccountListViewModel(IReviewAccountsService reviewAccountsService,
                                          ISelectFinancialYearsService selectFinancialYearsService, IAppContextService appContextService, ICompanyInformationsService companyInformationsService)
        {
            _companyInformationsService = companyInformationsService;
            CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
            _reviewAccountsService      = reviewAccountsService;
            _appContextService          = appContextService;
            AccDocumentHeaderFilter     = new AccDocumentHeaderFilter
            {
            };
            _selectFinancialYearsService = selectFinancialYearsService;

            GLGroupedCommand  = new RelayCommand(OnGLGrouped);
            TLGroupedCommand  = new RelayCommand(OnTLGrouped);
            SLGroupedCommand  = new RelayCommand(OnSLGrouped);
            DL1GroupedCommand = new RelayCommand(OnDL1Grouped);
            DL2GroupedCommand = new RelayCommand(OnDL2Grouped);
            FromYearsDropDownOpenedCommand = new RelayCommand(OnFromYearsDropDownOpened);
            ToYearsDropDownOpenedCommand   = new RelayCommand(OnToYearsDropDownOpened);

            CurrencyGroupedCommand = new RelayCommand(OnCurrencyGrouped);
            TrackingGroupedCommand = new RelayCommand(OnTrackingGrouped);

            GLDetailedCommand       = new RelayCommand <string>(OnGLDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedGL)); });
            TLDetailedCommand       = new RelayCommand <string>(OnTLDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedTL)); });
            SLDetailedCommand       = new RelayCommand <string>(OnSLDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedSL)); });
            DL1DetailedCommand      = new RelayCommand <string>(OnDL1Detailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedDL1)); });
            DL2DetailedCommand      = new RelayCommand <string>(OnDL2Detailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedDL2)); });
            CurrencyDetailedCommand = new RelayCommand <string>(OnCurrencySLDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedCurrency)); });
            TrackingDetailedCommand = new RelayCommand <string>(OnTrackingDetailed, (s) => { return(GroupStatus.HasFlag(GroupStatusEnum.DetailedTracking)); });
            UndoCommand             = new RelayCommand(Undo, () => { return(GroupStatus.HasFlag(GroupStatusEnum.Undo)); });

            ApplyFilterCommand = new RelayCommand(OnApplyFilter, () => AccDocumentHeaderFilter != null);
            _accessUtility     = SmObjectFactory.Container.GetInstance <AccessUtility>();
        }
Example #4
0
 public GLListViewModel(ISystemAccountingSettingsService systemAccountingSettingsService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService      = companyInformationsService;
     CompanyInformationModel          = _companyInformationsService.GetCompanyInformationModel();
     _systemAccountingSettingsService = systemAccountingSettingsService;
     AddGLCommand = new RelayCommand(OnAddGL);
     GL           = new GL();
 }
 public CompanyInformationViewModel(IAppContextService appContextService, ICompanyInformationsService companyInformationsService)
 {
     _appContextService          = appContextService;
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     SaveCommand    = new RelayCommand(onSave);
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
Example #6
0
 public TLListViewModel(ISystemAccountingSettingsService systemAccountingSettingsService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService      = companyInformationsService;
     CompanyInformationModel          = _companyInformationsService.GetCompanyInformationModel();
     _systemAccountingSettingsService = systemAccountingSettingsService;
     AddTLCommand             = new RelayCommand(OnAddTL);
     GLsDropDownOpenedCommand = new RelayCommand(OnGLsDropDownOpened, () => GLs != null && GLs.Any());
     TL             = new TL();
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
Example #7
0
 public TypeDocumentListViewModel(ITypeDocumentsService typeDocumentsService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _typeDocumentsService       = typeDocumentsService;
     AddTypeDocumentCommand      = new RelayCommand(OnAddTypeDocument);
     EditTypeDocumentCommand     = new RelayCommand <TypeDocument>(OnEditTypeDocument);
     DeleteCommand  = new RelayCommand <TypeDocument>(OnDeleteTypeDocument);
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
 public BankListViewModel(IBanksService banksService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _banksService   = banksService;
     AddBankCommand  = new RelayCommand(OnAddBank);
     EditBankCommand = new RelayCommand <Bank>(OnEditBank);
     DeleteCommand   = new RelayCommand <Bank>(OnDeleteBank);
     _accessUtility  = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
        public TLDocumentItemListViewModel(IAppContextService appContextService, ITLDocumentsService tLDocumentsService, ICompanyInformationsService companyInformationsService)
        {
            _companyInformationsService = companyInformationsService;
            CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
            _tLDocumentsService         = tLDocumentsService;

            _appContextService = appContextService;
            CancelCommand      = new RelayCommand(OnCancel);
            //  SaveCommand = new RelayCommand(OnSave, CanSave);
        }
Example #10
0
 public CurrencyListViewModel(ICurrenciesService currencysService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _currencysService           = currencysService;
     AddCurrencyCommand          = new RelayCommand(OnAddCurrency);
     EditCurrencyCommand         = new RelayCommand <Currency>(OnEditCurrency);
     DeleteCommand  = new RelayCommand <Currency>(OnDeleteCurrency);
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
 public UserListViewModel(IUsersService usersService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _usersService   = usersService;
     AddUserCommand  = new RelayCommand(OnAddUser);
     EditUserCommand = new RelayCommand <User>(OnEditUser);
     DeleteCommand   = new RelayCommand <User>(OnDeleteUser);
     SaveCommand     = new RelayCommand(OnSave);
     _accessUtility  = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
 public DocumentNumberingListViewModel(IDocumentNumberingsService documentNumberingsService, IAccountDocumentsService accountDocumentsService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService  = companyInformationsService;
     CompanyInformationModel      = _companyInformationsService.GetCompanyInformationModel();
     _accountDocumentsService     = accountDocumentsService;
     _documentNumberingsService   = documentNumberingsService;
     AddDocumentNumberingCommand  = new RelayCommand(OnAddDocumentNumbering);
     EditDocumentNumberingCommand = new RelayCommand <DocumentNumbering>(OnEditDocumentNumbering);
     DeleteCommand  = new RelayCommand <DocumentNumbering>(OnDeleteDocumentNumbering);
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
 public ExchangeRateListViewModel(IExchangeRatesService exchangeRatesService, ICurrenciesService currenciesService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _currenciesService          = currenciesService;
     _exchangeRatesService       = exchangeRatesService;
     AddExchangeRateCommand      = new RelayCommand(OnAddExchangeRate);
     EditExchangeRateCommand     = new RelayCommand <ExchangeRate>(OnEditExchangeRate);
     DeleteCommand  = new RelayCommand <ExchangeRate>(OnDeleteExchangeRate);
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
 public GroupListViewModel(IGroupsService groupsService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _groupsService   = groupsService;
     AddGroupCommand  = new RelayCommand(OnAddGroup);
     EditGroupCommand = new RelayCommand <Group>(OnEditGroup);
     DeleteCommand    = new RelayCommand <Group>(OnDeleteGroup);
     SaveCommand      = new RelayCommand(OnSave);
     _accessUtility   = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
Example #15
0
        public SLListViewModel(ISystemAccountingSettingsService systemAccountingSettingsService, ICompanyInformationsService companyInformationsService)
        {
            _companyInformationsService = companyInformationsService;
            CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();

            _systemAccountingSettingsService = systemAccountingSettingsService;
            AddSLCommand = new RelayCommand(OnAddSL);
            AddSLStandardDescriptionCommand = new RelayCommand <SL>(OnAddSLStandardDescription);
            TLsDropDownOpenedCommand        = new RelayCommand(OnTLsDropDownOpened, () => TLs != null && TLs.Any());
            SL             = new SL();
            _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
        }
Example #16
0
        public FinancialYearListViewModel(IFinancialYearsService FinancialYearsService, ICompanyInformationsService companyInformationsService)
        {
            _companyInformationsService = companyInformationsService;
            CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
            _FinancialYearsService      = FinancialYearsService;
            AddFinancialYearCommand     = new RelayCommand(OnAddFinancialYear);
            EditFinancialYearCommand    = new RelayCommand <FinancialYear>(OnEditFinancialYear);
            DeleteCommand = new RelayCommand <FinancialYear>(OnDeleteFinancialYear);


            _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
        }
Example #17
0
 public BankAccountListViewModel(IBankAccountsService bankAccountsService,
                                 IBanksService banksService, ICurrenciesService currenciesService, IAccountTypesService accountTypesService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _banksService           = banksService;
     _currenciesService      = currenciesService;
     _accountTypesService    = accountTypesService;
     _bankAccountsService    = bankAccountsService;
     AddBankAccountCommand   = new RelayCommand(OnAddBankAccount);
     EditBankAccountCommand  = new RelayCommand <BankAccount>(OnEditBankAccount);
     DeleteCommand           = new RelayCommand <BankAccount>(OnDeleteBankAccount);
     AddRelatedPersonCommand = new RelayCommand <BankAccount>(OnAddRelatedPerson);
     BankAccount             = new BankAccount();
 }
Example #18
0
 public ConvertDocumentListViewModel(IConvertDocumentsService convertDocumentsService,
                                     IOpeningClosingsService openingClosingsService, IAppContextService appContextService, ISystemAccountingSettingsService systemAccountingSettingsService, IAccDocumentHeadersService accDocumentHeadersService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService      = companyInformationsService;
     CompanyInformationModel          = _companyInformationsService.GetCompanyInformationModel();
     _systemAccountingSettingsService = systemAccountingSettingsService;
     AccountingSetting          = _systemAccountingSettingsService.GetSystemAccountingSettingModel();
     _accDocumentHeadersService = accDocumentHeadersService;
     _openingClosingsService    = openingClosingsService;
     _convertDocumentsService   = convertDocumentsService;
     _appContextService         = appContextService;
     PermanentConvertCommand    = new RelayCommand(OnPermanentConvertDocument);
     TemporaryConvertCommand    = new RelayCommand(OnTemporaryConvertDocument);
     _accessUtility             = SmObjectFactory.Container.GetInstance <AccessUtility>();
     // AddAccDocumentItemCommand = new RelayCommand<AccDocumentItem>(OnAddAccDocumentItem);
 }
Example #19
0
        public DLListViewModel(ISystemAccountingSettingsService systemAccountingSettingsService
                               , IBankAccountsService bankAccountsService, IBanksService banksService, ICurrenciesService currenciesService, IAccountTypesService accountTypesService, ICompanyInformationsService companyInformationsService)
        {
            _companyInformationsService      = companyInformationsService;
            CompanyInformationModel          = _companyInformationsService.GetCompanyInformationModel();
            _systemAccountingSettingsService = systemAccountingSettingsService;

            _banksService                   = banksService;
            _currenciesService              = currenciesService;
            _accountTypesService            = accountTypesService;
            _bankAccountsService            = bankAccountsService;
            BanksDropDownOpenedCommand      = new RelayCommand(OnBanksDropDownOpened, () => Banks != null && Banks.Any());
            CurrenciesDropDownOpenedCommand = new RelayCommand(OnCurrenciesDropDownOpened, () => Currencies != null && Currencies.Any());
            AddDLCommand   = new RelayCommand(OnAddDL);
            EditDLCommand  = new RelayCommand <DL>(OnEditDL);
            _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
        }
 public TLDocumentHeaderListViewModel(ITLDocumentsService tLDocumentsService,
                                      IAccDocumentItemsService accDocumentItemsService, IOpeningClosingsService openingClosingsService,
                                      IAppContextService appContextService, ICurrencyExchangesService currencyExchangesService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _tLDocumentsService         = tLDocumentsService;
     _openingClosingsService     = openingClosingsService;
     _appContextService          = appContextService;
     _accDocumentItemsService    = accDocumentItemsService;
     _currencyExchangesService   = currencyExchangesService;
     CancelCommand = new RelayCommand(OnCancel);
     //   SaveCommand = new RelayCommand(OnSave, CanSave);
     ViewCommand           = new RelayCommand <TLDocumentHeader>(OnView);
     ExportDocumentCommand = new RelayCommand(OnExportDocument, CanExportDocument);
     DeleteCommand         = new RelayCommand <TLDocumentHeader>(OnDeleteTLDocumentHeader);
     _accessUtility        = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
Example #21
0
        public CurrencyExchangeListViewModel(ICurrencyExchangesService currencyExchangesService, ITLDocumentsService tLDocumentsService,
                                             IOpeningClosingsService openingClosingsService, IAccDocumentItemsService accDocumentItemsService,
                                             IAccDocumentHeadersService accDocumentHeadersService, IAppContextService appContextService, ISLsService sLsService, ICompanyInformationsService companyInformationsService)
        {
            _tLDocumentsService         = tLDocumentsService;
            _companyInformationsService = companyInformationsService;
            CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
            _accDocumentHeadersService  = accDocumentHeadersService;
            _openingClosingsService     = openingClosingsService;
            _currencyExchangesService   = currencyExchangesService;
            _accDocumentItemsService    = accDocumentItemsService;
            _sLsService        = sLsService;
            _appContextService = appContextService;

            AccDocumentItemListViewModel = SmObjectFactory.Container.GetInstance <AccDocumentItemListViewModel>();
            SLsDropDownOpenedCommand     = new RelayCommand(OnSLsDropDownOpened, () => SLs != null && SLs.Any());
            DLs1DropDownOpenedCommand    = new RelayCommand <string>(OnDLs1DropDownOpened);
            DLs2DropDownOpenedCommand    = new RelayCommand <string>(OnDLs2DropDownOpened);
            ViewCommand   = new RelayCommand(OnView, CanView);
            ExportCommand = new RelayCommand(OnExport, CanExport);
            ViewSystemDocumentHeaderCommand = new RelayCommand(OnViewSystemDocumentHeader);
            _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
        }
 public DocumntsFlowViewModel(IAppContextService appContextService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _appContextService          = appContextService;
 }