Exemplo n.º 1
0
        public async Task <IEnumerable <Turno> > GetListaTurno()
        {
            try
            {
                var turno = await ITurno.GetComboTurno();

                return(turno);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 // ***************************** ***************************** *****************************
 // constructor
 public TurnoAddViewModel(TurnoViewModel TurnoViewModel)
 {
     this._ParentTurno = TurnoViewModel;
     this._TurnoRepository = new GestorDocument.DAL.Repository.TurnoRepository();
     this._AsuntoRepository = new GestorDocument.DAL.Repository.AsuntoRepository();
     this._StatusTurnoRepository = new GestorDocument.DAL.Repository.StatusTurnoRepository();
     this._Turno = new TurnoModel()
     {
         FechaCreacion = DateTime.Now,
         FechaEnvio = DateTime.Now,
         IdTurno = new UNID().getNewUNID(),
         IsActive = true
     };
     this.LoadInfo();
 }
        // ***************************** ***************************** *****************************
        // CONSTRUCTOR.
        public ResultadoBusquedaAsuntoTurnoViewModel(BusquedaAsuntoTurnoViewModel busqueda)
        {
            this._Busqueda = busqueda;
            this._ResultadoBusqueda = new ObservableCollection<AsuntoModel>();

            busqueda.ResultadoBusqueda.OrderByDescending(f=> f.FechaCreacion).ToList().ForEach(p =>this.ResultadoBusqueda.Add(p));

            this._DestinatarioRepository = new GestorDocument.DAL.Repository.DestinatarioRepository();
            this._AsuntoRepository = new GestorDocument.DAL.Repository.AsuntoRepository();
            this._TurnoRepository = new GestorDocument.DAL.Repository.TurnoRepository();
            this._SignatarioExternoRepository = new GestorDocument.DAL.Repository.SignatarioExternoRepository();
            this.SignatarioExterno = new ObservableCollection<SignatarioExternoModel>();

            this.LoadInfoGrid();
        }
Exemplo n.º 4
0
        // resetea valores a su default
        private void reset()
        {
            inputKms.Value = 1;
            txtCosto.Text  = String.Empty;
            String turno = ITurno.getIdTurnoActual(cbxTurno.Text);

            if (turno != null)
            {
                CapaInterfaz.ITurno.CargarLimitesFechas(dateFrom, dateTo, turno, Properties.Settings.Default.FechaSistema);
                CapaInterfaz.IChofer.CargarChoferesPorTurno(cbxChofer, dateFrom.Value, dateTo.Value, turno);
                String idChofer = CapaInterfaz.IChofer.getIdChoferActual(cbxChofer.Text);
                if (idChofer == null)
                {
                    return;
                }
                CapaInterfaz.IAuto.CargarAutoHabilitado(txtAuto, idChofer, turno);
            }
            CapaInterfaz.ICliente.CargarClientes(cbxCliente, dateFrom.Value, dateTo.Value);
        }
 public AtenderTurnoViewModel( TrancingAsuntoTurnoViewModel trancingAsuntoTurnoViewModel)
 {
     this._TrancingAsuntoTurnoViewModel = trancingAsuntoTurnoViewModel;
     this._TurnoRepository = new GestorDocument.DAL.Repository.TurnoRepository();
     this.LoadInfoGrid();
 }
 public Manejador(ITurno turnorRepository)
 {
     _turnorRepository = turnorRepository;
 }
 // ***************************** ***************************** *****************************
 // Constructor y carga de elementos.
 public TurnoViewModel()
 {
     this._TurnoRepository = new GestorDocument.DAL.Repository.TurnoRepository();
     this.LoadInfoGrid();
 }
        // ***************************** ***************************** *****************************
        // constructor
        public AsuntoModViewModel(AsuntoModel p, AsuntoViewModel AsuntoViewModel, IConfirmation confirmation)
        {
            this._ParentAsunto = AsuntoViewModel;
            this._P = p;
            this._Confirmation = confirmation;
            this._AsuntoRepository = new GestorDocument.DAL.Repository.AsuntoRepository();
            this._UbicacionRepository = new GestorDocument.DAL.Repository.UbicacionRepository();
            this._InstruccionRepository = new GestorDocument.DAL.Repository.InstruccionRepository();
            this._PrioridadRepository = new GestorDocument.DAL.Repository.PrioridadRepository();
            this._StatusAsuntoRepository = new GestorDocument.DAL.Repository.StatusAsuntoRepository();
            this._SignatarioRepository = new GestorDocument.DAL.Repository.SignatarioRepository();
            this._SignatarioExternoRepository = new GestorDocument.DAL.Repository.SignatarioExternoRepository();
            this._DestinatarioRepository = new GestorDocument.DAL.Repository.DestinatarioRepository();
            this._DestinatarioCcpRepository = new GestorDocument.DAL.Repository.DestinatarioCcpRepository();
            this._DocumentosRepository = new GestorDocument.DAL.Repository.DocumentosRepository();
            this._ExpedienteRepository = new GestorDocument.DAL.Repository.ExpedienteRepository();
            this._TurnoRepository = new GestorDocument.DAL.Repository.TurnoRepository();
            this._SyncDocsRepository = new GestorDocument.DAL.Repository.SyncDocsRepository();

            this.LoadInfo();

            this.GetAsunto();

            this.GetRol();

            this.GetUsuario();

            this.GetTurno();

            this.GetExpediente();

            //BUSQUEDA DE ASUNTOS
            this.Busqueda = new BusquedaAsuntoTurnoViewModel(this._Rol);

            this.GetVisible();
        }
Exemplo n.º 9
0
 public TurnoController(ITurno contract) => _interface = contract;
        public TrancingAsuntoTurnoViewModel(AsuntoNotificacionesViewModel asuntoNotificacionesViewModel, AsuntoModel selectedAsuntoTurno, IConfirmation confirmation, IDownloadFile download)
        {
            this._ParentAsunto = asuntoNotificacionesViewModel;
            this._SelectedAsuntoTurno = selectedAsuntoTurno;
            this._Confirmation = confirmation;
            this._Download = download;
            this.TipoUnidadNormativa = this._ParentAsunto._PantallaInicioViewModel._MainWindowViewModel.Usuario.Rol.Organigrama.TipoUnidadNormativa;
            this._TurnoRepository = new GestorDocument.DAL.Repository.TurnoRepository();
            this._ExpedienteRepository = new GestorDocument.DAL.Repository.ExpedienteRepository();
            this._DestinatarioRepository = new GestorDocument.DAL.Repository.DestinatarioRepository();
            this._DocumentosRepository = new GestorDocument.DAL.Repository.DocumentosRepository();
            this._Turnos = new ObservableCollection<TurnoModel>();
            this._SeguimientoTurnos = new ObservableCollection<TurnoModel>();
            this._SyncDocsRepository = new GestorDocument.DAL.Repository.SyncDocsRepository();
            this._SeguimientoTurnos = new ObservableCollection<TurnoModel>();
            this._SignatarioExternoRepository = new GestorDocument.DAL.Repository.SignatarioExternoRepository();
            this.SignatarioExterno = new ObservableCollection<SignatarioExternoModel>();
            this._SuccessPathServer = ConfigurationManager.AppSettings["ServerDocsFolder"].ToString();

            this.GetRol();

            this.GetUsuario();

            this.LoadInfoGrid();

            this.GetAsunto();

            this.GetTurno();

            this.GetExpediente();
        }