public int Agregar() { int id = 0; DetallePlanilla dp = new DetallePlanilla(); List <Empleado> empleados = new Empleado().ObtenerTodo(); if (ObtenerPorMes().Count > 0) { return(0); } parametros = new Dictionary <string, object>() { { "nombre", this.nombre }, { "fecha", this.fecha.ToString("dd/MM/yyyy") }, { "idUsuario", this.idUsuario } }; id = Ejecutor.Insertar(TABLA, parametros); foreach (Empleado e in empleados) { dp.IdPlanilla = id; dp.IdEmpleado = e.Id.Value; dp.SueldoBase = e.SueldoBase; dp.Fecha = fecha; dp.Agregar(); } return(id); }
public int Agregar() { parametros = new Dictionary <string, object>() { { "nombre", this.nombre }, { "login", this.login }, { "clave", this.clave } }; return(Ejecutor.Insertar(TABLA, parametros)); }
public int Agregar() { parametros = new Dictionary <string, object>() { { "nombre", this.nombre }, { "derechoBono", this.derechoBono }, { "horasExtras", this.horasExtras }, { "porcentajeBono", this.porcentajeBono } }; return(Ejecutor.Insertar(TABLA, parametros)); }
public int Agregar() { parametros = new Dictionary <string, object>() { { "nombre", this.nombre }, { "apellido", this.apellido }, { "telefono", this.telefono }, { "email", this.email }, { "direccion", this.direccion }, { "sueldoBase", this.sueldoBase }, { "idGerencia", this.idGerencia }, { "idUsuario", this.idUsuario } }; return(Ejecutor.Insertar(TABLA, parametros)); }
public int Agregar() { parametros = new Dictionary <string, object>() { { "sueldoBase", this.SueldoBase }, { "isss", this.Isss }, { "afpEmpleado", this.AfpEmpleado }, { "afpEmpleador", this.AfpEmpleador }, { "renta", this.Renta }, { "fecha", this.fecha.ToString("dd/MM/yyyy") }, { "idPlanilla", this.idPlanilla }, { "idEmpleado", this.IdEmpleado } }; return(Ejecutor.Insertar(TABLA, parametros)); }