10/02/2021 KLB

git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C534
This commit is contained in:
kledezma 2021-02-10 23:17:05 +00:00
parent a08519451c
commit 1664a4bf97
4 changed files with 24 additions and 25 deletions

View file

@ -965,12 +965,12 @@ public partial class Forms_Trans_frwCartaSolicitud : General
}
}
//else
//{
// { ClientScript.RegisterStartupScript(this.GetType(), "Error", "<script>javascript: MensajeInformativo('No existe el documento por favor verifique.');</script>"); }
else
{
{ ClientScript.RegisterStartupScript(this.GetType(), "Error", "<script>javascript: MensajeInformativo('No existe el documento por favor verifique.');</script>"); }
//}
}
//// To copy a file to another location and
//// overwrite the destination file if it already exists.
@ -2179,17 +2179,16 @@ public partial class Forms_Trans_frwCartaSolicitud : General
//obtener la constancia y ponerla en la carpeta compartida para el envio de correo
char delimitador = '-';
string[] arrayNombre = row["NOMBREDOCUMENTOCARTA"].ToString().Split(delimitador);
//strResultado = oDoc.Consultar_Documento(arrayNombre[1].ToString() + "-" + arrayNombre[2].ToString() + "-" + arrayNombre[3].ToString() + "|Constancia", row["NOMBREDOCUMENTOCARTA"].ToString(), row["NOMBREDOCUMENTOCARTA"].ToString() + ".pdf");
strResultado = oDoc.Consultar_Documento(arrayNombre[1].ToString() + "-" + arrayNombre[2].ToString() + "-" + arrayNombre[3].ToString() + "|Constancia", row["NOMBREDOCUMENTOCARTA"].ToString(), row["NOMBREDOCUMENTOCARTA"].ToString() + ".pdf");
string Archivo = row["NOMBREDOCUMENTOCARTA"].ToString() + ".pdf";
string strAlmacenado = "";
if (File.Exists(@"C:\fileproyectos\FileDesarrollo\WCF-PDF\" + Archivo))
if (File.Exists(pdfPath))
{
strAlmacenado = "EXISTE";
strResultado = "EXISTE";
}
//strResultado = oDoc.Visor_Documento(arrayNombre[1].ToString() + "-" + arrayNombre[2].ToString() + "-" + arrayNombre[3].ToString() + "|" + "Constancia", lblNumSolicitud.Text.Trim(), pdfPath, row["NOMBREDOCUMENTOCARTA"].ToString() + ".pdf");
strResultado = oDoc.Visor_Documento(arrayNombre[1].ToString() + "-" + arrayNombre[2].ToString() + "-" + arrayNombre[3].ToString() + "|" + "Constancia", lblNumSolicitud.Text.Trim(), pdfPath, row["NOMBREDOCUMENTOCARTA"].ToString() + ".pdf");
if (strResultado == string.Empty || strResultado == "No existe")
{

View file

@ -2142,14 +2142,14 @@ public partial class Forms_Trans_frwCriterioAS : General
//targetURL = "'../../DocumentosPDF/" + strNumSolicitudTMP + "/" + strNombreCarta + "-AP.pdf'";
if (System.IO.File.Exists(pdfPath))
{
byte[] bDoc = System.IO.File.ReadAllBytes(pdfPath);
//se carga el archivo y el registro a vision 2020
string strResultado = oDoc.Archivar_Documento(strNombre.ToString().Trim() + "|" + "Criterio técnico AS", strNombreCarta.ToString().Replace(" ", "_") + "-AS.pdf", bDoc);
if (strResultado == string.Empty)
{
//byte[] bDoc = System.IO.File.ReadAllBytes(pdfPath);
////se carga el archivo y el registro a vision 2020
//string strResultado = oDoc.Archivar_Documento(strNombre.ToString().Trim() + "|" + "Criterio técnico AS", strNombreCarta.ToString().Replace(" ", "_") + "-AS.pdf", bDoc);
//if (strResultado == string.Empty)
//{
//File.Delete(pdfPath);
}
// //File.Delete(pdfPath);
//}

View file

@ -1605,14 +1605,14 @@ public partial class Forms_Trans_frwCriterioPA : General
//targetURL = "'../../DocumentosPDF/" + strNumSolicitudTMP + "/" + strNombreCarta + "-AP.pdf'";
if (System.IO.File.Exists(pdfPath))
{
byte[] bDoc = System.IO.File.ReadAllBytes(pdfPath);
//se carga el archivo y el registro a vision 2020
string strResultado = oDoc.Archivar_Documento(strNombre.ToString().Trim() + "|" + "Criterio técnico AP", strNombreCarta.ToString().Replace(" ", "_") + "-AP.pdf", bDoc);
if (strResultado == string.Empty)
{
//byte[] bDoc = System.IO.File.ReadAllBytes(pdfPath);
////se carga el archivo y el registro a vision 2020
//string strResultado = oDoc.Archivar_Documento(strNombre.ToString().Trim() + "|" + "Criterio técnico AP", strNombreCarta.ToString().Replace(" ", "_") + "-AP.pdf", bDoc);
//if (strResultado == string.Empty)
//{
//File.Delete(pdfPath);
}
// //File.Delete(pdfPath);
//}

View file

@ -30,8 +30,8 @@
<add key="Sistema" value="SISTEMA DE ADMINISTRACION DE SEGURIDAD"/>
<add key="AMBIENTE" value="AMBIENTE DE DESARROLLO"/>
<add key="LLAVEAPCR" value="7007B685-6BA9-4014-BE40-C486F61FEAE6"/>
<add key="DocumentosMachote" value="\\fileproyectos\FileDesarrollo\SIGDD\DocumentosMachote"/>
<add key="DocumentosODT" value="\\fileproyectos\FileDesarrollo\SIGDD\DocumentosODT"/>
<add key="DocumentosMachote" value="C:\Raiz2\SIGDD\DocumentosMachote"/>
<add key="DocumentosODT" value="C:\Raiz2\SIGDD\DocumentosODT"/>
<add key="DocumentosPDF" value="C:\Raiz2\SIGDD\DocumentosPDF"/>
<add key="AspPDF_RegKey" value="GYlbhSTuhBzuSEXhSunif/sB0qIibkxtJd/XgRDVhDEKPMKsIFKCREnORVOu1TlBySzUm0d1PTA/"/>
<add key="Imagenes" value="\\fileproyectos\FileDesarrollo\SIGDD\Images\Logos\logoAyA.png"/>