public void GetAddDestinatario(TrancingAsuntoTurnoViewModel viewModel)
 {
     try
     {
         this.DataContext = new DestinatarioAreaTreeViewModel(viewModel, null);
     }
     catch (Exception)
     {
         ;
     }
 }
 public DestinatarioAreaTreeViewModel(TrancingAsuntoTurnoViewModel trancingAsuntoTurnoViewModel, IParentItem Parent)
 {
     this._TrancingAsuntoTurnoViewModel = trancingAsuntoTurnoViewModel;
     this.Children = new ObservableCollection<DestinatarioItemViewModel>();
     this._OrganigramaRepository = new GestorDocument.DAL.Repository.OrganigramaRepository();
     this.Rol = trancingAsuntoTurnoViewModel._ParentAsunto._PantallaInicioViewModel._MainWindowViewModel.Usuario.Rol;
     this.TipoUnidadNormativa = trancingAsuntoTurnoViewModel._ParentAsunto._PantallaInicioViewModel._MainWindowViewModel.Usuario.Rol.Organigrama.TipoUnidadNormativa;
     this.Parent = Parent;
     this.AddItem = new ObservableCollection<OrganigramaModel>();
     this.GetBrothers();
 }
 public void GetAddDocumento(TrancingAsuntoTurnoViewModel viewModel)
 {
     try
     {
         Confirmation confirmacion = new Confirmation();
         this.DataContext = new AddDocumentoAsuntoViewModel(viewModel,confirmacion);
     }
     catch (Exception)
     {
         ;
     }
 }
        void expediente_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            if (e.PropertyName == "IsClick" && (sender as ExpedienteModel).IsClick )
            {
                //abrir docto
                DlgUpload dlg = new DlgUpload();

                _TrancingAsuntoViewModel = ConvertDataContext(this.DataContext);

                if (_TrancingAsuntoViewModel != null)
                {
                    _TrancingAsuntoViewModel.SelectedExpedienteDocumento = (sender as ExpedienteModel);
                    _TrancingAsuntoViewModel.SetOpenDoc();
                    dlg.DataContext = _TrancingAsuntoViewModel;
                    dlg.Owner = Application.Current.Windows[0];
                    _TrancingAsuntoViewModel.start();
                    dlg.ShowDialog();

                }
                _TrancingAsuntoTurnoViewModel = ConvertDataContext2(this.DataContext);

                if (_TrancingAsuntoTurnoViewModel != null)
                {
                    _TrancingAsuntoTurnoViewModel.SelectedExpedienteDocumento = (sender as ExpedienteModel);
                    _TrancingAsuntoTurnoViewModel.SetOpenDoc();
                    dlg.DataContext = _TrancingAsuntoTurnoViewModel;
                    dlg.Owner = Application.Current.Windows[0];
                    _TrancingAsuntoTurnoViewModel.start();
                    dlg.ShowDialog();

                }

                _TrancingAsuntoTurnoReadViewModel = ConvertDataContext3(this.DataContext);

                if (_TrancingAsuntoTurnoReadViewModel != null)
                {
                    _TrancingAsuntoTurnoReadViewModel.SelectedExpedienteDocumento = (sender as ExpedienteModel);
                    _TrancingAsuntoTurnoReadViewModel.SetOpenDoc();
                    dlg.DataContext = _TrancingAsuntoTurnoReadViewModel;
                    dlg.Owner = Application.Current.Windows[0];
                    _TrancingAsuntoTurnoReadViewModel.start();
                    dlg.ShowDialog();

                }

                (sender as ExpedienteModel).IsClick = false;
            }
        }
 public AtenderTurnoViewModel( TrancingAsuntoTurnoViewModel trancingAsuntoTurnoViewModel)
 {
     this._TrancingAsuntoTurnoViewModel = trancingAsuntoTurnoViewModel;
     this._TurnoRepository = new GestorDocument.DAL.Repository.TurnoRepository();
     this.LoadInfoGrid();
 }
 public void GetAtender(TrancingAsuntoTurnoViewModel _TrancingAsuntoTurnoViewModel)
 {
     this.DataContext = new AtenderTurnoViewModel(_TrancingAsuntoTurnoViewModel);
 }