Reload reso visibile SOLO x user START (PC)

This commit is contained in:
Samuele E. Locatelli
2018-12-03 21:03:29 +01:00
parent 2fab92aaba
commit 95591ba7db
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
<div class="my-5">
&nbsp;
</div>
<div class="p-1 row table-secondary form-group fixed-bottom small" runat="server" visible="false">
<div class="p-1 row table-secondary form-group fixed-bottom small" runat="server" id="divReload">
<div class="col-4">
<label for="txtCacheSec">Validità cache (sec)</label>
<asp:TextBox runat="server" ID="txtCacheSec" CssClass="form-control" AutoPostBack="True" OnTextChanged="txtCacheSec_TextChanged">5</asp:TextBox>
+2 -7
View File
@@ -98,18 +98,13 @@ namespace C_TRACK
Stopwatch stopwatch = new Stopwatch();
// Avvio...
stopwatch.Start();
traduciObj();
#if false
// registro che i valori in cache sono scaduti...
lastDataRefresh = DateTime.Now.AddDays(-1);
#endif
traduciObj();
numDD = memLayer.ML.CRI("numDD");
cacheValSec = memLayer.ML.CRI("cacheValSec");
// registro
stopwatch.Stop();
lastUpdDuration = stopwatch.Elapsed;
divReload.Visible = devicesAuthProxy.stObj.userHasRight("CT_userStart");
}
checkRequisiti();
// effettuo load valori...
+9
View File
@@ -66,6 +66,15 @@ namespace C_TRACK {
/// </remarks>
protected global::C_TRACK.WebUserControls.mod_taskRec mod_taskRec;
/// <summary>
/// Controllo divReload.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divReload;
/// <summary>
/// Controllo txtCacheSec.
/// </summary>