FESTIVITA'
diff --git a/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.cs b/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.cs
index 3bf6384..f991fa0 100644
--- a/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.cs
+++ b/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.cs
@@ -2,7 +2,6 @@
using SteamWare;
using System;
using System.Collections.Generic;
-using System.ComponentModel;
using System.Linq;
using System.Web.UI;
@@ -10,6 +9,177 @@ namespace GPW_Admin.WebUserControls
{
public partial class mod_gestCalendario : BaseUserControl
{
+ #region Public Properties
+
+ public string testoFerie
+ {
+ get => divInsFerie.Visible ? "NASCONDI ADD Ferie" : "MOSTRA ADD Ferie";
+ }
+
+ #endregion Public Properties
+
+ #region Public Methods
+
+ public void doUpdate()
+ {
+ // aggiorno!
+ grView.PageSize = utils.pageSize;
+ grView.DataBind();
+ repCal.DataBind();
+ }
+
+ public List
elencoMesi()
+ {
+ List listaMesi = new List();
+ for (int i = 0; i < 12; i++)
+ {
+ listaMesi.Add(new DateTime(anno, 1 + i, 1));
+ }
+ return listaMesi;
+ }
+
+ #endregion Public Methods
+
+ #region Protected Properties
+
+ ///
+ /// Anno corrente
+ ///
+ protected int anno
+ {
+ get
+ {
+ int answ = 0;
+ if (txtAnno != null && !string.IsNullOrEmpty(txtAnno.Text))
+ {
+ _ = int.TryParse(txtAnno.Text, out answ);
+ }
+ else
+ {
+ answ = DateTime.Today.Year;
+ }
+ return answ;
+ }
+ set
+ {
+ txtAnno.Text = value.ToString();
+ }
+ }
+
+ protected List listCFF { get; set; }
+
+ #endregion Protected Properties
+
+ #region Protected Methods
+
+ protected void calDisplay_DayRender(object sender, System.Web.UI.WebControls.DayRenderEventArgs e)
+ {
+ bool isFest = false;
+ // coloro se fa parte delle festività/ferie...
+ if (listCFF != null && listCFF.Count > 0)
+ {
+ // cerco riga...
+ var thisDate = listCFF.Where(x => x.data == e.Day.Date).FirstOrDefault();
+ if (thisDate != null && e.Cell.CssClass != "text-light")
+ {
+ isFest = true;
+ e.Cell.CssClass = thisDate.codGiust == "FEST" ? "bg-danger text-warning" : "bg-warning";
+ }
+ }
+ // se sab/dom --> grigio
+ if (!isFest && e.Cell.CssClass != "text-light")
+ {
+ if (e.Day.Date.DayOfWeek == DayOfWeek.Saturday || e.Day.Date.DayOfWeek == DayOfWeek.Sunday)
+ {
+ e.Cell.CssClass = "bg-secondary text-light";
+ }
+ }
+ }
+
+ protected void doUpdateCal()
+ {
+ listCFF = CffListByAnno(anno);
+ }
+
+ protected void lbtSave_Click(object sender, EventArgs e)
+ {
+ if (chkLicOk)
+ {
+ int numGG = (int)fineFerie.Subtract(inizioFerie).TotalDays;
+ DateTime currDate = inizioFerie;
+ int currYear = DateTime.Today.Year;
+ // aggiungo ferie x periodo selezionato...
+ for (int i = 0; i <= numGG; i++)
+ {
+ var currDay = inizioFerie.AddDays(i).DayOfWeek;
+ // controllo che NON SIA sabato/domenica...
+ if (currDay != DayOfWeek.Saturday && currDay != DayOfWeek.Sunday)
+ {
+ DataProxy.DP.taCFF.upsertQuery(inizioFerie.AddDays(i), ddlCodGiustInsNew.SelectedValue, txtDescrizione.Text);
+ }
+ }
+ // rieseguo insert festività x anno del periodo...
+ setupFestAnno(inizioFerie.Year);
+ }
+ }
+
+ protected void lbtSetupYear_Click(object sender, EventArgs e)
+ {
+ if (chkLicOk)
+ {
+ setupFestAnno(anno);
+ }
+ }
+
+ protected void lbtShowFerie_Click(object sender, EventArgs e)
+ {
+ if (chkLicOk)
+ {
+ divInsFerie.Visible = !divInsFerie.Visible;
+ }
+ lblTestoFerie.Text = testoFerie;
+ }
+
+ protected void ods_Deleted(object sender, System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs e)
+ {
+ doUpdateCal();
+ }
+
+ protected void ods_Updated(object sender, System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs e)
+ {
+ doUpdateCal();
+ }
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ grView.PageSize = utils.pageSize;
+ if (!Page.IsPostBack)
+ {
+ anno = DateTime.Now.Year;
+ intervalloDate currAnno = new intervalloDate
+ {
+ inizio = DateTime.Today.AddYears(-2),
+ fine = DateTime.Today.AddYears(1)
+ };
+ cmp_periodoAnalisi.intervalloAnalisi = currAnno;
+ lbtSetupYear.DataBind();
+ DateTime oggi = DateTime.Today;
+ inizioFerie = oggi.AddDays(1);
+ fineFerie = oggi.AddDays(2);
+ doUpdateCal();
+ }
+ lbtSetupYear.Visible = chkLicOk;
+ lbtShowFerie.Visible = chkLicOk;
+ lblTestoFerie.Text = testoFerie;
+ }
+
+ protected void repCal_PreRender(object sender, EventArgs e)
+ {
+ doUpdateCal();
+ }
+
+ #endregion Protected Methods
+
#region Private Properties
private DateTime fineFerie
@@ -42,36 +212,20 @@ namespace GPW_Admin.WebUserControls
#endregion Private Properties
- #region Protected Properties
+ #region Private Methods
///
- /// Anno corrente
+ /// Elenco Festività / Ferie x anno
///
- protected int anno
+ ///
+ private List CffListByAnno(int reqYear)
{
- get
- {
- int answ = 0;
- if (txtAnno != null && !string.IsNullOrEmpty(txtAnno.Text))
- {
- _ = int.TryParse(txtAnno.Text, out answ);
- }
- else
- {
- answ = DateTime.Today.Year;
- }
- return answ;
- }
- set
- {
- txtAnno.Text = value.ToString();
- }
+ DateTime inizio = new DateTime(reqYear, 1, 1);
+ DateTime fine = inizio.AddYears(1);
+ List result = DataProxy.DP.taCFF.getPeriod(inizio, fine).ToList();
+ return result;
}
- #endregion Protected Properties
-
- #region Private Methods
-
private void setupFestAnno(int reqYear)
{
// recupero elenco festività
@@ -86,157 +240,7 @@ namespace GPW_Admin.WebUserControls
}
doUpdate();
}
- ///
- /// Elenco Festività / Ferie x anno
- ///
- ///
- private List CffListByAnno(int reqYear)
- {
- DateTime inizio = new DateTime(reqYear, 1, 1);
- DateTime fine = inizio.AddYears(1);
- List result = DataProxy.DP.taCFF.getPeriod(inizio, fine).ToList();
- return result;
- }
-
- public string testoFerie
- {
- get => divInsFerie.Visible ? "NASCONDI ADD Ferie" : "MOSTRA ADD Ferie";
- }
#endregion Private Methods
-
- #region Protected Methods
-
- protected void lbtSave_Click(object sender, EventArgs e)
- {
- if (chkLicOk)
- {
- int numGG = (int)fineFerie.Subtract(inizioFerie).TotalDays;
- DateTime currDate = inizioFerie;
- int currYear = DateTime.Today.Year;
- // aggiungo ferie x periodo selezionato...
- for (int i = 0; i <= numGG; i++)
- {
- var currDay = inizioFerie.AddDays(i).DayOfWeek;
- // controllo che NON SIA sabato/domenica...
- if (currDay != DayOfWeek.Saturday && currDay != DayOfWeek.Sunday)
- {
- DataProxy.DP.taCFF.upsertQuery(inizioFerie.AddDays(i), ddlCodGiustInsNew.SelectedValue, txtDescrizione.Text);
- }
- }
- // rieseguo insert festività x anno del periodo...
- setupFestAnno(inizioFerie.Year);
- }
- }
-
- public List elencoMesi()
- {
- List listaMesi = new List();
- for (int i = 0; i < 12; i++)
- {
- listaMesi.Add(new DateTime(anno, 1 + i, 1));
- }
- return listaMesi;
- }
-
- protected void lbtSetupYear_Click(object sender, EventArgs e)
- {
- if (chkLicOk)
- {
- setupFestAnno(anno);
- }
- }
-
- protected void lbtShowFerie_Click(object sender, EventArgs e)
- {
- if (chkLicOk)
- {
- divInsFerie.Visible = !divInsFerie.Visible;
- }
- lblTestoFerie.Text = testoFerie;
- }
-
- protected void Page_Load(object sender, EventArgs e)
- {
- grView.PageSize = utils.pageSize;
- if (!Page.IsPostBack)
- {
- anno = DateTime.Now.Year;
- intervalloDate currAnno = new intervalloDate
- {
- inizio = DateTime.Today.AddYears(-2),
- fine = DateTime.Today.AddYears(1)
- };
- cmp_periodoAnalisi.intervalloAnalisi = currAnno;
- lbtSetupYear.DataBind();
- DateTime oggi = DateTime.Today;
- inizioFerie = oggi.AddDays(1);
- fineFerie = oggi.AddDays(2);
- doUpdateCal();
- }
- lbtSetupYear.Visible = chkLicOk;
- lbtShowFerie.Visible = chkLicOk;
- lblTestoFerie.Text = testoFerie;
- }
-
- protected List listCFF { get; set; }
-
- #endregion Protected Methods
-
- #region Public Methods
-
- public void doUpdate()
- {
- // aggiorno!
- grView.PageSize = utils.pageSize;
- grView.DataBind();
- repCal.DataBind();
- }
-
- protected void doUpdateCal()
- {
- listCFF = CffListByAnno(anno);
- }
-
- #endregion Public Methods
-
- protected void calDisplay_DayRender(object sender, System.Web.UI.WebControls.DayRenderEventArgs e)
- {
- bool isFest = false;
- // coloro se fa parte delle festività/ferie...
- if (listCFF != null && listCFF.Count > 0)
- {
- // cerco riga...
- var thisDate = listCFF.Where(x => x.data == e.Day.Date).FirstOrDefault();
- if (thisDate != null && e.Cell.CssClass != "text-light")
- {
- isFest = true;
- e.Cell.CssClass = thisDate.codGiust == "FEST" ? "bg-danger text-warning" : "bg-warning";
- }
- }
- // se sab/dom --> grigio
- if (!isFest && e.Cell.CssClass != "text-light")
- {
- if (e.Day.Date.DayOfWeek == DayOfWeek.Saturday || e.Day.Date.DayOfWeek == DayOfWeek.Sunday)
- {
- e.Cell.CssClass = "bg-secondary text-light";
- }
- }
- }
-
- protected void ods_Deleted(object sender, System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs e)
- {
- doUpdateCal();
- }
-
- protected void ods_Updated(object sender, System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs e)
- {
- doUpdateCal();
- }
-
- protected void repCal_PreRender(object sender, EventArgs e)
- {
- doUpdateCal();
- }
}
}
\ No newline at end of file
diff --git a/GPW_Admin/menu.aspx b/GPW_Admin/menu.aspx
index cb3ff03..107642d 100644
--- a/GPW_Admin/menu.aspx
+++ b/GPW_Admin/menu.aspx
@@ -12,7 +12,6 @@
<%: traduci("GpwPresentationText") %>
- <%--
--%>
diff --git a/GPW_Admin/menu.aspx.designer.cs b/GPW_Admin/menu.aspx.designer.cs
index 251a62a..340afb1 100644
--- a/GPW_Admin/menu.aspx.designer.cs
+++ b/GPW_Admin/menu.aspx.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
@@ -15,11 +15,11 @@ namespace GPW_Admin
{
///
- /// Controllo cmp_homeButtons.
+ /// cmp_homeButtons 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_homeButtons cmp_homeButtons;
}
diff --git a/GPW_Admin/richiesteDip.aspx b/GPW_Admin/richiesteDip.aspx
new file mode 100644
index 0000000..c13a9c8
--- /dev/null
+++ b/GPW_Admin/richiesteDip.aspx
@@ -0,0 +1,17 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/BMP.Master" AutoEventWireup="true" CodeBehind="richiesteDip.aspx.cs" Inherits="GPW_Admin.richiesteDip" %>
+<%@ Register Src="~/WebUserControls/mod_pageSize.ascx" TagPrefix="uc1" TagName="mod_pageSize" %>
+<%@ Register Src="~/WebUserControls/cmp_gestRichDip.ascx" TagPrefix="uc1" TagName="cmp_gestRichDip" %>
+
+
+
+
diff --git a/GPW_Admin/richiesteDip.aspx.cs b/GPW_Admin/richiesteDip.aspx.cs
new file mode 100644
index 0000000..64ce5aa
--- /dev/null
+++ b/GPW_Admin/richiesteDip.aspx.cs
@@ -0,0 +1,31 @@
+using GPW_Admin.WebUserControls;
+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 richiesteDip : BasePage
+ {
+ #region Private Methods
+
+ private void Mod_pageSize_eh_nuovaSize(object sender, EventArgs e)
+ {
+ cmp_gestRichDip.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/richiesteDip.aspx.designer.cs b/GPW_Admin/richiesteDip.aspx.designer.cs
new file mode 100644
index 0000000..fd4c98e
--- /dev/null
+++ b/GPW_Admin/richiesteDip.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 richiesteDip
+ {
+
+ ///
+ /// cmp_gestRichDip control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GPW_Admin.WebUserControls.cmp_gestRichDip cmp_gestRichDip;
+
+ ///
+ /// 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 8edda17..9d0d7f8 100644
--- a/GPW_Data/DS_Applicazione.Designer.cs
+++ b/GPW_Data/DS_Applicazione.Designer.cs
@@ -76,6 +76,8 @@ namespace GPW_data {
private ListTagDDDataTable tableListTagDD;
+ private RegistroRichiesteDataTable tableRegistroRichieste;
+
private global::System.Data.DataRelation relationFK_Timbrature_Dipendenti;
private global::System.Data.DataRelation relationFK_AnagFasi_AnagProgetti;
@@ -198,6 +200,9 @@ namespace GPW_data {
if ((ds.Tables["ListTagDD"] != null)) {
base.Tables.Add(new ListTagDDDataTable(ds.Tables["ListTagDD"]));
}
+ if ((ds.Tables["RegistroRichieste"] != null)) {
+ base.Tables.Add(new RegistroRichiesteDataTable(ds.Tables["RegistroRichieste"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -476,6 +481,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 RegistroRichiesteDataTable RegistroRichieste {
+ get {
+ return this.tableRegistroRichieste;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -621,6 +636,9 @@ namespace GPW_data {
if ((ds.Tables["ListTagDD"] != null)) {
base.Tables.Add(new ListTagDDDataTable(ds.Tables["ListTagDD"]));
}
+ if ((ds.Tables["RegistroRichieste"] != null)) {
+ base.Tables.Add(new RegistroRichiesteDataTable(ds.Tables["RegistroRichieste"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -810,6 +828,12 @@ namespace GPW_data {
this.tableListTagDD.InitVars();
}
}
+ this.tableRegistroRichieste = ((RegistroRichiesteDataTable)(base.Tables["RegistroRichieste"]));
+ if ((initTable == true)) {
+ if ((this.tableRegistroRichieste != null)) {
+ this.tableRegistroRichieste.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"];
@@ -880,6 +904,8 @@ namespace GPW_data {
base.Tables.Add(this.tableTagMese);
this.tableListTagDD = new ListTagDDDataTable();
base.Tables.Add(this.tableListTagDD);
+ this.tableRegistroRichieste = new RegistroRichiesteDataTable();
+ base.Tables.Add(this.tableRegistroRichieste);
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);
@@ -1070,6 +1096,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 ShouldSerializeRegistroRichieste() {
+ 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) {
@@ -1203,6 +1235,9 @@ namespace GPW_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public delegate void ListTagDDRowChangeEventHandler(object sender, ListTagDDRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public delegate void RegistroRichiesteRowChangeEventHandler(object sender, RegistroRichiesteRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -12074,6 +12109,360 @@ namespace GPW_data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class RegistroRichiesteDataTable : global::System.Data.TypedTableBase
{
+
+ private global::System.Data.DataColumn columnIdxRegRich;
+
+ private global::System.Data.DataColumn columnIdxDipendente;
+
+ private global::System.Data.DataColumn columnCodGiust;
+
+ private global::System.Data.DataColumn columnDtStart;
+
+ private global::System.Data.DataColumn columnDtEnd;
+
+ private global::System.Data.DataColumn columnNote;
+
+ private global::System.Data.DataColumn columnConf;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public RegistroRichiesteDataTable() {
+ this.TableName = "RegistroRichieste";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ internal RegistroRichiesteDataTable(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 RegistroRichiesteDataTable(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 IdxRegRichColumn {
+ get {
+ return this.columnIdxRegRich;
+ }
+ }
+
+ [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 CodGiustColumn {
+ get {
+ return this.columnCodGiust;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn DtStartColumn {
+ get {
+ return this.columnDtStart;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn DtEndColumn {
+ get {
+ return this.columnDtEnd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn NoteColumn {
+ get {
+ return this.columnNote;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn ConfColumn {
+ get {
+ return this.columnConf;
+ }
+ }
+
+ [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 RegistroRichiesteRow this[int index] {
+ get {
+ return ((RegistroRichiesteRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public event RegistroRichiesteRowChangeEventHandler RegistroRichiesteRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public event RegistroRichiesteRowChangeEventHandler RegistroRichiesteRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public event RegistroRichiesteRowChangeEventHandler RegistroRichiesteRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public event RegistroRichiesteRowChangeEventHandler RegistroRichiesteRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void AddRegistroRichiesteRow(RegistroRichiesteRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public RegistroRichiesteRow AddRegistroRichiesteRow(int IdxDipendente, string CodGiust, System.DateTime DtStart, System.DateTime DtEnd, string Note, bool Conf) {
+ RegistroRichiesteRow rowRegistroRichiesteRow = ((RegistroRichiesteRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ IdxDipendente,
+ CodGiust,
+ DtStart,
+ DtEnd,
+ Note,
+ Conf};
+ rowRegistroRichiesteRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowRegistroRichiesteRow);
+ return rowRegistroRichiesteRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public RegistroRichiesteRow FindByIdxRegRich(int IdxRegRich) {
+ return ((RegistroRichiesteRow)(this.Rows.Find(new object[] {
+ IdxRegRich})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ RegistroRichiesteDataTable cln = ((RegistroRichiesteDataTable)(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 RegistroRichiesteDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ internal void InitVars() {
+ this.columnIdxRegRich = base.Columns["IdxRegRich"];
+ this.columnIdxDipendente = base.Columns["IdxDipendente"];
+ this.columnCodGiust = base.Columns["CodGiust"];
+ this.columnDtStart = base.Columns["DtStart"];
+ this.columnDtEnd = base.Columns["DtEnd"];
+ this.columnNote = base.Columns["Note"];
+ this.columnConf = base.Columns["Conf"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ private void InitClass() {
+ this.columnIdxRegRich = new global::System.Data.DataColumn("IdxRegRich", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxRegRich);
+ this.columnIdxDipendente = new global::System.Data.DataColumn("IdxDipendente", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxDipendente);
+ this.columnCodGiust = new global::System.Data.DataColumn("CodGiust", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodGiust);
+ this.columnDtStart = new global::System.Data.DataColumn("DtStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDtStart);
+ this.columnDtEnd = new global::System.Data.DataColumn("DtEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDtEnd);
+ this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNote);
+ this.columnConf = new global::System.Data.DataColumn("Conf", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnConf);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxRegRich}, true));
+ this.columnIdxRegRich.AutoIncrement = true;
+ this.columnIdxRegRich.AutoIncrementSeed = -1;
+ this.columnIdxRegRich.AutoIncrementStep = -1;
+ this.columnIdxRegRich.AllowDBNull = false;
+ this.columnIdxRegRich.ReadOnly = true;
+ this.columnIdxRegRich.Unique = true;
+ this.columnIdxDipendente.AllowDBNull = false;
+ this.columnCodGiust.AllowDBNull = false;
+ this.columnCodGiust.MaxLength = 5;
+ this.columnDtStart.AllowDBNull = false;
+ this.columnDtEnd.AllowDBNull = false;
+ this.columnNote.AllowDBNull = false;
+ this.columnNote.MaxLength = 250;
+ this.columnConf.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public RegistroRichiesteRow NewRegistroRichiesteRow() {
+ return ((RegistroRichiesteRow)(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 RegistroRichiesteRow(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(RegistroRichiesteRow);
+ }
+
+ [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.RegistroRichiesteRowChanged != null)) {
+ this.RegistroRichiesteRowChanged(this, new RegistroRichiesteRowChangeEvent(((RegistroRichiesteRow)(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.RegistroRichiesteRowChanging != null)) {
+ this.RegistroRichiesteRowChanging(this, new RegistroRichiesteRowChangeEvent(((RegistroRichiesteRow)(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.RegistroRichiesteRowDeleted != null)) {
+ this.RegistroRichiesteRowDeleted(this, new RegistroRichiesteRowChangeEvent(((RegistroRichiesteRow)(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.RegistroRichiesteRowDeleting != null)) {
+ this.RegistroRichiesteRowDeleting(this, new RegistroRichiesteRowChangeEvent(((RegistroRichiesteRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void RemoveRegistroRichiesteRow(RegistroRichiesteRow 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 = "RegistroRichiesteDataTable";
+ 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.
///
@@ -19321,6 +19710,98 @@ namespace GPW_data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class RegistroRichiesteRow : global::System.Data.DataRow {
+
+ private RegistroRichiesteDataTable tableRegistroRichieste;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ internal RegistroRichiesteRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableRegistroRichieste = ((RegistroRichiesteDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public int IdxRegRich {
+ get {
+ return ((int)(this[this.tableRegistroRichieste.IdxRegRichColumn]));
+ }
+ set {
+ this[this.tableRegistroRichieste.IdxRegRichColumn] = 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.tableRegistroRichieste.IdxDipendenteColumn]));
+ }
+ set {
+ this[this.tableRegistroRichieste.IdxDipendenteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string CodGiust {
+ get {
+ return ((string)(this[this.tableRegistroRichieste.CodGiustColumn]));
+ }
+ set {
+ this[this.tableRegistroRichieste.CodGiustColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public System.DateTime DtStart {
+ get {
+ return ((global::System.DateTime)(this[this.tableRegistroRichieste.DtStartColumn]));
+ }
+ set {
+ this[this.tableRegistroRichieste.DtStartColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public System.DateTime DtEnd {
+ get {
+ return ((global::System.DateTime)(this[this.tableRegistroRichieste.DtEndColumn]));
+ }
+ set {
+ this[this.tableRegistroRichieste.DtEndColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string Note {
+ get {
+ return ((string)(this[this.tableRegistroRichieste.NoteColumn]));
+ }
+ set {
+ this[this.tableRegistroRichieste.NoteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool Conf {
+ get {
+ return ((bool)(this[this.tableRegistroRichieste.ConfColumn]));
+ }
+ set {
+ this[this.tableRegistroRichieste.ConfColumn] = value;
+ }
+ }
+ }
+
///
///Row event argument class
///
@@ -20204,6 +20685,40 @@ namespace GPW_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public class RegistroRichiesteRowChangeEvent : global::System.EventArgs {
+
+ private RegistroRichiesteRow 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 RegistroRichiesteRowChangeEvent(RegistroRichiesteRow 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 RegistroRichiesteRow 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 {
@@ -36660,6 +37175,513 @@ 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 RegistroRichiesteTableAdapter : 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 RegistroRichiesteTableAdapter() {
+ 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 = "RegistroRichieste";
+ tableMapping.ColumnMappings.Add("IdxRegRich", "IdxRegRich");
+ tableMapping.ColumnMappings.Add("IdxDipendente", "IdxDipendente");
+ tableMapping.ColumnMappings.Add("CodGiust", "CodGiust");
+ tableMapping.ColumnMappings.Add("DtStart", "DtStart");
+ tableMapping.ColumnMappings.Add("DtEnd", "DtEnd");
+ tableMapping.ColumnMappings.Add("Note", "Note");
+ tableMapping.ColumnMappings.Add("Conf", "Conf");
+ 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 [RegistroRichieste] WHERE (([IdxRegRich] = @Original_IdxRegRich) AND ([IdxDipendente] = @Original_IdxDipendente) AND ([CodGiust] = @Original_CodGiust) AND ([DtStart] = @Original_DtStart) AND ([DtEnd] = @Original_DtEnd) AND ([Note] = @Original_Note) AND ([Conf] = @Original_Conf))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxRegRich", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxRegRich", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGiust", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGiust", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Conf", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Conf", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [RegistroRichieste] ([IdxDipendente], [CodGiust], [DtStart], [DtEnd], [Note], [Conf]) VALUES (@IdxDipendente, @CodGiust, @DtStart, @DtEnd, @Note, @Conf);
+SELECT IdxRegRich, IdxDipendente, CodGiust, DtStart, DtEnd, Note, Conf FROM RegistroRichieste WHERE (IdxRegRich = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGiust", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGiust", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtStart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Conf", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Conf", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [RegistroRichieste] SET [IdxDipendente] = @IdxDipendente, [CodGiust] = @CodGiust, [DtStart] = @DtStart, [DtEnd] = @DtEnd, [Note] = @Note, [Conf] = @Conf WHERE (([IdxRegRich] = @Original_IdxRegRich) AND ([IdxDipendente] = @Original_IdxDipendente) AND ([CodGiust] = @Original_CodGiust) AND ([DtStart] = @Original_DtStart) AND ([DtEnd] = @Original_DtEnd) AND ([Note] = @Original_Note) AND ([Conf] = @Original_Conf));
+SELECT IdxRegRich, IdxDipendente, CodGiust, DtStart, DtEnd, Note, Conf FROM RegistroRichieste WHERE (IdxRegRich = @IdxRegRich)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGiust", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGiust", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtStart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Conf", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Conf", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxRegRich", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxRegRich", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGiust", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGiust", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Conf", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Conf", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxRegRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxRegRich", 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[4];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT * \r\nFROM RegistroRichieste";
+ 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_RR_deleteQuery";
+ 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("@Original_IdxRegRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, 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_RR_getPeriod";
+ 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("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_RR_updateQuery";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxRegRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Conf", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGiust", global::System.Data.SqlDbType.NVarChar, 5, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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.RegistroRichiesteDataTable 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.RegistroRichiesteDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.RegistroRichiesteDataTable dataTable = new DS_Applicazione.RegistroRichiesteDataTable();
+ 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.RegistroRichiesteDataTable getPeriod(global::System.Nullable idxDipendente, global::System.Nullable dataInizio, global::System.Nullable dataFine) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ 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 ((dataInizio.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataInizio.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((dataFine.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataFine.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ DS_Applicazione.RegistroRichiesteDataTable dataTable = new DS_Applicazione.RegistroRichiesteDataTable();
+ 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.RegistroRichiesteDataTable 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, "RegistroRichieste");
+ }
+
+ [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")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_IdxRegRich, int Original_IdxDipendente, string Original_CodGiust, System.DateTime Original_DtStart, System.DateTime Original_DtEnd, string Original_Note, bool Original_Conf) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxRegRich));
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxDipendente));
+ if ((Original_CodGiust == null)) {
+ throw new global::System.ArgumentNullException("Original_CodGiust");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodGiust));
+ }
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_DtStart));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DtEnd));
+ if ((Original_Note == null)) {
+ throw new global::System.ArgumentNullException("Original_Note");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Note));
+ }
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_Conf));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(int IdxDipendente, string CodGiust, System.DateTime DtStart, System.DateTime DtEnd, string Note, bool Conf) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxDipendente));
+ if ((CodGiust == null)) {
+ throw new global::System.ArgumentNullException("CodGiust");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodGiust));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(DtStart));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DtEnd));
+ if ((Note == null)) {
+ throw new global::System.ArgumentNullException("Note");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Note));
+ }
+ this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(Conf));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(int IdxDipendente, string CodGiust, System.DateTime DtStart, System.DateTime DtEnd, string Note, bool Conf, int Original_IdxRegRich, int Original_IdxDipendente, string Original_CodGiust, System.DateTime Original_DtStart, System.DateTime Original_DtEnd, string Original_Note, bool Original_Conf, int IdxRegRich) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxDipendente));
+ if ((CodGiust == null)) {
+ throw new global::System.ArgumentNullException("CodGiust");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodGiust));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(DtStart));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DtEnd));
+ if ((Note == null)) {
+ throw new global::System.ArgumentNullException("Note");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Note));
+ }
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(Conf));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdxRegRich));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdxDipendente));
+ if ((Original_CodGiust == null)) {
+ throw new global::System.ArgumentNullException("Original_CodGiust");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodGiust));
+ }
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_DtStart));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_DtEnd));
+ if ((Original_Note == null)) {
+ throw new global::System.ArgumentNullException("Original_Note");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Note));
+ }
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((bool)(Original_Conf));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(IdxRegRich));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(int IdxDipendente, string CodGiust, System.DateTime DtStart, System.DateTime DtEnd, string Note, bool Conf, int Original_IdxRegRich, int Original_IdxDipendente, string Original_CodGiust, System.DateTime Original_DtStart, System.DateTime Original_DtEnd, string Original_Note, bool Original_Conf) {
+ return this.Update(IdxDipendente, CodGiust, DtStart, DtEnd, Note, Conf, Original_IdxRegRich, Original_IdxDipendente, Original_CodGiust, Original_DtStart, Original_DtEnd, Original_Note, Original_Conf, Original_IdxRegRich);
+ }
+
+ [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 deleteQuery(global::System.Nullable Original_IdxRegRich) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_IdxRegRich.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(Original_IdxRegRich.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;
+ }
+
+ [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 updateQuery(global::System.Nullable Original_IdxRegRich, global::System.Nullable Conf, string CodGiust, string Note) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((Original_IdxRegRich.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(Original_IdxRegRich.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((Conf.HasValue == true)) {
+ command.Parameters[2].Value = ((bool)(Conf.Value));
+ }
+ else {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((CodGiust == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(CodGiust));
+ }
+ if ((Note == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(Note));
+ }
+ 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
///
@@ -36706,6 +37728,8 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
private ListTagDDTableAdapter _listTagDDTableAdapter;
+ private RegistroRichiesteTableAdapter _registroRichiesteTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -36959,6 +37983,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 RegistroRichiesteTableAdapter RegistroRichiesteTableAdapter {
+ get {
+ return this._registroRichiesteTableAdapter;
+ }
+ set {
+ this._registroRichiesteTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -37046,6 +38084,10 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
&& (this._listTagDDTableAdapter.Connection != null))) {
return this._listTagDDTableAdapter.Connection;
}
+ if (((this._registroRichiesteTableAdapter != null)
+ && (this._registroRichiesteTableAdapter.Connection != null))) {
+ return this._registroRichiesteTableAdapter.Connection;
+ }
return null;
}
set {
@@ -37110,6 +38152,9 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
if ((this._listTagDDTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._registroRichiesteTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -37211,6 +38256,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);
+ }
+ }
if ((this._calendFesteFerieTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.CalendFesteFerie.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -37265,12 +38319,12 @@ 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);
+ if ((this._registroRichiesteTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.RegistroRichieste.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));
+ result = (result + this._registroRichiesteTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -37364,6 +38418,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);
+ }
+ }
if ((this._calendFesteFerieTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.CalendFesteFerie.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -37412,11 +38474,11 @@ 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 ((this._registroRichiesteTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.RegistroRichieste.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._listTagDDTableAdapter.Update(addedRows));
+ result = (result + this._registroRichiesteTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -37430,11 +38492,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 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 ((this._registroRichiesteTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.RegistroRichieste.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._listTagDDTableAdapter.Update(deletedRows));
+ result = (result + this._registroRichiesteTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -37486,6 +38548,14 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
allChangedRows.AddRange(deletedRows);
}
}
+ if ((this._listTagDDTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ListTagDD.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._listTagDDTableAdapter.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)
@@ -37690,6 +38760,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._registroRichiesteTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._registroRichiesteTableAdapter.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" +
@@ -37875,6 +38950,15 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
adaptersWithAcceptChangesDuringUpdate.Add(this._listTagDDTableAdapter.Adapter);
}
}
+ if ((this._registroRichiesteTableAdapter != null)) {
+ revertConnections.Add(this._registroRichiesteTableAdapter, this._registroRichiesteTableAdapter.Connection);
+ this._registroRichiesteTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._registroRichiesteTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._registroRichiesteTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._registroRichiesteTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._registroRichiesteTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -38001,6 +39085,10 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
this._listTagDDTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._listTagDDTableAdapter]));
this._listTagDDTableAdapter.Transaction = null;
}
+ if ((this._registroRichiesteTableAdapter != null)) {
+ this._registroRichiesteTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._registroRichiesteTableAdapter]));
+ this._registroRichiesteTableAdapter.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 84ce280..ab5777f 100644
--- a/GPW_Data/DS_Applicazione.xsd
+++ b/GPW_Data/DS_Applicazione.xsd
@@ -5,7 +5,7 @@
-
+
@@ -1428,7 +1428,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
-
+
dbo.stp_AP_duplicateProj
@@ -1474,7 +1474,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
-
+
dbo.stp_AP_Expl_getDataTot
@@ -1507,7 +1507,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
-
+
dbo.stp_AP_insertQuery
@@ -1520,7 +1520,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
-
+
dbo.stp_AP_updateAttivo
@@ -1532,7 +1532,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
-
+
dbo.stp_AP_update
@@ -1546,7 +1546,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
-
+
dbo.stp_AP_updateStarred
@@ -3358,6 +3358,118 @@ SELECT IdxTagDD, DtRif, IsActive FROM ListTagDD WHERE (IdxTagDD = @IdxTagDD)
+
+
+
+
+
+ DELETE FROM [RegistroRichieste] WHERE (([IdxRegRich] = @Original_IdxRegRich) AND ([IdxDipendente] = @Original_IdxDipendente) AND ([CodGiust] = @Original_CodGiust) AND ([DtStart] = @Original_DtStart) AND ([DtEnd] = @Original_DtEnd) AND ([Note] = @Original_Note) AND ([Conf] = @Original_Conf))
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [RegistroRichieste] ([IdxDipendente], [CodGiust], [DtStart], [DtEnd], [Note], [Conf]) VALUES (@IdxDipendente, @CodGiust, @DtStart, @DtEnd, @Note, @Conf);
+SELECT IdxRegRich, IdxDipendente, CodGiust, DtStart, DtEnd, Note, Conf FROM RegistroRichieste WHERE (IdxRegRich = SCOPE_IDENTITY())
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT *
+FROM RegistroRichieste
+
+
+
+
+
+ UPDATE [RegistroRichieste] SET [IdxDipendente] = @IdxDipendente, [CodGiust] = @CodGiust, [DtStart] = @DtStart, [DtEnd] = @DtEnd, [Note] = @Note, [Conf] = @Conf WHERE (([IdxRegRich] = @Original_IdxRegRich) AND ([IdxDipendente] = @Original_IdxDipendente) AND ([CodGiust] = @Original_CodGiust) AND ([DtStart] = @Original_DtStart) AND ([DtEnd] = @Original_DtEnd) AND ([Note] = @Original_Note) AND ([Conf] = @Original_Conf));
+SELECT IdxRegRich, IdxDipendente, CodGiust, DtStart, DtEnd, Note, Conf FROM RegistroRichieste WHERE (IdxRegRich = @IdxRegRich)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_RR_deleteQuery
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_RR_getPeriod
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_RR_updateQuery
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4075,8 +4187,8 @@ SELECT IdxTagDD, DtRif, IsActive FROM ListTagDD WHERE (IdxTagDD = @IdxTagDD)
-
-
+
+
@@ -4306,45 +4418,70 @@ SELECT IdxTagDD, DtRif, IsActive FROM ListTagDD WHERE (IdxTagDD = @IdxTagDD)
-
+
-
-
-
-
+
+
+
+
-
+
-
-
+
+
-
+
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4464,17 +4601,21 @@ SELECT IdxTagDD, DtRif, IsActive FROM ListTagDD WHERE (IdxTagDD = @IdxTagDD)
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GPW_Data/DS_Applicazione.xss b/GPW_Data/DS_Applicazione.xss
index 5a99da2..8842c48 100644
--- a/GPW_Data/DS_Applicazione.xss
+++ b/GPW_Data/DS_Applicazione.xss
@@ -4,37 +4,38 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
391
@@ -46,7 +47,7 @@
-
+
1046
@@ -58,7 +59,7 @@
-
+
871
@@ -74,7 +75,7 @@
-
+
585
@@ -86,7 +87,7 @@
-
+
332
@@ -94,11 +95,11 @@
332
- 962
+ 924
-
+
285
@@ -110,7 +111,7 @@
-
+
286
@@ -126,11 +127,11 @@
-
+
428
- 504
+ 523
428