diff --git a/ETS-WS/ETS-WS/bin/ETS-DIP.dll b/ETS-WS/ETS-WS/bin/ETS-DIP.dll index cbdcbce..e81979e 100644 Binary files a/ETS-WS/ETS-WS/bin/ETS-DIP.dll and b/ETS-WS/ETS-WS/bin/ETS-DIP.dll differ diff --git a/ETS-WS/ETS-WS/bin/ETS_Data.dll b/ETS-WS/ETS-WS/bin/ETS_Data.dll index bf33895..a9822d3 100644 Binary files a/ETS-WS/ETS-WS/bin/ETS_Data.dll and b/ETS-WS/ETS-WS/bin/ETS_Data.dll differ diff --git a/ETS-WS/ETS-WS/getDocByProto.aspx b/ETS-WS/ETS-WS/getDocByProto.aspx index f2c84ac..c4e0e56 100644 --- a/ETS-WS/ETS-WS/getDocByProto.aspx +++ b/ETS-WS/ETS-WS/getDocByProto.aspx @@ -2,12 +2,14 @@
-
Gestione scarico documenti da DIP
+
Recupero protocolli DIP
+
+ +
Restituisce in download un file dato parametro protocollo in URL, formato
http://indirizzo_server/getDocByProto.aspx?nrProto=12345-9999
Attenzione al formato OBBLIGATORIO numero-anno!!!
e restituisce redirect al documento
http://indirizzo_server/ArchivioDocs/path_completo/nomeDocumento.xyz
-
diff --git a/ETS-WS/ETS-WS/getDocByProto.aspx.cs b/ETS-WS/ETS-WS/getDocByProto.aspx.cs index 84cc821..ccea253 100644 --- a/ETS-WS/ETS-WS/getDocByProto.aspx.cs +++ b/ETS-WS/ETS-WS/getDocByProto.aspx.cs @@ -34,7 +34,7 @@ namespace ETS_DIP { // se non trovo faccio redirect a file errore DocTemplates/NotFound.txt //Response.Redirect("~/DocTemplates/NotFound.txt"); - lblNumProto.Text = string.Format("Errore! non è stato possibile trovare il doc {0}", nrProto); + lblNumProto.Text = string.Format("Errore! non è stato possibile trovare il doc con nr. proto {0}", nrProto); } // cerco il path... string docPath = DataProxy_ETS_WS.DP.fullPathDoc(numero, anno); @@ -42,14 +42,13 @@ namespace ETS_DIP if (docPath != "") { //lblNumProto.Text = string.Format("Trovato! {0}-{1} --> {2}", numero, anno, docPath); - //Response.Redirect(docPath); - lblNumProto.Text = string.Format("Errore! non è stato possibile trovare il doc {0}", nrProto); + Response.Redirect(docPath); } else { // se non trovo faccio redirect a file errore DocTemplates/NotFound.txt //Response.Redirect("~/DocTemplates/NotFound.txt"); - lblNumProto.Text = string.Format("Errore! non è stato possibile trovare il doc {0}", nrProto); + lblNumProto.Text = string.Format("Errore! non è stato possibile trovare il doc con nr. proto {0}", nrProto); } } else diff --git a/ETS_Data/bin/Release/ETS_Data.dll b/ETS_Data/bin/Release/ETS_Data.dll index bf33895..a9822d3 100644 Binary files a/ETS_Data/bin/Release/ETS_Data.dll and b/ETS_Data/bin/Release/ETS_Data.dll differ