private void But_Decretos_Click(object sender, RoutedEventArgs e) { _debolimpiar = false; __doc_guardado = false; SeleccionActual = ESeleccion.DECRETOS; SIC.Objs.Controles.Dialogos.Dial_SeleccionDecretoOpcion_01 decreopcion = new Objs.Controles.Dialogos.Dial_SeleccionDecretoOpcion_01(); decreopcion.ShowDialog(); switch (decreopcion.SeleccionActual) { case Objs.Controles.Dialogos.Dial_SeleccionDecretoOpcion_01.ESeleccionOpcion.Agregar: if (decreopcion.Decreto.PuedeAgregar) { _us_MantenimientoListadoDecreto = new Objs.Controles.us_MantenimientoListadoDecreto(decreopcion.Decreto, true); _us_MantenimientoListadoDecreto.visitandoDocente += _us_MantenimientoListadoDecreto_visitandoDocente; pag_trans.ShowPage(_us_MantenimientoListadoDecreto); } else { MessageBox.Show("El Decreto seleccionado está Bloqueado, No puede agregar Docente(s), su estado es:" + decreopcion.Decreto.Estado.Nombre, "Decreto Bloqueado Estado:" + decreopcion.Decreto.Estado.Nombre, MessageBoxButton.OK, MessageBoxImage.Stop); } break; case Objs.Controles.Dialogos.Dial_SeleccionDecretoOpcion_01.ESeleccionOpcion.Aprobar: break; case Objs.Controles.Dialogos.Dial_SeleccionDecretoOpcion_01.ESeleccionOpcion.Crear: _us_Mantenimiento_Decreto = new Objs.Controles.us_Mantenimiento_Decreto(); pag_trans.ShowPage(_us_Mantenimiento_Decreto); break; case Objs.Controles.Dialogos.Dial_SeleccionDecretoOpcion_01.ESeleccionOpcion.Ver: _us_MantenimientoListadoDecreto = new Objs.Controles.us_MantenimientoListadoDecreto(decreopcion.Decreto, false); _us_MantenimientoListadoDecreto.visitandoDocente += _us_MantenimientoListadoDecreto_visitandoDocente; pag_trans.ShowPage(_us_MantenimientoListadoDecreto); break; } decreopcion.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.usercontrol = ((SIC.Objs.Controles.us_MantenimientoListadoDecreto)(target)); #line 7 "..\..\..\..\Objs\Controles\us_MantenimientoListadoDecreto.xaml" this.usercontrol.Loaded += new System.Windows.RoutedEventHandler(this.usercontrol_Loaded); #line default #line hidden return; case 2: this.But_Agregar = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\..\..\Objs\Controles\us_MantenimientoListadoDecreto.xaml" this.But_Agregar.Click += new System.Windows.RoutedEventHandler(this.But_Agregar_Click); #line default #line hidden return; case 3: this.But_Eliminar = ((System.Windows.Controls.Button)(target)); return; case 4: this.datagrid1 = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 5: this.But_Preparado = ((System.Windows.Controls.Button)(target)); return; case 6: this.But_Docente = ((System.Windows.Controls.Button)(target)); #line 106 "..\..\..\..\Objs\Controles\us_MantenimientoListadoDecreto.xaml" this.But_Docente.Click += new System.Windows.RoutedEventHandler(this.But_Docente_Click); #line default #line hidden return; case 7: this.But_Analisis = ((System.Windows.Controls.Button)(target)); #line 122 "..\..\..\..\Objs\Controles\us_MantenimientoListadoDecreto.xaml" this.But_Analisis.Click += new System.Windows.RoutedEventHandler(this.But_Analisis_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void LimpiarVariables(){ this.SeleccionActual = ESeleccion.NULA; this.SubSeleccionSolicitud_Discapcidad = ESubSeleccionSolicitud_Discapcidad.NULA; _DialogoPaginas_01 = null; proc= null; visps= null; scanactas= null; _us_Mantenimiento_Decreto= null; _us_MantenimientoListadoDecreto= null; _us_Proceso_SeguroFunerario= null; us_vistasolicutd_pj = null; _ConsultaDependientes = null; _ConsultaDependientesLimitePension = null; _ConsultaDependientes_NotificacionExclucion = null; _us_ListaExcluidos = null; _us_busquedaDependientes = null; __doc_guardado = false; }