示例#1
0
        public ServizioDetailViewModel(IEventAggregator eventAggregator, IMessageDialogService messageDialogService,
                                       IServizioRepository servizioRepository,
                                       IStatoServizioRepository statoServizioRepository) : base(eventAggregator, messageDialogService)
        {
            _eventAggregator         = eventAggregator;
            _statoServizioRepository = statoServizioRepository;
            _servizioRepository      = servizioRepository;
            Mittenti = new ObservableCollection <Anagrafica>();

            DocumentiAdded     = new ObservableCollection <Documento>();
            DocumentiAvailable = new ObservableCollection <Documento>();


            DestinatariAdded     = new ObservableCollection <Anagrafica>();
            DestinatariAvailable = new ObservableCollection <Anagrafica>();

            DestinatariArAdded     = new ObservableCollection <Anagrafica>();
            DestinatariArAvailable = new ObservableCollection <Anagrafica>();

            DocumentiAdded     = new ObservableCollection <Documento>();
            DocumentiAvailable = new ObservableCollection <Documento>();

            AddDestinatarioCommand    = new DelegateCommand(OnAddDestinatarioExecute, OnAddDestinatarioCanExecute);
            RemoveDestinatarioCommand = new DelegateCommand(OnRemoveDestinatarioExecute, OnRemoveDestinatarioCanExecute);

            AddDestinatarioArCommand    = new DelegateCommand(OnAddDestinatarioArExecute, OnAddDestinatarioArCanExecute);
            RemoveDestinatarioARCommand = new DelegateCommand(OnRemoveDestinatarioArExecute, OnRemoveDestinatarioArCanExecute);

            AddDocumentoCommand    = new DelegateCommand(OnAddDocumentoExecute, OnAddDocumentoCanExecute);
            RemoveDocumentoCommand = new DelegateCommand(OnRemoveDocumentExecute, OnRemoveDocumentCanExecute);

            OpenPagineBollettinoCommand = new DelegateCommand(OnOpenPagineBollettinoExecute);
        }
示例#2
0
        public ServiceOperationsDetailViewModel(IEventAggregator eventAggregator,
                                                IMessageDialogService messageDialogService,
                                                IAmbienteRepository ambienteRepository,
                                                IServizioRepository servizioRepository,
                                                IStatoServizioRepository statoServizioRepository) : base(eventAggregator, messageDialogService)
        {
            Title = "Service Operations";

            TipiServizio = new ObservableCollection <TipoServizio>();

            _ambienteRepository      = ambienteRepository;
            _servizioRepository      = servizioRepository;
            _statoServizioRepository = statoServizioRepository;
            _messageDialogService    = messageDialogService;

            Ambienti = new ObservableCollection <AmbienteWrapper>();

            Servizi = new ObservableCollection <ServizioWrapper>();

            InvioCommand = new DelegateCommand(OnInvioExecute, OnInvioCanExecute);

            ConfermaCommand = new DelegateCommand(OnConfermaExecute, OnConfermaCanExecute);

            PreConfermaCommand = new DelegateCommand(OnPreConfermaExecute, OnPreConfermaCanExecute);

            TipiArchiviazione = new ObservableCollection <string>();
            TipiArchiviazione.Add("NESSUNA");
            TipiArchiviazione.Add("SEMPLICE");
            TipiArchiviazione.Add("STORICA");
        }
示例#3
0
 public VisuraDetailViewModel(IEventAggregator eventAggregator, IMessageDialogService messageDialogService,
                              IVisureRepository visureRepository,
                              IStatoServizioRepository statoServizioRepository) : base(eventAggregator, messageDialogService)
 {
     _visureRepository        = visureRepository;
     _statoServizioRepository = statoServizioRepository;
     InvioCommand             = new DelegateCommand(OnInvioExecute, OnInvioCanExecute);
 }
        public VisureOperationsDetailViewModel(IEventAggregator eventAggregator,
                                               IMessageDialogService messageDialogService,
                                               IVisureRepository visureRepository,
                                               IStatoServizioRepository statoServizioRepository,
                                               IAmbienteRepository ambienteRepository) : base(eventAggregator, messageDialogService)
        {
            this.visureRepository        = visureRepository;
            this.ambienteRepository      = ambienteRepository;
            this.statoServizioRepository = statoServizioRepository;

            idStatoServizioSalvato = statoServizioRepository.GetByDescription("Salvato").Id;

            Ambienti = new ObservableCollection <AmbienteWrapper>();

            Visure = new ObservableCollection <VisuraWrapper>();

            InvioCommand = new DelegateCommand(OnInvioExecute, OnInvioCanExecute);

            ConfermaCommand = new DelegateCommand(OnConfermaExecute, OnConfermaCanExecute);

            CopyIdRichiestaCommand = new DelegateCommand <VisuraWrapper>(OnCopyIdRichiestaExecute);

            EditVisuraCommand = new DelegateCommand <VisuraWrapper>(OnEditVisuraExecute);
        }