Ejemplo n.º 1
0
        public FoundPersonFsspViewModel(IFoundFsspService foundervice, ISettingsService settings)
        {
            TypeGrid = settings?.GetSettings().TypeGrid;

            _serviceFound = foundervice;

            CollectionRegion  = new ReadOnlyCollection <Region>(_serviceRegion.GetRegion());
            CollectionRequest = _serviceFound?.CollectionRequest;
        }
Ejemplo n.º 2
0
        public FoundListFsspViewModel(IFoundFsspService foundervice, ISettingsService settings)
        {
            TypeGrid = settings?.GetSettings().TypeGrid;

            _serviceFound = foundervice;

            FoundHeader = new Common.Data.FoundHeader()
            {
                CommandFound = new RelayCommand(() => OpenFile()),
                FoundFast    = false,
                Header       = "Обработка списков",
                Watermark    = "Выбрать файл с данными для обработки"
            };

            CollectionRequest = _serviceFound?.CollectionRequest;
        }
Ejemplo n.º 3
0
        public FoundNumberFsspViewModel(IFoundFsspService foundService, ISettingsService settings)
        {
            TypeGrid = settings?.GetSettings().TypeGrid;

            _serviceFound = foundService;

            FoundHeader = new Common.Data.FoundHeader()
            {
                CommandFound = new RelayCommand(() => Found(), () => !string.IsNullOrEmpty(FoundHeader.FoundText)),
                FoundFast    = false,
                Header       = "Поиск номера исполнительного производства",
                Watermark    = "Номер исполнительного производства в формате n…n/yy/dd/rr или n…n/yy/ddddd-ИП"
            };

            CollectionRequest = _serviceFound?.CollectionRequest;
        }