public SelectRecomendacion_Detalle ( |
||
oENTSeguimiento | Entidad de Seguimientos con los filtros necesarios para la consulta | |
Результат |
// Rutinas el programador void SelectRecomendacion() { BPSeguimiento oBPSeguimiento = new BPSeguimiento(); ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); try { // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); // Transacción oENTResponse = oBPSeguimiento.SelectRecomendacion_Detalle(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } // Campos ocultos this.hddImpugnada.Value = oENTResponse.dsResponse.Tables[1].Rows[0]["Impugnada"].ToString(); this.hddPublicada.Value = oENTResponse.dsResponse.Tables[1].Rows[0]["Publicada"].ToString(); // Encabezados y Títulos dinámicos this.lblEncabezado.Text = "Publicar " + (oENTResponse.dsResponse.Tables[1].Rows[0]["AcuerdoNoResponsabilidad"].ToString() == "0" ? "la recomendación" : "el acuerdo de no responsabilidad"); this.lblNumero.Text = (oENTResponse.dsResponse.Tables[1].Rows[0]["AcuerdoNoResponsabilidad"].ToString() == "0" ? "Recomendación" : "Acuerdo") + " Número"; this.GridLabel.Text = "Gestión de " + (oENTResponse.dsResponse.Tables[1].Rows[0]["AcuerdoNoResponsabilidad"].ToString() == "0" ? "la recomendación" : "el acuerdo de no responsabilidad"); this.lblActionTitle.Text = "Publicar " + (oENTResponse.dsResponse.Tables[1].Rows[0]["AcuerdoNoResponsabilidad"].ToString() == "0" ? "la recomendación" : "el acuerdo de no responsabilidad"); // Formulario this.RecomendacionNumero.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["RecomendacionNumero"].ToString(); this.ExpedienteNumero.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["ExpedienteNumero"].ToString(); this.TipoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusSeguimientoNombre"].ToString(); this.EstatusLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusNombre"].ToString(); this.FuncionarioLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FuncionarioNombre"].ToString(); this.NombreAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["NombreAutoridad"].ToString(); this.PuestoAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["PuestoAutoridad"].ToString(); this.FechaRecepcionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaRecepcion"].ToString(); this.FechaQuejasLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaQuejas"].ToString(); this.FechaVisitaduriasLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaVisitadurias"].ToString(); this.FechaAsignacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaAsignacion"].ToString(); this.FechaModificacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaUltimaModificacion"].ToString(); this.NivelesAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Autoridades"].ToString(); // Grid this.gvGestion.DataSource = oENTResponse.dsResponse.Tables[6]; this.gvGestion.DataBind(); // Validaciones if ( oENTResponse.dsResponse.Tables[1].Rows[0]["Publicada"].ToString() == "1") { // Ya esta publicada this.btnPublicar.Enabled = false; this.btnPublicar.CssClass = "Button_General_Disabled"; } else { if (oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusSeguimientoId"].ToString() != "4" && oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusSeguimientoId"].ToString() != "5" && oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusSeguimientoId"].ToString() != "7") { // Si no esta como aceptada, No aceptada ni Impugnada no podra Publicar this.btnPublicar.Enabled = false; this.btnPublicar.CssClass = "Button_General_Disabled"; }else{ this.btnPublicar.Enabled = true; this.btnPublicar.CssClass = "Button_General"; } } }catch (Exception ex){ throw (ex); } }
void SelectRecomendacion() { BPSeguimiento oBPSeguimiento = new BPSeguimiento(); ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); try { // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); // Transacción oENTResponse = oBPSeguimiento.SelectRecomendacion_Detalle(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } // Encabezado this.lblEncabezado.Text = "Asignar defensor " + (oENTResponse.dsResponse.Tables[1].Rows[0]["AcuerdoNoResponsabilidad"].ToString() == "0" ? "a la recomendación" : "al acuerdo de no responsabilidad"); this.lblNumero.Text = (oENTResponse.dsResponse.Tables[1].Rows[0]["AcuerdoNoResponsabilidad"].ToString() == "0" ? "Recomendación" : "Acuerdo") + " Número"; // Formulario this.RecomendacionNumero.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["RecomendacionNumero"].ToString(); this.ExpedienteNumero.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["ExpedienteNumero"].ToString(); this.TipoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusSeguimientoNombre"].ToString(); this.EstatusLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusNombre"].ToString(); this.FuncionarioLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FuncionarioNombre"].ToString(); this.NombreAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["NombreAutoridad"].ToString(); this.PuestoAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["PuestoAutoridad"].ToString(); this.FechaRecepcionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaRecepcion"].ToString(); this.FechaQuejasLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaQuejas"].ToString(); this.FechaVisitaduriasLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaVisitadurias"].ToString(); this.FechaAsignacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaAsignacion"].ToString(); this.FechaModificacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaUltimaModificacion"].ToString(); this.NivelesAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Autoridades"].ToString(); }catch (Exception ex){ throw (ex); } }
// Rutinas del programador void SelectRecomendacion() { BPSeguimiento oBPSeguimiento = new BPSeguimiento(); ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); try { // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); // Transacción oENTResponse = oBPSeguimiento.SelectRecomendacion_Detalle(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } // Encabezado this.lblEncabezado.Text = "Detalle de " + ( oENTResponse.dsResponse.Tables[1].Rows[0]["AcuerdoNoResponsabilidad"].ToString() == "0" ? "recomendación" : "acuerdo de no responsabilidad" ); this.lblNumero.Text = (oENTResponse.dsResponse.Tables[1].Rows[0]["AcuerdoNoResponsabilidad"].ToString() == "0" ? "Recomendación" : "Acuerdo") + " Número"; // Formulario this.RecomendacionNumero.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["RecomendacionNumero"].ToString(); this.ExpedienteNumero.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["ExpedienteNumero"].ToString(); this.TipoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusSeguimientoNombre"].ToString(); this.EstatusLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusNombre"].ToString(); this.FuncionarioLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FuncionarioNombre"].ToString(); this.NombreAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["NombreAutoridad"].ToString(); this.PuestoAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["PuestoAutoridad"].ToString(); this.FechaRecepcionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaRecepcion"].ToString(); this.FechaQuejasLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaQuejas"].ToString(); this.FechaVisitaduriasLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaVisitadurias"].ToString(); this.FechaAsignacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaAsignacion"].ToString(); this.FechaModificacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaUltimaModificacion"].ToString(); this.NivelesAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Autoridades"].ToString(); // Puntos Resolutivos this.gvPuntosResolutivos.DataSource = oENTResponse.dsResponse.Tables[2]; this.gvPuntosResolutivos.DataBind(); // Ciudadanos this.gvCiudadano.DataSource = oENTResponse.dsResponse.Tables[7]; this.gvCiudadano.DataBind(); // Asuntos if (oENTResponse.dsResponse.Tables[4].Rows.Count == 0){ this.SinComentariosLabel.Text = "<br /><br />No hay asuntos para este Recomendacion"; this.repComentarios.DataSource = null; this.repComentarios.DataBind(); this.ComentarioTituloLabel.Text = ""; }else{ this.SinComentariosLabel.Text = ""; this.repComentarios.DataSource = oENTResponse.dsResponse.Tables[4]; this.repComentarios.DataBind(); this.ComentarioTituloLabel.Text = oENTResponse.dsResponse.Tables[4].Rows.Count.ToString() + " asuntos"; } // Gestion de Documento this.gvGestion.DataSource = oENTResponse.dsResponse.Tables[6]; this.gvGestion.DataBind(); // Puntos Resolutivos this.gvGestionPuntosResolutivos.DataSource = oENTResponse.dsResponse.Tables[2]; this.gvGestionPuntosResolutivos.DataBind(); // Diligencias this.gvDiligencia.DataSource = oENTResponse.dsResponse.Tables[5]; this.gvDiligencia.DataBind(); }catch (Exception ex){ throw (ex); } }
void SetCheckList() { BPSeguimiento oBPSeguimiento = new BPSeguimiento(); ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); try { // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); // Transacción oENTResponse = oBPSeguimiento.SelectRecomendacion_Detalle(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } // Enviar a autoridad if ( Int32.Parse( oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusSeguimientoId"].ToString() ) < 4 ){ this.imgEnviarAutoridad.ImageUrl = "~/Include/Image/Icon/NotificacionIcon_Pending.png"; this.imgEnviarAutoridad.ToolTip = "No se ha enviado el documento a la autoridad"; this.btnEnviar.Enabled = false; this.btnEnviar.CssClass = "Button_General_Disabled"; } // Gestión a puntos resolutivos if ( oENTResponse.dsResponse.Tables[1].Rows[0]["Aceptada"].ToString() != "1" || oENTResponse.dsResponse.Tables[1].Rows[0]["AcuerdoNoResponsabilidad"].ToString() != "0" ) { this.pnlSeguimiento.Visible = false; } else { // Si existe por lo menos un Punto resolutivo con Estatus 1 (a la espera) significa que falta captura if ( oENTResponse.dsResponse.Tables[2].Select("EstatusPuntoResolutivoId = 1").Length > 0 ){ this.imgSeguimiento.ImageUrl = "~/Include/Image/Icon/SeguimientoIcon_Pending.png"; this.imgSeguimiento.ToolTip = "No se han capturado los puntos resolutivos del seguimiento"; this.btnEnviar.Enabled = false; this.btnEnviar.CssClass = "Button_General_Disabled"; } } // Impugnar if (oENTResponse.dsResponse.Tables[1].Rows[0]["Impugnada"].ToString() == "0" && oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusSeguimientoId"].ToString() != "6") { this.pnlImpugnar.Visible = false; } else { if ( oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusSeguimientoId"].ToString() == "6" ){ this.imgImpugnar.ImageUrl = "~/Include/Image/Icon/ComparecenciaIcon_Pending.png"; this.imgImpugnar.ToolTip = "No se ha finalizado el proceso de impugnación"; this.btnEnviar.Enabled = false; this.btnEnviar.CssClass = "Button_General_Disabled"; } } }catch (Exception ex){ throw (ex); } }