コード例 #1
0
ファイル: PlanEscritorio.cs プロジェクト: davidleonel/TP2-NET
 public PlanEscritorio(int ID, ModoForm modo)
     : this()
 {
     this.Modo = modo;
     PlanNegocio pn = new PlanNegocio();
     PlanActual = pn.GetOne(ID);
     this.cargarCbEspecialidades();
     this.MapearDeDatos();
 }
コード例 #2
0
ファイル: Materias.aspx.cs プロジェクト: davidleonel/TP2-NET
        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"));
        }
コード例 #3
0
 private void cargarCbPlanes()
 {
     PlanNegocio pn = new PlanNegocio();
     cbIdPlan.DataSource = pn.GetAll();
     cbIdPlan.DisplayMember = "DescripcionPlan";
     cbIdPlan.ValueMember = "Id";
 }
コード例 #4
0
ファイル: PlanEscritorio.cs プロジェクト: davidleonel/TP2-NET
 public override void GuardarCambios()
 {
     this.MapearADatos();
     PlanNegocio pn = new PlanNegocio();
     pn.Save(PlanActual);
 }
コード例 #5
0
 private void Listar()
 {
     PlanNegocio pn = new PlanNegocio();
     this.dgvPlanes.DataSource = pn.GetAll();
 }