public void GetTurnoTrancing(AsuntoNotificacionesViewModel _AsuntoViewModel, AsuntoModel _AsuntoModel) { try { Confirmation confirmacion = new Confirmation(); DownloadFile download = new DownloadFile(); this.DataContext = new TrancingAsuntoTurnoViewModel(_AsuntoViewModel, _AsuntoModel, confirmacion, download); } catch (Exception) { ; } }
/// <summary> /// Evento doble clic /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dataGridAsuntos_MouseDoubleClick(object sender, MouseButtonEventArgs e) { this.dataGridAsuntos.Cursor = Cursors.Wait; if (sender != null) { DataGrid dg = sender as DataGrid; if (dg != null && dg.SelectedItems != null && dg.SelectedItems.Count == 1) { _AsuntoModel = dg.SelectedItem as AsuntoModel; if (_AsuntoModel != null) GetAsuntoTurno(); } } }
private void ListAsuntos_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (sender != null) { ListBox dg = sender as ListBox; _AsuntoModel = dg.SelectedItem as AsuntoModel; if (_AsuntoModel != null) GetAsuntoTurno(); } }
// ***************************** ***************************** ***************************** // 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(); }
public void GetAsunto() { this._Asunto = new AsuntoModel() { IdAsunto = this._P.IdAsunto, FechaCreacion = this._P.FechaCreacion, FechaRecibido = this._P.FechaRecibido, FechaDocumento = this._P.FechaDocumento, ReferenciaDocumento = this._P.ReferenciaDocumento, Titulo = this._P.Titulo, Descripcion = this._P.Descripcion, Alcance = this._P.Alcance, Ubicacion = (this._P.Ubicacion!=null) ? new UbicacionModel { IdUbicacion = (long)this._P.IdUbicacion, UbicacionName = this._P.Ubicacion.UbicacionName } :null, Instruccion =(this._P.Instruccion!=null) ? new InstruccionModel { IdInstruccion = (long)this._P.IdInstruccion, InstruccionName = this._P.Instruccion.InstruccionName } : null, Prioridad =(this._P.Prioridad !=null) ? new PrioridadModel { IdPrioridad = (long)this._P.IdPrioridad, PrioridadName = this._P.Prioridad.PrioridadName } : null, StatusAsunto = new StatusAsuntoModel { IdStatusAsunto = (long)this._P.IdStatusAsunto, StatusName = this._P.StatusAsunto.StatusName }, FechaVencimiento = this._P.FechaVencimiento, Folio = this._P.Folio, UbicacionText = this._P.UbicacionText, IsBorrador = this._P.IsBorrador, Contacto = this._P.Contacto, IsActive = this._P.IsActive, Anexos = this._P.Anexos }; }
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(); }
public void GetAsunto() { this._Asunto = new AsuntoModel() { IdAsunto = this._SelectedAsuntoTurno.IdAsunto , FechaCreacion = this._SelectedAsuntoTurno.FechaCreacion , FechaRecibido = this._SelectedAsuntoTurno.FechaRecibido , FechaDocumento = this._SelectedAsuntoTurno.FechaDocumento , ReferenciaDocumento = this._SelectedAsuntoTurno.ReferenciaDocumento , Titulo = this._SelectedAsuntoTurno.Titulo , Descripcion = this._SelectedAsuntoTurno.Descripcion , Alcance = this._SelectedAsuntoTurno.Alcance , Ubicacion = (this._SelectedAsuntoTurno.Ubicacion != null) ? new UbicacionModel { IdUbicacion = (long)this._SelectedAsuntoTurno.IdUbicacion , UbicacionName = this._SelectedAsuntoTurno.Ubicacion.UbicacionName } : null , Instruccion = (this._SelectedAsuntoTurno.Instruccion != null) ? new InstruccionModel { IdInstruccion = (long)this._SelectedAsuntoTurno.IdInstruccion , InstruccionName = this._SelectedAsuntoTurno.Instruccion.InstruccionName } : null , Prioridad = (this._SelectedAsuntoTurno.Prioridad != null) ? new PrioridadModel { IdPrioridad = (long)this._SelectedAsuntoTurno.IdPrioridad , PrioridadName = this._SelectedAsuntoTurno.Prioridad.PrioridadName } : null , StatusAsunto = new StatusAsuntoModel { IdStatusAsunto = (long)this._SelectedAsuntoTurno.IdStatusAsunto , StatusName = this._SelectedAsuntoTurno.StatusAsunto.StatusName } , FechaVencimiento = this._SelectedAsuntoTurno.FechaVencimiento , Folio = this._SelectedAsuntoTurno.Folio }; }