diff --git a/MP-ADM/MP-ADM.csproj b/MP-ADM/MP-ADM.csproj index f3baaa67..7397d707 100644 --- a/MP-ADM/MP-ADM.csproj +++ b/MP-ADM/MP-ADM.csproj @@ -573,6 +573,8 @@ + + @@ -877,6 +879,20 @@ cmp_numRow.ascx + + cmp_TechSheetArt.ascx + ASPXCodeBehind + + + cmp_TechSheetArt.ascx + + + cmp_TechSheetDetail.ascx + ASPXCodeBehind + + + cmp_TechSheetDetail.ascx + cmp_TechSheetMan.ascx ASPXCodeBehind diff --git a/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx new file mode 100644 index 00000000..5af1159e --- /dev/null +++ b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx @@ -0,0 +1,44 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_TechSheetArt.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_TechSheetArt" %> + +
+
+ Ricerca articolo +
+ +
+ +
+
+
+ + + + + + + Nessun record trovato + + + + + + + + + + + + <%----%> + + + <%-- + --%> + + + + + + + + +
\ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.cs b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.cs new file mode 100644 index 00000000..6a23c7f6 --- /dev/null +++ b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MP_ADM.WebUserControls +{ + public partial class cmp_TechSheetArt : BaseUserControl + { + #region Protected Methods + + /// + /// comando reset + /// + /// + /// + protected void lbtReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + protected void lbtSearchReset_Click(object sender, EventArgs e) + { + txtSearchArt.Text = ""; + } + + protected void Page_Load(object sender, EventArgs e) + { + } + + protected void txtSearchArt_TextChanged(object sender, EventArgs e) + { + } + + #endregion Protected Methods + + #region Public Methods + + public void resetSelezione() + { + grView.SelectedIndex = -1; + grView.DataBind(); + raiseReset(); + } + + #endregion Public Methods + } +} \ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.designer.cs b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.designer.cs new file mode 100644 index 00000000..7c4e11cb --- /dev/null +++ b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.designer.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace MP_ADM.WebUserControls +{ + + + public partial class cmp_TechSheetArt + { + + /// + /// Controllo txtSearchArt. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtSearchArt; + + /// + /// Controllo lbtSearchReset. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtSearchReset; + + /// + /// Controllo grView. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// Controllo ods. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } +} diff --git a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx new file mode 100644 index 00000000..635f8e20 --- /dev/null +++ b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx @@ -0,0 +1,3 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_TechSheetDetail.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_TechSheetDetail" %> + +Dettaglio singolo articolo \ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs new file mode 100644 index 00000000..d347fac5 --- /dev/null +++ b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.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 MP_ADM.WebUserControls +{ + public partial class cmp_TechSheetDetail : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.designer.cs b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.designer.cs new file mode 100644 index 00000000..ea13db43 --- /dev/null +++ b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace MP_ADM.WebUserControls +{ + + + public partial class cmp_TechSheetDetail + { + } +} diff --git a/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx b/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx index fab3fc09..e92b15d2 100644 --- a/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx +++ b/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx @@ -1 +1,12 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_TechSheetMan.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_TechSheetMan" %> +<%@ Register Src="~/WebUserControls/cmp_TechSheetArt.ascx" TagPrefix="uc1" TagName="cmp_TechSheetArt" %> +<%@ Register Src="~/WebUserControls/cmp_TechSheetDetail.ascx" TagPrefix="uc1" TagName="cmp_TechSheetDetail" %> + +
+
+ +
+
+ +
+
\ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.cs b/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.cs index 7c0956dc..5343da17 100644 --- a/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.cs +++ b/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.cs @@ -9,9 +9,39 @@ namespace MP_ADM.WebUserControls { public partial class cmp_TechSheetMan : System.Web.UI.UserControl { + #region Private Methods + + private void Cmp_TechSheetArt_eh_nuovoValore(object sender, EventArgs e) + { + cmp_TechSheetDetail.Visible = true; + } + + private void Cmp_TechSheetArt_eh_resetSelezione(object sender, EventArgs e) + { + cmp_TechSheetDetail.Visible = false; + } + + private void Cmp_TechSheetArt_eh_selValore(object sender, EventArgs e) + { + cmp_TechSheetDetail.Visible = true; + } + + #endregion Private Methods + + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { - + if (!Page.IsPostBack) + { + cmp_TechSheetArt.resetSelezione(); + cmp_TechSheetDetail.Visible = false; + } + cmp_TechSheetArt.eh_nuovoValore += Cmp_TechSheetArt_eh_nuovoValore; + cmp_TechSheetArt.eh_selValore += Cmp_TechSheetArt_eh_selValore; + cmp_TechSheetArt.eh_resetSelezione += Cmp_TechSheetArt_eh_resetSelezione; } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.designer.cs b/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.designer.cs index b0fd1949..dc8c40ac 100644 --- a/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.designer.cs +++ b/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.designer.cs @@ -1,16 +1,35 @@ //------------------------------------------------------------------------------ -// +// // Codice generato da uno strumento. // // Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ - namespace MP_ADM.WebUserControls { + + public partial class cmp_TechSheetMan { + + /// + /// Controllo cmp_TechSheetArt. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::MP_ADM.WebUserControls.cmp_TechSheetArt cmp_TechSheetArt; + + /// + /// Controllo cmp_TechSheetDetail. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::MP_ADM.WebUserControls.cmp_TechSheetDetail cmp_TechSheetDetail; } } diff --git a/MapoDb/DS_SheetTech.Designer.cs b/MapoDb/DS_SheetTech.Designer.cs index f7756196..6ea994dc 100644 --- a/MapoDb/DS_SheetTech.Designer.cs +++ b/MapoDb/DS_SheetTech.Designer.cs @@ -40,14 +40,14 @@ namespace MapoDb { private global::System.Data.DataRelation relationFK_ST_ActualRows_ST_Actual; - private global::System.Data.DataRelation relationFK_ST_Actual_ST_Template; - private global::System.Data.DataRelation relationFK_ST_TemplateRows_ST_AnagGruppi; private global::System.Data.DataRelation relationFK_ST_TemplateRows_ST_AnagTipi1; private global::System.Data.DataRelation relationFK_ST_TemplateRows_ST_Template; + private global::System.Data.DataRelation relationST_Template_ST_Actual; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -349,10 +349,10 @@ namespace MapoDb { } } this.relationFK_ST_ActualRows_ST_Actual = this.Relations["FK_ST_ActualRows_ST_Actual"]; - this.relationFK_ST_Actual_ST_Template = this.Relations["FK_ST_Actual_ST_Template"]; this.relationFK_ST_TemplateRows_ST_AnagGruppi = this.Relations["FK_ST_TemplateRows_ST_AnagGruppi"]; this.relationFK_ST_TemplateRows_ST_AnagTipi1 = this.Relations["FK_ST_TemplateRows_ST_AnagTipi1"]; this.relationFK_ST_TemplateRows_ST_Template = this.Relations["FK_ST_TemplateRows_ST_Template"]; + this.relationST_Template_ST_Actual = this.Relations["ST_Template_ST_Actual"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -381,10 +381,6 @@ namespace MapoDb { this.tableST_Actual.IdxSTColumn}, new global::System.Data.DataColumn[] { this.tableST_ActualRow.IdxSTColumn}, false); this.Relations.Add(this.relationFK_ST_ActualRows_ST_Actual); - this.relationFK_ST_Actual_ST_Template = new global::System.Data.DataRelation("FK_ST_Actual_ST_Template", new global::System.Data.DataColumn[] { - this.tableST_Template.CodTemplColumn}, new global::System.Data.DataColumn[] { - this.tableST_Actual.CodTemplColumn}, false); - this.Relations.Add(this.relationFK_ST_Actual_ST_Template); this.relationFK_ST_TemplateRows_ST_AnagGruppi = new global::System.Data.DataRelation("FK_ST_TemplateRows_ST_AnagGruppi", new global::System.Data.DataColumn[] { this.tableST_AnagGruppi.CodGruppoColumn}, new global::System.Data.DataColumn[] { this.tableST_TemplateRows.CodGruppoColumn}, false); @@ -397,6 +393,10 @@ namespace MapoDb { this.tableST_Template.CodTemplColumn}, new global::System.Data.DataColumn[] { this.tableST_TemplateRows.CodTemplColumn}, false); this.Relations.Add(this.relationFK_ST_TemplateRows_ST_Template); + this.relationST_Template_ST_Actual = new global::System.Data.DataRelation("ST_Template_ST_Actual", new global::System.Data.DataColumn[] { + this.tableST_Template.CodTemplColumn}, new global::System.Data.DataColumn[] { + this.tableST_Actual.CodTemplColumn}, false); + this.Relations.Add(this.relationST_Template_ST_Actual); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -534,6 +534,10 @@ namespace MapoDb { private global::System.Data.DataColumn columnDtMod; + private global::System.Data.DataColumn columnDescArticolo; + + private global::System.Data.DataColumn columnDescTempl; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public ST_ActualDataTable() { @@ -607,6 +611,22 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DescArticoloColumn { + get { + return this.columnDescArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DescTemplColumn { + get { + return this.columnDescTempl; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -644,16 +664,18 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ST_ActualRow AddST_ActualRow(ST_TemplateRow parentST_TemplateRowByFK_ST_Actual_ST_Template, string CodArticolo, int MatrOpr, System.DateTime DtMod) { + public ST_ActualRow AddST_ActualRow(ST_TemplateRow parentST_TemplateRowByST_Template_ST_Actual, string CodArticolo, int MatrOpr, System.DateTime DtMod, string DescArticolo, string DescTempl) { ST_ActualRow rowST_ActualRow = ((ST_ActualRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, null, CodArticolo, MatrOpr, - DtMod}; - if ((parentST_TemplateRowByFK_ST_Actual_ST_Template != null)) { - columnValuesArray[1] = parentST_TemplateRowByFK_ST_Actual_ST_Template[0]; + DtMod, + DescArticolo, + DescTempl}; + if ((parentST_TemplateRowByST_Template_ST_Actual != null)) { + columnValuesArray[1] = parentST_TemplateRowByST_Template_ST_Actual[0]; } rowST_ActualRow.ItemArray = columnValuesArray; this.Rows.Add(rowST_ActualRow); @@ -689,6 +711,8 @@ namespace MapoDb { this.columnCodArticolo = base.Columns["CodArticolo"]; this.columnMatrOpr = base.Columns["MatrOpr"]; this.columnDtMod = base.Columns["DtMod"]; + this.columnDescArticolo = base.Columns["DescArticolo"]; + this.columnDescTempl = base.Columns["DescTempl"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -704,6 +728,10 @@ namespace MapoDb { base.Columns.Add(this.columnMatrOpr); this.columnDtMod = new global::System.Data.DataColumn("DtMod", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDtMod); + this.columnDescArticolo = new global::System.Data.DataColumn("DescArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescArticolo); + this.columnDescTempl = new global::System.Data.DataColumn("DescTempl", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescTempl); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnIdxST}, true)); this.columnIdxST.AutoIncrement = true; @@ -718,6 +746,10 @@ namespace MapoDb { this.columnCodArticolo.MaxLength = 50; this.columnMatrOpr.AllowDBNull = false; this.columnDtMod.AllowDBNull = false; + this.columnDescArticolo.AllowDBNull = false; + this.columnDescArticolo.MaxLength = 250; + this.columnDescTempl.AllowDBNull = false; + this.columnDescTempl.MaxLength = 250; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3025,12 +3057,34 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ST_TemplateRow ST_TemplateRow { + public string DescArticolo { get { - return ((ST_TemplateRow)(this.GetParentRow(this.Table.ParentRelations["FK_ST_Actual_ST_Template"]))); + return ((string)(this[this.tableST_Actual.DescArticoloColumn])); } set { - this.SetParentRow(value, this.Table.ParentRelations["FK_ST_Actual_ST_Template"]); + this[this.tableST_Actual.DescArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string DescTempl { + get { + return ((string)(this[this.tableST_Actual.DescTemplColumn])); + } + set { + this[this.tableST_Actual.DescTemplColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ST_TemplateRow ST_TemplateRow { + get { + return ((ST_TemplateRow)(this.GetParentRow(this.Table.ParentRelations["ST_Template_ST_Actual"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["ST_Template_ST_Actual"]); } } @@ -3500,17 +3554,6 @@ namespace MapoDb { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ST_ActualRow[] GetST_ActualRows() { - if ((this.Table.ChildRelations["FK_ST_Actual_ST_Template"] == null)) { - return new ST_ActualRow[0]; - } - else { - return ((ST_ActualRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ST_Actual_ST_Template"]))); - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public ST_TemplateRowsRow[] GetST_TemplateRowsRows() { @@ -3521,6 +3564,17 @@ namespace MapoDb { return ((ST_TemplateRowsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ST_TemplateRows_ST_Template"]))); } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ST_ActualRow[] GetST_ActualRows() { + if ((this.Table.ChildRelations["ST_Template_ST_Actual"] == null)) { + return new ST_ActualRow[0]; + } + else { + return ((ST_ActualRow[])(base.GetChildRows(this.Table.ChildRelations["ST_Template_ST_Actual"]))); + } + } } /// @@ -4049,43 +4103,9 @@ namespace MapoDb.DS_SheetTechTableAdapters { tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); tableMapping.ColumnMappings.Add("DtMod", "DtMod"); + tableMapping.ColumnMappings.Add("DescArticolo", "DescArticolo"); + tableMapping.ColumnMappings.Add("DescTempl", "DescTempl"); 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].[ST_Actual] WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] " + - "= @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr]" + - " = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", 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_DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", 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].[ST_Actual] ([CodTempl], [CodArticolo], [MatrOpr], [DtMod]) VAL" + - "UES (@CodTempl, @CodArticolo, @MatrOpr, @DtMod);\r\nSELECT IdxST, CodTempl, CodArt" + - "icolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", 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("@DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", 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].[ST_Actual] SET [CodTempl] = @CodTempl, [CodArticolo] = @CodArticolo, [MatrOpr] = @MatrOpr, [DtMod] = @DtMod WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] = @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod)); -SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = @IdxST)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", 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("@DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", 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_DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -4098,11 +4118,17 @@ SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection = 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 IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM dbo.ST_Actual"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_ST_Actual"; 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_ST_A_getBySearch"; + 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("@SearchCodArt", 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()] @@ -4132,160 +4158,18 @@ SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_SheetTech.ST_ActualDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_SheetTech dataSet) { - return this.Adapter.Update(dataSet, "ST_Actual"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - 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", "16.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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(int Original_IdxST, string Original_CodTempl, string Original_CodArticolo, int Original_MatrOpr, System.DateTime Original_DtMod) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxST)); - if ((Original_CodTempl == null)) { - throw new global::System.ArgumentNullException("Original_CodTempl"); + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_SheetTech.ST_ActualDataTable getBySearchArt(string SearchCodArt) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((SearchCodArt == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodTempl)); + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(SearchCodArt)); } - if ((Original_CodArticolo == null)) { - throw new global::System.ArgumentNullException("Original_CodArticolo"); - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodArticolo)); - } - this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_MatrOpr)); - this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DtMod)); - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(string CodTempl, string CodArticolo, int MatrOpr, System.DateTime DtMod) { - if ((CodTempl == null)) { - throw new global::System.ArgumentNullException("CodTempl"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodTempl)); - } - if ((CodArticolo == null)) { - throw new global::System.ArgumentNullException("CodArticolo"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodArticolo)); - } - this.Adapter.InsertCommand.Parameters[2].Value = ((int)(MatrOpr)); - this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DtMod)); - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string CodTempl, string CodArticolo, int MatrOpr, System.DateTime DtMod, int Original_IdxST, string Original_CodTempl, string Original_CodArticolo, int Original_MatrOpr, System.DateTime Original_DtMod, int IdxST) { - if ((CodTempl == null)) { - throw new global::System.ArgumentNullException("CodTempl"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodTempl)); - } - if ((CodArticolo == null)) { - throw new global::System.ArgumentNullException("CodArticolo"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodArticolo)); - } - this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(MatrOpr)); - this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DtMod)); - this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdxST)); - if ((Original_CodTempl == null)) { - throw new global::System.ArgumentNullException("Original_CodTempl"); - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodTempl)); - } - if ((Original_CodArticolo == null)) { - throw new global::System.ArgumentNullException("Original_CodArticolo"); - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodArticolo)); - } - this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_MatrOpr)); - this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DtMod)); - this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(IdxST)); - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string CodTempl, string CodArticolo, int MatrOpr, System.DateTime DtMod, int Original_IdxST, string Original_CodTempl, string Original_CodArticolo, int Original_MatrOpr, System.DateTime Original_DtMod) { - return this.Update(CodTempl, CodArticolo, MatrOpr, DtMod, Original_IdxST, Original_CodTempl, Original_CodArticolo, Original_MatrOpr, Original_DtMod, Original_IdxST); + DS_SheetTech.ST_ActualDataTable dataTable = new DS_SheetTech.ST_ActualDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; } } @@ -6945,8 +6829,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ private UpdateOrderOption _updateOrder; - private ST_ActualTableAdapter _sT_ActualTableAdapter; - private ST_ActualRowTableAdapter _sT_ActualRowTableAdapter; private ST_CheckTableAdapter _sT_CheckTableAdapter; @@ -6974,20 +6856,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 ST_ActualTableAdapter ST_ActualTableAdapter { - get { - return this._sT_ActualTableAdapter; - } - set { - this._sT_ActualTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + @@ -7091,10 +6959,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ if ((this._connection != null)) { return this._connection; } - if (((this._sT_ActualTableAdapter != null) - && (this._sT_ActualTableAdapter.Connection != null))) { - return this._sT_ActualTableAdapter.Connection; - } if (((this._sT_ActualRowTableAdapter != null) && (this._sT_ActualRowTableAdapter.Connection != null))) { return this._sT_ActualRowTableAdapter.Connection; @@ -7132,9 +6996,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ public int TableAdapterInstanceCount { get { int count = 0; - if ((this._sT_ActualTableAdapter != null)) { - count = (count + 1); - } if ((this._sT_ActualRowTableAdapter != null)) { count = (count + 1); } @@ -7173,15 +7034,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ allChangedRows.AddRange(updatedRows); } } - if ((this._sT_ActualTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.ST_Actual.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._sT_ActualTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._sT_AnagGruppiTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.ST_AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -7245,14 +7097,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ allAddedRows.AddRange(addedRows); } } - if ((this._sT_ActualTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.ST_Actual.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._sT_ActualTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._sT_AnagGruppiTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.ST_AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -7343,14 +7187,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ allChangedRows.AddRange(deletedRows); } } - if ((this._sT_ActualTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.ST_Actual.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._sT_ActualTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._sT_TemplateTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.ST_Template.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -7398,11 +7234,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ if ((dataSet.HasChanges() == false)) { return 0; } - if (((this._sT_ActualTableAdapter != null) - && (this.MatchTableAdapterConnection(this._sT_ActualTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + - "a stessa stringa di connessione."); - } if (((this._sT_ActualRowTableAdapter != null) && (this.MatchTableAdapterConnection(this._sT_ActualRowTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + @@ -7466,15 +7297,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ try { // ---- Prepare for update ----------- // - if ((this._sT_ActualTableAdapter != null)) { - revertConnections.Add(this._sT_ActualTableAdapter, this._sT_ActualTableAdapter.Connection); - this._sT_ActualTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._sT_ActualTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._sT_ActualTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._sT_ActualTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._sT_ActualTableAdapter.Adapter); - } - } if ((this._sT_ActualRowTableAdapter != null)) { revertConnections.Add(this._sT_ActualRowTableAdapter, this._sT_ActualRowTableAdapter.Connection); this._sT_ActualRowTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -7587,10 +7409,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ if (workConnOpened) { workConnection.Close(); } - if ((this._sT_ActualTableAdapter != null)) { - this._sT_ActualTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._sT_ActualTableAdapter])); - this._sT_ActualTableAdapter.Transaction = null; - } if ((this._sT_ActualRowTableAdapter != null)) { this._sT_ActualRowTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._sT_ActualRowTableAdapter])); this._sT_ActualRowTableAdapter.Transaction = null; diff --git a/MapoDb/DS_SheetTech.xsd b/MapoDb/DS_SheetTech.xsd index e80f752c..90772d06 100644 --- a/MapoDb/DS_SheetTech.xsd +++ b/MapoDb/DS_SheetTech.xsd @@ -9,55 +9,14 @@ - - - - DELETE FROM [dbo].[ST_Actual] WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] = @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod)) - - - - - - - - - - - - INSERT INTO [dbo].[ST_Actual] ([CodTempl], [CodArticolo], [MatrOpr], [DtMod]) VALUES (@CodTempl, @CodArticolo, @MatrOpr, @DtMod); -SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = SCOPE_IDENTITY()) - - - - - - - - + - - SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM dbo.ST_Actual + + SELECT * +FROM v_ST_Actual - - - UPDATE [dbo].[ST_Actual] SET [CodTempl] = @CodTempl, [CodArticolo] = @CodArticolo, [MatrOpr] = @MatrOpr, [DtMod] = @DtMod WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] = @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod)); -SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = @IdxST) - - - - - - - - - - - - - - @@ -66,8 +25,22 @@ SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST + + - + + + + + dbo.stp_ST_A_getBySearch + + + + + + + + @@ -595,6 +568,20 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ + + + + + + + + + + + + + + @@ -872,10 +859,10 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - + \ No newline at end of file diff --git a/MapoDb/DS_SheetTech.xss b/MapoDb/DS_SheetTech.xss index a291de0b..e705585f 100644 --- a/MapoDb/DS_SheetTech.xss +++ b/MapoDb/DS_SheetTech.xss @@ -6,20 +6,20 @@ --> - - - - - - - + + + + + + + - + 455 - 689 + 734 455 @@ -27,19 +27,7 @@ - - - - 727 - 562 - - - 612 - 562 - - - - + 1196 @@ -51,7 +39,7 @@ - + 991 @@ -67,7 +55,7 @@ - + 945 @@ -79,5 +67,17 @@ + + + + 727 + 564 + + + 615 + 564 + + + \ No newline at end of file