From 932bb311628701db4cc6980b3d36baaffd92947a Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 15 May 2019 18:42:00 +0200 Subject: [PATCH] Fix stats globali e x art da FILTRO FASE... --- MP-ADM/Planner.aspx | 5 - MP-ADM/WebUserControls/mod_planStats.ascx | 25 +- MP-ADM/WebUserControls/mod_planStats.ascx.cs | 12 +- .../mod_planStats.ascx.designer.cs | 18 + MapoDb/DS_Plan.Designer.cs | 743 +++++++++++++++++- MapoDb/DS_Plan.xsd | 83 +- MapoDb/DS_Plan.xss | 9 +- 7 files changed, 871 insertions(+), 24 deletions(-) diff --git a/MP-ADM/Planner.aspx b/MP-ADM/Planner.aspx index c05d64e3..60bfb201 100644 --- a/MP-ADM/Planner.aspx +++ b/MP-ADM/Planner.aspx @@ -14,12 +14,7 @@
- <%-- -
- -
- --%> diff --git a/MP-ADM/WebUserControls/mod_planStats.ascx b/MP-ADM/WebUserControls/mod_planStats.ascx index 80710d67..af59c322 100644 --- a/MP-ADM/WebUserControls/mod_planStats.ascx +++ b/MP-ADM/WebUserControls/mod_planStats.ascx @@ -5,10 +5,15 @@
-

Global Stats

+

Stats

-
- +
+ + + + + +
@@ -42,7 +47,11 @@
- + + + + +
@@ -58,14 +67,18 @@ - + + + + +

Gruppi

-
+
diff --git a/MP-ADM/WebUserControls/mod_planStats.ascx.cs b/MP-ADM/WebUserControls/mod_planStats.ascx.cs index 14d882a1..75467b6f 100644 --- a/MP-ADM/WebUserControls/mod_planStats.ascx.cs +++ b/MP-ADM/WebUserControls/mod_planStats.ascx.cs @@ -1,9 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; namespace MP_ADM.WebUserControls { @@ -13,5 +8,12 @@ namespace MP_ADM.WebUserControls { } + protected void ddlCodGruppo_SelectedIndexChanged(object sender, EventArgs e) + { +#if false + // salvo in sessione selezione... + memLayer.ML.setSessionVal("selFaseBCode", ddlCodGruppo.SelectedValue); +#endif + } } } \ No newline at end of file diff --git a/MP-ADM/WebUserControls/mod_planStats.ascx.designer.cs b/MP-ADM/WebUserControls/mod_planStats.ascx.designer.cs index 1daa08ba..b6d0367d 100644 --- a/MP-ADM/WebUserControls/mod_planStats.ascx.designer.cs +++ b/MP-ADM/WebUserControls/mod_planStats.ascx.designer.cs @@ -21,6 +21,24 @@ namespace MP_ADM.WebUserControls { /// protected global::System.Web.UI.WebControls.HiddenField hlCodIstTemp; + /// + /// Controllo ddlCodGruppo. + /// + /// + /// 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 ddlCodGruppo; + + /// + /// Controllo odsCodGruppo. + /// + /// + /// 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 odsCodGruppo; + /// /// Controllo fvGlobal. /// diff --git a/MapoDb/DS_Plan.Designer.cs b/MapoDb/DS_Plan.Designer.cs index 946009f6..51dce141 100644 --- a/MapoDb/DS_Plan.Designer.cs +++ b/MapoDb/DS_Plan.Designer.cs @@ -32,6 +32,8 @@ namespace MapoDb { private planStatsMaccDataTable tableplanStatsMacc; + private AnagraficaGruppiDataTable tableAnagraficaGruppi; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -72,6 +74,9 @@ namespace MapoDb { if ((ds.Tables["planStatsMacc"] != null)) { base.Tables.Add(new planStatsMaccDataTable(ds.Tables["planStatsMacc"])); } + if ((ds.Tables["AnagraficaGruppi"] != null)) { + base.Tables.Add(new AnagraficaGruppiDataTable(ds.Tables["AnagraficaGruppi"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -130,6 +135,16 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagraficaGruppiDataTable AnagraficaGruppi { + get { + return this.tableAnagraficaGruppi; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -209,6 +224,9 @@ namespace MapoDb { if ((ds.Tables["planStatsMacc"] != null)) { base.Tables.Add(new planStatsMaccDataTable(ds.Tables["planStatsMacc"])); } + if ((ds.Tables["AnagraficaGruppi"] != null)) { + base.Tables.Add(new AnagraficaGruppiDataTable(ds.Tables["AnagraficaGruppi"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -266,6 +284,12 @@ namespace MapoDb { this.tableplanStatsMacc.InitVars(); } } + this.tableAnagraficaGruppi = ((AnagraficaGruppiDataTable)(base.Tables["AnagraficaGruppi"])); + if ((initTable == true)) { + if ((this.tableAnagraficaGruppi != null)) { + this.tableAnagraficaGruppi.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -284,6 +308,8 @@ namespace MapoDb { base.Tables.Add(this.tableplanStatsGroup); this.tableplanStatsMacc = new planStatsMaccDataTable(); base.Tables.Add(this.tableplanStatsMacc); + this.tableAnagraficaGruppi = new AnagraficaGruppiDataTable(); + base.Tables.Add(this.tableAnagraficaGruppi); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -310,6 +336,12 @@ namespace MapoDb { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private bool ShouldSerializeAnagraficaGruppi() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -377,6 +409,9 @@ namespace MapoDb { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] public delegate void planStatsMaccRowChangeEventHandler(object sender, planStatsMaccRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public delegate void AnagraficaGruppiRowChangeEventHandler(object sender, AnagraficaGruppiRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -1561,6 +1596,342 @@ namespace MapoDb { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagraficaGruppiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodGruppo; + + private global::System.Data.DataColumn columnTipoGruppo; + + private global::System.Data.DataColumn columnDescrGruppo; + + private global::System.Data.DataColumn columnSelEnabled; + + private global::System.Data.DataColumn columnIsEnabled; + + private global::System.Data.DataColumn columnFreePass; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagraficaGruppiDataTable() { + this.TableName = "AnagraficaGruppi"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal AnagraficaGruppiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected AnagraficaGruppiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn CodGruppoColumn { + get { + return this.columnCodGruppo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn TipoGruppoColumn { + get { + return this.columnTipoGruppo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn DescrGruppoColumn { + get { + return this.columnDescrGruppo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn SelEnabledColumn { + get { + return this.columnSelEnabled; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn IsEnabledColumn { + get { + return this.columnIsEnabled; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn FreePassColumn { + get { + return this.columnFreePass; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagraficaGruppiRow this[int index] { + get { + return ((AnagraficaGruppiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event AnagraficaGruppiRowChangeEventHandler AnagraficaGruppiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event AnagraficaGruppiRowChangeEventHandler AnagraficaGruppiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event AnagraficaGruppiRowChangeEventHandler AnagraficaGruppiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event AnagraficaGruppiRowChangeEventHandler AnagraficaGruppiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void AddAnagraficaGruppiRow(AnagraficaGruppiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagraficaGruppiRow AddAnagraficaGruppiRow(string CodGruppo, string TipoGruppo, string DescrGruppo, bool SelEnabled, bool IsEnabled, bool FreePass) { + AnagraficaGruppiRow rowAnagraficaGruppiRow = ((AnagraficaGruppiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodGruppo, + TipoGruppo, + DescrGruppo, + SelEnabled, + IsEnabled, + FreePass}; + rowAnagraficaGruppiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagraficaGruppiRow); + return rowAnagraficaGruppiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagraficaGruppiRow FindByCodGruppo(string CodGruppo) { + return ((AnagraficaGruppiRow)(this.Rows.Find(new object[] { + CodGruppo}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagraficaGruppiDataTable cln = ((AnagraficaGruppiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagraficaGruppiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal void InitVars() { + this.columnCodGruppo = base.Columns["CodGruppo"]; + this.columnTipoGruppo = base.Columns["TipoGruppo"]; + this.columnDescrGruppo = base.Columns["DescrGruppo"]; + this.columnSelEnabled = base.Columns["SelEnabled"]; + this.columnIsEnabled = base.Columns["IsEnabled"]; + this.columnFreePass = base.Columns["FreePass"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitClass() { + this.columnCodGruppo = new global::System.Data.DataColumn("CodGruppo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodGruppo); + this.columnTipoGruppo = new global::System.Data.DataColumn("TipoGruppo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTipoGruppo); + this.columnDescrGruppo = new global::System.Data.DataColumn("DescrGruppo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrGruppo); + this.columnSelEnabled = new global::System.Data.DataColumn("SelEnabled", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSelEnabled); + this.columnIsEnabled = new global::System.Data.DataColumn("IsEnabled", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIsEnabled); + this.columnFreePass = new global::System.Data.DataColumn("FreePass", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFreePass); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodGruppo}, true)); + this.columnCodGruppo.AllowDBNull = false; + this.columnCodGruppo.Unique = true; + this.columnCodGruppo.MaxLength = 50; + this.columnTipoGruppo.AllowDBNull = false; + this.columnTipoGruppo.MaxLength = 50; + this.columnDescrGruppo.AllowDBNull = false; + this.columnDescrGruppo.MaxLength = 250; + this.columnSelEnabled.AllowDBNull = false; + this.columnIsEnabled.ReadOnly = true; + this.columnFreePass.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagraficaGruppiRow NewAnagraficaGruppiRow() { + return ((AnagraficaGruppiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagraficaGruppiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(AnagraficaGruppiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagraficaGruppiRowChanged != null)) { + this.AnagraficaGruppiRowChanged(this, new AnagraficaGruppiRowChangeEvent(((AnagraficaGruppiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagraficaGruppiRowChanging != null)) { + this.AnagraficaGruppiRowChanging(this, new AnagraficaGruppiRowChangeEvent(((AnagraficaGruppiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagraficaGruppiRowDeleted != null)) { + this.AnagraficaGruppiRowDeleted(this, new AnagraficaGruppiRowChangeEvent(((AnagraficaGruppiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagraficaGruppiRowDeleting != null)) { + this.AnagraficaGruppiRowDeleting(this, new AnagraficaGruppiRowChangeEvent(((AnagraficaGruppiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void RemoveAnagraficaGruppiRow(AnagraficaGruppiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Plan ds = new DS_Plan(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "AnagraficaGruppiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -2046,6 +2417,121 @@ namespace MapoDb { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagraficaGruppiRow : global::System.Data.DataRow { + + private AnagraficaGruppiDataTable tableAnagraficaGruppi; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal AnagraficaGruppiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagraficaGruppi = ((AnagraficaGruppiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string CodGruppo { + get { + return ((string)(this[this.tableAnagraficaGruppi.CodGruppoColumn])); + } + set { + this[this.tableAnagraficaGruppi.CodGruppoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string TipoGruppo { + get { + return ((string)(this[this.tableAnagraficaGruppi.TipoGruppoColumn])); + } + set { + this[this.tableAnagraficaGruppi.TipoGruppoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string DescrGruppo { + get { + return ((string)(this[this.tableAnagraficaGruppi.DescrGruppoColumn])); + } + set { + this[this.tableAnagraficaGruppi.DescrGruppoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool SelEnabled { + get { + return ((bool)(this[this.tableAnagraficaGruppi.SelEnabledColumn])); + } + set { + this[this.tableAnagraficaGruppi.SelEnabledColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsEnabled { + get { + try { + return ((bool)(this[this.tableAnagraficaGruppi.IsEnabledColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IsEnabled\' nella tabella \'AnagraficaGruppi\' è DBNull.", e); + } + } + set { + this[this.tableAnagraficaGruppi.IsEnabledColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool FreePass { + get { + try { + return ((bool)(this[this.tableAnagraficaGruppi.FreePassColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'FreePass\' nella tabella \'AnagraficaGruppi\' è DBNull.", e); + } + } + set { + this[this.tableAnagraficaGruppi.FreePassColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsIsEnabledNull() { + return this.IsNull(this.tableAnagraficaGruppi.IsEnabledColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetIsEnabledNull() { + this[this.tableAnagraficaGruppi.IsEnabledColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsFreePassNull() { + return this.IsNull(this.tableAnagraficaGruppi.FreePassColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetFreePassNull() { + this[this.tableAnagraficaGruppi.FreePassColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -2181,6 +2667,40 @@ namespace MapoDb { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public class AnagraficaGruppiRowChangeEvent : global::System.EventArgs { + + private AnagraficaGruppiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagraficaGruppiRowChangeEvent(AnagraficaGruppiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagraficaGruppiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace MapoDb.DS_PlanTableAdapters { @@ -2325,12 +2845,18 @@ namespace MapoDb.DS_PlanTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT NumRows, NumGrp, NumMacc, TotOreRich, TotOrePlan FROM dbo.v_planStatsGloba" + "l"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_PSG_filt"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2356,6 +2882,23 @@ namespace MapoDb.DS_PlanTableAdapters { this.Adapter.Fill(dataTable); return dataTable; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Plan.planStatsGlobalDataTable getFilt(string CodGruppo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodGruppo == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodGruppo)); + } + DS_Plan.planStatsGlobalDataTable dataTable = new DS_Plan.planStatsGlobalDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } } /// @@ -2496,11 +3039,17 @@ namespace MapoDb.DS_PlanTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_planStatsArt\r\nORDER BY TotOreRich DESC"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_PSA_filt"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2526,6 +3075,23 @@ namespace MapoDb.DS_PlanTableAdapters { this.Adapter.Fill(dataTable); return dataTable; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Plan.planStatsArtDataTable getFilt(string CodGruppo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodGruppo == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodGruppo)); + } + DS_Plan.planStatsArtDataTable dataTable = new DS_Plan.planStatsArtDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } } /// @@ -2868,6 +3434,179 @@ namespace MapoDb.DS_PlanTableAdapters { } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class AnagraficaGruppiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagraficaGruppiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "AnagraficaGruppi"; + tableMapping.ColumnMappings.Add("CodGruppo", "CodGruppo"); + tableMapping.ColumnMappings.Add("TipoGruppo", "TipoGruppo"); + tableMapping.ColumnMappings.Add("DescrGruppo", "DescrGruppo"); + tableMapping.ColumnMappings.Add("SelEnabled", "SelEnabled"); + tableMapping.ColumnMappings.Add("IsEnabled", "IsEnabled"); + tableMapping.ColumnMappings.Add("FreePass", "FreePass"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonPro_ES3ConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled, IsEnabled, FreePass FROM d" + + "bo.v_AnagraficaGruppi"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Plan.AnagraficaGruppiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Plan.AnagraficaGruppiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Plan.AnagraficaGruppiDataTable dataTable = new DS_Plan.AnagraficaGruppiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/MapoDb/DS_Plan.xsd b/MapoDb/DS_Plan.xsd index 546cefe8..7a2e585d 100644 --- a/MapoDb/DS_Plan.xsd +++ b/MapoDb/DS_Plan.xsd @@ -25,7 +25,19 @@ - + + + + + dbo.stp_PSG_filt + + + + + + + + @@ -46,7 +58,19 @@ ORDER BY TotOreRich DESC - + + + + + dbo.stp_PSA_filt + + + + + + + + @@ -90,6 +114,27 @@ ORDER BY TotOreRich DESC + + + + + + SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled, IsEnabled, FreePass FROM dbo.v_AnagraficaGruppi + + + + + + + + + + + + + + + @@ -157,7 +202,41 @@ ORDER BY TotOreRich DESC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_Plan.xss b/MapoDb/DS_Plan.xss index 47ebd9fc..5a8812cf 100644 --- a/MapoDb/DS_Plan.xss +++ b/MapoDb/DS_Plan.xss @@ -6,10 +6,11 @@ --> - - - - + + + + + \ No newline at end of file