SIAQ.BusinessProcess.Object.BPVisitaduria.SelectExpediente_Detalle C# (CSharp) Method

SelectExpediente_Detalle() public method

Obtiene el detalle de un Expedientes de Visitadurias en específico
BPVisitaduria.SelectExpediente_Detalle 15-Agosto-2014 Ruben.Cobos
public SelectExpediente_Detalle ( ENTVisitaduria oENTVisitaduria ) : ENTResponse
oENTVisitaduria SIAQ.Entity.Object.ENTVisitaduria Entidad de Visitadurías con los filtros necesarios para la consulta
return SIAQ.Entity.Object.ENTResponse
        public ENTResponse SelectExpediente_Detalle(ENTVisitaduria oENTVisitaduria)
        {
            DAVisitaduria oDAVisitaduria = new DAVisitaduria();
               ENTResponse oENTResponse = new ENTResponse();

               try
               {

              // Transacción en base de datos
               oENTResponse = oDAVisitaduria.SelectExpediente_Detalle(oENTVisitaduria, this.sConnectionApplication, 0);

              // Validación de error en consulta
              if (oENTResponse.GeneratesException) { return oENTResponse; }

              // Validación de mensajes de la BD
              oENTResponse.sMessage = oENTResponse.dsResponse.Tables[0].Rows[0]["sResponse"].ToString();
              if (oENTResponse.sMessage != "") { return oENTResponse; }

               }catch (Exception ex){
              oENTResponse.ExceptionRaised(ex.Message);
               }

               // Resultado
               return oENTResponse;
        }

Usage Example

Exemplo n.º 1
0
        void SelectExpediente()
        {
            BPVisitaduria oBPVisitaduria = new BPVisitaduria();
            ENTVisitaduria oENTVisitaduria = new ENTVisitaduria();
            ENTResponse oENTResponse = new ENTResponse();

            try
            {

                // Formulario
                oENTVisitaduria.ExpedienteId = Int32.Parse(this.hddExpedienteId.Value);

                // Transacción
                oENTResponse = oBPVisitaduria.SelectExpediente_Detalle(oENTVisitaduria);

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

                // Campos ocultos
                this.hddExpedienteId.Value = oENTResponse.dsResponse.Tables[1].Rows[0]["ExpedienteId"].ToString();

                // Formulario
                this.ExpedienteNumero.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["ExpedienteNumero"].ToString();
                this.SolicitudNumero.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["SolicitudNumero"].ToString();
                this.CalificacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["CalificacionNombre"].ToString();
                this.EstatusaLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["EstatusNombre"].ToString();
                this.AfectadoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Afectado"].ToString();
                this.AreaLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["AreaNombre"].ToString();
                this.ResolucionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["TipoResolucionNombre"].ToString();

                this.FuncionarioLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FuncionarioNombre"].ToString();
                this.ContactoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FormaContactoNombre"].ToString();
                this.TipoSolicitudLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["TipoSolicitudNombre"].ToString();
                this.ProblematicaLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["ProblematicaNombre"].ToString();
                this.ProblematicaDetalleLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["ProblematicaDetalleNombre"].ToString();

                this.FechaRecepcionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaRecepcion"].ToString();
                this.FechaAsignacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaAsignacion"].ToString();
                this.FechaQuejasLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaQuejas"].ToString();
                this.FechaVisitaduriasLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaVisitadurias"].ToString();
                this.FechaModificacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["FechaUltimaModificacion"].ToString();
                this.NivelAutoridadLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["NivelAutoridadNombre"].ToString();
                this.MecanismoAperturaLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["MecanismoAperturaNombre"].ToString();

                this.TipoOrientacionLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["TipoOrientacionNombre"].ToString();
                this.LugarHechosLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["LugarHechosNombre"].ToString();
                this.DireccionHechosLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["DireccionHechos"].ToString();
                this.ObservacionesLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Observaciones"].ToString();
                this.FundamentoLabel.Text = oENTResponse.dsResponse.Tables[1].Rows[0]["Fundamento"].ToString();

                // Cierre de Orientación
                if ( oENTResponse.dsResponse.Tables[1].Rows[0]["CalificacionId"].ToString() != "3" ){
                    this.CierreOrientacionLabel.Visible = false;
                    this.TipoOrientacionLabel.Visible = false;
                }

                // Canalizaciones
                if (oENTResponse.dsResponse.Tables[2].Rows.Count > 0){

                    this.CanalizacionesLabel.Visible = true;

                    this.grdCanalizacion.DataSource = oENTResponse.dsResponse.Tables[2];
                    this.grdCanalizacion.DataBind();
                }

                // Autoridades
                this.gvAutoridades.DataSource = oENTResponse.dsResponse.Tables[10];
                this.gvAutoridades.DataBind();

            }catch (Exception ex){
                throw (ex);
            }
        }
All Usage Examples Of SIAQ.BusinessProcess.Object.BPVisitaduria::SelectExpediente_Detalle