public PlanEscritorio(int ID, ModoForm modo)
     : this()
 {
     this.Modo = modo;
     PlanNegocio pn = new PlanNegocio();
     PlanActual = pn.GetOne(ID);
     this.cargarCbEspecialidades();
     this.MapearDeDatos();
 }
Exemple #2
0
        public void CargaDropDownListPlanes()
        {
            PlanNegocio pn = new PlanNegocio();

            this.PlanesDropDownList.DataSource = pn.GetAll();
            this.PlanesDropDownList.DataValueField = "Id";
            this.PlanesDropDownList.DataTextField = "DescripcionPlan";
            this.PlanesDropDownList.DataBind();
            this.PlanesDropDownList.Items.Insert(0, new ListItem("Seleccione Plan.", "0"));
        }
 private void cargarCbPlanes()
 {
     PlanNegocio pn = new PlanNegocio();
     cbIdPlan.DataSource = pn.GetAll();
     cbIdPlan.DisplayMember = "DescripcionPlan";
     cbIdPlan.ValueMember = "Id";
 }
 public override void GuardarCambios()
 {
     this.MapearADatos();
     PlanNegocio pn = new PlanNegocio();
     pn.Save(PlanActual);
 }
 private void Listar()
 {
     PlanNegocio pn = new PlanNegocio();
     this.dgvPlanes.DataSource = pn.GetAll();
 }