Ejemplo n.º 1
0
 public viewEmpleados()
 {
     InitializeComponent();
     eaTA = new EMPLEADOS_AFPTableAdapter();
     PlanillaDS cgDS = new PlanillaDS();
     eaTA.Fill(cgDS.EMPLEADOS_AFP);
     this.dgEmpleadosAFP.ItemsSource = cgDS.EMPLEADOS_AFP.DefaultView;
 }
Ejemplo n.º 2
0
        public viewEmpleadoNuevo()
        {
            InitializeComponent();
            txtSalario.Text = "0.0";

            //cargar AFP
            afpTA = new AFPSTableAdapter();
            PlanillaDS pDS = new PlanillaDS();
            afpTA.Fill(pDS.AFPS);

            //ingresamos valores a txtAFP
            txtAFP.DataContext = pDS.AFPS.DefaultView;
            txtAFP.DisplayMemberPath = "NOMBRE";
            txtAFP.SelectedValuePath = "ID_AFP";
        }