示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            HistoriaMedicaService = new HistoriaMedicaService(ConfigConnection.connectionString);
            IList <Recetario> recetarios = HistoriaMedicaService.ConsultarHistoriaClienteRecetario(TxtCedula.Text);

            IList <Diagnostico> Diagnosticos = HistoriaMedicaService.ConsultarHistoriaClienteDiagnosticos(TxtCedula.Text, recetarios);

            AbrirFrmInpanel(new HistorialDiagnostico(Diagnosticos, CmbDiagnosticos.Text));
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            HistoriaMedicaService = new HistoriaMedicaService(ConfigConnection.connectionString);
            PersonaServiceBD  personaservice = new PersonaServiceBD(ConfigConnection.connectionString);
            Persona           persona        = personaservice.Buscar(TxtCedula.Text);
            IList <Recetario> recetarios     = HistoriaMedicaService.ConsultarHistoriaClienteRecetario(TxtCedula.Text);

            IList <Diagnostico> Diagnosticos = HistoriaMedicaService.ConsultarHistoriaClienteDiagnosticos(TxtCedula.Text, recetarios);

            AbrirFrmInpanel(new HistorialPersona(persona));
            foreach (var item in Diagnosticos)
            {
                CmbDiagnosticos.Items.Add(item.Codigo);
            }
        }