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(); }
public void CruceFacturacion(CEReporte reporte) { reportes.CruceFacturacion(reporte); }
public SqlDataReader RepEquiposPorFechas(CEReporte reporte) { return(reportes.RepEquiposPorFechas(reporte)); }
public SqlDataReader RepEmpleadosPorFechasyProyecto(CEReporte reporte) { return(reportes.RepEmpleadosPorFechasyProyecto(reporte)); }
public SqlDataReader RepCobroPuestosEmpleado(CEReporte reporte) { return(reportes.RepCobroPuestosEmpleado(reporte)); }
public void CreaBackUp(CEReporte reporte) { reportes.CreaBackUp(reporte); }
public SqlDataReader RepEquiposPorProyecto(CEReporte reporte) { return(reportes.RepEquiposPorProyecto(reporte)); }
public SqlDataReader RepCobroPuestosEquipos(CEReporte reporte) { return(reportes.RepCobroPuestosEquipos(reporte)); }
public void ImportarEquipos(CEReporte reporte) { reportes.ImportarEquipos(reporte); }
public void ImportarEmpleados(CEReporte reporte) { reportes.ImportarEmpleados(reporte); }
public SqlDataReader RepCruceFacturacion(CEReporte reporte) { return(reportes.RepCruceFacturacion(reporte)); }
public SqlDataReader RepMovimientoEquiposFecha(CEReporte reporte) { return(reportes.RepMovimientoEquiposFecha(reporte)); }