diff --git a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx index 29892e1..824da83 100644 --- a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx +++ b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx @@ -62,6 +62,21 @@ + + + + + + + + + + + + @@ -153,9 +168,9 @@ - @@ -166,6 +181,7 @@ + @@ -180,17 +196,20 @@ + + - +
diff --git a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.designer.cs b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.designer.cs index 680d986..92de57a 100644 --- a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.designer.cs +++ b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.designer.cs @@ -86,6 +86,15 @@ namespace GPW_Admin.WebUserControls /// protected global::System.Web.UI.WebControls.ObjectDataSource ods; + /// + /// Controllo lblNumRec. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblNumRec; + /// /// Controllo odsClienti. /// @@ -96,13 +105,13 @@ namespace GPW_Admin.WebUserControls protected global::System.Web.UI.WebControls.ObjectDataSource odsClienti; /// - /// Controllo lblNumRec. + /// Controllo odsGruppi. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.Label lblNumRec; + protected global::System.Web.UI.WebControls.ObjectDataSource odsGruppi; /// /// Controllo mod_dettaglioProgetto1. diff --git a/GPW_Data/DS_Applicazione.Designer.cs b/GPW_Data/DS_Applicazione.Designer.cs index 0985f47..42e673a 100644 --- a/GPW_Data/DS_Applicazione.Designer.cs +++ b/GPW_Data/DS_Applicazione.Designer.cs @@ -68,8 +68,6 @@ namespace GPW_data { private global::System.Data.DataRelation relationFK_Timbrature_Dipendenti; - private global::System.Data.DataRelation relationFK_AnagProgetti_AnagClienti; - private global::System.Data.DataRelation relationFK_AnagFasi_AnagProgetti; private global::System.Data.DataRelation relationFK_RegAttivita_AnagFasi; @@ -689,7 +687,6 @@ namespace GPW_data { } } this.relationFK_Timbrature_Dipendenti = this.Relations["FK_Timbrature_Dipendenti"]; - this.relationFK_AnagProgetti_AnagClienti = this.Relations["FK_AnagProgetti_AnagClienti"]; this.relationFK_AnagFasi_AnagProgetti = this.Relations["FK_AnagFasi_AnagProgetti"]; this.relationFK_RegAttivita_AnagFasi = this.Relations["FK_RegAttivita_AnagFasi"]; this.relationFK_RegAttivita_Dipendenti = this.Relations["FK_RegAttivita_Dipendenti"]; @@ -751,10 +748,6 @@ namespace GPW_data { this.tableDipendenti.idxDipendenteColumn}, new global::System.Data.DataColumn[] { this.tableTimbrature.idxDipendenteColumn}, false); this.Relations.Add(this.relationFK_Timbrature_Dipendenti); - this.relationFK_AnagProgetti_AnagClienti = new global::System.Data.DataRelation("FK_AnagProgetti_AnagClienti", new global::System.Data.DataColumn[] { - this.tableAnagClienti.idxClienteColumn}, new global::System.Data.DataColumn[] { - this.tableAnagProgetti.idxClienteColumn}, false); - this.Relations.Add(this.relationFK_AnagProgetti_AnagClienti); this.relationFK_AnagFasi_AnagProgetti = new global::System.Data.DataRelation("FK_AnagFasi_AnagProgetti", new global::System.Data.DataColumn[] { this.tableAnagProgetti.idxProgettoColumn}, new global::System.Data.DataColumn[] { this.tableAnagFasi.idxProgettoColumn}, false); @@ -3626,6 +3619,10 @@ namespace GPW_data { private global::System.Data.DataColumn columnidxProgetto; + private global::System.Data.DataColumn columnRagSociale; + + private global::System.Data.DataColumn columngruppo; + private global::System.Data.DataColumn columnidxCliente; private global::System.Data.DataColumn columnnomeProj; @@ -3638,22 +3635,20 @@ namespace GPW_data { private global::System.Data.DataColumn columnOldIdx; - private global::System.Data.DataColumn columnRagSociale; - private global::System.Data.DataColumn columnAttivo; private global::System.Data.DataColumn columncodExt; private global::System.Data.DataColumn columntotOre; - private global::System.Data.DataColumn columnavvio; - - private global::System.Data.DataColumn columnchiusura; - private global::System.Data.DataColumn columntotOrePrevMont; private global::System.Data.DataColumn columntotOreLast30; + private global::System.Data.DataColumn columnavvio; + + private global::System.Data.DataColumn columnchiusura; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public AnagProgettiDataTable() { @@ -3695,6 +3690,22 @@ namespace GPW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn RagSocialeColumn { + get { + return this.columnRagSociale; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn gruppoColumn { + get { + return this.columngruppo; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn idxClienteColumn { @@ -3743,14 +3754,6 @@ namespace GPW_data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn RagSocialeColumn { - get { - return this.columnRagSociale; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn AttivoColumn { @@ -3775,22 +3778,6 @@ namespace GPW_data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn avvioColumn { - get { - return this.columnavvio; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn chiusuraColumn { - get { - return this.columnchiusura; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn totOrePrevMontColumn { @@ -3807,6 +3794,22 @@ namespace GPW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn avvioColumn { + get { + return this.columnavvio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn chiusuraColumn { + get { + return this.columnchiusura; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -3844,27 +3847,25 @@ namespace GPW_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public AnagProgettiRow AddAnagProgettiRow(AnagClientiRow parentAnagClientiRowByFK_AnagProgetti_AnagClienti, string nomeProj, string descrProj, decimal budgetTime, decimal budgetMoney, int OldIdx, string RagSociale, bool Attivo, string codExt, decimal totOre, System.DateTime avvio, System.DateTime chiusura, decimal totOrePrevMont, decimal totOreLast30) { + public AnagProgettiRow AddAnagProgettiRow(string RagSociale, string gruppo, int idxCliente, string nomeProj, string descrProj, decimal budgetTime, decimal budgetMoney, int OldIdx, bool Attivo, string codExt, decimal totOre, decimal totOrePrevMont, decimal totOreLast30, System.DateTime avvio, System.DateTime chiusura) { AnagProgettiRow rowAnagProgettiRow = ((AnagProgettiRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, - null, + RagSociale, + gruppo, + idxCliente, nomeProj, descrProj, budgetTime, budgetMoney, OldIdx, - RagSociale, Attivo, codExt, totOre, - avvio, - chiusura, totOrePrevMont, - totOreLast30}; - if ((parentAnagClientiRowByFK_AnagProgetti_AnagClienti != null)) { - columnValuesArray[1] = parentAnagClientiRowByFK_AnagProgetti_AnagClienti[0]; - } + totOreLast30, + avvio, + chiusura}; rowAnagProgettiRow.ItemArray = columnValuesArray; this.Rows.Add(rowAnagProgettiRow); return rowAnagProgettiRow; @@ -3895,20 +3896,21 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] internal void InitVars() { this.columnidxProgetto = base.Columns["idxProgetto"]; + this.columnRagSociale = base.Columns["RagSociale"]; + this.columngruppo = base.Columns["gruppo"]; this.columnidxCliente = base.Columns["idxCliente"]; this.columnnomeProj = base.Columns["nomeProj"]; this.columndescrProj = base.Columns["descrProj"]; this.columnbudgetTime = base.Columns["budgetTime"]; this.columnbudgetMoney = base.Columns["budgetMoney"]; this.columnOldIdx = base.Columns["OldIdx"]; - this.columnRagSociale = base.Columns["RagSociale"]; this.columnAttivo = base.Columns["Attivo"]; this.columncodExt = base.Columns["codExt"]; this.columntotOre = base.Columns["totOre"]; - this.columnavvio = base.Columns["avvio"]; - this.columnchiusura = base.Columns["chiusura"]; this.columntotOrePrevMont = base.Columns["totOrePrevMont"]; this.columntotOreLast30 = base.Columns["totOreLast30"]; + this.columnavvio = base.Columns["avvio"]; + this.columnchiusura = base.Columns["chiusura"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3916,6 +3918,10 @@ namespace GPW_data { private void InitClass() { this.columnidxProgetto = new global::System.Data.DataColumn("idxProgetto", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnidxProgetto); + this.columnRagSociale = new global::System.Data.DataColumn("RagSociale", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRagSociale); + this.columngruppo = new global::System.Data.DataColumn("gruppo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columngruppo); this.columnidxCliente = new global::System.Data.DataColumn("idxCliente", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnidxCliente); this.columnnomeProj = new global::System.Data.DataColumn("nomeProj", typeof(string), null, global::System.Data.MappingType.Element); @@ -3928,28 +3934,29 @@ namespace GPW_data { base.Columns.Add(this.columnbudgetMoney); this.columnOldIdx = new global::System.Data.DataColumn("OldIdx", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnOldIdx); - this.columnRagSociale = new global::System.Data.DataColumn("RagSociale", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnRagSociale); this.columnAttivo = new global::System.Data.DataColumn("Attivo", typeof(bool), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnAttivo); this.columncodExt = new global::System.Data.DataColumn("codExt", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columncodExt); this.columntotOre = new global::System.Data.DataColumn("totOre", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columntotOre); - this.columnavvio = new global::System.Data.DataColumn("avvio", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnavvio); - this.columnchiusura = new global::System.Data.DataColumn("chiusura", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnchiusura); this.columntotOrePrevMont = new global::System.Data.DataColumn("totOrePrevMont", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columntotOrePrevMont); this.columntotOreLast30 = new global::System.Data.DataColumn("totOreLast30", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columntotOreLast30); + this.columnavvio = new global::System.Data.DataColumn("avvio", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnavvio); + this.columnchiusura = new global::System.Data.DataColumn("chiusura", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnchiusura); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidxProgetto}, true)); this.columnidxProgetto.AutoIncrement = true; this.columnidxProgetto.AllowDBNull = false; this.columnidxProgetto.ReadOnly = true; this.columnidxProgetto.Unique = true; + this.columnRagSociale.MaxLength = 250; + this.columngruppo.AllowDBNull = false; + this.columngruppo.MaxLength = 50; this.columnidxCliente.AllowDBNull = false; this.columnnomeProj.AllowDBNull = false; this.columnnomeProj.MaxLength = 50; @@ -3958,15 +3965,14 @@ namespace GPW_data { this.columnbudgetTime.ReadOnly = true; this.columnbudgetMoney.ReadOnly = true; this.columnOldIdx.ReadOnly = true; - this.columnRagSociale.MaxLength = 250; this.columnAttivo.AllowDBNull = false; this.columncodExt.ReadOnly = true; this.columncodExt.MaxLength = 50; this.columntotOre.ReadOnly = true; - this.columnavvio.ReadOnly = true; - this.columnchiusura.ReadOnly = true; this.columntotOrePrevMont.ReadOnly = true; this.columntotOreLast30.ReadOnly = true; + this.columnavvio.ReadOnly = true; + this.columnchiusura.ReadOnly = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -12468,17 +12474,6 @@ namespace GPW_data { public void SetcodExtNull() { this[this.tableAnagClienti.codExtColumn] = global::System.Convert.DBNull; } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public AnagProgettiRow[] GetAnagProgettiRows() { - if ((this.Table.ChildRelations["FK_AnagProgetti_AnagClienti"] == null)) { - return new AnagProgettiRow[0]; - } - else { - return ((AnagProgettiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagProgetti_AnagClienti"]))); - } - } } /// @@ -12506,6 +12501,33 @@ namespace GPW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string RagSociale { + get { + try { + return ((string)(this[this.tableAnagProgetti.RagSocialeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'RagSociale\' nella tabella \'AnagProgetti\' è DBNull.", e); + } + } + set { + this[this.tableAnagProgetti.RagSocialeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string gruppo { + get { + return ((string)(this[this.tableAnagProgetti.gruppoColumn])); + } + set { + this[this.tableAnagProgetti.gruppoColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int idxCliente { @@ -12587,22 +12609,6 @@ namespace GPW_data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string RagSociale { - get { - try { - return ((string)(this[this.tableAnagProgetti.RagSocialeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'RagSociale\' nella tabella \'AnagProgetti\' è DBNull.", e); - } - } - set { - this[this.tableAnagProgetti.RagSocialeColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool Attivo { @@ -12646,38 +12652,6 @@ namespace GPW_data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime avvio { - get { - try { - return ((global::System.DateTime)(this[this.tableAnagProgetti.avvioColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'avvio\' nella tabella \'AnagProgetti\' è DBNull.", e); - } - } - set { - this[this.tableAnagProgetti.avvioColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime chiusura { - get { - try { - return ((global::System.DateTime)(this[this.tableAnagProgetti.chiusuraColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'chiusura\' nella tabella \'AnagProgetti\' è DBNull.", e); - } - } - set { - this[this.tableAnagProgetti.chiusuraColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public decimal totOrePrevMont { @@ -12712,15 +12686,48 @@ namespace GPW_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public AnagClientiRow AnagClientiRow { + public System.DateTime avvio { get { - return ((AnagClientiRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagProgetti_AnagClienti"]))); + try { + return ((global::System.DateTime)(this[this.tableAnagProgetti.avvioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'avvio\' nella tabella \'AnagProgetti\' è DBNull.", e); + } } set { - this.SetParentRow(value, this.Table.ParentRelations["FK_AnagProgetti_AnagClienti"]); + this[this.tableAnagProgetti.avvioColumn] = value; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime chiusura { + get { + try { + return ((global::System.DateTime)(this[this.tableAnagProgetti.chiusuraColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'chiusura\' nella tabella \'AnagProgetti\' è DBNull.", e); + } + } + set { + this[this.tableAnagProgetti.chiusuraColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsRagSocialeNull() { + return this.IsNull(this.tableAnagProgetti.RagSocialeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetRagSocialeNull() { + this[this.tableAnagProgetti.RagSocialeColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsbudgetTimeNull() { @@ -12757,18 +12764,6 @@ namespace GPW_data { this[this.tableAnagProgetti.OldIdxColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsRagSocialeNull() { - return this.IsNull(this.tableAnagProgetti.RagSocialeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetRagSocialeNull() { - this[this.tableAnagProgetti.RagSocialeColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IscodExtNull() { @@ -12793,30 +12788,6 @@ namespace GPW_data { this[this.tableAnagProgetti.totOreColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsavvioNull() { - return this.IsNull(this.tableAnagProgetti.avvioColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetavvioNull() { - this[this.tableAnagProgetti.avvioColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IschiusuraNull() { - return this.IsNull(this.tableAnagProgetti.chiusuraColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetchiusuraNull() { - this[this.tableAnagProgetti.chiusuraColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IstotOrePrevMontNull() { @@ -12841,6 +12812,30 @@ namespace GPW_data { this[this.tableAnagProgetti.totOreLast30Column] = global::System.Convert.DBNull; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsavvioNull() { + return this.IsNull(this.tableAnagProgetti.avvioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetavvioNull() { + this[this.tableAnagProgetti.avvioColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IschiusuraNull() { + return this.IsNull(this.tableAnagProgetti.chiusuraColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetchiusuraNull() { + this[this.tableAnagProgetti.chiusuraColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public AnagFasiRow[] GetAnagFasiRows() { @@ -23933,20 +23928,21 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "AnagProgetti"; tableMapping.ColumnMappings.Add("idxProgetto", "idxProgetto"); + tableMapping.ColumnMappings.Add("RagSociale", "RagSociale"); + tableMapping.ColumnMappings.Add("gruppo", "gruppo"); tableMapping.ColumnMappings.Add("idxCliente", "idxCliente"); tableMapping.ColumnMappings.Add("nomeProj", "nomeProj"); tableMapping.ColumnMappings.Add("descrProj", "descrProj"); tableMapping.ColumnMappings.Add("budgetTime", "budgetTime"); tableMapping.ColumnMappings.Add("budgetMoney", "budgetMoney"); tableMapping.ColumnMappings.Add("OldIdx", "OldIdx"); - tableMapping.ColumnMappings.Add("RagSociale", "RagSociale"); tableMapping.ColumnMappings.Add("Attivo", "Attivo"); tableMapping.ColumnMappings.Add("codExt", "codExt"); tableMapping.ColumnMappings.Add("totOre", "totOre"); - tableMapping.ColumnMappings.Add("avvio", "avvio"); - tableMapping.ColumnMappings.Add("chiusura", "chiusura"); tableMapping.ColumnMappings.Add("totOrePrevMont", "totOrePrevMont"); tableMapping.ColumnMappings.Add("totOreLast30", "totOreLast30"); + tableMapping.ColumnMappings.Add("avvio", "avvio"); + tableMapping.ColumnMappings.Add("chiusura", "chiusura"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -23961,6 +23957,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv this._adapter.InsertCommand.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._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCliente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "idxCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomeProj", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "nomeProj", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "gruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrProj", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, "descrProj", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; @@ -23969,6 +23966,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv this._adapter.UpdateCommand.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._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCliente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "idxCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomeProj", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "nomeProj", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "gruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrProj", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, "descrProj", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxProgetto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "idxProgetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } @@ -24286,7 +24284,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv [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.Insert, true)] - public virtual int Insert(global::System.Nullable idxCliente, string nomeProj, string descrProj) { + public virtual int Insert(global::System.Nullable idxCliente, string nomeProj, string gruppo, string descrProj) { if ((idxCliente.HasValue == true)) { this.Adapter.InsertCommand.Parameters[1].Value = ((int)(idxCliente.Value)); } @@ -24299,11 +24297,17 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv else { this.Adapter.InsertCommand.Parameters[2].Value = ((string)(nomeProj)); } - if ((descrProj == null)) { + if ((gruppo == null)) { this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(descrProj)); + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(gruppo)); + } + if ((descrProj == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(descrProj)); } global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) @@ -24325,7 +24329,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv [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.Update, true)] - public virtual int Update(global::System.Nullable idxCliente, string nomeProj, string descrProj, global::System.Nullable Original_idxProgetto) { + public virtual int Update(global::System.Nullable idxCliente, string nomeProj, string gruppo, string descrProj, global::System.Nullable Original_idxProgetto) { if ((idxCliente.HasValue == true)) { this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(idxCliente.Value)); } @@ -24338,17 +24342,23 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv else { this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(nomeProj)); } - if ((descrProj == null)) { + if ((gruppo == null)) { this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(descrProj)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(gruppo)); } - if ((Original_idxProgetto.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_idxProgetto.Value)); + if ((descrProj == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(descrProj)); + } + if ((Original_idxProgetto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_idxProgetto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) @@ -32137,15 +32147,6 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateUpdatedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._anagClientiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._anagClientiTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._anagProgettiTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.AnagProgetti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -32218,15 +32219,6 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt allChangedRows.AddRange(updatedRows); } } - if ((this._rilievoTempTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._rilievoTempTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._regAttivitaTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.RegAttivita.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -32245,6 +32237,15 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt allChangedRows.AddRange(updatedRows); } } + if ((this._anagClientiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagClientiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._anagDevicesTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.AnagDevices.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -32263,6 +32264,15 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt allChangedRows.AddRange(updatedRows); } } + if ((this._rilievoTempTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._rilievoTempTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -32273,14 +32283,6 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateInsertedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._anagClientiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._anagClientiTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._anagProgettiTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.AnagProgetti.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -32345,14 +32347,6 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt allAddedRows.AddRange(addedRows); } } - if ((this._rilievoTempTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._rilievoTempTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._regAttivitaTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.RegAttivita.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -32369,6 +32363,14 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt allAddedRows.AddRange(addedRows); } } + if ((this._anagClientiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagClientiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._anagDevicesTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.AnagDevices.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -32385,6 +32387,14 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt allAddedRows.AddRange(addedRows); } } + if ((this._rilievoTempTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._rilievoTempTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -32395,6 +32405,14 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; + if ((this._rilievoTempTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._rilievoTempTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._timbratureExplTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.TimbratureExpl.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -32411,6 +32429,14 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt allChangedRows.AddRange(deletedRows); } } + if ((this._anagClientiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagClientiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._dipendenti2RuoliTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Dipendenti2Ruoli.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -32427,14 +32453,6 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt allChangedRows.AddRange(deletedRows); } } - if ((this._rilievoTempTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._rilievoTempTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._calendFesteFerieTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.CalendFesteFerie.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -32499,14 +32517,6 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt allChangedRows.AddRange(deletedRows); } } - if ((this._anagClientiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._anagClientiTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } return result; } diff --git a/GPW_Data/DS_Applicazione.xsd b/GPW_Data/DS_Applicazione.xsd index d01324e..7083420 100644 --- a/GPW_Data/DS_Applicazione.xsd +++ b/GPW_Data/DS_Applicazione.xsd @@ -1328,6 +1328,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv + @@ -1354,6 +1355,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv + @@ -1363,20 +1365,21 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv + + - - - + + @@ -3248,6 +3251,20 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt + + + + + + + + + + + + + + @@ -3266,13 +3283,6 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt - - - - - - - @@ -3282,10 +3292,10 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt - - + + @@ -3818,7 +3828,6 @@ SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dt - diff --git a/GPW_Data/DS_Applicazione.xss b/GPW_Data/DS_Applicazione.xss index e635829..37fc92b 100644 --- a/GPW_Data/DS_Applicazione.xss +++ b/GPW_Data/DS_Applicazione.xss @@ -6,30 +6,30 @@ --> - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - + 385 @@ -41,27 +41,7 @@ - - - - 1234 - 909 - - - 1216 - 909 - - - 1216 - 1002 - - - 1186 - 1002 - - - - + 1186 @@ -81,7 +61,7 @@ - + 871 @@ -97,10 +77,10 @@ - + - 557 + 579 743 @@ -109,7 +89,7 @@ - + 324 @@ -121,14 +101,14 @@ - + 279 617 - 204 + 271 617 diff --git a/GPW_Data/DS_Utility.Designer.cs b/GPW_Data/DS_Utility.Designer.cs index e3fe5dd..b5f3413 100644 --- a/GPW_Data/DS_Utility.Designer.cs +++ b/GPW_Data/DS_Utility.Designer.cs @@ -60,6 +60,8 @@ namespace GPW_data { private v_selListValDataTable tablev_selListVal; + private v_selGruppiDataTable tablev_selGruppi; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -142,6 +144,9 @@ namespace GPW_data { if ((ds.Tables["v_selListVal"] != null)) { base.Tables.Add(new v_selListValDataTable(ds.Tables["v_selListVal"])); } + if ((ds.Tables["v_selGruppi"] != null)) { + base.Tables.Add(new v_selGruppiDataTable(ds.Tables["v_selGruppi"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -340,6 +345,16 @@ namespace GPW_data { } } + [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 v_selGruppiDataTable v_selGruppi { + get { + return this.tablev_selGruppi; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -461,6 +476,9 @@ namespace GPW_data { if ((ds.Tables["v_selListVal"] != null)) { base.Tables.Add(new v_selListValDataTable(ds.Tables["v_selListVal"])); } + if ((ds.Tables["v_selGruppi"] != null)) { + base.Tables.Add(new v_selGruppiDataTable(ds.Tables["v_selGruppi"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -602,6 +620,12 @@ namespace GPW_data { this.tablev_selListVal.InitVars(); } } + this.tablev_selGruppi = ((v_selGruppiDataTable)(base.Tables["v_selGruppi"])); + if ((initTable == true)) { + if ((this.tablev_selGruppi != null)) { + this.tablev_selGruppi.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -648,6 +672,8 @@ namespace GPW_data { base.Tables.Add(this.tablev_selProjFasi); this.tablev_selListVal = new v_selListValDataTable(); base.Tables.Add(this.tablev_selListVal); + this.tablev_selGruppi = new v_selGruppiDataTable(); + base.Tables.Add(this.tablev_selGruppi); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -758,6 +784,12 @@ namespace GPW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializev_selGruppi() { + 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) { @@ -867,6 +899,9 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void v_selListValRowChangeEventHandler(object sender, v_selListValRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void v_selGruppiRowChangeEventHandler(object sender, v_selGruppiRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -5974,6 +6009,295 @@ namespace GPW_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selGruppiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnlabel; + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnconditio; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public v_selGruppiDataTable() { + this.TableName = "v_selGruppi"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal v_selGruppiDataTable(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 v_selGruppiDataTable(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 labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn conditioColumn { + get { + return this.columnconditio; + } + } + + [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 v_selGruppiRow this[int index] { + get { + return ((v_selGruppiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event v_selGruppiRowChangeEventHandler v_selGruppiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event v_selGruppiRowChangeEventHandler v_selGruppiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event v_selGruppiRowChangeEventHandler v_selGruppiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event v_selGruppiRowChangeEventHandler v_selGruppiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Addv_selGruppiRow(v_selGruppiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public v_selGruppiRow Addv_selGruppiRow(string label, string value, string conditio) { + v_selGruppiRow rowv_selGruppiRow = ((v_selGruppiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + label, + value, + conditio}; + rowv_selGruppiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selGruppiRow); + return rowv_selGruppiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public v_selGruppiRow FindByvalue(string value) { + return ((v_selGruppiRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selGruppiDataTable cln = ((v_selGruppiDataTable)(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 v_selGruppiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnlabel = base.Columns["label"]; + this.columnvalue = base.Columns["value"]; + this.columnconditio = base.Columns["conditio"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnconditio = new global::System.Data.DataColumn("conditio", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconditio); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnvalue}, true)); + this.columnlabel.MaxLength = 250; + this.columnvalue.AllowDBNull = false; + this.columnvalue.Unique = true; + this.columnvalue.MaxLength = 50; + this.columnconditio.MaxLength = 4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public v_selGruppiRow Newv_selGruppiRow() { + return ((v_selGruppiRow)(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 v_selGruppiRow(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(v_selGruppiRow); + } + + [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.v_selGruppiRowChanged != null)) { + this.v_selGruppiRowChanged(this, new v_selGruppiRowChangeEvent(((v_selGruppiRow)(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.v_selGruppiRowChanging != null)) { + this.v_selGruppiRowChanging(this, new v_selGruppiRowChangeEvent(((v_selGruppiRow)(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.v_selGruppiRowDeleted != null)) { + this.v_selGruppiRowDeleted(this, new v_selGruppiRowChangeEvent(((v_selGruppiRow)(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.v_selGruppiRowDeleting != null)) { + this.v_selGruppiRowDeleting(this, new v_selGruppiRowChangeEvent(((v_selGruppiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Removev_selGruppiRow(v_selGruppiRow 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_Utility ds = new DS_Utility(); + 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 = "v_selGruppiDataTable"; + 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. /// @@ -7485,6 +7809,88 @@ namespace GPW_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selGruppiRow : global::System.Data.DataRow { + + private v_selGruppiDataTable tablev_selGruppi; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal v_selGruppiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selGruppi = ((v_selGruppiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_selGruppi.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'label\' nella tabella \'v_selGruppi\' è DBNull.", e); + } + } + set { + this[this.tablev_selGruppi.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string value { + get { + return ((string)(this[this.tablev_selGruppi.valueColumn])); + } + set { + this[this.tablev_selGruppi.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string conditio { + get { + try { + return ((string)(this[this.tablev_selGruppi.conditioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'conditio\' nella tabella \'v_selGruppi\' è DBNull.", e); + } + } + set { + this[this.tablev_selGruppi.conditioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_selGruppi.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetlabelNull() { + this[this.tablev_selGruppi.labelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsconditioNull() { + return this.IsNull(this.tablev_selGruppi.conditioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetconditioNull() { + this[this.tablev_selGruppi.conditioColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -8096,6 +8502,40 @@ namespace GPW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class v_selGruppiRowChangeEvent : global::System.EventArgs { + + private v_selGruppiRow 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 v_selGruppiRowChangeEvent(v_selGruppiRow 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 v_selGruppiRow 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 GPW_data.DS_UtilityTableAdapters { @@ -11775,6 +12215,198 @@ SELECT nomeVar, valInt, valFloat, valString, descrizione FROM AnagKeyValue WHERE } } + /// + ///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 v_selGruppiTableAdapter : 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 v_selGruppiTableAdapter() { + 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 = "v_selGruppi"; + tableMapping.ColumnMappings.Add("label", "label"); + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("conditio", "conditio"); + 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::GPW_data.Properties.Settings.Default.GPWConnectionString; + } + + [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 * FROM v_selGruppi ORDER BY label"; + 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_VSGrp_getByConditio"; + 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("@Conditio", 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_Utility.v_selGruppiDataTable 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_Utility.v_selGruppiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selGruppiDataTable dataTable = new DS_Utility.v_selGruppiDataTable(); + 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_Utility.v_selGruppiDataTable getByConditio(string Conditio) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((Conditio == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Conditio)); + } + DS_Utility.v_selGruppiDataTable dataTable = new DS_Utility.v_selGruppiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/GPW_Data/DS_Utility.xsd b/GPW_Data/DS_Utility.xsd index 0a35791..1a7d00e 100644 --- a/GPW_Data/DS_Utility.xsd +++ b/GPW_Data/DS_Utility.xsd @@ -503,6 +503,36 @@ ORDER BY ordinal + + + + + + SELECT * FROM v_selGruppi ORDER BY label + + + + + + + + + + + + + + + dbo.stp_VSGrp_getByConditio + + + + + + + + + @@ -811,6 +841,33 @@ ORDER BY ordinal + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -849,5 +906,9 @@ ORDER BY ordinal + + + + \ No newline at end of file diff --git a/GPW_Data/DS_Utility.xss b/GPW_Data/DS_Utility.xss index 1cdc00a..26f2411 100644 --- a/GPW_Data/DS_Utility.xss +++ b/GPW_Data/DS_Utility.xss @@ -6,24 +6,25 @@ --> - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + \ No newline at end of file