public void CreaBackUp(CEReporte reporte)
        {
            Config.openConnection(connection);
            SqlCommand command = new SqlCommand("EXEC INV.REALIZA_BACKUP @FILE", connection);

            command.Parameters.AddWithValue("FILE", reporte.RutaBackUp);
            command.ExecuteReader();
        }
        public SqlDataReader RepCruceFacturacion(CEReporte reporte)
        {
            Config.openConnection(connection);
            SqlCommand command = new SqlCommand("EXEC INV.REP_CRUCE_FACTURACION @INICIO, @FIN", connection);

            command.Parameters.AddWithValue("INICIO", reporte.Inicio);
            command.Parameters.AddWithValue("FIN", reporte.Fin);
            return(command.ExecuteReader());
        }
        public SqlDataReader RepCobroPuestosEquipos(CEReporte reporte)
        {
            Config.openConnection(connection);
            SqlCommand command = new SqlCommand("EXEC INV.REP_COBRO_PUESTOS_EQUIPOS @INICIO, @FIN, @PROY_ID", connection);

            command.Parameters.AddWithValue("INICIO", reporte.Inicio);
            command.Parameters.AddWithValue("FIN", reporte.Fin);
            command.Parameters.AddWithValue("PROY_ID", reporte.Proyecto);
            return(command.ExecuteReader());
        }
        public SqlDataReader RepEquiposPorProyecto(CEReporte reporte)
        {
            Config.openConnection(connection);
            SqlCommand command = new SqlCommand("INV.REP_EQUIPOS", connection);

            command.CommandType = CommandType.StoredProcedure;

            command.Parameters.AddWithValue("@OPERACION", "REP");
            command.Parameters.AddWithValue("@PROYECTO", reporte.Proyecto);
            return(command.ExecuteReader());
        }
        public SqlDataReader RepEquiposPorFechas(CEReporte reporte)
        {
            Config.openConnection(connection);
            SqlCommand command = new SqlCommand("INV.REP_EQUIPOS", connection);

            command.CommandType = CommandType.StoredProcedure;

            command.Parameters.AddWithValue("@OPERACION", "REF");
            command.Parameters.AddWithValue("@INICIO", reporte.Inicio);
            command.Parameters.AddWithValue("@FIN", reporte.Fin);
            return(command.ExecuteReader());
        }
        public void ImportarEquipos(CEReporte reporte)
        {
            Config.openConnection(connection);

            SqlBulkCopy importar = default(SqlBulkCopy);

            importar = new SqlBulkCopy(connection);

            importar.DestinationTableName = "INV.EQUIPO";

            importar.WriteToServer(reporte.Data.Tables[0]);
            connection.Close();
        }
        public SqlDataReader RepEmpleadosPorFechasyProyecto(CEReporte reporte)
        {
            Config.openConnection(connection);
            SqlCommand command = new SqlCommand("INV.REP_EMPLEADOS", connection);

            command.CommandType = CommandType.StoredProcedure;

            command.Parameters.AddWithValue("@OPERACION", "REFP");
            command.Parameters.AddWithValue("@INICIO", reporte.Inicio);
            command.Parameters.AddWithValue("@FIN", reporte.Fin);
            command.Parameters.AddWithValue("@PROYECTO", reporte.Proyecto);
            return(command.ExecuteReader());
        }
        public void CruceFacturacion(CEReporte reporte)
        {
            Config.openConnection(connection);

            SqlBulkCopy importar = default(SqlBulkCopy);

            importar = new SqlBulkCopy(connection);

            importar.DestinationTableName = "INV.CRUCE_FACTURACION";

            importar.WriteToServer(reporte.Data.Tables[0]);
            connection.Close();
        }
Пример #9
0
 public void CruceFacturacion(CEReporte reporte)
 {
     reportes.CruceFacturacion(reporte);
 }
Пример #10
0
 public SqlDataReader RepEquiposPorFechas(CEReporte reporte)
 {
     return(reportes.RepEquiposPorFechas(reporte));
 }
Пример #11
0
 public SqlDataReader RepEmpleadosPorFechasyProyecto(CEReporte reporte)
 {
     return(reportes.RepEmpleadosPorFechasyProyecto(reporte));
 }
Пример #12
0
 public SqlDataReader RepCobroPuestosEmpleado(CEReporte reporte)
 {
     return(reportes.RepCobroPuestosEmpleado(reporte));
 }
Пример #13
0
 public void CreaBackUp(CEReporte reporte)
 {
     reportes.CreaBackUp(reporte);
 }
Пример #14
0
 public SqlDataReader RepEquiposPorProyecto(CEReporte reporte)
 {
     return(reportes.RepEquiposPorProyecto(reporte));
 }
Пример #15
0
 public SqlDataReader RepCobroPuestosEquipos(CEReporte reporte)
 {
     return(reportes.RepCobroPuestosEquipos(reporte));
 }
Пример #16
0
 public void ImportarEquipos(CEReporte reporte)
 {
     reportes.ImportarEquipos(reporte);
 }
Пример #17
0
 public void ImportarEmpleados(CEReporte reporte)
 {
     reportes.ImportarEmpleados(reporte);
 }
Пример #18
0
 public SqlDataReader RepCruceFacturacion(CEReporte reporte)
 {
     return(reportes.RepCruceFacturacion(reporte));
 }
Пример #19
0
 public SqlDataReader RepMovimientoEquiposFecha(CEReporte reporte)
 {
     return(reportes.RepMovimientoEquiposFecha(reporte));
 }