Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["v_ServiceId"] != null)
                {
                    Session["ServiceId"] = Request.QueryString["v_ServiceId"].ToString();
                }
                if (Request.QueryString["v_IdTrabajador"] != null)
                {
                    Session["IdTrabajador"] = Request.QueryString["v_IdTrabajador"].ToString();
                }

                List <string> servicios = new List <string>();
                servicios.Add(Session["ServiceId"].ToString());
                var obj = oProtocolBL.ObtenerIdsParaImportacion(servicios, int.Parse(Session["ConsultorioId"].ToString()));
                Session["ServiceComponentId"] = obj[0].ServicioComponentId.ToString();


                var Valores = new ServiceBL().ValoresComponente(Session["ServiceId"].ToString(), Constants.RX_TORAX_ID);

                if (Valores.Count() != 0)
                {
                    txtVertices.Text   = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_VERTICES_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_VERTICES_ID).v_Value1;
                    txtCampoPulmo.Text = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_CAMPOS_PULMONARES_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_CAMPOS_PULMONARES_ID).v_Value1;

                    txtHilios.Text     = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_HILOS_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_HILOS_ID).v_Value1;
                    txtSenosCosto.Text = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_COSTO_ODIAFRAGMATICO_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_COSTO_ODIAFRAGMATICO_ID).v_Value1;

                    txtSenosCardio.Text = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_SENOS_CARDIOFRENICOS_DESCRIPCION_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_SENOS_CARDIOFRENICOS_DESCRIPCION_ID).v_Value1;
                    txtMediastinos.Text = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_MEDIASTINOS_DESCRIPCION_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_MEDIASTINOS_DESCRIPCION_ID).v_Value1;

                    txtSiluetaCardiaca.Text = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_SILUETA_CARDIACA_DESCRIPCION_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_SILUETA_CARDIACA_DESCRIPCION_ID).v_Value1;
                    txtIndiceCardio.Text    = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_INDICE_CARDIACO_DESCRIPCION_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_INDICE_CARDIACO_DESCRIPCION_ID).v_Value1;

                    txtPartesBlandas.Text = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_PARTES_BLANDAS_OSEAS_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_PARTES_BLANDAS_OSEAS_ID).v_Value1;
                    txtDescripcion.Text   = Valores.Find(p => p.v_ComponentFieldId == Constants.RX_CONCLUSIONES_RADIOGRAFICAS_DESCRIPCION_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.RX_CONCLUSIONES_RADIOGRAFICAS_DESCRIPCION_ID).v_Value1;
                }
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["v_ServiceId"] != null)
                {
                    Session["ServiceId"] = Request.QueryString["v_ServiceId"].ToString();
                }
                if (Request.QueryString["v_IdTrabajador"] != null)
                {
                    Session["IdTrabajador"] = Request.QueryString["v_IdTrabajador"].ToString();
                }

                List <string> servicios = new List <string>();
                servicios.Add(Session["ServiceId"].ToString());
                var obj = oProtocolBL.ObtenerIdsParaImportacion(servicios, int.Parse(Session["ConsultorioId"].ToString()));
                Session["ServiceComponentId"] = obj[0].ServicioComponentId.ToString();
                LoadCombox();


                var Valores = new ServiceBL().ValoresComponente(Session["ServiceId"].ToString(), Constants.ELECTROCARDIOGRAMA_ID);

                if (Valores.Count() != 0)
                {
                    dllRitmo.SelectedValue = Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_ONDA_P_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_ONDA_P_ID).v_Value1;
                    txtFrecuencia.Text     = Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_RITMO_SINUAL_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_RITMO_SINUAL_ID).v_Value1;

                    txtSegPR.Text   = Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_INTERVALO_PR_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_INTERVALO_PR_ID).v_Value1;
                    txtOndaQRS.Text = Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_COMPLEJO_QRS_ANORMAL_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_COMPLEJO_QRS_ANORMAL_ID).v_Value1;

                    txtSegQT.Text  = Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_INTERVALO_QT_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_INTERVALO_QT_ID).v_Value1;
                    txtEjeORS.Text = Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_OTROS2_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_OTROS2_ID).v_Value1;

                    dllConclusiones.SelectedValue = Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_ONDA_T_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_ONDA_T_ID).v_Value1;

                    txtDescripcion.Text = Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_DESCRIPCION_ID) == null ? string.Empty : Valores.Find(p => p.v_ComponentFieldId == Constants.ELECTROCARDIOGRAMA_DESCRIPCION_ID).v_Value1;
                }
            }
        }