Fix nuovi template files!
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -726,7 +726,7 @@
|
||||
<WebProjectProperties>
|
||||
<UseIIS>False</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>55180</DevelopmentServerPort>
|
||||
<DevelopmentServerPort>61133</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>
|
||||
</IISUrl>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<add key="appName" value="ETS-WS" />
|
||||
<add key="SiteName" value="ETS" />
|
||||
<add key="mainRev" value="1.0" />
|
||||
<add key="minRev" value="106" />
|
||||
<add key="minRev" value="107" />
|
||||
<add key="copyRight" value="SteamWare, ETS © 2012" />
|
||||
<add key="tempUplDir" value="~/TempUploads" />
|
||||
<add key="archiveDir" value="~/ArchivioDocs" />
|
||||
@@ -39,7 +39,6 @@
|
||||
<add key="srcPageSize" value="15" />
|
||||
<!--update pagina-->
|
||||
<add key="intUpdatePagina_ms" value="120000" />
|
||||
<add key="countDownUploadFile" value="2"/>
|
||||
<!--config x WebServices autocompletamento-->
|
||||
<add key="MinCharAutocomplete" value="2" />
|
||||
<add key="MaxRowToDisplay" value="15" />
|
||||
|
||||
@@ -658,13 +658,13 @@ namespace ETS_WS
|
||||
if (nomeTemplate.IndexOf("docx") >= 0)
|
||||
{
|
||||
// prendo il nuovo file generato e sostituisco parte del nome con il codice protocollo // link: msdn.microsoft.com/en-us/library/bb508261.aspx
|
||||
officeXmlMan.replaceDocxText(fullPath, "{{Protocollo}}", protocollo);
|
||||
officeXmlMan.replaceDocxText(fullPath, "{{DataDoc}}", docsData.dataDoc.ToShortDateString()); //!!!
|
||||
officeXmlMan.replaceDocxText(fullPath, "{{Anno}}", docsData.dataDoc.Year.ToString());
|
||||
officeXmlMan.replaceDocxText(fullPath, "{{Commessa}}", commessa);
|
||||
officeXmlMan.replaceDocxText(fullPath, "{{Oggetto}}", oggetto);
|
||||
officeXmlMan.replaceDocxText(fullPath, "{{Fonte}}", fonte); //!!!
|
||||
officeXmlMan.replaceDocxText(fullPath, "{{Redattore}}", utils.obj.currUserCognomeNome);
|
||||
officeXmlMan.replaceDocxText(fullPath, "Protocollo", protocollo);
|
||||
officeXmlMan.replaceDocxText(fullPath, "DataDoc", docsData.dataDoc.ToShortDateString());
|
||||
officeXmlMan.replaceDocxText(fullPath, "Anno", docsData.dataDoc.Year.ToString());
|
||||
officeXmlMan.replaceDocxText(fullPath, "Commessa", commessa);
|
||||
officeXmlMan.replaceDocxText(fullPath, "Oggetto", oggetto);
|
||||
officeXmlMan.replaceDocxText(fullPath, "Fonte", fonte);
|
||||
officeXmlMan.replaceDocxText(fullPath, "Redattore", utils.obj.currUserCognomeNome);
|
||||
}
|
||||
else if (nomeTemplate.IndexOf("eml") >= 0)
|
||||
{
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace ETS_WS.WebUserControls
|
||||
// nome standard con commessa...
|
||||
string nomeFile = "ETS-Lettera.docx";
|
||||
// controllo se NON c'è una commessa/progetto...
|
||||
if (WebShipUtils.mng.currMetaData.commessa.IndexOf("0000") < 0)
|
||||
if (WebShipUtils.mng.currMetaData.commessa.IndexOf("0000") >= 0)
|
||||
{
|
||||
nomeFile = "ETS-Lettera_noPrj.docx";
|
||||
}
|
||||
@@ -168,7 +168,7 @@ namespace ETS_WS.WebUserControls
|
||||
// nome standard con commessa...
|
||||
string nomeFile = "ETS-Fax.docx";
|
||||
// controllo se NON c'è una commessa/progetto...
|
||||
if (WebShipUtils.mng.currMetaData.commessa.IndexOf("0000") < 0)
|
||||
if (WebShipUtils.mng.currMetaData.commessa.IndexOf("0000") >= 0)
|
||||
{
|
||||
nomeFile = "ETS-Fax_noPrj.docx";
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user