diff --git a/GMW/GMW.suo b/GMW/GMW.suo index 4d3de180..9b976a9a 100644 Binary files a/GMW/GMW.suo and b/GMW/GMW.suo differ diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index 9904ca9e..29165f59 100644 Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ diff --git a/GMW/GMW/bin/GMW_data.dll b/GMW/GMW/bin/GMW_data.dll index 484cf7cf..d7490323 100644 Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll index 9904ca9e..29165f59 100644 Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache index 0b8460ab..7bc2e689 100644 Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW/testFunzioni.aspx b/GMW/GMW/testFunzioni.aspx index a5d2fcba..8a32b683 100644 --- a/GMW/GMW/testFunzioni.aspx +++ b/GMW/GMW/testFunzioni.aspx @@ -20,6 +20,11 @@
+
+ +

+  

diff --git a/GMW/GMW/testFunzioni.aspx.cs b/GMW/GMW/testFunzioni.aspx.cs index 01d4e909..26774566 100644 --- a/GMW/GMW/testFunzioni.aspx.cs +++ b/GMW/GMW/testFunzioni.aspx.cs @@ -17,12 +17,20 @@ namespace GMW protected void Button1_Click(object sender, EventArgs e) { + // testa la creazione lista prelievo MagClass.magazzino.creaListaPrelievo("MA", "20", "P00505005162", "NEUTRO", "10", 1500, "I0054"); } protected void Button2_Click(object sender, EventArgs e) { + // testa inizio lista prelievo MagClass.magazzino.iniziaListaPrelievo("MA", "KMA100600005", "0000000000000080"); } + + protected void Button3_Click(object sender, EventArgs e) + { + // testa fine e scaricamento - indicando completata - lista prelievo + MagClass.magazzino.scaricaListaPrelievo("MA", "KMA100600005"); + } } } diff --git a/GMW/GMW/testFunzioni.aspx.designer.cs b/GMW/GMW/testFunzioni.aspx.designer.cs index cd21a6cd..6c2f4c74 100644 --- a/GMW/GMW/testFunzioni.aspx.designer.cs +++ b/GMW/GMW/testFunzioni.aspx.designer.cs @@ -48,5 +48,14 @@ namespace GMW { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Button Button2; + + /// + /// Button3 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Button3; } } diff --git a/GMW/GMW_data/DS_magazzino.Designer.cs b/GMW/GMW_data/DS_magazzino.Designer.cs index b62e69d9..5ab04f3a 100644 --- a/GMW/GMW_data/DS_magazzino.Designer.cs +++ b/GMW/GMW_data/DS_magazzino.Designer.cs @@ -49,12 +49,12 @@ namespace GMW_data { private V_DettMagPartDataTable tableV_DettMagPart; - private TipoListaPrelievoDataTable tableTipoListaPrelievo; - private RigheListePrelievoDataTable tableRigheListePrelievo; private ElencoListePrelievoDataTable tableElencoListePrelievo; + private TipoListaPrelievoDataTable tableTipoListaPrelievo; + private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini; private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini; @@ -135,15 +135,15 @@ namespace GMW_data { if ((ds.Tables["V_DettMagPart"] != null)) { base.Tables.Add(new V_DettMagPartDataTable(ds.Tables["V_DettMagPart"])); } - if ((ds.Tables["TipoListaPrelievo"] != null)) { - base.Tables.Add(new TipoListaPrelievoDataTable(ds.Tables["TipoListaPrelievo"])); - } if ((ds.Tables["RigheListePrelievo"] != null)) { base.Tables.Add(new RigheListePrelievoDataTable(ds.Tables["RigheListePrelievo"])); } if ((ds.Tables["ElencoListePrelievo"] != null)) { base.Tables.Add(new ElencoListePrelievoDataTable(ds.Tables["ElencoListePrelievo"])); } + if ((ds.Tables["TipoListaPrelievo"] != null)) { + base.Tables.Add(new TipoListaPrelievoDataTable(ds.Tables["TipoListaPrelievo"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -270,15 +270,6 @@ namespace GMW_data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public TipoListaPrelievoDataTable TipoListaPrelievo { - get { - return this.tableTipoListaPrelievo; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] @@ -297,6 +288,15 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TipoListaPrelievoDataTable TipoListaPrelievo { + get { + return this.tableTipoListaPrelievo; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -392,15 +392,15 @@ namespace GMW_data { if ((ds.Tables["V_DettMagPart"] != null)) { base.Tables.Add(new V_DettMagPartDataTable(ds.Tables["V_DettMagPart"])); } - if ((ds.Tables["TipoListaPrelievo"] != null)) { - base.Tables.Add(new TipoListaPrelievoDataTable(ds.Tables["TipoListaPrelievo"])); - } if ((ds.Tables["RigheListePrelievo"] != null)) { base.Tables.Add(new RigheListePrelievoDataTable(ds.Tables["RigheListePrelievo"])); } if ((ds.Tables["ElencoListePrelievo"] != null)) { base.Tables.Add(new ElencoListePrelievoDataTable(ds.Tables["ElencoListePrelievo"])); } + if ((ds.Tables["TipoListaPrelievo"] != null)) { + base.Tables.Add(new TipoListaPrelievoDataTable(ds.Tables["TipoListaPrelievo"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -503,12 +503,6 @@ namespace GMW_data { this.tableV_DettMagPart.InitVars(); } } - this.tableTipoListaPrelievo = ((TipoListaPrelievoDataTable)(base.Tables["TipoListaPrelievo"])); - if ((initTable == true)) { - if ((this.tableTipoListaPrelievo != null)) { - this.tableTipoListaPrelievo.InitVars(); - } - } this.tableRigheListePrelievo = ((RigheListePrelievoDataTable)(base.Tables["RigheListePrelievo"])); if ((initTable == true)) { if ((this.tableRigheListePrelievo != null)) { @@ -521,6 +515,12 @@ namespace GMW_data { this.tableElencoListePrelievo.InitVars(); } } + this.tableTipoListaPrelievo = ((TipoListaPrelievoDataTable)(base.Tables["TipoListaPrelievo"])); + if ((initTable == true)) { + if ((this.tableTipoListaPrelievo != null)) { + this.tableTipoListaPrelievo.InitVars(); + } + } this.relationFK_PosizioneUdcCorrente_ElencoCartellini = this.Relations["FK_PosizioneUdcCorrente_ElencoCartellini"]; this.relationFK_PosizioneUdcStorico_ElencoCartellini = this.Relations["FK_PosizioneUdcStorico_ElencoCartellini"]; this.relationFK_Blocchi_AnagMag = this.Relations["FK_Blocchi_AnagMag"]; @@ -563,12 +563,12 @@ namespace GMW_data { base.Tables.Add(this.tableV_MagazziniOverview); this.tableV_DettMagPart = new V_DettMagPartDataTable(); base.Tables.Add(this.tableV_DettMagPart); - this.tableTipoListaPrelievo = new TipoListaPrelievoDataTable(); - base.Tables.Add(this.tableTipoListaPrelievo); this.tableRigheListePrelievo = new RigheListePrelievoDataTable(); base.Tables.Add(this.tableRigheListePrelievo); this.tableElencoListePrelievo = new ElencoListePrelievoDataTable(); base.Tables.Add(this.tableElencoListePrelievo); + this.tableTipoListaPrelievo = new TipoListaPrelievoDataTable(); + base.Tables.Add(this.tableTipoListaPrelievo); this.relationFK_PosizioneUdcCorrente_ElencoCartellini = new global::System.Data.DataRelation("FK_PosizioneUdcCorrente_ElencoCartellini", new global::System.Data.DataColumn[] { this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] { this.tablePosizioneUdcCorrente.UDCColumn}, false); @@ -671,11 +671,6 @@ namespace GMW_data { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - private bool ShouldSerializeTipoListaPrelievo() { - return false; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeRigheListePrelievo() { return false; @@ -686,6 +681,11 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeTipoListaPrelievo() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -763,12 +763,12 @@ namespace GMW_data { public delegate void V_DettMagPartRowChangeEventHandler(object sender, V_DettMagPartRowChangeEvent e); - public delegate void TipoListaPrelievoRowChangeEventHandler(object sender, TipoListaPrelievoRowChangeEvent e); - public delegate void RigheListePrelievoRowChangeEventHandler(object sender, RigheListePrelievoRowChangeEvent e); public delegate void ElencoListePrelievoRowChangeEventHandler(object sender, ElencoListePrelievoRowChangeEvent e); + public delegate void TipoListaPrelievoRowChangeEventHandler(object sender, TipoListaPrelievoRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -5066,267 +5066,6 @@ namespace GMW_data { } } - /// - ///Represents the strongly named DataTable class. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class TipoListaPrelievoDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnCodTipoLista; - - private global::System.Data.DataColumn columnDescrLista; - - private global::System.Data.DataColumn columnIdxCellaDest; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public TipoListaPrelievoDataTable() { - this.TableName = "TipoListaPrelievo"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal TipoListaPrelievoDataTable(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()] - protected TipoListaPrelievoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : - base(info, context) { - this.InitVars(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodTipoListaColumn { - get { - return this.columnCodTipoLista; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn DescrListaColumn { - get { - return this.columnDescrLista; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn IdxCellaDestColumn { - get { - return this.columnIdxCellaDest; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] - public int Count { - get { - return this.Rows.Count; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public TipoListaPrelievoRow this[int index] { - get { - return ((TipoListaPrelievoRow)(this.Rows[index])); - } - } - - public event TipoListaPrelievoRowChangeEventHandler TipoListaPrelievoRowChanging; - - public event TipoListaPrelievoRowChangeEventHandler TipoListaPrelievoRowChanged; - - public event TipoListaPrelievoRowChangeEventHandler TipoListaPrelievoRowDeleting; - - public event TipoListaPrelievoRowChangeEventHandler TipoListaPrelievoRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void AddTipoListaPrelievoRow(TipoListaPrelievoRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public TipoListaPrelievoRow AddTipoListaPrelievoRow(string CodTipoLista, string DescrLista, int IdxCellaDest) { - TipoListaPrelievoRow rowTipoListaPrelievoRow = ((TipoListaPrelievoRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - CodTipoLista, - DescrLista, - IdxCellaDest}; - rowTipoListaPrelievoRow.ItemArray = columnValuesArray; - this.Rows.Add(rowTipoListaPrelievoRow); - return rowTipoListaPrelievoRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public TipoListaPrelievoRow FindByCodTipoLista(string CodTipoLista) { - return ((TipoListaPrelievoRow)(this.Rows.Find(new object[] { - CodTipoLista}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override global::System.Data.DataTable Clone() { - TipoListaPrelievoDataTable cln = ((TipoListaPrelievoDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataTable CreateInstance() { - return new TipoListaPrelievoDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal void InitVars() { - this.columnCodTipoLista = base.Columns["CodTipoLista"]; - this.columnDescrLista = base.Columns["DescrLista"]; - this.columnIdxCellaDest = base.Columns["IdxCellaDest"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - private void InitClass() { - this.columnCodTipoLista = new global::System.Data.DataColumn("CodTipoLista", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodTipoLista); - this.columnDescrLista = new global::System.Data.DataColumn("DescrLista", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDescrLista); - this.columnIdxCellaDest = new global::System.Data.DataColumn("IdxCellaDest", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnIdxCellaDest); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnCodTipoLista}, true)); - this.columnCodTipoLista.AllowDBNull = false; - this.columnCodTipoLista.Unique = true; - this.columnCodTipoLista.MaxLength = 10; - this.columnDescrLista.MaxLength = 50; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public TipoListaPrelievoRow NewTipoListaPrelievoRow() { - return ((TipoListaPrelievoRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new TipoListaPrelievoRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Type GetRowType() { - return typeof(TipoListaPrelievoRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.TipoListaPrelievoRowChanged != null)) { - this.TipoListaPrelievoRowChanged(this, new TipoListaPrelievoRowChangeEvent(((TipoListaPrelievoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.TipoListaPrelievoRowChanging != null)) { - this.TipoListaPrelievoRowChanging(this, new TipoListaPrelievoRowChangeEvent(((TipoListaPrelievoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.TipoListaPrelievoRowDeleted != null)) { - this.TipoListaPrelievoRowDeleted(this, new TipoListaPrelievoRowChangeEvent(((TipoListaPrelievoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.TipoListaPrelievoRowDeleting != null)) { - this.TipoListaPrelievoRowDeleting(this, new TipoListaPrelievoRowChangeEvent(((TipoListaPrelievoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void RemoveTipoListaPrelievoRow(TipoListaPrelievoRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - 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_magazzino ds = new DS_magazzino(); - 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 = "TipoListaPrelievoDataTable"; - 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 the strongly named DataTable class. /// @@ -6060,6 +5799,282 @@ namespace GMW_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class TipoListaPrelievoDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodTipoLista; + + private global::System.Data.DataColumn columnDescrLista; + + private global::System.Data.DataColumn columnIdxPosizione; + + private global::System.Data.DataColumn columnCodCella; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TipoListaPrelievoDataTable() { + this.TableName = "TipoListaPrelievo"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal TipoListaPrelievoDataTable(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()] + protected TipoListaPrelievoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodTipoListaColumn { + get { + return this.columnCodTipoLista; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescrListaColumn { + get { + return this.columnDescrLista; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn IdxPosizioneColumn { + get { + return this.columnIdxPosizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodCellaColumn { + get { + return this.columnCodCella; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TipoListaPrelievoRow this[int index] { + get { + return ((TipoListaPrelievoRow)(this.Rows[index])); + } + } + + public event TipoListaPrelievoRowChangeEventHandler TipoListaPrelievoRowChanging; + + public event TipoListaPrelievoRowChangeEventHandler TipoListaPrelievoRowChanged; + + public event TipoListaPrelievoRowChangeEventHandler TipoListaPrelievoRowDeleting; + + public event TipoListaPrelievoRowChangeEventHandler TipoListaPrelievoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddTipoListaPrelievoRow(TipoListaPrelievoRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TipoListaPrelievoRow AddTipoListaPrelievoRow(string CodTipoLista, string DescrLista, int IdxPosizione, string CodCella) { + TipoListaPrelievoRow rowTipoListaPrelievoRow = ((TipoListaPrelievoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodTipoLista, + DescrLista, + IdxPosizione, + CodCella}; + rowTipoListaPrelievoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowTipoListaPrelievoRow); + return rowTipoListaPrelievoRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TipoListaPrelievoRow FindByCodTipoLista(string CodTipoLista) { + return ((TipoListaPrelievoRow)(this.Rows.Find(new object[] { + CodTipoLista}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + TipoListaPrelievoDataTable cln = ((TipoListaPrelievoDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new TipoListaPrelievoDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodTipoLista = base.Columns["CodTipoLista"]; + this.columnDescrLista = base.Columns["DescrLista"]; + this.columnIdxPosizione = base.Columns["IdxPosizione"]; + this.columnCodCella = base.Columns["CodCella"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodTipoLista = new global::System.Data.DataColumn("CodTipoLista", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodTipoLista); + this.columnDescrLista = new global::System.Data.DataColumn("DescrLista", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrLista); + this.columnIdxPosizione = new global::System.Data.DataColumn("IdxPosizione", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxPosizione); + this.columnCodCella = new global::System.Data.DataColumn("CodCella", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCella); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodTipoLista}, true)); + this.columnCodTipoLista.AllowDBNull = false; + this.columnCodTipoLista.Unique = true; + this.columnCodTipoLista.MaxLength = 10; + this.columnDescrLista.MaxLength = 250; + this.columnCodCella.AllowDBNull = false; + this.columnCodCella.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TipoListaPrelievoRow NewTipoListaPrelievoRow() { + return ((TipoListaPrelievoRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TipoListaPrelievoRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(TipoListaPrelievoRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TipoListaPrelievoRowChanged != null)) { + this.TipoListaPrelievoRowChanged(this, new TipoListaPrelievoRowChangeEvent(((TipoListaPrelievoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TipoListaPrelievoRowChanging != null)) { + this.TipoListaPrelievoRowChanging(this, new TipoListaPrelievoRowChangeEvent(((TipoListaPrelievoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TipoListaPrelievoRowDeleted != null)) { + this.TipoListaPrelievoRowDeleted(this, new TipoListaPrelievoRowChangeEvent(((TipoListaPrelievoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TipoListaPrelievoRowDeleting != null)) { + this.TipoListaPrelievoRowDeleting(this, new TipoListaPrelievoRowChangeEvent(((TipoListaPrelievoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveTipoListaPrelievoRow(TipoListaPrelievoRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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_magazzino ds = new DS_magazzino(); + 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 = "TipoListaPrelievoDataTable"; + 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. /// @@ -8756,91 +8771,6 @@ namespace GMW_data { } } - /// - ///Represents strongly named DataRow class. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public partial class TipoListaPrelievoRow : global::System.Data.DataRow { - - private TipoListaPrelievoDataTable tableTipoListaPrelievo; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal TipoListaPrelievoRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableTipoListaPrelievo = ((TipoListaPrelievoDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodTipoLista { - get { - return ((string)(this[this.tableTipoListaPrelievo.CodTipoListaColumn])); - } - set { - this[this.tableTipoListaPrelievo.CodTipoListaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string DescrLista { - get { - try { - return ((string)(this[this.tableTipoListaPrelievo.DescrListaColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DescrLista\' in table \'TipoListaPrelievo\' is DBNull.", e); - } - } - set { - this[this.tableTipoListaPrelievo.DescrListaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public int IdxCellaDest { - get { - try { - return ((int)(this[this.tableTipoListaPrelievo.IdxCellaDestColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxCellaDest\' in table \'TipoListaPrelievo\' is DBNull.", e); - } - } - set { - this[this.tableTipoListaPrelievo.IdxCellaDestColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsDescrListaNull() { - return this.IsNull(this.tableTipoListaPrelievo.DescrListaColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetDescrListaNull() { - this[this.tableTipoListaPrelievo.DescrListaColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsIdxCellaDestNull() { - return this.IsNull(this.tableTipoListaPrelievo.IdxCellaDestColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetIdxCellaDestNull() { - this[this.tableTipoListaPrelievo.IdxCellaDestColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoRow[] GetElencoListePrelievoRows() { - if ((this.Table.ChildRelations["FK_ElencoListePrelievo_TipoListaPrelievo1"] == null)) { - return new ElencoListePrelievoRow[0]; - } - else { - return ((ElencoListePrelievoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ElencoListePrelievo_TipoListaPrelievo1"]))); - } - } - } - /// ///Represents strongly named DataRow class. /// @@ -9231,6 +9161,101 @@ namespace GMW_data { } } + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class TipoListaPrelievoRow : global::System.Data.DataRow { + + private TipoListaPrelievoDataTable tableTipoListaPrelievo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal TipoListaPrelievoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTipoListaPrelievo = ((TipoListaPrelievoDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodTipoLista { + get { + return ((string)(this[this.tableTipoListaPrelievo.CodTipoListaColumn])); + } + set { + this[this.tableTipoListaPrelievo.CodTipoListaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescrLista { + get { + try { + return ((string)(this[this.tableTipoListaPrelievo.DescrListaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrLista\' in table \'TipoListaPrelievo\' is DBNull.", e); + } + } + set { + this[this.tableTipoListaPrelievo.DescrListaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int IdxPosizione { + get { + try { + return ((int)(this[this.tableTipoListaPrelievo.IdxPosizioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxPosizione\' in table \'TipoListaPrelievo\' is DBNull.", e); + } + } + set { + this[this.tableTipoListaPrelievo.IdxPosizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCella { + get { + return ((string)(this[this.tableTipoListaPrelievo.CodCellaColumn])); + } + set { + this[this.tableTipoListaPrelievo.CodCellaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescrListaNull() { + return this.IsNull(this.tableTipoListaPrelievo.DescrListaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescrListaNull() { + this[this.tableTipoListaPrelievo.DescrListaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsIdxPosizioneNull() { + return this.IsNull(this.tableTipoListaPrelievo.IdxPosizioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetIdxPosizioneNull() { + this[this.tableTipoListaPrelievo.IdxPosizioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoRow[] GetElencoListePrelievoRows() { + if ((this.Table.ChildRelations["FK_ElencoListePrelievo_TipoListaPrelievo1"] == null)) { + return new ElencoListePrelievoRow[0]; + } + else { + return ((ElencoListePrelievoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ElencoListePrelievo_TipoListaPrelievo1"]))); + } + } + } + /// ///Row event argument class /// @@ -9603,37 +9628,6 @@ namespace GMW_data { } } - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public class TipoListaPrelievoRowChangeEvent : global::System.EventArgs { - - private TipoListaPrelievoRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public TipoListaPrelievoRowChangeEvent(TipoListaPrelievoRow row, global::System.Data.DataRowAction action) { - this.eventRow = row; - this.eventAction = action; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public TipoListaPrelievoRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataRowAction Action { - get { - return this.eventAction; - } - } - } - /// ///Row event argument class /// @@ -9695,6 +9689,37 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class TipoListaPrelievoRowChangeEvent : global::System.EventArgs { + + private TipoListaPrelievoRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TipoListaPrelievoRowChangeEvent(TipoListaPrelievoRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TipoListaPrelievoRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_magazzinoTableAdapters { @@ -11804,7 +11829,7 @@ SELECT UDC, IdxCella, CodCS, DataRif FROM PosizioneUdcCorrente WHERE (IdxCella = [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT UDC, IdxCella, CodCS, DataRif FROM dbo.PosizioneUdcCorrente"; @@ -11830,13 +11855,18 @@ SELECT UDC, IdxCella, CodCS, DataRif FROM PosizioneUdcCorrente WHERE (IdxCella = this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_spostaUdc"; - this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCellaFrom", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCellaTo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].CommandText = "SELECT *\r\nFROM dbo.PosizioneUdcCorrente\r\nwhere UDC = @UDC"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_spostaUdc"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCellaFrom", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCellaTo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -11915,6 +11945,22 @@ SELECT UDC, IdxCella, CodCS, DataRif FROM PosizioneUdcCorrente WHERE (IdxCella = return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.PosizioneUdcCorrenteDataTable getByUDC(string UDC) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((UDC == null)) { + throw new global::System.ArgumentNullException("UDC"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(UDC)); + } + DS_magazzino.PosizioneUdcCorrenteDataTable dataTable = new DS_magazzino.PosizioneUdcCorrenteDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(DS_magazzino.PosizioneUdcCorrenteDataTable dataTable) { @@ -12090,7 +12136,7 @@ SELECT UDC, IdxCella, CodCS, DataRif FROM PosizioneUdcCorrente WHERE (IdxCella = [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int stp_spostaUdc(string CodCS, string UDC, global::System.Nullable IdxCellaFrom, global::System.Nullable IdxCellaTo) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; if ((CodCS == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -16162,369 +16208,6 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co } } - /// - ///Represents the connection and commands used to retrieve and save data. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public partial class TipoListaPrelievoTableAdapter : 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()] - public TipoListaPrelievoTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { - get { - if ((this._adapter == null)) { - this.InitAdapter(); - } - return this._adapter; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - 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()] - 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()] - protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { - get { - if ((this._commandCollection == null)) { - this.InitCommandCollection(); - } - return this._commandCollection; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool ClearBeforeFill { - get { - return this._clearBeforeFill; - } - set { - this._clearBeforeFill = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - 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 = "TipoListaPrelievo"; - tableMapping.ColumnMappings.Add("CodTipoLista", "CodTipoLista"); - tableMapping.ColumnMappings.Add("DescrLista", "DescrLista"); - tableMapping.ColumnMappings.Add("IdxCellaDest", "IdxCellaDest"); - 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].[TipoListaPrelievo] WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxCellaDest = 1 AND [IdxCellaDest] IS NULL) OR ([IdxCellaDest] = @Original_IdxCellaDest)))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrLista", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxCellaDest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCellaDest", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCellaDest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCellaDest", 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].[TipoListaPrelievo] ([CodTipoLista], [DescrLista], [IdxCellaDes" + - "t]) VALUES (@CodTipoLista, @DescrLista, @IdxCellaDest);\r\nSELECT CodTipoLista, De" + - "scrLista, IdxCellaDest FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoList" + - "a)"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCellaDest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCellaDest", 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].[TipoListaPrelievo] SET [CodTipoLista] = @CodTipoLista, [DescrLista] = @DescrLista, [IdxCellaDest] = @IdxCellaDest WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxCellaDest = 1 AND [IdxCellaDest] IS NULL) OR ([IdxCellaDest] = @Original_IdxCellaDest))); -SELECT CodTipoLista, DescrLista, IdxCellaDest FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCellaDest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCellaDest", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrLista", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxCellaDest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCellaDest", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCellaDest", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCellaDest", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - 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()] - private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT CodTipoLista, DescrLista, IdxCellaDest FROM dbo.TipoListaPrelievo"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(DS_magazzino.TipoListaPrelievoDataTable 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DS_magazzino.TipoListaPrelievoDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DS_magazzino.TipoListaPrelievoDataTable dataTable = new DS_magazzino.TipoListaPrelievoDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_magazzino.TipoListaPrelievoDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_magazzino dataSet) { - return this.Adapter.Update(dataSet, "TipoListaPrelievo"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [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.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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(string Original_CodTipoLista, string Original_DescrLista, global::System.Nullable Original_IdxCellaDest) { - if ((Original_CodTipoLista == null)) { - throw new global::System.ArgumentNullException("Original_CodTipoLista"); - } - else { - this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodTipoLista)); - } - if ((Original_DescrLista == null)) { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrLista)); - } - if ((Original_IdxCellaDest.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdxCellaDest.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; - } - 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(string CodTipoLista, string DescrLista, global::System.Nullable IdxCellaDest) { - if ((CodTipoLista == null)) { - throw new global::System.ArgumentNullException("CodTipoLista"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodTipoLista)); - } - if ((DescrLista == null)) { - this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrLista)); - } - if ((IdxCellaDest.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxCellaDest.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; - } - 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string CodTipoLista, string DescrLista, global::System.Nullable IdxCellaDest, string Original_CodTipoLista, string Original_DescrLista, global::System.Nullable Original_IdxCellaDest) { - if ((CodTipoLista == null)) { - throw new global::System.ArgumentNullException("CodTipoLista"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodTipoLista)); - } - if ((DescrLista == null)) { - this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrLista)); - } - if ((IdxCellaDest.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxCellaDest.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((Original_CodTipoLista == null)) { - throw new global::System.ArgumentNullException("Original_CodTipoLista"); - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodTipoLista)); - } - if ((Original_DescrLista == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_DescrLista)); - } - if ((Original_IdxCellaDest.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdxCellaDest.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; - } - 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string DescrLista, global::System.Nullable IdxCellaDest, string Original_CodTipoLista, string Original_DescrLista, global::System.Nullable Original_IdxCellaDest) { - return this.Update(Original_CodTipoLista, DescrLista, IdxCellaDest, Original_CodTipoLista, Original_DescrLista, Original_IdxCellaDest); - } - } - /// ///Represents the connection and commands used to retrieve and save data. /// @@ -16694,11 +16377,16 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 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 CodLista, UDC, Qta, Proposto, Prelevato FROM dbo.RigheListePrelievo"; 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 = "SELECT *\r\nFROM dbo.RigheListePrelievo\r\nwhere CodLista = @CodLista"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, "CodLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -16723,6 +16411,22 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.RigheListePrelievoDataTable getByCodLista(string CodLista) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodLista == null)) { + throw new global::System.ArgumentNullException("CodLista"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CodLista)); + } + DS_magazzino.RigheListePrelievoDataTable dataTable = new DS_magazzino.RigheListePrelievoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(DS_magazzino.RigheListePrelievoDataTable dataTable) { @@ -17170,7 +16874,7 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogge" + @@ -17209,6 +16913,12 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NewCodSoggetto", global::System.Data.SqlDbType.NChar, 16, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodListaAttuale", global::System.Data.SqlDbType.VarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_segnaCompletatoListePrelievo"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodListaAttuale", global::System.Data.SqlDbType.VarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17359,6 +17069,22 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.ElencoListePrelievoDataTable updateCompletato(string CodListaAttuale) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((CodListaAttuale == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodListaAttuale)); + } + DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(DS_magazzino.ElencoListePrelievoDataTable dataTable) { @@ -17815,6 +17541,418 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class TipoListaPrelievoTableAdapter : 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()] + public TipoListaPrelievoTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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()] + 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()] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 = "TipoListaPrelievo"; + tableMapping.ColumnMappings.Add("CodTipoLista", "CodTipoLista"); + tableMapping.ColumnMappings.Add("DescrLista", "DescrLista"); + tableMapping.ColumnMappings.Add("IdxPosizione", "IdxPosizione"); + tableMapping.ColumnMappings.Add("CodCella", "CodCella"); + 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].[TipoListaPrelievo] WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) AND ([CodCella] = @Original_CodCella))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrLista", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", 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].[TipoListaPrelievo] ([CodTipoLista], [DescrLista], [IdxPosizione], [CodCella]) VALUES (@CodTipoLista, @DescrLista, @IdxPosizione, @CodCella); +SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", 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].[TipoListaPrelievo] SET [CodTipoLista] = @CodTipoLista, [DescrLista] = @DescrLista, [IdxPosizione] = @IdxPosizione, [CodCella] = @CodCella WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) AND ([CodCella] = @Original_CodCella)); +SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrLista", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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()] + 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 CodTipoLista, DescrLista, IdxPosizione, CodCella FROM dbo.TipoListaPreliev" + + "o"; + 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 = "SELECT *\r\nFROM dbo.TipoListaPrelievo\r\nwhere CodTipoLista = @CodTipoLista"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_magazzino.TipoListaPrelievoDataTable 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_magazzino.TipoListaPrelievoDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_magazzino.TipoListaPrelievoDataTable dataTable = new DS_magazzino.TipoListaPrelievoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.TipoListaPrelievoDataTable getByCodTipoLista(string CodTipoLista) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodTipoLista == null)) { + throw new global::System.ArgumentNullException("CodTipoLista"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CodTipoLista)); + } + DS_magazzino.TipoListaPrelievoDataTable dataTable = new DS_magazzino.TipoListaPrelievoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_magazzino.TipoListaPrelievoDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_magazzino dataSet) { + return this.Adapter.Update(dataSet, "TipoListaPrelievo"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_CodTipoLista, string Original_DescrLista, global::System.Nullable Original_IdxPosizione, string Original_CodCella) { + if ((Original_CodTipoLista == null)) { + throw new global::System.ArgumentNullException("Original_CodTipoLista"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodTipoLista)); + } + if ((Original_DescrLista == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrLista)); + } + if ((Original_IdxPosizione.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdxPosizione.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Original_CodCella == null)) { + throw new global::System.ArgumentNullException("Original_CodCella"); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_CodCella)); + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string CodTipoLista, string DescrLista, global::System.Nullable IdxPosizione, string CodCella) { + if ((CodTipoLista == null)) { + throw new global::System.ArgumentNullException("CodTipoLista"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodTipoLista)); + } + if ((DescrLista == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrLista)); + } + if ((IdxPosizione.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxPosizione.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((CodCella == null)) { + throw new global::System.ArgumentNullException("CodCella"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodCella)); + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string CodTipoLista, string DescrLista, global::System.Nullable IdxPosizione, string CodCella, string Original_CodTipoLista, string Original_DescrLista, global::System.Nullable Original_IdxPosizione, string Original_CodCella) { + if ((CodTipoLista == null)) { + throw new global::System.ArgumentNullException("CodTipoLista"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodTipoLista)); + } + if ((DescrLista == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrLista)); + } + if ((IdxPosizione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxPosizione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((CodCella == null)) { + throw new global::System.ArgumentNullException("CodCella"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodCella)); + } + if ((Original_CodTipoLista == null)) { + throw new global::System.ArgumentNullException("Original_CodTipoLista"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodTipoLista)); + } + if ((Original_DescrLista == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrLista)); + } + if ((Original_IdxPosizione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IdxPosizione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_CodCella == null)) { + throw new global::System.ArgumentNullException("Original_CodCella"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodCella)); + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string DescrLista, global::System.Nullable IdxPosizione, string CodCella, string Original_CodTipoLista, string Original_DescrLista, global::System.Nullable Original_IdxPosizione, string Original_CodCella) { + return this.Update(Original_CodTipoLista, DescrLista, IdxPosizione, CodCella, Original_CodTipoLista, Original_DescrLista, Original_IdxPosizione, Original_CodCella); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -17844,12 +17982,12 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg private AnagImballiTableAdapter _anagImballiTableAdapter; - private TipoListaPrelievoTableAdapter _tipoListaPrelievoTableAdapter; - private RigheListePrelievoTableAdapter _righeListePrelievoTableAdapter; private ElencoListePrelievoTableAdapter _elencoListePrelievoTableAdapter; + private TipoListaPrelievoTableAdapter _tipoListaPrelievoTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -17968,19 +18106,6 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + - "", "System.Drawing.Design.UITypeEditor")] - public TipoListaPrelievoTableAdapter TipoListaPrelievoTableAdapter { - get { - return this._tipoListaPrelievoTableAdapter; - } - set { - this._tipoListaPrelievoTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + @@ -18007,6 +18132,19 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + + "", "System.Drawing.Design.UITypeEditor")] + public TipoListaPrelievoTableAdapter TipoListaPrelievoTableAdapter { + get { + return this._tipoListaPrelievoTableAdapter; + } + set { + this._tipoListaPrelievoTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool BackupDataSetBeforeUpdate { get { @@ -18056,10 +18194,6 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg && (this._anagImballiTableAdapter.Connection != null))) { return this._anagImballiTableAdapter.Connection; } - if (((this._tipoListaPrelievoTableAdapter != null) - && (this._tipoListaPrelievoTableAdapter.Connection != null))) { - return this._tipoListaPrelievoTableAdapter.Connection; - } if (((this._righeListePrelievoTableAdapter != null) && (this._righeListePrelievoTableAdapter.Connection != null))) { return this._righeListePrelievoTableAdapter.Connection; @@ -18068,6 +18202,10 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg && (this._elencoListePrelievoTableAdapter.Connection != null))) { return this._elencoListePrelievoTableAdapter.Connection; } + if (((this._tipoListaPrelievoTableAdapter != null) + && (this._tipoListaPrelievoTableAdapter.Connection != null))) { + return this._tipoListaPrelievoTableAdapter.Connection; + } return null; } set { @@ -18104,15 +18242,15 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg if ((this._anagImballiTableAdapter != null)) { count = (count + 1); } - if ((this._tipoListaPrelievoTableAdapter != null)) { - count = (count + 1); - } if ((this._righeListePrelievoTableAdapter != null)) { count = (count + 1); } if ((this._elencoListePrelievoTableAdapter != null)) { count = (count + 1); } + if ((this._tipoListaPrelievoTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -18159,15 +18297,6 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allChangedRows.AddRange(updatedRows); } } - if ((this._celleTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._celleTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._elencoCartelliniTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -18177,6 +18306,15 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allChangedRows.AddRange(updatedRows); } } + if ((this._celleTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._celleTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._righeListePrelievoTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -18186,12 +18324,12 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allChangedRows.AddRange(updatedRows); } } - if ((this._tipoCellaTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._posizioneUdcCorrenteTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._tipoCellaTableAdapter.Update(updatedRows)); + result = (result + this._posizioneUdcCorrenteTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -18204,12 +18342,12 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allChangedRows.AddRange(updatedRows); } } - if ((this._posizioneUdcCorrenteTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._tipoCellaTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._posizioneUdcCorrenteTableAdapter.Update(updatedRows)); + result = (result + this._tipoCellaTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -18263,14 +18401,6 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allAddedRows.AddRange(addedRows); } } - if ((this._celleTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._celleTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._elencoCartelliniTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -18279,6 +18409,14 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allAddedRows.AddRange(addedRows); } } + if ((this._celleTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._celleTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._righeListePrelievoTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -18287,11 +18425,11 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allAddedRows.AddRange(addedRows); } } - if ((this._tipoCellaTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._posizioneUdcCorrenteTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._tipoCellaTableAdapter.Update(addedRows)); + result = (result + this._posizioneUdcCorrenteTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -18303,11 +18441,11 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allAddedRows.AddRange(addedRows); } } - if ((this._posizioneUdcCorrenteTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._tipoCellaTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._posizioneUdcCorrenteTableAdapter.Update(addedRows)); + result = (result + this._tipoCellaTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -18336,11 +18474,11 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allChangedRows.AddRange(deletedRows); } } - if ((this._posizioneUdcCorrenteTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._tipoCellaTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._posizioneUdcCorrenteTableAdapter.Update(deletedRows)); + result = (result + this._tipoCellaTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -18352,11 +18490,11 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allChangedRows.AddRange(deletedRows); } } - if ((this._tipoCellaTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._posizioneUdcCorrenteTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._tipoCellaTableAdapter.Update(deletedRows)); + result = (result + this._posizioneUdcCorrenteTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -18368,14 +18506,6 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allChangedRows.AddRange(deletedRows); } } - if ((this._elencoCartelliniTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._elencoCartelliniTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._celleTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -18384,6 +18514,14 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg allChangedRows.AddRange(deletedRows); } } + if ((this._elencoCartelliniTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._elencoCartelliniTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._elencoListePrelievoTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.ElencoListePrelievo.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -18493,11 +18631,6 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } - if (((this._tipoListaPrelievoTableAdapter != null) - && (this.MatchTableAdapterConnection(this._tipoListaPrelievoTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + - "tring."); - } if (((this._righeListePrelievoTableAdapter != null) && (this.MatchTableAdapterConnection(this._righeListePrelievoTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + @@ -18508,6 +18641,11 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._tipoListaPrelievoTableAdapter != null) + && (this.MatchTableAdapterConnection(this._tipoListaPrelievoTableAdapter.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" + @@ -18612,15 +18750,6 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg adaptersWithAcceptChangesDuringUpdate.Add(this._anagImballiTableAdapter.Adapter); } } - if ((this._tipoListaPrelievoTableAdapter != null)) { - revertConnections.Add(this._tipoListaPrelievoTableAdapter, this._tipoListaPrelievoTableAdapter.Connection); - this._tipoListaPrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._tipoListaPrelievoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._tipoListaPrelievoTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._tipoListaPrelievoTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._tipoListaPrelievoTableAdapter.Adapter); - } - } if ((this._righeListePrelievoTableAdapter != null)) { revertConnections.Add(this._righeListePrelievoTableAdapter, this._righeListePrelievoTableAdapter.Connection); this._righeListePrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -18639,6 +18768,15 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg adaptersWithAcceptChangesDuringUpdate.Add(this._elencoListePrelievoTableAdapter.Adapter); } } + if ((this._tipoListaPrelievoTableAdapter != null)) { + revertConnections.Add(this._tipoListaPrelievoTableAdapter, this._tipoListaPrelievoTableAdapter.Connection); + this._tipoListaPrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._tipoListaPrelievoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._tipoListaPrelievoTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._tipoListaPrelievoTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._tipoListaPrelievoTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -18729,10 +18867,6 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg this._anagImballiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImballiTableAdapter])); this._anagImballiTableAdapter.Transaction = null; } - if ((this._tipoListaPrelievoTableAdapter != null)) { - this._tipoListaPrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tipoListaPrelievoTableAdapter])); - this._tipoListaPrelievoTableAdapter.Transaction = null; - } if ((this._righeListePrelievoTableAdapter != null)) { this._righeListePrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._righeListePrelievoTableAdapter])); this._righeListePrelievoTableAdapter.Transaction = null; @@ -18741,6 +18875,10 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg this._elencoListePrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoListePrelievoTableAdapter])); this._elencoListePrelievoTableAdapter.Transaction = null; } + if ((this._tipoListaPrelievoTableAdapter != null)) { + this._tipoListaPrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tipoListaPrelievoTableAdapter])); + this._tipoListaPrelievoTableAdapter.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/GMW_data/DS_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd index 8771dbe0..c05ecb4e 100644 --- a/GMW/GMW_data/DS_magazzino.xsd +++ b/GMW/GMW_data/DS_magazzino.xsd @@ -446,6 +446,18 @@ SELECT UDC, IdxCella, CodCS, DataRif FROM PosizioneUdcCorrente WHERE (IdxCella = + + + + SELECT * +FROM dbo.PosizioneUdcCorrente +where UDC = @UDC + + + + + + @@ -1335,63 +1347,6 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co - - - - - - DELETE FROM [dbo].[TipoListaPrelievo] WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxCellaDest = 1 AND [IdxCellaDest] IS NULL) OR ([IdxCellaDest] = @Original_IdxCellaDest))) - - - - - - - - - - - - INSERT INTO [dbo].[TipoListaPrelievo] ([CodTipoLista], [DescrLista], [IdxCellaDest]) VALUES (@CodTipoLista, @DescrLista, @IdxCellaDest); -SELECT CodTipoLista, DescrLista, IdxCellaDest FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista) - - - - - - - - - - SELECT CodTipoLista, DescrLista, IdxCellaDest FROM dbo.TipoListaPrelievo - - - - - - UPDATE [dbo].[TipoListaPrelievo] SET [CodTipoLista] = @CodTipoLista, [DescrLista] = @DescrLista, [IdxCellaDest] = @IdxCellaDest WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxCellaDest = 1 AND [IdxCellaDest] IS NULL) OR ([IdxCellaDest] = @Original_IdxCellaDest))); -SELECT CodTipoLista, DescrLista, IdxCellaDest FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista) - - - - - - - - - - - - - - - - - - - - - @@ -1457,7 +1412,20 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - + + + + + SELECT * +FROM dbo.RigheListePrelievo +where CodLista = @CodLista + + + + + + + @@ -1628,6 +1596,92 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg + + + + dbo.stp_segnaCompletatoListePrelievo + + + + + + + + + + + + + + + DELETE FROM [dbo].[TipoListaPrelievo] WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) AND ([CodCella] = @Original_CodCella)) + + + + + + + + + + + + + INSERT INTO [dbo].[TipoListaPrelievo] ([CodTipoLista], [DescrLista], [IdxPosizione], [CodCella]) VALUES (@CodTipoLista, @DescrLista, @IdxPosizione, @CodCella); +SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista) + + + + + + + + + + + SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella FROM dbo.TipoListaPrelievo + + + + + + UPDATE [dbo].[TipoListaPrelievo] SET [CodTipoLista] = @CodTipoLista, [DescrLista] = @DescrLista, [IdxPosizione] = @IdxPosizione, [CodCella] = @CodCella WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) AND ([CodCella] = @Original_CodCella)); +SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista) + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT * +FROM dbo.TipoListaPrelievo +where CodTipoLista = @CodTipoLista + + + + + + @@ -1639,6 +1693,154 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1648,120 +1850,117 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1776,178 +1975,143 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1961,102 +2125,182 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg - + + + + + + + + + + - + - - - - - - - - + - - - - - - - - - - - + - - - - - - - - - + + - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + - + + + + + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2071,114 +2315,34 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg - - - - - - - - - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - + @@ -2191,121 +2355,18 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg - + - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2368,10 +2429,6 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg - - - - @@ -2381,6 +2438,10 @@ SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogg + + + + diff --git a/GMW/GMW_data/DS_magazzino.xss b/GMW/GMW_data/DS_magazzino.xss index 407cc205..0b39377a 100644 --- a/GMW/GMW_data/DS_magazzino.xss +++ b/GMW/GMW_data/DS_magazzino.xss @@ -4,38 +4,38 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - + + + + + + + + + + + + + - + 368 - 673 + 652 - 375 - 673 + 409 + 652 - + 368 @@ -47,7 +47,7 @@ - + 1116 @@ -59,19 +59,23 @@ - + 693 - 638 + 800 - 626 - 638 + 676 + 800 + + + 676 + 773 - + 1014 @@ -83,7 +87,7 @@ - + 1107 @@ -95,7 +99,7 @@ - + 131 @@ -107,27 +111,27 @@ - + 335 936 - 304 + 299 936 - + - 671 - 959 + 697 + 951 635 - 959 + 951 diff --git a/GMW/GMW_data/MagClass.cs b/GMW/GMW_data/MagClass.cs index 7589bbcf..1f3aec60 100644 --- a/GMW/GMW_data/MagClass.cs +++ b/GMW/GMW_data/MagClass.cs @@ -28,6 +28,7 @@ namespace GMW_data public DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter taElencoListePrelievo; public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taElencoCartellini; public DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter taRigheListePrelievo; + public DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter taTipoListaPrelievo; /// @@ -50,6 +51,7 @@ namespace GMW_data taElencoListePrelievo = new GMW_data.DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter(); taElencoCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter(); taRigheListePrelievo = new GMW_data.DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter(); + taTipoListaPrelievo = new GMW_data.DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter(); } /// /// effettua setup dei connection strings da web.config delal singola applicazione @@ -71,6 +73,7 @@ namespace GMW_data taElencoListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); taElencoCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); taRigheListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); + taTipoListaPrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); } @@ -316,22 +319,6 @@ namespace GMW_data answ = esitoOperazione.errore; } - - - - - - /* - * Questa funzione va chiamata quando inizio a gestire una lista di prelievo come operatore carrellista - * - * - controllo se la lista esiste, ed è ancora NON completata - * - se risulta già completata errore xché è "readOnly" la lista essendo già completata (vedere l'enum in fondo al codice) - * - * - se la lista è disponibile - * - salvo CodSoggetto - * - salvo iniziata = 1 (true) - * */ - return answ; } @@ -346,6 +333,10 @@ namespace GMW_data { esitoOperazione answ = esitoOperazione.errore; + + + + /* * Questa funzione va chiamata da web o da terminalino ogni volta che si fa una conferma di avvenuto prelievo, ovvero il carrellista ha DAVVERO prelevato un UDC associato ad una lista * @@ -400,9 +391,64 @@ namespace GMW_data /// Codice company/sito /// codice della lista di prelievo /// esito comando - public bool scaricaListaPrelievo(string CodCS, string CodLista) + public esitoOperazione scaricaListaPrelievo(string CodCS, string CodLista) { - bool answ = false; + esitoOperazione answ = esitoOperazione.errore; + + DS_magazzino.ElencoListePrelievoDataTable tabella = taElencoListePrelievo.getByCodLista(CodLista); + DS_magazzino.ElencoListePrelievoRow riga = tabella[0]; + + // se la lista esiste... + if (tabella.Rows.Count > 0) + { + // se la lista è ancora non completata + if (riga.Completata == false) + { + // ricavo il codtipolista + string codTipoListaAttuale = riga.CodTipoLista; + + //leggo da tipoLista prelievo alcuni dati (es codcella di destinazione) + DS_magazzino.TipoListaPrelievoDataTable tabellaTipoLista = taTipoListaPrelievo.getByCodTipoLista(codTipoListaAttuale); + DS_magazzino.TipoListaPrelievoRow rigaTipoLista = tabellaTipoLista[0]; + + // leggo da righe lista prelievo il dato udc che mi serve + DS_magazzino.RigheListePrelievoRow rigaListaPrelievo = taRigheListePrelievo.getByCodLista(CodLista)[0]; + + // potrebbe non servire se per codCella si intende l'idx più sotto... + string codCellaDestAttuale = rigaTipoLista.CodCella; + + // i due idx che mi servono ... il primo ... + int idxCellaTo = rigaTipoLista.IdxPosizione; + // ricavo il codice UDC + string UDC = rigaListaPrelievo.UDC; + + // mi serve per posizione udc corrente + DS_magazzino.PosizioneUdcCorrenteRow rigaUdcCorrente = taPosUdcCorr.getByUDC(UDC)[0]; + + // il secondo idx che mi serve + int idxCellaFrom = rigaUdcCorrente.IdxCella; + + // sposto UDC + spostaUDC(CodCS, UDC, idxCellaFrom, idxCellaTo); + + // segna come completata la lista prelievo + taElencoListePrelievo.updateCompletato(CodLista); + + // restituisce ok + answ = esitoOperazione.ok; + } + // se è già completata dà errore + else + { + answ = esitoOperazione.errore_readOnly; + } + } + // se la lista non esiste dai errore + else + { + answ = esitoOperazione.errore; + } + /* * Questa funzione serve ALLA FINE delle operazioni di prelievo, x chiudere la lissta di prelievo diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll index 484cf7cf..d7490323 100644 Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll index 484cf7cf..d7490323 100644 Binary files a/GMW/GMW_data/obj/Debug/GMW_data.dll and b/GMW/GMW_data/obj/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll index d9517596..dec3d356 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll differ