From 599e31bc83de3f921130b04be77d5097bf97362f Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 14 Feb 2018 18:47:28 +0100 Subject: [PATCH] Completato fix pagine anagrafiche... --- CMS_SC/SchemaCollFamMacc.aspx | 74 +++--- CMS_SC/SchemaCollFamMacc.aspx.cs | 221 +++++++++--------- CMS_SC/SchemaCollFamMacc.aspx.designer.cs | 89 ++++--- CMS_SC/WebUserControls/mod_DettScheda.ascx | 2 +- .../mod_SchemaCollFamMacc.ascx | 182 ++++++++------- .../mod_SchemaCollFamMacc.ascx.designer.cs | 41 ++-- CMS_SC/WebUserControls/mod_validVal.ascx | 2 +- .../mod_validVal.ascx.designer.cs | 41 ++-- 8 files changed, 325 insertions(+), 327 deletions(-) diff --git a/CMS_SC/SchemaCollFamMacc.aspx b/CMS_SC/SchemaCollFamMacc.aspx index e46e0e6..d63b4c4 100644 --- a/CMS_SC/SchemaCollFamMacc.aspx +++ b/CMS_SC/SchemaCollFamMacc.aspx @@ -11,43 +11,43 @@ -
-
-
-
-

<%: traduci("SchemaCollFamMacc") %>

-
-
-
- - -
-
- - -
-
- -
- <%: traduci("SelectFM_CSV_2ins") %> -
-
- -
-
- - -
-
-
-
-
-
- -
- +
+
+
+
+ <%: traduci("SchemaCollFamMacc") %>
+
+
+ + +
+
+ + +
+
+ +
+ <%: traduci("SelectFM_CSV_2ins") %> +
+
+ +
+
+ + +
+
+
+
+
+
+ +
+
+
diff --git a/CMS_SC/SchemaCollFamMacc.aspx.cs b/CMS_SC/SchemaCollFamMacc.aspx.cs index 2f8420a..bd7d40b 100644 --- a/CMS_SC/SchemaCollFamMacc.aspx.cs +++ b/CMS_SC/SchemaCollFamMacc.aspx.cs @@ -4,117 +4,116 @@ using System.Web.UI; namespace CMS_SC { - public partial class SchemaCollFamMacc : System.Web.UI.Page + public partial class SchemaCollFamMacc : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) { - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - ((Bootstrap)this.Master).showSearch = true; - mod_righePag.numRowPag = 20; - mod_SchemaCollFamMacc.pageSize = mod_righePag.numRowPag; - presetChk(); - fixChkFilt(); - btnAddNew.DataBind(); - btnClonaConfFamMacch.DataBind(); - } - mod_righePag.eh_newNum += mod_righePag_eh_newNum; - } - - private void presetChk() - { - chkFilFamMacc.Checked = memLayer.ML.BoolSessionObj("filtByFamMac"); - chkFiltCodSchedaVers.Checked = memLayer.ML.BoolSessionObj("filtByScheda"); - } - /// - /// wrapper traduzione - /// - /// - /// - public string traduci(string lemma) - { - return user_std.UtSn.Traduci(lemma); - } - /// - /// sistema i controlli checkbox di filtraggio - /// - private void fixChkFilt() - { - // sistemo scritta e visibilità da stato filtrato... - if (chkFilFamMacc.Checked) - { - chkFilFamMacc.Text = traduci("ShowAllFamMacc"); - } - else - { - chkFilFamMacc.Text = traduci("SelFamMacc"); - } - if (chkFiltCodSchedaVers.Checked) - { - chkFiltCodSchedaVers.Text = traduci("ShowAllSched"); - } - else - { - chkFiltCodSchedaVers.Text = traduci("SelSched"); - } - memLayer.ML.setSessionVal("filtByFamMac", chkFilFamMacc.Checked); - memLayer.ML.setSessionVal("filtByScheda", chkFiltCodSchedaVers.Checked); - mod_selFamMaccUrl.Visible = chkFilFamMacc.Checked; - mod_selSchedaUrl.Visible = chkFiltCodSchedaVers.Checked; - btnAddNew.Enabled= addNewEnabled; - //btnAddNew.Visible = addNewEnabled; - mod_SchemaCollFamMacc.doUpdate(); - - // mostro clona SE sto guardando una famiglia...! - btnClonaConfFamMacch.Visible = chkFilFamMacc.Checked; - divFamMaccFrom.Visible = chkFilFamMacc.Checked; - } - - void mod_righePag_eh_newNum(object sender, EventArgs e) - { - mod_SchemaCollFamMacc.pageSize = mod_righePag.numRowPag; - } - - protected void chkFiltCodSchedaVers_CheckedChanged(object sender, EventArgs e) - { - fixChkFilt(); - } - - protected void chkFilFamMacc_CheckedChanged(object sender, EventArgs e) - { - fixChkFilt(); - } - /// - /// verifica se si possano aggiungere nuovi record ovvero se selezionata famiglia e scheda... - /// - public bool addNewEnabled - { - get - { - bool answ = false; - try - { - answ = (memLayer.ML.QSS("CodSchedaVers") != "") && (memLayer.ML.QSS("CodFam") != "") && memLayer.ML.BoolSessionObj("filtByFamMac") && memLayer.ML.BoolSessionObj("filtByScheda"); - } - catch - { } - return answ; - } - } - /// - /// - /// - /// - /// - protected void btnAddNew_Click(object sender, EventArgs e) - { - mod_SchemaCollFamMacc.addNewFromSel(memLayer.ML.QSS("CodSchedaVers"), memLayer.ML.QSS("CodFam")); - } - - protected void btnClonaConfFamMacch_Click(object sender, EventArgs e) - { - mod_SchemaCollFamMacc.clonaFamMacc(ddlSelFamMacc.SelectedValue, memLayer.ML.QSS("CodFam")); - } - + if (!Page.IsPostBack) + { + ((Bootstrap)this.Master).showSearch = true; + mod_righePag.numRowPag = 20; + mod_SchemaCollFamMacc.pageSize = mod_righePag.numRowPag; + presetChk(); + fixChkFilt(); + btnAddNew.DataBind(); + btnClonaConfFamMacch.DataBind(); + } + mod_righePag.eh_newNum += mod_righePag_eh_newNum; } + + private void presetChk() + { + chkFilFamMacc.Checked = memLayer.ML.BoolSessionObj("filtByFamMac"); + chkFiltCodSchedaVers.Checked = memLayer.ML.BoolSessionObj("filtByScheda"); + } + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(string lemma) + { + return user_std.UtSn.Traduci(lemma); + } + /// + /// sistema i controlli checkbox di filtraggio + /// + private void fixChkFilt() + { + // sistemo scritta e visibilità da stato filtrato... + if (chkFilFamMacc.Checked) + { + chkFilFamMacc.Text = traduci("ShowAllFamMacc"); + } + else + { + chkFilFamMacc.Text = traduci("SelFamMacc"); + } + if (chkFiltCodSchedaVers.Checked) + { + chkFiltCodSchedaVers.Text = traduci("ShowAllSched"); + } + else + { + chkFiltCodSchedaVers.Text = traduci("SelSched"); + } + memLayer.ML.setSessionVal("filtByFamMac", chkFilFamMacc.Checked); + memLayer.ML.setSessionVal("filtByScheda", chkFiltCodSchedaVers.Checked); + mod_selFamMaccUrl.Visible = chkFilFamMacc.Checked; + mod_selSchedaUrl.Visible = chkFiltCodSchedaVers.Checked; + btnAddNew.Enabled = addNewEnabled; + mod_SchemaCollFamMacc.doUpdate(); + + // mostro clona SE sto guardando una famiglia...! + btnClonaConfFamMacch.Enabled = chkFilFamMacc.Checked; + divFamMaccFrom.Visible = chkFilFamMacc.Checked; + } + + void mod_righePag_eh_newNum(object sender, EventArgs e) + { + mod_SchemaCollFamMacc.pageSize = mod_righePag.numRowPag; + } + + protected void chkFiltCodSchedaVers_CheckedChanged(object sender, EventArgs e) + { + fixChkFilt(); + } + + protected void chkFilFamMacc_CheckedChanged(object sender, EventArgs e) + { + fixChkFilt(); + } + /// + /// verifica se si possano aggiungere nuovi record ovvero se selezionata famiglia e scheda... + /// + public bool addNewEnabled + { + get + { + bool answ = false; + try + { + answ = (memLayer.ML.QSS("CodSchedaVers") != "") && (memLayer.ML.QSS("CodFam") != "") && memLayer.ML.BoolSessionObj("filtByFamMac") && memLayer.ML.BoolSessionObj("filtByScheda"); + } + catch + { } + return answ; + } + } + /// + /// + /// + /// + /// + protected void btnAddNew_Click(object sender, EventArgs e) + { + mod_SchemaCollFamMacc.addNewFromSel(memLayer.ML.QSS("CodSchedaVers"), memLayer.ML.QSS("CodFam")); + } + + protected void btnClonaConfFamMacch_Click(object sender, EventArgs e) + { + mod_SchemaCollFamMacc.clonaFamMacc(ddlSelFamMacc.SelectedValue, memLayer.ML.QSS("CodFam")); + } + + } } \ No newline at end of file diff --git a/CMS_SC/SchemaCollFamMacc.aspx.designer.cs b/CMS_SC/SchemaCollFamMacc.aspx.designer.cs index a9f464d..661d570 100644 --- a/CMS_SC/SchemaCollFamMacc.aspx.designer.cs +++ b/CMS_SC/SchemaCollFamMacc.aspx.designer.cs @@ -1,123 +1,122 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// +// Codice generato da uno strumento. // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace CMS_SC -{ - - +namespace CMS_SC { + + public partial class SchemaCollFamMacc { /// - /// chkFilFamMacc control. + /// Controllo chkFilFamMacc. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.CheckBox chkFilFamMacc; /// - /// mod_selFamMaccUrl control. + /// Controllo mod_selFamMaccUrl. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::CMS_SC.WebUserControls.mod_selFamMaccUrl mod_selFamMaccUrl; /// - /// chkFiltCodSchedaVers control. + /// Controllo chkFiltCodSchedaVers. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.CheckBox chkFiltCodSchedaVers; /// - /// mod_selSchedaUrl control. + /// Controllo mod_selSchedaUrl. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::CMS_SC.WebUserControls.mod_selSchedaUrl mod_selSchedaUrl; /// - /// btnAddNew control. + /// Controllo btnAddNew. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Button btnAddNew; /// - /// lblHelp control. + /// Controllo lblHelp. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblHelp; /// - /// btnClonaConfFamMacch control. + /// Controllo btnClonaConfFamMacch. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Button btnClonaConfFamMacch; /// - /// divFamMaccFrom control. + /// Controllo divFamMaccFrom. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divFamMaccFrom; /// - /// ddlSelFamMacc control. + /// Controllo ddlSelFamMacc. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.DropDownList ddlSelFamMacc; /// - /// odsFamMacc control. + /// Controllo odsFamMacc. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 odsFamMacc; /// - /// mod_SchemaCollFamMacc control. + /// Controllo mod_SchemaCollFamMacc. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::CMS_SC.WebUserControls.mod_SchemaCollFamMacc mod_SchemaCollFamMacc; /// - /// mod_righePag control. + /// Controllo mod_righePag. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::mod_righePag mod_righePag; } diff --git a/CMS_SC/WebUserControls/mod_DettScheda.ascx b/CMS_SC/WebUserControls/mod_DettScheda.ascx index dcdff64..1970e73 100644 --- a/CMS_SC/WebUserControls/mod_DettScheda.ascx +++ b/CMS_SC/WebUserControls/mod_DettScheda.ascx @@ -20,7 +20,7 @@ --%> - + diff --git a/CMS_SC/WebUserControls/mod_SchemaCollFamMacc.ascx b/CMS_SC/WebUserControls/mod_SchemaCollFamMacc.ascx index df5a801..bed6143 100644 --- a/CMS_SC/WebUserControls/mod_SchemaCollFamMacc.ascx +++ b/CMS_SC/WebUserControls/mod_SchemaCollFamMacc.ascx @@ -1,60 +1,62 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_SchemaCollFamMacc.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_SchemaCollFamMacc" %> - - - - - - <%: traduci("NoRecords") %> - - - - - -   - - - -   + + + + + + <%: traduci("NoRecords") %> + + + + + +   + + + +   - - - - - - - - - - - - - - - - - - - - - - <%# traduci("moveMis") %> - - - - -
- -
-
- -
-
-
- - - - <%-- +
+ +
+ + + + + + + + + + + + + + + + + + + <%# traduci("moveMis") %> + + + + +
+
+ +
+
+ +
+
+
+
+ + + + <%-- @@ -62,44 +64,44 @@ --%> - - - <%----%> - - - -   - - - - - - -
+ + + <%----%> + + + +   + + + + + + +
- - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + diff --git a/CMS_SC/WebUserControls/mod_SchemaCollFamMacc.ascx.designer.cs b/CMS_SC/WebUserControls/mod_SchemaCollFamMacc.ascx.designer.cs index dd0d3b4..688f246 100644 --- a/CMS_SC/WebUserControls/mod_SchemaCollFamMacc.ascx.designer.cs +++ b/CMS_SC/WebUserControls/mod_SchemaCollFamMacc.ascx.designer.cs @@ -1,51 +1,50 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// +// Codice generato da uno strumento. // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace CMS_SC.WebUserControls -{ - - +namespace CMS_SC.WebUserControls { + + public partial class mod_SchemaCollFamMacc { /// - /// grView control. + /// Controllo grView. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 grView; /// - /// ods control. + /// Controllo ods. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 ods; /// - /// odsScheda control. + /// Controllo odsScheda. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 odsScheda; /// - /// odsFamMacc control. + /// Controllo odsFamMacc. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 odsFamMacc; } diff --git a/CMS_SC/WebUserControls/mod_validVal.ascx b/CMS_SC/WebUserControls/mod_validVal.ascx index 9f768fc..f10dd1f 100644 --- a/CMS_SC/WebUserControls/mod_validVal.ascx +++ b/CMS_SC/WebUserControls/mod_validVal.ascx @@ -1,7 +1,7 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_validVal.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_validVal" %> - + diff --git a/CMS_SC/WebUserControls/mod_validVal.ascx.designer.cs b/CMS_SC/WebUserControls/mod_validVal.ascx.designer.cs index e2230a2..60562ae 100644 --- a/CMS_SC/WebUserControls/mod_validVal.ascx.designer.cs +++ b/CMS_SC/WebUserControls/mod_validVal.ascx.designer.cs @@ -1,51 +1,50 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// +// Codice generato da uno strumento. // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace CMS_SC.WebUserControls -{ - - +namespace CMS_SC.WebUserControls { + + public partial class mod_validVal { /// - /// btnNewFromEmpty control. + /// Controllo btnNewFromEmpty. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Button btnNewFromEmpty; /// - /// grView control. + /// Controllo grView. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 grView; /// - /// ods control. + /// Controllo ods. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 ods; /// - /// hfCodMisura control. + /// Controllo hfCodMisura. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.HiddenField hfCodMisura; }