Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            paciente = (Paciente)Session["paciente"];

            if (paciente == null)
            {
                Response.Redirect("~/Index.aspx");
            }

            TN = new TurnosNegocio();
            if (this.tbxFecha_Final.Text.Length > 0)
            {
                return;
            }

            if (this.ddlMedico.Items.Count == 0)
            {
                this.tbxFecha_Final.Text   = "01/01/2020";
                this.tbxFecha_Inicial.Text = "01/01/2019";

                List <Medico> Medicos = TN.TurnosXPteYFechaCombo(paciente, Convert.ToDateTime(tbxFecha_Inicial.Text), Convert.ToDateTime(tbxFecha_Final.Text));
                this.ddlMedico.DataValueField = "dni";
                this.ddlMedico.DataTextField  = "apellido";
                this.ddlMedico.DataSource     = Medicos;
                this.ddlMedico.DataBind();

                this.tabla = TN.TurnosXPteYFecha(paciente, Convert.ToDateTime(tbxFecha_Inicial.Text), Convert.ToDateTime(tbxFecha_Final.Text), "   ");


                this.LlenarGrilla();
                this.GridView1.Visible = true;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.tbxNombre.Enabled            = false;
            this.tbxApellido.Enabled          = false;
            this.tbxFechaDeNacimiento.Text    = DateTime.Today.ToString("dd/MM/yyyy");
            this.tbxFechaDeNacimiento.Enabled = false;
            this.tbxMail.Enabled        = false;
            this.tbxNdeAfiliado.Enabled = false;
            this.tbxObraSocial.Enabled  = false;
            this.tbxPlan.Enabled        = false;
            this.tbxTelefono.Enabled    = false;


            this.TN = new TurnosNegocio();
            EspecialidadNegocio especilidadesN = new EspecialidadNegocio();

            this.especialidades                 = especilidadesN.Leer_Activas();
            this.ddlEspecialidad.DataSource     = this.especialidades;
            this.ddlEspecialidad.DataTextField  = this.especialidades.ElementAt(0).ToString();
            this.ddlEspecialidad.DataValueField = this.especialidades.ElementAt(0).ToString();

            // Bind the data to the control.
            this.ddlEspecialidad.DataBind();
            this.ddlEspecialidad.SelectedIndex = 0;
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Docentes docenteLogeado = new Docentes();

            docenteLogeado = (Docentes)Session["docenteLogeado"];

            if (docenteLogeado == null)
            {
                Response.Redirect("Login.aspx");
            }



            Page.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;


            if (!IsPostBack)
            {
                Materia        materia      = new Materia();
                Turnos         turno        = new Turnos();
                MateriaNegocio NegMateria   = new MateriaNegocio();
                TurnosNegocio  turnoNegocio = new TurnosNegocio();

                dwMateria.DataSource     = NegMateria.listar();
                dwMateria.DataValueField = "Id";
                dwMateria.DataTextField  = "Nombre";
                dwMateria.DataBind();

                dwTurnos.DataSource     = turnoNegocio.listar();
                dwTurnos.DataValueField = "Id";
                dwTurnos.DataTextField  = "Nombre";
                dwTurnos.DataBind();
            }
        }
        private void frmAltaTurno_Load(object sender, EventArgs e)
        {
            this.TN = new Negocio.TurnosNegocio();
            EspecialidadNegocio especilidades = new EspecialidadNegocio();

            cbxEspecialidad.DataSource    = especilidades.Leer_Activas();
            this.cbxEspecialidad.Enabled  = false;
            this.cbxFecha.Enabled         = false;
            this.cbxHora.Enabled          = false;
            this.cbxMedico.Enabled        = false;
            this.tbxObservaciones.Enabled = false;
            this.btnAceptar.Enabled       = false;
            this.btnBuscar.Enabled        = true;
            this.txbLeyenda.Visible       = false;
            this.txtCoseguro.Visible      = false;
            this.txtCoseguro.Enabled      = false;
            this.label15.Visible          = false;
            this.label15.Enabled          = false;


            if (cbxEspecialidad.Items.Count > 0)
            {
                cbxEspecialidad.SelectedIndex = 0;
            }
        }
 private void frmBajaTurno_Load(object sender, EventArgs e)
 {
     this.TN    = new TurnosNegocio();
     this.tabla = new DataTable("Turnos");
     row        = -1;
     this.btnAceptar.Enabled = false;
 }
Пример #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     paciente = (Paciente)Session["paciente"];
     this.TN  = new TurnosNegocio();
     this.tbxApellido.Enabled = false;
     this.tbxNombre.Enabled   = false;
     LlenarPaciente(paciente.dni);
 }
Пример #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            paciente = (Paciente)this.Session["paciente"];

            if (paciente == null)
            {
                Response.Redirect("~/Index.aspx");
            }

            if (this.ddlEspecialidad.Items.Count == 0)
            {
                if (this.Session["espe"] == null)
                {
                    this.Session.Add("espe", false);
                }
                else
                {
                    this.Session["espe"] = false;
                }
            }
            this.TN = new TurnosNegocio();
            EspecialidadNegocio especilidadesN = new EspecialidadNegocio();

            this.especialidades = especilidadesN.Leer_Activas();

            try
            {
                if (this.Session["espe"].Equals(false))
                {
                    this.ddlEspecialidad.DataSource     = this.especialidades;
                    this.ddlEspecialidad.DataTextField  = "nombre";
                    this.ddlEspecialidad.DataValueField = "id";
                    this.ddlEspecialidad.DataBind();

                    this.ddlEspecialidad.SelectedIndex = 0;
                    this.LlenarMedicos(this.especialidades.ElementAt(0).id);

                    this.Session["espe"] = true;
                }
            }
            catch (Exception ex)
            {
            }
        }
        public frmAltaHistoriaClinica(frmTurnos srmturnos, Medico medico, string dni, DateTime D)
        {
            InitializeComponent();
            this.srmturnos = srmturnos;
            this.medico    = medico;
            this.dni       = dni;
            TurnosNegocio TN = new TurnosNegocio();

            this.paciente = new Paciente();
            TN.LeerPaciente(this.dni, ref this.paciente);

            HCNegocio = new HistoriaClinicaNegocio();


            if (D.Date == DateTime.Now.Date && id == 2)
            {
                this.groupBox2.Enabled = true;
            }
            else
            {
                this.groupBox2.Enabled = false;
            }
        }
Пример #9
0
 public frmTurnos(frmPantallaPrincipal pantallaprincipal)
 {
     InitializeComponent();
     this.pantallaprincipal = pantallaprincipal;
     this.turnos            = new TurnosNegocio();
 }