From 782ce659fde4aa67e84db24a57aa342ff3efa338 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 22 May 2018 14:06:17 +0200 Subject: [PATCH] Aggiunta info x amministratori --- Data/DS_app.Designer.cs | 2324 ++++--------------------- Data/DS_app.xsd | 236 +-- Data/DS_app.xss | 4 +- PUB/Web.config | 5 +- PUB/WebUserContols/mod_anagAmmin.ascx | 60 +- PUB/WebUserContols/mod_anagCond.ascx | 23 +- 6 files changed, 406 insertions(+), 2246 deletions(-) diff --git a/Data/DS_app.Designer.cs b/Data/DS_app.Designer.cs index 3e00c09..e482106 100644 --- a/Data/DS_app.Designer.cs +++ b/Data/DS_app.Designer.cs @@ -495,6 +495,18 @@ namespace Data { private global::System.Data.DataColumn columnemail; + private global::System.Data.DataColumn columnNumCondAttivi; + + private global::System.Data.DataColumn columnNumCond; + + private global::System.Data.DataColumn columnNumRich; + + private global::System.Data.DataColumn columnNumInt; + + private global::System.Data.DataColumn columnImponibileTot; + + private global::System.Data.DataColumn columnImponibileMedio; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] public AnagAmministratoriDataTable() { @@ -552,6 +564,54 @@ namespace Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn NumCondAttiviColumn { + get { + return this.columnNumCondAttivi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn NumCondColumn { + get { + return this.columnNumCond; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn NumRichColumn { + get { + return this.columnNumRich; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn NumIntColumn { + get { + return this.columnNumInt; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn ImponibileTotColumn { + get { + return this.columnImponibileTot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn ImponibileMedioColumn { + get { + return this.columnImponibileMedio; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -589,12 +649,18 @@ namespace Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public AnagAmministratoriRow AddAnagAmministratoriRow(string RagSociale, string email) { + public AnagAmministratoriRow AddAnagAmministratoriRow(string RagSociale, string email, int NumCondAttivi, int NumCond, int NumRich, int NumInt, decimal ImponibileTot, decimal ImponibileMedio) { AnagAmministratoriRow rowAnagAmministratoriRow = ((AnagAmministratoriRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, RagSociale, - email}; + email, + NumCondAttivi, + NumCond, + NumRich, + NumInt, + ImponibileTot, + ImponibileMedio}; rowAnagAmministratoriRow.ItemArray = columnValuesArray; this.Rows.Add(rowAnagAmministratoriRow); return rowAnagAmministratoriRow; @@ -627,6 +693,12 @@ namespace Data { this.columnidxAmm = base.Columns["idxAmm"]; this.columnRagSociale = base.Columns["RagSociale"]; this.columnemail = base.Columns["email"]; + this.columnNumCondAttivi = base.Columns["NumCondAttivi"]; + this.columnNumCond = base.Columns["NumCond"]; + this.columnNumRich = base.Columns["NumRich"]; + this.columnNumInt = base.Columns["NumInt"]; + this.columnImponibileTot = base.Columns["ImponibileTot"]; + this.columnImponibileMedio = base.Columns["ImponibileMedio"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -638,6 +710,18 @@ namespace Data { base.Columns.Add(this.columnRagSociale); this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnemail); + this.columnNumCondAttivi = new global::System.Data.DataColumn("NumCondAttivi", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumCondAttivi); + this.columnNumCond = new global::System.Data.DataColumn("NumCond", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumCond); + this.columnNumRich = new global::System.Data.DataColumn("NumRich", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumRich); + this.columnNumInt = new global::System.Data.DataColumn("NumInt", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumInt); + this.columnImponibileTot = new global::System.Data.DataColumn("ImponibileTot", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImponibileTot); + this.columnImponibileMedio = new global::System.Data.DataColumn("ImponibileMedio", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImponibileMedio); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidxAmm}, true)); this.columnidxAmm.AutoIncrement = true; @@ -650,6 +734,12 @@ namespace Data { this.columnRagSociale.MaxLength = 250; this.columnemail.AllowDBNull = false; this.columnemail.MaxLength = 250; + this.columnNumCondAttivi.ReadOnly = true; + this.columnNumCond.ReadOnly = true; + this.columnNumRich.ReadOnly = true; + this.columnNumInt.ReadOnly = true; + this.columnImponibileTot.ReadOnly = true; + this.columnImponibileMedio.ReadOnly = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -799,45 +889,7 @@ namespace Data { private global::System.Data.DataColumn columnidxAmm; - private global::System.Data.DataColumn columncod_Id; - - private global::System.Data.DataColumn columncod_El; - - private global::System.Data.DataColumn columncod_Ed; - - private global::System.Data.DataColumn columncod_Fb; - - private global::System.Data.DataColumn columncod_Tv; - - private global::System.Data.DataColumn columncod_As; - - private global::System.Data.DataColumn columncod_Ca; - - private global::System.Data.DataColumn columncod_Sp; - - private global::System.Data.DataColumn columncod_Sn; - - private global::System.Data.DataColumn columncod_Mc; - - private global::System.Data.DataColumn columncod_Id2; - - private global::System.Data.DataColumn columncod_El2; - - private global::System.Data.DataColumn columncod_Ed2; - - private global::System.Data.DataColumn columncod_Fb2; - - private global::System.Data.DataColumn columncod_Tv2; - - private global::System.Data.DataColumn columncod_As2; - - private global::System.Data.DataColumn columncod_Ca2; - - private global::System.Data.DataColumn columncod_Sp2; - - private global::System.Data.DataColumn columncod_Sn2; - - private global::System.Data.DataColumn columncod_Mc2; + private global::System.Data.DataColumn columnAttivo; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] @@ -938,161 +990,9 @@ namespace Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_IdColumn { + public global::System.Data.DataColumn AttivoColumn { get { - return this.columncod_Id; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_ElColumn { - get { - return this.columncod_El; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_EdColumn { - get { - return this.columncod_Ed; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_FbColumn { - get { - return this.columncod_Fb; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_TvColumn { - get { - return this.columncod_Tv; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_AsColumn { - get { - return this.columncod_As; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_CaColumn { - get { - return this.columncod_Ca; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_SpColumn { - get { - return this.columncod_Sp; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_SnColumn { - get { - return this.columncod_Sn; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_McColumn { - get { - return this.columncod_Mc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_Id2Column { - get { - return this.columncod_Id2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_El2Column { - get { - return this.columncod_El2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_Ed2Column { - get { - return this.columncod_Ed2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_Fb2Column { - get { - return this.columncod_Fb2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_Tv2Column { - get { - return this.columncod_Tv2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_As2Column { - get { - return this.columncod_As2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_Ca2Column { - get { - return this.columncod_Ca2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_Sp2Column { - get { - return this.columncod_Sp2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_Sn2Column { - get { - return this.columncod_Sn2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cod_Mc2Column { - get { - return this.columncod_Mc2; + return this.columnAttivo; } } @@ -1133,34 +1033,7 @@ namespace Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public AnagCondominiRow AddAnagCondominiRow( - string cod_cond, - string nome, - string indirizzo, - string cap, - string citta, - string cod_fisc, - AnagAmministratoriRow parentAnagAmministratoriRowByFK_AnagCondomini_AnagAmministratori, - int cod_Id, - int cod_El, - int cod_Ed, - int cod_Fb, - int cod_Tv, - int cod_As, - int cod_Ca, - int cod_Sp, - int cod_Sn, - int cod_Mc, - int cod_Id2, - int cod_El2, - int cod_Ed2, - int cod_Fb2, - int cod_Tv2, - int cod_As2, - int cod_Ca2, - int cod_Sp2, - int cod_Sn2, - int cod_Mc2) { + public AnagCondominiRow AddAnagCondominiRow(string cod_cond, string nome, string indirizzo, string cap, string citta, string cod_fisc, AnagAmministratoriRow parentAnagAmministratoriRowByFK_AnagCondomini_AnagAmministratori, bool Attivo) { AnagCondominiRow rowAnagCondominiRow = ((AnagCondominiRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1171,26 +1044,7 @@ namespace Data { citta, cod_fisc, null, - cod_Id, - cod_El, - cod_Ed, - cod_Fb, - cod_Tv, - cod_As, - cod_Ca, - cod_Sp, - cod_Sn, - cod_Mc, - cod_Id2, - cod_El2, - cod_Ed2, - cod_Fb2, - cod_Tv2, - cod_As2, - cod_Ca2, - cod_Sp2, - cod_Sn2, - cod_Mc2}; + Attivo}; if ((parentAnagAmministratoriRowByFK_AnagCondomini_AnagAmministratori != null)) { columnValuesArray[7] = parentAnagAmministratoriRowByFK_AnagCondomini_AnagAmministratori[0]; } @@ -1231,26 +1085,7 @@ namespace Data { this.columncitta = base.Columns["citta"]; this.columncod_fisc = base.Columns["cod_fisc"]; this.columnidxAmm = base.Columns["idxAmm"]; - this.columncod_Id = base.Columns["cod_Id"]; - this.columncod_El = base.Columns["cod_El"]; - this.columncod_Ed = base.Columns["cod_Ed"]; - this.columncod_Fb = base.Columns["cod_Fb"]; - this.columncod_Tv = base.Columns["cod_Tv"]; - this.columncod_As = base.Columns["cod_As"]; - this.columncod_Ca = base.Columns["cod_Ca"]; - this.columncod_Sp = base.Columns["cod_Sp"]; - this.columncod_Sn = base.Columns["cod_Sn"]; - this.columncod_Mc = base.Columns["cod_Mc"]; - this.columncod_Id2 = base.Columns["cod_Id2"]; - this.columncod_El2 = base.Columns["cod_El2"]; - this.columncod_Ed2 = base.Columns["cod_Ed2"]; - this.columncod_Fb2 = base.Columns["cod_Fb2"]; - this.columncod_Tv2 = base.Columns["cod_Tv2"]; - this.columncod_As2 = base.Columns["cod_As2"]; - this.columncod_Ca2 = base.Columns["cod_Ca2"]; - this.columncod_Sp2 = base.Columns["cod_Sp2"]; - this.columncod_Sn2 = base.Columns["cod_Sn2"]; - this.columncod_Mc2 = base.Columns["cod_Mc2"]; + this.columnAttivo = base.Columns["Attivo"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1272,46 +1107,8 @@ namespace Data { base.Columns.Add(this.columncod_fisc); this.columnidxAmm = new global::System.Data.DataColumn("idxAmm", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnidxAmm); - this.columncod_Id = new global::System.Data.DataColumn("cod_Id", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Id); - this.columncod_El = new global::System.Data.DataColumn("cod_El", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_El); - this.columncod_Ed = new global::System.Data.DataColumn("cod_Ed", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Ed); - this.columncod_Fb = new global::System.Data.DataColumn("cod_Fb", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Fb); - this.columncod_Tv = new global::System.Data.DataColumn("cod_Tv", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Tv); - this.columncod_As = new global::System.Data.DataColumn("cod_As", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_As); - this.columncod_Ca = new global::System.Data.DataColumn("cod_Ca", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Ca); - this.columncod_Sp = new global::System.Data.DataColumn("cod_Sp", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Sp); - this.columncod_Sn = new global::System.Data.DataColumn("cod_Sn", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Sn); - this.columncod_Mc = new global::System.Data.DataColumn("cod_Mc", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Mc); - this.columncod_Id2 = new global::System.Data.DataColumn("cod_Id2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Id2); - this.columncod_El2 = new global::System.Data.DataColumn("cod_El2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_El2); - this.columncod_Ed2 = new global::System.Data.DataColumn("cod_Ed2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Ed2); - this.columncod_Fb2 = new global::System.Data.DataColumn("cod_Fb2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Fb2); - this.columncod_Tv2 = new global::System.Data.DataColumn("cod_Tv2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Tv2); - this.columncod_As2 = new global::System.Data.DataColumn("cod_As2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_As2); - this.columncod_Ca2 = new global::System.Data.DataColumn("cod_Ca2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Ca2); - this.columncod_Sp2 = new global::System.Data.DataColumn("cod_Sp2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Sp2); - this.columncod_Sn2 = new global::System.Data.DataColumn("cod_Sn2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Sn2); - this.columncod_Mc2 = new global::System.Data.DataColumn("cod_Mc2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncod_Mc2); + this.columnAttivo = new global::System.Data.DataColumn("Attivo", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAttivo); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidxCond}, true)); this.columnidxCond.AutoIncrement = true; @@ -1333,6 +1130,7 @@ namespace Data { this.columncod_fisc.AllowDBNull = false; this.columncod_fisc.MaxLength = 15; this.columnidxAmm.AllowDBNull = false; + this.columnAttivo.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3034,6 +2832,177 @@ namespace Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int NumCondAttivi { + get { + try { + return ((int)(this[this.tableAnagAmministratori.NumCondAttiviColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumCondAttivi\' nella tabella \'AnagAmministratori\' è DBNu" + + "ll.", e); + } + } + set { + this[this.tableAnagAmministratori.NumCondAttiviColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int NumCond { + get { + try { + return ((int)(this[this.tableAnagAmministratori.NumCondColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumCond\' nella tabella \'AnagAmministratori\' è DBNull.", e); + } + } + set { + this[this.tableAnagAmministratori.NumCondColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int NumRich { + get { + try { + return ((int)(this[this.tableAnagAmministratori.NumRichColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumRich\' nella tabella \'AnagAmministratori\' è DBNull.", e); + } + } + set { + this[this.tableAnagAmministratori.NumRichColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int NumInt { + get { + try { + return ((int)(this[this.tableAnagAmministratori.NumIntColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumInt\' nella tabella \'AnagAmministratori\' è DBNull.", e); + } + } + set { + this[this.tableAnagAmministratori.NumIntColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public decimal ImponibileTot { + get { + try { + return ((decimal)(this[this.tableAnagAmministratori.ImponibileTotColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ImponibileTot\' nella tabella \'AnagAmministratori\' è DBNu" + + "ll.", e); + } + } + set { + this[this.tableAnagAmministratori.ImponibileTotColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public decimal ImponibileMedio { + get { + try { + return ((decimal)(this[this.tableAnagAmministratori.ImponibileMedioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ImponibileMedio\' nella tabella \'AnagAmministratori\' è DB" + + "Null.", e); + } + } + set { + this[this.tableAnagAmministratori.ImponibileMedioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsNumCondAttiviNull() { + return this.IsNull(this.tableAnagAmministratori.NumCondAttiviColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetNumCondAttiviNull() { + this[this.tableAnagAmministratori.NumCondAttiviColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsNumCondNull() { + return this.IsNull(this.tableAnagAmministratori.NumCondColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetNumCondNull() { + this[this.tableAnagAmministratori.NumCondColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsNumRichNull() { + return this.IsNull(this.tableAnagAmministratori.NumRichColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetNumRichNull() { + this[this.tableAnagAmministratori.NumRichColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsNumIntNull() { + return this.IsNull(this.tableAnagAmministratori.NumIntColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetNumIntNull() { + this[this.tableAnagAmministratori.NumIntColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsImponibileTotNull() { + return this.IsNull(this.tableAnagAmministratori.ImponibileTotColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetImponibileTotNull() { + this[this.tableAnagAmministratori.ImponibileTotColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsImponibileMedioNull() { + return this.IsNull(this.tableAnagAmministratori.ImponibileMedioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetImponibileMedioNull() { + this[this.tableAnagAmministratori.ImponibileMedioColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] public AnagCondominiRow[] GetAnagCondominiRows() { @@ -3150,321 +3119,12 @@ namespace Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Id { + public bool Attivo { get { - try { - return ((int)(this[this.tableAnagCondomini.cod_IdColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Id\' nella tabella \'AnagCondomini\' è DBNull.", e); - } + return ((bool)(this[this.tableAnagCondomini.AttivoColumn])); } set { - this[this.tableAnagCondomini.cod_IdColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_El { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_ElColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_El\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_ElColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Ed { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_EdColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Ed\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_EdColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Fb { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_FbColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Fb\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_FbColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Tv { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_TvColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Tv\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_TvColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_As { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_AsColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_As\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_AsColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Ca { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_CaColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Ca\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_CaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Sp { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_SpColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Sp\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_SpColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Sn { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_SnColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Sn\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_SnColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Mc { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_McColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Mc\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_McColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Id2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_Id2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Id2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_Id2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_El2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_El2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_El2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_El2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Ed2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_Ed2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Ed2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_Ed2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Fb2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_Fb2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Fb2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_Fb2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Tv2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_Tv2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Tv2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_Tv2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_As2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_As2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_As2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_As2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Ca2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_Ca2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Ca2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_Ca2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Sp2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_Sp2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Sp2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_Sp2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Sn2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_Sn2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Sn2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_Sn2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int cod_Mc2 { - get { - try { - return ((int)(this[this.tableAnagCondomini.cod_Mc2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cod_Mc2\' nella tabella \'AnagCondomini\' è DBNull.", e); - } - } - set { - this[this.tableAnagCondomini.cod_Mc2Column] = value; + this[this.tableAnagCondomini.AttivoColumn] = value; } } @@ -3479,246 +3139,6 @@ namespace Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_IdNull() { - return this.IsNull(this.tableAnagCondomini.cod_IdColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_IdNull() { - this[this.tableAnagCondomini.cod_IdColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_ElNull() { - return this.IsNull(this.tableAnagCondomini.cod_ElColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_ElNull() { - this[this.tableAnagCondomini.cod_ElColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_EdNull() { - return this.IsNull(this.tableAnagCondomini.cod_EdColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_EdNull() { - this[this.tableAnagCondomini.cod_EdColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_FbNull() { - return this.IsNull(this.tableAnagCondomini.cod_FbColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_FbNull() { - this[this.tableAnagCondomini.cod_FbColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_TvNull() { - return this.IsNull(this.tableAnagCondomini.cod_TvColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_TvNull() { - this[this.tableAnagCondomini.cod_TvColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_AsNull() { - return this.IsNull(this.tableAnagCondomini.cod_AsColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_AsNull() { - this[this.tableAnagCondomini.cod_AsColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_CaNull() { - return this.IsNull(this.tableAnagCondomini.cod_CaColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_CaNull() { - this[this.tableAnagCondomini.cod_CaColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_SpNull() { - return this.IsNull(this.tableAnagCondomini.cod_SpColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_SpNull() { - this[this.tableAnagCondomini.cod_SpColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_SnNull() { - return this.IsNull(this.tableAnagCondomini.cod_SnColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_SnNull() { - this[this.tableAnagCondomini.cod_SnColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_McNull() { - return this.IsNull(this.tableAnagCondomini.cod_McColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_McNull() { - this[this.tableAnagCondomini.cod_McColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_Id2Null() { - return this.IsNull(this.tableAnagCondomini.cod_Id2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_Id2Null() { - this[this.tableAnagCondomini.cod_Id2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_El2Null() { - return this.IsNull(this.tableAnagCondomini.cod_El2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_El2Null() { - this[this.tableAnagCondomini.cod_El2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_Ed2Null() { - return this.IsNull(this.tableAnagCondomini.cod_Ed2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_Ed2Null() { - this[this.tableAnagCondomini.cod_Ed2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_Fb2Null() { - return this.IsNull(this.tableAnagCondomini.cod_Fb2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_Fb2Null() { - this[this.tableAnagCondomini.cod_Fb2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_Tv2Null() { - return this.IsNull(this.tableAnagCondomini.cod_Tv2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_Tv2Null() { - this[this.tableAnagCondomini.cod_Tv2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_As2Null() { - return this.IsNull(this.tableAnagCondomini.cod_As2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_As2Null() { - this[this.tableAnagCondomini.cod_As2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_Ca2Null() { - return this.IsNull(this.tableAnagCondomini.cod_Ca2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_Ca2Null() { - this[this.tableAnagCondomini.cod_Ca2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_Sp2Null() { - return this.IsNull(this.tableAnagCondomini.cod_Sp2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_Sp2Null() { - this[this.tableAnagCondomini.cod_Sp2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_Sn2Null() { - return this.IsNull(this.tableAnagCondomini.cod_Sn2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_Sn2Null() { - this[this.tableAnagCondomini.cod_Sn2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool Iscod_Mc2Null() { - return this.IsNull(this.tableAnagCondomini.cod_Mc2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void Setcod_Mc2Null() { - this[this.tableAnagCondomini.cod_Mc2Column] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] public AssF2CRow[] GetAssF2CRows() { @@ -4798,34 +4218,13 @@ namespace Data.DS_appTableAdapters { tableMapping.ColumnMappings.Add("idxAmm", "idxAmm"); tableMapping.ColumnMappings.Add("RagSociale", "RagSociale"); tableMapping.ColumnMappings.Add("email", "email"); + tableMapping.ColumnMappings.Add("NumCondAttivi", "NumCondAttivi"); + tableMapping.ColumnMappings.Add("NumCondInattivi", "NumCond"); + tableMapping.ColumnMappings.Add("NumRich", "NumRich"); + tableMapping.ColumnMappings.Add("NumInt", "NumInt"); + tableMapping.ColumnMappings.Add("ImponibileTot", "ImponibileTot"); + tableMapping.ColumnMappings.Add("ImponibileMedio", "ImponibileMedio"); this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagAmministratori] WHERE (([idxAmm] = @Original_idxAmm) AND (" + - "[RagSociale] = @Original_RagSociale) AND ([email] = @Original_email))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxAmm", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAmm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagAmministratori] ([RagSociale], [email]) VALUES (@RagSocial" + - "e, @email);\r\nSELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idx" + - "Amm = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagAmministratori] SET [RagSociale] = @RagSociale, [email] = @email WHERE (([idxAmm] = @Original_idxAmm) AND ([RagSociale] = @Original_RagSociale) AND ([email] = @Original_email)); -SELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idxAmm = @idxAmm)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxAmm", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAmm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxAmm", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxAmm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -4841,7 +4240,7 @@ SELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idxAmm = @idxAmm this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT idxAmm, RagSociale, email FROM dbo.AnagAmministratori"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_AnagAmministratori"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; } @@ -4868,157 +4267,6 @@ SELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idxAmm = @idxAmm this.Adapter.Fill(dataTable); return dataTable; } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_app.AnagAmministratoriDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_app dataSet) { - return this.Adapter.Update(dataSet, "AnagAmministratori"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(int Original_idxAmm, string Original_RagSociale, string Original_email) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxAmm)); - if ((Original_RagSociale == null)) { - throw new global::System.ArgumentNullException("Original_RagSociale"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_RagSociale)); - } - if ((Original_email == null)) { - throw new global::System.ArgumentNullException("Original_email"); - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_email)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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(string RagSociale, string email) { - if ((RagSociale == null)) { - throw new global::System.ArgumentNullException("RagSociale"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(RagSociale)); - } - if ((email == null)) { - throw new global::System.ArgumentNullException("email"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(email)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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(string RagSociale, string email, int Original_idxAmm, string Original_RagSociale, string Original_email, int idxAmm) { - if ((RagSociale == null)) { - throw new global::System.ArgumentNullException("RagSociale"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(RagSociale)); - } - if ((email == null)) { - throw new global::System.ArgumentNullException("email"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(email)); - } - this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idxAmm)); - if ((Original_RagSociale == null)) { - throw new global::System.ArgumentNullException("Original_RagSociale"); - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_RagSociale)); - } - if ((Original_email == null)) { - throw new global::System.ArgumentNullException("Original_email"); - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_email)); - } - this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(idxAmm)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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(string RagSociale, string email, int Original_idxAmm, string Original_RagSociale, string Original_email) { - return this.Update(RagSociale, email, Original_idxAmm, Original_RagSociale, Original_email, Original_idxAmm); - } } /// @@ -5150,54 +4398,11 @@ SELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idxAmm = @idxAmm tableMapping.ColumnMappings.Add("citta", "citta"); tableMapping.ColumnMappings.Add("cod_fisc", "cod_fisc"); tableMapping.ColumnMappings.Add("idxAmm", "idxAmm"); - tableMapping.ColumnMappings.Add("cod_Id", "cod_Id"); - tableMapping.ColumnMappings.Add("cod_El", "cod_El"); - tableMapping.ColumnMappings.Add("cod_Ed", "cod_Ed"); - tableMapping.ColumnMappings.Add("cod_Fb", "cod_Fb"); - tableMapping.ColumnMappings.Add("cod_Tv", "cod_Tv"); - tableMapping.ColumnMappings.Add("cod_As", "cod_As"); - tableMapping.ColumnMappings.Add("cod_Ca", "cod_Ca"); - tableMapping.ColumnMappings.Add("cod_Sp", "cod_Sp"); - tableMapping.ColumnMappings.Add("cod_Sn", "cod_Sn"); - tableMapping.ColumnMappings.Add("cod_Mc", "cod_Mc"); - tableMapping.ColumnMappings.Add("cod_Id2", "cod_Id2"); - tableMapping.ColumnMappings.Add("cod_El2", "cod_El2"); - tableMapping.ColumnMappings.Add("cod_Ed2", "cod_Ed2"); - tableMapping.ColumnMappings.Add("cod_Fb2", "cod_Fb2"); - tableMapping.ColumnMappings.Add("cod_Tv2", "cod_Tv2"); - tableMapping.ColumnMappings.Add("cod_As2", "cod_As2"); - tableMapping.ColumnMappings.Add("cod_Ca2", "cod_Ca2"); - tableMapping.ColumnMappings.Add("cod_Sp2", "cod_Sp2"); - tableMapping.ColumnMappings.Add("cod_Sn2", "cod_Sn2"); - tableMapping.ColumnMappings.Add("cod_Mc2", "cod_Mc2"); + tableMapping.ColumnMappings.Add("Attivo", "Attivo"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagCondomini] WHERE (([idxCond] = @Original_idxCond) AND ([co" + - "d_cond] = @Original_cod_cond) AND ([nome] = @Original_nome) AND ([indirizzo] = @" + - "Original_indirizzo) AND ([cap] = @Original_cap) AND ([citta] = @Original_citta) " + - "AND ([cod_fisc] = @Original_cod_fisc) AND ([idxAmm] = @Original_idxAmm) AND ((@I" + - "sNull_cod_Id = 1 AND [cod_Id] IS NULL) OR ([cod_Id] = @Original_cod_Id)) AND ((@" + - "IsNull_cod_El = 1 AND [cod_El] IS NULL) OR ([cod_El] = @Original_cod_El)) AND ((" + - "@IsNull_cod_Ed = 1 AND [cod_Ed] IS NULL) OR ([cod_Ed] = @Original_cod_Ed)) AND (" + - "(@IsNull_cod_Fb = 1 AND [cod_Fb] IS NULL) OR ([cod_Fb] = @Original_cod_Fb)) AND " + - "((@IsNull_cod_Tv = 1 AND [cod_Tv] IS NULL) OR ([cod_Tv] = @Original_cod_Tv)) AND" + - " ((@IsNull_cod_As = 1 AND [cod_As] IS NULL) OR ([cod_As] = @Original_cod_As)) AN" + - "D ((@IsNull_cod_Ca = 1 AND [cod_Ca] IS NULL) OR ([cod_Ca] = @Original_cod_Ca)) A" + - "ND ((@IsNull_cod_Sp = 1 AND [cod_Sp] IS NULL) OR ([cod_Sp] = @Original_cod_Sp)) " + - "AND ((@IsNull_cod_Sn = 1 AND [cod_Sn] IS NULL) OR ([cod_Sn] = @Original_cod_Sn))" + - " AND ((@IsNull_cod_Mc = 1 AND [cod_Mc] IS NULL) OR ([cod_Mc] = @Original_cod_Mc)" + - ") AND ((@IsNull_cod_Id2 = 1 AND [cod_Id2] IS NULL) OR ([cod_Id2] = @Original_cod" + - "_Id2)) AND ((@IsNull_cod_El2 = 1 AND [cod_El2] IS NULL) OR ([cod_El2] = @Origina" + - "l_cod_El2)) AND ((@IsNull_cod_Ed2 = 1 AND [cod_Ed2] IS NULL) OR ([cod_Ed2] = @Or" + - "iginal_cod_Ed2)) AND ((@IsNull_cod_Fb2 = 1 AND [cod_Fb2] IS NULL) OR ([cod_Fb2] " + - "= @Original_cod_Fb2)) AND ((@IsNull_cod_Tv2 = 1 AND [cod_Tv2] IS NULL) OR ([cod_" + - "Tv2] = @Original_cod_Tv2)) AND ((@IsNull_cod_As2 = 1 AND [cod_As2] IS NULL) OR (" + - "[cod_As2] = @Original_cod_As2)) AND ((@IsNull_cod_Ca2 = 1 AND [cod_Ca2] IS NULL)" + - " OR ([cod_Ca2] = @Original_cod_Ca2)) AND ((@IsNull_cod_Sp2 = 1 AND [cod_Sp2] IS " + - "NULL) OR ([cod_Sp2] = @Original_cod_Sp2)) AND ((@IsNull_cod_Sn2 = 1 AND [cod_Sn2" + - "] IS NULL) OR ([cod_Sn2] = @Original_cod_Sn2)) AND ((@IsNull_cod_Mc2 = 1 AND [co" + - "d_Mc2] IS NULL) OR ([cod_Mc2] = @Original_cod_Mc2)))"; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagCondomini] WHERE (([idxCond] = @Original_idxCond) AND ([cod_cond] = @Original_cod_cond) AND ([nome] = @Original_nome) AND ([indirizzo] = @Original_indirizzo) AND ([cap] = @Original_cap) AND ([citta] = @Original_citta) AND ([cod_fisc] = @Original_cod_fisc) AND ([idxAmm] = @Original_idxAmm) AND ([Attivo] = @Original_Attivo))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxCond", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxCond", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_cond", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_cond", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -5207,50 +4412,11 @@ SELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idxAmm = @idxAmm this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_citta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "citta", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_fisc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_fisc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxAmm", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAmm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_El", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_El", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Ed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Ed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Fb", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Fb", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Tv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Tv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_As", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_As", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Ca", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Ca", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Sp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Sp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Sn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Sn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Mc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Mc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Id2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Id2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_El2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_El2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Ed2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Ed2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Fb2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Fb2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Tv2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Tv2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_As2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_As2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Ca2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Ca2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Sp2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Sp2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Sn2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Sn2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Mc2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Mc2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagCondomini] ([cod_cond], [nome], [indirizzo], [cap], [citta], [cod_fisc], [idxAmm], [cod_Id], [cod_El], [cod_Ed], [cod_Fb], [cod_Tv], [cod_As], [cod_Ca], [cod_Sp], [cod_Sn], [cod_Mc], [cod_Id2], [cod_El2], [cod_Ed2], [cod_Fb2], [cod_Tv2], [cod_As2], [cod_Ca2], [cod_Sp2], [cod_Sn2], [cod_Mc2]) VALUES (@cod_cond, @nome, @indirizzo, @cap, @citta, @cod_fisc, @idxAmm, @cod_Id, @cod_El, @cod_Ed, @cod_Fb, @cod_Tv, @cod_As, @cod_Ca, @cod_Sp, @cod_Sn, @cod_Mc, @cod_Id2, @cod_El2, @cod_Ed2, @cod_Fb2, @cod_Tv2, @cod_As2, @cod_Ca2, @cod_Sp2, @cod_Sn2, @cod_Mc2); -SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, cod_El, cod_Ed, cod_Fb, cod_Tv, cod_As, cod_Ca, cod_Sp, cod_Sn, cod_Mc, cod_Id2, cod_El2, cod_Ed2, cod_Fb2, cod_Tv2, cod_As2, cod_Ca2, cod_Sp2, cod_Sn2, cod_Mc2 FROM AnagCondomini WHERE (idxCond = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagCondomini] ([cod_cond], [nome], [indirizzo], [cap], [citta], [cod_fisc], [idxAmm], [Attivo]) VALUES (@cod_cond, @nome, @indirizzo, @cap, @citta, @cod_fisc, @idxAmm, @Attivo); +SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo FROM AnagCondomini WHERE (idxCond = SCOPE_IDENTITY())"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_cond", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_cond", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -5259,64 +4425,11 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@citta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "citta", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_fisc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_fisc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxAmm", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAmm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_El", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Ed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Fb", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Tv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_As", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Ca", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Sp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Sn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Mc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Id2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_El2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Ed2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Fb2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Tv2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_As2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Ca2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Sp2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Sn2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Mc2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[AnagCondomini] SET [cod_cond] = @cod_cond, [nome] = @nome, [indiriz" + - "zo] = @indirizzo, [cap] = @cap, [citta] = @citta, [cod_fisc] = @cod_fisc, [idxAm" + - "m] = @idxAmm, [cod_Id] = @cod_Id, [cod_El] = @cod_El, [cod_Ed] = @cod_Ed, [cod_F" + - "b] = @cod_Fb, [cod_Tv] = @cod_Tv, [cod_As] = @cod_As, [cod_Ca] = @cod_Ca, [cod_S" + - "p] = @cod_Sp, [cod_Sn] = @cod_Sn, [cod_Mc] = @cod_Mc, [cod_Id2] = @cod_Id2, [cod" + - "_El2] = @cod_El2, [cod_Ed2] = @cod_Ed2, [cod_Fb2] = @cod_Fb2, [cod_Tv2] = @cod_T" + - "v2, [cod_As2] = @cod_As2, [cod_Ca2] = @cod_Ca2, [cod_Sp2] = @cod_Sp2, [cod_Sn2] " + - "= @cod_Sn2, [cod_Mc2] = @cod_Mc2 WHERE (([idxCond] = @Original_idxCond) AND ([co" + - "d_cond] = @Original_cod_cond) AND ([nome] = @Original_nome) AND ([indirizzo] = @" + - "Original_indirizzo) AND ([cap] = @Original_cap) AND ([citta] = @Original_citta) " + - "AND ([cod_fisc] = @Original_cod_fisc) AND ([idxAmm] = @Original_idxAmm) AND ((@I" + - "sNull_cod_Id = 1 AND [cod_Id] IS NULL) OR ([cod_Id] = @Original_cod_Id)) AND ((@" + - "IsNull_cod_El = 1 AND [cod_El] IS NULL) OR ([cod_El] = @Original_cod_El)) AND ((" + - "@IsNull_cod_Ed = 1 AND [cod_Ed] IS NULL) OR ([cod_Ed] = @Original_cod_Ed)) AND (" + - "(@IsNull_cod_Fb = 1 AND [cod_Fb] IS NULL) OR ([cod_Fb] = @Original_cod_Fb)) AND " + - "((@IsNull_cod_Tv = 1 AND [cod_Tv] IS NULL) OR ([cod_Tv] = @Original_cod_Tv)) AND" + - " ((@IsNull_cod_As = 1 AND [cod_As] IS NULL) OR ([cod_As] = @Original_cod_As)) AN" + - "D ((@IsNull_cod_Ca = 1 AND [cod_Ca] IS NULL) OR ([cod_Ca] = @Original_cod_Ca)) A" + - "ND ((@IsNull_cod_Sp = 1 AND [cod_Sp] IS NULL) OR ([cod_Sp] = @Original_cod_Sp)) " + - "AND ((@IsNull_cod_Sn = 1 AND [cod_Sn] IS NULL) OR ([cod_Sn] = @Original_cod_Sn))" + - " AND ((@IsNull_cod_Mc = 1 AND [cod_Mc] IS NULL) OR ([cod_Mc] = @Original_cod_Mc)" + - ") AND ((@IsNull_cod_Id2 = 1 AND [cod_Id2] IS NULL) OR ([cod_Id2] = @Original_cod" + - "_Id2)) AND ((@IsNull_cod_El2 = 1 AND [cod_El2] IS NULL) OR ([cod_El2] = @Origina" + - "l_cod_El2)) AND ((@IsNull_cod_Ed2 = 1 AND [cod_Ed2] IS NULL) OR ([cod_Ed2] = @Or" + - "iginal_cod_Ed2)) AND ((@IsNull_cod_Fb2 = 1 AND [cod_Fb2] IS NULL) OR ([cod_Fb2] " + - "= @Original_cod_Fb2)) AND ((@IsNull_cod_Tv2 = 1 AND [cod_Tv2] IS NULL) OR ([cod_" + - "Tv2] = @Original_cod_Tv2)) AND ((@IsNull_cod_As2 = 1 AND [cod_As2] IS NULL) OR (" + - "[cod_As2] = @Original_cod_As2)) AND ((@IsNull_cod_Ca2 = 1 AND [cod_Ca2] IS NULL)" + - " OR ([cod_Ca2] = @Original_cod_Ca2)) AND ((@IsNull_cod_Sp2 = 1 AND [cod_Sp2] IS " + - "NULL) OR ([cod_Sp2] = @Original_cod_Sp2)) AND ((@IsNull_cod_Sn2 = 1 AND [cod_Sn2" + - "] IS NULL) OR ([cod_Sn2] = @Original_cod_Sn2)) AND ((@IsNull_cod_Mc2 = 1 AND [co" + - "d_Mc2] IS NULL) OR ([cod_Mc2] = @Original_cod_Mc2)));\r\nSELECT idxCond, cod_cond," + - " nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, cod_El, cod_Ed, cod_Fb, " + - "cod_Tv, cod_As, cod_Ca, cod_Sp, cod_Sn, cod_Mc, cod_Id2, cod_El2, cod_Ed2, cod_F" + - "b2, cod_Tv2, cod_As2, cod_Ca2, cod_Sp2, cod_Sn2, cod_Mc2 FROM AnagCondomini WHER" + - "E (idxCond = @idxCond)"; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagCondomini] SET [cod_cond] = @cod_cond, [nome] = @nome, [indirizzo] = @indirizzo, [cap] = @cap, [citta] = @citta, [cod_fisc] = @cod_fisc, [idxAmm] = @idxAmm, [Attivo] = @Attivo WHERE (([idxCond] = @Original_idxCond) AND ([cod_cond] = @Original_cod_cond) AND ([nome] = @Original_nome) AND ([indirizzo] = @Original_indirizzo) AND ([cap] = @Original_cap) AND ([citta] = @Original_citta) AND ([cod_fisc] = @Original_cod_fisc) AND ([idxAmm] = @Original_idxAmm) AND ([Attivo] = @Original_Attivo)); +SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo FROM AnagCondomini WHERE (idxCond = @idxCond)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_cond", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_cond", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -5325,26 +4438,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@citta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "citta", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_fisc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_fisc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxAmm", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAmm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_El", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Ed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Fb", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Tv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_As", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Ca", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Sp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Sn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Mc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Id2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_El2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Ed2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Fb2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Tv2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_As2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Ca2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Sp2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Sn2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cod_Mc2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxCond", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxCond", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_cond", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_cond", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -5353,46 +4447,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_citta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "citta", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_fisc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_fisc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxAmm", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAmm", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_El", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_El", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Ed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Ed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Fb", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Fb", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Tv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Tv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_As", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_As", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Ca", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Ca", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Sp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Sp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Sn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Sn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Mc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Mc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Id2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Id2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Id2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_El2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_El2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_El2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Ed2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Ed2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ed2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Fb2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Fb2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Fb2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Tv2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Tv2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Tv2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_As2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_As2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_As2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Ca2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Ca2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Ca2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Sp2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Sp2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sp2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Sn2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Sn2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Sn2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cod_Mc2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cod_Mc2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cod_Mc2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCond", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxCond", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -5409,7 +4464,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, 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 idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, cod_El, cod_Ed, cod_Fb, cod_Tv, cod_As, cod_Ca, cod_Sp, cod_Sn, cod_Mc, cod_Id2, cod_El2, cod_Ed2, cod_Fb2, cod_Tv2, cod_As2, cod_Ca2, cod_Sp2, cod_Sn2, cod_Mc2 FROM dbo.AnagCondomini"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.AnagCondomini"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -5493,35 +4548,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete( - int Original_idxCond, - string Original_cod_cond, - string Original_nome, - string Original_indirizzo, - string Original_cap, - string Original_citta, - string Original_cod_fisc, - int Original_idxAmm, - global::System.Nullable Original_cod_Id, - global::System.Nullable Original_cod_El, - global::System.Nullable Original_cod_Ed, - global::System.Nullable Original_cod_Fb, - global::System.Nullable Original_cod_Tv, - global::System.Nullable Original_cod_As, - global::System.Nullable Original_cod_Ca, - global::System.Nullable Original_cod_Sp, - global::System.Nullable Original_cod_Sn, - global::System.Nullable Original_cod_Mc, - global::System.Nullable Original_cod_Id2, - global::System.Nullable Original_cod_El2, - global::System.Nullable Original_cod_Ed2, - global::System.Nullable Original_cod_Fb2, - global::System.Nullable Original_cod_Tv2, - global::System.Nullable Original_cod_As2, - global::System.Nullable Original_cod_Ca2, - global::System.Nullable Original_cod_Sp2, - global::System.Nullable Original_cod_Sn2, - global::System.Nullable Original_cod_Mc2) { + public virtual int Delete(int Original_idxCond, string Original_cod_cond, string Original_nome, string Original_indirizzo, string Original_cap, string Original_citta, string Original_cod_fisc, int Original_idxAmm, bool Original_Attivo) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxCond)); if ((Original_cod_cond == null)) { throw new global::System.ArgumentNullException("Original_cod_cond"); @@ -5560,166 +4587,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_cod_fisc)); } this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_idxAmm)); - if ((Original_cod_Id.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_cod_Id.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((Original_cod_El.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[11].Value = ((int)(Original_cod_El.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((Original_cod_Ed.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[13].Value = ((int)(Original_cod_Ed.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((Original_cod_Fb.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_cod_Fb.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; - } - if ((Original_cod_Tv.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[17].Value = ((int)(Original_cod_Tv.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; - } - if ((Original_cod_As.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[19].Value = ((int)(Original_cod_As.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value; - } - if ((Original_cod_Ca.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[21].Value = ((int)(Original_cod_Ca.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value; - } - if ((Original_cod_Sp.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[23].Value = ((int)(Original_cod_Sp.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value; - } - if ((Original_cod_Sn.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[25].Value = ((int)(Original_cod_Sn.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((Original_cod_Mc.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[27].Value = ((int)(Original_cod_Mc.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value; - } - if ((Original_cod_Id2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[28].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[29].Value = ((int)(Original_cod_Id2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[28].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[29].Value = global::System.DBNull.Value; - } - if ((Original_cod_El2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[31].Value = ((int)(Original_cod_El2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[31].Value = global::System.DBNull.Value; - } - if ((Original_cod_Ed2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[32].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[33].Value = ((int)(Original_cod_Ed2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[32].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[33].Value = global::System.DBNull.Value; - } - if ((Original_cod_Fb2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[35].Value = ((int)(Original_cod_Fb2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[35].Value = global::System.DBNull.Value; - } - if ((Original_cod_Tv2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[37].Value = ((int)(Original_cod_Tv2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[37].Value = global::System.DBNull.Value; - } - if ((Original_cod_As2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[39].Value = ((int)(Original_cod_As2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[39].Value = global::System.DBNull.Value; - } - if ((Original_cod_Ca2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[41].Value = ((int)(Original_cod_Ca2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[41].Value = global::System.DBNull.Value; - } - if ((Original_cod_Sp2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[43].Value = ((int)(Original_cod_Sp2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[43].Value = global::System.DBNull.Value; - } - if ((Original_cod_Sn2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[45].Value = ((int)(Original_cod_Sn2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[45].Value = global::System.DBNull.Value; - } - if ((Original_cod_Mc2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[47].Value = ((int)(Original_cod_Mc2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[47].Value = global::System.DBNull.Value; - } + this.Adapter.DeleteCommand.Parameters[8].Value = ((bool)(Original_Attivo)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -5740,34 +4608,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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( - string cod_cond, - string nome, - string indirizzo, - string cap, - string citta, - string cod_fisc, - int idxAmm, - global::System.Nullable cod_Id, - global::System.Nullable cod_El, - global::System.Nullable cod_Ed, - global::System.Nullable cod_Fb, - global::System.Nullable cod_Tv, - global::System.Nullable cod_As, - global::System.Nullable cod_Ca, - global::System.Nullable cod_Sp, - global::System.Nullable cod_Sn, - global::System.Nullable cod_Mc, - global::System.Nullable cod_Id2, - global::System.Nullable cod_El2, - global::System.Nullable cod_Ed2, - global::System.Nullable cod_Fb2, - global::System.Nullable cod_Tv2, - global::System.Nullable cod_As2, - global::System.Nullable cod_Ca2, - global::System.Nullable cod_Sp2, - global::System.Nullable cod_Sn2, - global::System.Nullable cod_Mc2) { + public virtual int Insert(string cod_cond, string nome, string indirizzo, string cap, string citta, string cod_fisc, int idxAmm, bool Attivo) { if ((cod_cond == null)) { throw new global::System.ArgumentNullException("cod_cond"); } @@ -5805,126 +4646,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, this.Adapter.InsertCommand.Parameters[5].Value = ((string)(cod_fisc)); } this.Adapter.InsertCommand.Parameters[6].Value = ((int)(idxAmm)); - if ((cod_Id.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[7].Value = ((int)(cod_Id.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; - } - if ((cod_El.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[8].Value = ((int)(cod_El.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; - } - if ((cod_Ed.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[9].Value = ((int)(cod_Ed.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((cod_Fb.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[10].Value = ((int)(cod_Fb.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; - } - if ((cod_Tv.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[11].Value = ((int)(cod_Tv.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((cod_As.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[12].Value = ((int)(cod_As.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; - } - if ((cod_Ca.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[13].Value = ((int)(cod_Ca.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((cod_Sp.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[14].Value = ((int)(cod_Sp.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; - } - if ((cod_Sn.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[15].Value = ((int)(cod_Sn.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; - } - if ((cod_Mc.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[16].Value = ((int)(cod_Mc.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; - } - if ((cod_Id2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[17].Value = ((int)(cod_Id2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; - } - if ((cod_El2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[18].Value = ((int)(cod_El2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; - } - if ((cod_Ed2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[19].Value = ((int)(cod_Ed2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; - } - if ((cod_Fb2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[20].Value = ((int)(cod_Fb2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; - } - if ((cod_Tv2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[21].Value = ((int)(cod_Tv2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value; - } - if ((cod_As2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[22].Value = ((int)(cod_As2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value; - } - if ((cod_Ca2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[23].Value = ((int)(cod_Ca2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value; - } - if ((cod_Sp2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[24].Value = ((int)(cod_Sp2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value; - } - if ((cod_Sn2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[25].Value = ((int)(cod_Sn2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((cod_Mc2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[26].Value = ((int)(cod_Mc2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value; - } + this.Adapter.InsertCommand.Parameters[7].Value = ((bool)(Attivo)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -5953,26 +4675,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, string citta, string cod_fisc, int idxAmm, - global::System.Nullable cod_Id, - global::System.Nullable cod_El, - global::System.Nullable cod_Ed, - global::System.Nullable cod_Fb, - global::System.Nullable cod_Tv, - global::System.Nullable cod_As, - global::System.Nullable cod_Ca, - global::System.Nullable cod_Sp, - global::System.Nullable cod_Sn, - global::System.Nullable cod_Mc, - global::System.Nullable cod_Id2, - global::System.Nullable cod_El2, - global::System.Nullable cod_Ed2, - global::System.Nullable cod_Fb2, - global::System.Nullable cod_Tv2, - global::System.Nullable cod_As2, - global::System.Nullable cod_Ca2, - global::System.Nullable cod_Sp2, - global::System.Nullable cod_Sn2, - global::System.Nullable cod_Mc2, + bool Attivo, int Original_idxCond, string Original_cod_cond, string Original_nome, @@ -5981,26 +4684,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, string Original_citta, string Original_cod_fisc, int Original_idxAmm, - global::System.Nullable Original_cod_Id, - global::System.Nullable Original_cod_El, - global::System.Nullable Original_cod_Ed, - global::System.Nullable Original_cod_Fb, - global::System.Nullable Original_cod_Tv, - global::System.Nullable Original_cod_As, - global::System.Nullable Original_cod_Ca, - global::System.Nullable Original_cod_Sp, - global::System.Nullable Original_cod_Sn, - global::System.Nullable Original_cod_Mc, - global::System.Nullable Original_cod_Id2, - global::System.Nullable Original_cod_El2, - global::System.Nullable Original_cod_Ed2, - global::System.Nullable Original_cod_Fb2, - global::System.Nullable Original_cod_Tv2, - global::System.Nullable Original_cod_As2, - global::System.Nullable Original_cod_Ca2, - global::System.Nullable Original_cod_Sp2, - global::System.Nullable Original_cod_Sn2, - global::System.Nullable Original_cod_Mc2, + bool Original_Attivo, int idxCond) { if ((cod_cond == null)) { throw new global::System.ArgumentNullException("cod_cond"); @@ -6039,325 +4723,47 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(cod_fisc)); } this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(idxAmm)); - if ((cod_Id.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(cod_Id.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; - } - if ((cod_El.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(cod_El.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; - } - if ((cod_Ed.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(cod_Ed.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((cod_Fb.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(cod_Fb.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; - } - if ((cod_Tv.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(cod_Tv.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((cod_As.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(cod_As.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; - } - if ((cod_Ca.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(cod_Ca.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((cod_Sp.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(cod_Sp.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; - } - if ((cod_Sn.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(cod_Sn.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; - } - if ((cod_Mc.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(cod_Mc.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; - } - if ((cod_Id2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(cod_Id2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; - } - if ((cod_El2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(cod_El2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; - } - if ((cod_Ed2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(cod_Ed2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; - } - if ((cod_Fb2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(cod_Fb2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; - } - if ((cod_Tv2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(cod_Tv2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; - } - if ((cod_As2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(cod_As2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; - } - if ((cod_Ca2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(cod_Ca2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; - } - if ((cod_Sp2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(cod_Sp2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; - } - if ((cod_Sn2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(cod_Sn2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((cod_Mc2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(cod_Mc2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_idxCond)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((bool)(Attivo)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idxCond)); if ((Original_cod_cond == null)) { throw new global::System.ArgumentNullException("Original_cod_cond"); } else { - this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_cod_cond)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_cod_cond)); } if ((Original_nome == null)) { throw new global::System.ArgumentNullException("Original_nome"); } else { - this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_nome)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_nome)); } if ((Original_indirizzo == null)) { throw new global::System.ArgumentNullException("Original_indirizzo"); } else { - this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_indirizzo)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_indirizzo)); } if ((Original_cap == null)) { throw new global::System.ArgumentNullException("Original_cap"); } else { - this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_cap)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_cap)); } if ((Original_citta == null)) { throw new global::System.ArgumentNullException("Original_citta"); } else { - this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_citta)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_citta)); } if ((Original_cod_fisc == null)) { throw new global::System.ArgumentNullException("Original_cod_fisc"); } else { - this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_cod_fisc)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_cod_fisc)); } - this.Adapter.UpdateCommand.Parameters[34].Value = ((int)(Original_idxAmm)); - if ((Original_cod_Id.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[36].Value = ((int)(Original_cod_Id.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; - } - if ((Original_cod_El.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[38].Value = ((int)(Original_cod_El.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value; - } - if ((Original_cod_Ed.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[40].Value = ((int)(Original_cod_Ed.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value; - } - if ((Original_cod_Fb.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[42].Value = ((int)(Original_cod_Fb.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value; - } - if ((Original_cod_Tv.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[44].Value = ((int)(Original_cod_Tv.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value; - } - if ((Original_cod_As.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[46].Value = ((int)(Original_cod_As.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value; - } - if ((Original_cod_Ca.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[48].Value = ((int)(Original_cod_Ca.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; - } - if ((Original_cod_Sp.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[50].Value = ((int)(Original_cod_Sp.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; - } - if ((Original_cod_Sn.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[52].Value = ((int)(Original_cod_Sn.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value; - } - if ((Original_cod_Mc.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[54].Value = ((int)(Original_cod_Mc.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value; - } - if ((Original_cod_Id2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[56].Value = ((int)(Original_cod_Id2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value; - } - if ((Original_cod_El2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[58].Value = ((int)(Original_cod_El2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value; - } - if ((Original_cod_Ed2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[60].Value = ((int)(Original_cod_Ed2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value; - } - if ((Original_cod_Fb2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[62].Value = ((int)(Original_cod_Fb2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value; - } - if ((Original_cod_Tv2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[64].Value = ((int)(Original_cod_Tv2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value; - } - if ((Original_cod_As2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[66].Value = ((int)(Original_cod_As2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value; - } - if ((Original_cod_Ca2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[68].Value = ((int)(Original_cod_Ca2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value; - } - if ((Original_cod_Sp2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[70].Value = ((int)(Original_cod_Sp2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value; - } - if ((Original_cod_Sn2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[72].Value = ((int)(Original_cod_Sn2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value; - } - if ((Original_cod_Mc2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[74].Value = ((int)(Original_cod_Mc2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[75].Value = ((int)(idxCond)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_idxAmm)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((bool)(Original_Attivo)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(idxCond)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -6386,26 +4792,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, string citta, string cod_fisc, int idxAmm, - global::System.Nullable cod_Id, - global::System.Nullable cod_El, - global::System.Nullable cod_Ed, - global::System.Nullable cod_Fb, - global::System.Nullable cod_Tv, - global::System.Nullable cod_As, - global::System.Nullable cod_Ca, - global::System.Nullable cod_Sp, - global::System.Nullable cod_Sn, - global::System.Nullable cod_Mc, - global::System.Nullable cod_Id2, - global::System.Nullable cod_El2, - global::System.Nullable cod_Ed2, - global::System.Nullable cod_Fb2, - global::System.Nullable cod_Tv2, - global::System.Nullable cod_As2, - global::System.Nullable cod_Ca2, - global::System.Nullable cod_Sp2, - global::System.Nullable cod_Sn2, - global::System.Nullable cod_Mc2, + bool Attivo, int Original_idxCond, string Original_cod_cond, string Original_nome, @@ -6414,27 +4801,8 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, string Original_citta, string Original_cod_fisc, int Original_idxAmm, - global::System.Nullable Original_cod_Id, - global::System.Nullable Original_cod_El, - global::System.Nullable Original_cod_Ed, - global::System.Nullable Original_cod_Fb, - global::System.Nullable Original_cod_Tv, - global::System.Nullable Original_cod_As, - global::System.Nullable Original_cod_Ca, - global::System.Nullable Original_cod_Sp, - global::System.Nullable Original_cod_Sn, - global::System.Nullable Original_cod_Mc, - global::System.Nullable Original_cod_Id2, - global::System.Nullable Original_cod_El2, - global::System.Nullable Original_cod_Ed2, - global::System.Nullable Original_cod_Fb2, - global::System.Nullable Original_cod_Tv2, - global::System.Nullable Original_cod_As2, - global::System.Nullable Original_cod_Ca2, - global::System.Nullable Original_cod_Sp2, - global::System.Nullable Original_cod_Sn2, - global::System.Nullable Original_cod_Mc2) { - return this.Update(cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, cod_El, cod_Ed, cod_Fb, cod_Tv, cod_As, cod_Ca, cod_Sp, cod_Sn, cod_Mc, cod_Id2, cod_El2, cod_Ed2, cod_Fb2, cod_Tv2, cod_As2, cod_Ca2, cod_Sp2, cod_Sn2, cod_Mc2, Original_idxCond, Original_cod_cond, Original_nome, Original_indirizzo, Original_cap, Original_citta, Original_cod_fisc, Original_idxAmm, Original_cod_Id, Original_cod_El, Original_cod_Ed, Original_cod_Fb, Original_cod_Tv, Original_cod_As, Original_cod_Ca, Original_cod_Sp, Original_cod_Sn, Original_cod_Mc, Original_cod_Id2, Original_cod_El2, Original_cod_Ed2, Original_cod_Fb2, Original_cod_Tv2, Original_cod_As2, Original_cod_Ca2, Original_cod_Sp2, Original_cod_Sn2, Original_cod_Mc2, Original_idxCond); + bool Original_Attivo) { + return this.Update(cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo, Original_idxCond, Original_cod_cond, Original_nome, Original_indirizzo, Original_cap, Original_citta, Original_cod_fisc, Original_idxAmm, Original_Attivo, Original_idxCond); } } @@ -7949,8 +6317,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea private UpdateOrderOption _updateOrder; - private AnagAmministratoriTableAdapter _anagAmministratoriTableAdapter; - private AnagCondominiTableAdapter _anagCondominiTableAdapter; private AnagFornitoriTableAdapter _anagFornitoriTableAdapter; @@ -7972,20 +6338,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public AnagAmministratoriTableAdapter AnagAmministratoriTableAdapter { - get { - return this._anagAmministratoriTableAdapter; - } - set { - this._anagAmministratoriTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + @@ -8047,10 +6399,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea if ((this._connection != null)) { return this._connection; } - if (((this._anagAmministratoriTableAdapter != null) - && (this._anagAmministratoriTableAdapter.Connection != null))) { - return this._anagAmministratoriTableAdapter.Connection; - } if (((this._anagCondominiTableAdapter != null) && (this._anagCondominiTableAdapter.Connection != null))) { return this._anagCondominiTableAdapter.Connection; @@ -8076,9 +6424,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea public int TableAdapterInstanceCount { get { int count = 0; - if ((this._anagAmministratoriTableAdapter != null)) { - count = (count + 1); - } if ((this._anagCondominiTableAdapter != null)) { count = (count + 1); } @@ -8099,15 +6444,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private int UpdateUpdatedRows(DS_app dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._anagAmministratoriTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagAmministratori.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._anagAmministratoriTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._assF2ATableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.AssF2A.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -8145,14 +6481,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private int UpdateInsertedRows(DS_app dataSet, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._anagAmministratoriTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagAmministratori.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._anagAmministratoriTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._assF2ATableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.AssF2A.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -8211,14 +6539,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea allChangedRows.AddRange(deletedRows); } } - if ((this._anagAmministratoriTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagAmministratori.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._anagAmministratoriTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } return result; } @@ -8258,11 +6578,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea if ((dataSet.HasChanges() == false)) { return 0; } - if (((this._anagAmministratoriTableAdapter != null) - && (this.MatchTableAdapterConnection(this._anagAmministratoriTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + - "a stessa stringa di connessione."); - } if (((this._anagCondominiTableAdapter != null) && (this.MatchTableAdapterConnection(this._anagCondominiTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + @@ -8311,15 +6626,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea try { // ---- Prepare for update ----------- // - if ((this._anagAmministratoriTableAdapter != null)) { - revertConnections.Add(this._anagAmministratoriTableAdapter, this._anagAmministratoriTableAdapter.Connection); - this._anagAmministratoriTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._anagAmministratoriTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._anagAmministratoriTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._anagAmministratoriTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._anagAmministratoriTableAdapter.Adapter); - } - } if ((this._anagCondominiTableAdapter != null)) { revertConnections.Add(this._anagCondominiTableAdapter, this._anagCondominiTableAdapter.Connection); this._anagCondominiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -8405,10 +6711,6 @@ SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea if (workConnOpened) { workConnection.Close(); } - if ((this._anagAmministratoriTableAdapter != null)) { - this._anagAmministratoriTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagAmministratoriTableAdapter])); - this._anagAmministratoriTableAdapter.Transaction = null; - } if ((this._anagCondominiTableAdapter != null)) { this._anagCondominiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagCondominiTableAdapter])); this._anagCondominiTableAdapter.Transaction = null; diff --git a/Data/DS_app.xsd b/Data/DS_app.xsd index 98a53fb..8e509ff 100644 --- a/Data/DS_app.xsd +++ b/Data/DS_app.xsd @@ -9,53 +9,26 @@ - - - - DELETE FROM [dbo].[AnagAmministratori] WHERE (([idxAmm] = @Original_idxAmm) AND ([RagSociale] = @Original_RagSociale) AND ([email] = @Original_email)) - - - - - - - - - - INSERT INTO [dbo].[AnagAmministratori] ([RagSociale], [email]) VALUES (@RagSociale, @email); -SELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idxAmm = SCOPE_IDENTITY()) - - - - - - + - - SELECT idxAmm, RagSociale, email FROM dbo.AnagAmministratori + + SELECT * +FROM dbo.v_AnagAmministratori - - - UPDATE [dbo].[AnagAmministratori] SET [RagSociale] = @RagSociale, [email] = @email WHERE (([idxAmm] = @Original_idxAmm) AND ([RagSociale] = @Original_RagSociale) AND ([email] = @Original_email)); -SELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idxAmm = @idxAmm) - - - - - - - - - - + + + + + + @@ -64,7 +37,7 @@ SELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idxAmm = @idxAmm - DELETE FROM [dbo].[AnagCondomini] WHERE (([idxCond] = @Original_idxCond) AND ([cod_cond] = @Original_cod_cond) AND ([nome] = @Original_nome) AND ([indirizzo] = @Original_indirizzo) AND ([cap] = @Original_cap) AND ([citta] = @Original_citta) AND ([cod_fisc] = @Original_cod_fisc) AND ([idxAmm] = @Original_idxAmm) AND ((@IsNull_cod_Id = 1 AND [cod_Id] IS NULL) OR ([cod_Id] = @Original_cod_Id)) AND ((@IsNull_cod_El = 1 AND [cod_El] IS NULL) OR ([cod_El] = @Original_cod_El)) AND ((@IsNull_cod_Ed = 1 AND [cod_Ed] IS NULL) OR ([cod_Ed] = @Original_cod_Ed)) AND ((@IsNull_cod_Fb = 1 AND [cod_Fb] IS NULL) OR ([cod_Fb] = @Original_cod_Fb)) AND ((@IsNull_cod_Tv = 1 AND [cod_Tv] IS NULL) OR ([cod_Tv] = @Original_cod_Tv)) AND ((@IsNull_cod_As = 1 AND [cod_As] IS NULL) OR ([cod_As] = @Original_cod_As)) AND ((@IsNull_cod_Ca = 1 AND [cod_Ca] IS NULL) OR ([cod_Ca] = @Original_cod_Ca)) AND ((@IsNull_cod_Sp = 1 AND [cod_Sp] IS NULL) OR ([cod_Sp] = @Original_cod_Sp)) AND ((@IsNull_cod_Sn = 1 AND [cod_Sn] IS NULL) OR ([cod_Sn] = @Original_cod_Sn)) AND ((@IsNull_cod_Mc = 1 AND [cod_Mc] IS NULL) OR ([cod_Mc] = @Original_cod_Mc)) AND ((@IsNull_cod_Id2 = 1 AND [cod_Id2] IS NULL) OR ([cod_Id2] = @Original_cod_Id2)) AND ((@IsNull_cod_El2 = 1 AND [cod_El2] IS NULL) OR ([cod_El2] = @Original_cod_El2)) AND ((@IsNull_cod_Ed2 = 1 AND [cod_Ed2] IS NULL) OR ([cod_Ed2] = @Original_cod_Ed2)) AND ((@IsNull_cod_Fb2 = 1 AND [cod_Fb2] IS NULL) OR ([cod_Fb2] = @Original_cod_Fb2)) AND ((@IsNull_cod_Tv2 = 1 AND [cod_Tv2] IS NULL) OR ([cod_Tv2] = @Original_cod_Tv2)) AND ((@IsNull_cod_As2 = 1 AND [cod_As2] IS NULL) OR ([cod_As2] = @Original_cod_As2)) AND ((@IsNull_cod_Ca2 = 1 AND [cod_Ca2] IS NULL) OR ([cod_Ca2] = @Original_cod_Ca2)) AND ((@IsNull_cod_Sp2 = 1 AND [cod_Sp2] IS NULL) OR ([cod_Sp2] = @Original_cod_Sp2)) AND ((@IsNull_cod_Sn2 = 1 AND [cod_Sn2] IS NULL) OR ([cod_Sn2] = @Original_cod_Sn2)) AND ((@IsNull_cod_Mc2 = 1 AND [cod_Mc2] IS NULL) OR ([cod_Mc2] = @Original_cod_Mc2))) + DELETE FROM [dbo].[AnagCondomini] WHERE (([idxCond] = @Original_idxCond) AND ([cod_cond] = @Original_cod_cond) AND ([nome] = @Original_nome) AND ([indirizzo] = @Original_indirizzo) AND ([cap] = @Original_cap) AND ([citta] = @Original_citta) AND ([cod_fisc] = @Original_cod_fisc) AND ([idxAmm] = @Original_idxAmm) AND ([Attivo] = @Original_Attivo)) @@ -74,53 +47,14 @@ SELECT idxAmm, RagSociale, email FROM AnagAmministratori WHERE (idxAmm = @idxAmm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - INSERT INTO [dbo].[AnagCondomini] ([cod_cond], [nome], [indirizzo], [cap], [citta], [cod_fisc], [idxAmm], [cod_Id], [cod_El], [cod_Ed], [cod_Fb], [cod_Tv], [cod_As], [cod_Ca], [cod_Sp], [cod_Sn], [cod_Mc], [cod_Id2], [cod_El2], [cod_Ed2], [cod_Fb2], [cod_Tv2], [cod_As2], [cod_Ca2], [cod_Sp2], [cod_Sn2], [cod_Mc2]) VALUES (@cod_cond, @nome, @indirizzo, @cap, @citta, @cod_fisc, @idxAmm, @cod_Id, @cod_El, @cod_Ed, @cod_Fb, @cod_Tv, @cod_As, @cod_Ca, @cod_Sp, @cod_Sn, @cod_Mc, @cod_Id2, @cod_El2, @cod_Ed2, @cod_Fb2, @cod_Tv2, @cod_As2, @cod_Ca2, @cod_Sp2, @cod_Sn2, @cod_Mc2); -SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, cod_El, cod_Ed, cod_Fb, cod_Tv, cod_As, cod_Ca, cod_Sp, cod_Sn, cod_Mc, cod_Id2, cod_El2, cod_Ed2, cod_Fb2, cod_Tv2, cod_As2, cod_Ca2, cod_Sp2, cod_Sn2, cod_Mc2 FROM AnagCondomini WHERE (idxCond = SCOPE_IDENTITY()) + INSERT INTO [dbo].[AnagCondomini] ([cod_cond], [nome], [indirizzo], [cap], [citta], [cod_fisc], [idxAmm], [Attivo]) VALUES (@cod_cond, @nome, @indirizzo, @cap, @citta, @cod_fisc, @idxAmm, @Attivo); +SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo FROM AnagCondomini WHERE (idxCond = SCOPE_IDENTITY()) @@ -129,39 +63,21 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, - - - - - - - - - - - - - - - - - - - - + - - SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, cod_El, cod_Ed, cod_Fb, cod_Tv, cod_As, cod_Ca, cod_Sp, cod_Sn, cod_Mc, cod_Id2, cod_El2, cod_Ed2, cod_Fb2, cod_Tv2, cod_As2, cod_Ca2, cod_Sp2, cod_Sn2, cod_Mc2 FROM dbo.AnagCondomini + + SELECT * +FROM dbo.AnagCondomini - UPDATE [dbo].[AnagCondomini] SET [cod_cond] = @cod_cond, [nome] = @nome, [indirizzo] = @indirizzo, [cap] = @cap, [citta] = @citta, [cod_fisc] = @cod_fisc, [idxAmm] = @idxAmm, [cod_Id] = @cod_Id, [cod_El] = @cod_El, [cod_Ed] = @cod_Ed, [cod_Fb] = @cod_Fb, [cod_Tv] = @cod_Tv, [cod_As] = @cod_As, [cod_Ca] = @cod_Ca, [cod_Sp] = @cod_Sp, [cod_Sn] = @cod_Sn, [cod_Mc] = @cod_Mc, [cod_Id2] = @cod_Id2, [cod_El2] = @cod_El2, [cod_Ed2] = @cod_Ed2, [cod_Fb2] = @cod_Fb2, [cod_Tv2] = @cod_Tv2, [cod_As2] = @cod_As2, [cod_Ca2] = @cod_Ca2, [cod_Sp2] = @cod_Sp2, [cod_Sn2] = @cod_Sn2, [cod_Mc2] = @cod_Mc2 WHERE (([idxCond] = @Original_idxCond) AND ([cod_cond] = @Original_cod_cond) AND ([nome] = @Original_nome) AND ([indirizzo] = @Original_indirizzo) AND ([cap] = @Original_cap) AND ([citta] = @Original_citta) AND ([cod_fisc] = @Original_cod_fisc) AND ([idxAmm] = @Original_idxAmm) AND ((@IsNull_cod_Id = 1 AND [cod_Id] IS NULL) OR ([cod_Id] = @Original_cod_Id)) AND ((@IsNull_cod_El = 1 AND [cod_El] IS NULL) OR ([cod_El] = @Original_cod_El)) AND ((@IsNull_cod_Ed = 1 AND [cod_Ed] IS NULL) OR ([cod_Ed] = @Original_cod_Ed)) AND ((@IsNull_cod_Fb = 1 AND [cod_Fb] IS NULL) OR ([cod_Fb] = @Original_cod_Fb)) AND ((@IsNull_cod_Tv = 1 AND [cod_Tv] IS NULL) OR ([cod_Tv] = @Original_cod_Tv)) AND ((@IsNull_cod_As = 1 AND [cod_As] IS NULL) OR ([cod_As] = @Original_cod_As)) AND ((@IsNull_cod_Ca = 1 AND [cod_Ca] IS NULL) OR ([cod_Ca] = @Original_cod_Ca)) AND ((@IsNull_cod_Sp = 1 AND [cod_Sp] IS NULL) OR ([cod_Sp] = @Original_cod_Sp)) AND ((@IsNull_cod_Sn = 1 AND [cod_Sn] IS NULL) OR ([cod_Sn] = @Original_cod_Sn)) AND ((@IsNull_cod_Mc = 1 AND [cod_Mc] IS NULL) OR ([cod_Mc] = @Original_cod_Mc)) AND ((@IsNull_cod_Id2 = 1 AND [cod_Id2] IS NULL) OR ([cod_Id2] = @Original_cod_Id2)) AND ((@IsNull_cod_El2 = 1 AND [cod_El2] IS NULL) OR ([cod_El2] = @Original_cod_El2)) AND ((@IsNull_cod_Ed2 = 1 AND [cod_Ed2] IS NULL) OR ([cod_Ed2] = @Original_cod_Ed2)) AND ((@IsNull_cod_Fb2 = 1 AND [cod_Fb2] IS NULL) OR ([cod_Fb2] = @Original_cod_Fb2)) AND ((@IsNull_cod_Tv2 = 1 AND [cod_Tv2] IS NULL) OR ([cod_Tv2] = @Original_cod_Tv2)) AND ((@IsNull_cod_As2 = 1 AND [cod_As2] IS NULL) OR ([cod_As2] = @Original_cod_As2)) AND ((@IsNull_cod_Ca2 = 1 AND [cod_Ca2] IS NULL) OR ([cod_Ca2] = @Original_cod_Ca2)) AND ((@IsNull_cod_Sp2 = 1 AND [cod_Sp2] IS NULL) OR ([cod_Sp2] = @Original_cod_Sp2)) AND ((@IsNull_cod_Sn2 = 1 AND [cod_Sn2] IS NULL) OR ([cod_Sn2] = @Original_cod_Sn2)) AND ((@IsNull_cod_Mc2 = 1 AND [cod_Mc2] IS NULL) OR ([cod_Mc2] = @Original_cod_Mc2))); -SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, cod_El, cod_Ed, cod_Fb, cod_Tv, cod_As, cod_Ca, cod_Sp, cod_Sn, cod_Mc, cod_Id2, cod_El2, cod_Ed2, cod_Fb2, cod_Tv2, cod_As2, cod_Ca2, cod_Sp2, cod_Sn2, cod_Mc2 FROM AnagCondomini WHERE (idxCond = @idxCond) + UPDATE [dbo].[AnagCondomini] SET [cod_cond] = @cod_cond, [nome] = @nome, [indirizzo] = @indirizzo, [cap] = @cap, [citta] = @citta, [cod_fisc] = @cod_fisc, [idxAmm] = @idxAmm, [Attivo] = @Attivo WHERE (([idxCond] = @Original_idxCond) AND ([cod_cond] = @Original_cod_cond) AND ([nome] = @Original_nome) AND ([indirizzo] = @Original_indirizzo) AND ([cap] = @Original_cap) AND ([citta] = @Original_citta) AND ([cod_fisc] = @Original_cod_fisc) AND ([idxAmm] = @Original_idxAmm) AND ([Attivo] = @Original_Attivo)); +SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo FROM AnagCondomini WHERE (idxCond = @idxCond) @@ -170,26 +86,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, - - - - - - - - - - - - - - - - - - - - + @@ -198,47 +95,8 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -253,26 +111,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id, - - - - - - - - - - - - - - - - - - - - + @@ -607,6 +446,12 @@ FROM v_AssF2C + + + + + + @@ -657,26 +502,7 @@ FROM v_AssF2C - - - - - - - - - - - - - - - - - - - - + diff --git a/Data/DS_app.xss b/Data/DS_app.xss index c682030..8bf5499 100644 --- a/Data/DS_app.xss +++ b/Data/DS_app.xss @@ -6,8 +6,8 @@ --> - - + + diff --git a/PUB/Web.config b/PUB/Web.config index 7475d7a..2a7a00e 100644 --- a/PUB/Web.config +++ b/PUB/Web.config @@ -12,9 +12,8 @@ - + + diff --git a/PUB/WebUserContols/mod_anagAmmin.ascx b/PUB/WebUserContols/mod_anagAmmin.ascx index 574556f..0fd68e8 100644 --- a/PUB/WebUserContols/mod_anagAmmin.ascx +++ b/PUB/WebUserContols/mod_anagAmmin.ascx @@ -37,8 +37,62 @@ - - + + +
+ +
+
+ +
+
+ +
+ +
+
+ +
+
+
+ + + / + + +
+ + ( attivi) +
+
+
+ + + + + + + + + + + +
+ +
+
+ +
+
+ +
+ +
+
+ +
+
+
@@ -74,7 +128,7 @@