예제 #1
0
        public ActionResult Ingreso2(int preconsulta_id)
        {
            Nutricion_consulta n = new Nutricion_consulta();

            n.preconsulta_id = preconsulta_id;
            Preconsulta s  = new Preconsulta();
            DataTable   pr = s.buscar(preconsulta_id);

            n.paciente = pr.Rows[0][1].ToString();
            n.peso     = Convert.ToDecimal(pr.Rows[0][3].ToString());
            n.Edad     = pr.Rows[0][7].ToString();
            n.genero   = pr.Rows[0][8].ToString();
            return(View(n));
        }
예제 #2
0
        public ActionResult Ingreso(int preconsulta_id)
        {
            Doctor d = new Doctor();

            d.id_preconsulta = preconsulta_id;
            Preconsulta s = new Preconsulta();

            d.ds = s.buscar(preconsulta_id);
            string a = d.ds.Rows[0][6].ToString();

            d.id = Convert.ToInt32(d.ds.Rows[0][6].ToString());
            if (a != "-1")
            {
                d.buscar();
                Medicamento m = new Medicamento();
                d.medicamentos = m.buscar(d.id);
            }
            return(View(d));
        }