inserito possibilità resync a partire da lastNum impostato (x ricaricare vecchi...)
This commit is contained in:
@@ -10,7 +10,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<File Include="bin/DataUploader.dll">
|
||||
<publishTime>02/03/2016 15:59:04</publishTime>
|
||||
<publishTime>02/05/2016 15:01:12</publishTime>
|
||||
</File>
|
||||
<File Include="bin/NLog.config">
|
||||
<publishTime>09/03/2015 11:38:11</publishTime>
|
||||
@@ -43,16 +43,16 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<publishTime>09/03/2015 11:38:11</publishTime>
|
||||
</File>
|
||||
<File Include="PrecompiledApp.config">
|
||||
<publishTime>02/03/2016 15:59:05</publishTime>
|
||||
<publishTime>02/05/2016 15:01:13</publishTime>
|
||||
</File>
|
||||
<File Include="ResyncLastDocs.aspx">
|
||||
<publishTime>02/03/2016 15:13:36</publishTime>
|
||||
<publishTime>02/03/2016 16:38:11</publishTime>
|
||||
</File>
|
||||
<File Include="SyncDoc.aspx">
|
||||
<publishTime>09/18/2015 10:37:41</publishTime>
|
||||
</File>
|
||||
<File Include="Web.config">
|
||||
<publishTime>02/03/2016 15:33:45</publishTime>
|
||||
<publishTime>02/05/2016 14:25:04</publishTime>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -46,15 +46,29 @@ namespace DataUploader
|
||||
{ }
|
||||
// recupero ultimo numero doc caricato...
|
||||
int lastNum = 0;
|
||||
try
|
||||
// provo a leggerlo da richiesta...
|
||||
if (Request.QueryString["lastNum"] != "")
|
||||
{
|
||||
var content = client.DownloadString(ConfigurationManager.AppSettings["remoteDocUrl"]); // http://webscr.steamware.net/Rigamonti/Upload/Document
|
||||
// converto a int!
|
||||
lastNum = Convert.ToInt32(content);
|
||||
logger.Info("Recuperato last num: {0}", lastNum);
|
||||
try
|
||||
{
|
||||
lastNum = Convert.ToInt32(Request.QueryString["lastNum"]);
|
||||
logger.Info("Imposto last num: {0}", lastNum);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
// se nON HO lastNum lo richiedo in remoto
|
||||
if (lastNum == 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
var content = client.DownloadString(ConfigurationManager.AppSettings["remoteDocUrl"]); // http://webscr.steamware.net/Rigamonti/Upload/Document
|
||||
lastNum = Convert.ToInt32(content); // converto a int!
|
||||
logger.Info("Recuperato last num: {0}", lastNum);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// recupero i dati da caricare...
|
||||
string[] urlsUpdate = GestData.proc.reloadLastDocs(lastNum, Num2Reload);
|
||||
if (demoMode)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -12,7 +12,7 @@
|
||||
<!--parametri base-->
|
||||
<add key="intUpdatePagina_ms" value="240000" />
|
||||
<add key="zonaDef" value="Z00" />
|
||||
<add key="numGgDef" value="10" />
|
||||
<add key="numGgDef" value="11" />
|
||||
<add key="minCookieSquadra" value="5" />
|
||||
<add key="svuotaMatrOp" value="true" />
|
||||
<add key="svuotaMatrOpMove" value="true" />
|
||||
|
||||
Reference in New Issue
Block a user