
diff --git a/CMS_SC/ListValues.aspx b/CMS_SC/ListValues.aspx
index 6cef664..54992d1 100644
--- a/CMS_SC/ListValues.aspx
+++ b/CMS_SC/ListValues.aspx
@@ -1,8 +1,30 @@
-<%@ Page Title="" Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="ListValues.aspx.cs" Inherits="CMS_SC.ListValues" %>
+<%@ Page Language="C#" MasterPageFile="~/Bootstrap.master" AutoEventWireup="true" CodeBehind="listValues.aspx.cs" Inherits="CMS_SC.listValues" Title="List Values" %>
+
+<%@ Register Src="WebUserControls/mod_listValues.ascx" TagName="mod_listValues" TagPrefix="uc1" %>
+
+<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc3" %>
+<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagPrefix="uc4" TagName="mod_ricercaGenerica" %>
+
-
+
+
+
+
+
<%: traduci("ListValuesMgmt") %>
+
+
+
+
+
+
+
+
+
+
diff --git a/CMS_SC/ListValues.aspx.cs b/CMS_SC/ListValues.aspx.cs
index df53cc1..62c69f0 100644
--- a/CMS_SC/ListValues.aspx.cs
+++ b/CMS_SC/ListValues.aspx.cs
@@ -1,17 +1,48 @@
-using System;
-using System.Collections.Generic;
+using SteamWare;
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
using System.Linq;
using System.Web;
+using System.Web.Security;
using System.Web.UI;
+using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
namespace CMS_SC
{
- public partial class ListValues : System.Web.UI.Page
+ public partial class listValues : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
-
+ if (!Page.IsPostBack)
+ {
+ ((Bootstrap)this.Master).showSearch = true;
+ mod_righePag1.numRowPag = 20;
+ mod_listValues1.pageSize = mod_righePag1.numRowPag;
+ }
+ mod_righePag1.eh_newNum += mod_righePag1_eh_newNum;
+ }
+ ///
+ /// aggiornato numero righe datagrid... aggiorno visualizzazione
+ ///
+ ///
+ ///
+ void mod_righePag1_eh_newNum(object sender, EventArgs e)
+ {
+ mod_listValues1.pageSize = mod_righePag1.numRowPag;
+ }
+ ///
+ /// wrapper traduzione
+ ///
+ ///
+ ///
+ public string traduci(string lemma)
+ {
+ return user_std.UtSn.Traduci(lemma);
}
}
-}
\ No newline at end of file
+}
diff --git a/CMS_SC/ListValues.aspx.designer.cs b/CMS_SC/ListValues.aspx.designer.cs
index c9ab932..f4dcbfa 100644
--- a/CMS_SC/ListValues.aspx.designer.cs
+++ b/CMS_SC/ListValues.aspx.designer.cs
@@ -3,15 +3,31 @@
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// the code is regenerated.
//
//------------------------------------------------------------------------------
-namespace CMS_SC
-{
-
-
- public partial class ListValues
- {
+namespace CMS_SC {
+
+
+ public partial class listValues {
+
+ ///
+ /// mod_listValues1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::CMS_SC.WebUserControls.mod_listValues mod_listValues1;
+
+ ///
+ /// mod_righePag1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::mod_righePag mod_righePag1;
}
}
diff --git a/CMS_SC/WebUserControls/mod_listValues.ascx b/CMS_SC/WebUserControls/mod_listValues.ascx
new file mode 100644
index 0000000..b63db43
--- /dev/null
+++ b/CMS_SC/WebUserControls/mod_listValues.ascx
@@ -0,0 +1,136 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listValues.ascx.cs"
+ Inherits="CMS_SC.WebUserControls.mod_listValues" %>
+
+
+
+
+
+
+
+
+ <%: traduci("TableName") %>:
+
+
+
+ <%: traduci("FieldName") %>:
+
+
+
+ <%: traduci("value") %>:
+
+
+
+
+
+ <%: traduci("insertNew") %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%-- <%: traduci("btnNewListVal") %>--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CMS_SC/WebUserControls/mod_listValues.ascx.cs b/CMS_SC/WebUserControls/mod_listValues.ascx.cs
new file mode 100644
index 0000000..53f1f5a
--- /dev/null
+++ b/CMS_SC/WebUserControls/mod_listValues.ascx.cs
@@ -0,0 +1,146 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using SteamWare;
+
+namespace CMS_SC.WebUserControls
+{
+ public partial class mod_listValues : System.Web.UI.UserControl
+ {
+ ///
+ /// caricamento pagina
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!Page.IsPostBack)
+ {
+ lbShowNew.Enabled = true;
+ lblBtnShowNew.Text = traduci("btnNewListVal");
+ divInsert.Visible = false;
+
+ }
+ }
+ ///
+ /// dimensione pagina grid view
+ ///
+ public int pageSize
+ {
+ get
+ {
+ return grView.PageSize;
+ }
+ set
+ {
+ grView.PageSize = value;
+ }
+ }
+ ///
+ /// effettua traduzione del lemma
+ ///
+ ///
+ ///
+ public string traduci(string lemma)
+ {
+ return user_std.UtSn.Traduci(lemma);
+ }
+ ///
+ /// effettuo update
+ ///
+ private void doUpdate()
+ {
+ }
+
+ ///
+ /// reset selezione
+ ///
+ ///
+ ///
+ protected void btnReset_Click(object sender, EventArgs e)
+ {
+ // deseleziono e nascondo pnl statistiche...
+ grView.SelectedIndex = -1;
+ }
+ ///
+ /// mostra footer
+ ///
+ ///
+ ///
+ protected void btnShowInsert(object sender, EventArgs e)
+ {
+ // SE HO SELEZIONATO UN VALORE!!!
+ if (ddlTable.SelectedIndex > 0)
+ {
+ // inverto visibilità insert nuovi valori
+ divInsert.Visible = !divInsert.Visible;
+ if (divInsert.Visible)
+ {
+ lblBtnShowNew.Text = traduci("btnHideNewListVal");
+ // precompilo valori tabella
+ txtTableName.Text = ddlTable.SelectedValue;
+ }
+ else
+ {
+ lblBtnShowNew.Text = traduci("btnNewListVal");
+ }
+ }
+ }
+
+ ///
+ /// evento post "aggancio" del grView x traduzione headers
+ ///
+ ///
+ ///
+ protected void grView_DataBound(object sender, EventArgs e)
+ {
+ if (grView.Rows.Count > 0)
+ {
+ LinkButton lb;
+ // aggiorno gli headers
+ foreach (TableCell cella in grView.HeaderRow.Cells)
+ {
+ try
+ {
+ lb = (LinkButton)cella.Controls[0];
+ lb.Text = traduci(lb.Text);
+ }
+ catch
+ { }
+ }
+ int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
+ lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
+ }
+ else
+ {
+ lblNumRec.Text = "";
+ }
+ }
+
+ protected void ddlTable_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ // se seleziono valore "vuoto" resetto...
+ if (ddlTable.SelectedIndex == 0)
+ {
+ lblBtnShowNew.Text = traduci("btnNewListVal");
+ divInsert.Visible = false;
+ }
+ else
+ {
+ txtTableName.Text = ddlTable.SelectedValue;
+ }
+ }
+
+ protected void btnDoInsert_Click(object sender, EventArgs e)
+ {
+ // effettua insert!
+ CMS_SC_Data.DtProxy.man.taListVal.insertQuery(txtTableName.Text.Trim(), txtFieldName.Text.Trim(), txtvalue.Text.Trim(), txtvalue.Text.Trim(), 999);
+ // refresh dati!
+ grView.DataBind();
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/CMS_SC/WebUserControls/mod_listValues.ascx.designer.cs b/CMS_SC/WebUserControls/mod_listValues.ascx.designer.cs
new file mode 100644
index 0000000..07be0b9
--- /dev/null
+++ b/CMS_SC/WebUserControls/mod_listValues.ascx.designer.cs
@@ -0,0 +1,132 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace CMS_SC.WebUserControls {
+
+
+ public partial class mod_listValues {
+
+ ///
+ /// ddlTable control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlTable;
+
+ ///
+ /// lbShowNew control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.LinkButton lbShowNew;
+
+ ///
+ /// lblBtnShowNew control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblBtnShowNew;
+
+ ///
+ /// divInsert control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divInsert;
+
+ ///
+ /// txtTableName control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtTableName;
+
+ ///
+ /// txtFieldName control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtFieldName;
+
+ ///
+ /// txtvalue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtvalue;
+
+ ///
+ /// btnDoInsert control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.LinkButton btnDoInsert;
+
+ ///
+ /// grView control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.GridView grView;
+
+ ///
+ /// lblNumRec control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblNumRec;
+
+ ///
+ /// lblWarning control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblWarning;
+
+ ///
+ /// ods control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods;
+
+ ///
+ /// odsTableName control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource odsTableName;
+ }
+}
diff --git a/CMS_SC/WebUserControls/mod_testata.ascx b/CMS_SC/WebUserControls/mod_testata.ascx
index 2ce86b9..d396c9d 100644
--- a/CMS_SC/WebUserControls/mod_testata.ascx
+++ b/CMS_SC/WebUserControls/mod_testata.ascx
@@ -13,7 +13,7 @@
-
+
diff --git a/CMS_SC/bin/CMS-SC-Data.dll b/CMS_SC/bin/CMS-SC-Data.dll
index 19faf14..a3f461a 100644
Binary files a/CMS_SC/bin/CMS-SC-Data.dll and b/CMS_SC/bin/CMS-SC-Data.dll differ
diff --git a/CMS_SC/bin/CMS_SC.dll b/CMS_SC/bin/CMS_SC.dll
index c6f422e..49aa57b 100644
Binary files a/CMS_SC/bin/CMS_SC.dll and b/CMS_SC/bin/CMS_SC.dll differ
diff --git a/CMS_SC/bin/SteamWare.dll b/CMS_SC/bin/SteamWare.dll
index 167091a..d2e5d4f 100644
Binary files a/CMS_SC/bin/SteamWare.dll and b/CMS_SC/bin/SteamWare.dll differ