示例#1
0
 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();
        }
示例#4
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>();
 }
示例#5
0
        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();
        }
示例#6
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>();
        }
        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>();
        }
示例#8
0
        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();
            };
        }
示例#9
0
 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;
     };
 }
示例#11
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);
 }
示例#12
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>();
        }
示例#13
0
 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();
 }