From fb617b544e7a196c23aef5c0ca7d6545e9debc7e Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 24 Sep 2019 22:17:22 +0200 Subject: [PATCH] Bozza NUOVA MappaStato --- MP-SITE/MappaStato.aspx | 32 +- MP-SITE/MappaStato.aspx.designer.cs | 18 + MapoDb/DS_applicazione.Designer.cs | 762 ++++++++++++++++++++++++++-- MapoDb/DS_applicazione.xsd | 147 ++++-- MapoDb/MapoDb.cs | 2 +- 5 files changed, 865 insertions(+), 96 deletions(-) diff --git a/MP-SITE/MappaStato.aspx b/MP-SITE/MappaStato.aspx index f8ca7809..c65136fb 100644 --- a/MP-SITE/MappaStato.aspx +++ b/MP-SITE/MappaStato.aspx @@ -8,6 +8,34 @@ +
+ + +
+ + +
+ <%# Eval("IdxMacchina") %> | <%# Eval("locazione") %> + <%----%> + +
+
+
+ + + + + + + +
+
+
+ + + +
@@ -40,7 +68,7 @@
-
+
@@ -72,7 +100,7 @@
-
+
diff --git a/MP-SITE/MappaStato.aspx.designer.cs b/MP-SITE/MappaStato.aspx.designer.cs index 656885aa..9545f456 100644 --- a/MP-SITE/MappaStato.aspx.designer.cs +++ b/MP-SITE/MappaStato.aspx.designer.cs @@ -21,6 +21,24 @@ namespace MP_SITE { /// protected global::MP_SITE.WebUserControls.mod_mainMap mod_mainMap; + /// + /// Controllo repRows. + /// + /// + /// 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.Repeater repRows; + + /// + /// Controllo odsRows. + /// + /// + /// 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 odsRows; + /// /// Controllo Mod_statoMacchina01. /// diff --git a/MapoDb/DS_applicazione.Designer.cs b/MapoDb/DS_applicazione.Designer.cs index 979f99dd..4d5c8d41 100644 --- a/MapoDb/DS_applicazione.Designer.cs +++ b/MapoDb/DS_applicazione.Designer.cs @@ -76,6 +76,8 @@ namespace MapoDb { private AnagraficaGruppiDataTable tableAnagraficaGruppi; + private RigheMacchineDataTable tableRigheMacchine; + private global::System.Data.DataRelation relationFK_Macchine2FamiglieMacchine_FamiglieMacchine; private global::System.Data.DataRelation relationFK_Macchine2FamiglieMacchine_Macchine; @@ -222,6 +224,9 @@ namespace MapoDb { if ((ds.Tables["AnagraficaGruppi"] != null)) { base.Tables.Add(new AnagraficaGruppiDataTable(ds.Tables["AnagraficaGruppi"])); } + if ((ds.Tables["RigheMacchine"] != null)) { + base.Tables.Add(new RigheMacchineDataTable(ds.Tables["RigheMacchine"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -500,6 +505,16 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public RigheMacchineDataTable RigheMacchine { + get { + return this.tableRigheMacchine; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -645,6 +660,9 @@ namespace MapoDb { if ((ds.Tables["AnagraficaGruppi"] != null)) { base.Tables.Add(new AnagraficaGruppiDataTable(ds.Tables["AnagraficaGruppi"])); } + if ((ds.Tables["RigheMacchine"] != null)) { + base.Tables.Add(new RigheMacchineDataTable(ds.Tables["RigheMacchine"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -834,6 +852,12 @@ namespace MapoDb { this.tableAnagraficaGruppi.InitVars(); } } + this.tableRigheMacchine = ((RigheMacchineDataTable)(base.Tables["RigheMacchine"])); + if ((initTable == true)) { + if ((this.tableRigheMacchine != null)) { + this.tableRigheMacchine.InitVars(); + } + } this.relationFK_Macchine2FamiglieMacchine_FamiglieMacchine = this.Relations["FK_Macchine2FamiglieMacchine_FamiglieMacchine"]; this.relationFK_Macchine2FamiglieMacchine_Macchine = this.Relations["FK_Macchine2FamiglieMacchine_Macchine"]; this.relationFK_TransizioneStati_FamiglieMacchine = this.Relations["FK_TransizioneStati_FamiglieMacchine"]; @@ -916,6 +940,8 @@ namespace MapoDb { base.Tables.Add(this.tableFluxLog); this.tableAnagraficaGruppi = new AnagraficaGruppiDataTable(); base.Tables.Add(this.tableAnagraficaGruppi); + this.tableRigheMacchine = new RigheMacchineDataTable(); + base.Tables.Add(this.tableRigheMacchine); this.relationFK_Macchine2FamiglieMacchine_FamiglieMacchine = new global::System.Data.DataRelation("FK_Macchine2FamiglieMacchine_FamiglieMacchine", new global::System.Data.DataColumn[] { this.tableFamiglieMacchine.IdxFamigliaColumn}, new global::System.Data.DataColumn[] { this.tableMacchine2FamiglieMacchine.IdxFamigliaColumn}, false); @@ -1154,6 +1180,12 @@ namespace MapoDb { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeRigheMacchine() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -1287,6 +1319,9 @@ namespace MapoDb { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void AnagraficaGruppiRowChangeEventHandler(object sender, AnagraficaGruppiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void RigheMacchineRowChangeEventHandler(object sender, RigheMacchineRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -1865,6 +1900,12 @@ namespace MapoDb { private global::System.Data.DataColumn columnlocazione; + private global::System.Data.DataColumn columncss; + + private global::System.Data.DataColumn columnRowNum; + + private global::System.Data.DataColumn columnColNum; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public MacchineDataTable() { @@ -1954,6 +1995,30 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn cssColumn { + get { + return this.columncss; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn RowNumColumn { + get { + return this.columnRowNum; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ColNumColumn { + get { + return this.columnColNum; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -1991,7 +2056,7 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MacchineRow AddMacchineRow(string IdxMacchina, string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione) { + public MacchineRow AddMacchineRow(string IdxMacchina, string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione, string css, int RowNum, int ColNum) { MacchineRow rowMacchineRow = ((MacchineRow)(this.NewRow())); object[] columnValuesArray = new object[] { IdxMacchina, @@ -2000,7 +2065,10 @@ namespace MapoDb { Descrizione, Note, url, - locazione}; + locazione, + css, + RowNum, + ColNum}; rowMacchineRow.ItemArray = columnValuesArray; this.Rows.Add(rowMacchineRow); return rowMacchineRow; @@ -2037,6 +2105,9 @@ namespace MapoDb { this.columnNote = base.Columns["Note"]; this.columnurl = base.Columns["url"]; this.columnlocazione = base.Columns["locazione"]; + this.columncss = base.Columns["css"]; + this.columnRowNum = base.Columns["RowNum"]; + this.columnColNum = base.Columns["ColNum"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2056,6 +2127,12 @@ namespace MapoDb { base.Columns.Add(this.columnurl); this.columnlocazione = new global::System.Data.DataColumn("locazione", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnlocazione); + this.columncss = new global::System.Data.DataColumn("css", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncss); + this.columnRowNum = new global::System.Data.DataColumn("RowNum", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRowNum); + this.columnColNum = new global::System.Data.DataColumn("ColNum", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnColNum); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnIdxMacchina}, true)); this.columnIdxMacchina.AllowDBNull = false; @@ -2067,6 +2144,10 @@ namespace MapoDb { this.columnNote.MaxLength = 50; this.columnurl.MaxLength = 250; this.columnlocazione.MaxLength = 2; + this.columncss.AllowDBNull = false; + this.columncss.MaxLength = 50; + this.columnRowNum.AllowDBNull = false; + this.columnColNum.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10018,6 +10099,254 @@ namespace MapoDb { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class RigheMacchineDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnRowNum; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RigheMacchineDataTable() { + this.TableName = "RigheMacchine"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal RigheMacchineDataTable(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", "16.0.0.0")] + protected RigheMacchineDataTable(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", "16.0.0.0")] + public global::System.Data.DataColumn RowNumColumn { + get { + return this.columnRowNum; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] + public RigheMacchineRow this[int index] { + get { + return ((RigheMacchineRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event RigheMacchineRowChangeEventHandler RigheMacchineRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event RigheMacchineRowChangeEventHandler RigheMacchineRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event RigheMacchineRowChangeEventHandler RigheMacchineRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event RigheMacchineRowChangeEventHandler RigheMacchineRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddRigheMacchineRow(RigheMacchineRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RigheMacchineRow AddRigheMacchineRow(int RowNum) { + RigheMacchineRow rowRigheMacchineRow = ((RigheMacchineRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + RowNum}; + rowRigheMacchineRow.ItemArray = columnValuesArray; + this.Rows.Add(rowRigheMacchineRow); + return rowRigheMacchineRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + RigheMacchineDataTable cln = ((RigheMacchineDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new RigheMacchineDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnRowNum = base.Columns["RowNum"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnRowNum = new global::System.Data.DataColumn("RowNum", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRowNum); + this.columnRowNum.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RigheMacchineRow NewRigheMacchineRow() { + return ((RigheMacchineRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new RigheMacchineRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(RigheMacchineRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.RigheMacchineRowChanged != null)) { + this.RigheMacchineRowChanged(this, new RigheMacchineRowChangeEvent(((RigheMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.RigheMacchineRowChanging != null)) { + this.RigheMacchineRowChanging(this, new RigheMacchineRowChangeEvent(((RigheMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.RigheMacchineRowDeleted != null)) { + this.RigheMacchineRowDeleted(this, new RigheMacchineRowChangeEvent(((RigheMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.RigheMacchineRowDeleting != null)) { + this.RigheMacchineRowDeleting(this, new RigheMacchineRowChangeEvent(((RigheMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveRigheMacchineRow(RigheMacchineRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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_applicazione ds = new DS_applicazione(); + 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 = "RigheMacchineDataTable"; + 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. /// @@ -10257,6 +10586,39 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string css { + get { + return ((string)(this[this.tableMacchine.cssColumn])); + } + set { + this[this.tableMacchine.cssColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int RowNum { + get { + return ((int)(this[this.tableMacchine.RowNumColumn])); + } + set { + this[this.tableMacchine.RowNumColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ColNum { + get { + return ((int)(this[this.tableMacchine.ColNumColumn])); + } + set { + this[this.tableMacchine.ColNumColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsCodMacchinaNull() { @@ -14118,6 +14480,32 @@ namespace MapoDb { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class RigheMacchineRow : global::System.Data.DataRow { + + private RigheMacchineDataTable tableRigheMacchine; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal RigheMacchineRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableRigheMacchine = ((RigheMacchineDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int RowNum { + get { + return ((int)(this[this.tableRigheMacchine.RowNumColumn])); + } + set { + this[this.tableRigheMacchine.RowNumColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -15001,6 +15389,40 @@ namespace MapoDb { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class RigheMacchineRowChangeEvent : global::System.EventArgs { + + private RigheMacchineRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RigheMacchineRowChangeEvent(RigheMacchineRow 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", "16.0.0.0")] + public RigheMacchineRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace MapoDb.DS_applicazioneTableAdapters { @@ -15693,10 +16115,13 @@ namespace MapoDb.DS_applicazioneTableAdapters { tableMapping.ColumnMappings.Add("Note", "Note"); tableMapping.ColumnMappings.Add("url", "url"); tableMapping.ColumnMappings.Add("locazione", "locazione"); + tableMapping.ColumnMappings.Add("css", "css"); + tableMapping.ColumnMappings.Add("RowNum", "RowNum"); + tableMapping.ColumnMappings.Add("ColNum", "ColNum"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Macchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione)))"; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Macchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione)) AND ([css] = @Original_css) AND ([RowNum] = @Original_RowNum) AND ([ColNum] = @Original_ColNum))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -15710,13 +16135,14 @@ namespace MapoDb.DS_applicazioneTableAdapters { this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_url", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_locazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_locazione", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_locazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_css", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "css", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RowNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RowNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ColNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @" - INSERT INTO [dbo].[Macchine] ([IdxMacchina], [CodMacchina], [Nome], [Descrizione], [Note], [url], [locazione]) VALUES (@IdxMacchina, @CodMacchina, @Nome, @Descrizione, @Note, @url, @locazione); - SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM Macchine WHERE (IdxMacchina = @IdxMacchina) - "; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Macchine] ([IdxMacchina], [CodMacchina], [Nome], [Descrizione], [Note], [url], [locazione], [css], [RowNum], [ColNum]) VALUES (@IdxMacchina, @CodMacchina, @Nome, @Descrizione, @Note, @url, @locazione, @css, @RowNum, @ColNum); +SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione, css, RowNum, ColNum FROM Macchine WHERE (IdxMacchina = @IdxMacchina)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -15724,13 +16150,14 @@ namespace MapoDb.DS_applicazioneTableAdapters { this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@locazione", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@locazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@css", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "css", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RowNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RowNum", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ColNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColNum", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @" - UPDATE [dbo].[Macchine] SET [IdxMacchina] = @IdxMacchina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [Descrizione] = @Descrizione, [Note] = @Note, [url] = @url, [locazione] = @locazione WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione))); - SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM Macchine WHERE (IdxMacchina = @IdxMacchina) - "; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Macchine] SET [IdxMacchina] = @IdxMacchina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [Descrizione] = @Descrizione, [Note] = @Note, [url] = @url, [locazione] = @locazione, [css] = @css, [RowNum] = @RowNum, [ColNum] = @ColNum WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione)) AND ([css] = @Original_css) AND ([RowNum] = @Original_RowNum) AND ([ColNum] = @Original_ColNum)); +SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione, css, RowNum, ColNum FROM Macchine WHERE (IdxMacchina = @IdxMacchina)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -15738,7 +16165,10 @@ namespace MapoDb.DS_applicazioneTableAdapters { this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@locazione", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@locazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@css", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "css", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RowNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RowNum", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ColNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColNum", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -15751,7 +16181,10 @@ namespace MapoDb.DS_applicazioneTableAdapters { this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_url", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_locazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_locazione", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_locazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_css", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "css", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RowNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RowNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ColNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -15764,11 +16197,10 @@ namespace MapoDb.DS_applicazioneTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM dbo" + - ".Macchine"; + this._commandCollection[0].CommandText = "SELECT *\r\n FROM dbo.Macchine"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -15783,6 +16215,12 @@ namespace MapoDb.DS_applicazioneTableAdapters { this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_AM_getByRows"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RowNum", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -15849,6 +16287,23 @@ namespace MapoDb.DS_applicazioneTableAdapters { return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.MacchineDataTable getByRows(global::System.Nullable RowNum) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((RowNum.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(RowNum.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_applicazione.MacchineDataTable dataTable = new DS_applicazione.MacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -15882,7 +16337,7 @@ namespace MapoDb.DS_applicazioneTableAdapters { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(string Original_IdxMacchina, string Original_CodMacchina, string Original_Nome, string Original_Descrizione, string Original_Note, string Original_url, string Original_locazione) { + public virtual int Delete(string Original_IdxMacchina, string Original_CodMacchina, string Original_Nome, string Original_Descrizione, string Original_Note, string Original_url, string Original_locazione, string Original_css, int Original_RowNum, int Original_ColNum) { if ((Original_IdxMacchina == null)) { throw new global::System.ArgumentNullException("Original_IdxMacchina"); } @@ -15937,6 +16392,14 @@ namespace MapoDb.DS_applicazioneTableAdapters { this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_locazione)); } + if ((Original_css == null)) { + throw new global::System.ArgumentNullException("Original_css"); + } + else { + this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_css)); + } + this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_RowNum)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_ColNum)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -15957,7 +16420,7 @@ namespace MapoDb.DS_applicazioneTableAdapters { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(string IdxMacchina, string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione) { + public virtual int Insert(string IdxMacchina, string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione, string css, int RowNum, int ColNum) { if ((IdxMacchina == null)) { throw new global::System.ArgumentNullException("IdxMacchina"); } @@ -16000,6 +16463,14 @@ namespace MapoDb.DS_applicazioneTableAdapters { else { this.Adapter.InsertCommand.Parameters[6].Value = ((string)(locazione)); } + if ((css == null)) { + throw new global::System.ArgumentNullException("css"); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = ((string)(css)); + } + this.Adapter.InsertCommand.Parameters[8].Value = ((int)(RowNum)); + this.Adapter.InsertCommand.Parameters[9].Value = ((int)(ColNum)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -16020,7 +16491,27 @@ namespace MapoDb.DS_applicazioneTableAdapters { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string IdxMacchina, string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione, string Original_IdxMacchina, string Original_CodMacchina, string Original_Nome, string Original_Descrizione, string Original_Note, string Original_url, string Original_locazione) { + public virtual int Update( + string IdxMacchina, + string CodMacchina, + string Nome, + string Descrizione, + string Note, + string url, + string locazione, + string css, + int RowNum, + int ColNum, + string Original_IdxMacchina, + string Original_CodMacchina, + string Original_Nome, + string Original_Descrizione, + string Original_Note, + string Original_url, + string Original_locazione, + string Original_css, + int Original_RowNum, + int Original_ColNum) { if ((IdxMacchina == null)) { throw new global::System.ArgumentNullException("IdxMacchina"); } @@ -16063,60 +16554,76 @@ namespace MapoDb.DS_applicazioneTableAdapters { else { this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(locazione)); } + if ((css == null)) { + throw new global::System.ArgumentNullException("css"); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(css)); + } + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(RowNum)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(ColNum)); if ((Original_IdxMacchina == null)) { throw new global::System.ArgumentNullException("Original_IdxMacchina"); } else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_IdxMacchina)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_IdxMacchina)); } if ((Original_CodMacchina == null)) { - this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodMacchina)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_CodMacchina)); } if ((Original_Nome == null)) { - this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Nome)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Nome)); } if ((Original_Descrizione == null)) { - this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Descrizione)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Descrizione)); } if ((Original_Note == null)) { - this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Note)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Note)); } if ((Original_url == null)) { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_url)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_url)); } if ((Original_locazione == null)) { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_locazione)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_locazione)); } + if ((Original_css == null)) { + throw new global::System.ArgumentNullException("Original_css"); + } + else { + this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_css)); + } + this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(Original_RowNum)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_ColNum)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -16137,8 +16644,27 @@ namespace MapoDb.DS_applicazioneTableAdapters { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione, string Original_IdxMacchina, string Original_CodMacchina, string Original_Nome, string Original_Descrizione, string Original_Note, string Original_url, string Original_locazione) { - return this.Update(Original_IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione, Original_IdxMacchina, Original_CodMacchina, Original_Nome, Original_Descrizione, Original_Note, Original_url, Original_locazione); + public virtual int Update( + string CodMacchina, + string Nome, + string Descrizione, + string Note, + string url, + string locazione, + string css, + int RowNum, + int ColNum, + string Original_IdxMacchina, + string Original_CodMacchina, + string Original_Nome, + string Original_Descrizione, + string Original_Note, + string Original_url, + string Original_locazione, + string Original_css, + int Original_RowNum, + int Original_ColNum) { + return this.Update(Original_IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione, css, RowNum, ColNum, Original_IdxMacchina, Original_CodMacchina, Original_Nome, Original_Descrizione, Original_Note, Original_url, Original_locazione, Original_css, Original_RowNum, Original_ColNum); } } @@ -27111,6 +27637,146 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER return this.Update(Original_CodGruppo, TipoGruppo, DescrGruppo, SelEnabled, Original_CodGruppo, Original_TipoGruppo, Original_DescrGruppo, Original_SelEnabled); } } + + /// + ///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 RigheMacchineTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RigheMacchineTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private 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", "16.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", "16.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", "16.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", "16.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 = "RigheMacchine"; + tableMapping.ColumnMappings.Add("RowNum", "RowNum"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 = "dbo.stp_AM_getRows"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].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, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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_applicazione.RigheMacchineDataTable 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", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.RigheMacchineDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.RigheMacchineDataTable dataTable = new DS_applicazione.RigheMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } } #pragma warning restore 1591 \ No newline at end of file diff --git a/MapoDb/DS_applicazione.xsd b/MapoDb/DS_applicazione.xsd index ef12bbd3..be3df2d8 100644 --- a/MapoDb/DS_applicazione.xsd +++ b/MapoDb/DS_applicazione.xsd @@ -112,10 +112,10 @@ - + - DELETE FROM [dbo].[Macchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione))) + DELETE FROM [dbo].[Macchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione)) AND ([css] = @Original_css) AND ([RowNum] = @Original_RowNum) AND ([ColNum] = @Original_ColNum)) @@ -129,16 +129,17 @@ - + + + + - - INSERT INTO [dbo].[Macchine] ([IdxMacchina], [CodMacchina], [Nome], [Descrizione], [Note], [url], [locazione]) VALUES (@IdxMacchina, @CodMacchina, @Nome, @Descrizione, @Note, @url, @locazione); - SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM Macchine WHERE (IdxMacchina = @IdxMacchina) - + INSERT INTO [dbo].[Macchine] ([IdxMacchina], [CodMacchina], [Nome], [Descrizione], [Note], [url], [locazione], [css], [RowNum], [ColNum]) VALUES (@IdxMacchina, @CodMacchina, @Nome, @Descrizione, @Note, @url, @locazione, @css, @RowNum, @ColNum); +SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione, css, RowNum, ColNum FROM Macchine WHERE (IdxMacchina = @IdxMacchina) @@ -146,22 +147,24 @@ - + + + + - - SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM dbo.Macchine + + SELECT * + FROM dbo.Macchine - - UPDATE [dbo].[Macchine] SET [IdxMacchina] = @IdxMacchina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [Descrizione] = @Descrizione, [Note] = @Note, [url] = @url, [locazione] = @locazione WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione))); - SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM Macchine WHERE (IdxMacchina = @IdxMacchina) - + UPDATE [dbo].[Macchine] SET [IdxMacchina] = @IdxMacchina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [Descrizione] = @Descrizione, [Note] = @Note, [url] = @url, [locazione] = @locazione, [css] = @css, [RowNum] = @RowNum, [ColNum] = @ColNum WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione)) AND ([css] = @Original_css) AND ([RowNum] = @Original_RowNum) AND ([ColNum] = @Original_ColNum)); +SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione, css, RowNum, ColNum FROM Macchine WHERE (IdxMacchina = @IdxMacchina) @@ -169,7 +172,10 @@ - + + + + @@ -182,7 +188,10 @@ - + + + + @@ -196,6 +205,9 @@ + + + @@ -221,6 +233,17 @@ + + + + dbo.stp_AM_getByRows + + + + + + + @@ -2602,6 +2625,24 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER + + + + + + dbo.stp_AM_getRows + + + + + + + + + + + + @@ -2690,6 +2731,15 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER + + + + + + + + + @@ -3038,7 +3088,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - + @@ -3060,7 +3110,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - + @@ -3096,7 +3146,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - + @@ -3132,7 +3182,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - + @@ -3149,7 +3199,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - + @@ -3173,7 +3223,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - + @@ -3215,7 +3265,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - + @@ -3294,7 +3344,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - + @@ -3323,7 +3373,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - + @@ -3351,6 +3401,13 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER + + + + + + + @@ -3475,26 +3532,26 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/MapoDb.cs b/MapoDb/MapoDb.cs index 8aef938f..3ecda52f 100644 --- a/MapoDb/MapoDb.cs +++ b/MapoDb/MapoDb.cs @@ -156,7 +156,7 @@ namespace MapoDb if (taMacchine.GetByIdx(IdxMacchina).Rows.Count == 0) { // inserisco nuova macchina... - taMacchine.Insert(IdxMacchina, "9999", IdxMacchina, "Macchina non codificata", "-", "http://", "nd"); + taMacchine.Insert(IdxMacchina, "9999", IdxMacchina, "Macchina non codificata", "-", "http://", "nd","col", 0, 0); } // verifico ci sia un microstato macchina... if (taMSM.getByIdxMacchina(IdxMacchina).Rows.Count == 0)