From 74a134043a6c8b752d459eb95457e9477c3f611f Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 8 Apr 2022 12:03:00 +0200 Subject: [PATCH] Refresh grafico comportamento selezione/dettaglio --- MP-MAG/WebUserControls/cmp_AnagCliFor.ascx | 14 +++++------ MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs | 25 ++++++++----------- MP-MAG/WebUserControls/cmp_destClienti.ascx | 10 ++++---- .../WebUserControls/cmp_destClienti.ascx.cs | 1 + MP-MAG/WebUserControls/cmp_jumper.ascx.cs | 2 +- 5 files changed, 24 insertions(+), 28 deletions(-) diff --git a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx index aed8c2bd..9c108dbe 100644 --- a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx +++ b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx @@ -21,7 +21,7 @@
- + @@ -44,7 +44,7 @@
- + @@ -52,7 +52,7 @@ - + @@ -100,8 +100,8 @@ - - + + @@ -152,8 +152,8 @@
-
-
+
+
diff --git a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs index 6d9e4d22..dfb83ba8 100644 --- a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs @@ -29,6 +29,8 @@ namespace MP_MAG.WebUserControls private void Cmp_numRow_eh_doRefresh(object sender, EventArgs e) { grView.PageSize = cmp_numRow.numRow; + grView.PageIndex = 0; + doReset(); } #endregion Private Methods @@ -58,12 +60,6 @@ namespace MP_MAG.WebUserControls grView.SelectedIndex = e.NewEditIndex; } - protected void grView_SelectedIndexChanging(object sender, System.Web.UI.WebControls.GridViewSelectEventArgs e) - { - cmp_destClienti.codCli = $"{grView.SelectedValue}"; - showDet = true; - } - /// /// Aggiunta nuovo record /// @@ -109,16 +105,15 @@ namespace MP_MAG.WebUserControls #endregion Public Methods - protected void grView_RowCreated(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e) + protected void grView_SelectedIndexChanged(object sender, EventArgs e) { - //// determino visibilità conollse in caso di selezione dettaglio - //for (int i = 7; i < 10; i++) - //{ - // e.Row.Cells[i].Visible = showDet; - //} - //e.Row.Cells[8].Visible = showDet; - //e.Row.Cells[9].Visible = showDet; - //e.Row.Cells[10].Visible = showDet; + showDet = true; + cmp_destClienti.codCli = $"{grView.SelectedValue}"; + } + + protected void grView_PageIndexChanged(object sender, EventArgs e) + { + doReset(); } } } \ No newline at end of file diff --git a/MP-MAG/WebUserControls/cmp_destClienti.ascx b/MP-MAG/WebUserControls/cmp_destClienti.ascx index ba3c8c89..26d25d45 100644 --- a/MP-MAG/WebUserControls/cmp_destClienti.ascx +++ b/MP-MAG/WebUserControls/cmp_destClienti.ascx @@ -7,14 +7,14 @@
- - - + <%----%> + + - + - + diff --git a/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs b/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs index d7af8c2e..462a8e49 100644 --- a/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs @@ -24,6 +24,7 @@ namespace MP_MAG.WebUserControls { hfCodCli.Value = value; grView.DataBind(); + grView.SelectedIndex = -1; } } } diff --git a/MP-MAG/WebUserControls/cmp_jumper.ascx.cs b/MP-MAG/WebUserControls/cmp_jumper.ascx.cs index 8c17df14..d4883ae4 100644 --- a/MP-MAG/WebUserControls/cmp_jumper.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_jumper.ascx.cs @@ -67,7 +67,7 @@ namespace MP_MAG.WebUserControls // se l'operatore in sessione è DIVERSO da quello appena inviato --> effettuo NUOVO login if (MatrOpr == memLayer.ML.IntSessionObj("MatrOpr")) { - // rimando a pagina di stampax ODL + // rimando a pagina di stampa x ODL tgtPage = "printCartOdl"; } else