From 5ea421afe8162e50aa8629b618b21e767a7a5740 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 21 Apr 2021 16:15:39 +0200 Subject: [PATCH] Aggiunta KeyRIchiesta x ODL --- MP-TAB/WebUserControls/BaseUserControl.cs | 15 + MP-TAB/WebUserControls/mod_dettMacchina.ascx | 6 +- .../mod_dettMacchina.ascx.designer.cs | 60 ++-- MapoDb/DS_ProdTempi.xsd | 96 +++--- MapoDb/DS_ProdTempi.xss | 6 +- MapoDb/DS_ProdTempi1.Designer.cs | 297 +++++++++++------- 6 files changed, 294 insertions(+), 186 deletions(-) diff --git a/MP-TAB/WebUserControls/BaseUserControl.cs b/MP-TAB/WebUserControls/BaseUserControl.cs index c7bc78b3..96e825c7 100644 --- a/MP-TAB/WebUserControls/BaseUserControl.cs +++ b/MP-TAB/WebUserControls/BaseUserControl.cs @@ -1,4 +1,5 @@ using MapoDb; +using Newtonsoft.Json; using SteamWare; using System; using System.Collections.Generic; @@ -229,6 +230,20 @@ namespace MoonProTablet.WebUserControls } } + public string keyRichiesta + { + get + { + string answ = ""; + var odlDetail = DataLayerObj.currODLRowTab(idxMacchina); + if (odlDetail != null && odlDetail.Rows.Count > 0) + { + answ = odlDetail[0].KeyRichiesta; + } + return answ; + } + } + /// /// Num giorni configurati x selezione ODL in scadenza /// diff --git a/MP-TAB/WebUserControls/mod_dettMacchina.ascx b/MP-TAB/WebUserControls/mod_dettMacchina.ascx index 781afe26..22b49e45 100644 --- a/MP-TAB/WebUserControls/mod_dettMacchina.ascx +++ b/MP-TAB/WebUserControls/mod_dettMacchina.ascx @@ -6,10 +6,10 @@
- DICHIARARE FERMO + DICHIARARE FERMO
- EFFETTUARE CONTROLLO + EFFETTUARE CONTROLLO
@@ -21,7 +21,7 @@
- +
diff --git a/MP-TAB/WebUserControls/mod_dettMacchina.ascx.designer.cs b/MP-TAB/WebUserControls/mod_dettMacchina.ascx.designer.cs index 4ad2bf7a..5da70f61 100644 --- a/MP-TAB/WebUserControls/mod_dettMacchina.ascx.designer.cs +++ b/MP-TAB/WebUserControls/mod_dettMacchina.ascx.designer.cs @@ -1,59 +1,61 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ -namespace MoonProTablet.WebUserControls { - - - public partial class mod_dettMacchina { - +namespace MoonProTablet.WebUserControls +{ + + + public partial class mod_dettMacchina + { + /// - /// Controllo UpdatePanel1. + /// UpdatePanel1 control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.UpdatePanel UpdatePanel1; - + /// - /// Controllo repLI. + /// repLI control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Repeater repLI; - + /// - /// Controllo ods. + /// ods control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource ods; - + /// - /// Controllo hfIdxMacchina. + /// hfIdxMacchina control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HiddenField hfIdxMacchina; - + /// - /// Controllo dmTimer. + /// dmTimer control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.Timer dmTimer; } diff --git a/MapoDb/DS_ProdTempi.xsd b/MapoDb/DS_ProdTempi.xsd index 74b7e8be..0c454ff7 100644 --- a/MapoDb/DS_ProdTempi.xsd +++ b/MapoDb/DS_ProdTempi.xsd @@ -211,8 +211,8 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile - SELECT * FROM dbo.v_ODL_exp -ORDER BY idxODL DESC + SELECT * +FROM v_ODL_exp ORDER BY IdxODL DESC @@ -221,12 +221,12 @@ ORDER BY idxODL DESC - - - + + + @@ -238,6 +238,7 @@ ORDER BY idxODL DESC + @@ -254,7 +255,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_clearSetup @@ -266,7 +267,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_deleteQuery @@ -277,7 +278,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_dividiDaAltraTav @@ -290,7 +291,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_fineProd @@ -302,7 +303,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_fixMachineSlave @@ -338,7 +339,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_getByMacchina @@ -408,7 +409,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_inizioSetup @@ -424,7 +425,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_inizioSetupPromessa @@ -440,7 +441,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_inizioSetupPromessaPostuma @@ -453,7 +454,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_insertProvv @@ -469,7 +470,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_insertQuery @@ -487,7 +488,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_insPostumo @@ -510,7 +511,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_split @@ -528,7 +529,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_updateQta @@ -541,7 +542,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_update @@ -561,7 +562,7 @@ ORDER BY idxODL DESC - + dbo.stp_ODL_updateSetup @@ -2542,6 +2543,13 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I + + + + + + + @@ -2549,16 +2557,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - - - - - - - - - - + @@ -2572,6 +2571,8 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I + + @@ -2582,7 +2583,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -2591,8 +2592,8 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - - + + @@ -2607,6 +2608,13 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I + + + + + + + @@ -2922,7 +2930,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3003,7 +3011,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3015,7 +3023,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3040,7 +3048,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3078,7 +3086,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3117,7 +3125,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3183,7 +3191,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3260,7 +3268,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3295,7 +3303,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3317,7 +3325,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + diff --git a/MapoDb/DS_ProdTempi.xss b/MapoDb/DS_ProdTempi.xss index 35d74843..79a5539a 100644 --- a/MapoDb/DS_ProdTempi.xss +++ b/MapoDb/DS_ProdTempi.xss @@ -4,11 +4,11 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - + + diff --git a/MapoDb/DS_ProdTempi1.Designer.cs b/MapoDb/DS_ProdTempi1.Designer.cs index 0cfbed3f..8ecaed9f 100644 --- a/MapoDb/DS_ProdTempi1.Designer.cs +++ b/MapoDb/DS_ProdTempi1.Designer.cs @@ -1411,18 +1411,18 @@ namespace MapoDb { 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 columnDescArticolo; + private global::System.Data.DataColumn columnIdxMacchina; + private global::System.Data.DataColumn columnCodMacchina; private global::System.Data.DataColumn columnNome; + private global::System.Data.DataColumn columnNumPezzi; + + private global::System.Data.DataColumn columnTCAssegnato; + private global::System.Data.DataColumn columnDataInizio; private global::System.Data.DataColumn columnDataFine; @@ -1445,6 +1445,8 @@ namespace MapoDb { private global::System.Data.DataColumn columnOperSetup; + private global::System.Data.DataColumn columnKeyRichiesta; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public ODLDataTable() { @@ -1494,30 +1496,6 @@ namespace MapoDb { } } - [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 DescArticoloColumn { @@ -1526,6 +1504,14 @@ namespace MapoDb { } } + [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 CodMacchinaColumn { @@ -1542,6 +1528,22 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn 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 { @@ -1630,6 +1632,14 @@ namespace MapoDb { } } + [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")] [global::System.ComponentModel.Browsable(false)] @@ -1669,12 +1679,12 @@ namespace MapoDb { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public ODLRow AddODLRow( string CodArticolo, - string IdxMacchina, - int NumPezzi, - decimal TCAssegnato, string DescArticolo, + string IdxMacchina, string CodMacchina, string Nome, + int NumPezzi, + decimal TCAssegnato, System.DateTime DataInizio, System.DateTime DataFine, string Note, @@ -1682,20 +1692,21 @@ namespace MapoDb { string UserAppr, System.DateTime DataAppr, decimal TCRichAttr, - bool ToAs400, + int ToAs400, string CommessaAs400, int PzPallet, - string OperSetup) { + string OperSetup, + string KeyRichiesta) { ODLRow rowODLRow = ((ODLRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, CodArticolo, - IdxMacchina, - NumPezzi, - TCAssegnato, DescArticolo, + IdxMacchina, CodMacchina, Nome, + NumPezzi, + TCAssegnato, DataInizio, DataFine, Note, @@ -1706,7 +1717,8 @@ namespace MapoDb { ToAs400, CommessaAs400, PzPallet, - OperSetup}; + OperSetup, + KeyRichiesta}; rowODLRow.ItemArray = columnValuesArray; this.Rows.Add(rowODLRow); return rowODLRow; @@ -1738,12 +1750,12 @@ namespace MapoDb { 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.columnDescArticolo = base.Columns["DescArticolo"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; this.columnCodMacchina = base.Columns["CodMacchina"]; this.columnNome = base.Columns["Nome"]; + 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"]; @@ -1755,6 +1767,7 @@ namespace MapoDb { this.columnCommessaAs400 = base.Columns["CommessaAs400"]; this.columnPzPallet = base.Columns["PzPallet"]; this.columnOperSetup = base.Columns["OperSetup"]; + this.columnKeyRichiesta = base.Columns["KeyRichiesta"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1764,18 +1777,18 @@ namespace MapoDb { 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.columnDescArticolo = new global::System.Data.DataColumn("DescArticolo", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDescArticolo); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); this.columnCodMacchina = new global::System.Data.DataColumn("CodMacchina", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCodMacchina); this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNome); + 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); @@ -1790,7 +1803,7 @@ namespace MapoDb { 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.columnToAs400 = new global::System.Data.DataColumn("ToAs400", typeof(bool), null, global::System.Data.MappingType.Element); + this.columnToAs400 = new global::System.Data.DataColumn("ToAs400", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnToAs400); this.columnCommessaAs400 = new global::System.Data.DataColumn("CommessaAs400", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCommessaAs400); @@ -1798,6 +1811,8 @@ namespace MapoDb { base.Columns.Add(this.columnPzPallet); this.columnOperSetup = new global::System.Data.DataColumn("OperSetup", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnOperSetup); + this.columnKeyRichiesta = new global::System.Data.DataColumn("KeyRichiesta", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKeyRichiesta); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnIdxODL}, true)); this.columnIdxODL.AutoIncrement = true; @@ -1808,21 +1823,26 @@ namespace MapoDb { 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.columnDescArticolo.ReadOnly = true; this.columnDescArticolo.MaxLength = 250; + this.columnIdxMacchina.MaxLength = 50; + this.columnCodMacchina.ReadOnly = true; this.columnCodMacchina.MaxLength = 50; this.columnNome.MaxLength = 50; + this.columnNumPezzi.AllowDBNull = false; + this.columnTCAssegnato.AllowDBNull = false; this.columnNote.MaxLength = 2500; this.columnNeedAppr.AllowDBNull = false; + this.columnUserAppr.ReadOnly = true; this.columnUserAppr.MaxLength = 50; - this.columnToAs400.AllowDBNull = false; - this.columnCommessaAs400.AllowDBNull = false; + this.columnToAs400.ReadOnly = true; + this.columnCommessaAs400.ReadOnly = true; this.columnCommessaAs400.MaxLength = 50; this.columnPzPallet.AllowDBNull = false; this.columnOperSetup.ReadOnly = true; this.columnOperSetup.MaxLength = 101; + this.columnKeyRichiesta.ReadOnly = true; + this.columnKeyRichiesta.MaxLength = 50; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10501,44 +10521,6 @@ namespace MapoDb { } } - [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("The value for column \'IdxMacchina\' in table \'ODL\' is 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 string DescArticolo { @@ -10555,6 +10537,22 @@ namespace MapoDb { } } + [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("The value for column \'IdxMacchina\' in table \'ODL\' is 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 string CodMacchina { @@ -10587,6 +10585,28 @@ namespace MapoDb { } } + [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 { @@ -10696,9 +10716,14 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool ToAs400 { + public int ToAs400 { get { - return ((bool)(this[this.tableODL.ToAs400Column])); + try { + return ((int)(this[this.tableODL.ToAs400Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ToAs400\' in table \'ODL\' is DBNull.", e); + } } set { this[this.tableODL.ToAs400Column] = value; @@ -10709,7 +10734,12 @@ namespace MapoDb { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public string CommessaAs400 { get { - return ((string)(this[this.tableODL.CommessaAs400Column])); + try { + return ((string)(this[this.tableODL.CommessaAs400Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CommessaAs400\' in table \'ODL\' is DBNull.", e); + } } set { this[this.tableODL.CommessaAs400Column] = value; @@ -10745,14 +10775,18 @@ namespace MapoDb { [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; + public string KeyRichiesta { + get { + try { + return ((string)(this[this.tableODL.KeyRichiestaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'KeyRichiesta\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.KeyRichiestaColumn] = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10767,6 +10801,18 @@ namespace MapoDb { this[this.tableODL.DescArticoloColumn] = global::System.Convert.DBNull; } + [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 IsCodMacchinaNull() { @@ -10863,6 +10909,30 @@ namespace MapoDb { 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 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; + } + + [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 IsOperSetupNull() { @@ -10874,6 +10944,18 @@ namespace MapoDb { public void SetOperSetupNull() { this[this.tableODL.OperSetupColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsKeyRichiestaNull() { + return this.IsNull(this.tableODL.KeyRichiestaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetKeyRichiestaNull() { + this[this.tableODL.KeyRichiestaColumn] = global::System.Convert.DBNull; + } } /// @@ -17406,12 +17488,12 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile 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("DescArticolo", "DescArticolo"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); tableMapping.ColumnMappings.Add("CodMacchina", "CodMacchina"); tableMapping.ColumnMappings.Add("Nome", "Nome"); + 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"); @@ -17423,6 +17505,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile tableMapping.ColumnMappings.Add("CommessaAs400", "CommessaAs400"); tableMapping.ColumnMappings.Add("PzPallet", "PzPallet"); tableMapping.ColumnMappings.Add("OperSetup", "OperSetup"); + tableMapping.ColumnMappings.Add("KeyRichiesta", "KeyRichiesta"); this._adapter.TableMappings.Add(tableMapping); } @@ -17439,7 +17522,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection = new global::System.Data.SqlClient.SqlCommand[26]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT * FROM dbo.v_ODL_exp\r\nORDER BY idxODL DESC"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_ODL_exp ORDER BY IdxODL DESC"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection;