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 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>(); }