update struttura email richiesta da Maurizio (oggetto + commessa) e messo in web.config modificabile

This commit is contained in:
Samuele Locatelli
2013-03-06 14:47:55 +01:00
parent 57dc5fe358
commit ab2b318dcd
14 changed files with 64 additions and 18 deletions
+8 -1
View File
@@ -31,7 +31,7 @@
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="128" />
<add key="minRev" value="129" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
@@ -55,6 +55,13 @@
<add key="MaxRowToDisplay" value="20" />
<!--gestione modalità update richiesta-->
<add key="instantUpdate" value="true" />
<!--conf stringhe email-->
<add key="mailSubject" value="{0}, prot. num {1}"/>
<add key="mailBody01" value="Villa D'Almè, {1:dd/MM/yyyy}{0}"/>
<add key="mailBody02" value="{1} - {2}{0}"/>
<add key="mailBody03" value="Prot. N.: {1}{0}{0}{0}{0}"/>
<add key="mailBody04" value="Distinti Saluti.{0}{1}{0}{0}ETS S.p.A.{0}---------------------------------{0}Via Mazzi, 32{0}24018 Villa D'Almè{0}Bergamo{0}{0}"/>
<add key="mailBody05" value="Trasmesso da:{0}{1}"/>
<!--area conf dataset classi esterne-->
<add key="ETS_WSConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_WS;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="ETS_AnagraficaConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" />
+12 -5
View File
@@ -415,9 +415,6 @@ namespace ETS_WS
// scrivo nuovo testo!
StreamWriter sw = file.CreateText();
sw.Write(contenutoEmail);
//StreamWriter sw = file.AppendText();
//sw.Write(Environment.NewLine);
//sw.Write("X-Unsent: 1");
sw.Flush();
return file.Name;
}
@@ -795,8 +792,18 @@ namespace ETS_WS
{
destinatario = mittente;
}
string subject = string.Format("{0}, prot. num {1}", docsData.oggetto, NumProt);
string body = string.Format("Villa D'Almè, {1:dd/MM/yyyy}{0}Rif.Comm. N.: {2}{0}Prot. N.: {3}{0}{0}{0}{0}Distinti Saluti.{0}{4}{0}{0}ETS S.p.a.{0}Via Mazzi, 32 - 24018 Villa D'Almè (BG){0}Trasmesso da:{0}{5}", Environment.NewLine, docsData.dataDoc, docsData.commessa, NumProt, redattore, mittente);
string subject = string.Format(utils.obj.confReadString("mailSubject"), docsData.oggetto, NumProt);
string body = "";
//body += string.Format("Villa D'Almè, {1:dd/MM/yyyy}{0}", Environment.NewLine, docsData.dataDoc);
//body += string.Format("{1} - {2}{0}", Environment.NewLine, docsData.commessa, docsData.oggetto);
//body += string.Format("Prot. N.: {1}{0}{0}{0}{0}", Environment.NewLine, NumProt);
//body += string.Format("Distinti Saluti.{0}{1}{0}{0}ETS S.p.A.{0}---------------------------------{0}Via Mazzi, 32{0}24018 Villa D'Almè{0}Bergamo{0}{0}", Environment.NewLine, redattore);
//body += string.Format("Trasmesso da:{0}{1}", Environment.NewLine, mittente);
body += string.Format(utils.obj.confReadString("mailBody01"), Environment.NewLine, docsData.dataDoc);
body += string.Format(utils.obj.confReadString("mailBody02"), Environment.NewLine, docsData.commessa, docsData.oggetto);
body += string.Format(utils.obj.confReadString("mailBody03"), Environment.NewLine, NumProt);
body += string.Format(utils.obj.confReadString("mailBody04"), Environment.NewLine, redattore);
body += string.Format(utils.obj.confReadString("mailBody05"), Environment.NewLine, mittente);
string newFileName = WebShipUtils.CreaEml(mittente, destinatario, subject, body, null, HttpContext.Current.Server.MapPath(pathDest));
// sostituisco file appena creato con quello nuovo
fileMover.obj.muoviFile(pathDest, pathDest, newFileName, WebShipUtils.nomeFileFullFromIdxFile(idxFile), true);
Binary file not shown.
Binary file not shown.
@@ -5,6 +5,7 @@
-->
<configuration>
<system.web>
<customErrors mode="Off" />
<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
@@ -30,7 +31,7 @@
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="128" />
<add key="minRev" value="129" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
@@ -46,14 +47,21 @@
<!--update pagina-->
<add key="intUpdatePagina_ms" value="120000" />
<!--gestione trim caratteri-->
<add key="maxFullPathLenght" value="240"/>
<add key="maxPathLenght" value="220"/>
<add key="maxFullPathLenght" value="220"/>
<add key="maxPathLenght" value="200"/>
<add key="separatoreTrim" value="..."/>
<!--config x WebServices autocompletamento-->
<add key="MinCharAutocomplete" value="2" />
<add key="MaxRowToDisplay" value="20" />
<!--gestione modalità update richiesta-->
<add key="instantUpdate" value="true" />
<!--conf stringhe email-->
<add key="mailSubject" value="{0}, prot. num {1}"/>
<add key="mailBody01" value="Villa D'Almè, {1:dd/MM/yyyy}{0}"/>
<add key="mailBody02" value="{1} - {2}{0}"/>
<add key="mailBody03" value="Prot. N.: {1}{0}{0}{0}{0}"/>
<add key="mailBody04" value="Distinti Saluti.{0}{1}{0}{0}ETS S.p.A.{0}---------------------------------{0}Via Mazzi, 32{0}24018 Villa D'Almè{0}Bergamo{0}{0}"/>
<add key="mailBody05" value="Trasmesso da:{0}{1}"/>
<!--area conf dataset classi esterne-->
<add key="ETS_WSConnectionString" value="Data Source=localhost;Initial Catalog=ETS_WS;Persist Security Info=True;User ID=steamware;Password=viadante16" />
<add key="ETS_AnagraficaConnectionString" value="Data Source=localhost;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=steamware;Password=viadante16" />
@@ -5,6 +5,7 @@
-->
<configuration>
<system.web>
<customErrors mode="Off" />
<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
@@ -30,7 +31,7 @@
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="128" />
<add key="minRev" value="129" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
@@ -46,14 +47,21 @@
<!--update pagina-->
<add key="intUpdatePagina_ms" value="120000" />
<!--gestione trim caratteri-->
<add key="maxFullPathLenght" value="240"/>
<add key="maxPathLenght" value="220"/>
<add key="maxFullPathLenght" value="220"/>
<add key="maxPathLenght" value="200"/>
<add key="separatoreTrim" value="..."/>
<!--config x WebServices autocompletamento-->
<add key="MinCharAutocomplete" value="2" />
<add key="MaxRowToDisplay" value="20" />
<!--gestione modalità update richiesta-->
<add key="instantUpdate" value="true" />
<!--conf stringhe email-->
<add key="mailSubject" value="{0}, prot. num {1}"/>
<add key="mailBody01" value="Villa D'Almè, {1:dd/MM/yyyy}{0}"/>
<add key="mailBody02" value="{1} - {2}{0}"/>
<add key="mailBody03" value="Prot. N.: {1}{0}{0}{0}{0}"/>
<add key="mailBody04" value="Distinti Saluti.{0}{1}{0}{0}ETS S.p.A.{0}---------------------------------{0}Via Mazzi, 32{0}24018 Villa D'Almè{0}Bergamo{0}{0}"/>
<add key="mailBody05" value="Trasmesso da:{0}{1}"/>
<!--area conf dataset classi esterne-->
<add key="ETS_WSConnectionString" value="Data Source=localhost;Initial Catalog=ETS_WS;Persist Security Info=True;User ID=steamware;Password=viadante16" />
<add key="ETS_AnagraficaConnectionString" value="Data Source=localhost;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=steamware;Password=viadante16" />
Binary file not shown.
Binary file not shown.
@@ -5,6 +5,7 @@
-->
<configuration>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
@@ -30,7 +31,7 @@
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="128" />
<add key="minRev" value="129" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
@@ -46,14 +47,21 @@
<!--update pagina-->
<add key="intUpdatePagina_ms" value="120000" />
<!--gestione trim caratteri-->
<add key ="maxFullPathLenght" value="240"/>
<add key ="maxPathLenght" value="220"/>
<add key ="maxFullPathLenght" value="220"/>
<add key ="maxPathLenght" value="200"/>
<add key ="separatoreTrim" value="..."/>
<!--config x WebServices autocompletamento-->
<add key="MinCharAutocomplete" value="2" />
<add key="MaxRowToDisplay" value="20" />
<!--gestione modalità update richiesta-->
<add key="instantUpdate" value="true" />
<!--conf stringhe email-->
<add key="mailSubject" value="{0}, prot. num {1}"/>
<add key="mailBody01" value="Villa D'Almè, {1:dd/MM/yyyy}{0}"/>
<add key="mailBody02" value="{1} - {2}{0}"/>
<add key="mailBody03" value="Prot. N.: {1}{0}{0}{0}{0}"/>
<add key="mailBody04" value="Distinti Saluti.{0}{1}{0}{0}ETS S.p.A.{0}---------------------------------{0}Via Mazzi, 32{0}24018 Villa D'Almè{0}Bergamo{0}{0}"/>
<add key="mailBody05" value="Trasmesso da:{0}{1}"/>
<!--area conf dataset classi esterne-->
<add key="ETS_WSConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_WS;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="ETS_AnagraficaConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" />
@@ -5,6 +5,7 @@
-->
<configuration>
<system.web>
<customErrors mode="Off" />
<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
@@ -30,7 +31,7 @@
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="128" />
<add key="minRev" value="129" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
@@ -46,14 +47,21 @@
<!--update pagina-->
<add key="intUpdatePagina_ms" value="120000" />
<!--gestione trim caratteri-->
<add key="maxFullPathLenght" value="240"/>
<add key="maxPathLenght" value="220"/>
<add key="maxFullPathLenght" value="220"/>
<add key="maxPathLenght" value="200"/>
<add key="separatoreTrim" value="..."/>
<!--config x WebServices autocompletamento-->
<add key="MinCharAutocomplete" value="2" />
<add key="MaxRowToDisplay" value="20" />
<!--gestione modalità update richiesta-->
<add key="instantUpdate" value="true" />
<!--conf stringhe email-->
<add key="mailSubject" value="{0}, prot. num {1}"/>
<add key="mailBody01" value="Villa D'Almè, {1:dd/MM/yyyy}{0}"/>
<add key="mailBody02" value="{1} - {2}{0}"/>
<add key="mailBody03" value="Prot. N.: {1}{0}{0}{0}{0}"/>
<add key="mailBody04" value="Distinti Saluti.{0}{1}{0}{0}ETS S.p.A.{0}---------------------------------{0}Via Mazzi, 32{0}24018 Villa D'Almè{0}Bergamo{0}{0}"/>
<add key="mailBody05" value="Trasmesso da:{0}{1}"/>
<!--area conf dataset classi esterne-->
<add key="ETS_WSConnectionString" value="Data Source=localhost;Initial Catalog=ETS_WS;Persist Security Info=True;User ID=steamware;Password=viadante16" />
<add key="ETS_AnagraficaConnectionString" value="Data Source=localhost;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=steamware;Password=viadante16" />
View File
Binary file not shown.
Binary file not shown.