From 062cb9986cc9de5cb1fe7f7e36551af8bf6cd04c Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 26 Oct 2020 16:46:54 +0100 Subject: [PATCH] Fix rinominate colonne --- AppData/DS_App.Designer.cs | 101 ++++++++++++++++++++++++++++++++++--- AppData/DS_App.xsd | 9 ++-- AppData/DS_App.xss | 12 ++--- 3 files changed, 106 insertions(+), 16 deletions(-) diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 328a66f..f3241a2 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -944,7 +944,7 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public TaskListRow AddTaskListRow(string NumTask, string CodGruppo, string CodArt, int QtaRic, double TimeEst, int QtaEv, int Prior, bool Concluso, System.DateTime DataIns, int NumRec, int CurrStatus, decimal MinTotWrk, decimal TCMedio, decimal MinTotFix) { + public TaskListRow AddTaskListRow(string NumTask, string CodGruppo, string CodArt, int QtaRic, decimal TimeEst, int QtaEv, int Prior, bool Concluso, System.DateTime DataIns, int NumRec, int CurrStatus, decimal MinTotWrk, decimal TCMedio, decimal MinTotFix) { TaskListRow rowTaskListRow = ((TaskListRow)(this.NewRow())); object[] columnValuesArray = new object[] { NumTask, @@ -1017,7 +1017,7 @@ namespace AppData { base.Columns.Add(this.columnCodArt); this.columnQtaRic = new global::System.Data.DataColumn("QtaRic", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnQtaRic); - this.columnTimeEst = new global::System.Data.DataColumn("TimeEst", typeof(double), null, global::System.Data.MappingType.Element); + this.columnTimeEst = new global::System.Data.DataColumn("TimeEst", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTimeEst); this.columnQtaEv = new global::System.Data.DataColumn("QtaEv", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnQtaEv); @@ -1793,6 +1793,8 @@ namespace AppData { private global::System.Data.DataColumn columnQtaRic; + private global::System.Data.DataColumn columnTempoPrev; + private global::System.Data.DataColumn columnCodOpr; private global::System.Data.DataColumn columnNomeOpr; @@ -1888,6 +1890,14 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TempoPrevColumn { + get { + return this.columnTempoPrev; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn CodOprColumn { @@ -2013,7 +2023,23 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public TaskRecRow AddTaskRecRow(string NumTask, string CodTag, string CodArt, int QtaRic, string CodOpr, string NomeOpr, string CodPost, string Descrizione, string CodFase, string DescrFase, System.DateTime DtStart, System.DateTime DtEnd, int QtaEv, decimal DurataMin, decimal TCiclo) { + public TaskRecRow AddTaskRecRow( + string NumTask, + string CodTag, + string CodArt, + int QtaRic, + decimal TempoPrev, + string CodOpr, + string NomeOpr, + string CodPost, + string Descrizione, + string CodFase, + string DescrFase, + System.DateTime DtStart, + System.DateTime DtEnd, + int QtaEv, + decimal DurataMin, + decimal TCiclo) { TaskRecRow rowTaskRecRow = ((TaskRecRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -2021,6 +2047,7 @@ namespace AppData { CodTag, CodArt, QtaRic, + TempoPrev, CodOpr, NomeOpr, CodPost, @@ -2066,6 +2093,7 @@ namespace AppData { this.columnCodTag = base.Columns["CodTag"]; this.columnCodArt = base.Columns["CodArt"]; this.columnQtaRic = base.Columns["QtaRic"]; + this.columnTempoPrev = base.Columns["TempoPrev"]; this.columnCodOpr = base.Columns["CodOpr"]; this.columnNomeOpr = base.Columns["NomeOpr"]; this.columnCodPost = base.Columns["CodPost"]; @@ -2092,6 +2120,8 @@ namespace AppData { base.Columns.Add(this.columnCodArt); this.columnQtaRic = new global::System.Data.DataColumn("QtaRic", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnQtaRic); + this.columnTempoPrev = new global::System.Data.DataColumn("TempoPrev", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoPrev); this.columnCodOpr = new global::System.Data.DataColumn("CodOpr", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCodOpr); this.columnNomeOpr = new global::System.Data.DataColumn("NomeOpr", typeof(string), null, global::System.Data.MappingType.Element); @@ -2129,6 +2159,7 @@ namespace AppData { this.columnCodArt.AllowDBNull = false; this.columnCodArt.MaxLength = 50; this.columnQtaRic.AllowDBNull = false; + this.columnTempoPrev.AllowDBNull = false; this.columnCodOpr.AllowDBNull = false; this.columnCodOpr.MaxLength = 50; this.columnNomeOpr.ReadOnly = true; @@ -5650,6 +5681,8 @@ namespace AppData { private global::System.Data.DataColumn columnQtaRic; + private global::System.Data.DataColumn columnTempoPrev; + private global::System.Data.DataColumn columnIdxRec; private global::System.Data.DataColumn columnDtStart; @@ -5719,6 +5752,14 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TempoPrevColumn { + get { + return this.columnTempoPrev; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn IdxRecColumn { @@ -5804,12 +5845,13 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public TaskRecAggRow AddTaskRecAggRow(string NumTask, string CodArt, int QtaRic, int IdxRec, System.DateTime DtStart, System.DateTime DtEnd, int QtaEv, decimal DurataMin, decimal TCiclo) { + public TaskRecAggRow AddTaskRecAggRow(string NumTask, string CodArt, int QtaRic, decimal TempoPrev, int IdxRec, System.DateTime DtStart, System.DateTime DtEnd, int QtaEv, decimal DurataMin, decimal TCiclo) { TaskRecAggRow rowTaskRecAggRow = ((TaskRecAggRow)(this.NewRow())); object[] columnValuesArray = new object[] { NumTask, CodArt, QtaRic, + TempoPrev, IdxRec, DtStart, DtEnd, @@ -5848,6 +5890,7 @@ namespace AppData { this.columnNumTask = base.Columns["NumTask"]; this.columnCodArt = base.Columns["CodArt"]; this.columnQtaRic = base.Columns["QtaRic"]; + this.columnTempoPrev = base.Columns["TempoPrev"]; this.columnIdxRec = base.Columns["IdxRec"]; this.columnDtStart = base.Columns["DtStart"]; this.columnDtEnd = base.Columns["DtEnd"]; @@ -5865,6 +5908,8 @@ namespace AppData { base.Columns.Add(this.columnCodArt); this.columnQtaRic = new global::System.Data.DataColumn("QtaRic", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnQtaRic); + this.columnTempoPrev = new global::System.Data.DataColumn("TempoPrev", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoPrev); this.columnIdxRec = new global::System.Data.DataColumn("IdxRec", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnIdxRec); this.columnDtStart = new global::System.Data.DataColumn("DtStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); @@ -5885,6 +5930,7 @@ namespace AppData { this.columnCodArt.ReadOnly = true; this.columnCodArt.MaxLength = 50; this.columnQtaRic.ReadOnly = true; + this.columnTempoPrev.ReadOnly = true; this.columnIdxRec.ReadOnly = true; this.columnDtStart.ReadOnly = true; this.columnDtEnd.ReadOnly = true; @@ -6077,10 +6123,10 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double TimeEst { + public decimal TimeEst { get { try { - return ((double)(this[this.tableTaskList.TimeEstColumn])); + return ((decimal)(this[this.tableTaskList.TimeEstColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("Il valore della colonna \'TimeEst\' nella tabella \'TaskList\' è DBNull.", e); @@ -6515,6 +6561,17 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal TempoPrev { + get { + return ((decimal)(this[this.tableTaskRec.TempoPrevColumn])); + } + set { + this[this.tableTaskRec.TempoPrevColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public string CodOpr { @@ -8181,6 +8238,22 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal TempoPrev { + get { + try { + return ((decimal)(this[this.tableTaskRecAgg.TempoPrevColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TempoPrev\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.TempoPrevColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int IdxRec { @@ -8301,6 +8374,18 @@ namespace AppData { this[this.tableTaskRecAgg.QtaRicColumn] = global::System.Convert.DBNull; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTempoPrevNull() { + return this.IsNull(this.tableTaskRecAgg.TempoPrevColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTempoPrevNull() { + this[this.tableTaskRecAgg.TempoPrevColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsIdxRecNull() { @@ -9005,7 +9090,7 @@ namespace AppData.DS_AppTableAdapters { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_TaskList"; + this._commandCollection[0].CommandText = "SELECT * FROM v_TaskList"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -10216,6 +10301,7 @@ SELECT CodOpr, Cognome, Nome FROM AnagOpr WHERE (CodOpr = @CodOpr)"; tableMapping.ColumnMappings.Add("CodTag", "CodTag"); tableMapping.ColumnMappings.Add("CodArt", "CodArt"); tableMapping.ColumnMappings.Add("QtaRic", "QtaRic"); + tableMapping.ColumnMappings.Add("TempoPrev", "TempoPrev"); tableMapping.ColumnMappings.Add("CodOpr", "CodOpr"); tableMapping.ColumnMappings.Add("NomeOpr", "NomeOpr"); tableMapping.ColumnMappings.Add("CodPost", "CodPost"); @@ -14373,6 +14459,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag)"; tableMapping.ColumnMappings.Add("NumTask", "NumTask"); tableMapping.ColumnMappings.Add("CodArt", "CodArt"); tableMapping.ColumnMappings.Add("QtaRic", "QtaRic"); + tableMapping.ColumnMappings.Add("TempoPrev", "TempoPrev"); tableMapping.ColumnMappings.Add("IdxRec", "IdxRec"); tableMapping.ColumnMappings.Add("DtStart", "DtStart"); tableMapping.ColumnMappings.Add("DtEnd", "DtEnd"); diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index c94a374..4c3c817 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -12,8 +12,7 @@ - SELECT * -FROM v_TaskList + SELECT * FROM v_TaskList @@ -289,6 +288,7 @@ FROM v_TaskRec + @@ -1149,6 +1149,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + @@ -1191,7 +1192,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1279,6 +1280,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + @@ -1776,6 +1778,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index 4ac2bc4..bdeec2e 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,22 +4,22 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - + - - + + - + \ No newline at end of file