public GLListViewModel(ISystemAccountingSettingsService systemAccountingSettingsService, ICompanyInformationsService companyInformationsService) { _companyInformationsService = companyInformationsService; CompanyInformationModel = _companyInformationsService.GetCompanyInformationModel(); _systemAccountingSettingsService = systemAccountingSettingsService; AddGLCommand = new RelayCommand(OnAddGL); GL = new GL(); }
public AddEditTLViewModel(ITLsService tLsService, IGLsService gLsService, ISystemAccountingSettingsService systemAccountingSettingsService) { _tLsService = tLsService; _gLsService = gLsService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); GLsDropDownOpenedCommand = new RelayCommand(OnGLsDropDownOpened, () => GLs != null && GLs.Any()); _systemAccountingSettingsService = systemAccountingSettingsService; }
public AddGLTreeItemWindowViewModel(IGLsService gLsService, ISystemAccountingSettingsService systemAccountingSettingsService) { _systemAccountingSettingsService = systemAccountingSettingsService; _gLsService = gLsService; // CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); GL = new GL(); }
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>(); }
public AddEditGLViewModel(IGLsService gLsService, ISystemAccountingSettingsService systemAccountingSettingsService) { _systemAccountingSettingsService = systemAccountingSettingsService; _gLsService = gLsService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); SaveAddCommand = new RelayCommand(OnSaveAdd, CanSaveAdd); GL = new EditableGL(); }
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>(); }
public AddEditDLViewModel(IDLsService dLsService, ISLsService sLsService, IDLTypesService dLTypesService, IDLAccountsNaturesService dLAccountsNatureService, ISystemAccountingSettingsService systemAccountingSettingsService) { _systemAccountingSettingsService = systemAccountingSettingsService; _dLsService = dLsService; _sLsService = sLsService; _dLTypesService = dLTypesService; _dLAccountsNatureService = dLAccountsNatureService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); SelectedDLTypes = new ObservableCollection <DLType>(); SelectedDLAccountsNatures = new ObservableCollection <DLAccountsNature>(); }
public TreeAccountListView() { _systemAccountingSettingsService = SmObjectFactory.Container.GetInstance <ISystemAccountingSettingsService>(); _gLsService = SmObjectFactory.Container.GetInstance <IGLsService>(); InitializeComponent(); Loaded += (s, ea) => { _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>(); _vm = DataContext as TreeAccountListViewModel; _vm.Load(); }; }
public SystemAccountingSettingViewModel(IAppContextService appContextService, IGLsService gLsService, ITLsService tLsService, ISLsService sLsService, IDLsService dLsService, ISystemAccountingSettingsService systemAccountingSettingsService) { _gLsService = gLsService; _tLsService = tLsService; _sLsService = sLsService; _dLsService = dLsService; _appContextService = appContextService; _systemAccountingSettingsService = systemAccountingSettingsService; SystemAccountingSettingModel = AutoMapper.Mapper.Map <SystemAccountingSettingModel, EditableSystemAccountingSettingModel>(_systemAccountingSettingsService.GetSystemAccountingSettingModel()); SystemAccountingSettingModel.ValidationDelegate += SystemAccountingSettingModel_ValidationDelegate; SaveCommand = new RelayCommand(onSave); _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>(); }
public SystemAccountingSettingView() { _systemAccountingSettingsService = SmObjectFactory.Container.GetInstance <ISystemAccountingSettingsService>(); InitializeComponent(); Loaded += (s, ea) => { _viewModel = DataContext as SystemAccountingSettingViewModel; _viewModel.Error += OnError; gLLength.Focus(); }; Unloaded += (s, ea) => { _viewModel.Error -= OnError; }; }
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); }
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 AddSLTreeItemWindowViewModel(ISLsService sLsService, ITLsService tLsService, IDLTypesService dLTypesService, ISystemAccountingSettingsService systemAccountingSettingsService, IPropertiesService propertiesService, IAccountsNaturesService accountsNaturesService) { _dLTypesService = dLTypesService; _sLsService = sLsService; _tLsService = tLsService; _systemAccountingSettingsService = systemAccountingSettingsService; _propertiesService = propertiesService; _accountsNaturesService = accountsNaturesService; // CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); TLsDropDownOpenedCommand = new RelayCommand(OnTLsDropDownOpened, () => TLs != null && TLs.Any()); PropertiesDropDownOpenedCommand = new RelayCommand(OnPropertiesDropDownOpened, () => Properties != null && Properties.Any()); AccountsNaturesDropDownOpenedCommand = new RelayCommand(OnAccountsNaturesDropDownOpened, () => AccountsNatures != null && AccountsNatures.Any()); SelectedDLTypes1 = new ObservableCollection <DLType>(); SelectedDLTypes2 = new ObservableCollection <DLType>(); // SLStandardDescriptionListViewModel = SmObjectFactory.Container.GetInstance<SLStandardDescriptionListViewModel>(); SL = new SL(); }