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>();
 }
コード例 #2
0
        public AccountDocumentListViewModel(IAccountDocumentsService accountDocumentsService, ICompanyInformationsService companyInformationsService)
        {
            _companyInformationsService = companyInformationsService;
            CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();

            _accountDocumentsService   = accountDocumentsService;
            AddAccountDocumentCommand  = new RelayCommand(OnAddAccountDocument);
            EditAccountDocumentCommand = new RelayCommand <AccountDocument>(OnEditAccountDocument);
            DeleteCommand  = new RelayCommand <AccountDocument>(OnDeleteAccountDocument);
            _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
        }
コード例 #3
0
 public AddEditDocumentNumberingViewModel(IDocumentNumberingsService documentNumberingsService, IAppContextService appContextService, IAccDocumentHeadersService accDocumentHeadersService, IAccountDocumentsService accountDocumentsService, IStylesService stylesService, ICountingWaysService countingWaysService)
 {
     _documentNumberingsService = documentNumberingsService;
     _accDocumentHeadersService = accDocumentHeadersService;
     _appContextService         = appContextService;
     _accountDocumentsService   = accountDocumentsService;
     _stylesService             = stylesService;
     _countingWaysService       = countingWaysService;
     CancelCommand = new RelayCommand(OnCancel);
     SaveCommand   = new RelayCommand(OnSave, CanSave);
     AccountDocumentsDropDownOpenedCommand = new RelayCommand(OnAccountDocumentsDropDownOpened, () => AccountDocuments != null && AccountDocuments.Any());
 }
 public AddEditAccountDocumentViewModel(IAccountDocumentsService accountDocumentsService)
 {
     _accountDocumentsService = accountDocumentsService;
     CancelCommand            = new RelayCommand(OnCancel);
     SaveCommand = new RelayCommand(OnSave, CanSave);
 }