From b7257ab43b5fcaabad83e26aa5b741aafd5e3e92 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 14 Jun 2024 18:09:54 +0200 Subject: [PATCH] Aggiunta gestione campo responsabile x gestione email notifica richieste permessi --- GPW_Admin/Web.config | 401 ++++--- .../WebUserControls/mod_adminDipendenti.ascx | 28 +- .../mod_adminDipendenti.ascx.designer.cs | 9 + GPW_Data/DS_Applicazione.Designer.cs | 1062 +++++++---------- GPW_Data/DS_Applicazione.xsd | 174 ++- GPW_Data/DS_Applicazione.xss | 114 +- GPW_Data/DS_Utility.Designer.cs | 25 +- GPW_Data/DS_Utility.xsd | 17 +- GPW_Data/DS_Utility.xss | 4 +- GPW_Data/Properties/Settings.Designer.cs | 27 +- GPW_Data/Properties/Settings.settings | 4 +- GPW_data/App.config | 2 +- 12 files changed, 864 insertions(+), 1003 deletions(-) diff --git a/GPW_Admin/Web.config b/GPW_Admin/Web.config index aa72fd0..faaae22 100644 --- a/GPW_Admin/Web.config +++ b/GPW_Admin/Web.config @@ -1,10 +1,10 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx b/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx index 2f1253a..1617446 100644 --- a/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx +++ b/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx @@ -227,12 +227,10 @@ - + - + @@ -271,6 +269,17 @@ + + + + + + + + + + + @@ -285,7 +294,7 @@ - + @@ -309,6 +318,7 @@ + @@ -331,9 +341,15 @@ + + + + + + - \ No newline at end of file + diff --git a/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx.designer.cs b/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx.designer.cs index 666cf79..ff85aad 100644 --- a/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx.designer.cs +++ b/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx.designer.cs @@ -95,6 +95,15 @@ namespace GPW_Admin.WebUserControls /// protected global::System.Web.UI.WebControls.ObjectDataSource ods; + /// + /// odsDip control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsDip; + /// /// lblNumRec control. /// diff --git a/GPW_Data/DS_Applicazione.Designer.cs b/GPW_Data/DS_Applicazione.Designer.cs index 12648d0..03af03a 100644 --- a/GPW_Data/DS_Applicazione.Designer.cs +++ b/GPW_Data/DS_Applicazione.Designer.cs @@ -92,14 +92,8 @@ namespace GPW_data { private global::System.Data.DataRelation relationFK_RegAttivita_Dipendenti; - private global::System.Data.DataRelation relationFK_Dipendenti_AnagOrari; - private global::System.Data.DataRelation relationFK_RilievoTemp_Dipendenti; - private global::System.Data.DataRelation relationFK_Dipendenti_AnagGruppi; - - private global::System.Data.DataRelation relationFK_Dipendenti_AnagGruppi1; - private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -910,10 +904,7 @@ namespace GPW_data { this.relationFK_AnagFasi_AnagProgetti = this.Relations["FK_AnagFasi_AnagProgetti"]; this.relationFK_RegAttivita_AnagFasi = this.Relations["FK_RegAttivita_AnagFasi"]; this.relationFK_RegAttivita_Dipendenti = this.Relations["FK_RegAttivita_Dipendenti"]; - this.relationFK_Dipendenti_AnagOrari = this.Relations["FK_Dipendenti_AnagOrari"]; this.relationFK_RilievoTemp_Dipendenti = this.Relations["FK_RilievoTemp_Dipendenti"]; - this.relationFK_Dipendenti_AnagGruppi = this.Relations["FK_Dipendenti_AnagGruppi"]; - this.relationFK_Dipendenti_AnagGruppi1 = this.Relations["FK_Dipendenti_AnagGruppi1"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1000,22 +991,10 @@ namespace GPW_data { this.tableDipendenti.idxDipendenteColumn}, new global::System.Data.DataColumn[] { this.tableRegAttivita.idxDipendenteColumn}, false); this.Relations.Add(this.relationFK_RegAttivita_Dipendenti); - this.relationFK_Dipendenti_AnagOrari = new global::System.Data.DataRelation("FK_Dipendenti_AnagOrari", new global::System.Data.DataColumn[] { - this.tableAnagOrari.codOrarioColumn}, new global::System.Data.DataColumn[] { - this.tableDipendenti.codOrarioColumn}, false); - this.Relations.Add(this.relationFK_Dipendenti_AnagOrari); this.relationFK_RilievoTemp_Dipendenti = new global::System.Data.DataRelation("FK_RilievoTemp_Dipendenti", new global::System.Data.DataColumn[] { this.tableDipendenti.idxDipendenteColumn}, new global::System.Data.DataColumn[] { this.tableRilievoTemp.idxDipendenteColumn}, false); this.Relations.Add(this.relationFK_RilievoTemp_Dipendenti); - this.relationFK_Dipendenti_AnagGruppi = new global::System.Data.DataRelation("FK_Dipendenti_AnagGruppi", new global::System.Data.DataColumn[] { - this.tableAnagGruppi.gruppoColumn}, new global::System.Data.DataColumn[] { - this.tableDipendenti.gruppoColumn}, false); - this.Relations.Add(this.relationFK_Dipendenti_AnagGruppi); - this.relationFK_Dipendenti_AnagGruppi1 = new global::System.Data.DataRelation("FK_Dipendenti_AnagGruppi1", new global::System.Data.DataColumn[] { - this.tableDipendenti2Gruppi.gruppoColumn}, new global::System.Data.DataColumn[] { - this.tableDipendenti.gruppoColumn}, false); - this.Relations.Add(this.relationFK_Dipendenti_AnagGruppi1); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2855,6 +2834,10 @@ namespace GPW_data { private global::System.Data.DataColumn columnattivo; + private global::System.Data.DataColumn columnsigla; + + private global::System.Data.DataColumn columnidxResp; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public DipendentiDataTable() { @@ -3096,6 +3079,22 @@ namespace GPW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn siglaColumn { + get { + return this.columnsigla; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn idxRespColumn { + get { + return this.columnidxResp; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -3143,7 +3142,7 @@ namespace GPW_data { string provNascita, string nazNascita, string codHw, - AnagOrariRow parentAnagOrariRowByFK_Dipendenti_AnagOrari, + string codOrario, bool mailLastOp, bool mailDay, bool mailWeek, @@ -3155,10 +3154,12 @@ namespace GPW_data { string dominio, string utente, string codDipendenteExt, - AnagGruppiRow parentAnagGruppiRowByFK_Dipendenti_AnagGruppi, + string gruppo, System.DateTime dataAssunzione, System.DateTime dataCessazione, - bool attivo) { + bool attivo, + string sigla, + int idxResp) { DipendentiRow rowDipendentiRow = ((DipendentiRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -3171,7 +3172,7 @@ namespace GPW_data { provNascita, nazNascita, codHw, - null, + codOrario, mailLastOp, mailDay, mailWeek, @@ -3183,16 +3184,12 @@ namespace GPW_data { dominio, utente, codDipendenteExt, - null, + gruppo, dataAssunzione, dataCessazione, - attivo}; - if ((parentAnagOrariRowByFK_Dipendenti_AnagOrari != null)) { - columnValuesArray[10] = parentAnagOrariRowByFK_Dipendenti_AnagOrari[0]; - } - if ((parentAnagGruppiRowByFK_Dipendenti_AnagGruppi != null)) { - columnValuesArray[22] = parentAnagGruppiRowByFK_Dipendenti_AnagGruppi[0]; - } + attivo, + sigla, + idxResp}; rowDipendentiRow.ItemArray = columnValuesArray; this.Rows.Add(rowDipendentiRow); return rowDipendentiRow; @@ -3248,6 +3245,8 @@ namespace GPW_data { this.columndataAssunzione = base.Columns["dataAssunzione"]; this.columndataCessazione = base.Columns["dataCessazione"]; this.columnattivo = base.Columns["attivo"]; + this.columnsigla = base.Columns["sigla"]; + this.columnidxResp = base.Columns["idxResp"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3305,6 +3304,10 @@ namespace GPW_data { base.Columns.Add(this.columndataCessazione); this.columnattivo = new global::System.Data.DataColumn("attivo", typeof(bool), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnattivo); + this.columnsigla = new global::System.Data.DataColumn("sigla", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsigla); + this.columnidxResp = new global::System.Data.DataColumn("idxResp", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxResp); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidxDipendente}, true)); this.columnidxDipendente.AutoIncrement = true; @@ -3314,23 +3317,32 @@ namespace GPW_data { this.columnidxDipendente.ReadOnly = true; this.columnidxDipendente.Unique = true; this.columnmatricola.MaxLength = 50; + this.columnCF.AllowDBNull = false; this.columnCF.MaxLength = 16; this.columnCognome.MaxLength = 50; this.columnNome.MaxLength = 50; this.columnluogoNascita.MaxLength = 50; this.columnprovNascita.MaxLength = 50; this.columnnazNascita.MaxLength = 50; + this.columncodHw.AllowDBNull = false; this.columncodHw.MaxLength = 50; this.columncodOrario.MaxLength = 50; + this.columnemail.AllowDBNull = false; this.columnemail.MaxLength = 250; + this.columnauthKey.AllowDBNull = false; this.columnauthKey.MaxLength = 50; + this.columnWOL_MAC.AllowDBNull = false; this.columnWOL_MAC.MaxLength = 50; - this.columndominio.Caption = "DOMINIO"; + this.columndominio.AllowDBNull = false; this.columndominio.MaxLength = 50; - this.columnutente.Caption = "USER_NAME"; + this.columnutente.AllowDBNull = false; this.columnutente.MaxLength = 50; + this.columncodDipendenteExt.AllowDBNull = false; this.columncodDipendenteExt.MaxLength = 50; this.columngruppo.MaxLength = 50; + this.columnsigla.AllowDBNull = false; + this.columnsigla.MaxLength = 50; + this.columnidxResp.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -14721,12 +14733,7 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string CF { get { - try { - return ((string)(this[this.tableDipendenti.CFColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CF\' in table \'Dipendenti\' is DBNull.", e); - } + return ((string)(this[this.tableDipendenti.CFColumn])); } set { this[this.tableDipendenti.CFColumn] = value; @@ -14833,12 +14840,7 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string codHw { get { - try { - return ((string)(this[this.tableDipendenti.codHwColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codHw\' in table \'Dipendenti\' is DBNull.", e); - } + return ((string)(this[this.tableDipendenti.codHwColumn])); } set { this[this.tableDipendenti.codHwColumn] = value; @@ -14929,12 +14931,7 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string email { get { - try { - return ((string)(this[this.tableDipendenti.emailColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'email\' in table \'Dipendenti\' is DBNull.", e); - } + return ((string)(this[this.tableDipendenti.emailColumn])); } set { this[this.tableDipendenti.emailColumn] = value; @@ -14945,12 +14942,7 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string authKey { get { - try { - return ((string)(this[this.tableDipendenti.authKeyColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'authKey\' in table \'Dipendenti\' is DBNull.", e); - } + return ((string)(this[this.tableDipendenti.authKeyColumn])); } set { this[this.tableDipendenti.authKeyColumn] = value; @@ -14977,12 +14969,7 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string WOL_MAC { get { - try { - return ((string)(this[this.tableDipendenti.WOL_MACColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'WOL_MAC\' in table \'Dipendenti\' is DBNull.", e); - } + return ((string)(this[this.tableDipendenti.WOL_MACColumn])); } set { this[this.tableDipendenti.WOL_MACColumn] = value; @@ -14993,12 +14980,7 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string dominio { get { - try { - return ((string)(this[this.tableDipendenti.dominioColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'dominio\' in table \'Dipendenti\' is DBNull.", e); - } + return ((string)(this[this.tableDipendenti.dominioColumn])); } set { this[this.tableDipendenti.dominioColumn] = value; @@ -15009,12 +14991,7 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string utente { get { - try { - return ((string)(this[this.tableDipendenti.utenteColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'utente\' in table \'Dipendenti\' is DBNull.", e); - } + return ((string)(this[this.tableDipendenti.utenteColumn])); } set { this[this.tableDipendenti.utenteColumn] = value; @@ -15025,12 +15002,7 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string codDipendenteExt { get { - try { - return ((string)(this[this.tableDipendenti.codDipendenteExtColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codDipendenteExt\' in table \'Dipendenti\' is DBNull.", e); - } + return ((string)(this[this.tableDipendenti.codDipendenteExtColumn])); } set { this[this.tableDipendenti.codDipendenteExtColumn] = value; @@ -15103,34 +15075,23 @@ namespace GPW_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public AnagOrariRow AnagOrariRow { + public string sigla { get { - return ((AnagOrariRow)(this.GetParentRow(this.Table.ParentRelations["FK_Dipendenti_AnagOrari"]))); + return ((string)(this[this.tableDipendenti.siglaColumn])); } set { - this.SetParentRow(value, this.Table.ParentRelations["FK_Dipendenti_AnagOrari"]); + this[this.tableDipendenti.siglaColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public AnagGruppiRow AnagGruppiRow { + public int idxResp { get { - return ((AnagGruppiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Dipendenti_AnagGruppi"]))); + return ((int)(this[this.tableDipendenti.idxRespColumn])); } set { - this.SetParentRow(value, this.Table.ParentRelations["FK_Dipendenti_AnagGruppi"]); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public Dipendenti2GruppiRow Dipendenti2GruppiRow { - get { - return ((Dipendenti2GruppiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Dipendenti_AnagGruppi1"]))); - } - set { - this.SetParentRow(value, this.Table.ParentRelations["FK_Dipendenti_AnagGruppi1"]); + this[this.tableDipendenti.idxRespColumn] = value; } } @@ -15146,18 +15107,6 @@ namespace GPW_data { this[this.tableDipendenti.matricolaColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsCFNull() { - return this.IsNull(this.tableDipendenti.CFColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetCFNull() { - this[this.tableDipendenti.CFColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IsCognomeNull() { @@ -15230,18 +15179,6 @@ namespace GPW_data { this[this.tableDipendenti.nazNascitaColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IscodHwNull() { - return this.IsNull(this.tableDipendenti.codHwColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetcodHwNull() { - this[this.tableDipendenti.codHwColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IscodOrarioNull() { @@ -15302,30 +15239,6 @@ namespace GPW_data { this[this.tableDipendenti.mailMonthColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsemailNull() { - return this.IsNull(this.tableDipendenti.emailColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetemailNull() { - this[this.tableDipendenti.emailColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsauthKeyNull() { - return this.IsNull(this.tableDipendenti.authKeyColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetauthKeyNull() { - this[this.tableDipendenti.authKeyColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IsnumAuthNull() { @@ -15338,54 +15251,6 @@ namespace GPW_data { this[this.tableDipendenti.numAuthColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsWOL_MACNull() { - return this.IsNull(this.tableDipendenti.WOL_MACColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetWOL_MACNull() { - this[this.tableDipendenti.WOL_MACColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsdominioNull() { - return this.IsNull(this.tableDipendenti.dominioColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetdominioNull() { - this[this.tableDipendenti.dominioColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsutenteNull() { - return this.IsNull(this.tableDipendenti.utenteColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetutenteNull() { - this[this.tableDipendenti.utenteColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IscodDipendenteExtNull() { - return this.IsNull(this.tableDipendenti.codDipendenteExtColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetcodDipendenteExtNull() { - this[this.tableDipendenti.codDipendenteExtColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IsgruppoNull() { @@ -17875,17 +17740,6 @@ namespace GPW_data { public void SetoraFine_3Null() { this[this.tableAnagOrari.oraFine_3Column] = global::System.Convert.DBNull; } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public DipendentiRow[] GetDipendentiRows() { - if ((this.Table.ChildRelations["FK_Dipendenti_AnagOrari"] == null)) { - return new DipendentiRow[0]; - } - else { - return ((DipendentiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Dipendenti_AnagOrari"]))); - } - } } /// @@ -20475,17 +20329,6 @@ namespace GPW_data { public void SetexportEnabNull() { this[this.tableAnagGruppi.exportEnabColumn] = global::System.Convert.DBNull; } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public DipendentiRow[] GetDipendentiRows() { - if ((this.Table.ChildRelations["FK_Dipendenti_AnagGruppi"] == null)) { - return new DipendentiRow[0]; - } - else { - return ((DipendentiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Dipendenti_AnagGruppi"]))); - } - } } /// @@ -20523,17 +20366,6 @@ namespace GPW_data { this[this.tableDipendenti2Gruppi.idxDipendenteColumn] = value; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public DipendentiRow[] GetDipendentiRows() { - if ((this.Table.ChildRelations["FK_Dipendenti_AnagGruppi1"] == null)) { - return new DipendentiRow[0]; - } - else { - return ((DipendentiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Dipendenti_AnagGruppi1"]))); - } - } } /// @@ -25551,8 +25383,6 @@ SELECT IdxDevice, DeviceSecret, idxDipendente, DeviceName, Description, dataOraE tableMapping.ColumnMappings.Add("authKey", "authKey"); tableMapping.ColumnMappings.Add("numAuth", "numAuth"); tableMapping.ColumnMappings.Add("WOL_MAC", "WOL_MAC"); - tableMapping.ColumnMappings.Add("DOMINIO", "dominio"); - tableMapping.ColumnMappings.Add("USER_NAME", "utente"); tableMapping.ColumnMappings.Add("dominio", "dominio"); tableMapping.ColumnMappings.Add("utente", "utente"); tableMapping.ColumnMappings.Add("codDipendenteExt", "codDipendenteExt"); @@ -25560,44 +25390,41 @@ SELECT IdxDevice, DeviceSecret, idxDipendente, DeviceName, Description, dataOraE tableMapping.ColumnMappings.Add("dataAssunzione", "dataAssunzione"); tableMapping.ColumnMappings.Add("dataCessazione", "dataCessazione"); tableMapping.ColumnMappings.Add("attivo", "attivo"); + tableMapping.ColumnMappings.Add("sigla", "sigla"); + tableMapping.ColumnMappings.Add("idxResp", "idxResp"); 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 [Dipendenti] WHERE (([idxDipendente] = @Original_idxDipendente) AND (" + "(@IsNull_matricola = 1 AND [matricola] IS NULL) OR ([matricola] = @Original_matr" + - "icola)) AND ((@IsNull_CF = 1 AND [CF] IS NULL) OR ([CF] = @Original_CF)) AND ((@" + - "IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AN" + - "D ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@Is" + - "Null_dataNascita = 1 AND [dataNascita] IS NULL) OR ([dataNascita] = @Original_da" + - "taNascita)) AND ((@IsNull_luogoNascita = 1 AND [luogoNascita] IS NULL) OR ([luog" + - "oNascita] = @Original_luogoNascita)) AND ((@IsNull_provNascita = 1 AND [provNasc" + - "ita] IS NULL) OR ([provNascita] = @Original_provNascita)) AND ((@IsNull_nazNasci" + - "ta = 1 AND [nazNascita] IS NULL) OR ([nazNascita] = @Original_nazNascita)) AND (" + - "(@IsNull_codHw = 1 AND [codHw] IS NULL) OR ([codHw] = @Original_codHw)) AND ((@I" + - "sNull_codOrario = 1 AND [codOrario] IS NULL) OR ([codOrario] = @Original_codOrar" + - "io)) AND ((@IsNull_mailLastOp = 1 AND [mailLastOp] IS NULL) OR ([mailLastOp] = @" + - "Original_mailLastOp)) AND ((@IsNull_mailDay = 1 AND [mailDay] IS NULL) OR ([mail" + - "Day] = @Original_mailDay)) AND ((@IsNull_mailWeek = 1 AND [mailWeek] IS NULL) OR" + - " ([mailWeek] = @Original_mailWeek)) AND ((@IsNull_mailMonth = 1 AND [mailMonth] " + - "IS NULL) OR ([mailMonth] = @Original_mailMonth)) AND ((@IsNull_email = 1 AND [em" + - "ail] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_authKey = 1 AND [aut" + - "hKey] IS NULL) OR ([authKey] = @Original_authKey)) AND ((@IsNull_numAuth = 1 AND" + - " [numAuth] IS NULL) OR ([numAuth] = @Original_numAuth)) AND ((@IsNull_WOL_MAC = " + - "1 AND [WOL_MAC] IS NULL) OR ([WOL_MAC] = @Original_WOL_MAC)) AND ((@IsNull_domin" + - "io = 1 AND [dominio] IS NULL) OR ([dominio] = @Original_dominio)) AND ((@IsNull_" + - "utente = 1 AND [utente] IS NULL) OR ([utente] = @Original_utente)) AND ((@IsNull" + - "_codDipendenteExt = 1 AND [codDipendenteExt] IS NULL) OR ([codDipendenteExt] = @" + - "Original_codDipendenteExt)) AND ((@IsNull_gruppo = 1 AND [gruppo] IS NULL) OR ([" + - "gruppo] = @Original_gruppo)) AND ((@IsNull_dataAssunzione = 1 AND [dataAssunzion" + - "e] IS NULL) OR ([dataAssunzione] = @Original_dataAssunzione)) AND ((@IsNull_data" + - "Cessazione = 1 AND [dataCessazione] IS NULL) OR ([dataCessazione] = @Original_da" + - "taCessazione)) AND ((@IsNull_attivo = 1 AND [attivo] IS NULL) OR ([attivo] = @Or" + - "iginal_attivo)))"; + "icola)) AND ([CF] = @Original_CF) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NUL" + + "L) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL" + + ") OR ([Nome] = @Original_Nome)) AND ((@IsNull_dataNascita = 1 AND [dataNascita] " + + "IS NULL) OR ([dataNascita] = @Original_dataNascita)) AND ((@IsNull_luogoNascita " + + "= 1 AND [luogoNascita] IS NULL) OR ([luogoNascita] = @Original_luogoNascita)) AN" + + "D ((@IsNull_provNascita = 1 AND [provNascita] IS NULL) OR ([provNascita] = @Orig" + + "inal_provNascita)) AND ((@IsNull_nazNascita = 1 AND [nazNascita] IS NULL) OR ([n" + + "azNascita] = @Original_nazNascita)) AND ([codHw] = @Original_codHw) AND ((@IsNul" + + "l_codOrario = 1 AND [codOrario] IS NULL) OR ([codOrario] = @Original_codOrario))" + + " AND ((@IsNull_mailLastOp = 1 AND [mailLastOp] IS NULL) OR ([mailLastOp] = @Orig" + + "inal_mailLastOp)) AND ((@IsNull_mailDay = 1 AND [mailDay] IS NULL) OR ([mailDay]" + + " = @Original_mailDay)) AND ((@IsNull_mailWeek = 1 AND [mailWeek] IS NULL) OR ([m" + + "ailWeek] = @Original_mailWeek)) AND ((@IsNull_mailMonth = 1 AND [mailMonth] IS N" + + "ULL) OR ([mailMonth] = @Original_mailMonth)) AND ([email] = @Original_email) AND" + + " ([authKey] = @Original_authKey) AND ((@IsNull_numAuth = 1 AND [numAuth] IS NULL" + + ") OR ([numAuth] = @Original_numAuth)) AND ([WOL_MAC] = @Original_WOL_MAC) AND ([" + + "dominio] = @Original_dominio) AND ([utente] = @Original_utente) AND ([codDipende" + + "nteExt] = @Original_codDipendenteExt) AND ((@IsNull_gruppo = 1 AND [gruppo] IS N" + + "ULL) OR ([gruppo] = @Original_gruppo)) AND ((@IsNull_dataAssunzione = 1 AND [dat" + + "aAssunzione] IS NULL) OR ([dataAssunzione] = @Original_dataAssunzione)) AND ((@I" + + "sNull_dataCessazione = 1 AND [dataCessazione] IS NULL) OR ([dataCessazione] = @O" + + "riginal_dataCessazione)) AND ((@IsNull_attivo = 1 AND [attivo] IS NULL) OR ([att" + + "ivo] = @Original_attivo)) AND ([sigla] = @Original_sigla) AND ([idxResp] = @Orig" + + "inal_idxResp))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_matricola", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "matricola", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "matricola", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CF", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CF", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CF", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cognome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -25611,7 +25438,6 @@ SELECT IdxDevice, DeviceSecret, idxDipendente, DeviceName, Description, dataOraE this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_provNascita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "provNascita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nazNascita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nazNascita", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nazNascita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nazNascita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_codHw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codHw", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codHw", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codHw", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_codOrario", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codOrario", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codOrario", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codOrario", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -25623,19 +25449,13 @@ SELECT IdxDevice, DeviceSecret, idxDipendente, DeviceName, Description, dataOraE this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_mailWeek", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "mailWeek", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_mailMonth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "mailMonth", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_mailMonth", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "mailMonth", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, 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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_authKey", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_authKey", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_numAuth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "numAuth", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_numAuth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "numAuth", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_WOL_MAC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WOL_MAC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WOL_MAC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WOL_MAC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dominio", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dominio", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dominio", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dominio", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_utente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "utente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_utente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "utente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_codDipendenteExt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codDipendenteExt", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codDipendenteExt", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codDipendenteExt", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_gruppo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gruppo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -25645,10 +25465,12 @@ SELECT IdxDevice, DeviceSecret, idxDipendente, DeviceName, Description, dataOraE this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dataCessazione", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataCessazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_attivo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "attivo", global::System.Data.DataRowVersion.Original, true, 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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sigla", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sigla", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxResp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxResp", 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 [Dipendenti] ([matricola], [CF], [Cognome], [Nome], [dataNascita], [luogoNascita], [provNascita], [nazNascita], [codHw], [codOrario], [mailLastOp], [mailDay], [mailWeek], [mailMonth], [email], [authKey], [numAuth], [WOL_MAC], [dominio], [utente], [codDipendenteExt], [gruppo], [dataAssunzione], [dataCessazione], [attivo]) VALUES (@matricola, @CF, @Cognome, @Nome, @dataNascita, @luogoNascita, @provNascita, @nazNascita, @codHw, @codOrario, @mailLastOp, @mailDay, @mailWeek, @mailMonth, @email, @authKey, @numAuth, @WOL_MAC, @dominio, @utente, @codDipendenteExt, @gruppo, @dataAssunzione, @dataCessazione, @attivo); -SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo FROM Dipendenti WHERE (idxDipendente = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [Dipendenti] ([matricola], [CF], [Cognome], [Nome], [dataNascita], [luogoNascita], [provNascita], [nazNascita], [codHw], [codOrario], [mailLastOp], [mailDay], [mailWeek], [mailMonth], [email], [authKey], [numAuth], [WOL_MAC], [dominio], [utente], [codDipendenteExt], [gruppo], [dataAssunzione], [dataCessazione], [attivo], [sigla], [idxResp]) VALUES (@matricola, @CF, @Cognome, @Nome, @dataNascita, @luogoNascita, @provNascita, @nazNascita, @codHw, @codOrario, @mailLastOp, @mailDay, @mailWeek, @mailMonth, @email, @authKey, @numAuth, @WOL_MAC, @dominio, @utente, @codDipendenteExt, @gruppo, @dataAssunzione, @dataCessazione, @attivo, @sigla, @idxResp); +SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, sigla, idxResp FROM Dipendenti WHERE (idxDipendente = SCOPE_IDENTITY())"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "matricola", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CF", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -25675,6 +25497,8 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataAssunzione", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataAssunzione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataCessazione", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataCessazione", 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.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sigla", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sigla", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxResp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxResp", 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 [Dipendenti] SET [matricola] = @matricola, [CF] = @CF, [Cognome] = @Cognom" + @@ -25684,41 +25508,37 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p "ek] = @mailWeek, [mailMonth] = @mailMonth, [email] = @email, [authKey] = @authKe" + "y, [numAuth] = @numAuth, [WOL_MAC] = @WOL_MAC, [dominio] = @dominio, [utente] = " + "@utente, [codDipendenteExt] = @codDipendenteExt, [gruppo] = @gruppo, [dataAssunz" + - "ione] = @dataAssunzione, [dataCessazione] = @dataCessazione, [attivo] = @attivo " + - "WHERE (([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_matricola = 1 A" + - "ND [matricola] IS NULL) OR ([matricola] = @Original_matricola)) AND ((@IsNull_CF" + - " = 1 AND [CF] IS NULL) OR ([CF] = @Original_CF)) AND ((@IsNull_Cognome = 1 AND [" + - "Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND" + - " [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_dataNascita = 1 AND" + - " [dataNascita] IS NULL) OR ([dataNascita] = @Original_dataNascita)) AND ((@IsNul" + - "l_luogoNascita = 1 AND [luogoNascita] IS NULL) OR ([luogoNascita] = @Original_lu" + - "ogoNascita)) AND ((@IsNull_provNascita = 1 AND [provNascita] IS NULL) OR ([provN" + - "ascita] = @Original_provNascita)) AND ((@IsNull_nazNascita = 1 AND [nazNascita] " + - "IS NULL) OR ([nazNascita] = @Original_nazNascita)) AND ((@IsNull_codHw = 1 AND [" + - "codHw] IS NULL) OR ([codHw] = @Original_codHw)) AND ((@IsNull_codOrario = 1 AND " + - "[codOrario] IS NULL) OR ([codOrario] = @Original_codOrario)) AND ((@IsNull_mailL" + - "astOp = 1 AND [mailLastOp] IS NULL) OR ([mailLastOp] = @Original_mailLastOp)) AN" + - "D ((@IsNull_mailDay = 1 AND [mailDay] IS NULL) OR ([mailDay] = @Original_mailDay" + - ")) AND ((@IsNull_mailWeek = 1 AND [mailWeek] IS NULL) OR ([mailWeek] = @Original" + - "_mailWeek)) AND ((@IsNull_mailMonth = 1 AND [mailMonth] IS NULL) OR ([mailMonth]" + - " = @Original_mailMonth)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email" + - "] = @Original_email)) AND ((@IsNull_authKey = 1 AND [authKey] IS NULL) OR ([auth" + - "Key] = @Original_authKey)) AND ((@IsNull_numAuth = 1 AND [numAuth] IS NULL) OR (" + - "[numAuth] = @Original_numAuth)) AND ((@IsNull_WOL_MAC = 1 AND [WOL_MAC] IS NULL)" + - " OR ([WOL_MAC] = @Original_WOL_MAC)) AND ((@IsNull_dominio = 1 AND [dominio] IS " + - "NULL) OR ([dominio] = @Original_dominio)) AND ((@IsNull_utente = 1 AND [utente] " + - "IS NULL) OR ([utente] = @Original_utente)) AND ((@IsNull_codDipendenteExt = 1 AN" + - "D [codDipendenteExt] IS NULL) OR ([codDipendenteExt] = @Original_codDipendenteEx" + - "t)) AND ((@IsNull_gruppo = 1 AND [gruppo] IS NULL) OR ([gruppo] = @Original_grup" + - "po)) AND ((@IsNull_dataAssunzione = 1 AND [dataAssunzione] IS NULL) OR ([dataAss" + - "unzione] = @Original_dataAssunzione)) AND ((@IsNull_dataCessazione = 1 AND [data" + - "Cessazione] IS NULL) OR ([dataCessazione] = @Original_dataCessazione)) AND ((@Is" + - "Null_attivo = 1 AND [attivo] IS NULL) OR ([attivo] = @Original_attivo)));\r\nSELEC" + - "T idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNa" + - "scita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, e" + - "mail, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, data" + - "Assunzione, dataCessazione, attivo FROM Dipendenti WHERE (idxDipendente = @idxDi" + - "pendente)"; + "ione] = @dataAssunzione, [dataCessazione] = @dataCessazione, [attivo] = @attivo," + + " [sigla] = @sigla, [idxResp] = @idxResp WHERE (([idxDipendente] = @Original_idxD" + + "ipendente) AND ((@IsNull_matricola = 1 AND [matricola] IS NULL) OR ([matricola] " + + "= @Original_matricola)) AND ([CF] = @Original_CF) AND ((@IsNull_Cognome = 1 AND " + + "[Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AN" + + "D [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_dataNascita = 1 AN" + + "D [dataNascita] IS NULL) OR ([dataNascita] = @Original_dataNascita)) AND ((@IsNu" + + "ll_luogoNascita = 1 AND [luogoNascita] IS NULL) OR ([luogoNascita] = @Original_l" + + "uogoNascita)) AND ((@IsNull_provNascita = 1 AND [provNascita] IS NULL) OR ([prov" + + "Nascita] = @Original_provNascita)) AND ((@IsNull_nazNascita = 1 AND [nazNascita]" + + " IS NULL) OR ([nazNascita] = @Original_nazNascita)) AND ([codHw] = @Original_cod" + + "Hw) AND ((@IsNull_codOrario = 1 AND [codOrario] IS NULL) OR ([codOrario] = @Orig" + + "inal_codOrario)) AND ((@IsNull_mailLastOp = 1 AND [mailLastOp] IS NULL) OR ([mai" + + "lLastOp] = @Original_mailLastOp)) AND ((@IsNull_mailDay = 1 AND [mailDay] IS NUL" + + "L) OR ([mailDay] = @Original_mailDay)) AND ((@IsNull_mailWeek = 1 AND [mailWeek]" + + " IS NULL) OR ([mailWeek] = @Original_mailWeek)) AND ((@IsNull_mailMonth = 1 AND " + + "[mailMonth] IS NULL) OR ([mailMonth] = @Original_mailMonth)) AND ([email] = @Ori" + + "ginal_email) AND ([authKey] = @Original_authKey) AND ((@IsNull_numAuth = 1 AND [" + + "numAuth] IS NULL) OR ([numAuth] = @Original_numAuth)) AND ([WOL_MAC] = @Original" + + "_WOL_MAC) AND ([dominio] = @Original_dominio) AND ([utente] = @Original_utente) " + + "AND ([codDipendenteExt] = @Original_codDipendenteExt) AND ((@IsNull_gruppo = 1 A" + + "ND [gruppo] IS NULL) OR ([gruppo] = @Original_gruppo)) AND ((@IsNull_dataAssunzi" + + "one = 1 AND [dataAssunzione] IS NULL) OR ([dataAssunzione] = @Original_dataAssun" + + "zione)) AND ((@IsNull_dataCessazione = 1 AND [dataCessazione] IS NULL) OR ([data" + + "Cessazione] = @Original_dataCessazione)) AND ((@IsNull_attivo = 1 AND [attivo] I" + + "S NULL) OR ([attivo] = @Original_attivo)) AND ([sigla] = @Original_sigla) AND ([" + + "idxResp] = @Original_idxResp));\r\nSELECT idxDipendente, matricola, CF, Cognome, N" + + "ome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailL" + + "astOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, " + + "utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, sigla," + + " idxResp FROM Dipendenti WHERE (idxDipendente = @idxDipendente)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "matricola", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CF", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -25745,10 +25565,11 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataAssunzione", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataAssunzione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataCessazione", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataCessazione", 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("@sigla", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sigla", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxResp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxResp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_matricola", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "matricola", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "matricola", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CF", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CF", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CF", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cognome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -25762,7 +25583,6 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_provNascita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "provNascita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nazNascita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nazNascita", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nazNascita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nazNascita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_codHw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codHw", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codHw", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codHw", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_codOrario", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codOrario", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codOrario", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codOrario", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -25774,19 +25594,13 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_mailWeek", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "mailWeek", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_mailMonth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "mailMonth", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_mailMonth", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "mailMonth", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, 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("@IsNull_authKey", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_authKey", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_numAuth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "numAuth", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_numAuth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "numAuth", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_WOL_MAC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WOL_MAC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WOL_MAC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WOL_MAC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dominio", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dominio", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dominio", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dominio", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_utente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "utente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_utente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "utente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_codDipendenteExt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codDipendenteExt", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codDipendenteExt", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codDipendenteExt", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_gruppo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gruppo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -25796,6 +25610,8 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dataCessazione", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataCessazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_attivo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "attivo", global::System.Data.DataRowVersion.Original, true, 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("@Original_sigla", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sigla", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxResp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxResp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -25812,7 +25628,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this._commandCollection = new global::System.Data.SqlClient.SqlCommand[13]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\r\nFROM Dipendenti"; + this._commandCollection[0].CommandText = "SELECT * FROM Dipendenti"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -25879,6 +25695,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@authKey", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@attivo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxResp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[9].Connection = this.Connection; this._commandCollection[9].CommandText = "dbo.stp_Dip_recordAuthKeyUse"; @@ -25921,6 +25738,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataAssunzione", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataCessazione", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodHw", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxResp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -26121,7 +25939,9 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p string Original_gruppo, global::System.Nullable Original_dataAssunzione, global::System.Nullable Original_dataCessazione, - global::System.Nullable Original_attivo) { + global::System.Nullable Original_attivo, + string Original_sigla, + int Original_idxResp) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxDipendente)); if ((Original_matricola == null)) { this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); @@ -26132,197 +25952,188 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_matricola)); } if ((Original_CF == null)) { - this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("Original_CF"); } else { - this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CF)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_CF)); } if ((Original_Cognome == null)) { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; } else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Cognome)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Cognome)); } if ((Original_Nome == null)) { - this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; } else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Nome)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Nome)); } if ((Original_dataNascita.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_dataNascita.Value)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((System.DateTime)(Original_dataNascita.Value)); } else { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; } if ((Original_luogoNascita == null)) { - this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; } else { - this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_luogoNascita)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_luogoNascita)); } if ((Original_provNascita == null)) { - this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value; + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; } else { - this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_provNascita)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_provNascita)); } if ((Original_nazNascita == null)) { - this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value; + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; } else { - this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_nazNascita)); + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_nazNascita)); } if ((Original_codHw == null)) { + throw new global::System.ArgumentNullException("Original_codHw"); + } + else { + this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_codHw)); + } + if ((Original_codOrario == null)) { this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value; } else { this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_codHw)); + this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_codOrario)); } - if ((Original_codOrario == null)) { + if ((Original_mailLastOp.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[20].Value = ((bool)(Original_mailLastOp.Value)); + } + else { this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value; } - else { - this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_codOrario)); - } - if ((Original_mailLastOp.HasValue == true)) { + if ((Original_mailDay.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[22].Value = ((bool)(Original_mailLastOp.Value)); + this.Adapter.DeleteCommand.Parameters[22].Value = ((bool)(Original_mailDay.Value)); } else { this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value; } - if ((Original_mailDay.HasValue == true)) { + if ((Original_mailWeek.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[24].Value = ((bool)(Original_mailDay.Value)); + this.Adapter.DeleteCommand.Parameters[24].Value = ((bool)(Original_mailWeek.Value)); } else { this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value; } - if ((Original_mailWeek.HasValue == true)) { + if ((Original_mailMonth.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[26].Value = ((bool)(Original_mailWeek.Value)); + this.Adapter.DeleteCommand.Parameters[26].Value = ((bool)(Original_mailMonth.Value)); } else { this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value; } - if ((Original_mailMonth.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[28].Value = ((bool)(Original_mailMonth.Value)); + if ((Original_email == null)) { + throw new global::System.ArgumentNullException("Original_email"); } else { - this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value; + this.Adapter.DeleteCommand.Parameters[27].Value = ((string)(Original_email)); } - if ((Original_email == null)) { + if ((Original_authKey == null)) { + throw new global::System.ArgumentNullException("Original_authKey"); + } + else { + this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_authKey)); + } + if ((Original_numAuth.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[30].Value = ((int)(Original_numAuth.Value)); + } + else { this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value; } - else { - this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_email)); - } - if ((Original_authKey == null)) { - this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[32].Value = ((string)(Original_authKey)); - } - if ((Original_numAuth.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[34].Value = ((int)(Original_numAuth.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value; - } if ((Original_WOL_MAC == null)) { + throw new global::System.ArgumentNullException("Original_WOL_MAC"); + } + else { + this.Adapter.DeleteCommand.Parameters[31].Value = ((string)(Original_WOL_MAC)); + } + if ((Original_dominio == null)) { + throw new global::System.ArgumentNullException("Original_dominio"); + } + else { + this.Adapter.DeleteCommand.Parameters[32].Value = ((string)(Original_dominio)); + } + if ((Original_utente == null)) { + throw new global::System.ArgumentNullException("Original_utente"); + } + else { + this.Adapter.DeleteCommand.Parameters[33].Value = ((string)(Original_utente)); + } + if ((Original_codDipendenteExt == null)) { + throw new global::System.ArgumentNullException("Original_codDipendenteExt"); + } + else { + this.Adapter.DeleteCommand.Parameters[34].Value = ((string)(Original_codDipendenteExt)); + } + if ((Original_gruppo == null)) { this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value; } else { this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[36].Value = ((string)(Original_WOL_MAC)); + this.Adapter.DeleteCommand.Parameters[36].Value = ((string)(Original_gruppo)); } - if ((Original_dominio == null)) { + if ((Original_dataAssunzione.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[38].Value = ((System.DateTime)(Original_dataAssunzione.Value)); + } + else { this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[38].Value = global::System.DBNull.Value; } - else { - this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[38].Value = ((string)(Original_dominio)); + if ((Original_dataCessazione.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[40].Value = ((System.DateTime)(Original_dataCessazione.Value)); } - if ((Original_utente == null)) { + else { this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[40].Value = global::System.DBNull.Value; } - else { - this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[40].Value = ((string)(Original_utente)); + if ((Original_attivo.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[42].Value = ((bool)(Original_attivo.Value)); } - if ((Original_codDipendenteExt == null)) { + else { this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[42].Value = global::System.DBNull.Value; } - else { - this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[42].Value = ((string)(Original_codDipendenteExt)); - } - if ((Original_gruppo == null)) { - this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[44].Value = global::System.DBNull.Value; + if ((Original_sigla == null)) { + throw new global::System.ArgumentNullException("Original_sigla"); } else { - this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[44].Value = ((string)(Original_gruppo)); - } - if ((Original_dataAssunzione.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[46].Value = ((System.DateTime)(Original_dataAssunzione.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[46].Value = global::System.DBNull.Value; - } - if ((Original_dataCessazione.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[48].Value = ((System.DateTime)(Original_dataCessazione.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[48].Value = global::System.DBNull.Value; - } - if ((Original_attivo.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[50].Value = ((bool)(Original_attivo.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[50].Value = global::System.DBNull.Value; + this.Adapter.DeleteCommand.Parameters[43].Value = ((string)(Original_sigla)); } + this.Adapter.DeleteCommand.Parameters[44].Value = ((int)(Original_idxResp)); 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)) { @@ -26368,7 +26179,9 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p string gruppo, global::System.Nullable dataAssunzione, global::System.Nullable dataCessazione, - global::System.Nullable attivo) { + global::System.Nullable attivo, + string sigla, + int idxResp) { if ((matricola == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -26376,7 +26189,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.InsertCommand.Parameters[0].Value = ((string)(matricola)); } if ((CF == null)) { - this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("CF"); } else { this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CF)); @@ -26418,7 +26231,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.InsertCommand.Parameters[7].Value = ((string)(nazNascita)); } if ((codHw == null)) { - this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("codHw"); } else { this.Adapter.InsertCommand.Parameters[8].Value = ((string)(codHw)); @@ -26454,13 +26267,13 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; } if ((email == null)) { - this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("email"); } else { this.Adapter.InsertCommand.Parameters[14].Value = ((string)(email)); } if ((authKey == null)) { - this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("authKey"); } else { this.Adapter.InsertCommand.Parameters[15].Value = ((string)(authKey)); @@ -26472,25 +26285,25 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; } if ((WOL_MAC == null)) { - this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("WOL_MAC"); } else { this.Adapter.InsertCommand.Parameters[17].Value = ((string)(WOL_MAC)); } if ((dominio == null)) { - this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("dominio"); } else { this.Adapter.InsertCommand.Parameters[18].Value = ((string)(dominio)); } if ((utente == null)) { - this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("utente"); } else { this.Adapter.InsertCommand.Parameters[19].Value = ((string)(utente)); } if ((codDipendenteExt == null)) { - this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("codDipendenteExt"); } else { this.Adapter.InsertCommand.Parameters[20].Value = ((string)(codDipendenteExt)); @@ -26519,6 +26332,13 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p else { this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value; } + if ((sigla == null)) { + throw new global::System.ArgumentNullException("sigla"); + } + else { + this.Adapter.InsertCommand.Parameters[25].Value = ((string)(sigla)); + } + this.Adapter.InsertCommand.Parameters[26].Value = ((int)(idxResp)); 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)) { @@ -26565,6 +26385,8 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p global::System.Nullable dataAssunzione, global::System.Nullable dataCessazione, global::System.Nullable attivo, + string sigla, + int idxResp, int Original_idxDipendente, string Original_matricola, string Original_CF, @@ -26591,6 +26413,8 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p global::System.Nullable Original_dataAssunzione, global::System.Nullable Original_dataCessazione, global::System.Nullable Original_attivo, + string Original_sigla, + int Original_idxResp, int idxDipendente) { if ((matricola == null)) { this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; @@ -26599,7 +26423,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(matricola)); } if ((CF == null)) { - this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("CF"); } else { this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CF)); @@ -26641,7 +26465,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(nazNascita)); } if ((codHw == null)) { - this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("codHw"); } else { this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(codHw)); @@ -26677,13 +26501,13 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; } if ((email == null)) { - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("email"); } else { this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(email)); } if ((authKey == null)) { - this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("authKey"); } else { this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(authKey)); @@ -26695,25 +26519,25 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; } if ((WOL_MAC == null)) { - this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("WOL_MAC"); } else { this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(WOL_MAC)); } if ((dominio == null)) { - this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("dominio"); } else { this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(dominio)); } if ((utente == null)) { - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("utente"); } else { this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(utente)); } if ((codDipendenteExt == null)) { - this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("codDipendenteExt"); } else { this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(codDipendenteExt)); @@ -26742,77 +26566,80 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p else { this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; } - this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_idxDipendente)); - if ((Original_matricola == null)) { - this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + if ((sigla == null)) { + throw new global::System.ArgumentNullException("sigla"); } else { - this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_matricola)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(sigla)); } - if ((Original_CF == null)) { + this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(idxResp)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_idxDipendente)); + if ((Original_matricola == null)) { this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_CF)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_matricola)); + } + if ((Original_CF == null)) { + throw new global::System.ArgumentNullException("Original_CF"); + } + else { + this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_CF)); } if ((Original_Cognome == null)) { - this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_Cognome)); + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_Cognome)); } if ((Original_Nome == null)) { - this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_Nome)); + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_Nome)); } if ((Original_dataNascita.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[35].Value = ((System.DateTime)(Original_dataNascita.Value)); + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[36].Value = ((System.DateTime)(Original_dataNascita.Value)); } else { - this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; } if ((Original_luogoNascita == null)) { - this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_luogoNascita)); + this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_luogoNascita)); } if ((Original_provNascita == null)) { - this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_provNascita)); + this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(Original_provNascita)); } if ((Original_nazNascita == null)) { - this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_nazNascita)); + this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(Original_nazNascita)); } if ((Original_codHw == null)) { - this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("Original_codHw"); } else { - this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(Original_codHw)); } if ((Original_codOrario == null)) { @@ -26856,94 +26683,89 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; } if ((Original_email == null)) { - this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("Original_email"); } else { - this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_email)); + this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_email)); } if ((Original_authKey == null)) { + throw new global::System.ArgumentNullException("Original_authKey"); + } + else { + this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_authKey)); + } + if ((Original_numAuth.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[57].Value = ((int)(Original_numAuth.Value)); + } + else { this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value; } - else { - this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_authKey)); - } - if ((Original_numAuth.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[59].Value = ((int)(Original_numAuth.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value; - } if ((Original_WOL_MAC == null)) { - this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value; + throw new global::System.ArgumentNullException("Original_WOL_MAC"); } else { - this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_WOL_MAC)); + this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_WOL_MAC)); } if ((Original_dominio == null)) { + throw new global::System.ArgumentNullException("Original_dominio"); + } + else { + this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(Original_dominio)); + } + if ((Original_utente == null)) { + throw new global::System.ArgumentNullException("Original_utente"); + } + else { + this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_utente)); + } + if ((Original_codDipendenteExt == null)) { + throw new global::System.ArgumentNullException("Original_codDipendenteExt"); + } + else { + this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_codDipendenteExt)); + } + if ((Original_gruppo == null)) { this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_dominio)); + this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_gruppo)); } - if ((Original_utente == null)) { + if ((Original_dataAssunzione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[65].Value = ((System.DateTime)(Original_dataAssunzione.Value)); + } + else { this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value; } - else { - this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[65].Value = ((string)(Original_utente)); + if ((Original_dataCessazione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[67].Value = ((System.DateTime)(Original_dataCessazione.Value)); } - if ((Original_codDipendenteExt == null)) { + else { this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value; } - else { - this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[67].Value = ((string)(Original_codDipendenteExt)); + if ((Original_attivo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[69].Value = ((bool)(Original_attivo.Value)); } - if ((Original_gruppo == null)) { + else { this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; } - else { - this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[69].Value = ((string)(Original_gruppo)); - } - if ((Original_dataAssunzione.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[71].Value = ((System.DateTime)(Original_dataAssunzione.Value)); + if ((Original_sigla == null)) { + throw new global::System.ArgumentNullException("Original_sigla"); } else { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[70].Value = ((string)(Original_sigla)); } - if ((Original_dataCessazione.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[73].Value = ((System.DateTime)(Original_dataCessazione.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value; - } - if ((Original_attivo.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[75].Value = ((bool)(Original_attivo.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[76].Value = ((int)(idxDipendente)); + this.Adapter.UpdateCommand.Parameters[71].Value = ((int)(Original_idxResp)); + this.Adapter.UpdateCommand.Parameters[72].Value = ((int)(idxDipendente)); 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)) { @@ -26990,6 +26812,8 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p global::System.Nullable dataAssunzione, global::System.Nullable dataCessazione, global::System.Nullable attivo, + string sigla, + int idxResp, int Original_idxDipendente, string Original_matricola, string Original_CF, @@ -27015,8 +26839,10 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p string Original_gruppo, global::System.Nullable Original_dataAssunzione, global::System.Nullable Original_dataCessazione, - global::System.Nullable Original_attivo) { - return this.Update(matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, Original_idxDipendente, Original_matricola, Original_CF, Original_Cognome, Original_Nome, Original_dataNascita, Original_luogoNascita, Original_provNascita, Original_nazNascita, Original_codHw, Original_codOrario, Original_mailLastOp, Original_mailDay, Original_mailWeek, Original_mailMonth, Original_email, Original_authKey, Original_numAuth, Original_WOL_MAC, Original_dominio, Original_utente, Original_codDipendenteExt, Original_gruppo, Original_dataAssunzione, Original_dataCessazione, Original_attivo, Original_idxDipendente); + global::System.Nullable Original_attivo, + string Original_sigla, + int Original_idxResp) { + return this.Update(matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, sigla, idxResp, Original_idxDipendente, Original_matricola, Original_CF, Original_Cognome, Original_Nome, Original_dataNascita, Original_luogoNascita, Original_provNascita, Original_nazNascita, Original_codHw, Original_codOrario, Original_mailLastOp, Original_mailDay, Original_mailWeek, Original_mailMonth, Original_email, Original_authKey, Original_numAuth, Original_WOL_MAC, Original_dominio, Original_utente, Original_codDipendenteExt, Original_gruppo, Original_dataAssunzione, Original_dataCessazione, Original_attivo, Original_sigla, Original_idxResp, Original_idxDipendente); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -27068,7 +26894,8 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p string codOrario, string gruppo, string authKey, - global::System.Nullable attivo) { + global::System.Nullable attivo, + global::System.Nullable idxResp) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8]; if ((matricola == null)) { command.Parameters[1].Value = global::System.DBNull.Value; @@ -27166,6 +26993,12 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p else { command.Parameters[16].Value = global::System.DBNull.Value; } + if ((idxResp.HasValue == true)) { + command.Parameters[17].Value = ((int)(idxResp.Value)); + } + else { + command.Parameters[17].Value = global::System.DBNull.Value; + } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -27301,6 +27134,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p global::System.Nullable dataAssunzione, global::System.Nullable dataCessazione, string CodHw, + global::System.Nullable idxResp, global::System.Nullable Original_idxDipendente) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12]; if ((matricola == null)) { @@ -27405,12 +27239,18 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p else { command.Parameters[17].Value = ((string)(CodHw)); } - if ((Original_idxDipendente.HasValue == true)) { - command.Parameters[18].Value = ((int)(Original_idxDipendente.Value)); + if ((idxResp.HasValue == true)) { + command.Parameters[18].Value = ((int)(idxResp.Value)); } else { command.Parameters[18].Value = global::System.DBNull.Value; } + if ((Original_idxDipendente.HasValue == true)) { + command.Parameters[19].Value = ((int)(Original_idxDipendente.Value)); + } + else { + command.Parameters[19].Value = global::System.DBNull.Value; + } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -40619,33 +40459,6 @@ SELECT IdxRegMal, DtInizio, NumGG, CodCert FROM RegistroMalattie WHERE (IdxRegMa allChangedRows.AddRange(updatedRows); } } - if ((this._dipendenti2GruppiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._dipendenti2GruppiTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._anagGruppiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._anagGruppiTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._anagOrariTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagOrari.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._anagOrariTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._dipendentiTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Dipendenti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -40700,6 +40513,24 @@ SELECT IdxRegMal, DtInizio, NumGG, CodCert FROM RegistroMalattie WHERE (IdxRegMa allChangedRows.AddRange(updatedRows); } } + if ((this._dipendenti2GruppiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._dipendenti2GruppiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagGruppiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagGruppiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._rilievoTempTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -40727,6 +40558,15 @@ SELECT IdxRegMal, DtInizio, NumGG, CodCert FROM RegistroMalattie WHERE (IdxRegMa allChangedRows.AddRange(updatedRows); } } + if ((this._anagOrariTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagOrari.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagOrariTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._calendFesteFerieTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.CalendFesteFerie.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -40799,30 +40639,6 @@ SELECT IdxRegMal, DtInizio, NumGG, CodCert FROM RegistroMalattie WHERE (IdxRegMa allAddedRows.AddRange(addedRows); } } - if ((this._dipendenti2GruppiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._dipendenti2GruppiTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._anagGruppiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._anagGruppiTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._anagOrariTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagOrari.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._anagOrariTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._dipendentiTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Dipendenti.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -40871,6 +40687,22 @@ SELECT IdxRegMal, DtInizio, NumGG, CodCert FROM RegistroMalattie WHERE (IdxRegMa allAddedRows.AddRange(addedRows); } } + if ((this._dipendenti2GruppiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._dipendenti2GruppiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagGruppiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagGruppiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._rilievoTempTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -40895,6 +40727,14 @@ SELECT IdxRegMal, DtInizio, NumGG, CodCert FROM RegistroMalattie WHERE (IdxRegMa allAddedRows.AddRange(addedRows); } } + if ((this._anagOrariTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagOrari.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagOrariTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._calendFesteFerieTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.CalendFesteFerie.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -41001,6 +40841,14 @@ SELECT IdxRegMal, DtInizio, NumGG, CodCert FROM RegistroMalattie WHERE (IdxRegMa allChangedRows.AddRange(deletedRows); } } + if ((this._anagOrariTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagOrari.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagOrariTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._giustificativiTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Giustificativi.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -41025,6 +40873,22 @@ SELECT IdxRegMal, DtInizio, NumGG, CodCert FROM RegistroMalattie WHERE (IdxRegMa allChangedRows.AddRange(deletedRows); } } + if ((this._anagGruppiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagGruppiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._dipendenti2GruppiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._dipendenti2GruppiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._listTagDDTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.ListTagDD.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -41073,30 +40937,6 @@ SELECT IdxRegMal, DtInizio, NumGG, CodCert FROM RegistroMalattie WHERE (IdxRegMa allChangedRows.AddRange(deletedRows); } } - if ((this._anagOrariTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagOrari.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._anagOrariTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._anagGruppiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._anagGruppiTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._dipendenti2GruppiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._dipendenti2GruppiTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._anagProgettiTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagProgetti.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) diff --git a/GPW_Data/DS_Applicazione.xsd b/GPW_Data/DS_Applicazione.xsd index 86e0aa4..a2e7c3e 100644 --- a/GPW_Data/DS_Applicazione.xsd +++ b/GPW_Data/DS_Applicazione.xsd @@ -717,13 +717,12 @@ SELECT IdxDevice, DeviceSecret, idxDipendente, DeviceName, Description, dataOraE - DELETE FROM [Dipendenti] WHERE (([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_matricola = 1 AND [matricola] IS NULL) OR ([matricola] = @Original_matricola)) AND ((@IsNull_CF = 1 AND [CF] IS NULL) OR ([CF] = @Original_CF)) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_dataNascita = 1 AND [dataNascita] IS NULL) OR ([dataNascita] = @Original_dataNascita)) AND ((@IsNull_luogoNascita = 1 AND [luogoNascita] IS NULL) OR ([luogoNascita] = @Original_luogoNascita)) AND ((@IsNull_provNascita = 1 AND [provNascita] IS NULL) OR ([provNascita] = @Original_provNascita)) AND ((@IsNull_nazNascita = 1 AND [nazNascita] IS NULL) OR ([nazNascita] = @Original_nazNascita)) AND ((@IsNull_codHw = 1 AND [codHw] IS NULL) OR ([codHw] = @Original_codHw)) AND ((@IsNull_codOrario = 1 AND [codOrario] IS NULL) OR ([codOrario] = @Original_codOrario)) AND ((@IsNull_mailLastOp = 1 AND [mailLastOp] IS NULL) OR ([mailLastOp] = @Original_mailLastOp)) AND ((@IsNull_mailDay = 1 AND [mailDay] IS NULL) OR ([mailDay] = @Original_mailDay)) AND ((@IsNull_mailWeek = 1 AND [mailWeek] IS NULL) OR ([mailWeek] = @Original_mailWeek)) AND ((@IsNull_mailMonth = 1 AND [mailMonth] IS NULL) OR ([mailMonth] = @Original_mailMonth)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_authKey = 1 AND [authKey] IS NULL) OR ([authKey] = @Original_authKey)) AND ((@IsNull_numAuth = 1 AND [numAuth] IS NULL) OR ([numAuth] = @Original_numAuth)) AND ((@IsNull_WOL_MAC = 1 AND [WOL_MAC] IS NULL) OR ([WOL_MAC] = @Original_WOL_MAC)) AND ((@IsNull_dominio = 1 AND [dominio] IS NULL) OR ([dominio] = @Original_dominio)) AND ((@IsNull_utente = 1 AND [utente] IS NULL) OR ([utente] = @Original_utente)) AND ((@IsNull_codDipendenteExt = 1 AND [codDipendenteExt] IS NULL) OR ([codDipendenteExt] = @Original_codDipendenteExt)) AND ((@IsNull_gruppo = 1 AND [gruppo] IS NULL) OR ([gruppo] = @Original_gruppo)) AND ((@IsNull_dataAssunzione = 1 AND [dataAssunzione] IS NULL) OR ([dataAssunzione] = @Original_dataAssunzione)) AND ((@IsNull_dataCessazione = 1 AND [dataCessazione] IS NULL) OR ([dataCessazione] = @Original_dataCessazione)) AND ((@IsNull_attivo = 1 AND [attivo] IS NULL) OR ([attivo] = @Original_attivo))) + DELETE FROM [Dipendenti] WHERE (([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_matricola = 1 AND [matricola] IS NULL) OR ([matricola] = @Original_matricola)) AND ([CF] = @Original_CF) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_dataNascita = 1 AND [dataNascita] IS NULL) OR ([dataNascita] = @Original_dataNascita)) AND ((@IsNull_luogoNascita = 1 AND [luogoNascita] IS NULL) OR ([luogoNascita] = @Original_luogoNascita)) AND ((@IsNull_provNascita = 1 AND [provNascita] IS NULL) OR ([provNascita] = @Original_provNascita)) AND ((@IsNull_nazNascita = 1 AND [nazNascita] IS NULL) OR ([nazNascita] = @Original_nazNascita)) AND ([codHw] = @Original_codHw) AND ((@IsNull_codOrario = 1 AND [codOrario] IS NULL) OR ([codOrario] = @Original_codOrario)) AND ((@IsNull_mailLastOp = 1 AND [mailLastOp] IS NULL) OR ([mailLastOp] = @Original_mailLastOp)) AND ((@IsNull_mailDay = 1 AND [mailDay] IS NULL) OR ([mailDay] = @Original_mailDay)) AND ((@IsNull_mailWeek = 1 AND [mailWeek] IS NULL) OR ([mailWeek] = @Original_mailWeek)) AND ((@IsNull_mailMonth = 1 AND [mailMonth] IS NULL) OR ([mailMonth] = @Original_mailMonth)) AND ([email] = @Original_email) AND ([authKey] = @Original_authKey) AND ((@IsNull_numAuth = 1 AND [numAuth] IS NULL) OR ([numAuth] = @Original_numAuth)) AND ([WOL_MAC] = @Original_WOL_MAC) AND ([dominio] = @Original_dominio) AND ([utente] = @Original_utente) AND ([codDipendenteExt] = @Original_codDipendenteExt) AND ((@IsNull_gruppo = 1 AND [gruppo] IS NULL) OR ([gruppo] = @Original_gruppo)) AND ((@IsNull_dataAssunzione = 1 AND [dataAssunzione] IS NULL) OR ([dataAssunzione] = @Original_dataAssunzione)) AND ((@IsNull_dataCessazione = 1 AND [dataCessazione] IS NULL) OR ([dataCessazione] = @Original_dataCessazione)) AND ((@IsNull_attivo = 1 AND [attivo] IS NULL) OR ([attivo] = @Original_attivo)) AND ([sigla] = @Original_sigla) AND ([idxResp] = @Original_idxResp)) - - + @@ -736,8 +735,7 @@ SELECT IdxDevice, DeviceSecret, idxDipendente, DeviceName, Description, dataOraE - - + @@ -748,20 +746,14 @@ SELECT IdxDevice, DeviceSecret, idxDipendente, DeviceName, Description, dataOraE - - - - + + - - - - - - - - + + + + @@ -770,84 +762,88 @@ SELECT IdxDevice, DeviceSecret, idxDipendente, DeviceName, Description, dataOraE + + - INSERT INTO [Dipendenti] ([matricola], [CF], [Cognome], [Nome], [dataNascita], [luogoNascita], [provNascita], [nazNascita], [codHw], [codOrario], [mailLastOp], [mailDay], [mailWeek], [mailMonth], [email], [authKey], [numAuth], [WOL_MAC], [dominio], [utente], [codDipendenteExt], [gruppo], [dataAssunzione], [dataCessazione], [attivo]) VALUES (@matricola, @CF, @Cognome, @Nome, @dataNascita, @luogoNascita, @provNascita, @nazNascita, @codHw, @codOrario, @mailLastOp, @mailDay, @mailWeek, @mailMonth, @email, @authKey, @numAuth, @WOL_MAC, @dominio, @utente, @codDipendenteExt, @gruppo, @dataAssunzione, @dataCessazione, @attivo); -SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo FROM Dipendenti WHERE (idxDipendente = SCOPE_IDENTITY()) + INSERT INTO [Dipendenti] ([matricola], [CF], [Cognome], [Nome], [dataNascita], [luogoNascita], [provNascita], [nazNascita], [codHw], [codOrario], [mailLastOp], [mailDay], [mailWeek], [mailMonth], [email], [authKey], [numAuth], [WOL_MAC], [dominio], [utente], [codDipendenteExt], [gruppo], [dataAssunzione], [dataCessazione], [attivo], [sigla], [idxResp]) VALUES (@matricola, @CF, @Cognome, @Nome, @dataNascita, @luogoNascita, @provNascita, @nazNascita, @codHw, @codOrario, @mailLastOp, @mailDay, @mailWeek, @mailMonth, @email, @authKey, @numAuth, @WOL_MAC, @dominio, @utente, @codDipendenteExt, @gruppo, @dataAssunzione, @dataCessazione, @attivo, @sigla, @idxResp); +SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, sigla, idxResp FROM Dipendenti WHERE (idxDipendente = SCOPE_IDENTITY()) - + - + - - + + - - - - + + + + + + - - SELECT * -FROM Dipendenti + + SELECT * FROM Dipendenti - UPDATE [Dipendenti] SET [matricola] = @matricola, [CF] = @CF, [Cognome] = @Cognome, [Nome] = @Nome, [dataNascita] = @dataNascita, [luogoNascita] = @luogoNascita, [provNascita] = @provNascita, [nazNascita] = @nazNascita, [codHw] = @codHw, [codOrario] = @codOrario, [mailLastOp] = @mailLastOp, [mailDay] = @mailDay, [mailWeek] = @mailWeek, [mailMonth] = @mailMonth, [email] = @email, [authKey] = @authKey, [numAuth] = @numAuth, [WOL_MAC] = @WOL_MAC, [dominio] = @dominio, [utente] = @utente, [codDipendenteExt] = @codDipendenteExt, [gruppo] = @gruppo, [dataAssunzione] = @dataAssunzione, [dataCessazione] = @dataCessazione, [attivo] = @attivo WHERE (([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_matricola = 1 AND [matricola] IS NULL) OR ([matricola] = @Original_matricola)) AND ((@IsNull_CF = 1 AND [CF] IS NULL) OR ([CF] = @Original_CF)) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_dataNascita = 1 AND [dataNascita] IS NULL) OR ([dataNascita] = @Original_dataNascita)) AND ((@IsNull_luogoNascita = 1 AND [luogoNascita] IS NULL) OR ([luogoNascita] = @Original_luogoNascita)) AND ((@IsNull_provNascita = 1 AND [provNascita] IS NULL) OR ([provNascita] = @Original_provNascita)) AND ((@IsNull_nazNascita = 1 AND [nazNascita] IS NULL) OR ([nazNascita] = @Original_nazNascita)) AND ((@IsNull_codHw = 1 AND [codHw] IS NULL) OR ([codHw] = @Original_codHw)) AND ((@IsNull_codOrario = 1 AND [codOrario] IS NULL) OR ([codOrario] = @Original_codOrario)) AND ((@IsNull_mailLastOp = 1 AND [mailLastOp] IS NULL) OR ([mailLastOp] = @Original_mailLastOp)) AND ((@IsNull_mailDay = 1 AND [mailDay] IS NULL) OR ([mailDay] = @Original_mailDay)) AND ((@IsNull_mailWeek = 1 AND [mailWeek] IS NULL) OR ([mailWeek] = @Original_mailWeek)) AND ((@IsNull_mailMonth = 1 AND [mailMonth] IS NULL) OR ([mailMonth] = @Original_mailMonth)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_authKey = 1 AND [authKey] IS NULL) OR ([authKey] = @Original_authKey)) AND ((@IsNull_numAuth = 1 AND [numAuth] IS NULL) OR ([numAuth] = @Original_numAuth)) AND ((@IsNull_WOL_MAC = 1 AND [WOL_MAC] IS NULL) OR ([WOL_MAC] = @Original_WOL_MAC)) AND ((@IsNull_dominio = 1 AND [dominio] IS NULL) OR ([dominio] = @Original_dominio)) AND ((@IsNull_utente = 1 AND [utente] IS NULL) OR ([utente] = @Original_utente)) AND ((@IsNull_codDipendenteExt = 1 AND [codDipendenteExt] IS NULL) OR ([codDipendenteExt] = @Original_codDipendenteExt)) AND ((@IsNull_gruppo = 1 AND [gruppo] IS NULL) OR ([gruppo] = @Original_gruppo)) AND ((@IsNull_dataAssunzione = 1 AND [dataAssunzione] IS NULL) OR ([dataAssunzione] = @Original_dataAssunzione)) AND ((@IsNull_dataCessazione = 1 AND [dataCessazione] IS NULL) OR ([dataCessazione] = @Original_dataCessazione)) AND ((@IsNull_attivo = 1 AND [attivo] IS NULL) OR ([attivo] = @Original_attivo))); -SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo FROM Dipendenti WHERE (idxDipendente = @idxDipendente) + UPDATE [Dipendenti] SET [matricola] = @matricola, [CF] = @CF, [Cognome] = @Cognome, [Nome] = @Nome, [dataNascita] = @dataNascita, [luogoNascita] = @luogoNascita, [provNascita] = @provNascita, [nazNascita] = @nazNascita, [codHw] = @codHw, [codOrario] = @codOrario, [mailLastOp] = @mailLastOp, [mailDay] = @mailDay, [mailWeek] = @mailWeek, [mailMonth] = @mailMonth, [email] = @email, [authKey] = @authKey, [numAuth] = @numAuth, [WOL_MAC] = @WOL_MAC, [dominio] = @dominio, [utente] = @utente, [codDipendenteExt] = @codDipendenteExt, [gruppo] = @gruppo, [dataAssunzione] = @dataAssunzione, [dataCessazione] = @dataCessazione, [attivo] = @attivo, [sigla] = @sigla, [idxResp] = @idxResp WHERE (([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_matricola = 1 AND [matricola] IS NULL) OR ([matricola] = @Original_matricola)) AND ([CF] = @Original_CF) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_dataNascita = 1 AND [dataNascita] IS NULL) OR ([dataNascita] = @Original_dataNascita)) AND ((@IsNull_luogoNascita = 1 AND [luogoNascita] IS NULL) OR ([luogoNascita] = @Original_luogoNascita)) AND ((@IsNull_provNascita = 1 AND [provNascita] IS NULL) OR ([provNascita] = @Original_provNascita)) AND ((@IsNull_nazNascita = 1 AND [nazNascita] IS NULL) OR ([nazNascita] = @Original_nazNascita)) AND ([codHw] = @Original_codHw) AND ((@IsNull_codOrario = 1 AND [codOrario] IS NULL) OR ([codOrario] = @Original_codOrario)) AND ((@IsNull_mailLastOp = 1 AND [mailLastOp] IS NULL) OR ([mailLastOp] = @Original_mailLastOp)) AND ((@IsNull_mailDay = 1 AND [mailDay] IS NULL) OR ([mailDay] = @Original_mailDay)) AND ((@IsNull_mailWeek = 1 AND [mailWeek] IS NULL) OR ([mailWeek] = @Original_mailWeek)) AND ((@IsNull_mailMonth = 1 AND [mailMonth] IS NULL) OR ([mailMonth] = @Original_mailMonth)) AND ([email] = @Original_email) AND ([authKey] = @Original_authKey) AND ((@IsNull_numAuth = 1 AND [numAuth] IS NULL) OR ([numAuth] = @Original_numAuth)) AND ([WOL_MAC] = @Original_WOL_MAC) AND ([dominio] = @Original_dominio) AND ([utente] = @Original_utente) AND ([codDipendenteExt] = @Original_codDipendenteExt) AND ((@IsNull_gruppo = 1 AND [gruppo] IS NULL) OR ([gruppo] = @Original_gruppo)) AND ((@IsNull_dataAssunzione = 1 AND [dataAssunzione] IS NULL) OR ([dataAssunzione] = @Original_dataAssunzione)) AND ((@IsNull_dataCessazione = 1 AND [dataCessazione] IS NULL) OR ([dataCessazione] = @Original_dataCessazione)) AND ((@IsNull_attivo = 1 AND [attivo] IS NULL) OR ([attivo] = @Original_attivo)) AND ([sigla] = @Original_sigla) AND ([idxResp] = @Original_idxResp)); +SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, sigla, idxResp FROM Dipendenti WHERE (idxDipendente = @idxDipendente) - + - + - - + + - - - - + + + + + + - - + @@ -860,8 +856,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p - - + @@ -872,20 +867,14 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p - - - - + + - - - - - - - - + + + + @@ -894,6 +883,8 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p + + @@ -920,8 +911,6 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p - - @@ -929,6 +918,8 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p + + @@ -1032,6 +1023,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p + @@ -1094,6 +1086,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p + @@ -3803,127 +3796,135 @@ FROM v_AnagTagFasi - + - + - + - + - - + + - + - + - + - + - - - - - + + + + + - + - - + + - + - + - + - + - - - + + + + + + + + + + + @@ -4141,7 +4142,7 @@ FROM v_AnagTagFasi - + @@ -4744,7 +4745,7 @@ FROM v_AnagTagFasi - + @@ -4883,10 +4884,7 @@ FROM v_AnagTagFasi - - - \ No newline at end of file diff --git a/GPW_Data/DS_Applicazione.xss b/GPW_Data/DS_Applicazione.xss index 18b1c15..746cb1a 100644 --- a/GPW_Data/DS_Applicazione.xss +++ b/GPW_Data/DS_Applicazione.xss @@ -4,41 +4,41 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - + + + + + + + - - + + - - - - - - - + + + + + + + - + 391 @@ -50,7 +50,7 @@ - + 1046 @@ -62,7 +62,7 @@ - + 871 @@ -78,67 +78,27 @@ - + 585 - 808 + 715 598 - 808 + 715 - - - - 332 - 1001 - - - 332 - 924 - - - - + 285 - 726 + 715 276 - 726 - - - - - - - 286 - 428 - - - 338 - 428 - - - 338 - 543 - - - - - - - 428 - 523 - - - 428 - 543 + 715 diff --git a/GPW_Data/DS_Utility.Designer.cs b/GPW_Data/DS_Utility.Designer.cs index a0cd227..12380b8 100644 --- a/GPW_Data/DS_Utility.Designer.cs +++ b/GPW_Data/DS_Utility.Designer.cs @@ -9143,7 +9143,7 @@ namespace GPW_data.DS_UtilityTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_selDipendenti\r\nORDER BY label"; @@ -9168,6 +9168,12 @@ namespace GPW_data.DS_UtilityTableAdapters { this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@invSel", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_VSDip_getByRuolo"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodRuolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -9234,6 +9240,23 @@ namespace GPW_data.DS_UtilityTableAdapters { return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selDipendentiDataTable getByRuolo(string CodRuolo) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((CodRuolo == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodRuolo)); + } + DS_Utility.v_selDipendentiDataTable dataTable = new DS_Utility.v_selDipendentiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] diff --git a/GPW_Data/DS_Utility.xsd b/GPW_Data/DS_Utility.xsd index 4a44008..9d1abb4 100644 --- a/GPW_Data/DS_Utility.xsd +++ b/GPW_Data/DS_Utility.xsd @@ -61,6 +61,17 @@ ORDER BY label + + + + dbo.stp_VSDip_getByRuolo + + + + + + + @@ -932,17 +943,17 @@ ORDER BY ordinal - + - + - + diff --git a/GPW_Data/DS_Utility.xss b/GPW_Data/DS_Utility.xss index 7a25843..a1705ad 100644 --- a/GPW_Data/DS_Utility.xss +++ b/GPW_Data/DS_Utility.xss @@ -4,9 +4,9 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + diff --git a/GPW_Data/Properties/Settings.Designer.cs b/GPW_Data/Properties/Settings.Designer.cs index 4f39db0..03e1046 100644 --- a/GPW_Data/Properties/Settings.Designer.cs +++ b/GPW_Data/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace GPW_data.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.9.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.10.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -23,27 +23,26 @@ namespace GPW_data.Properties { } } + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=W2019-SQL-STEAM;Initial Catalog=GPW;Persist Security Info=True;User I" + + "D=sa;Password=keyhammer16;TrustServerCertificate=True")] + public string GPWConnectionString { + get { + return ((string)(this["GPWConnectionString"])); + } + } + [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.74.82.217\\SQL2008R2;Initial Catalog=ETS_GPW;Persist Security Info=" + - "True;User ID=sa;Password=keyhammer")] + "True;User ID=sa;Password=keyhammer;TrustServerCertificate=True")] public string ETS_GPWConnectionString { get { return ((string)(this["ETS_GPWConnectionString"])); } } - - [global::System.Configuration.ApplicationScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=W2019-SQL-STEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer16;TrustServerCertificate=True")] - public string GPWConnectionString - { - get - { - return ((string)(this["GPWConnectionString"])); - } - } } } diff --git a/GPW_Data/Properties/Settings.settings b/GPW_Data/Properties/Settings.settings index c0b9ac8..234fb93 100644 --- a/GPW_Data/Properties/Settings.settings +++ b/GPW_Data/Properties/Settings.settings @@ -13,10 +13,10 @@ <?xml version="1.0" encoding="utf-16"?> <SerializableConnectionString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <ConnectionString>Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_GPW;Persist Security Info=True;User ID=sa;Password=keyhammer</ConnectionString> + <ConnectionString>Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_GPW;Persist Security Info=True;User ID=sa;Password=keyhammer;TrustServerCertificate=True</ConnectionString> <ProviderName>System.Data.SqlClient</ProviderName> </SerializableConnectionString> - Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_GPW;Persist Security Info=True;User ID=sa;Password=keyhammer + Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_GPW;Persist Security Info=True;User ID=sa;Password=keyhammer;TrustServerCertificate=True \ No newline at end of file diff --git a/GPW_data/App.config b/GPW_data/App.config index 76b3518..9caf96b 100644 --- a/GPW_data/App.config +++ b/GPW_data/App.config @@ -7,7 +7,7 @@ connectionString="Data Source=W2019-SQL-STEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer16;TrustServerCertificate=True" providerName="System.Data.SqlClient" />