コード例 #1
0
        public EmpleadoM10(string empPNombre, string empSNombre, string empPApellido, string empSApellido, string empGenero, int empCedula,
                           DateTime empFecha, string empActivo, string empEstudio, string empEmail, Entidad cargo, string telefono, List <LugarDireccion> ListaLugar)

        {
            this.emp_p_nombre      = empPNombre;
            this.emp_s_nombre      = empSNombre;
            this.emp_p_apellido    = empPApellido;
            this.emp_s_apellido    = empSApellido;
            this.emp_cedula        = empCedula;
            this.emp_fecha_nac     = empFecha;
            this.emp_activo        = empActivo;
            this.emp_email         = empEmail;
            this.emp_genero        = empGenero;
            this.Emp_nivel_estudio = empEstudio;
            this.ListaDireccion    = ListaLugar;
            this.jobs         = (CargoM10)cargo;
            this.Emp_telefono = telefono;
        }
コード例 #2
0
 public EmpleadoM10(int empId, string empPNombre, string empSNombre, string empPApellido, string empSApellido, int empCedula,
                    DateTime empFecha, string empActivo, string empEmail, string empGenero, string empEstudio,
                    string empModalidad, double empSalario, Entidad cargo)
 {
     this.emp_id            = empId;
     this.emp_p_nombre      = empPNombre;
     this.emp_s_nombre      = empSNombre;
     this.emp_p_apellido    = empPApellido;
     this.emp_s_apellido    = empSApellido;
     this.emp_cedula        = empCedula;
     this.emp_fecha_nac     = empFecha;
     this.emp_activo        = empActivo;
     this.emp_email         = empEmail;
     this.emp_genero        = empGenero;
     this.Emp_nivel_estudio = empEstudio;
     this.emp_modalidad     = empModalidad;
     this.emp_salario       = empSalario;
     this.jobs = (CargoM10)cargo;
 }
コード例 #3
0
 public EmpleadoM10(int empId, string empPNombre, string empSNombre, string empPApellido, string empSApellido,
                    string empGenero, int empCedula, DateTime empFecha, string empActivo, string empNivelEstudio,
                    string empEmailEmployee, int empLugId, Entidad empCargo, double empSalario, string empFechaInicio,
                    string empFechaFin, string empDireccion)
 {
     this.emp_id            = empId;
     this.emp_p_nombre      = empPNombre;
     this.emp_s_nombre      = empSNombre;
     this.emp_p_apellido    = empPApellido;
     this.emp_s_apellido    = empSApellido;
     this.emp_genero        = empGenero;
     this.emp_cedula        = empCedula;
     this.emp_fecha_nac     = empFecha;
     this.emp_activo        = empActivo;
     this.emp_nivel_estudio = empNivelEstudio;
     this.emp_email         = empEmailEmployee;
     this.emp_LugId         = empLugId;
     this.jobs            = (CargoM10)empCargo;
     this.emp_salario     = empSalario;
     this.emp_FechaInicio = empFechaInicio;
     this.emp_FechaFin    = empFechaFin;
     this.emp_Direccion   = empDireccion;
 }
コード例 #4
0
        /// <summary>
        /// Metodo para obtener cargos a asignar al empleado que se esta agregando
        /// </summary>
        public void ObtenerCargos()
        {
            LogicaTangerine.Comandos.M10.ComandoObtenerCargo comando =
                (LogicaTangerine.Comandos.M10.ComandoObtenerCargo)LogicaTangerine.Fabrica.FabricaComandos.
                ObtenerFabricaCargo();

            Dictionary <string, string> options = new Dictionary <string, string>();

            options.Add("0", "Seleccione un cargo");

            List <Entidad> listaCargo = comando.Ejecutar();

            foreach (Entidad row in listaCargo)
            {
                DominioTangerine.Entidades.M10.CargoM10 Cargo = (DominioTangerine.Entidades.M10.CargoM10)row;
                options.Add(Cargo.Car_id.ToString(), Cargo.Nombre);
            }

            Vista.IcomboCargo.DataSource     = options;
            Vista.IcomboCargo.DataTextField  = "value";
            Vista.IcomboCargo.DataValueField = "key";
            Vista.IcomboCargo.DataBind();
        }