From 9346810ec1b99533d0f918efa9939f4e73e44663 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 19 Mar 2020 11:56:09 +0100 Subject: [PATCH] Ok print SL e FIN!!! --- MP-MAG/SMART/prtFiniti.aspx | 2 +- MP-MAG/SMART/prtSemilav.aspx | 2 +- MP-MAG/WebUserControls/cmp_LottiIn.ascx | 4 ++-- MP-MAG/WebUserControls/cmp_LottiIn.ascx.cs | 9 ++++++++- MP-MAG/WebUserControls/cmp_LottiIn.ascx.designer.cs | 8 ++++---- MP-MAG/WebUserControls/cmp_prtFiniti.ascx.cs | 2 ++ MP-MAG/WebUserControls/cmp_prtSemilav.ascx.cs | 2 ++ 7 files changed, 20 insertions(+), 9 deletions(-) diff --git a/MP-MAG/SMART/prtFiniti.aspx b/MP-MAG/SMART/prtFiniti.aspx index a12f72c..e5f3eef 100644 --- a/MP-MAG/SMART/prtFiniti.aspx +++ b/MP-MAG/SMART/prtFiniti.aspx @@ -3,5 +3,5 @@ <%@ Register Src="~/WebUserControls/cmp_prtFiniti.ascx" TagPrefix="uc1" TagName="cmp_prtFiniti" %> - + diff --git a/MP-MAG/SMART/prtSemilav.aspx b/MP-MAG/SMART/prtSemilav.aspx index 749efd4..59dae97 100644 --- a/MP-MAG/SMART/prtSemilav.aspx +++ b/MP-MAG/SMART/prtSemilav.aspx @@ -3,5 +3,5 @@ <%@ Register Src="~/WebUserControls/cmp_prtSemilav.ascx" TagPrefix="uc1" TagName="cmp_prtSemilav" %> - + diff --git a/MP-MAG/WebUserControls/cmp_LottiIn.ascx b/MP-MAG/WebUserControls/cmp_LottiIn.ascx index b483b44..bf6644f 100644 --- a/MP-MAG/WebUserControls/cmp_LottiIn.ascx +++ b/MP-MAG/WebUserControls/cmp_LottiIn.ascx @@ -12,7 +12,7 @@
- + @@ -85,7 +85,7 @@ - + diff --git a/MP-MAG/WebUserControls/cmp_LottiIn.ascx.cs b/MP-MAG/WebUserControls/cmp_LottiIn.ascx.cs index da735f8..7e80aec 100644 --- a/MP-MAG/WebUserControls/cmp_LottiIn.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_LottiIn.ascx.cs @@ -40,7 +40,7 @@ namespace MP_MAG.WebUserControls string eliString = $"#{string.Join("#", value)}#"; hfHashList.Value = eliString; // update grView... - grViewLottoIn.DataBind(); + grView.DataBind(); } } /// @@ -70,6 +70,13 @@ namespace MP_MAG.WebUserControls protected void Page_Load(object sender, EventArgs e) { + } + /// + /// Update grid view + /// + public void doUpdate() + { + grView.DataBind(); } /// /// reset sel lottoIn diff --git a/MP-MAG/WebUserControls/cmp_LottiIn.ascx.designer.cs b/MP-MAG/WebUserControls/cmp_LottiIn.ascx.designer.cs index 29154e2..cd35c92 100644 --- a/MP-MAG/WebUserControls/cmp_LottiIn.ascx.designer.cs +++ b/MP-MAG/WebUserControls/cmp_LottiIn.ascx.designer.cs @@ -24,22 +24,22 @@ namespace MP_MAG.WebUserControls protected global::System.Web.UI.WebControls.LinkButton lbtResetLottoIn; /// - /// Controllo grViewLottoIn. + /// Controllo grView. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.GridView grViewLottoIn; + protected global::System.Web.UI.WebControls.GridView grView; /// - /// Controllo odsLottiIn. + /// Controllo ods. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.ObjectDataSource odsLottiIn; + protected global::System.Web.UI.WebControls.ObjectDataSource ods; /// /// Controllo hfHashList. diff --git a/MP-MAG/WebUserControls/cmp_prtFiniti.ascx.cs b/MP-MAG/WebUserControls/cmp_prtFiniti.ascx.cs index eaf5299..6225e75 100644 --- a/MP-MAG/WebUserControls/cmp_prtFiniti.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_prtFiniti.ascx.cs @@ -216,6 +216,8 @@ namespace MP_MAG.WebUserControls } // nascondo creazione... showCreaStampa(false, false); + cmp_LottiIn.doUpdate(); + cmp_LottiOut.doUpdate(); } private void Cmp_creaLottoOUT_eh_doRefresh(object sender, EventArgs e) diff --git a/MP-MAG/WebUserControls/cmp_prtSemilav.ascx.cs b/MP-MAG/WebUserControls/cmp_prtSemilav.ascx.cs index 0ca7e4b..fa4d5f5 100644 --- a/MP-MAG/WebUserControls/cmp_prtSemilav.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_prtSemilav.ascx.cs @@ -214,6 +214,8 @@ namespace MP_MAG.WebUserControls } // nascondo creazione... showCreaStampa(false, false); + cmp_LottiIn.doUpdate(); + cmp_LottiOut.doUpdate(); } private void Cmp_creaLottoOUT_eh_doRefresh(object sender, EventArgs e)