Fix reload continuo pagina batch
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@
|
||||
</head>
|
||||
<body class="pt-0">
|
||||
<form runat="server">
|
||||
<asp:ScriptManager runat="server">
|
||||
<asp:ScriptManager runat="server" ID="NkcScriptMan">
|
||||
<Scripts>
|
||||
<%--To learn more about bundling scripts in ScriptManager see https://go.microsoft.com/fwlink/?LinkID=301884 --%>
|
||||
<%--Framework Scripts--%>
|
||||
|
||||
Generated
+9
@@ -14,6 +14,15 @@ namespace NKC_WF
|
||||
public partial class SiteMaster
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// NkcScriptMan control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager NkcScriptMan;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_menuTop control.
|
||||
/// </summary>
|
||||
|
||||
Generated
+11
-11
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace NKC_WF
|
||||
@@ -15,20 +15,20 @@ namespace NKC_WF
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo uplBody.
|
||||
/// uplBody control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel uplBody;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo MainContent.
|
||||
/// MainContent control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,12 @@
|
||||
<asp:HiddenField runat="server" ID="hfLastSelRow" />
|
||||
<asp:HiddenField runat="server" ID="hfCreatePng" />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="updPanelGrView" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-12 px-0">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
@@ -48,10 +54,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="updPanelGrView" runat="server">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-12 textCondens px-0">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="BatchID" DataSourceID="ods" CssClass="table table-sm table-striped" AllowSorting="True" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnPageIndexChanged="grView_PageIndexChanged">
|
||||
|
||||
@@ -452,16 +452,11 @@ namespace NKC_WF.WebUserControls
|
||||
|
||||
private void fixDetails()
|
||||
{
|
||||
//divDetail.Visible = false;
|
||||
//updPanelDetail.Update();
|
||||
lastSelRow = currSelRow;
|
||||
divDetail.Visible = currSelRow >= 0;
|
||||
if (divDetail.Visible)
|
||||
{
|
||||
// recupero BatchId selezionato
|
||||
cmp_batchDetail.BatchId = 0;
|
||||
cmp_batchDetail.doUpdate();
|
||||
updPanelDetail.Update();
|
||||
cmp_batchDetail.BatchId = BatchIdSel;
|
||||
cmp_batchDetail.doUpdate();
|
||||
updPanelDetail.Update();
|
||||
@@ -470,13 +465,11 @@ namespace NKC_WF.WebUserControls
|
||||
|
||||
private void resetSelezione()
|
||||
{
|
||||
//updPanelDetail.Update();
|
||||
checkFixOds();
|
||||
grView.SelectedIndex = -1;
|
||||
lastSelRow = -1;
|
||||
grView.DataBind();
|
||||
divDetail.Visible = false;
|
||||
updPanelDetail.Visible = true;
|
||||
updPanelDetail.Update();
|
||||
raiseReset();
|
||||
}
|
||||
|
||||
+9
-9
@@ -59,6 +59,15 @@ namespace NKC_WF.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfCreatePng;
|
||||
|
||||
/// <summary>
|
||||
/// updPanelGrView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel updPanelGrView;
|
||||
|
||||
/// <summary>
|
||||
/// chkShowSplit control.
|
||||
/// </summary>
|
||||
@@ -86,15 +95,6 @@ namespace NKC_WF.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::NKC_WF.WebUserControls.cmp_numRow cmp_numRow;
|
||||
|
||||
/// <summary>
|
||||
/// updPanelGrView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel updPanelGrView;
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,31 +1,35 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_footer.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_footer" %>
|
||||
<footer class="fixed-bottom bg-dark text-light small textCondens p-1">
|
||||
<div class="container-flow px-1">
|
||||
<div class="row">
|
||||
<div class="col-8 text-left pr-0">
|
||||
<span class="d-none d-lg-inline">
|
||||
<asp:Label ID="lblDateTime" runat="server" Text="..." />
|
||||
| </span>
|
||||
<asp:Label ID="lblCodOperatore" runat="server" Text="-" />
|
||||
</div>
|
||||
<div class="col-4 text-right pl-0">
|
||||
<div class="d-flex flex-row-reverse">
|
||||
<div class="px-1">
|
||||
<asp:Label runat="server" ID="lblApp" Text="." />
|
||||
<asp:UpdatePanel runat="server" ID="upnlFooter" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-8 text-left pr-0">
|
||||
<span class="d-none d-lg-inline">
|
||||
<asp:Label ID="lblDateTime" runat="server" Text="..." />
|
||||
| </span>
|
||||
<asp:Label ID="lblCodOperatore" runat="server" Text="-" />
|
||||
</div>
|
||||
<div class="px-1">
|
||||
<asp:UpdateProgress ID="UpdateProgressDisplay" runat="server" DisplayAfter="10">
|
||||
<ProgressTemplate>
|
||||
<i class="fa fa-circle-o-notch fa-spin fa-fw text-primary" aria-hidden="true"></i>
|
||||
<i class="fa fa-circle-o-notch fa-spin fa-fw text-info" aria-hidden="true"></i>
|
||||
<i class="fa fa-circle-o-notch fa-spin fa-fw" aria-hidden="true"></i>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
<div class="col-4 text-right pl-0">
|
||||
<div class="d-flex flex-row-reverse">
|
||||
<div class="px-1">
|
||||
<asp:Label runat="server" ID="lblApp" Text="." />
|
||||
</div>
|
||||
<div class="px-1">
|
||||
<asp:UpdateProgress ID="UpdateProgressDisplay" runat="server" DisplayAfter="10">
|
||||
<ProgressTemplate>
|
||||
<i class="fa fa-circle-o-notch fa-spin fa-fw text-primary" aria-hidden="true"></i>
|
||||
<i class="fa fa-circle-o-notch fa-spin fa-fw text-info" aria-hidden="true"></i>
|
||||
<i class="fa fa-circle-o-notch fa-spin fa-fw" aria-hidden="true"></i>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<asp:Timer ID="Timer1" runat="server" Interval="60000" OnTick="Timer1_Tick">
|
||||
</asp:Timer>
|
||||
<asp:Timer ID="Timer1" runat="server" Interval="60000">
|
||||
</asp:Timer>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace NKC_WF.WebUserControls
|
||||
/// </summary>
|
||||
private void setTimer()
|
||||
{
|
||||
Timer1.Tick += Timer1_Tick;
|
||||
Timer1.Interval = memLayer.ML.confReadInt("intUpdatePagina_ms");
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,15 @@ namespace NKC_WF.WebUserControls
|
||||
public partial class cmp_footer
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// upnlFooter control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel upnlFooter;
|
||||
|
||||
/// <summary>
|
||||
/// lblDateTime control.
|
||||
/// </summary>
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
<div class="card-body py-1">
|
||||
<div class="row">
|
||||
<div class="col-12" runat="server" id="divBatchList">
|
||||
<uc1:cmp_batchList runat="server" ID="cmp_batchList" forceCreatePng="false"/>
|
||||
<uc1:cmp_batchList runat="server" ID="cmp_batchList" forceCreatePng="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
</asp:Content>
|
||||
|
||||
Reference in New Issue
Block a user