public SelectAtencion_Detalle_ById ( |
||
entAtencion | Entidad del Expediente de Atención a Víctimas con los filtros necesarios para la consulta | |
return |
void SelectAtencion_ForEdit(Int32 AtencionId) { BPAtencion oBPAtencion = new BPAtencion(); ENTResponse oENTResponse = new ENTResponse(); ENTAtencion oENTAtencion = new ENTAtencion(); RadioButton oRadioButton; try { //Formulario oENTAtencion.AtencionId = AtencionId; //Transacción oENTResponse = oBPAtencion.SelectAtencion_Detalle_ById(oENTAtencion); //Validación if (oENTResponse.GeneratesException) { throw new Exception(oENTResponse.sErrorMessage); } if (oENTResponse.sMessage != "") { throw new Exception(oENTResponse.sMessage); } // Actualizar grid this.txtNumeroOficio.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["NumeroOficio"].ToString(); this.ddlTipoDictamen.SelectedValue = oENTResponse.dsResponse.Tables[1].Rows[0]["TipoDictamenId"].ToString(); this.ddlLugarAtencion.SelectedValue = oENTResponse.dsResponse.Tables[1].Rows[0]["LugarAtencionId"].ToString(); // Ciudadano de la atención foreach (GridViewRow gvRow in this.gvCiudadano.Rows) { oRadioButton = (RadioButton)this.gvCiudadano.Rows[gvRow.RowIndex].FindControl("RowSelector"); oRadioButton.Checked = ( oENTResponse.dsResponse.Tables[2].Select("CiudadanoId=" + this.gvCiudadano.DataKeys[gvRow.RowIndex]["CiudadanoId"].ToString() ).Length > 0 ? true : false ); } // Detalle de la atención this.ckeDetalle.Text = oENTResponse.dsResponse.Tables[3].Select("Dictamen=0")[0]["Detalle"].ToString(); }catch (Exception ex){ throw (ex); } }
// Rutinas del grid Anidado void SelectAtencion_Detalle(Int32 AtencionId) { BPAtencion oBPAtencion = new BPAtencion(); ENTResponse oENTResponse = new ENTResponse(); ENTAtencion oENTAtencion = new ENTAtencion(); try { //Formulario oENTAtencion.AtencionId = AtencionId; //Transacción oENTResponse = oBPAtencion.SelectAtencion_Detalle_ById(oENTAtencion); //Validación if (oENTResponse.GeneratesException) { throw new Exception(oENTResponse.sErrorMessage); } if (oENTResponse.sMessage != "") { throw new Exception(oENTResponse.sMessage); } // Actualizar grid gvAtencionDetalle.DataSource = oENTResponse.dsResponse.Tables[3]; gvAtencionDetalle.DataBind(); }catch (Exception ex){ throw (ex); } }