SelectAtencion_Detalle() public method

Obtiene el detalle de un Expediente de Atención a Víctimas específico
BPAtencion.SelectAtencion_Detalle 19-Junio-2014 Ruben.Cobos
public SelectAtencion_Detalle ( ENTAtencion entAtencion ) : ENTResponse
entAtencion SIAQ.Entity.Object.ENTAtencion Entidad del Expediente de Atención a Víctimas con los filtros necesarios para la consulta
return SIAQ.Entity.Object.ENTResponse
        void SelectAtencion()
        {
            BPAtencion oBPAtencion = new BPAtencion();
            ENTAtencion oENTAtencion = new ENTAtencion();
            ENTResponse oENTResponse = new ENTResponse();

            try
            {

                // Formulario
                oENTAtencion.AtencionId = Int32.Parse(this.hddAtencionId.Value);

                // Transacción
                oENTResponse = oBPAtencion.SelectAtencion_Detalle(oENTAtencion);

                // Errores y Warnings
                if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); }
                if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); }

                // Campos ocultos
                this.hddEstatusId.Value = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusId"].ToString();
                this.hddFuncionarioId.Value = oENTResponse.dsResponse.Tables[1].Rows[0]["FuncionarioId"].ToString();

                // Formulario
                this.AtencionNumeroFolio.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["AtencionNumeroFolio"].ToString();
                this.AfectadoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Ciudadanos"].ToString();
                this.AtencionNumeroOficio.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["AtencionNumeroOficio"].ToString();
                this.AreaLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Area"].ToString();
                this.ExpedienteNumeroLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["ExpedienteNumero"].ToString();
                this.SolicitudNumeroLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["SolicitudNumero"].ToString();
                this.EstatusLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusNombre"].ToString();
                this.DoctorLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FuncionarioNombre"].ToString();

                this.FechaAtencionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaAtencion"].ToString();
                this.FechaAsignacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaAsignacion"].ToString();
                this.UltimaModificacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaUltimaModificacion"].ToString();

                this.DictamenMedicoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["TipoDictamenNombre"].ToString();
                this.LugarRevisionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["LugarAtencionNombre"].ToString();

                // Grid
                this.gvAtencionDetalle.DataSource = oENTResponse.dsResponse.Tables[2];
                this.gvAtencionDetalle.DataBind();

                // Documentos
                if (oENTResponse.dsResponse.Tables[3].Rows.Count == 0){

                    this.SinDocumentoLabel.Text = "<br /><br />No hay documentos anexados al Dictámen";
                }else{

                    this.SinDocumentoLabel.Text = "";
                    this.dlstDocumentoList.DataSource = oENTResponse.dsResponse.Tables[3];
                    this.dlstDocumentoList.DataBind();
                }

                // Dictámen
                this.gvDictamen.DataSource = oENTResponse.dsResponse.Tables[4];
                this.gvDictamen.DataBind();

            }catch (Exception ex){
                throw (ex);
            }
        }
示例#2
0
        void SelectAtencion()
        {
            BPAtencion oBPAtencion = new BPAtencion();
            ENTAtencion oENTAtencion = new ENTAtencion();
            ENTResponse oENTResponse = new ENTResponse();

            try
            {

                // Formulario
                oENTAtencion.AtencionId = Int32.Parse(this.hddAtencionId.Value);

                // Transacción
                oENTResponse = oBPAtencion.SelectAtencion_Detalle(oENTAtencion);

                // Errores y Warnings
                if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); }
                if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); }

                // Formulario
                this.AtencionNumeroFolio.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["AtencionNumeroFolio"].ToString();
                this.AfectadoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Ciudadanos"].ToString();
                this.AtencionNumeroOficio.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["AtencionNumeroOficio"].ToString();
                this.AreaLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Area"].ToString();
                this.ExpedienteNumeroLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["ExpedienteNumero"].ToString();
                this.SolicitudNumeroLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["SolicitudNumero"].ToString();
                this.EstatusLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusNombre"].ToString();
                this.DoctorLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FuncionarioNombre"].ToString();

                this.FechaAtencionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaAtencion"].ToString();
                this.FechaAsignacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaAsignacion"].ToString();
                this.UltimaModificacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaUltimaModificacion"].ToString();

                this.DictamenMedicoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["TipoDictamenNombre"].ToString();
                this.LugarRevisionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["LugarAtencionNombre"].ToString();

            }catch (Exception ex){
                throw (ex);
            }
        }
示例#3
0
        void SetCheckList()
        {
            BPAtencion oBPAtencion = new BPAtencion();
            ENTAtencion oENTAtencion = new ENTAtencion();
            ENTResponse oENTResponse = new ENTResponse();

            try
            {

                // Formulario
                oENTAtencion.AtencionId = Int32.Parse(this.hddAtencionId.Value);

                // Transacción
                oENTResponse = oBPAtencion.SelectAtencion_Detalle(oENTAtencion);

                // Errores y Warnings
                if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); }
                if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); }

                // Gestiones
                if (oENTResponse.dsResponse.Tables[4].Rows.Count == 0){
                    this.imgDictamen.ImageUrl = "~/Include/Image/Icon/AsignarIcon_Pending.png";
                    this.imgDictamen.ToolTip = "No se ha emitido el dictamen del expediente de atención a víctimas";
                    this.btnEnviar.Enabled = false;
                    this.btnEnviar.CssClass = "Button_General_Disabled";
                }

            }catch (Exception ex){
                throw (ex);
            }
        }