diff --git a/MagData/DS_Mag.Designer.cs b/MagData/DS_Mag.Designer.cs index f0f9720..4eda20e 100644 --- a/MagData/DS_Mag.Designer.cs +++ b/MagData/DS_Mag.Designer.cs @@ -30,6 +30,8 @@ namespace MagData { private AnagArtDataTable tableAnagArt; + private ODLDataTable tableODL; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -67,6 +69,9 @@ namespace MagData { if ((ds.Tables["AnagArt"] != null)) { base.Tables.Add(new AnagArtDataTable(ds.Tables["AnagArt"])); } + if ((ds.Tables["ODL"] != null)) { + base.Tables.Add(new ODLDataTable(ds.Tables["ODL"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -115,6 +120,16 @@ namespace MagData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ODLDataTable ODL { + get { + return this.tableODL; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -191,6 +206,9 @@ namespace MagData { if ((ds.Tables["AnagArt"] != null)) { base.Tables.Add(new AnagArtDataTable(ds.Tables["AnagArt"])); } + if ((ds.Tables["ODL"] != null)) { + base.Tables.Add(new ODLDataTable(ds.Tables["ODL"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -242,6 +260,12 @@ namespace MagData { this.tableAnagArt.InitVars(); } } + this.tableODL = ((ODLDataTable)(base.Tables["ODL"])); + if ((initTable == true)) { + if ((this.tableODL != null)) { + this.tableODL.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -258,6 +282,8 @@ namespace MagData { base.Tables.Add(this.tableElencoUdc); this.tableAnagArt = new AnagArtDataTable(); base.Tables.Add(this.tableAnagArt); + this.tableODL = new ODLDataTable(); + base.Tables.Add(this.tableODL); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -278,6 +304,12 @@ namespace MagData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeODL() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -342,6 +374,9 @@ namespace MagData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void AnagArtRowChangeEventHandler(object sender, AnagArtRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void ODLRowChangeEventHandler(object sender, ODLRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -1823,6 +1858,539 @@ namespace MagData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ODLDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxODL; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnNumPezzi; + + private global::System.Data.DataColumn columnTCAssegnato; + + private global::System.Data.DataColumn columnDataInizio; + + private global::System.Data.DataColumn columnDataFine; + + private global::System.Data.DataColumn columnNote; + + private global::System.Data.DataColumn columnNeedAppr; + + private global::System.Data.DataColumn columnUserAppr; + + private global::System.Data.DataColumn columnDataAppr; + + private global::System.Data.DataColumn columnTCRichAttr; + + private global::System.Data.DataColumn columnKeyRichiesta; + + private global::System.Data.DataColumn columnPzPallet; + + private global::System.Data.DataColumn columnprovvisorio; + + private global::System.Data.DataColumn columnMatrOpr; + + private global::System.Data.DataColumn columnCommessaAs400; + + private global::System.Data.DataColumn columnToAs400; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ODLDataTable() { + this.TableName = "ODL"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal ODLDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected ODLDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn IdxODLColumn { + get { + return this.columnIdxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumPezziColumn { + get { + return this.columnNumPezzi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TCAssegnatoColumn { + get { + return this.columnTCAssegnato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DataInizioColumn { + get { + return this.columnDataInizio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DataFineColumn { + get { + return this.columnDataFine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NoteColumn { + get { + return this.columnNote; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NeedApprColumn { + get { + return this.columnNeedAppr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn UserApprColumn { + get { + return this.columnUserAppr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DataApprColumn { + get { + return this.columnDataAppr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TCRichAttrColumn { + get { + return this.columnTCRichAttr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn KeyRichiestaColumn { + get { + return this.columnKeyRichiesta; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn PzPalletColumn { + get { + return this.columnPzPallet; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn provvisorioColumn { + get { + return this.columnprovvisorio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn MatrOprColumn { + get { + return this.columnMatrOpr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CommessaAs400Column { + get { + return this.columnCommessaAs400; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ToAs400Column { + get { + return this.columnToAs400; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ODLRow this[int index] { + get { + return ((ODLRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ODLRowChangeEventHandler ODLRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ODLRowChangeEventHandler ODLRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ODLRowChangeEventHandler ODLRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ODLRowChangeEventHandler ODLRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddODLRow(ODLRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ODLRow AddODLRow( + string CodArticolo, + string IdxMacchina, + int NumPezzi, + decimal TCAssegnato, + System.DateTime DataInizio, + System.DateTime DataFine, + string Note, + bool NeedAppr, + string UserAppr, + System.DateTime DataAppr, + decimal TCRichAttr, + string KeyRichiesta, + int PzPallet, + bool provvisorio, + int MatrOpr, + string CommessaAs400, + int ToAs400) { + ODLRow rowODLRow = ((ODLRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + CodArticolo, + IdxMacchina, + NumPezzi, + TCAssegnato, + DataInizio, + DataFine, + Note, + NeedAppr, + UserAppr, + DataAppr, + TCRichAttr, + KeyRichiesta, + PzPallet, + provvisorio, + MatrOpr, + CommessaAs400, + ToAs400}; + rowODLRow.ItemArray = columnValuesArray; + this.Rows.Add(rowODLRow); + return rowODLRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ODLRow FindByIdxODL(int IdxODL) { + return ((ODLRow)(this.Rows.Find(new object[] { + IdxODL}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + ODLDataTable cln = ((ODLDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new ODLDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnIdxODL = base.Columns["IdxODL"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnNumPezzi = base.Columns["NumPezzi"]; + this.columnTCAssegnato = base.Columns["TCAssegnato"]; + this.columnDataInizio = base.Columns["DataInizio"]; + this.columnDataFine = base.Columns["DataFine"]; + this.columnNote = base.Columns["Note"]; + this.columnNeedAppr = base.Columns["NeedAppr"]; + this.columnUserAppr = base.Columns["UserAppr"]; + this.columnDataAppr = base.Columns["DataAppr"]; + this.columnTCRichAttr = base.Columns["TCRichAttr"]; + this.columnKeyRichiesta = base.Columns["KeyRichiesta"]; + this.columnPzPallet = base.Columns["PzPallet"]; + this.columnprovvisorio = base.Columns["provvisorio"]; + this.columnMatrOpr = base.Columns["MatrOpr"]; + this.columnCommessaAs400 = base.Columns["CommessaAs400"]; + this.columnToAs400 = base.Columns["ToAs400"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxODL); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnNumPezzi = new global::System.Data.DataColumn("NumPezzi", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumPezzi); + this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCAssegnato); + this.columnDataInizio = new global::System.Data.DataColumn("DataInizio", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataInizio); + this.columnDataFine = new global::System.Data.DataColumn("DataFine", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataFine); + this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNote); + this.columnNeedAppr = new global::System.Data.DataColumn("NeedAppr", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNeedAppr); + this.columnUserAppr = new global::System.Data.DataColumn("UserAppr", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUserAppr); + this.columnDataAppr = new global::System.Data.DataColumn("DataAppr", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataAppr); + this.columnTCRichAttr = new global::System.Data.DataColumn("TCRichAttr", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCRichAttr); + this.columnKeyRichiesta = new global::System.Data.DataColumn("KeyRichiesta", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKeyRichiesta); + this.columnPzPallet = new global::System.Data.DataColumn("PzPallet", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPzPallet); + this.columnprovvisorio = new global::System.Data.DataColumn("provvisorio", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnprovvisorio); + this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOpr); + this.columnCommessaAs400 = new global::System.Data.DataColumn("CommessaAs400", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCommessaAs400); + this.columnToAs400 = new global::System.Data.DataColumn("ToAs400", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnToAs400); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxODL}, true)); + this.columnIdxODL.AutoIncrement = true; + this.columnIdxODL.AutoIncrementSeed = -1; + this.columnIdxODL.AutoIncrementStep = -1; + this.columnIdxODL.AllowDBNull = false; + this.columnIdxODL.ReadOnly = true; + this.columnIdxODL.Unique = true; + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnIdxMacchina.MaxLength = 50; + this.columnNumPezzi.AllowDBNull = false; + this.columnTCAssegnato.AllowDBNull = false; + this.columnNote.MaxLength = 2500; + this.columnNeedAppr.AllowDBNull = false; + this.columnUserAppr.MaxLength = 50; + this.columnKeyRichiesta.AllowDBNull = false; + this.columnKeyRichiesta.MaxLength = 50; + this.columnPzPallet.AllowDBNull = false; + this.columnprovvisorio.AllowDBNull = false; + this.columnMatrOpr.AllowDBNull = false; + this.columnCommessaAs400.ReadOnly = true; + this.columnCommessaAs400.MaxLength = 50; + this.columnToAs400.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ODLRow NewODLRow() { + return ((ODLRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ODLRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(ODLRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ODLRowChanged != null)) { + this.ODLRowChanged(this, new ODLRowChangeEvent(((ODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ODLRowChanging != null)) { + this.ODLRowChanging(this, new ODLRowChangeEvent(((ODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ODLRowDeleted != null)) { + this.ODLRowDeleted(this, new ODLRowChangeEvent(((ODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ODLRowDeleting != null)) { + this.ODLRowDeleting(this, new ODLRowChangeEvent(((ODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveODLRow(ODLRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Mag ds = new DS_Mag(); + 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 = "ODLDataTable"; + 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. /// @@ -2623,6 +3191,372 @@ namespace MagData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class ODLRow : global::System.Data.DataRow { + + private ODLDataTable tableODL; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal ODLRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableODL = ((ODLDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int IdxODL { + get { + return ((int)(this[this.tableODL.IdxODLColumn])); + } + set { + this[this.tableODL.IdxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CodArticolo { + get { + return ((string)(this[this.tableODL.CodArticoloColumn])); + } + set { + this[this.tableODL.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string IdxMacchina { + get { + try { + return ((string)(this[this.tableODL.IdxMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxMacchina\' nella tabella \'ODL\' è DBNull.", e); + } + } + set { + this[this.tableODL.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumPezzi { + get { + return ((int)(this[this.tableODL.NumPezziColumn])); + } + set { + this[this.tableODL.NumPezziColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal TCAssegnato { + get { + return ((decimal)(this[this.tableODL.TCAssegnatoColumn])); + } + set { + this[this.tableODL.TCAssegnatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime DataInizio { + get { + try { + return ((global::System.DateTime)(this[this.tableODL.DataInizioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataInizio\' nella tabella \'ODL\' è DBNull.", e); + } + } + set { + this[this.tableODL.DataInizioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime DataFine { + get { + try { + return ((global::System.DateTime)(this[this.tableODL.DataFineColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataFine\' nella tabella \'ODL\' è DBNull.", e); + } + } + set { + this[this.tableODL.DataFineColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Note { + get { + try { + return ((string)(this[this.tableODL.NoteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Note\' nella tabella \'ODL\' è DBNull.", e); + } + } + set { + this[this.tableODL.NoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool NeedAppr { + get { + return ((bool)(this[this.tableODL.NeedApprColumn])); + } + set { + this[this.tableODL.NeedApprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string UserAppr { + get { + try { + return ((string)(this[this.tableODL.UserApprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'UserAppr\' nella tabella \'ODL\' è DBNull.", e); + } + } + set { + this[this.tableODL.UserApprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime DataAppr { + get { + try { + return ((global::System.DateTime)(this[this.tableODL.DataApprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataAppr\' nella tabella \'ODL\' è DBNull.", e); + } + } + set { + this[this.tableODL.DataApprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal TCRichAttr { + get { + try { + return ((decimal)(this[this.tableODL.TCRichAttrColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TCRichAttr\' nella tabella \'ODL\' è DBNull.", e); + } + } + set { + this[this.tableODL.TCRichAttrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string KeyRichiesta { + get { + return ((string)(this[this.tableODL.KeyRichiestaColumn])); + } + set { + this[this.tableODL.KeyRichiestaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int PzPallet { + get { + return ((int)(this[this.tableODL.PzPalletColumn])); + } + set { + this[this.tableODL.PzPalletColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool provvisorio { + get { + return ((bool)(this[this.tableODL.provvisorioColumn])); + } + set { + this[this.tableODL.provvisorioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int MatrOpr { + get { + return ((int)(this[this.tableODL.MatrOprColumn])); + } + set { + this[this.tableODL.MatrOprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CommessaAs400 { + get { + try { + return ((string)(this[this.tableODL.CommessaAs400Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CommessaAs400\' nella tabella \'ODL\' è DBNull.", e); + } + } + set { + this[this.tableODL.CommessaAs400Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ToAs400 { + get { + try { + return ((int)(this[this.tableODL.ToAs400Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ToAs400\' nella tabella \'ODL\' è DBNull.", e); + } + } + set { + this[this.tableODL.ToAs400Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsIdxMacchinaNull() { + return this.IsNull(this.tableODL.IdxMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetIdxMacchinaNull() { + this[this.tableODL.IdxMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDataInizioNull() { + return this.IsNull(this.tableODL.DataInizioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDataInizioNull() { + this[this.tableODL.DataInizioColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDataFineNull() { + return this.IsNull(this.tableODL.DataFineColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDataFineNull() { + this[this.tableODL.DataFineColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNoteNull() { + return this.IsNull(this.tableODL.NoteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNoteNull() { + this[this.tableODL.NoteColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsUserApprNull() { + return this.IsNull(this.tableODL.UserApprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetUserApprNull() { + this[this.tableODL.UserApprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDataApprNull() { + return this.IsNull(this.tableODL.DataApprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDataApprNull() { + this[this.tableODL.DataApprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTCRichAttrNull() { + return this.IsNull(this.tableODL.TCRichAttrColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTCRichAttrNull() { + this[this.tableODL.TCRichAttrColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCommessaAs400Null() { + return this.IsNull(this.tableODL.CommessaAs400Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCommessaAs400Null() { + this[this.tableODL.CommessaAs400Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsToAs400Null() { + return this.IsNull(this.tableODL.ToAs400Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetToAs400Null() { + this[this.tableODL.ToAs400Column] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -2724,6 +3658,40 @@ namespace MagData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class ODLRowChangeEvent : global::System.EventArgs { + + private ODLRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ODLRowChangeEvent(ODLRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ODLRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace MagData.DS_MagTableAdapters { @@ -3525,7 +4493,7 @@ namespace MagData.DS_MagTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_AnagArt\r\n"; @@ -3536,6 +4504,12 @@ namespace MagData.DS_MagTableAdapters { this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@elLotti", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_AA_getByKey"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3578,6 +4552,230 @@ namespace MagData.DS_MagTableAdapters { this.Adapter.Fill(dataTable); return dataTable; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Mag.AnagArtDataTable getByKey(string CodArt) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((CodArt == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodArt)); + } + DS_Mag.AnagArtDataTable dataTable = new DS_Mag.AnagArtDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class ODLTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ODLTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "ODL"; + tableMapping.ColumnMappings.Add("IdxODL", "IdxODL"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("NumPezzi", "NumPezzi"); + tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); + tableMapping.ColumnMappings.Add("DataInizio", "DataInizio"); + tableMapping.ColumnMappings.Add("DataFine", "DataFine"); + tableMapping.ColumnMappings.Add("Note", "Note"); + tableMapping.ColumnMappings.Add("NeedAppr", "NeedAppr"); + tableMapping.ColumnMappings.Add("UserAppr", "UserAppr"); + tableMapping.ColumnMappings.Add("DataAppr", "DataAppr"); + tableMapping.ColumnMappings.Add("TCRichAttr", "TCRichAttr"); + tableMapping.ColumnMappings.Add("KeyRichiesta", "KeyRichiesta"); + tableMapping.ColumnMappings.Add("PzPallet", "PzPallet"); + tableMapping.ColumnMappings.Add("provvisorio", "provvisorio"); + tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); + tableMapping.ColumnMappings.Add("CommessaAs400", "CommessaAs400"); + tableMapping.ColumnMappings.Add("ToAs400", "ToAs400"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MagData.Properties.Settings.Default.MoonPro_MAGConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_ODL\r\n"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_ODL_getOpenByPost"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPost", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Mag.ODLDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Mag.ODLDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Mag.ODLDataTable dataTable = new DS_Mag.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Mag.ODLDataTable getOpenByPost(string CodPost) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodPost == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodPost)); + } + DS_Mag.ODLDataTable dataTable = new DS_Mag.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } } /// diff --git a/MagData/DS_Mag.xsd b/MagData/DS_Mag.xsd index c212bf8..0b34583 100644 --- a/MagData/DS_Mag.xsd +++ b/MagData/DS_Mag.xsd @@ -94,7 +94,7 @@ FROM V_ElencoLotti - + dbo.stp_EL_InsertQuery @@ -113,7 +113,7 @@ FROM V_ElencoLotti - + dbo.stp_EL_UpdateQty @@ -215,6 +215,64 @@ FROM dbo.v_AnagArt + + + + dbo.stp_AA_getByKey + + + + + + + + + + + + + + + SELECT * +FROM dbo.v_ODL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_ODL_getOpenByPost + + + + + + + @@ -225,7 +283,7 @@ FROM dbo.v_AnagArt - + @@ -300,7 +358,7 @@ FROM dbo.v_AnagArt - + @@ -455,7 +513,7 @@ FROM dbo.v_AnagArt - + @@ -482,6 +540,66 @@ FROM dbo.v_AnagArt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -496,5 +614,9 @@ FROM dbo.v_AnagArt + + + + \ No newline at end of file diff --git a/MagData/DS_Mag.xss b/MagData/DS_Mag.xss index a5af9e8..1dc5f3f 100644 --- a/MagData/DS_Mag.xss +++ b/MagData/DS_Mag.xss @@ -6,9 +6,10 @@ --> - - - + + + + \ No newline at end of file diff --git a/MagData/MagDataLayer.cs b/MagData/MagDataLayer.cs index ae48b6d..473edb5 100644 --- a/MagData/MagDataLayer.cs +++ b/MagData/MagDataLayer.cs @@ -29,8 +29,10 @@ namespace MagData public DS_ReportTableAdapters.stp_prt_CartellinoPedaneTableAdapter taCPed; public DS_ReportTableAdapters.stp_prt_CartellinoSemilavoratiTableAdapter taCSemil; + public DS_MagTableAdapters.AnagArtTableAdapter taAA; public DS_MagTableAdapters.ElencoLottiTableAdapter taEL; public DS_MagTableAdapters.ElencoUdcTableAdapter taEUdc; + public DS_MagTableAdapters.ODLTableAdapter taODL; #endregion @@ -52,8 +54,10 @@ namespace MagData taCPed.Connection.ConnectionString = connString; taCSemil.Connection.ConnectionString = connString; + taAA.Connection.ConnectionString = connString; taEL.Connection.ConnectionString = connString; taEUdc.Connection.ConnectionString = connString; + taODL.Connection.ConnectionString = connString; } private void initTA() { @@ -63,8 +67,10 @@ namespace MagData taCPed = new DS_ReportTableAdapters.stp_prt_CartellinoPedaneTableAdapter(); taCSemil = new DS_ReportTableAdapters.stp_prt_CartellinoSemilavoratiTableAdapter(); + taAA = new DS_MagTableAdapters.AnagArtTableAdapter(); taEL = new DS_MagTableAdapters.ElencoLottiTableAdapter(); taEUdc = new DS_MagTableAdapters.ElencoUdcTableAdapter(); + taODL = new DS_MagTableAdapters.ODLTableAdapter(); } diff --git a/MagData/Objects.cs b/MagData/Objects.cs index 34e82c5..0048147 100644 --- a/MagData/Objects.cs +++ b/MagData/Objects.cs @@ -33,4 +33,34 @@ namespace MagData /// public string rawData { get; set; } = ""; } + /// + /// Oggetto dei dati di produzione attuali (per serializzazione json) + /// + public class prodData + { + /// + /// Cod operatore corrente + /// + public string CodOpr { get; set; } = ""; + /// + /// Cod Postazione corrente + /// + public string CodPost { get; set; } = ""; + /// + /// Cod Articolo corrente + /// + public string CurrArtCod { get; set; } = ""; + /// + /// Descrizione Articolo corrente + /// + public string CurrArtDesc { get; set; } = ""; + /// + /// Codice ODL corrente + /// + public string CurrODL { get; set; } = ""; + /// + /// Codice riferimento esterno produzione + /// + public string RifExt { get; set; } = ""; + } }