From ef5df931c3d2b6de090719b5338c33471eb8a54d Mon Sep 17 00:00:00 2001 From: Samuele Emilio Locatelli Date: Thu, 4 Aug 2022 09:59:09 +0000 Subject: [PATCH] ADM: --- Jenkinsfile => 2delete/Jenkinsfile | 0 GPW_Admin/Content/Site.css | 24 +- GPW_Admin/Content/Site.less | 8 +- GPW_Admin/Content/Site.min.css | 2 +- GPW_Admin/GPW_Admin.csproj | 24 + GPW_Admin/WebUserControls/cmp_footer.ascx | 3 +- .../WebUserControls/cmp_periodoAnalisi.ascx | 6 +- .../cmp_periodoAnalisi.ascx.designer.cs | 40 +- .../WebUserControls/cmp_tagUserPeriodo.ascx | 28 + .../cmp_tagUserPeriodo.ascx.cs | 67 + .../cmp_tagUserPeriodo.ascx.designer.cs | 62 + .../WebUserControls/mod_reviewTimbrature.ascx | 13 + .../mod_reviewTimbrature.ascx.designer.cs | 106 +- GPW_Admin/WebUserControls/mod_tagMensili.ascx | 89 + .../WebUserControls/mod_tagMensili.ascx.cs | 189 ++ .../mod_tagMensili.ascx.designer.cs | 107 + .../WebUserControls/mod_timbrMensili.ascx | 2 +- GPW_Admin/tagMensili.aspx | 18 + GPW_Admin/tagMensili.aspx.cs | 30 + GPW_Admin/tagMensili.aspx.designer.cs | 35 + GPW_Data/DS_Applicazione.Designer.cs | 1923 ++++++++++++++++- GPW_Data/DS_Applicazione.xsd | 188 +- GPW_Data/DS_Applicazione.xss | 68 +- GPW_Data/DataProxy.cs | 6 + 24 files changed, 2813 insertions(+), 225 deletions(-) rename Jenkinsfile => 2delete/Jenkinsfile (100%) create mode 100644 GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx create mode 100644 GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs create mode 100644 GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.designer.cs create mode 100644 GPW_Admin/WebUserControls/mod_tagMensili.ascx create mode 100644 GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs create mode 100644 GPW_Admin/WebUserControls/mod_tagMensili.ascx.designer.cs create mode 100644 GPW_Admin/tagMensili.aspx create mode 100644 GPW_Admin/tagMensili.aspx.cs create mode 100644 GPW_Admin/tagMensili.aspx.designer.cs diff --git a/Jenkinsfile b/2delete/Jenkinsfile similarity index 100% rename from Jenkinsfile rename to 2delete/Jenkinsfile diff --git a/GPW_Admin/Content/Site.css b/GPW_Admin/Content/Site.css index 4768ba7..83a78d3 100644 --- a/GPW_Admin/Content/Site.css +++ b/GPW_Admin/Content/Site.css @@ -31,10 +31,10 @@ body { text-align: center; } .shortcuts .shortcut { - min-width: 9rem; - min-height: 5rem; + min-width: 9.9rem; + min-height: 5.5rem; display: inline-block; - padding: 0.66666667rem 0; + padding: 0.77rem 0; margin: 0 2px 1em; vertical-align: top; text-decoration: none; @@ -47,13 +47,13 @@ body { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffeeeeee', GradientType=0); border: 1px solid #ddd; box-sizing: border-box; - border-radius: 0.5rem; + border-radius: 0.55rem; } .shortcuts .shortcut-sm { - min-width: 4.5rem; - min-height: 3rem; + min-width: 4.95rem; + min-height: 3.3rem; display: inline-block; - padding: 0.25rem 0; + padding: 0.275rem 0; margin: 0 2px 1em; vertical-align: top; text-decoration: none; @@ -66,20 +66,20 @@ body { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffeeeeee', GradientType=0); border: 1px solid #ddd; box-sizing: border-box; - border-radius: 0.5rem; + border-radius: 1.1rem/2; } .shortcuts .shortcut .shortcut-icon { width: 100%; margin-top: 0; margin-bottom: 0; - font-size: 2rem; + font-size: 2.2rem; color: #333; } .shortcuts .shortcut-sm .shortcut-icon { width: 100%; margin-top: 0; margin-bottom: 0; - font-size: 2rem; + font-size: 2.2rem; color: #333; } .shortcuts .shortcut:hover { @@ -120,8 +120,8 @@ body { } @media (max-width: 992px) { .shortcuts .shortcut { - min-width: 8rem; - min-height: 4rem; + min-width: 8.8rem; + min-height: 4.4rem; } } /* Set widths on the form inputs since otherwise they're 100% wide */ diff --git a/GPW_Admin/Content/Site.less b/GPW_Admin/Content/Site.less index 7bc8b23..5f5d3ef 100644 --- a/GPW_Admin/Content/Site.less +++ b/GPW_Admin/Content/Site.less @@ -33,7 +33,7 @@ body { [ Shortcuts / .shortcuts ] */ -@blSCut: 1rem; +@blSCut: 1.1rem; .shortcuts { text-align: center; @@ -43,7 +43,7 @@ body { min-width: @blSCut * 9; min-height: @blSCut * 5; display: inline-block; - padding: @blSCut*2/3 0; + padding: @blSCut * 0.7 0; margin: 0 2px 1em; vertical-align: top; text-decoration: none; @@ -56,14 +56,14 @@ body { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffeeeeee', GradientType=0); border: 1px solid #ddd; box-sizing: border-box; - border-radius: @blSCut/2; + border-radius: @blSCut * 0.5; } .shortcuts .shortcut-sm { min-width: @blSCut * 4.5; min-height: @blSCut * 3; display: inline-block; - padding: @blSCut/4 0; + padding: @blSCut * 0.25 0; margin: 0 2px 1em; vertical-align: top; text-decoration: none; diff --git a/GPW_Admin/Content/Site.min.css b/GPW_Admin/Content/Site.min.css index c5fe75d..64c7c28 100644 --- a/GPW_Admin/Content/Site.min.css +++ b/GPW_Admin/Content/Site.min.css @@ -1 +1 @@ -body{font:'Roboto',sans-serif;}.body-content{font:'Roboto',sans-serif;}.textCondens{font-family:'Roboto Condensed',sans-serif;}.textNormal{font-family:'Roboto',sans-serif;}.textBig{font-size:1.5em;}.table-sm th,.table-sm td{padding:.2rem;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:9rem;min-height:5rem;display:inline-block;padding:.66666667rem 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:.5rem;}.shortcuts .shortcut-sm{min-width:4.5rem;min-height:3rem;display:inline-block;padding:.25rem 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:.5rem;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:2rem;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:2rem;color:#333;}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut:hover .shortcut-icon{color:#c93;}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666;}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666;}@media(max-width:992px){.shortcuts .shortcut{min-width:8rem;min-height:4rem;}}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}input,select,textarea{max-width:100%;}}.elTimbSmart{padding:.2em;font-size:1.1em;line-height:1.3em;}.ui-input-btn input{opacity:.5;}.GridPager a,.GridPager span{display:block;height:1.5em;min-width:1.1em;text-align:center;text-decoration:none;}.GridPager a{background-color:#f5f5f5;color:#969696;}.GridPager span{background-color:#a1dcf2;color:#000;font-weight:bold;} \ No newline at end of file +body{font:'Roboto',sans-serif;}.body-content{font:'Roboto',sans-serif;}.textCondens{font-family:'Roboto Condensed',sans-serif;}.textNormal{font-family:'Roboto',sans-serif;}.textBig{font-size:1.5em;}.table-sm th,.table-sm td{padding:.2rem;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:9.9rem;min-height:5.5rem;display:inline-block;padding:.77rem 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:.55rem;}.shortcuts .shortcut-sm{min-width:4.95rem;min-height:3.3rem;display:inline-block;padding:.275rem 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:1.1rem/2;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:2.2rem;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:2.2rem;color:#333;}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut:hover .shortcut-icon{color:#c93;}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666;}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666;}@media(max-width:992px){.shortcuts .shortcut{min-width:8.8rem;min-height:4.4rem;}}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}input,select,textarea{max-width:100%;}}.elTimbSmart{padding:.2em;font-size:1.1em;line-height:1.3em;}.ui-input-btn input{opacity:.5;}.GridPager a,.GridPager span{display:block;height:1.5em;min-width:1.1em;text-align:center;text-decoration:none;}.GridPager a{background-color:#f5f5f5;color:#969696;}.GridPager span{background-color:#a1dcf2;color:#000;font-weight:bold;} \ No newline at end of file diff --git a/GPW_Admin/GPW_Admin.csproj b/GPW_Admin/GPW_Admin.csproj index 894a224..39fb7c2 100644 --- a/GPW_Admin/GPW_Admin.csproj +++ b/GPW_Admin/GPW_Admin.csproj @@ -636,6 +636,7 @@ + @@ -648,6 +649,7 @@ + @@ -679,6 +681,7 @@ + @@ -937,6 +940,13 @@ spostaOre.aspx + + tagMensili.aspx + ASPXCodeBehind + + + tagMensili.aspx + Test.aspx ASPXCodeBehind @@ -1046,6 +1056,13 @@ cmp_righePag.ascx + + cmp_tagUserPeriodo.ascx + ASPXCodeBehind + + + cmp_tagUserPeriodo.ascx + cmp_ticketFreeActiv.ascx ASPXCodeBehind @@ -1262,6 +1279,13 @@ mod_spostaOre.ascx + + mod_tagMensili.ascx + ASPXCodeBehind + + + mod_tagMensili.ascx + mod_timbrMensili.ascx ASPXCodeBehind diff --git a/GPW_Admin/WebUserControls/cmp_footer.ascx b/GPW_Admin/WebUserControls/cmp_footer.ascx index b78fb07..44af9f0 100644 --- a/GPW_Admin/WebUserControls/cmp_footer.ascx +++ b/GPW_Admin/WebUserControls/cmp_footer.ascx @@ -14,7 +14,8 @@
- + +
diff --git a/GPW_Admin/WebUserControls/cmp_periodoAnalisi.ascx b/GPW_Admin/WebUserControls/cmp_periodoAnalisi.ascx index 085bc1f..d2de5f6 100644 --- a/GPW_Admin/WebUserControls/cmp_periodoAnalisi.ascx +++ b/GPW_Admin/WebUserControls/cmp_periodoAnalisi.ascx @@ -8,7 +8,7 @@ // If not native HTML5 support, fallback to jQuery datePicker $('input[type=date]').datepicker({ // Consistent format with the HTML5 picker - dateFormat: 'yy-mm-dd' + dateFormat: 'yyyy-MM-dd' } //// Localization //,$.datepicker.regional['it'] @@ -43,8 +43,8 @@ - - + +
diff --git a/GPW_Admin/WebUserControls/cmp_periodoAnalisi.ascx.designer.cs b/GPW_Admin/WebUserControls/cmp_periodoAnalisi.ascx.designer.cs index acb6949..c873714 100644 --- a/GPW_Admin/WebUserControls/cmp_periodoAnalisi.ascx.designer.cs +++ b/GPW_Admin/WebUserControls/cmp_periodoAnalisi.ascx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ namespace GPW_Admin.WebUserControls @@ -15,47 +15,47 @@ namespace GPW_Admin.WebUserControls { /// - /// Controllo ddlSelPeriodo. + /// ddlSelPeriodo control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.DropDownList ddlSelPeriodo; /// - /// Controllo ods_ddlSelPeriodo. + /// ods_ddlSelPeriodo control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource ods_ddlSelPeriodo; /// - /// Controllo txtInizio. + /// txtInizio control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.TextBox txtInizio; /// - /// Controllo txtFine. + /// txtFine control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.TextBox txtFine; /// - /// Controllo btnUpdate. + /// btnUpdate control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Button btnUpdate; } diff --git a/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx new file mode 100644 index 0000000..02ced2d --- /dev/null +++ b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx @@ -0,0 +1,28 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_tagUserPeriodo.ascx.cs" Inherits="GPW_Admin.WebUserControls.cmp_tagUserPeriodo" %> + + + + + + + No Record + + + + + + + + <%----%> + + + <%----%> + + + + + + + + + diff --git a/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs new file mode 100644 index 0000000..3af2c6e --- /dev/null +++ b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs @@ -0,0 +1,67 @@ +using GPW_data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW_Admin.WebUserControls +{ + public partial class cmp_tagUserPeriodo : BaseUserControl + { + + protected void Page_Load(object sender, EventArgs e) + { + + } + + public int idxDip + { + set + { + hfIdxDip.Value = $"{value}"; + } + } + + public DateTime inizio + { + set + { + hfInizio.Value = $"{value:yyyy-MM-dd}"; + } + } + public DateTime fine + { + set + { + hfFine.Value = $"{value:yyyy-MM-dd}"; + } + } + + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void reportUpdate() + { + doUpdate(); + raiseEvent(); + } + + public void doUpdate() + { + grView.SelectedIndex = -1; + grView.DataBind(); + } + + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // prendo riga selezionata + int idxTagDD = Convert.ToInt32(grView.SelectedDataKey["IdxTagDD"].ToString()); + // eseguo toggle + DataProxy.DP.taListTDD.toggleActive(idxTagDD); + // aggiorno + reportUpdate(); + } + } +} \ No newline at end of file diff --git a/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.designer.cs b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.designer.cs new file mode 100644 index 0000000..4f8c256 --- /dev/null +++ b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW_Admin.WebUserControls +{ + + + public partial class cmp_tagUserPeriodo + { + + /// + /// hfIdxDip control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfIdxDip; + + /// + /// hfInizio control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfInizio; + + /// + /// hfFine control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfFine; + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } +} diff --git a/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx b/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx index bb93e51..a0fb4f3 100644 --- a/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx +++ b/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx @@ -143,6 +143,19 @@ + + +
+ +
+
+ +
+ + +
+
+
diff --git a/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx.designer.cs b/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx.designer.cs index 0ab189a..971535d 100644 --- a/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx.designer.cs +++ b/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ namespace GPW_Admin.WebUserControls @@ -15,146 +15,146 @@ namespace GPW_Admin.WebUserControls { /// - /// Controllo chkshowAll. + /// chkshowAll control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.CheckBox chkshowAll; /// - /// Controllo filtroDip. + /// filtroDip control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::mod_filtro filtroDip; /// - /// Controllo odsDip. + /// odsDip control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsDip; /// - /// Controllo cmp_periodoAnalisi. + /// cmp_periodoAnalisi control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::GPW_Admin.WebUserControls.cmp_periodoAnalisi cmp_periodoAnalisi; /// - /// Controllo chkWE. + /// chkWE control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.CheckBox chkWE; /// - /// Controllo btnRicalcPeriodo. + /// btnRicalcPeriodo control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Button btnRicalcPeriodo; /// - /// Controllo hlExport. + /// hlExport control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HyperLink hlExport; /// - /// Controllo hlExportComm. + /// hlExportComm control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HyperLink hlExportComm; /// - /// Controllo grViewExpl. + /// grViewExpl control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.GridView grViewExpl; /// - /// Controllo odsExpl. + /// odsExpl control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsExpl; /// - /// Controllo pnlDettagli. + /// pnlDettagli control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Panel pnlDettagli; /// - /// Controllo mod_elencoTimbr1. + /// mod_elencoTimbr1 control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::GPW_Admin.WebUserControls.mod_elencoTimbr mod_elencoTimbr1; /// - /// Controllo grViewGiust. + /// grViewGiust control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.GridView grViewGiust; /// - /// Controllo odsGiust. + /// odsGiust control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsGiust; /// - /// Controllo odsCodGiust. + /// odsCodGiust control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsCodGiust; /// - /// Controllo mod_commAttivitaDesk1. + /// mod_commAttivitaDesk1 control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::GPW_Admin.WebUserControls.mod_commAttivitaDesk mod_commAttivitaDesk1; } diff --git a/GPW_Admin/WebUserControls/mod_tagMensili.ascx b/GPW_Admin/WebUserControls/mod_tagMensili.ascx new file mode 100644 index 0000000..12760c8 --- /dev/null +++ b/GPW_Admin/WebUserControls/mod_tagMensili.ascx @@ -0,0 +1,89 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_tagMensili.ascx.cs" Inherits="GPW_Admin.WebUserControls.mod_tagMensili" %> +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> +<%@ Register Src="~/WebUserControls/cmp_periodoAnalisi.ascx" TagPrefix="uc1" TagName="cmp_periodoAnalisi" %> +<%@ Register Src="~/WebUserControls/cmp_tagUserPeriodo.ascx" TagPrefix="uc1" TagName="cmp_tagUserPeriodo" %> + + +
+
+ + + + + + +
+
+ +
+
+ Ricalcola +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
diff --git a/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs b/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs new file mode 100644 index 0000000..2bbc688 --- /dev/null +++ b/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs @@ -0,0 +1,189 @@ +using GPW_data; +using SteamWare; +using System; +using System.Data; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW_Admin.WebUserControls +{ + public partial class mod_tagMensili : BaseUserControl + { + #region Public Events + + public event EventHandler eh_resetSelezione; + + #endregion Public Events + + #region Public Methods + + public void doUpdate() + { + grView.PageSize = utils.pageSize; + grView.DataBind(); + } + + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + resetDetail(); + grView.SelectedIndex = -1; + grView.DataBind(); + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + + #endregion Public Methods + + #region Protected Methods + + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DataColumnCollection colonne = null; + using (DS_Applicazione.TagMeseDataTable tabella = new DS_Applicazione.TagMeseDataTable()) + { + colonne = tabella.Columns; + } + return colonne; + } + + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + int anno = Convert.ToInt32(grView.SelectedDataKey["anno"].ToString()); + int mese = Convert.ToInt32(grView.SelectedDataKey["mese"].ToString()); + int idxDip = Convert.ToInt32(grView.SelectedDataKey["idxDipendente"].ToString()); + DateTime inizio = new DateTime(anno, mese, 1); + DateTime fine = new DateTime(anno, mese + 1, 1).AddDays(-1); + // imposto nel controlo child + cmp_tagUserPeriodo.idxDip = idxDip; + cmp_tagUserPeriodo.inizio = inizio; + cmp_tagUserPeriodo.fine = fine; + cmp_tagUserPeriodo.doUpdate(); + } + + protected void lbtRecalc_Click(object sender, EventArgs e) + { + DateTime fine = DateTime.Today; + DateTime inizio = fine.AddMonths(-3); + // cerco in sessione + if (!string.IsNullOrEmpty(memLayer.ML.StringSessionObj("_inizio"))) + { + inizio = memLayer.ML.DateTimeSessionObj("_inizio"); + } + if (!string.IsNullOrEmpty(memLayer.ML.StringSessionObj("_fine"))) + { + fine = memLayer.ML.DateTimeSessionObj("_fine"); + } + // ricostruisco EVENTUALI BP (HARD CODED!!!) + DataProxy.DP.taTagMese.checkCreateByDipDate("BP", filtroDip.valoreInt, inizio, fine, 270); + doUpdate(); + resetDetail(); + } + + /// + /// reset della selezione + /// + /// + /// + protected void lbtReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + /// + /// caricamento + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + grView.PageSize = utils.pageSize; + if (!Page.IsPostBack) + { + filtroDip.ods = odsDip; + memLayer.ML.emptySessionVal("idxDip_sel"); + filtroDip.reselFirst(); + resetDetail(); + } + filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore); + cmp_tagUserPeriodo.eh_doRefresh += Cmp_tagUserPeriodo_eh_doRefresh; + } + + #endregion Protected Methods + + #region Private Methods + + /// + /// imposto ODS + /// + private void checkFixOds() + { + memLayer.ML.setSessionVal("idxDip_sel", filtroDip.valoreInt); + grView.DataBind(); + resetDetail(); + } + + private void Cmp_tagUserPeriodo_eh_doRefresh(object sender, EventArgs e) + { + doUpdate(); + } + + /// + /// seleziono + /// + /// + /// + private void filtroDip_eh_selValore(object sender, EventArgs e) + { + // imposto ods + grView.SelectedIndex = -1; + checkFixOds(); + } + + private void resetDetail() + { + cmp_tagUserPeriodo.idxDip = -1; + cmp_tagUserPeriodo.doUpdate(); + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/GPW_Admin/WebUserControls/mod_tagMensili.ascx.designer.cs b/GPW_Admin/WebUserControls/mod_tagMensili.ascx.designer.cs new file mode 100644 index 0000000..79e7c48 --- /dev/null +++ b/GPW_Admin/WebUserControls/mod_tagMensili.ascx.designer.cs @@ -0,0 +1,107 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW_Admin.WebUserControls +{ + + + public partial class mod_tagMensili + { + + /// + /// filtroDip control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_filtro filtroDip; + + /// + /// 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; + + /// + /// cmp_periodoAnalisi control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW_Admin.WebUserControls.cmp_periodoAnalisi cmp_periodoAnalisi; + + /// + /// lbtRecalc control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtRecalc; + + /// + /// divMain control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMain; + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// lblNumRec control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblNumRec; + + /// + /// divDet control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDet; + + /// + /// cmp_tagUserPeriodo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW_Admin.WebUserControls.cmp_tagUserPeriodo cmp_tagUserPeriodo; + } +} diff --git a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx index 90546f6..9973ab8 100644 --- a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx +++ b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx @@ -51,7 +51,7 @@ - + diff --git a/GPW_Admin/tagMensili.aspx b/GPW_Admin/tagMensili.aspx new file mode 100644 index 0000000..48319f6 --- /dev/null +++ b/GPW_Admin/tagMensili.aspx @@ -0,0 +1,18 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/BMP.Master" AutoEventWireup="true" CodeBehind="tagMensili.aspx.cs" Inherits="GPW_Admin.tagMensili" %> + +<%@ Register Src="~/WebUserControls/mod_pageSize.ascx" TagPrefix="uc1" TagName="mod_pageSize" %> +<%@ Register Src="~/WebUserControls/mod_tagMensili.ascx" TagPrefix="uc1" TagName="mod_tagMensili" %> + + +
+
+ <%: traduci(titolo) %> +
+
+ +
+ +
+
\ No newline at end of file diff --git a/GPW_Admin/tagMensili.aspx.cs b/GPW_Admin/tagMensili.aspx.cs new file mode 100644 index 0000000..3e4bab7 --- /dev/null +++ b/GPW_Admin/tagMensili.aspx.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW_Admin +{ + public partial class tagMensili : BasePage + { + #region Private Methods + + private void Mod_pageSize_eh_nuovaSize(object sender, EventArgs e) + { + mod_tagMensili.doUpdate(); + } + + #endregion Private Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + mod_pageSize.eh_nuovaSize += Mod_pageSize_eh_nuovaSize; + } + + #endregion Protected Methods + } +} \ No newline at end of file diff --git a/GPW_Admin/tagMensili.aspx.designer.cs b/GPW_Admin/tagMensili.aspx.designer.cs new file mode 100644 index 0000000..b00e220 --- /dev/null +++ b/GPW_Admin/tagMensili.aspx.designer.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW_Admin +{ + + + public partial class tagMensili + { + + /// + /// mod_tagMensili control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW_Admin.WebUserControls.mod_tagMensili mod_tagMensili; + + /// + /// mod_pageSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW_Admin.WebUserControls.mod_pageSize mod_pageSize; + } +} diff --git a/GPW_Data/DS_Applicazione.Designer.cs b/GPW_Data/DS_Applicazione.Designer.cs index a0309cd..e03bf12 100644 --- a/GPW_Data/DS_Applicazione.Designer.cs +++ b/GPW_Data/DS_Applicazione.Designer.cs @@ -72,6 +72,10 @@ namespace GPW_data { private Dipendenti2GruppiDataTable tableDipendenti2Gruppi; + private TagMeseDataTable tableTagMese; + + private ListTagDDDataTable tableListTagDD; + private global::System.Data.DataRelation relationFK_Timbrature_Dipendenti; private global::System.Data.DataRelation relationFK_AnagFasi_AnagProgetti; @@ -188,6 +192,12 @@ namespace GPW_data { if ((ds.Tables["Dipendenti2Gruppi"] != null)) { base.Tables.Add(new Dipendenti2GruppiDataTable(ds.Tables["Dipendenti2Gruppi"])); } + if ((ds.Tables["TagMese"] != null)) { + base.Tables.Add(new TagMeseDataTable(ds.Tables["TagMese"])); + } + if ((ds.Tables["ListTagDD"] != null)) { + base.Tables.Add(new ListTagDDDataTable(ds.Tables["ListTagDD"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -446,6 +456,26 @@ namespace GPW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TagMeseDataTable TagMese { + get { + return this.tableTagMese; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ListTagDDDataTable ListTagDD { + get { + return this.tableListTagDD; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -585,6 +615,12 @@ namespace GPW_data { if ((ds.Tables["Dipendenti2Gruppi"] != null)) { base.Tables.Add(new Dipendenti2GruppiDataTable(ds.Tables["Dipendenti2Gruppi"])); } + if ((ds.Tables["TagMese"] != null)) { + base.Tables.Add(new TagMeseDataTable(ds.Tables["TagMese"])); + } + if ((ds.Tables["ListTagDD"] != null)) { + base.Tables.Add(new ListTagDDDataTable(ds.Tables["ListTagDD"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -762,6 +798,18 @@ namespace GPW_data { this.tableDipendenti2Gruppi.InitVars(); } } + this.tableTagMese = ((TagMeseDataTable)(base.Tables["TagMese"])); + if ((initTable == true)) { + if ((this.tableTagMese != null)) { + this.tableTagMese.InitVars(); + } + } + this.tableListTagDD = ((ListTagDDDataTable)(base.Tables["ListTagDD"])); + if ((initTable == true)) { + if ((this.tableListTagDD != null)) { + this.tableListTagDD.InitVars(); + } + } this.relationFK_Timbrature_Dipendenti = this.Relations["FK_Timbrature_Dipendenti"]; this.relationFK_AnagFasi_AnagProgetti = this.Relations["FK_AnagFasi_AnagProgetti"]; this.relationFK_RegAttivita_AnagFasi = this.Relations["FK_RegAttivita_AnagFasi"]; @@ -828,6 +876,10 @@ namespace GPW_data { base.Tables.Add(this.tableAnagGruppi); this.tableDipendenti2Gruppi = new Dipendenti2GruppiDataTable(); base.Tables.Add(this.tableDipendenti2Gruppi); + this.tableTagMese = new TagMeseDataTable(); + base.Tables.Add(this.tableTagMese); + this.tableListTagDD = new ListTagDDDataTable(); + base.Tables.Add(this.tableListTagDD); this.relationFK_Timbrature_Dipendenti = new global::System.Data.DataRelation("FK_Timbrature_Dipendenti", new global::System.Data.DataColumn[] { this.tableDipendenti.idxDipendenteColumn}, new global::System.Data.DataColumn[] { this.tableTimbrature.idxDipendenteColumn}, false); @@ -1006,6 +1058,18 @@ namespace GPW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private bool ShouldSerializeTagMese() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private bool ShouldSerializeListTagDD() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -1133,6 +1197,12 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public delegate void Dipendenti2GruppiRowChangeEventHandler(object sender, Dipendenti2GruppiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public delegate void TagMeseRowChangeEventHandler(object sender, TagMeseRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public delegate void ListTagDDRowChangeEventHandler(object sender, ListTagDDRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -7812,6 +7882,10 @@ namespace GPW_data { private global::System.Data.DataColumn columntempRil; + private global::System.Data.DataColumn columnTagIsActive; + + private global::System.Data.DataColumn columnCodTag; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public TE_RA_ExplDataTable() { @@ -8133,6 +8207,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 TagIsActiveColumn { + get { + return this.columnTagIsActive; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CodTagColumn { + get { + return this.columnCodTag; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -8205,7 +8295,9 @@ namespace GPW_data { int minMpp, int minCassa, int min104, - decimal tempRil) { + decimal tempRil, + bool TagIsActive, + string CodTag) { TE_RA_ExplRow rowTE_RA_ExplRow = ((TE_RA_ExplRow)(this.NewRow())); object[] columnValuesArray = new object[] { dataLav, @@ -8243,7 +8335,9 @@ namespace GPW_data { minMpp, minCassa, min104, - tempRil}; + tempRil, + TagIsActive, + CodTag}; rowTE_RA_ExplRow.ItemArray = columnValuesArray; this.Rows.Add(rowTE_RA_ExplRow); return rowTE_RA_ExplRow; @@ -8310,6 +8404,8 @@ namespace GPW_data { this.columnminCassa = base.Columns["minCassa"]; this.columnmin104 = base.Columns["min104"]; this.columntempRil = base.Columns["tempRil"]; + this.columnTagIsActive = base.Columns["TagIsActive"]; + this.columnCodTag = base.Columns["CodTag"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -8387,6 +8483,10 @@ namespace GPW_data { base.Columns.Add(this.columnmin104); this.columntempRil = new global::System.Data.DataColumn("tempRil", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columntempRil); + this.columnTagIsActive = new global::System.Data.DataColumn("TagIsActive", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTagIsActive); + this.columnCodTag = new global::System.Data.DataColumn("CodTag", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodTag); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columndataLav, this.columnidxDipendente}, true)); @@ -8422,6 +8522,9 @@ namespace GPW_data { this.columnminMpp.ReadOnly = true; this.columnminCassa.ReadOnly = true; this.columnmin104.ReadOnly = true; + this.columnTagIsActive.ReadOnly = true; + this.columnCodTag.ReadOnly = true; + this.columnCodTag.MaxLength = 50; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -11293,6 +11396,684 @@ namespace GPW_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class TagMeseDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnanno; + + private global::System.Data.DataColumn columnmese; + + private global::System.Data.DataColumn columnidxDipendente; + + private global::System.Data.DataColumn columnCognomeNome; + + private global::System.Data.DataColumn columnCodTag; + + private global::System.Data.DataColumn columnNumTag; + + private global::System.Data.DataColumn columnNumDis; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public TagMeseDataTable() { + this.TableName = "TagMese"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal TagMeseDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected TagMeseDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn annoColumn { + get { + return this.columnanno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn meseColumn { + get { + return this.columnmese; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn idxDipendenteColumn { + get { + return this.columnidxDipendente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CognomeNomeColumn { + get { + return this.columnCognomeNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CodTagColumn { + get { + return this.columnCodTag; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn NumTagColumn { + get { + return this.columnNumTag; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn NumDisColumn { + get { + return this.columnNumDis; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public TagMeseRow this[int index] { + get { + return ((TagMeseRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event TagMeseRowChangeEventHandler TagMeseRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event TagMeseRowChangeEventHandler TagMeseRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event TagMeseRowChangeEventHandler TagMeseRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event TagMeseRowChangeEventHandler TagMeseRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void AddTagMeseRow(TagMeseRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public TagMeseRow AddTagMeseRow(int anno, int mese, int idxDipendente, string CognomeNome, string CodTag, int NumTag, int NumDis) { + TagMeseRow rowTagMeseRow = ((TagMeseRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + anno, + mese, + idxDipendente, + CognomeNome, + CodTag, + NumTag, + NumDis}; + rowTagMeseRow.ItemArray = columnValuesArray; + this.Rows.Add(rowTagMeseRow); + return rowTagMeseRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public TagMeseRow FindByannoidxDipendentemese(int anno, int idxDipendente, int mese) { + return ((TagMeseRow)(this.Rows.Find(new object[] { + anno, + idxDipendente, + mese}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataTable Clone() { + TagMeseDataTable cln = ((TagMeseDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new TagMeseDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.columnanno = base.Columns["anno"]; + this.columnmese = base.Columns["mese"]; + this.columnidxDipendente = base.Columns["idxDipendente"]; + this.columnCognomeNome = base.Columns["CognomeNome"]; + this.columnCodTag = base.Columns["CodTag"]; + this.columnNumTag = base.Columns["NumTag"]; + this.columnNumDis = base.Columns["NumDis"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.columnanno = new global::System.Data.DataColumn("anno", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnanno); + this.columnmese = new global::System.Data.DataColumn("mese", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmese); + this.columnidxDipendente = new global::System.Data.DataColumn("idxDipendente", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxDipendente); + this.columnCognomeNome = new global::System.Data.DataColumn("CognomeNome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognomeNome); + this.columnCodTag = new global::System.Data.DataColumn("CodTag", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodTag); + this.columnNumTag = new global::System.Data.DataColumn("NumTag", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumTag); + this.columnNumDis = new global::System.Data.DataColumn("NumDis", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumDis); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnanno, + this.columnidxDipendente, + this.columnmese}, true)); + this.columnanno.AllowDBNull = false; + this.columnanno.ReadOnly = true; + this.columnmese.AllowDBNull = false; + this.columnmese.ReadOnly = true; + this.columnidxDipendente.AllowDBNull = false; + this.columnCognomeNome.ReadOnly = true; + this.columnCognomeNome.MaxLength = 101; + this.columnCodTag.AllowDBNull = false; + this.columnCodTag.MaxLength = 50; + this.columnNumTag.ReadOnly = true; + this.columnNumDis.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public TagMeseRow NewTagMeseRow() { + return ((TagMeseRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TagMeseRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(TagMeseRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TagMeseRowChanged != null)) { + this.TagMeseRowChanged(this, new TagMeseRowChangeEvent(((TagMeseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TagMeseRowChanging != null)) { + this.TagMeseRowChanging(this, new TagMeseRowChangeEvent(((TagMeseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TagMeseRowDeleted != null)) { + this.TagMeseRowDeleted(this, new TagMeseRowChangeEvent(((TagMeseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TagMeseRowDeleting != null)) { + this.TagMeseRowDeleting(this, new TagMeseRowChangeEvent(((TagMeseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void RemoveTagMeseRow(TagMeseRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Applicazione ds = new DS_Applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "TagMeseDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ListTagDDDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxTagDD; + + private global::System.Data.DataColumn columnidxDipendente; + + private global::System.Data.DataColumn columnDtRif; + + private global::System.Data.DataColumn columnCodTag; + + private global::System.Data.DataColumn columnIsActive; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public ListTagDDDataTable() { + this.TableName = "ListTagDD"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal ListTagDDDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected ListTagDDDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IdxTagDDColumn { + get { + return this.columnIdxTagDD; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn idxDipendenteColumn { + get { + return this.columnidxDipendente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn DtRifColumn { + get { + return this.columnDtRif; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CodTagColumn { + get { + return this.columnCodTag; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IsActiveColumn { + get { + return this.columnIsActive; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public ListTagDDRow this[int index] { + get { + return ((ListTagDDRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event ListTagDDRowChangeEventHandler ListTagDDRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event ListTagDDRowChangeEventHandler ListTagDDRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event ListTagDDRowChangeEventHandler ListTagDDRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event ListTagDDRowChangeEventHandler ListTagDDRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void AddListTagDDRow(ListTagDDRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public ListTagDDRow AddListTagDDRow(int idxDipendente, System.DateTime DtRif, string CodTag, bool IsActive) { + ListTagDDRow rowListTagDDRow = ((ListTagDDRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + idxDipendente, + DtRif, + CodTag, + IsActive}; + rowListTagDDRow.ItemArray = columnValuesArray; + this.Rows.Add(rowListTagDDRow); + return rowListTagDDRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public ListTagDDRow FindByIdxTagDD(int IdxTagDD) { + return ((ListTagDDRow)(this.Rows.Find(new object[] { + IdxTagDD}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataTable Clone() { + ListTagDDDataTable cln = ((ListTagDDDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new ListTagDDDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.columnIdxTagDD = base.Columns["IdxTagDD"]; + this.columnidxDipendente = base.Columns["idxDipendente"]; + this.columnDtRif = base.Columns["DtRif"]; + this.columnCodTag = base.Columns["CodTag"]; + this.columnIsActive = base.Columns["IsActive"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.columnIdxTagDD = new global::System.Data.DataColumn("IdxTagDD", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxTagDD); + this.columnidxDipendente = new global::System.Data.DataColumn("idxDipendente", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxDipendente); + this.columnDtRif = new global::System.Data.DataColumn("DtRif", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDtRif); + this.columnCodTag = new global::System.Data.DataColumn("CodTag", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodTag); + this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIsActive); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxTagDD}, true)); + this.columnIdxTagDD.AutoIncrement = true; + this.columnIdxTagDD.AutoIncrementSeed = -1; + this.columnIdxTagDD.AutoIncrementStep = -1; + this.columnIdxTagDD.AllowDBNull = false; + this.columnIdxTagDD.ReadOnly = true; + this.columnIdxTagDD.Unique = true; + this.columnidxDipendente.AllowDBNull = false; + this.columnDtRif.AllowDBNull = false; + this.columnCodTag.AllowDBNull = false; + this.columnCodTag.MaxLength = 50; + this.columnIsActive.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public ListTagDDRow NewListTagDDRow() { + return ((ListTagDDRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ListTagDDRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(ListTagDDRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ListTagDDRowChanged != null)) { + this.ListTagDDRowChanged(this, new ListTagDDRowChangeEvent(((ListTagDDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ListTagDDRowChanging != null)) { + this.ListTagDDRowChanging(this, new ListTagDDRowChangeEvent(((ListTagDDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ListTagDDRowDeleted != null)) { + this.ListTagDDRowDeleted(this, new ListTagDDRowChangeEvent(((ListTagDDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ListTagDDRowDeleting != null)) { + this.ListTagDDRowDeleting(this, new ListTagDDRowChangeEvent(((ListTagDDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void RemoveListTagDDRow(ListTagDDRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Applicazione ds = new DS_Applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "ListTagDDDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -16746,6 +17527,38 @@ namespace GPW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool TagIsActive { + get { + try { + return ((bool)(this[this.tableTE_RA_Expl.TagIsActiveColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TagIsActive\' in table \'TE_RA_Expl\' is DBNull.", e); + } + } + set { + this[this.tableTE_RA_Expl.TagIsActiveColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CodTag { + get { + try { + return ((string)(this[this.tableTE_RA_Expl.CodTagColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodTag\' in table \'TE_RA_Expl\' is DBNull.", e); + } + } + set { + this[this.tableTE_RA_Expl.CodTagColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IsCognomeNomeNull() { @@ -17153,6 +17966,30 @@ namespace GPW_data { public void SettempRilNull() { this[this.tableTE_RA_Expl.tempRilColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsTagIsActiveNull() { + return this.IsNull(this.tableTE_RA_Expl.TagIsActiveColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetTagIsActiveNull() { + this[this.tableTE_RA_Expl.TagIsActiveColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsCodTagNull() { + return this.IsNull(this.tableTE_RA_Expl.CodTagColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetCodTagNull() { + this[this.tableTE_RA_Expl.CodTagColumn] = global::System.Convert.DBNull; + } } /// @@ -18271,6 +19108,219 @@ namespace GPW_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class TagMeseRow : global::System.Data.DataRow { + + private TagMeseDataTable tableTagMese; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal TagMeseRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTagMese = ((TagMeseDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int anno { + get { + return ((int)(this[this.tableTagMese.annoColumn])); + } + set { + this[this.tableTagMese.annoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int mese { + get { + return ((int)(this[this.tableTagMese.meseColumn])); + } + set { + this[this.tableTagMese.meseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int idxDipendente { + get { + return ((int)(this[this.tableTagMese.idxDipendenteColumn])); + } + set { + this[this.tableTagMese.idxDipendenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CognomeNome { + get { + try { + return ((string)(this[this.tableTagMese.CognomeNomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CognomeNome\' in table \'TagMese\' is DBNull.", e); + } + } + set { + this[this.tableTagMese.CognomeNomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CodTag { + get { + return ((string)(this[this.tableTagMese.CodTagColumn])); + } + set { + this[this.tableTagMese.CodTagColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int NumTag { + get { + try { + return ((int)(this[this.tableTagMese.NumTagColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumTag\' in table \'TagMese\' is DBNull.", e); + } + } + set { + this[this.tableTagMese.NumTagColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int NumDis { + get { + try { + return ((int)(this[this.tableTagMese.NumDisColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumDis\' in table \'TagMese\' is DBNull.", e); + } + } + set { + this[this.tableTagMese.NumDisColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsCognomeNomeNull() { + return this.IsNull(this.tableTagMese.CognomeNomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetCognomeNomeNull() { + this[this.tableTagMese.CognomeNomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsNumTagNull() { + return this.IsNull(this.tableTagMese.NumTagColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetNumTagNull() { + this[this.tableTagMese.NumTagColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsNumDisNull() { + return this.IsNull(this.tableTagMese.NumDisColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetNumDisNull() { + this[this.tableTagMese.NumDisColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class ListTagDDRow : global::System.Data.DataRow { + + private ListTagDDDataTable tableListTagDD; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal ListTagDDRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableListTagDD = ((ListTagDDDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int IdxTagDD { + get { + return ((int)(this[this.tableListTagDD.IdxTagDDColumn])); + } + set { + this[this.tableListTagDD.IdxTagDDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int idxDipendente { + get { + return ((int)(this[this.tableListTagDD.idxDipendenteColumn])); + } + set { + this[this.tableListTagDD.idxDipendenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public System.DateTime DtRif { + get { + return ((global::System.DateTime)(this[this.tableListTagDD.DtRifColumn])); + } + set { + this[this.tableListTagDD.DtRifColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CodTag { + get { + return ((string)(this[this.tableListTagDD.CodTagColumn])); + } + set { + this[this.tableListTagDD.CodTagColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsActive { + get { + return ((bool)(this[this.tableListTagDD.IsActiveColumn])); + } + set { + this[this.tableListTagDD.IsActiveColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -19086,6 +20136,74 @@ namespace GPW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public class TagMeseRowChangeEvent : global::System.EventArgs { + + private TagMeseRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public TagMeseRowChangeEvent(TagMeseRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public TagMeseRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public class ListTagDDRowChangeEvent : global::System.EventArgs { + + private ListTagDDRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public ListTagDDRowChangeEvent(ListTagDDRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public ListTagDDRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GPW_data.DS_ApplicazioneTableAdapters { @@ -32085,6 +33203,8 @@ SELECT dataLav, idxDipendente, codGiust, minuti FROM Giustificativi WHERE (codGi tableMapping.ColumnMappings.Add("minCassa", "minCassa"); tableMapping.ColumnMappings.Add("min104", "min104"); tableMapping.ColumnMappings.Add("tempRil", "tempRil"); + tableMapping.ColumnMappings.Add("TagIsActive", "TagIsActive"); + tableMapping.ColumnMappings.Add("CodTag", "CodTag"); this._adapter.TableMappings.Add(tableMapping); } @@ -34945,6 +36065,567 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class TagMeseTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public TagMeseTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "TagMese"; + tableMapping.ColumnMappings.Add("anno", "anno"); + tableMapping.ColumnMappings.Add("mese", "mese"); + tableMapping.ColumnMappings.Add("idxDipendente", "idxDipendente"); + tableMapping.ColumnMappings.Add("CognomeNome", "CognomeNome"); + tableMapping.ColumnMappings.Add("CodTag", "CodTag"); + tableMapping.ColumnMappings.Add("NumTag", "NumTag"); + tableMapping.ColumnMappings.Add("NumDis", "NumDis"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GPW_data.Properties.Settings.Default.GPWConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_LTM_ByUserDate"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_LTDD_checkCreateByDipDate"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTag", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtStart", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEnd", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@minParam", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [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.Fill, true)] + public virtual int Fill(DS_Applicazione.TagMeseDataTable dataTable, global::System.Nullable idxDipendente, global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxDipendente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxDipendente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Applicazione.TagMeseDataTable GetData(global::System.Nullable idxDipendente, global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxDipendente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxDipendente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_Applicazione.TagMeseDataTable dataTable = new DS_Applicazione.TagMeseDataTable(); + 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")] + public virtual int checkCreateByDipDate(string CodTag, global::System.Nullable idxDipendente, global::System.Nullable DtStart, global::System.Nullable DtEnd, global::System.Nullable minParam) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((CodTag == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodTag)); + } + if ((idxDipendente.HasValue == true)) { + command.Parameters[2].Value = ((int)(idxDipendente.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((DtStart.HasValue == true)) { + command.Parameters[3].Value = ((System.DateTime)(DtStart.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((DtEnd.HasValue == true)) { + command.Parameters[4].Value = ((System.DateTime)(DtEnd.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((minParam.HasValue == true)) { + command.Parameters[5].Value = ((int)(minParam.Value)); + } + else { + command.Parameters[5].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)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class ListTagDDTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public ListTagDDTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "ListTagDD"; + tableMapping.ColumnMappings.Add("IdxTagDD", "IdxTagDD"); + tableMapping.ColumnMappings.Add("idxDipendente", "idxDipendente"); + tableMapping.ColumnMappings.Add("DtRif", "DtRif"); + tableMapping.ColumnMappings.Add("CodTag", "CodTag"); + tableMapping.ColumnMappings.Add("IsActive", "IsActive"); + 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 [ListTagDD] WHERE (([IdxTagDD] = @Original_IdxTagDD))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTagDD", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTagDD", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "UPDATE [ListTagDD] SET [DtRif] = @DtRif, [IsActive] = @IsActive WHERE (([IdxTagDD" + + "] = @Original_IdxTagDD));\r\nSELECT IdxTagDD, DtRif, IsActive FROM ListTagDD WHERE" + + " (IdxTagDD = @IdxTagDD)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtRif", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTagDD", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTagDD", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTagDD", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTagDD", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GPW_data.Properties.Settings.Default.GPWConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM ListTagDD"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_LTDD_ByUserDate"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_LTDD_toggleActive"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTagDD", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [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.Fill, true)] + public virtual int Fill(DS_Applicazione.ListTagDDDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Applicazione.ListTagDDDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.ListTagDDDataTable dataTable = new DS_Applicazione.ListTagDDDataTable(); + 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Applicazione.ListTagDDDataTable getByUserDate(global::System.Nullable idxDipendente, global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((idxDipendente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxDipendente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_Applicazione.ListTagDDDataTable dataTable = new DS_Applicazione.ListTagDDDataTable(); + 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")] + public virtual int Update(DS_Applicazione.ListTagDDDataTable dataTable) { + return this.Adapter.Update(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")] + public virtual int Update(DS_Applicazione dataSet) { + return this.Adapter.Update(dataSet, "ListTagDD"); + } + + [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")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int toggleActive(global::System.Nullable IdxTagDD) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((IdxTagDD.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxTagDD.Value)); + } + else { + command.Parameters[1].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)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -34989,6 +36670,8 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND private Dipendenti2GruppiTableAdapter _dipendenti2GruppiTableAdapter; + private ListTagDDTableAdapter _listTagDDTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -35228,6 +36911,20 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public ListTagDDTableAdapter ListTagDDTableAdapter { + get { + return this._listTagDDTableAdapter; + } + set { + this._listTagDDTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -35311,6 +37008,10 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND && (this._dipendenti2GruppiTableAdapter.Connection != null))) { return this._dipendenti2GruppiTableAdapter.Connection; } + if (((this._listTagDDTableAdapter != null) + && (this._listTagDDTableAdapter.Connection != null))) { + return this._listTagDDTableAdapter.Connection; + } return null; } set { @@ -35372,6 +37073,9 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND if ((this._dipendenti2GruppiTableAdapter != null)) { count = (count + 1); } + if ((this._listTagDDTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -35383,12 +37087,12 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private int UpdateUpdatedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._anagOrariTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagOrari.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + 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._anagOrariTableAdapter.Update(updatedRows)); + result = (result + this._dipendenti2GruppiTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -35410,21 +37114,12 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(updatedRows); } } - if ((this._dipendenti2GruppiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + 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._dipendenti2GruppiTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._anagFasiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._anagFasiTableAdapter.Update(updatedRows)); + result = (result + this._anagOrariTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -35437,12 +37132,21 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(updatedRows); } } - if ((this._anagClientiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._anagFasiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._anagClientiTableAdapter.Update(updatedRows)); + result = (result + this._anagFasiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._timbratureTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Timbrature.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._timbratureTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -35473,15 +37177,6 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(updatedRows); } } - if ((this._timbratureExplTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.TimbratureExpl.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._timbratureExplTableAdapter.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); @@ -35509,6 +37204,15 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(updatedRows); } } + if ((this._anagClientiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagClientiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._anagDevicesTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.AnagDevices.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -35518,12 +37222,21 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(updatedRows); } } - if ((this._timbratureTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Timbrature.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._timbratureExplTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.TimbratureExpl.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._timbratureTableAdapter.Update(updatedRows)); + result = (result + this._timbratureExplTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._listTagDDTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.ListTagDD.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._listTagDDTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -35537,11 +37250,11 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private int UpdateInsertedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._anagOrariTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagOrari.Select(null, null, global::System.Data.DataViewRowState.Added); + 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._anagOrariTableAdapter.Update(addedRows)); + result = (result + this._dipendenti2GruppiTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -35561,19 +37274,11 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allAddedRows.AddRange(addedRows); } } - if ((this._dipendenti2GruppiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.Added); + 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._dipendenti2GruppiTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._anagFasiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._anagFasiTableAdapter.Update(addedRows)); + result = (result + this._anagOrariTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -35585,11 +37290,19 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allAddedRows.AddRange(addedRows); } } - if ((this._anagClientiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._anagFasiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._anagClientiTableAdapter.Update(addedRows)); + result = (result + this._anagFasiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._timbratureTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Timbrature.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._timbratureTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -35617,14 +37330,6 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allAddedRows.AddRange(addedRows); } } - if ((this._timbratureExplTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.TimbratureExpl.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._timbratureExplTableAdapter.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) @@ -35649,6 +37354,14 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allAddedRows.AddRange(addedRows); } } + if ((this._anagClientiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagClientiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._anagDevicesTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.AnagDevices.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -35657,11 +37370,19 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allAddedRows.AddRange(addedRows); } } - if ((this._timbratureTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Timbrature.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._timbratureExplTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.TimbratureExpl.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._timbratureTableAdapter.Update(addedRows)); + result = (result + this._timbratureExplTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._listTagDDTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.ListTagDD.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._listTagDDTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -35675,11 +37396,19 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._timbratureTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Timbrature.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._listTagDDTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.ListTagDD.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._timbratureTableAdapter.Update(deletedRows)); + result = (result + this._listTagDDTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._timbratureExplTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.TimbratureExpl.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._timbratureExplTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -35691,6 +37420,14 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(deletedRows); } } + if ((this._anagClientiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagClientiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._dipendenti2RuoliTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Dipendenti2Ruoli.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -35715,14 +37452,6 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(deletedRows); } } - if ((this._timbratureExplTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.TimbratureExpl.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._timbratureExplTableAdapter.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) @@ -35747,19 +37476,11 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(deletedRows); } } - if ((this._anagClientiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._timbratureTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Timbrature.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._anagClientiTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._dipendentiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Dipendenti.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._dipendentiTableAdapter.Update(deletedRows)); + result = (result + this._timbratureTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -35771,11 +37492,19 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(deletedRows); } } - if ((this._dipendenti2GruppiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._dipendentiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Dipendenti.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._dipendenti2GruppiTableAdapter.Update(deletedRows)); + result = (result + this._dipendentiTableAdapter.Update(deletedRows)); + 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); } } @@ -35795,11 +37524,11 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND allChangedRows.AddRange(deletedRows); } } - if ((this._anagOrariTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagOrari.Select(null, null, global::System.Data.DataViewRowState.Deleted); + 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._anagOrariTableAdapter.Update(deletedRows)); + result = (result + this._dipendenti2GruppiTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -35922,6 +37651,11 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._listTagDDTableAdapter != null) + && (this.MatchTableAdapterConnection(this._listTagDDTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + @@ -36098,6 +37832,15 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND adaptersWithAcceptChangesDuringUpdate.Add(this._dipendenti2GruppiTableAdapter.Adapter); } } + if ((this._listTagDDTableAdapter != null)) { + revertConnections.Add(this._listTagDDTableAdapter, this._listTagDDTableAdapter.Connection); + this._listTagDDTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._listTagDDTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._listTagDDTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._listTagDDTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._listTagDDTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -36220,6 +37963,10 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND this._dipendenti2GruppiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._dipendenti2GruppiTableAdapter])); this._dipendenti2GruppiTableAdapter.Transaction = null; } + if ((this._listTagDDTableAdapter != null)) { + this._listTagDDTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._listTagDDTableAdapter])); + this._listTagDDTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/GPW_Data/DS_Applicazione.xsd b/GPW_Data/DS_Applicazione.xsd index 7ff3250..a8dbdfe 100644 --- a/GPW_Data/DS_Applicazione.xsd +++ b/GPW_Data/DS_Applicazione.xsd @@ -2672,6 +2672,8 @@ SELECT dataLav, idxDipendente, codGiust, minuti FROM Giustificativi WHERE (codGi + + @@ -3237,6 +3239,114 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND + + + + + + dbo.stp_LTM_ByUserDate + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_LTDD_checkCreateByDipDate + + + + + + + + + + + + + + + + + + + DELETE FROM [ListTagDD] WHERE (([IdxTagDD] = @Original_IdxTagDD)) + + + + + + + + SELECT * FROM ListTagDD + + + + + + UPDATE [ListTagDD] SET [DtRif] = @DtRif, [IsActive] = @IsActive WHERE (([IdxTagDD] = @Original_IdxTagDD)); +SELECT IdxTagDD, DtRif, IsActive FROM ListTagDD WHERE (IdxTagDD = @IdxTagDD) + + + + + + + + + + + + + + + + + + + + + + dbo.stp_LTDD_ByUserDate + + + + + + + + + + + + + dbo.stp_LTDD_toggleActive + + + + + + + + + @@ -3894,7 +4004,7 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND - + @@ -3954,6 +4064,14 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND + + + + + + + + @@ -4177,6 +4295,48 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4283,17 +4443,27 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND + + + + + + + + + + - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/GPW_Data/DS_Applicazione.xss b/GPW_Data/DS_Applicazione.xss index 8321143..5a99da2 100644 --- a/GPW_Data/DS_Applicazione.xss +++ b/GPW_Data/DS_Applicazione.xss @@ -4,35 +4,37 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + 391 @@ -44,7 +46,7 @@ - + 1046 @@ -56,7 +58,7 @@ - + 871 @@ -72,7 +74,7 @@ - + 585 @@ -84,7 +86,7 @@ - + 332 @@ -96,7 +98,7 @@ - + 285 @@ -108,7 +110,7 @@ - + 286 @@ -124,7 +126,7 @@ - + 428 diff --git a/GPW_Data/DataProxy.cs b/GPW_Data/DataProxy.cs index 4bbdd47..aec3d53 100644 --- a/GPW_Data/DataProxy.cs +++ b/GPW_Data/DataProxy.cs @@ -48,6 +48,8 @@ namespace GPW_data public DS_ApplicazioneTableAdapters.regAttDayExplTableAdapter taRAExpl; public DS_ApplicazioneTableAdapters.RegistroEventiTableAdapter taRE; public DS_ApplicazioneTableAdapters.RilievoTempTableAdapter taRT; + public DS_ApplicazioneTableAdapters.ListTagDDTableAdapter taListTDD; + public DS_ApplicazioneTableAdapters.TagMeseTableAdapter taTagMese; public DS_ApplicazioneTableAdapters.TimbratureTableAdapter taTimb; public DS_ApplicazioneTableAdapters.TimbratureExplTableAdapter taTimbExpl; public DS_ApplicazioneTableAdapters.TE_RA_ExplTableAdapter taTimbRegAtt; @@ -178,6 +180,8 @@ namespace GPW_data private void initTA() { taAnCli = new DS_ApplicazioneTableAdapters.AnagClientiTableAdapter(); + taListTDD = new DS_ApplicazioneTableAdapters.ListTagDDTableAdapter(); + taTagMese = new DS_ApplicazioneTableAdapters.TagMeseTableAdapter(); taTimb = new DS_ApplicazioneTableAdapters.TimbratureTableAdapter(); taTimbExpl = new DS_ApplicazioneTableAdapters.TimbratureExplTableAdapter(); taAnagDev = new DS_ApplicazioneTableAdapters.AnagDevicesTableAdapter(); @@ -215,6 +219,8 @@ namespace GPW_data string connGPW = memLayer.ML.confReadString("GPWConnectionString"); // connections del db taAnCli.Connection.ConnectionString = connGPW; + taListTDD.Connection.ConnectionString = connGPW; + taTagMese.Connection.ConnectionString = connGPW; taTimb.Connection.ConnectionString = connGPW; taTimbExpl.Connection.ConnectionString = connGPW; taAnagDev.Connection.ConnectionString = connGPW;