20260129 - 01
This commit is contained in:
@@ -16,7 +16,12 @@ namespace bdGrupoSanchoToro.Importaciones
|
||||
tscGrupoSanchoToro bd = tscGrupoSanchoToro.NuevoContexto();
|
||||
|
||||
//00
|
||||
Importa("GRUASGC", bdGrupoSanchoToro.Importaciones.ImportaGRUASGC.Importar, de); //00
|
||||
//Importa("GRUASGC", bdGrupoSanchoToro.Importaciones.ImportaGRUASGC.Importar, de); //00
|
||||
//Importa("FAMILIAS", bdGrupoSanchoToro.Importaciones.ImportaFAMILIAS.Importar, de); //00
|
||||
//Importa("FAMILIAS", bdGrupoSanchoToro.Importaciones.ImportaFAMILIAS.Importar, de); //00
|
||||
//Importa("CTESGESL", bdGrupoSanchoToro.Importaciones.ImportaCTESGESL.Importar, de); //00
|
||||
Importa("PRODUCTOS", bdGrupoSanchoToro.Importaciones.ImportaPRODUCTOS.Importar, de); //00
|
||||
|
||||
//Importa("GRUPRO", bdGrupoSanchoToro.Importaciones.ImportaGrupoProductos.Importar, de); //01
|
||||
//Importa("CAMPAÑAS", bdGrupoSanchoToro.Importaciones.ImportaCampañas.Importar, de); //02
|
||||
//Importa("PRODUCTOS", bdGrupoSanchoToro.Importaciones.ImportaProductos.Importar, de); //03
|
||||
@@ -37,7 +42,7 @@ namespace bdGrupoSanchoToro.Importaciones
|
||||
//Importa("PROVEEDORH", bdGrupoSanchoToro.Importaciones.ImportaProveedoresh.Importar, de); //25
|
||||
//Importa("CLIENTES", bdGrupoSanchoToro.Importaciones.ImportaClientes.Importar, de); //15
|
||||
//Importa("CLIENTESH", bdGrupoSanchoToro.Importaciones.ImportaClientesh.Importar, de); //26
|
||||
// Importa("PERSONAL", bdGrupoSanchoToro.Importaciones.ImportaClientesh.Importar, de); //26
|
||||
// Importa("PERSONAL", bdGrupoSanchoToro.Importaciones.ImportaClientesh.Importar, de); //26
|
||||
}
|
||||
|
||||
//public static void ImportarPersonal(DelegadoErroresImportacion de)
|
||||
@@ -70,11 +75,15 @@ namespace bdGrupoSanchoToro.Importaciones
|
||||
string Fichh = "/var/tecnosis/DATAXML/HISTORICO/" + Fichero + ".DATA";
|
||||
var sftp = ConfiguraFTPHP(bd);
|
||||
var st = new MemoryStream();
|
||||
var std = new MemoryStream();
|
||||
if (tsFluentFTP.ftp.ExisteFichero(Fich, sftp))
|
||||
{
|
||||
tsFluentFTP.ftp.DescargaFichero(Fich, st, sftp);
|
||||
st.Seek(0, 0);
|
||||
tsUtilidades.Ficheros.EliminaCaracteresInvalidosXML(st, std);
|
||||
std.Seek(0, 0);
|
||||
// tsFluentFTP.ftp.RenombraFichero(Fich,Fichh, sftp);
|
||||
return st.ToArray();
|
||||
return std.ToArray();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user