Ejemplo n.º 1
0
        public void init()
        {
            logicaM10   = new LogicaM10();
            theEmpleado = new Empleado();
            List <LugarDireccion> direccion = new List <LugarDireccion>();

            theCargo = new Cargo("Gerente", "Gerente de proyectos de software",
                                 DateTime.ParseExact("04/01/2016", "MM/dd/yyyy", CultureInfo.InvariantCulture),
                                 "Tiempo compleato", Double.Parse("60"));

            direccion.Add(new LugarDireccion("Venezuela", "Pais"));
            direccion.Add(new LugarDireccion("Distrito Capital", "Estado"));
            direccion.Add(new LugarDireccion("Caracas", "Ciudad"));
            direccion.Add(new LugarDireccion("Plaza Sucre", "Direccion"));

            theEmpleado = new Empleado();

            //theEmpleado = new Empleado(0, "Antonio", "Juan", "Garcia",
            //                                   "Gobea", "Masculino",
            //                                   19627934,
            //                                   DateTime.ParseExact("05/02/1991", "MM/dd/yyyy", CultureInfo.InvariantCulture),
            //                                   "Activo", "Bachiller", "*****@*****.**", theCargo,
            //                                   direccion);


            empleadoId       = 1;
            pais             = "Venezuela";
            consultaEmpleado = new Empleado();
        }
Ejemplo n.º 2
0
        private void FillSelectedListJob()
        {
            LogicaM10 componentes = new LogicaM10();

            ;
            int x = 1;

            SelectedListJob.Items.Insert(0, "Seleccione un cargo");
            foreach (Cargo cargos in componentes.ItemsForListJobs())
            {
                elementos.Add(cargos.Nombre, cargos.Descripcion);
                SelectedListJob.Items.Insert(x, cargos.Nombre);
                x++;
            }
        }