Exemplo n.º 1
0
        //public DataSet RetornaEmpleados(string condiciones, DataTable dtAuditoria)
        //{
        //    try
        //    {
        //        ProperTime.LogicaNegocio.ClsDatosEmpleado objEmpleado = new ProperTime.LogicaNegocio.ClsDatosEmpleado();
        //        objEmpleado.dtAuditoria = dtAuditoria;
        //        return objEmpleado.RetornaEmpleados(condiciones);
        //    }
        //    catch (Exception)
        //    {

        //        throw;
        //    }
        //}

        public DataSet RetornaEmpleados(string condiciones)
        {
            try
            {
                DataTable dtAuditoria = new DataTable()
                {
                    TableName = "Auditoria"
                };
                ProperTime.LogicaNegocio.ClsDatosEmpleado objEmpleado = new ProperTime.LogicaNegocio.ClsDatosEmpleado();
                objEmpleado.dtAuditoria = dtAuditoria;
                return(objEmpleado.RetornaEmpleados(condiciones));
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 2
0
 public bool GuardarEmpleado(int userid, string numCA, string nombre, string sexo, string cedula,
                             string CorreoOficina, string ciudad, string teleoficina, string correoPersonal, string titulo,
                             DateTime dtFechaNac, DateTime dtFechaEmpleo, DateTime dtFechaSalida, string codEmp, string celular,
                             string direccion, int tipoUsuario, DataTable dtAuditoria)
 {
     try
     {
         ProperTime.LogicaNegocio.ClsDatosEmpleado objEmpleados = new ProperTime.LogicaNegocio.ClsDatosEmpleado();
         objEmpleados.dtAuditoria = dtAuditoria;
         objEmpleados.GuardarEmpleado(userid, numCA, nombre, sexo, cedula,
                                      CorreoOficina, ciudad, teleoficina, correoPersonal, titulo,
                                      dtFechaNac, dtFechaEmpleo, dtFechaSalida, codEmp, celular,
                                      direccion, tipoUsuario);
     }
     catch (Exception)
     {
         throw;
     }
     return(true);
 }