diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCartaSolicitud.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCartaSolicitud.aspx.cs
index bea3adb5c..d8bb2b56a 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCartaSolicitud.aspx.cs
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCartaSolicitud.aspx.cs
@@ -965,12 +965,12 @@ public partial class Forms_Trans_frwCartaSolicitud : General
}
}
- //else
- //{
- // { ClientScript.RegisterStartupScript(this.GetType(), "Error", ""); }
+ else
+ {
+ { ClientScript.RegisterStartupScript(this.GetType(), "Error", ""); }
- //}
+ }
//// 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")
{
diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx.cs
index 78d06d08d..994f5d745 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx.cs
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx.cs
@@ -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);
+ //}
diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx.cs
index ccca8a205..866fe469b 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx.cs
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx.cs
@@ -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);
+ //}
diff --git a/SIGPC/ProyectoSIGPC/Web.config b/SIGPC/ProyectoSIGPC/Web.config
index 787767cac..b2d822a76 100644
--- a/SIGPC/ProyectoSIGPC/Web.config
+++ b/SIGPC/ProyectoSIGPC/Web.config
@@ -30,8 +30,8 @@
-
-
+
+