diff --git a/GMW/Web.config b/GMW/Web.config index 733320a8..d0182772 100644 --- a/GMW/Web.config +++ b/GMW/Web.config @@ -61,7 +61,7 @@ - + diff --git a/GMW/WebUserControls/mod_gestPrinterPost.ascx b/GMW/WebUserControls/mod_gestPrinterPost.ascx index 44021af7..2de6461c 100644 --- a/GMW/WebUserControls/mod_gestPrinterPost.ascx +++ b/GMW/WebUserControls/mod_gestPrinterPost.ascx @@ -1,6 +1,10 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestPrinterPost.ascx.cs" Inherits="GMW.WebUserControls.mod_gestPrinterPost" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> - +<% if (false) + { %> + +<% } %> + @@ -15,7 +19,7 @@ Visible='<%# isWritable() %>' />--%> - + @@ -37,10 +41,10 @@ - + - + @@ -48,15 +52,26 @@ - + - - + + - + + + + + + + + + + + + - + @@ -67,8 +82,7 @@ - + @@ -83,10 +97,12 @@ + + diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index d7eec9bd..f5566ba4 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 3de35102..277334b9 100644 Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ diff --git a/GMW_data/DS_magazzino.Designer.cs b/GMW_data/DS_magazzino.Designer.cs index 2cce6776..aff2f662 100644 --- a/GMW_data/DS_magazzino.Designer.cs +++ b/GMW_data/DS_magazzino.Designer.cs @@ -11872,6 +11872,8 @@ namespace GMW_data { private global::System.Data.DataColumn columnstampante; + private global::System.Data.DataColumn columnnote; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public ElencoPostazioniDataTable() { @@ -11921,6 +11923,14 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn noteColumn { + get { + return this.columnnote; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -11958,11 +11968,12 @@ namespace GMW_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public ElencoPostazioniRow AddElencoPostazioniRow(string codPostazione, string stampante) { + public ElencoPostazioniRow AddElencoPostazioniRow(string codPostazione, string stampante, string note) { ElencoPostazioniRow rowElencoPostazioniRow = ((ElencoPostazioniRow)(this.NewRow())); object[] columnValuesArray = new object[] { codPostazione, - stampante}; + stampante, + note}; rowElencoPostazioniRow.ItemArray = columnValuesArray; this.Rows.Add(rowElencoPostazioniRow); return rowElencoPostazioniRow; @@ -11994,6 +12005,7 @@ namespace GMW_data { internal void InitVars() { this.columncodPostazione = base.Columns["codPostazione"]; this.columnstampante = base.Columns["stampante"]; + this.columnnote = base.Columns["note"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -12003,12 +12015,15 @@ namespace GMW_data { base.Columns.Add(this.columncodPostazione); this.columnstampante = new global::System.Data.DataColumn("stampante", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnstampante); + this.columnnote = new global::System.Data.DataColumn("note", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnote); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columncodPostazione}, true)); this.columncodPostazione.AllowDBNull = false; this.columncodPostazione.Unique = true; this.columncodPostazione.MaxLength = 250; this.columnstampante.MaxLength = 250; + this.columnnote.MaxLength = 250; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17764,6 +17779,22 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string note { + get { + try { + return ((string)(this[this.tableElencoPostazioni.noteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'note\' in table \'ElencoPostazioni\' is DBNull.", e); + } + } + set { + this[this.tableElencoPostazioni.noteColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsstampanteNull() { @@ -17775,6 +17806,18 @@ namespace GMW_data { public void SetstampanteNull() { this[this.tableElencoPostazioni.stampanteColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsnoteNull() { + return this.IsNull(this.tableElencoPostazioni.noteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetnoteNull() { + this[this.tableElencoPostazioni.noteColumn] = global::System.Convert.DBNull; + } } /// @@ -33182,34 +33225,42 @@ SELECT idxEvento, DataOra, CodSoggetto, codPostazione, clientIP, UDC, Particolar tableMapping.DataSetTable = "ElencoPostazioni"; tableMapping.ColumnMappings.Add("codPostazione", "codPostazione"); tableMapping.ColumnMappings.Add("stampante", "stampante"); + tableMapping.ColumnMappings.Add("note", "note"); 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 [ElencoPostazioni] WHERE (([codPostazione] = @Original_codPostazione)" + " AND ((@IsNull_stampante = 1 AND [stampante] IS NULL) OR ([stampante] = @Origina" + - "l_stampante)))"; + "l_stampante)) AND ((@IsNull_note = 1 AND [note] IS NULL) OR ([note] = @Original_" + + "note)))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codPostazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_stampante", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stampante", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_stampante", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stampante", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_note", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", 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 [ElencoPostazioni] ([codPostazione], [stampante]) VALUES (@codPostazi" + - "one, @stampante);\r\nSELECT codPostazione, stampante FROM ElencoPostazioni WHERE (" + - "codPostazione = @codPostazione) ORDER BY codPostazione"; + this._adapter.InsertCommand.CommandText = "INSERT INTO [ElencoPostazioni] ([codPostazione], [stampante], [note]) VALUES (@co" + + "dPostazione, @stampante, @note);\r\nSELECT codPostazione, stampante, note FROM Ele" + + "ncoPostazioni WHERE (codPostazione = @codPostazione) ORDER BY codPostazione"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codPostazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stampante", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stampante", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [ElencoPostazioni] SET [codPostazione] = @codPostazione, [stampante] = @stampante WHERE (([codPostazione] = @Original_codPostazione) AND ((@IsNull_stampante = 1 AND [stampante] IS NULL) OR ([stampante] = @Original_stampante))); -SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @codPostazione) ORDER BY codPostazione"; + this._adapter.UpdateCommand.CommandText = @"UPDATE [ElencoPostazioni] SET [codPostazione] = @codPostazione, [stampante] = @stampante, [note] = @note WHERE (([codPostazione] = @Original_codPostazione) AND ((@IsNull_stampante = 1 AND [stampante] IS NULL) OR ([stampante] = @Original_stampante)) AND ((@IsNull_note = 1 AND [note] IS NULL) OR ([note] = @Original_note))); +SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione = @codPostazione) ORDER BY codPostazione"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codPostazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stampante", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stampante", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codPostazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_stampante", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stampante", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_stampante", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stampante", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_note", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -33225,8 +33276,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT codPostazione, stampante\r\nFROM ElencoPostazioni\r\nORDER B" + - "Y codPostazione"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM ElencoPostazioni\r\nORDER BY codPostazione"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -33242,6 +33292,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codPostazione", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codPostazione", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stampante", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -33301,7 +33352,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co [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(string Original_codPostazione, string Original_stampante) { + public virtual int Delete(string Original_codPostazione, string Original_stampante, string Original_note) { if ((Original_codPostazione == null)) { throw new global::System.ArgumentNullException("Original_codPostazione"); } @@ -33316,6 +33367,14 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_stampante)); } + if ((Original_note == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_note)); + } 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)) { @@ -33336,7 +33395,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co [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(string codPostazione, string stampante) { + public virtual int Insert(string codPostazione, string stampante, string note) { if ((codPostazione == null)) { throw new global::System.ArgumentNullException("codPostazione"); } @@ -33349,6 +33408,12 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co else { this.Adapter.InsertCommand.Parameters[1].Value = ((string)(stampante)); } + if ((note == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(note)); + } 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)) { @@ -33369,7 +33434,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co [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 codPostazione, string stampante, string Original_codPostazione, string Original_stampante) { + public virtual int Update(string codPostazione, string stampante, string note, string Original_codPostazione, string Original_stampante, string Original_note) { if ((codPostazione == null)) { throw new global::System.ArgumentNullException("codPostazione"); } @@ -33382,19 +33447,33 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co else { this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(stampante)); } + if ((note == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(note)); + } if ((Original_codPostazione == null)) { throw new global::System.ArgumentNullException("Original_codPostazione"); } else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_codPostazione)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_codPostazione)); } if ((Original_stampante == null)) { - this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_stampante)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_stampante)); + } + if ((Original_note == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_note)); } global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) @@ -33416,8 +33495,8 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co [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 stampante, string Original_codPostazione, string Original_stampante) { - return this.Update(Original_codPostazione, stampante, Original_codPostazione, Original_stampante); + public virtual int Update(string stampante, string note, string Original_codPostazione, string Original_stampante, string Original_note) { + return this.Update(Original_codPostazione, stampante, note, Original_codPostazione, Original_stampante, Original_note); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -33451,7 +33530,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co [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 updateQuery(string Original_codPostazione, string codPostazione, string stampante) { + public virtual int updateQuery(string Original_codPostazione, string codPostazione, string stampante, string note) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; if ((Original_codPostazione == null)) { command.Parameters[1].Value = global::System.DBNull.Value; @@ -33471,6 +33550,12 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co else { command.Parameters[3].Value = ((string)(stampante)); } + if ((note == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(note)); + } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { diff --git a/GMW_data/DS_magazzino.xsd b/GMW_data/DS_magazzino.xsd index a264b97b..eb6ea760 100644 --- a/GMW_data/DS_magazzino.xsd +++ b/GMW_data/DS_magazzino.xsd @@ -3065,27 +3065,30 @@ SELECT idxEvento, DataOra, CodSoggetto, codPostazione, clientIP, UDC, Particolar - DELETE FROM [ElencoPostazioni] WHERE (([codPostazione] = @Original_codPostazione) AND ((@IsNull_stampante = 1 AND [stampante] IS NULL) OR ([stampante] = @Original_stampante))) + DELETE FROM [ElencoPostazioni] WHERE (([codPostazione] = @Original_codPostazione) AND ((@IsNull_stampante = 1 AND [stampante] IS NULL) OR ([stampante] = @Original_stampante)) AND ((@IsNull_note = 1 AND [note] IS NULL) OR ([note] = @Original_note))) + + - INSERT INTO [ElencoPostazioni] ([codPostazione], [stampante]) VALUES (@codPostazione, @stampante); -SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @codPostazione) ORDER BY codPostazione + INSERT INTO [ElencoPostazioni] ([codPostazione], [stampante], [note]) VALUES (@codPostazione, @stampante, @note); +SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione = @codPostazione) ORDER BY codPostazione + - - SELECT codPostazione, stampante + + SELECT * FROM ElencoPostazioni ORDER BY codPostazione @@ -3093,14 +3096,17 @@ ORDER BY codPostazione - UPDATE [ElencoPostazioni] SET [codPostazione] = @codPostazione, [stampante] = @stampante WHERE (([codPostazione] = @Original_codPostazione) AND ((@IsNull_stampante = 1 AND [stampante] IS NULL) OR ([stampante] = @Original_stampante))); -SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @codPostazione) ORDER BY codPostazione + UPDATE [ElencoPostazioni] SET [codPostazione] = @codPostazione, [stampante] = @stampante, [note] = @note WHERE (([codPostazione] = @Original_codPostazione) AND ((@IsNull_stampante = 1 AND [stampante] IS NULL) OR ([stampante] = @Original_stampante)) AND ((@IsNull_note = 1 AND [note] IS NULL) OR ([note] = @Original_note))); +SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione = @codPostazione) ORDER BY codPostazione + + + @@ -3109,6 +3115,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co + @@ -3131,6 +3138,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co + @@ -4238,7 +4246,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co - + @@ -4295,7 +4303,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co - + @@ -4327,7 +4335,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co - + @@ -4349,7 +4357,7 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co - + @@ -4366,6 +4374,13 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co + + + + + + + @@ -4509,17 +4524,17 @@ SELECT codPostazione, stampante FROM ElencoPostazioni WHERE (codPostazione = @co - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/GMW_data/DS_magazzino.xss b/GMW_data/DS_magazzino.xss index 183a928c..edff7ca0 100644 --- a/GMW_data/DS_magazzino.xss +++ b/GMW_data/DS_magazzino.xss @@ -34,7 +34,7 @@ - + diff --git a/GMW_data/GMW_data.csproj b/GMW_data/GMW_data.csproj index 2e867764..a3cd53ac 100644 --- a/GMW_data/GMW_data.csproj +++ b/GMW_data/GMW_data.csproj @@ -424,6 +424,7 @@ +