Пример #1
0
        private void btnImprimir_Click(object sender, EventArgs e)
        {
            bool error = true;

            if (rbtPacientesAtendidosXOS.Checked)
            {
                if (oConsulta.listaPacientesObraSocial("dtObraSocial", this.dtpDesde.Value, this.dtpHasta.Value, true))
                {
                    error = false;
                    fE    = new frmVisor(frmVisor.Reporte.PacienteXObraSocial, oConsulta.Table);
                    fE.Show();
                }
            }

            if (rbtTodosLosPacientes.Checked)
            {
                if (oConsulta.listaPacientesObraSocial("dtObraSocial", this.dtpDesde.Value, this.dtpHasta.Value, false))
                {
                    error = false;
                    fE    = new frmVisor(frmVisor.Reporte.PacienteXObraSocial, oConsulta.Table);
                    fE.Show();
                }
            }

            if (error)
            {
                MessageBox.Show(oTxt.ErrorListaConsulta);
            }
        }
Пример #2
0
        //-----------------------------------------------------------------------
        #endregion
        //-----------------------------------------------------------------------

        //-----------------------------------------------------------------------
        #region TabDiagnostico
        //-----------------------------------------------------------------------

        #region Botones

        //OK 21/06/12
        private void btnExportar_Click(object sender, EventArgs e)
        {
            if (oConsulta.rHistoriaClinica("dtHistoriaClinica", oPersona.IdPersona))
            {
                frmVisor fReport = new frmVisor(frmVisor.Reporte.HistoriaClinica, oConsulta.Table);
                fReport.Show();
            }
            else
            {
                MessageBox.Show(oTxt.ErrorListaConsulta);
            }
        }
Пример #3
0
        //OK 21/06/12
        private void tsbImprimir_Click(object sender, EventArgs e)
        {
            classPersona oP = new classPersona();

            oP.Apellido   = this.oValidarSql.ValidaString(txtbApellido.Text);
            oP.nAfiliado  = this.oValidarSql.ValidaString(txtbNafiliado.Text);
            oP.ObraSocial = Convert.ToInt32(tcmbObraSocial.ComboBox.SelectedValue);

            if (oConsulta.rListaPacientesLimite("dtPersona", oP, this.Desde, this.Hasta))
            {
                frmVisor fReport = new frmVisor(frmVisor.Reporte.ListaPacientes, oConsulta.Table);
                fReport.Show();
            }
            else
            {
                MessageBox.Show(oTxt.ErrorListaConsulta);
            }
        }
Пример #4
0
        // OK 21/06/12
        #region Botones

        private void btnGenerar_Click(object sender, EventArgs e)
        {
            bool error = true;

            if (rbtObraSocial.Checked)
            {
                if (oConsulta.eObraSocial("dtObraSocial", this.dtpDesde.Value, this.dtpHasta.Value))
                {
                    error = false;
                    fE    = new frmVisor(frmVisor.Reporte.ObraSocial, oConsulta.Table, this.oUtil.IdUsuario);
                    fE.Show();
                }
            }
            else if (rbtDiagnostico.Checked)
            {
                if (oConsulta.eDiagnosticos("dtDiagnostico", this.dtpDesde.Value, this.dtpHasta.Value))
                {
                    error = false;
                    fE    = new frmVisor(frmVisor.Reporte.Diagnostico, oConsulta.Table, this.oUtil.IdUsuario);
                    fE.Show();
                }
            }
            else if (rbtPaciente.Checked)
            {
                if (oConsulta.ePacientes("dtPaciente", this.dtpDesde.Value, this.dtpHasta.Value))
                {
                    error = false;
                    fE    = new frmVisor(frmVisor.Reporte.Paciente, oConsulta.Table, this.oUtil.IdUsuario);
                    fE.Show();
                }
            }
            else
            {
            }

            if (error)
            {
                MessageBox.Show(oTxt.ErrorListaConsulta);
            }
        }