diff --git a/MapoDb/DS_applicazione.Designer.cs b/MapoDb/DS_applicazione.Designer.cs index 6cf0d524..1aa28b33 100644 --- a/MapoDb/DS_applicazione.Designer.cs +++ b/MapoDb/DS_applicazione.Designer.cs @@ -10475,6 +10475,8 @@ namespace MapoDb { private global::System.Data.DataColumn columnDisplOrd; + private global::System.Data.DataColumn columnCssClass; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public AnagTagsDataTable() { @@ -10532,6 +10534,14 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CssClassColumn { + get { + return this.columnCssClass; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -10569,12 +10579,13 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public AnagTagsRow AddAnagTagsRow(string TagCode, string TagDescr, int DisplOrd) { + public AnagTagsRow AddAnagTagsRow(string TagCode, string TagDescr, int DisplOrd, string CssClass) { AnagTagsRow rowAnagTagsRow = ((AnagTagsRow)(this.NewRow())); object[] columnValuesArray = new object[] { TagCode, TagDescr, - DisplOrd}; + DisplOrd, + CssClass}; rowAnagTagsRow.ItemArray = columnValuesArray; this.Rows.Add(rowAnagTagsRow); return rowAnagTagsRow; @@ -10607,6 +10618,7 @@ namespace MapoDb { this.columnTagCode = base.Columns["TagCode"]; this.columnTagDescr = base.Columns["TagDescr"]; this.columnDisplOrd = base.Columns["DisplOrd"]; + this.columnCssClass = base.Columns["CssClass"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10618,6 +10630,8 @@ namespace MapoDb { base.Columns.Add(this.columnTagDescr); this.columnDisplOrd = new global::System.Data.DataColumn("DisplOrd", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDisplOrd); + this.columnCssClass = new global::System.Data.DataColumn("CssClass", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCssClass); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnTagCode}, true)); this.columnTagCode.AllowDBNull = false; @@ -10626,6 +10640,8 @@ namespace MapoDb { this.columnTagDescr.AllowDBNull = false; this.columnTagDescr.MaxLength = 250; this.columnDisplOrd.AllowDBNull = false; + this.columnCssClass.AllowDBNull = false; + this.columnCssClass.MaxLength = 250; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10771,6 +10787,10 @@ namespace MapoDb { private global::System.Data.DataColumn columnValString; + private global::System.Data.DataColumn columnCognNome; + + private global::System.Data.DataColumn columnCssClass; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public DiarioDichiarazioniDataTable() { @@ -10852,6 +10872,22 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CognNomeColumn { + get { + return this.columnCognNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CssClassColumn { + get { + return this.columnCssClass; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -10889,7 +10925,7 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public DiarioDichiarazioniRow AddDiarioDichiarazioniRow(System.DateTime DtRec, string IdxMacchina, AnagTagsRow parentAnagTagsRowByFK_AnagTags_DiarioDichiarazioni, int MatrOpr, string ValString) { + public DiarioDichiarazioniRow AddDiarioDichiarazioniRow(System.DateTime DtRec, string IdxMacchina, AnagTagsRow parentAnagTagsRowByFK_AnagTags_DiarioDichiarazioni, int MatrOpr, string ValString, string CognNome, string CssClass) { DiarioDichiarazioniRow rowDiarioDichiarazioniRow = ((DiarioDichiarazioniRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -10897,7 +10933,9 @@ namespace MapoDb { IdxMacchina, null, MatrOpr, - ValString}; + ValString, + CognNome, + CssClass}; if ((parentAnagTagsRowByFK_AnagTags_DiarioDichiarazioni != null)) { columnValuesArray[3] = parentAnagTagsRowByFK_AnagTags_DiarioDichiarazioni[0]; } @@ -10936,6 +10974,8 @@ namespace MapoDb { this.columnTagCode = base.Columns["TagCode"]; this.columnMatrOpr = base.Columns["MatrOpr"]; this.columnValString = base.Columns["ValString"]; + this.columnCognNome = base.Columns["CognNome"]; + this.columnCssClass = base.Columns["CssClass"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10953,6 +10993,10 @@ namespace MapoDb { base.Columns.Add(this.columnMatrOpr); this.columnValString = new global::System.Data.DataColumn("ValString", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnValString); + this.columnCognNome = new global::System.Data.DataColumn("CognNome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognNome); + this.columnCssClass = new global::System.Data.DataColumn("CssClass", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCssClass); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint2", new global::System.Data.DataColumn[] { this.columnIdxDich}, true)); this.columnIdxDich.AutoIncrement = true; @@ -10969,6 +11013,10 @@ namespace MapoDb { this.columnMatrOpr.AllowDBNull = false; this.columnValString.AllowDBNull = false; this.columnValString.MaxLength = 250; + this.columnCognNome.ReadOnly = true; + this.columnCognNome.MaxLength = 101; + this.columnCssClass.ReadOnly = true; + this.columnCssClass.MaxLength = 250; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -15318,6 +15366,17 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CssClass { + get { + return ((string)(this[this.tableAnagTags.CssClassColumn])); + } + set { + this[this.tableAnagTags.CssClassColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public DiarioDichiarazioniRow[] GetDiarioDichiarazioniRows() { @@ -15410,6 +15469,38 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CognNome { + get { + try { + return ((string)(this[this.tableDiarioDichiarazioni.CognNomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CognNome\' in table \'DiarioDichiarazioni\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDichiarazioni.CognNomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CssClass { + get { + try { + return ((string)(this[this.tableDiarioDichiarazioni.CssClassColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CssClass\' in table \'DiarioDichiarazioni\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDichiarazioni.CssClassColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public AnagTagsRow AnagTagsRow { @@ -15420,6 +15511,30 @@ namespace MapoDb { this.SetParentRow(value, this.Table.ParentRelations["FK_AnagTags_DiarioDichiarazioni"]); } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsCognNomeNull() { + return this.IsNull(this.tableDiarioDichiarazioni.CognNomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetCognNomeNull() { + this[this.tableDiarioDichiarazioni.CognNomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsCssClassNull() { + return this.IsNull(this.tableDiarioDichiarazioni.CssClassColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetCssClassNull() { + this[this.tableDiarioDichiarazioni.CssClassColumn] = global::System.Convert.DBNull; + } } /// @@ -29093,35 +29208,41 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER tableMapping.ColumnMappings.Add("TagCode", "TagCode"); tableMapping.ColumnMappings.Add("TagDescr", "TagDescr"); tableMapping.ColumnMappings.Add("DisplOrd", "DisplOrd"); + tableMapping.ColumnMappings.Add("CssClass", "CssClass"); 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 [AnagTags] WHERE (([TagCode] = @Original_TagCode) AND ([TagDescr] = @" + - "Original_TagDescr) AND ([DisplOrd] = @Original_DisplOrd))"; + "Original_TagDescr) AND ([DisplOrd] = @Original_DisplOrd) AND ([CssClass] = @Orig" + + "inal_CssClass))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagDescr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DisplOrd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisplOrd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CssClass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CssClass", 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 [AnagTags] ([TagCode], [TagDescr], [DisplOrd]) VALUES (@TagCode, @Tag" + - "Descr, @DisplOrd);\r\nSELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagC" + - "ode = @TagCode)"; + this._adapter.InsertCommand.CommandText = "INSERT INTO [AnagTags] ([TagCode], [TagDescr], [DisplOrd], [CssClass]) VALUES (@T" + + "agCode, @TagDescr, @DisplOrd, @CssClass);\r\nSELECT TagCode, TagDescr, DisplOrd, C" + + "ssClass FROM AnagTags WHERE (TagCode = @TagCode)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagDescr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DisplOrd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisplOrd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CssClass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CssClass", 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 [AnagTags] SET [TagCode] = @TagCode, [TagDescr] = @TagDescr, [DisplOrd] = @DisplOrd WHERE (([TagCode] = @Original_TagCode) AND ([TagDescr] = @Original_TagDescr) AND ([DisplOrd] = @Original_DisplOrd)); -SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; + this._adapter.UpdateCommand.CommandText = @"UPDATE [AnagTags] SET [TagCode] = @TagCode, [TagDescr] = @TagDescr, [DisplOrd] = @DisplOrd, [CssClass] = @CssClass WHERE (([TagCode] = @Original_TagCode) AND ([TagDescr] = @Original_TagDescr) AND ([DisplOrd] = @Original_DisplOrd) AND ([CssClass] = @Original_CssClass)); +SELECT TagCode, TagDescr, DisplOrd, CssClass FROM AnagTags WHERE (TagCode = @TagCode)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagDescr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DisplOrd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisplOrd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CssClass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CssClass", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagDescr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DisplOrd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisplOrd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CssClass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CssClass", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -29134,11 +29255,16 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 * FROM AnagTags"; 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_AT_getOrd"; + 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, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -29165,6 +29291,17 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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.AnagTagsDataTable getOrd() { + this.Adapter.SelectCommand = this.CommandCollection[1]; + DS_applicazione.AnagTagsDataTable dataTable = new DS_applicazione.AnagTagsDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -29198,7 +29335,7 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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_TagCode, string Original_TagDescr, int Original_DisplOrd) { + public virtual int Delete(string Original_TagCode, string Original_TagDescr, int Original_DisplOrd, string Original_CssClass) { if ((Original_TagCode == null)) { throw new global::System.ArgumentNullException("Original_TagCode"); } @@ -29212,6 +29349,12 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_TagDescr)); } this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_DisplOrd)); + if ((Original_CssClass == null)) { + throw new global::System.ArgumentNullException("Original_CssClass"); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_CssClass)); + } 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)) { @@ -29232,7 +29375,7 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 TagCode, string TagDescr, int DisplOrd) { + public virtual int Insert(string TagCode, string TagDescr, int DisplOrd, string CssClass) { if ((TagCode == null)) { throw new global::System.ArgumentNullException("TagCode"); } @@ -29246,6 +29389,12 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; this.Adapter.InsertCommand.Parameters[1].Value = ((string)(TagDescr)); } this.Adapter.InsertCommand.Parameters[2].Value = ((int)(DisplOrd)); + if ((CssClass == null)) { + throw new global::System.ArgumentNullException("CssClass"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CssClass)); + } 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)) { @@ -29266,7 +29415,7 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 TagCode, string TagDescr, int DisplOrd, string Original_TagCode, string Original_TagDescr, int Original_DisplOrd) { + public virtual int Update(string TagCode, string TagDescr, int DisplOrd, string CssClass, string Original_TagCode, string Original_TagDescr, int Original_DisplOrd, string Original_CssClass) { if ((TagCode == null)) { throw new global::System.ArgumentNullException("TagCode"); } @@ -29280,19 +29429,31 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(TagDescr)); } this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(DisplOrd)); + if ((CssClass == null)) { + throw new global::System.ArgumentNullException("CssClass"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CssClass)); + } if ((Original_TagCode == null)) { throw new global::System.ArgumentNullException("Original_TagCode"); } else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_TagCode)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TagCode)); } if ((Original_TagDescr == null)) { throw new global::System.ArgumentNullException("Original_TagDescr"); } else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TagDescr)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_TagDescr)); + } + this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_DisplOrd)); + if ((Original_CssClass == null)) { + throw new global::System.ArgumentNullException("Original_CssClass"); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CssClass)); } - this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_DisplOrd)); 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)) { @@ -29313,8 +29474,8 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 TagDescr, int DisplOrd, string Original_TagCode, string Original_TagDescr, int Original_DisplOrd) { - return this.Update(Original_TagCode, TagDescr, DisplOrd, Original_TagCode, Original_TagDescr, Original_DisplOrd); + public virtual int Update(string TagDescr, int DisplOrd, string CssClass, string Original_TagCode, string Original_TagDescr, int Original_DisplOrd, string Original_CssClass) { + return this.Update(Original_TagCode, TagDescr, DisplOrd, CssClass, Original_TagCode, Original_TagDescr, Original_DisplOrd, Original_CssClass); } } @@ -29417,44 +29578,9 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode)"; tableMapping.ColumnMappings.Add("TagCode", "TagCode"); tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); tableMapping.ColumnMappings.Add("ValString", "ValString"); + tableMapping.ColumnMappings.Add("CognNome", "CognNome"); + tableMapping.ColumnMappings.Add("CssClass", "CssClass"); 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 [DiarioDichiarazioni] WHERE (([IdxDich] = @Original_IdxDich) AND ([DtRec] = @Original_DtRec) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([TagCode] = @Original_TagCode) AND ([MatrOpr] = @Original_MatrOpr) AND ([ValString] = @Original_ValString))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDich", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDich", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtRec", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRec", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - 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("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValString", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValString", 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 [DiarioDichiarazioni] ([DtRec], [IdxMacchina], [TagCode], [MatrOpr], [ValString]) VALUES (@DtRec, @IdxMacchina, @TagCode, @MatrOpr, @ValString); -SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichiarazioni WHERE (IdxDich = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtRec", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRec", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - 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("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValString", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValString", 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 [DiarioDichiarazioni] SET [DtRec] = @DtRec, [IdxMacchina] = @IdxMacchina, [TagCode] = @TagCode, [MatrOpr] = @MatrOpr, [ValString] = @ValString WHERE (([IdxDich] = @Original_IdxDich) AND ([DtRec] = @Original_DtRec) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([TagCode] = @Original_TagCode) AND ([MatrOpr] = @Original_MatrOpr) AND ([ValString] = @Original_ValString)); -SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichiarazioni WHERE (IdxDich = @IdxDich)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtRec", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRec", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - 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("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValString", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValString", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDich", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDich", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtRec", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRec", global::System.Data.DataRowVersion.Original, 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("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValString", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValString", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDich", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -29470,7 +29596,7 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\r\nFROM DiarioDichiarazioni"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_DD_exp\r\n"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -29486,6 +29612,7 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtStart", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEnd", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); @@ -29505,10 +29632,9 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtRec", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValString", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", 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()] @@ -29539,7 +29665,7 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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.DiarioDichiarazioniDataTable getFilt(string TagCode, string IdxMacchina, global::System.Nullable MatrOpr, global::System.Nullable DtStart, global::System.Nullable DtEnd) { + public virtual DS_applicazione.DiarioDichiarazioniDataTable getFilt(string TagCode, string IdxMacchina, global::System.Nullable MatrOpr, global::System.Nullable IdxODL, global::System.Nullable DtStart, global::System.Nullable DtEnd) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((TagCode == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -29559,206 +29685,29 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi else { this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; } - if ((DtStart.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[4].Value = ((System.DateTime)(DtStart.Value)); + if ((IdxODL.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((int)(IdxODL.Value)); } else { this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; } - if ((DtEnd.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[5].Value = ((System.DateTime)(DtEnd.Value)); + if ((DtStart.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((System.DateTime)(DtStart.Value)); } else { this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; } + if ((DtEnd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((System.DateTime)(DtEnd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } DS_applicazione.DiarioDichiarazioniDataTable dataTable = new DS_applicazione.DiarioDichiarazioniDataTable(); this.Adapter.Fill(dataTable); return dataTable; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_applicazione.DiarioDichiarazioniDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_applicazione dataSet) { - return this.Adapter.Update(dataSet, "DiarioDichiarazioni"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(int Original_IdxDich, System.DateTime Original_DtRec, string Original_IdxMacchina, string Original_TagCode, int Original_MatrOpr, string Original_ValString) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxDich)); - this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_DtRec)); - if ((Original_IdxMacchina == null)) { - throw new global::System.ArgumentNullException("Original_IdxMacchina"); - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_IdxMacchina)); - } - if ((Original_TagCode == null)) { - throw new global::System.ArgumentNullException("Original_TagCode"); - } - else { - this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_TagCode)); - } - this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_MatrOpr)); - if ((Original_ValString == null)) { - throw new global::System.ArgumentNullException("Original_ValString"); - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_ValString)); - } - 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)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(System.DateTime DtRec, string IdxMacchina, string TagCode, int MatrOpr, string ValString) { - this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(DtRec)); - if ((IdxMacchina == null)) { - throw new global::System.ArgumentNullException("IdxMacchina"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(IdxMacchina)); - } - if ((TagCode == null)) { - throw new global::System.ArgumentNullException("TagCode"); - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(TagCode)); - } - this.Adapter.InsertCommand.Parameters[3].Value = ((int)(MatrOpr)); - if ((ValString == null)) { - throw new global::System.ArgumentNullException("ValString"); - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ValString)); - } - 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)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(System.DateTime DtRec, string IdxMacchina, string TagCode, int MatrOpr, string ValString, int Original_IdxDich, System.DateTime Original_DtRec, string Original_IdxMacchina, string Original_TagCode, int Original_MatrOpr, string Original_ValString, int IdxDich) { - this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(DtRec)); - if ((IdxMacchina == null)) { - throw new global::System.ArgumentNullException("IdxMacchina"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(IdxMacchina)); - } - if ((TagCode == null)) { - throw new global::System.ArgumentNullException("TagCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(TagCode)); - } - this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(MatrOpr)); - if ((ValString == null)) { - throw new global::System.ArgumentNullException("ValString"); - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ValString)); - } - this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxDich)); - this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_DtRec)); - if ((Original_IdxMacchina == null)) { - throw new global::System.ArgumentNullException("Original_IdxMacchina"); - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_IdxMacchina)); - } - if ((Original_TagCode == null)) { - throw new global::System.ArgumentNullException("Original_TagCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_TagCode)); - } - this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_MatrOpr)); - if ((Original_ValString == null)) { - throw new global::System.ArgumentNullException("Original_ValString"); - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ValString)); - } - this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(IdxDich)); - 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)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(System.DateTime DtRec, string IdxMacchina, string TagCode, int MatrOpr, string ValString, int Original_IdxDich, System.DateTime Original_DtRec, string Original_IdxMacchina, string Original_TagCode, int Original_MatrOpr, string Original_ValString) { - return this.Update(DtRec, IdxMacchina, TagCode, MatrOpr, ValString, Original_IdxDich, Original_DtRec, Original_IdxMacchina, Original_TagCode, Original_MatrOpr, Original_ValString, Original_IdxDich); - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -29842,7 +29791,7 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int updateQuery(global::System.Nullable Original_IdxDich, global::System.Nullable DtRec, string IdxMacchina, string TagCode, global::System.Nullable MatrOpr, string ValString) { + public virtual int updateQuery(global::System.Nullable Original_IdxDich, global::System.Nullable DtRec, string TagCode, string ValString, global::System.Nullable MatrOpr) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((Original_IdxDich.HasValue == true)) { command.Parameters[1].Value = ((int)(Original_IdxDich.Value)); @@ -29856,17 +29805,17 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi else { command.Parameters[2].Value = global::System.DBNull.Value; } - if ((IdxMacchina == null)) { + if ((TagCode == null)) { command.Parameters[3].Value = global::System.DBNull.Value; } else { - command.Parameters[3].Value = ((string)(IdxMacchina)); + command.Parameters[3].Value = ((string)(TagCode)); } - if ((TagCode == null)) { + if ((ValString == null)) { command.Parameters[4].Value = global::System.DBNull.Value; } else { - command.Parameters[4].Value = ((string)(TagCode)); + command.Parameters[4].Value = ((string)(ValString)); } if ((MatrOpr.HasValue == true)) { command.Parameters[5].Value = ((int)(MatrOpr.Value)); @@ -29874,12 +29823,6 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi else { command.Parameters[5].Value = global::System.DBNull.Value; } - if ((ValString == null)) { - command.Parameters[6].Value = global::System.DBNull.Value; - } - else { - command.Parameters[6].Value = ((string)(ValString)); - } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { diff --git a/MapoDb/DS_applicazione.xsd b/MapoDb/DS_applicazione.xsd index 0c72bdc7..93631b33 100644 --- a/MapoDb/DS_applicazione.xsd +++ b/MapoDb/DS_applicazione.xsd @@ -2715,22 +2715,24 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER - DELETE FROM [AnagTags] WHERE (([TagCode] = @Original_TagCode) AND ([TagDescr] = @Original_TagDescr) AND ([DisplOrd] = @Original_DisplOrd)) + DELETE FROM [AnagTags] WHERE (([TagCode] = @Original_TagCode) AND ([TagDescr] = @Original_TagDescr) AND ([DisplOrd] = @Original_DisplOrd) AND ([CssClass] = @Original_CssClass)) + - INSERT INTO [AnagTags] ([TagCode], [TagDescr], [DisplOrd]) VALUES (@TagCode, @TagDescr, @DisplOrd); -SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode) + INSERT INTO [AnagTags] ([TagCode], [TagDescr], [DisplOrd], [CssClass]) VALUES (@TagCode, @TagDescr, @DisplOrd, @CssClass); +SELECT TagCode, TagDescr, DisplOrd, CssClass FROM AnagTags WHERE (TagCode = @TagCode) + @@ -2742,15 +2744,17 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode) - UPDATE [AnagTags] SET [TagCode] = @TagCode, [TagDescr] = @TagDescr, [DisplOrd] = @DisplOrd WHERE (([TagCode] = @Original_TagCode) AND ([TagDescr] = @Original_TagDescr) AND ([DisplOrd] = @Original_DisplOrd)); -SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode) + UPDATE [AnagTags] SET [TagCode] = @TagCode, [TagDescr] = @TagDescr, [DisplOrd] = @DisplOrd, [CssClass] = @CssClass WHERE (([TagCode] = @Original_TagCode) AND ([TagDescr] = @Original_TagDescr) AND ([DisplOrd] = @Original_DisplOrd) AND ([CssClass] = @Original_CssClass)); +SELECT TagCode, TagDescr, DisplOrd, CssClass FROM AnagTags WHERE (TagCode = @TagCode) + + @@ -2760,65 +2764,32 @@ SELECT TagCode, TagDescr, DisplOrd FROM AnagTags WHERE (TagCode = @TagCode) + - + + + + + dbo.stp_AT_getOrd + + + + + + + - - - - DELETE FROM [DiarioDichiarazioni] WHERE (([IdxDich] = @Original_IdxDich) AND ([DtRec] = @Original_DtRec) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([TagCode] = @Original_TagCode) AND ([MatrOpr] = @Original_MatrOpr) AND ([ValString] = @Original_ValString)) - - - - - - - - - - - - - INSERT INTO [DiarioDichiarazioni] ([DtRec], [IdxMacchina], [TagCode], [MatrOpr], [ValString]) VALUES (@DtRec, @IdxMacchina, @TagCode, @MatrOpr, @ValString); -SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichiarazioni WHERE (IdxDich = SCOPE_IDENTITY()) - - - - - - - - - + SELECT * -FROM DiarioDichiarazioni +FROM v_DD_exp + - - - UPDATE [DiarioDichiarazioni] SET [DtRec] = @DtRec, [IdxMacchina] = @IdxMacchina, [TagCode] = @TagCode, [MatrOpr] = @MatrOpr, [ValString] = @ValString WHERE (([IdxDich] = @Original_IdxDich) AND ([DtRec] = @Original_DtRec) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([TagCode] = @Original_TagCode) AND ([MatrOpr] = @Original_MatrOpr) AND ([ValString] = @Original_ValString)); -SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichiarazioni WHERE (IdxDich = @IdxDich) - - - - - - - - - - - - - - - - @@ -2828,6 +2799,8 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi + + @@ -2850,6 +2823,7 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi + @@ -2879,10 +2853,9 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi - - + @@ -3674,6 +3647,13 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi + + + + + + + @@ -3704,6 +3684,20 @@ SELECT IdxDich, DtRec, IdxMacchina, TagCode, MatrOpr, ValString FROM DiarioDichi + + + + + + + + + + + + + + diff --git a/MapoDb/DS_applicazione.xss b/MapoDb/DS_applicazione.xss index c5a966eb..aec6f245 100644 --- a/MapoDb/DS_applicazione.xss +++ b/MapoDb/DS_applicazione.xss @@ -4,37 +4,37 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -45,7 +45,7 @@ 667 - 850 + 830 @@ -53,7 +53,7 @@ 699 - 620 + 648 699 @@ -64,7 +64,7 @@ - 815 + 768 1061 @@ -73,18 +73,18 @@ - + 636 - 620 + 648 636 787 - 304 + 268 787 @@ -93,7 +93,7 @@ 444 - 704 + 664 444 @@ -108,7 +108,7 @@ - 580 + 537 658 @@ -120,7 +120,7 @@ 795 - 304 + 268 795 @@ -128,7 +128,7 @@ - 890 + 896 359 @@ -137,7 +137,7 @@ - + 1285 @@ -181,7 +181,7 @@ 356 - 416 + 344 @@ -201,7 +201,7 @@ 1444 - 386 + 362 1444 @@ -209,11 +209,11 @@ - + 716 - 620 + 648 716 @@ -221,19 +221,19 @@ - + - 943 - 1231 + 897 + 1181 - 896 - 1231 + 834 + 1181 - + 1285 @@ -245,31 +245,35 @@ 1238 - 1626 + 1746 901 - 1626 + 1746 - + - 960 - 1347 + 933 + 1277 - 960 - 1634 + 933 + 1539 - 901 - 1634 + 837 + 1539 + + + 837 + 1610 - + 965 @@ -281,11 +285,11 @@ 513 - 416 + 344 - + 1108 @@ -293,27 +297,27 @@ 1108 - 487 + 431 - + 982 - 914 + 870 982 1002 - 304 + 268 1002 - + 627 @@ -325,15 +329,15 @@ - + - 436 - 1619 + 456 + 1519 - 436 - 1658 + 456 + 1566