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_Mantenimiento_Decreto)(target)); return; case 2: this.Txt_Decreto = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.Txt_FechaEmision = ((System.Windows.Controls.DatePicker)(target)); return; case 4: this.Txt_FechaPrimerPago = ((System.Windows.Controls.DatePicker)(target)); return; case 5: this.Txt_FechaPromedio = ((System.Windows.Controls.DatePicker)(target)); return; case 6: this.Txt_UltimoDecreto = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.But_AgregarUltimo = ((System.Windows.Controls.Button)(target)); return; case 8: this.But_Guardar = ((System.Windows.Controls.Button)(target)); #line 46 "..\..\..\..\Objs\Controles\us_Mantenimiento_Decreto.xaml" this.But_Guardar.Click += new System.Windows.RoutedEventHandler(this.But_Guardar_Click); #line default #line hidden return; case 9: this.But_Cancelar = ((System.Windows.Controls.Button)(target)); #line 47 "..\..\..\..\Objs\Controles\us_Mantenimiento_Decreto.xaml" this.But_Cancelar.Click += new System.Windows.RoutedEventHandler(this.But_Cancelar_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; }