fix errore download file da DIP
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -2,12 +2,14 @@
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<div style="font-family: Helvetica, Arial, 'DejaVu Sans', 'Liberation Sans', Freesans, sans-serif; font-size: 0.9em; padding: 4px; height: 100%;">
|
||||
<div style="font-size: 2em; height: 1.6em; font-weight: bold;">Gestione scarico documenti da DIP</div>
|
||||
<div style="font-size: 2em; height: 1.6em; font-weight: bold;">Recupero protocolli DIP</div>
|
||||
<div style="color: #333; height: 3em; vertical-align: middle;">
|
||||
<asp:Label ID="lblNumProto" runat="server" Text="..." ForeColor="Red" Font-Size="1.2em" />
|
||||
</div>
|
||||
<div style="color: #333; height: 1.1em;">Restituisce in download un file dato parametro protocollo in URL, formato</div>
|
||||
<div style="color: #0094ff; height: 1.1em;">http://indirizzo_server/getDocByProto.aspx?nrProto=12345-9999</div>
|
||||
<div style="color: #777; font-size: 0.8em; font-style: italic; height: 1.6em;">Attenzione al formato OBBLIGATORIO numero-anno!!!</div>
|
||||
<div style="color: #333; height: 1.1em;">e restituisce redirect al documento</div>
|
||||
<div style="color: #0094ff; height: 1.6em;">http://indirizzo_server/ArchivioDocs/path_completo/nomeDocumento.xyz</div>
|
||||
<asp:Label ID="lblNumProto" runat="server" Text="..." />
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user