diff --git a/GPW_Admin/GPW_Admin.csproj b/GPW_Admin/GPW_Admin.csproj
index 4c873be..39fb7c2 100644
--- a/GPW_Admin/GPW_Admin.csproj
+++ b/GPW_Admin/GPW_Admin.csproj
@@ -649,6 +649,7 @@
+
@@ -1055,6 +1056,13 @@
cmp_righePag.ascx
+
+ cmp_tagUserPeriodo.ascx
+ ASPXCodeBehind
+
+
+ cmp_tagUserPeriodo.ascx
+
cmp_ticketFreeActiv.ascx
ASPXCodeBehind
diff --git a/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx
new file mode 100644
index 0000000..671116e
--- /dev/null
+++ b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx
@@ -0,0 +1,21 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_tagUserPeriodo.ascx.cs" Inherits="GPW_Admin.WebUserControls.cmp_tagUserPeriodo" %>
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs
new file mode 100644
index 0000000..86931a1
--- /dev/null
+++ b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs
@@ -0,0 +1,61 @@
+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
+ {
+
+ public event EventHandler eh_reportUpdate;
+
+ 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()
+ {
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ if (eh_reportUpdate != null)
+ {
+ eh_reportUpdate(this, new EventArgs());
+ }
+ }
+
+ public void doUpdate()
+ {
+ grView.DataBind();
+ }
+ }
+}
\ 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_tagMensili.ascx b/GPW_Admin/WebUserControls/mod_tagMensili.ascx
index b9c429c..12c19f3 100644
--- a/GPW_Admin/WebUserControls/mod_tagMensili.ascx
+++ b/GPW_Admin/WebUserControls/mod_tagMensili.ascx
@@ -2,6 +2,8 @@
<%@ 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" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs b/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs
index 96539d0..18462cb 100644
--- a/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs
+++ b/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs
@@ -1,10 +1,7 @@
using GPW_data;
using SteamWare;
using System;
-using System.Collections.Generic;
using System.Data;
-using System.Linq;
-using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
@@ -18,29 +15,28 @@ namespace GPW_Admin.WebUserControls
#endregion Public Events
- #region Private Methods
+ #region Public Methods
- ///
- /// imposto ODS
- ///
- private void checkFixOds()
+ public void doUpdate()
{
- memLayer.ML.setSessionVal("idxDip_sel", filtroDip.valoreInt);
+ grView.PageSize = utils.pageSize;
grView.DataBind();
}
///
- /// seleziono
+ /// resetta la selezione dei valori in caso di modifiche su altri controlli
///
- ///
- ///
- private void filtroDip_eh_selValore(object sender, EventArgs e)
+ public void resetSelezione()
{
- // imposto ods
- checkFixOds();
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ if (eh_resetSelezione != null)
+ {
+ eh_resetSelezione(this, new EventArgs());
+ }
}
- #endregion Private Methods
+ #endregion Public Methods
#region Protected Methods
@@ -61,7 +57,7 @@ namespace GPW_Admin.WebUserControls
protected DataColumnCollection colonneObj()
{
DataColumnCollection colonne = null;
- using (DS_Applicazione.TimbMeseExplDataTable tabella = new DS_Applicazione.TimbMeseExplDataTable())
+ using (DS_Applicazione.TagMeseDataTable tabella = new DS_Applicazione.TagMeseDataTable())
{
colonne = tabella.Columns;
}
@@ -98,27 +94,6 @@ namespace GPW_Admin.WebUserControls
}
}
- ///
- /// annulla inserimento nuovo valore da footer
- ///
- ///
- ///
- protected void lblCanc_click(object sender, EventArgs e)
- {
- // annullo inserimento: nascondo footer, bind controlli...
- grView.FooterRow.Visible = false;
- }
-
- ///
- /// inserisce nuovo valore da footer
- ///
- ///
- ///
- protected void lblIns_click(object sender, EventArgs e)
- {
- // click su inserimento, chiamo il metodo insert dell'ObjectDataSource
- ods.Insert();
- }
///
/// caricamento
@@ -133,142 +108,66 @@ namespace GPW_Admin.WebUserControls
filtroDip.ods = odsDip;
memLayer.ML.emptySessionVal("idxDip_sel");
filtroDip.reselFirst();
- // ricostruisco EVENTUALI date mancanti
- DataProxy.DP.taTimbExpl.stp_timbratureExplFillDate(DateTime.Now.AddMonths(-2), DateTime.Now);
}
filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore);
}
- ///
- /// fix visualizzazione x selezione compensazione richiesta
- ///
- ///
- ///
- protected void rblComp_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (rblComp.SelectedValue == "2")
- {
- txtMinRedExtra.Visible = true;
- }
- else
- {
- txtMinRedExtra.Visible = false;
- }
- //// salvo in sessione il valore selezionato x passarlo alla stored...
- //memLayer.ML.setSessionVal("tipoComp", rblComp.SelectedValue);
- grView.DataBind();
- }
-
- ///
- /// recupera i dati di un nuovo record contenuti nel footer di un gridView;
- /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
- ///
- ///
- ///
- protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
- {
- if (e != null)
- {
- //recupero la riga footer...
- DataColumnCollection colonne = colonneObj();
- string nomeCol;
- string tipoColonna = "";
- foreach (DataColumn colonna in colonne)
- {
- nomeCol = colonna.ColumnName;
- // cerco un textbox o quello che sia...
- if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
- {
- tipoColonna = "textBox";
- }
- else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
- {
- tipoColonna = "dropDownList";
- }
- else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
- {
- tipoColonna = "checkBox";
- }
- // in base al tipo salvo negli inputparameters dell'ODS
- switch (tipoColonna)
- {
- case "textBox":
- e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
- break;
-
- case "dropDownList":
- e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
- break;
-
- case "checkBox":
- e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
- break;
-
- default:
- break;
- }
- tipoColonna = "";
- }
- }
- }
-
#endregion Protected Methods
- #region Public Methods
+ #region Private Methods
///
- /// determina se sia visibile il pulsante per la compensazione permessi/strordinari
+ /// imposto ODS
///
- ///
- ///
- ///
- public bool compPermVisible(object oreStraord, object orePermessi)
+ private void checkFixOds()
{
- bool answ = rblComp.SelectedValue == "1";
- // solo se in fase abilitata alla modifica controllo le ore effettive
- if (answ)
- {
- answ = (Convert.ToDouble(oreStraord) > 0) && (Convert.ToDouble(orePermessi) > 0);
- }
- return answ;
- }
-
- public void doUpdate()
- {
- grView.PageSize = utils.pageSize;
+ memLayer.ML.setSessionVal("idxDip_sel", filtroDip.valoreInt);
grView.DataBind();
}
///
- /// determina se sia visibile il pulsante per la riduzione degli straordinari per il mese/dipendente
+ /// seleziono
///
- ///
- ///
- ///
- public bool reduceVisible(object oreStraord, object oreAssorb)
+ ///
+ ///
+ private void filtroDip_eh_selValore(object sender, EventArgs e)
{
- bool answ = rblComp.SelectedValue == "2";
- // solo se in fase abilitata alla modifica controllo le ore effettive
- if (answ)
- {
- answ = (Convert.ToDouble(oreStraord) >= Convert.ToDouble(oreAssorb)) && (Convert.ToDouble(oreAssorb) > 0);
- }
- return answ;
+ // imposto ods
+ checkFixOds();
}
- ///
- /// resetta la selezione dei valori in caso di modifiche su altri controlli
- ///
- public void resetSelezione()
+ #endregion Private Methods
+
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
- grView.SelectedIndex = -1;
- grView.DataBind();
- if (eh_resetSelezione != null)
- {
- eh_resetSelezione(this, new EventArgs());
- }
+ 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();
}
- #endregion Public Methods
+ 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();
+ }
}
}
\ 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
index 318bf95..79e7c48 100644
--- a/GPW_Admin/WebUserControls/mod_tagMensili.ascx.designer.cs
+++ b/GPW_Admin/WebUserControls/mod_tagMensili.ascx.designer.cs
@@ -42,22 +42,22 @@ namespace GPW_Admin.WebUserControls
protected global::GPW_Admin.WebUserControls.cmp_periodoAnalisi cmp_periodoAnalisi;
///
- /// txtMinRedExtra control.
+ /// lbtRecalc control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.TextBox txtMinRedExtra;
+ protected global::System.Web.UI.WebControls.LinkButton lbtRecalc;
///
- /// rblComp control.
+ /// divMain control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.RadioButtonList rblComp;
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMain;
///
/// grView control.
@@ -85,5 +85,23 @@ namespace GPW_Admin.WebUserControls
/// 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_Data/DS_Applicazione.Designer.cs b/GPW_Data/DS_Applicazione.Designer.cs
index 1889526..986aabf 100644
--- a/GPW_Data/DS_Applicazione.Designer.cs
+++ b/GPW_Data/DS_Applicazione.Designer.cs
@@ -74,6 +74,8 @@ namespace GPW_data {
private TagMeseDataTable tableTagMese;
+ private ListTagDDDataTable tableListTagDD;
+
private global::System.Data.DataRelation relationFK_Timbrature_Dipendenti;
private global::System.Data.DataRelation relationFK_AnagFasi_AnagProgetti;
@@ -193,6 +195,9 @@ namespace GPW_data {
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;
@@ -461,6 +466,16 @@ 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 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)]
@@ -603,6 +618,9 @@ namespace GPW_data {
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;
@@ -786,6 +804,12 @@ namespace GPW_data {
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"];
@@ -854,6 +878,8 @@ namespace GPW_data {
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);
@@ -1038,6 +1064,12 @@ namespace GPW_data {
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) {
@@ -1168,6 +1200,9 @@ namespace GPW_data {
[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.
///
@@ -11701,6 +11736,329 @@ namespace GPW_data {
}
}
+ ///
+ ///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.
///
@@ -18850,6 +19208,76 @@ namespace GPW_data {
}
}
+ ///
+ ///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
///
@@ -19699,6 +20127,40 @@ namespace GPW_data {
}
}
}
+
+ ///
+ ///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 {
@@ -35700,15 +36162,25 @@ 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")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ 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_LTDD_ByUserDate";
+ 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()]
@@ -35770,6 +36242,344 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
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;
+ }
}
///
@@ -35816,6 +36626,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;
@@ -36055,6 +36867,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 {
@@ -36138,6 +36964,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 {
@@ -36199,6 +37029,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;
}
}
@@ -36210,6 +37043,15 @@ 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._dipendenti2GruppiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._dipendenti2GruppiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
if ((this._anagGruppiTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -36237,15 +37079,6 @@ 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);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._dipendenti2GruppiTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._dipendentiTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Dipendenti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -36354,6 +37187,15 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
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);
+ }
+ }
return result;
}
@@ -36364,6 +37206,14 @@ 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._dipendenti2GruppiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Dipendenti2Gruppi.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._dipendenti2GruppiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
if ((this._anagGruppiTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -36388,14 +37238,6 @@ 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 (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._dipendenti2GruppiTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._dipendentiTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Dipendenti.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -36492,6 +37334,14 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
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);
+ }
+ }
return result;
}
@@ -36502,6 +37352,14 @@ 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._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._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)
@@ -36598,14 +37456,6 @@ 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 (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._dipendenti2GruppiTableAdapter.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)
@@ -36630,6 +37480,14 @@ 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 (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._dipendenti2GruppiTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
return result;
}
@@ -36749,6 +37607,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" +
@@ -36925,6 +37788,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 -----------
//
@@ -37047,6 +37919,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 ac976cb..209a0c1 100644
--- a/GPW_Data/DS_Applicazione.xsd
+++ b/GPW_Data/DS_Applicazione.xsd
@@ -3241,10 +3241,10 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
-
+
- dbo.stp_LTDD_ByUserDate
+ dbo.stp_LTM_ByUserDate
@@ -3263,7 +3263,88 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
-
+
+
+
+
+ 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
+
+
+
+
+
+
+
+
@@ -4216,8 +4297,8 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
-
-
+
+
@@ -4237,6 +4318,23 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4349,6 +4447,10 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
+
+
+
+
diff --git a/GPW_Data/DS_Applicazione.xss b/GPW_Data/DS_Applicazione.xss
index 50d379a..5a99da2 100644
--- a/GPW_Data/DS_Applicazione.xss
+++ b/GPW_Data/DS_Applicazione.xss
@@ -4,36 +4,37 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
391
@@ -45,7 +46,7 @@
-
+
1046
@@ -57,7 +58,7 @@
-
+
871
@@ -73,7 +74,7 @@
-
+
585
@@ -85,7 +86,7 @@
-
+
332
@@ -97,7 +98,7 @@
-
+
285
@@ -109,7 +110,7 @@
-
+
286
@@ -125,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;