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 AddEditAccDocumentItemViewModel(IAccDocumentItemsService accDocumentItemsService) { _accDocumentItemsService = accDocumentItemsService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); }
public OpeningClosingListViewModel(IOpeningClosingsService openingClosingsService, ITLDocumentsService tLDocumentsService, IAppContextService appContextService, IAccDocumentItemsService accDocumentItemsService, ICurrencyExchangesService currencyExchangesService, IAccDocumentHeadersService accDocumentHeadersService) { _tLDocumentsService = tLDocumentsService; _accDocumentItemsService = accDocumentItemsService; _accDocumentHeadersService = accDocumentHeadersService; _currencyExchangesService = currencyExchangesService; _openingClosingsService = openingClosingsService; _appContextService = appContextService; AddAccDocumentCommand = new RelayCommand(OnAddAccDocument); DocumentDate = DateTime.Now; ViewSystemDocumentHeaderCommand = new RelayCommand(OnViewSystemDocumentHeader); _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>(); }
public AccDocumentItemListViewModel(IAccDocumentItemsService accDocumentItemsService, ISLsService sLsService, IExchangeRatesService exchangeRatesService, ICurrenciesService currenciesService, ISLStandardDescriptionsService sLStandardDescriptionsService) { _accDocumentItemsService = accDocumentItemsService; _sLsService = sLsService; _exchangeRatesService = exchangeRatesService; _currenciesService = currenciesService; _sLStandardDescriptionsService = sLStandardDescriptionsService; //EditAccDocumentItemCommand = new RelayCommand<AccDocumentItem>(OnEditAccDocumentItem); DeleteCommand = new RelayCommand <EditableAccDocumentItem>(OnDeleteAccDocumentItem); // CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); SLsDropDownOpenedCommand = new RelayCommand(OnSLsDropDownOpened); DLsDropDownOpenedCommand = new RelayCommand <string>(OnDLsDropDownOpened); SLStandardDescriptionsDropDownOpenedCommand = new RelayCommand <string>(OnSLStandardDescriptionsDropDownOpened); CurrenciesDropDownOpenedCommand = new RelayCommand <string>(OnCurrenciesDropDownOpened); ExchangeRatesDropDownOpenedCommand = new RelayCommand <string>(OnExchangeRatesDropDownOpened); CanAdd = true; _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>(); }
public OpeningClosingDocItemListViewModel(IAccDocumentItemsService accDocumentItemsService, ISLsService sLsService, IExchangeRatesService exchangeRatesService, ICurrenciesService currenciesService, ISLStandardDescriptionsService sLStandardDescriptionsService) { _accDocumentItemsService = accDocumentItemsService; _sLsService = sLsService; _exchangeRatesService = exchangeRatesService; _currenciesService = currenciesService; _sLStandardDescriptionsService = sLStandardDescriptionsService; //EditAccDocumentItemCommand = new RelayCommand<AccDocumentItem>(OnEditAccDocumentItem); DeleteCommand = new RelayCommand <EditableAccDocumentItem>(OnDeleteAccDocumentItem); // CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); CancelCommand = new RelayCommand(OnCancel); SLsDropDownOpenedCommand = new RelayCommand(OnSLsDropDownOpened); DLsDropDownOpenedCommand = new RelayCommand <string>(OnDLsDropDownOpened); SLStandardDescriptionsDropDownOpenedCommand = new RelayCommand <string>(OnSLStandardDescriptionsDropDownOpened); CurrenciesDropDownOpenedCommand = new RelayCommand <string>(OnCurrenciesDropDownOpened); ExchangeRatesDropDownOpenedCommand = new RelayCommand <string>(OnExchangeRatesDropDownOpened); CanAdd = true; AccDocumentHeader = new EditableAccDocumentHeader(); }
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>(); }