diff --git a/GMW/DtxExtraCiclo.aspx b/GMW/DtxExtraCiclo.aspx new file mode 100644 index 00000000..8b83fbcb --- /dev/null +++ b/GMW/DtxExtraCiclo.aspx @@ -0,0 +1,7 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="DtxExtraCiclo.aspx.cs" Inherits="GMW.DtxExtraCiclo" %> + + + + + + diff --git a/GMW/DtxExtraCiclo.aspx.cs b/GMW/DtxExtraCiclo.aspx.cs new file mode 100644 index 00000000..b0a47ac6 --- /dev/null +++ b/GMW/DtxExtraCiclo.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GMW +{ + public partial class DtxExtraCiclo : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GMW/DtxExtraCiclo.aspx.designer.cs b/GMW/DtxExtraCiclo.aspx.designer.cs new file mode 100644 index 00000000..914bdd01 --- /dev/null +++ b/GMW/DtxExtraCiclo.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW +{ + + + public partial class DtxExtraCiclo + { + } +} diff --git a/GMW/DtxProveDim.aspx b/GMW/DtxProveDim.aspx new file mode 100644 index 00000000..ee614ad6 --- /dev/null +++ b/GMW/DtxProveDim.aspx @@ -0,0 +1,11 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="DtxProveDim.aspx.cs" Inherits="GMW.DtxProveDim" %> + +<%@ Register src="WebUserControls/mod_recAttributiDtx.ascx" tagname="mod_recAttributiDtx" tagprefix="uc1" %> + + + + + + + + diff --git a/GMW/DtxProveDim.aspx.cs b/GMW/DtxProveDim.aspx.cs new file mode 100644 index 00000000..8fd6f9d7 --- /dev/null +++ b/GMW/DtxProveDim.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GMW +{ + public partial class DtxProveDim : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GMW/DtxProveDim.aspx.designer.cs b/GMW/DtxProveDim.aspx.designer.cs new file mode 100644 index 00000000..f4d15f43 --- /dev/null +++ b/GMW/DtxProveDim.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW { + + + public partial class DtxProveDim { + + /// + /// mod_recAttributiDtx1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GMW.WebUserControls.mod_recAttributiDtx mod_recAttributiDtx1; + } +} diff --git a/GMW/DtxProveDistr.aspx b/GMW/DtxProveDistr.aspx new file mode 100644 index 00000000..5bf9e2ec --- /dev/null +++ b/GMW/DtxProveDistr.aspx @@ -0,0 +1,7 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="DtxProveDistr.aspx.cs" Inherits="GMW.DtxProveDistr" %> + + + + + + diff --git a/GMW/DtxProveDistr.aspx.cs b/GMW/DtxProveDistr.aspx.cs new file mode 100644 index 00000000..bc17d20b --- /dev/null +++ b/GMW/DtxProveDistr.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GMW +{ + public partial class DtxProveDistr : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GMW/DtxProveDistr.aspx.designer.cs b/GMW/DtxProveDistr.aspx.designer.cs new file mode 100644 index 00000000..0428b33b --- /dev/null +++ b/GMW/DtxProveDistr.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW +{ + + + public partial class DtxProveDistr + { + } +} diff --git a/GMW/GMW.csproj b/GMW/GMW.csproj index 655c1a12..1157a86e 100644 --- a/GMW/GMW.csproj +++ b/GMW/GMW.csproj @@ -313,6 +313,9 @@ + + + @@ -418,6 +421,7 @@ + @@ -547,6 +551,27 @@ DettaglioBlocco.aspx + + DtxExtraCiclo.aspx + ASPXCodeBehind + + + DtxExtraCiclo.aspx + + + DtxProveDim.aspx + ASPXCodeBehind + + + DtxProveDim.aspx + + + DtxProveDistr.aspx + ASPXCodeBehind + + + DtxProveDistr.aspx + ElencoListePrelievo.aspx ASPXCodeBehind @@ -1384,6 +1409,13 @@ mod_PostTT_Pre_NT.ascx + + mod_recAttributiDtx.ascx + ASPXCodeBehind + + + mod_recAttributiDtx.ascx + mod_ricercaGenerica.ascx ASPXCodeBehind diff --git a/GMW/WebUserControls/mod_recAttributiDtx.ascx b/GMW/WebUserControls/mod_recAttributiDtx.ascx new file mode 100644 index 00000000..3824616d --- /dev/null +++ b/GMW/WebUserControls/mod_recAttributiDtx.ascx @@ -0,0 +1 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_recAttributiDtx.ascx.cs" Inherits="GMW.WebUserControls.mod_recAttributiDtx" %> diff --git a/GMW/WebUserControls/mod_recAttributiDtx.ascx.cs b/GMW/WebUserControls/mod_recAttributiDtx.ascx.cs new file mode 100644 index 00000000..faf57559 --- /dev/null +++ b/GMW/WebUserControls/mod_recAttributiDtx.ascx.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GMW.WebUserControls +{ + public partial class mod_recAttributiDtx : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + /// + /// tipologia di attributo registrato con DataMatrix + /// + public tipoAttrDtx tipologia { get; set; } + } +} +/// +/// TIpologia attributi legati a DTX ammessi/Gestiti +/// +public enum tipoAttrDtx +{ + /// + /// Gestione ExtraCiclo + /// + ExtraCiclo, + /// + /// Gestione prove dimensionali + /// + ProveDimensionali, + /// + /// Gestione prove distruttive + /// + ProveDistruttive +} diff --git a/GMW/WebUserControls/mod_recAttributiDtx.ascx.designer.cs b/GMW/WebUserControls/mod_recAttributiDtx.ascx.designer.cs new file mode 100644 index 00000000..3c8e0b4e --- /dev/null +++ b/GMW/WebUserControls/mod_recAttributiDtx.ascx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW.WebUserControls +{ + + + public partial class mod_recAttributiDtx + { + } +} diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index 53c0a135..dff4a96d 100644 Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll index 5623ce53..5bfdea12 100644 Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ diff --git a/GMW/bin/SteamWare.dll b/GMW/bin/SteamWare.dll index 218a8e71..11d11e1a 100644 Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ diff --git a/GMW/bin/VersGen.dll b/GMW/bin/VersGen.dll index b22a67ab..1f006652 100644 Binary files a/GMW/bin/VersGen.dll and b/GMW/bin/VersGen.dll differ diff --git a/GMW_data/DS_DataMatrix.Designer.cs b/GMW_data/DS_DataMatrix.Designer.cs index e044cdd1..3f9b9794 100644 --- a/GMW_data/DS_DataMatrix.Designer.cs +++ b/GMW_data/DS_DataMatrix.Designer.cs @@ -44,6 +44,8 @@ namespace GMW_data { private stp_DtxGetAvailFreeAnomDataTable tablestp_DtxGetAvailFreeAnom; + private Attr2DtxDataTable tableAttr2Dtx; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -102,6 +104,9 @@ namespace GMW_data { if ((ds.Tables["stp_DtxGetAvailFreeAnom"] != null)) { base.Tables.Add(new stp_DtxGetAvailFreeAnomDataTable(ds.Tables["stp_DtxGetAvailFreeAnom"])); } + if ((ds.Tables["Attr2Dtx"] != null)) { + base.Tables.Add(new Attr2DtxDataTable(ds.Tables["Attr2Dtx"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -220,6 +225,16 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public Attr2DtxDataTable Attr2Dtx { + get { + return this.tableAttr2Dtx; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -317,6 +332,9 @@ namespace GMW_data { if ((ds.Tables["stp_DtxGetAvailFreeAnom"] != null)) { base.Tables.Add(new stp_DtxGetAvailFreeAnomDataTable(ds.Tables["stp_DtxGetAvailFreeAnom"])); } + if ((ds.Tables["Attr2Dtx"] != null)) { + base.Tables.Add(new Attr2DtxDataTable(ds.Tables["Attr2Dtx"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -410,6 +428,12 @@ namespace GMW_data { this.tablestp_DtxGetAvailFreeAnom.InitVars(); } } + this.tableAttr2Dtx = ((Attr2DtxDataTable)(base.Tables["Attr2Dtx"])); + if ((initTable == true)) { + if ((this.tableAttr2Dtx != null)) { + this.tableAttr2Dtx.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -440,6 +464,8 @@ namespace GMW_data { base.Tables.Add(this.tableDtx2UDC); this.tablestp_DtxGetAvailFreeAnom = new stp_DtxGetAvailFreeAnomDataTable(); base.Tables.Add(this.tablestp_DtxGetAvailFreeAnom); + this.tableAttr2Dtx = new Attr2DtxDataTable(); + base.Tables.Add(this.tableAttr2Dtx); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -502,6 +528,12 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAttr2Dtx() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -587,6 +619,9 @@ namespace GMW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void stp_DtxGetAvailFreeAnomRowChangeEventHandler(object sender, stp_DtxGetAvailFreeAnomRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void Attr2DtxRowChangeEventHandler(object sender, Attr2DtxRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -3649,6 +3684,343 @@ namespace GMW_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class Attr2DtxDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxAttr; + + private global::System.Data.DataColumn columnDataMatrix; + + private global::System.Data.DataColumn columnCodAttr; + + private global::System.Data.DataColumn columnValAttr; + + private global::System.Data.DataColumn columnDateAttr; + + private global::System.Data.DataColumn columnCodSoggetto; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Attr2DtxDataTable() { + this.TableName = "Attr2Dtx"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Attr2DtxDataTable(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", "4.0.0.0")] + protected Attr2DtxDataTable(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", "4.0.0.0")] + public global::System.Data.DataColumn idxAttrColumn { + get { + return this.columnidxAttr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataMatrixColumn { + get { + return this.columnDataMatrix; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodAttrColumn { + get { + return this.columnCodAttr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ValAttrColumn { + get { + return this.columnValAttr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DateAttrColumn { + get { + return this.columnDateAttr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodSoggettoColumn { + get { + return this.columnCodSoggetto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")] + public Attr2DtxRow this[int index] { + get { + return ((Attr2DtxRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Attr2DtxRowChangeEventHandler Attr2DtxRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Attr2DtxRowChangeEventHandler Attr2DtxRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Attr2DtxRowChangeEventHandler Attr2DtxRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Attr2DtxRowChangeEventHandler Attr2DtxRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAttr2DtxRow(Attr2DtxRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Attr2DtxRow AddAttr2DtxRow(int idxAttr, string DataMatrix, string CodAttr, string ValAttr, System.DateTime DateAttr, string CodSoggetto) { + Attr2DtxRow rowAttr2DtxRow = ((Attr2DtxRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + idxAttr, + DataMatrix, + CodAttr, + ValAttr, + DateAttr, + CodSoggetto}; + rowAttr2DtxRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAttr2DtxRow); + return rowAttr2DtxRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Attr2DtxRow FindByidxAttr(int idxAttr) { + return ((Attr2DtxRow)(this.Rows.Find(new object[] { + idxAttr}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + Attr2DtxDataTable cln = ((Attr2DtxDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new Attr2DtxDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxAttr = base.Columns["idxAttr"]; + this.columnDataMatrix = base.Columns["DataMatrix"]; + this.columnCodAttr = base.Columns["CodAttr"]; + this.columnValAttr = base.Columns["ValAttr"]; + this.columnDateAttr = base.Columns["DateAttr"]; + this.columnCodSoggetto = base.Columns["CodSoggetto"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxAttr = new global::System.Data.DataColumn("idxAttr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxAttr); + this.columnDataMatrix = new global::System.Data.DataColumn("DataMatrix", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataMatrix); + this.columnCodAttr = new global::System.Data.DataColumn("CodAttr", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodAttr); + this.columnValAttr = new global::System.Data.DataColumn("ValAttr", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValAttr); + this.columnDateAttr = new global::System.Data.DataColumn("DateAttr", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDateAttr); + this.columnCodSoggetto = new global::System.Data.DataColumn("CodSoggetto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodSoggetto); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxAttr}, true)); + this.columnidxAttr.AllowDBNull = false; + this.columnidxAttr.Unique = true; + this.columnDataMatrix.AllowDBNull = false; + this.columnDataMatrix.MaxLength = 50; + this.columnCodAttr.AllowDBNull = false; + this.columnCodAttr.MaxLength = 2; + this.columnValAttr.AllowDBNull = false; + this.columnValAttr.MaxLength = 50; + this.columnDateAttr.AllowDBNull = false; + this.columnCodSoggetto.AllowDBNull = false; + this.columnCodSoggetto.MaxLength = 17; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Attr2DtxRow NewAttr2DtxRow() { + return ((Attr2DtxRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new Attr2DtxRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(Attr2DtxRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.Attr2DtxRowChanged != null)) { + this.Attr2DtxRowChanged(this, new Attr2DtxRowChangeEvent(((Attr2DtxRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.Attr2DtxRowChanging != null)) { + this.Attr2DtxRowChanging(this, new Attr2DtxRowChangeEvent(((Attr2DtxRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.Attr2DtxRowDeleted != null)) { + this.Attr2DtxRowDeleted(this, new Attr2DtxRowChangeEvent(((Attr2DtxRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.Attr2DtxRowDeleting != null)) { + this.Attr2DtxRowDeleting(this, new Attr2DtxRowChangeEvent(((Attr2DtxRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAttr2DtxRow(Attr2DtxRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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_DataMatrix ds = new DS_DataMatrix(); + 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 = "Attr2DtxDataTable"; + 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. /// @@ -4833,6 +5205,87 @@ namespace GMW_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class Attr2DtxRow : global::System.Data.DataRow { + + private Attr2DtxDataTable tableAttr2Dtx; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Attr2DtxRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAttr2Dtx = ((Attr2DtxDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxAttr { + get { + return ((int)(this[this.tableAttr2Dtx.idxAttrColumn])); + } + set { + this[this.tableAttr2Dtx.idxAttrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DataMatrix { + get { + return ((string)(this[this.tableAttr2Dtx.DataMatrixColumn])); + } + set { + this[this.tableAttr2Dtx.DataMatrixColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodAttr { + get { + return ((string)(this[this.tableAttr2Dtx.CodAttrColumn])); + } + set { + this[this.tableAttr2Dtx.CodAttrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ValAttr { + get { + return ((string)(this[this.tableAttr2Dtx.ValAttrColumn])); + } + set { + this[this.tableAttr2Dtx.ValAttrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DateAttr { + get { + return ((global::System.DateTime)(this[this.tableAttr2Dtx.DateAttrColumn])); + } + set { + this[this.tableAttr2Dtx.DateAttrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodSoggetto { + get { + return ((string)(this[this.tableAttr2Dtx.CodSoggettoColumn])); + } + set { + this[this.tableAttr2Dtx.CodSoggettoColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -5172,6 +5625,40 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class Attr2DtxRowChangeEvent : global::System.EventArgs { + + private Attr2DtxRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Attr2DtxRowChangeEvent(Attr2DtxRow 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", "4.0.0.0")] + public Attr2DtxRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_DataMatrixTableAdapters { @@ -8439,6 +8926,444 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC } } + /// + ///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 Attr2DtxTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Attr2DtxTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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 = "Attr2Dtx"; + tableMapping.ColumnMappings.Add("idxAttr", "idxAttr"); + tableMapping.ColumnMappings.Add("DataMatrix", "DataMatrix"); + tableMapping.ColumnMappings.Add("CodAttr", "CodAttr"); + tableMapping.ColumnMappings.Add("ValAttr", "ValAttr"); + tableMapping.ColumnMappings.Add("DateAttr", "DateAttr"); + tableMapping.ColumnMappings.Add("CodSoggetto", "CodSoggetto"); + 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].[Attr2Dtx] WHERE (([idxAttr] = @Original_idxAttr) AND ([DataMatrix] = @Original_DataMatrix) AND ([CodAttr] = @Original_CodAttr) AND ([ValAttr] = @Original_ValAttr) AND ([DateAttr] = @Original_DateAttr) AND ([CodSoggetto] = @Original_CodSoggetto))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxAttr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataMatrix", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMatrix", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateAttr", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", 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].[Attr2Dtx] ([idxAttr], [DataMatrix], [CodAttr], [ValAttr], [DateAttr], [CodSoggetto]) VALUES (@idxAttr, @DataMatrix, @CodAttr, @ValAttr, @DateAttr, @CodSoggetto); +SELECT idxAttr, DataMatrix, CodAttr, ValAttr, DateAttr, CodSoggetto FROM Attr2Dtx WHERE (idxAttr = @idxAttr)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxAttr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMatrix", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMatrix", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateAttr", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", 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].[Attr2Dtx] SET [idxAttr] = @idxAttr, [DataMatrix] = @DataMatrix, [CodAttr] = @CodAttr, [ValAttr] = @ValAttr, [DateAttr] = @DateAttr, [CodSoggetto] = @CodSoggetto WHERE (([idxAttr] = @Original_idxAttr) AND ([DataMatrix] = @Original_DataMatrix) AND ([CodAttr] = @Original_CodAttr) AND ([ValAttr] = @Original_ValAttr) AND ([DateAttr] = @Original_DateAttr) AND ([CodSoggetto] = @Original_CodSoggetto)); +SELECT idxAttr, DataMatrix, CodAttr, ValAttr, DateAttr, CodSoggetto FROM Attr2Dtx WHERE (idxAttr = @idxAttr)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxAttr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMatrix", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMatrix", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateAttr", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxAttr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataMatrix", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMatrix", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateAttr", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + 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 idxAttr, DataMatrix, CodAttr, ValAttr, DateAttr, CodSoggetto FROM dbo.Attr" + + "2Dtx"; + 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_A2D_getByDataMatrix"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMatrix", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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_DataMatrix.Attr2DtxDataTable 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", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_DataMatrix.Attr2DtxDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_DataMatrix.Attr2DtxDataTable dataTable = new DS_DataMatrix.Attr2DtxDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_DataMatrix.Attr2DtxDataTable getByDtx(string DataMatrix) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((DataMatrix == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(DataMatrix)); + } + DS_DataMatrix.Attr2DtxDataTable dataTable = new DS_DataMatrix.Attr2DtxDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_DataMatrix.Attr2DtxDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_DataMatrix dataSet) { + return this.Adapter.Update(dataSet, "Attr2Dtx"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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_idxAttr, string Original_DataMatrix, string Original_CodAttr, string Original_ValAttr, System.DateTime Original_DateAttr, string Original_CodSoggetto) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxAttr)); + if ((Original_DataMatrix == null)) { + throw new global::System.ArgumentNullException("Original_DataMatrix"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_DataMatrix)); + } + if ((Original_CodAttr == null)) { + throw new global::System.ArgumentNullException("Original_CodAttr"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodAttr)); + } + if ((Original_ValAttr == null)) { + throw new global::System.ArgumentNullException("Original_ValAttr"); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_ValAttr)); + } + this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DateAttr)); + if ((Original_CodSoggetto == null)) { + throw new global::System.ArgumentNullException("Original_CodSoggetto"); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_CodSoggetto)); + } + 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", "4.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(int idxAttr, string DataMatrix, string CodAttr, string ValAttr, System.DateTime DateAttr, string CodSoggetto) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxAttr)); + if ((DataMatrix == null)) { + throw new global::System.ArgumentNullException("DataMatrix"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DataMatrix)); + } + if ((CodAttr == null)) { + throw new global::System.ArgumentNullException("CodAttr"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodAttr)); + } + if ((ValAttr == null)) { + throw new global::System.ArgumentNullException("ValAttr"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ValAttr)); + } + this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(DateAttr)); + if ((CodSoggetto == null)) { + throw new global::System.ArgumentNullException("CodSoggetto"); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodSoggetto)); + } + 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", "4.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(int idxAttr, string DataMatrix, string CodAttr, string ValAttr, System.DateTime DateAttr, string CodSoggetto, int Original_idxAttr, string Original_DataMatrix, string Original_CodAttr, string Original_ValAttr, System.DateTime Original_DateAttr, string Original_CodSoggetto) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxAttr)); + if ((DataMatrix == null)) { + throw new global::System.ArgumentNullException("DataMatrix"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DataMatrix)); + } + if ((CodAttr == null)) { + throw new global::System.ArgumentNullException("CodAttr"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodAttr)); + } + if ((ValAttr == null)) { + throw new global::System.ArgumentNullException("ValAttr"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ValAttr)); + } + this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(DateAttr)); + if ((CodSoggetto == null)) { + throw new global::System.ArgumentNullException("CodSoggetto"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodSoggetto)); + } + this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idxAttr)); + if ((Original_DataMatrix == null)) { + throw new global::System.ArgumentNullException("Original_DataMatrix"); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_DataMatrix)); + } + if ((Original_CodAttr == null)) { + throw new global::System.ArgumentNullException("Original_CodAttr"); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodAttr)); + } + if ((Original_ValAttr == null)) { + throw new global::System.ArgumentNullException("Original_ValAttr"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_ValAttr)); + } + this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_DateAttr)); + if ((Original_CodSoggetto == null)) { + throw new global::System.ArgumentNullException("Original_CodSoggetto"); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodSoggetto)); + } + 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", "4.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 DataMatrix, string CodAttr, string ValAttr, System.DateTime DateAttr, string CodSoggetto, int Original_idxAttr, string Original_DataMatrix, string Original_CodAttr, string Original_ValAttr, System.DateTime Original_DateAttr, string Original_CodSoggetto) { + return this.Update(Original_idxAttr, DataMatrix, CodAttr, ValAttr, DateAttr, CodSoggetto, Original_idxAttr, Original_DataMatrix, Original_CodAttr, Original_ValAttr, Original_DateAttr, Original_CodSoggetto); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -8457,6 +9382,8 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC private Dtx2UDCTableAdapter _dtx2UDCTableAdapter; + private Attr2DtxTableAdapter _attr2DtxTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -8514,6 +9441,20 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public Attr2DtxTableAdapter Attr2DtxTableAdapter { + get { + return this._attr2DtxTableAdapter; + } + set { + this._attr2DtxTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -8545,6 +9486,10 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC && (this._dtx2UDCTableAdapter.Connection != null))) { return this._dtx2UDCTableAdapter.Connection; } + if (((this._attr2DtxTableAdapter != null) + && (this._attr2DtxTableAdapter.Connection != null))) { + return this._attr2DtxTableAdapter.Connection; + } return null; } set { @@ -8567,6 +9512,9 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC if ((this._dtx2UDCTableAdapter != null)) { count = (count + 1); } + if ((this._attr2DtxTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -8605,6 +9553,15 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC allChangedRows.AddRange(updatedRows); } } + if ((this._attr2DtxTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Attr2Dtx.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._attr2DtxTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -8639,6 +9596,14 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC allAddedRows.AddRange(addedRows); } } + if ((this._attr2DtxTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Attr2Dtx.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._attr2DtxTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -8649,6 +9614,14 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(DS_DataMatrix dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; + if ((this._attr2DtxTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Attr2Dtx.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._attr2DtxTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._dtx2UDCTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Dtx2UDC.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -8727,6 +9700,11 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._attr2DtxTableAdapter != null) + && (this.MatchTableAdapterConnection(this._attr2DtxTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + @@ -8786,6 +9764,15 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC adaptersWithAcceptChangesDuringUpdate.Add(this._dtx2UDCTableAdapter.Adapter); } } + if ((this._attr2DtxTableAdapter != null)) { + revertConnections.Add(this._attr2DtxTableAdapter, this._attr2DtxTableAdapter.Connection); + this._attr2DtxTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._attr2DtxTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._attr2DtxTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._attr2DtxTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._attr2DtxTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -8856,6 +9843,10 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC this._dtx2UDCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._dtx2UDCTableAdapter])); this._dtx2UDCTableAdapter.Transaction = null; } + if ((this._attr2DtxTableAdapter != null)) { + this._attr2DtxTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attr2DtxTableAdapter])); + this._attr2DtxTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/GMW_data/DS_DataMatrix.xsd b/GMW_data/DS_DataMatrix.xsd index 0fc285b3..0b909b7f 100644 --- a/GMW_data/DS_DataMatrix.xsd +++ b/GMW_data/DS_DataMatrix.xsd @@ -569,6 +569,86 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC + + + + + + DELETE FROM [dbo].[Attr2Dtx] WHERE (([idxAttr] = @Original_idxAttr) AND ([DataMatrix] = @Original_DataMatrix) AND ([CodAttr] = @Original_CodAttr) AND ([ValAttr] = @Original_ValAttr) AND ([DateAttr] = @Original_DateAttr) AND ([CodSoggetto] = @Original_CodSoggetto)) + + + + + + + + + + + + + INSERT INTO [dbo].[Attr2Dtx] ([idxAttr], [DataMatrix], [CodAttr], [ValAttr], [DateAttr], [CodSoggetto]) VALUES (@idxAttr, @DataMatrix, @CodAttr, @ValAttr, @DateAttr, @CodSoggetto); +SELECT idxAttr, DataMatrix, CodAttr, ValAttr, DateAttr, CodSoggetto FROM Attr2Dtx WHERE (idxAttr = @idxAttr) + + + + + + + + + + + + + SELECT idxAttr, DataMatrix, CodAttr, ValAttr, DateAttr, CodSoggetto FROM dbo.Attr2Dtx + + + + + + UPDATE [dbo].[Attr2Dtx] SET [idxAttr] = @idxAttr, [DataMatrix] = @DataMatrix, [CodAttr] = @CodAttr, [ValAttr] = @ValAttr, [DateAttr] = @DateAttr, [CodSoggetto] = @CodSoggetto WHERE (([idxAttr] = @Original_idxAttr) AND ([DataMatrix] = @Original_DataMatrix) AND ([CodAttr] = @Original_CodAttr) AND ([ValAttr] = @Original_ValAttr) AND ([DateAttr] = @Original_DateAttr) AND ([CodSoggetto] = @Original_CodSoggetto)); +SELECT idxAttr, DataMatrix, CodAttr, ValAttr, DateAttr, CodSoggetto FROM Attr2Dtx WHERE (idxAttr = @idxAttr) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_A2D_getByDataMatrix + + + + + + + + + @@ -670,7 +750,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC - + @@ -683,7 +763,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC - + @@ -697,7 +777,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC - + @@ -732,7 +812,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC - + @@ -752,7 +832,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC - + @@ -772,7 +852,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC - + @@ -814,7 +894,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC - + @@ -827,6 +907,42 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -847,5 +963,9 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC + + + + \ No newline at end of file diff --git a/GMW_data/DS_DataMatrix.xss b/GMW_data/DS_DataMatrix.xss index 3fb69e6b..bbb8c09f 100644 --- a/GMW_data/DS_DataMatrix.xss +++ b/GMW_data/DS_DataMatrix.xss @@ -6,16 +6,17 @@ --> - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/VersGen/GMW.cs b/VersGen/GMW.cs index 19f15a68..355ebf71 100644 --- a/VersGen/GMW.cs +++ b/VersGen/GMW.cs @@ -5,7 +5,7 @@ using System.Reflection; -[assembly: AssemblyVersion("2.5.636.1544")] -[assembly: AssemblyFileVersion("2.5.636.1544")] +[assembly: AssemblyVersion("2.5.637.1544")] +[assembly: AssemblyFileVersion("2.5.637.1544")] //[assembly: AssemblyCopyright("© Steamware 2007-2014")] //[assembly: AssemblyCompany("Steamware")] diff --git a/VersGen/GMW.tt b/VersGen/GMW.tt index cd1da16f..181ff672 100644 --- a/VersGen/GMW.tt +++ b/VersGen/GMW.tt @@ -6,8 +6,8 @@ using System.Reflection; -[assembly: AssemblyVersion("2.5.636.<#= this.RevisionNumber #>")] -[assembly: AssemblyFileVersion("2.5.636.<#= this.RevisionNumber #>")] +[assembly: AssemblyVersion("2.5.637.<#= this.RevisionNumber #>")] +[assembly: AssemblyFileVersion("2.5.637.<#= this.RevisionNumber #>")] //[assembly: AssemblyCopyright("© Steamware 2007-<#= DateTime.Now.Year #>")] //[assembly: AssemblyCompany("Steamware")] <#+