void UpdateRecomendacion_PublicarDocumento() { ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); ENTSession oENTSession = new ENTSession(); BPSeguimiento oBPSeguimiento = new BPSeguimiento(); try { // Validaciones if (this.ckePublicar.Text.Trim() == "") { throw (new Exception("Es necesario ingresar un detalle en la impugnación")); } // Obtener Sesion oENTSession = (ENTSession)this.Session["oENTSession"]; // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); oENTSeguimiento.ModuloId = 4; // Seguimientos oENTSeguimiento.UsuarioId = oENTSession.idUsuario; oENTSeguimiento.Fecha = this.calFechaPublicar.DisplayDate; oENTSeguimiento.Comentario = this.ckePublicar.Text.Trim(); // Transacción oENTResponse = oBPSeguimiento.UpdateRecomendacion_PublicarDocumento(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }catch (Exception ex){ throw (ex); } }
// Rutinas del programador void SelectRecomendacion() { BPSeguimiento oBPSeguimiento = new BPSeguimiento(); ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); ENTSession oSession = (ENTSession)Session["oENTSession"]; try { // Formulario oENTSeguimiento.UsuarioId = oSession.idUsuario; oENTSeguimiento.Nivel = 1; // Transacción oENTResponse = oBPSeguimiento.SelectRecomendacion(oENTSeguimiento); // Errores if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } // Warnings if (oENTResponse.sMessage != "") { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), Convert.ToString(Guid.NewGuid()), "alert('" + oENTResponse.sMessage + "');", true); } // Llenado de control this.gvRecomendacion.DataSource = oENTResponse.dsResponse.Tables[1]; this.gvRecomendacion.DataBind(); }catch (Exception ex){ throw (ex); } }
// 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); } }
// 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 UpdateRecomendacion_EnviarAutoridadCierre() { ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); ENTSession oENTSession = new ENTSession(); BPSeguimiento oBPSeguimiento = new BPSeguimiento(); try { // Validaciones if (this.ckeRespuesta.Text.Trim() == "") { throw (new Exception("Es necesario ingresar un detalle en el envío")); } // Obtener Sesion oENTSession = (ENTSession)this.Session["oENTSession"]; // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); oENTSeguimiento.ModuloId = 4; // Seguimientos oENTSeguimiento.UsuarioId = oENTSession.idUsuario; oENTSeguimiento.Fecha = this.calFechaRespuesta.DisplayDate; oENTSeguimiento.Aceptada = Int16.Parse(this.ddlPopUpRespuesta.SelectedItem.Value); oENTSeguimiento.Comentario = this.ckeRespuesta.Text.Trim(); // Transacción oENTResponse = oBPSeguimiento.UpdateRecomendacion_EnvioAutoridadCierre(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }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); } }
// Eventos Grid Anidado void SelectGestionPuntoResolutivo(ref GridView grdDetalle, Int32 RecomendacionDetalleId) { ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); BPSeguimiento oBPSeguimiento = new BPSeguimiento(); try { // Formulario oENTSeguimiento.RecomendacionDetalleId = RecomendacionDetalleId; // Transacción oENTResponse = oBPSeguimiento.SelectRecomendacionGestion_PuntoResolutivo(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } // Llenado de detalle grdDetalle.DataSource = oENTResponse.dsResponse.Tables[1]; grdDetalle.DataBind(); }catch (Exception ex){ throw (ex); } }
void SelectRecomendacion( Boolean Recovery) { BPSeguimiento oBPSeguimiento = new BPSeguimiento(); ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); try { // Formulario oENTSeguimiento.RecomendacionNumero = this.txtRecomendacionNumero.Text.Trim(); oENTSeguimiento.ExpedienteNumero = this.txtExpedienteNumero.Text.Trim(); oENTSeguimiento.NombreAutoridad = this.txtNombreAutoridad.Text.Trim(); oENTSeguimiento.AcuerdoNoResponsabilidad = Int16.Parse(this.ddlTipo.SelectedValue); oENTSeguimiento.EstatusId = Int32.Parse(this.ddlEstatus.SelectedValue); oENTSeguimiento.FuncionarioId = Int32.Parse(this.ddlFuncionario.SelectedValue); oENTSeguimiento.FechaDesde = (Recovery ? dtBeginDate : this.wucBeginDate.BeginDate); oENTSeguimiento.FechaHasta = (Recovery ? dtEndDate : this.wucEndDate.EndDate); // Transacción oENTResponse = oBPSeguimiento.SelectRecomendacion_Filtro(oENTSeguimiento); // Errores if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } // Warnings if (oENTResponse.sMessage != "") { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), Convert.ToString(Guid.NewGuid()), "alert('" + oENTResponse.sMessage + "');", true); } // Llenado de control this.gvRecomendacion.DataSource = oENTResponse.dsResponse.Tables[1]; this.gvRecomendacion.DataBind(); }catch (Exception ex){ throw (ex); } }
// Funciones el programador void InsertRecomendacionFuncionario() { ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); BPSeguimiento oBPSeguimiento = new BPSeguimiento(); try { // Validaciones if (this.ddlFuncionario.SelectedItem.Value == "0") { throw (new Exception("Es necesario seleccionar un Funcionario")); } // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); oENTSeguimiento.FuncionarioId = Int32.Parse(this.ddlFuncionario.SelectedItem.Value); // Transacción oENTResponse = oBPSeguimiento.InsertRecomendacionFuncionario(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }catch (Exception ex){ throw (ex); } }
// Funciones el programador void EnviarRecomendacion() { ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); BPSeguimiento oBPSeguimiento = new BPSeguimiento(); try { // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); oENTSeguimiento.EstatusId = 8; // Pendiente de aprobar Recomendación oENTSeguimiento.ModuloId = 4; // Seguimientos // Transacción oENTResponse = oBPSeguimiento.UpdateRecomendacion_Estatus(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }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); } }
void InsertRecomendacionComentario() { BPSeguimiento oBPSeguimiento = new BPSeguimiento(); ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); ENTSession SessionEntity = new ENTSession(); try { // Validaciones if (this.ckeComentario.Text.Trim() == "") { throw (new Exception("Es necesario ingresar un comentario")); } // Obtener sesión SessionEntity = (ENTSession)Session["oENTSession"]; // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); oENTSeguimiento.ExpedienteId = Int32.Parse(this.hddExpedienteId.Value); oENTSeguimiento.ModuloId = 4; // Seguimiento oENTSeguimiento.UsuarioId = SessionEntity.idUsuario; oENTSeguimiento.Comentario = this.ckeComentario.Text.Trim(); oENTSeguimiento.MedidaPreventiva = Int16.Parse((this.chkMedidaPreventiva.Checked ? 1 : 0).ToString()); // Transacción oENTResponse = oBPSeguimiento.InsertRecomendacionComentario(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }catch (Exception ex){ throw (ex); } }
void DeleteRecomendacionComentario(Int32 ComentarioId) { BPSeguimiento oBPSeguimiento = new BPSeguimiento(); ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); try { // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); oENTSeguimiento.ExpedienteId = Int32.Parse(this.hddExpedienteId.Value); oENTSeguimiento.ModuloId = 4; // Visitadurías oENTSeguimiento.ComentarioId = ComentarioId; // Transacción oENTResponse = oBPSeguimiento.DeleteRecomendacionComentario(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }catch (Exception ex){ throw (ex); } }
// Funciones el programador void UpdateRecomendacion_NumeroFolio() { ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); ENTSession oENTSession = new ENTSession(); BPSeguimiento oBPSeguimiento = new BPSeguimiento(); try { // Validaciones if (this.txtNumeroRecomendacion.Text.Trim() == "") { throw (new Exception("Es necesario ingresar un número de recomendación")); } // Obtener Sesion oENTSession = (ENTSession)this.Session["oENTSession"]; // Formulario oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); oENTSeguimiento.NumeroRecomendacion = this.txtNumeroRecomendacion.Text.Trim(); oENTSeguimiento.UsuarioId = oENTSession.idUsuario; // Transacción oENTResponse = oBPSeguimiento.UpdateRecomendacion_Numero(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }catch (Exception ex){ throw (ex); } }
// Funciones el programador void SelectEstatusPuntoResolutivo() { ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); BPSeguimiento oBPSeguimiento = new BPSeguimiento(); try { // Formulario oENTSeguimiento.EstatusPuntoResolutivoId = 0; oENTSeguimiento.AcuerdoNoResponsabilidad = 0; oENTSeguimiento.Nombre = ""; oENTSeguimiento.Visible = 1; // Transacción oENTResponse = oBPSeguimiento.SelectEstatusPuntoResolutivo(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), Convert.ToString(Guid.NewGuid()), "alert('" + gcJavascript.ClearText(oENTResponse.sMessage) + "');", true); } // Llenado de combo this.ddlPopUpEstatusPuntoResolutivo.DataTextField = "Nombre"; this.ddlPopUpEstatusPuntoResolutivo.DataValueField = "EstatusPuntoResolutivoId"; this.ddlPopUpEstatusPuntoResolutivo.DataSource = oENTResponse.dsResponse.Tables[1]; this.ddlPopUpEstatusPuntoResolutivo.DataBind(); // Agregar Item de selección this.ddlPopUpEstatusPuntoResolutivo.Items.Insert(0, new ListItem("[Seleccione]", "0")); }catch (Exception ex){ throw (ex); } }
// Eventos de PopUp de edición estatus de punto resolutivo void InsertRecomendacionGestion_PuntoResolutivo() { ENTSeguimiento oENTSeguimiento = new ENTSeguimiento(); ENTResponse oENTResponse = new ENTResponse(); ENTSession oENTSession = new ENTSession(); BPSeguimiento oBPSeguimiento = new BPSeguimiento(); try { // Validaciones if (this.ddlPopUpEstatusPuntoResolutivo.SelectedIndex == 0) { throw (new Exception("Es necesario seleccionar un estatus")); } if (this.ckeEstatusPuntoResolutivo.Text.Trim() == "") { throw (new Exception("Es necesario ingresar un detalle")); } // Obtener Sesion oENTSession = (ENTSession)this.Session["oENTSession"]; // Formulario oENTSeguimiento.RecomendacionDetalleId = Int32.Parse(this.hddRecomendacionDetalleId.Value); oENTSeguimiento.RecomendacionId = Int32.Parse(this.hddRecomendacionId.Value); oENTSeguimiento.EstatusPuntoResolutivoId = Int16.Parse(this.ddlPopUpEstatusPuntoResolutivo.SelectedItem.Value); oENTSeguimiento.ModuloId = 4; // Seguimientos oENTSeguimiento.UsuarioId = oENTSession.idUsuario; oENTSeguimiento.Fecha = this.calFechaEstatusPuntoResolutivo.DisplayDate; oENTSeguimiento.Comentario = this.ckeEstatusPuntoResolutivo.Text.Trim(); // Transacción oENTResponse = oBPSeguimiento.InsertRecomendacionGestion(oENTSeguimiento); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), Convert.ToString(Guid.NewGuid()), "alert('" + gcJavascript.ClearText(oENTResponse.sMessage) + "');", true); } }catch (Exception ex){ throw (ex); } }