diff --git a/GMW/AnagLinee.aspx.cs b/GMW/AnagLinee.aspx.cs
index 3c7643e6..d034ca36 100644
--- a/GMW/AnagLinee.aspx.cs
+++ b/GMW/AnagLinee.aspx.cs
@@ -11,9 +11,17 @@ namespace GMW
{
mod_righePag.numRowPag = 3;
mod_anagTipoLinee.numRows = mod_righePag.numRowPag;
+ mod_righePag1.numRowPag = 20;
+ mod_anagLinee.numRows = mod_righePag1.numRowPag;
}
mod_anagTipoLinee.eh_ucev += Mod_anagTipoLinee_eh_ucev;
mod_righePag.eh_newNum += Mod_righePag_eh_newNum;
+ mod_righePag1.eh_newNum += Mod_righePag1_eh_newNum;
+ }
+
+ private void Mod_righePag1_eh_newNum(object sender, EventArgs e)
+ {
+ mod_anagLinee.numRows = mod_righePag1.numRowPag;
}
private void Mod_righePag_eh_newNum(object sender, EventArgs e)
diff --git a/GMW/AnagLinee.aspx.designer.cs b/GMW/AnagLinee.aspx.designer.cs
index 552d0f19..01035146 100644
--- a/GMW/AnagLinee.aspx.designer.cs
+++ b/GMW/AnagLinee.aspx.designer.cs
@@ -12,6 +12,15 @@ namespace GMW {
public partial class AnagLinee {
+ ///
+ /// Controllo mod_righePag.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::GMW.WebUserControls.mod_righePag mod_righePag;
+
///
/// Controllo mod_ricercaGenerica.
///
@@ -30,15 +39,6 @@ namespace GMW {
///
protected global::GMW.WebUserControls.mod_anagTipoLinee mod_anagTipoLinee;
- ///
- /// Controllo mod_righePag.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::GMW.WebUserControls.mod_righePag mod_righePag;
-
///
/// Controllo divDetail.
///
@@ -48,6 +48,15 @@ namespace GMW {
///
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail;
+ ///
+ /// Controllo mod_righePag1.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::GMW.WebUserControls.mod_righePag mod_righePag1;
+
///
/// Controllo mod_anagLinee.
///
diff --git a/GMW/WebUserControls/mod_anagLinee.ascx b/GMW/WebUserControls/mod_anagLinee.ascx
index 4f105e1e..9f0de34f 100644
--- a/GMW/WebUserControls/mod_anagLinee.ascx
+++ b/GMW/WebUserControls/mod_anagLinee.ascx
@@ -3,15 +3,13 @@
{ %>
<% } %>
-
+
Nessun Record
- <%----%>
diff --git a/GMW/WebUserControls/mod_anagLinee.ascx.cs b/GMW/WebUserControls/mod_anagLinee.ascx.cs
index 80104450..93338858 100644
--- a/GMW/WebUserControls/mod_anagLinee.ascx.cs
+++ b/GMW/WebUserControls/mod_anagLinee.ascx.cs
@@ -221,5 +221,20 @@ namespace GMW.WebUserControls
if (!_codLinea.ToString().EndsWith("00")) answ = true;
return answ;
}
+ ///
+ /// numero righe da mostrare
+ ///
+ public int numRows
+ {
+ get
+ {
+ return grView.PageSize;
+ }
+ set
+ {
+ grView.PageSize = value;
+ grView.DataBind();
+ }
+ }
}
}
\ No newline at end of file
diff --git a/GMW/WebUserControls/mod_righePag.ascx.cs b/GMW/WebUserControls/mod_righePag.ascx.cs
index d14c0bc7..7e3d884f 100644
--- a/GMW/WebUserControls/mod_righePag.ascx.cs
+++ b/GMW/WebUserControls/mod_righePag.ascx.cs
@@ -4,97 +4,107 @@ using System.Web.UI;
namespace GMW.WebUserControls
{
- public partial class mod_righePag : System.Web.UI.UserControl
+ public partial class mod_righePag : System.Web.UI.UserControl
+ {
+ ///
+ /// indicato (nuovo) numero righe x pagina
+ ///
+ public event EventHandler eh_newNum;
+ ///
+ /// caricamento pagina
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
{
- ///
- /// indicato (nuovo) numero righe x pagina
- ///
- public event EventHandler eh_newNum;
- ///
- /// caricamento pagina
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!Page.IsPostBack)
- {
- numRowReq = numRowPag;
- }
- }
- ///
- /// effettua traduzione del lemma
- ///
- ///
- ///
- public string traduci(string lemma)
- {
- return user_std.UtSn.Traduci(lemma);
- }
- ///
- /// aggiorno controllo paginazione...
- ///
- ///
- ///
- protected void txtNumRighe_TextChanged(object sender, EventArgs e)
- {
- // salvo num righe...
- numRowPag = numRowReq;
- // sollevo evento nuovo valore...
- if (eh_newNum != null)
- {
- eh_newNum(this, new EventArgs());
- }
- }
- ///
- /// numero righe per pagina (in sessione)
- ///
- public int numRowPag
- {
- get
- {
- int answ = 10;
- try
- {
- answ = memLayer.ML.IntSessionObj("numRowPag");
- }
- catch
- {
- answ = 10;
- }
- return answ;
- }
- set
- {
- memLayer.ML.setSessionVal("numRowPag", value);
- numRowReq = value;
- }
- }
- ///
- /// numero righe gridview da mostrare legato a controllo textbox
- ///
- protected int numRowReq
- {
- get
- {
- int answ = numRowPag;
- try
- {
- answ = Convert.ToInt32(txtNumRighe.Text.Trim());
- if (answ == 0)
- {
- answ = numRowPag;
- txtNumRighe.Text = answ.ToString();
- }
- }
- catch
- { }
- return answ;
- }
- set
- {
- txtNumRighe.Text = value.ToString();
- }
- }
+ if (!Page.IsPostBack)
+ {
+ numRowReq = numRowPag;
+ }
}
+ ///
+ /// stringa UID univoca
+ ///
+ public string uid
+ {
+ get
+ {
+ return this.UniqueID.Replace("$", "_").Replace("-", "_");
+ }
+ }
+ ///
+ /// effettua traduzione del lemma
+ ///
+ ///
+ ///
+ public string traduci(string lemma)
+ {
+ return user_std.UtSn.Traduci(lemma);
+ }
+ ///
+ /// aggiorno controllo paginazione...
+ ///
+ ///
+ ///
+ protected void txtNumRighe_TextChanged(object sender, EventArgs e)
+ {
+ // salvo num righe...
+ numRowPag = numRowReq;
+ // sollevo evento nuovo valore...
+ if (eh_newNum != null)
+ {
+ eh_newNum(this, new EventArgs());
+ }
+ }
+ ///
+ /// numero righe per pagina (in sessione)
+ ///
+ public int numRowPag
+ {
+ get
+ {
+ int answ = 10;
+ try
+ {
+ answ = memLayer.ML.IntSessionObj(uid + "_numRowPag");
+ }
+ catch
+ {
+ answ = 10;
+ }
+ return answ;
+ }
+ set
+ {
+ memLayer.ML.setSessionVal(uid + "_numRowPag", value);
+ numRowReq = value;
+ }
+ }
+ ///
+ /// numero righe gridview da mostrare legato a controllo textbox
+ ///
+ protected int numRowReq
+ {
+ get
+ {
+ int answ = numRowPag;
+ try
+ {
+ answ = Convert.ToInt32(txtNumRighe.Text.Trim());
+ if (answ == 0)
+ {
+ answ = numRowPag;
+ txtNumRighe.Text = answ.ToString();
+ }
+ }
+ catch
+ { }
+ return answ;
+ }
+ set
+ {
+ txtNumRighe.Text = value.ToString();
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/GMW/confLinee.aspx b/GMW/confLinee.aspx
index 87ec6add..49090574 100644
--- a/GMW/confLinee.aspx
+++ b/GMW/confLinee.aspx
@@ -1,4 +1,5 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="confLinee.aspx.cs" Inherits="GMW.confLinee" %>
+
<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagPrefix="uc1" TagName="mod_ricercaGenerica" %>
<%@ Register Src="~/WebUserControls/mod_anagTipoLinee.ascx" TagPrefix="uc1" TagName="mod_anagTipoLinee" %>
<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagPrefix="uc1" TagName="mod_righePag" %>
@@ -12,26 +13,37 @@
-
+
-
-
diff --git a/GMW/confLinee.aspx.cs b/GMW/confLinee.aspx.cs
index 73c0dc94..1f05d32b 100644
--- a/GMW/confLinee.aspx.cs
+++ b/GMW/confLinee.aspx.cs
@@ -9,13 +9,20 @@ namespace GMW
{
if (!Page.IsPostBack)
{
- mod_righePag.numRowPag = 5;
+ mod_righePag.numRowPag = 3;
mod_anagTipoLinee.numRows = mod_righePag.numRowPag;
+ mod_righePag1.numRowPag = 5;
+ mod_anagLinee.numRows = mod_righePag1.numRowPag;
}
mod_anagTipoLinee.eh_ucev += Mod_anagTipoLinee_eh_ucev;
mod_righePag.eh_newNum += Mod_righePag_eh_newNum;
+ mod_righePag1.eh_newNum += Mod_righePag1_eh_newNum;
}
+ private void Mod_righePag1_eh_newNum(object sender, EventArgs e)
+ {
+ mod_anagLinee.numRows = mod_righePag1.numRowPag;
+ }
private void Mod_righePag_eh_newNum(object sender, EventArgs e)
{
mod_anagTipoLinee.numRows = mod_righePag.numRowPag;
diff --git a/GMW/confLinee.aspx.designer.cs b/GMW/confLinee.aspx.designer.cs
index 964eda8d..47aaa369 100644
--- a/GMW/confLinee.aspx.designer.cs
+++ b/GMW/confLinee.aspx.designer.cs
@@ -12,6 +12,15 @@ namespace GMW {
public partial class confLinee {
+ ///
+ /// Controllo mod_righePag.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::GMW.WebUserControls.mod_righePag mod_righePag;
+
///
/// Controllo mod_ricercaGenerica.
///
@@ -30,15 +39,6 @@ namespace GMW {
///
protected global::GMW.WebUserControls.mod_anagTipoLinee mod_anagTipoLinee;
- ///
- /// Controllo mod_righePag.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::GMW.WebUserControls.mod_righePag mod_righePag;
-
///
/// Controllo divDetail.
///
@@ -48,6 +48,15 @@ namespace GMW {
///
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail;
+ ///
+ /// Controllo mod_righePag1.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::GMW.WebUserControls.mod_righePag mod_righePag1;
+
///
/// Controllo mod_anagLinee.
///