From 133037246ff57a084a155fe69bc68fbc4096e0bb Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 2 Sep 2020 10:26:34 +0200 Subject: [PATCH 1/2] Inserita gestione temperatura da SMART --- GPW_Admin/progetti.aspx.designer.cs | 28 +- GPW_Data/DS_Applicazione.Designer.cs | 1289 ++++++++++++++--- GPW_Data/DS_Applicazione.xsd | 163 ++- GPW_Data/DS_Applicazione.xss | 65 +- GPW_Data/DataProxy.cs | 492 +++---- GPW_Smart/GPW_Smart.csproj | 16 + GPW_Smart/TempRil.aspx | 7 + GPW_Smart/TempRil.aspx.cs | 17 + GPW_Smart/TempRil.aspx.designer.cs | 26 + GPW_Smart/WebUserControls/cmp_rilTemp.ascx | 53 + GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs | 89 ++ .../cmp_rilTemp.ascx.designer.cs | 53 + GPW_Smart/WebUserControls/mod_timbrature.ascx | 156 +- .../WebUserControls/mod_timbrature.ascx.cs | 485 ++++--- .../mod_timbrature.ascx.designer.cs | 20 +- Jenkinsfile | 2 +- 16 files changed, 2157 insertions(+), 804 deletions(-) create mode 100644 GPW_Smart/TempRil.aspx create mode 100644 GPW_Smart/TempRil.aspx.cs create mode 100644 GPW_Smart/TempRil.aspx.designer.cs create mode 100644 GPW_Smart/WebUserControls/cmp_rilTemp.ascx create mode 100644 GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs create mode 100644 GPW_Smart/WebUserControls/cmp_rilTemp.ascx.designer.cs diff --git a/GPW_Admin/progetti.aspx.designer.cs b/GPW_Admin/progetti.aspx.designer.cs index 12cf053..478bcba 100644 --- a/GPW_Admin/progetti.aspx.designer.cs +++ b/GPW_Admin/progetti.aspx.designer.cs @@ -1,23 +1,25 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// +// Codice generato da uno strumento. // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace GPW_Admin { - - - public partial class progetti { - +namespace GPW_Admin +{ + + + public partial class progetti + { + /// - /// mod_adminProgetti1 control. + /// Controllo mod_adminProgetti1. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::GPW_Admin.WebUserControls.mod_adminProgetti mod_adminProgetti1; } diff --git a/GPW_Data/DS_Applicazione.Designer.cs b/GPW_Data/DS_Applicazione.Designer.cs index 498efaa..6f23a2f 100644 --- a/GPW_Data/DS_Applicazione.Designer.cs +++ b/GPW_Data/DS_Applicazione.Designer.cs @@ -62,6 +62,8 @@ namespace GPW_data { private RegistroEventiDataTable tableRegistroEventi; + private RilievoTempDataTable tableRilievoTemp; + private global::System.Data.DataRelation relationFK_Timbrature_Dipendenti; private global::System.Data.DataRelation relationFK_AnagProgetti_AnagClienti; @@ -74,6 +76,8 @@ namespace GPW_data { private global::System.Data.DataRelation relationFK_Dipendenti_AnagOrari; + private global::System.Data.DataRelation relationFK_RilievoTemp_Dipendenti; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -159,6 +163,9 @@ namespace GPW_data { if ((ds.Tables["RegistroEventi"] != null)) { base.Tables.Add(new RegistroEventiDataTable(ds.Tables["RegistroEventi"])); } + if ((ds.Tables["RilievoTemp"] != null)) { + base.Tables.Add(new RilievoTempDataTable(ds.Tables["RilievoTemp"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -367,6 +374,16 @@ namespace GPW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public RilievoTempDataTable RilievoTemp { + get { + return this.tableRilievoTemp; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -491,6 +508,9 @@ namespace GPW_data { if ((ds.Tables["RegistroEventi"] != null)) { base.Tables.Add(new RegistroEventiDataTable(ds.Tables["RegistroEventi"])); } + if ((ds.Tables["RilievoTemp"] != null)) { + base.Tables.Add(new RilievoTempDataTable(ds.Tables["RilievoTemp"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -638,12 +658,19 @@ namespace GPW_data { this.tableRegistroEventi.InitVars(); } } + this.tableRilievoTemp = ((RilievoTempDataTable)(base.Tables["RilievoTemp"])); + if ((initTable == true)) { + if ((this.tableRilievoTemp != null)) { + this.tableRilievoTemp.InitVars(); + } + } this.relationFK_Timbrature_Dipendenti = this.Relations["FK_Timbrature_Dipendenti"]; this.relationFK_AnagProgetti_AnagClienti = this.Relations["FK_AnagProgetti_AnagClienti"]; this.relationFK_AnagFasi_AnagProgetti = this.Relations["FK_AnagFasi_AnagProgetti"]; this.relationFK_RegAttivita_AnagFasi = this.Relations["FK_RegAttivita_AnagFasi"]; this.relationFK_RegAttivita_Dipendenti = this.Relations["FK_RegAttivita_Dipendenti"]; this.relationFK_Dipendenti_AnagOrari = this.Relations["FK_Dipendenti_AnagOrari"]; + this.relationFK_RilievoTemp_Dipendenti = this.Relations["FK_RilievoTemp_Dipendenti"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -692,6 +719,8 @@ namespace GPW_data { base.Tables.Add(this.tableAnagProgetti_Expl); this.tableRegistroEventi = new RegistroEventiDataTable(); base.Tables.Add(this.tableRegistroEventi); + this.tableRilievoTemp = new RilievoTempDataTable(); + base.Tables.Add(this.tableRilievoTemp); 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); @@ -716,6 +745,10 @@ namespace GPW_data { this.tableAnagOrari.codOrarioColumn}, new global::System.Data.DataColumn[] { this.tableDipendenti.codOrarioColumn}, false); this.Relations.Add(this.relationFK_Dipendenti_AnagOrari); + this.relationFK_RilievoTemp_Dipendenti = new global::System.Data.DataRelation("FK_RilievoTemp_Dipendenti", new global::System.Data.DataColumn[] { + this.tableDipendenti.idxDipendenteColumn}, new global::System.Data.DataColumn[] { + this.tableRilievoTemp.idxDipendenteColumn}, false); + this.Relations.Add(this.relationFK_RilievoTemp_Dipendenti); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -832,6 +865,12 @@ namespace GPW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeRilievoTemp() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -944,6 +983,9 @@ namespace GPW_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void RegistroEventiRowChangeEventHandler(object sender, RegistroEventiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void RilievoTempRowChangeEventHandler(object sender, RilievoTempRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -1350,6 +1392,8 @@ namespace GPW_data { private global::System.Data.DataColumn columnh_giust; + private global::System.Data.DataColumn columntempRil; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public TimbratureExplDataTable() { @@ -1639,6 +1683,14 @@ namespace GPW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn tempRilColumn { + get { + return this.columntempRil; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -1708,7 +1760,8 @@ namespace GPW_data { string chkFunRes, int isOk, int isOkLav, - double h_giust) { + double h_giust, + decimal tempRil) { TimbratureExplRow rowTimbratureExplRow = ((TimbratureExplRow)(this.NewRow())); object[] columnValuesArray = new object[] { dataLav, @@ -1742,7 +1795,8 @@ namespace GPW_data { chkFunRes, isOk, isOkLav, - h_giust}; + h_giust, + tempRil}; rowTimbratureExplRow.ItemArray = columnValuesArray; this.Rows.Add(rowTimbratureExplRow); return rowTimbratureExplRow; @@ -1805,6 +1859,7 @@ namespace GPW_data { this.columnisOk = base.Columns["isOk"]; this.columnisOkLav = base.Columns["isOkLav"]; this.columnh_giust = base.Columns["h_giust"]; + this.columntempRil = base.Columns["tempRil"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1874,6 +1929,8 @@ namespace GPW_data { base.Columns.Add(this.columnisOkLav); this.columnh_giust = new global::System.Data.DataColumn("h_giust", typeof(double), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnh_giust); + this.columntempRil = new global::System.Data.DataColumn("tempRil", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columntempRil); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columndataLav, this.columnidxDipendente}, true)); @@ -1886,6 +1943,7 @@ namespace GPW_data { this.columnisOk.ReadOnly = true; this.columnisOkLav.ReadOnly = true; this.columnh_giust.ReadOnly = true; + this.columntempRil.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -9375,6 +9433,298 @@ namespace GPW_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class RilievoTempDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxDipendente; + + private global::System.Data.DataColumn columndtRilievo; + + private global::System.Data.DataColumn columntempRil; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RilievoTempDataTable() { + this.TableName = "RilievoTemp"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal RilievoTempDataTable(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", "16.0.0.0")] + protected RilievoTempDataTable(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", "16.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", "16.0.0.0")] + public global::System.Data.DataColumn dtRilievoColumn { + get { + return this.columndtRilievo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn tempRilColumn { + get { + return this.columntempRil; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] + public RilievoTempRow this[int index] { + get { + return ((RilievoTempRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event RilievoTempRowChangeEventHandler RilievoTempRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event RilievoTempRowChangeEventHandler RilievoTempRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event RilievoTempRowChangeEventHandler RilievoTempRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event RilievoTempRowChangeEventHandler RilievoTempRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddRilievoTempRow(RilievoTempRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RilievoTempRow AddRilievoTempRow(DipendentiRow parentDipendentiRowByFK_RilievoTemp_Dipendenti, System.DateTime dtRilievo, decimal tempRil) { + RilievoTempRow rowRilievoTempRow = ((RilievoTempRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + dtRilievo, + tempRil}; + if ((parentDipendentiRowByFK_RilievoTemp_Dipendenti != null)) { + columnValuesArray[0] = parentDipendentiRowByFK_RilievoTemp_Dipendenti[0]; + } + rowRilievoTempRow.ItemArray = columnValuesArray; + this.Rows.Add(rowRilievoTempRow); + return rowRilievoTempRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RilievoTempRow FindByidxDipendentedtRilievo(int idxDipendente, System.DateTime dtRilievo) { + return ((RilievoTempRow)(this.Rows.Find(new object[] { + idxDipendente, + dtRilievo}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + RilievoTempDataTable cln = ((RilievoTempDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new RilievoTempDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnidxDipendente = base.Columns["idxDipendente"]; + this.columndtRilievo = base.Columns["dtRilievo"]; + this.columntempRil = base.Columns["tempRil"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnidxDipendente = new global::System.Data.DataColumn("idxDipendente", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxDipendente); + this.columndtRilievo = new global::System.Data.DataColumn("dtRilievo", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndtRilievo); + this.columntempRil = new global::System.Data.DataColumn("tempRil", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columntempRil); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxDipendente, + this.columndtRilievo}, true)); + this.columnidxDipendente.AllowDBNull = false; + this.columndtRilievo.AllowDBNull = false; + this.columntempRil.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RilievoTempRow NewRilievoTempRow() { + return ((RilievoTempRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new RilievoTempRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(RilievoTempRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.RilievoTempRowChanged != null)) { + this.RilievoTempRowChanged(this, new RilievoTempRowChangeEvent(((RilievoTempRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.RilievoTempRowChanging != null)) { + this.RilievoTempRowChanging(this, new RilievoTempRowChangeEvent(((RilievoTempRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.RilievoTempRowDeleted != null)) { + this.RilievoTempRowDeleted(this, new RilievoTempRowChangeEvent(((RilievoTempRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.RilievoTempRowDeleting != null)) { + this.RilievoTempRowDeleting(this, new RilievoTempRowChangeEvent(((RilievoTempRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveRilievoTempRow(RilievoTempRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 = "RilievoTempDataTable"; + 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. /// @@ -10051,6 +10401,17 @@ namespace GPW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal tempRil { + get { + return ((decimal)(this[this.tableTimbratureExpl.tempRilColumn])); + } + set { + this[this.tableTimbratureExpl.tempRilColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsCognomeNomeNull() { @@ -11306,6 +11667,17 @@ namespace GPW_data { return ((RegAttivitaRow[])(base.GetChildRows(this.Table.ChildRelations["FK_RegAttivita_Dipendenti"]))); } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RilievoTempRow[] GetRilievoTempRows() { + if ((this.Table.ChildRelations["FK_RilievoTemp_Dipendenti"] == null)) { + return new RilievoTempRow[0]; + } + else { + return ((RilievoTempRow[])(base.GetChildRows(this.Table.ChildRelations["FK_RilievoTemp_Dipendenti"]))); + } + } } /// @@ -15754,6 +16126,65 @@ namespace GPW_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class RilievoTempRow : global::System.Data.DataRow { + + private RilievoTempDataTable tableRilievoTemp; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal RilievoTempRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableRilievoTemp = ((RilievoTempDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int idxDipendente { + get { + return ((int)(this[this.tableRilievoTemp.idxDipendenteColumn])); + } + set { + this[this.tableRilievoTemp.idxDipendenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime dtRilievo { + get { + return ((global::System.DateTime)(this[this.tableRilievoTemp.dtRilievoColumn])); + } + set { + this[this.tableRilievoTemp.dtRilievoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal tempRil { + get { + return ((decimal)(this[this.tableRilievoTemp.tempRilColumn])); + } + set { + this[this.tableRilievoTemp.tempRilColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public DipendentiRow DipendentiRow { + get { + return ((DipendentiRow)(this.GetParentRow(this.Table.ParentRelations["FK_RilievoTemp_Dipendenti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_RilievoTemp_Dipendenti"]); + } + } + } + /// ///Row event argument class /// @@ -16399,6 +16830,40 @@ namespace GPW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class RilievoTempRowChangeEvent : global::System.EventArgs { + + private RilievoTempRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public RilievoTempRowChangeEvent(RilievoTempRow 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", "16.0.0.0")] + public RilievoTempRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GPW_data.DS_ApplicazioneTableAdapters { @@ -17371,6 +17836,7 @@ SELECT dataOra, idxDipendente, entrata, IPv4, CodTipoTimb, Approv FROM Timbratur tableMapping.ColumnMappings.Add("isOk", "isOk"); tableMapping.ColumnMappings.Add("isOkLav", "isOkLav"); tableMapping.ColumnMappings.Add("h_giust", "h_giust"); + tableMapping.ColumnMappings.Add("tempRil", "tempRil"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -17407,7 +17873,7 @@ SELECT dataOra, idxDipendente, entrata, IPv4, CodTipoTimb, Approv FROM Timbratur "hkFunRes = 1 AND [chkFunRes] IS NULL) OR ([chkFunRes] = @Original_chkFunRes)) AN" + "D ((@IsNull_isOk = 1 AND [isOk] IS NULL) OR ([isOk] = @Original_isOk)) AND ([isO" + "kLav] = @Original_isOkLav) AND ((@IsNull_h_giust = 1 AND [h_giust] IS NULL) OR (" + - "[h_giust] = @Original_h_giust)))"; + "[h_giust] = @Original_h_giust)) AND ([tempRil] = @Original_tempRil))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dataLav", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataLav", 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, "", "", "")); @@ -17470,10 +17936,11 @@ SELECT dataOra, idxDipendente, entrata, IPv4, CodTipoTimb, Approv FROM Timbratur this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isOkLav", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isOkLav", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_h_giust", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "h_giust", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_h_giust", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "h_giust", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tempRil", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "tempRil", 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 [TimbratureExpl] ([dataLav], [idxDipendente], [CognomeNome], [entrata_1], [uscita_1], [entrata_2], [uscita_2], [entrata_3], [uscita_3], [entrata_4], [uscita_4], [h_lav], [minLav], [minOrd], [minNonLav], [minStra], [minPerm], [minFer], [minMal], [minFest], [minCassa], [min104], [minMpp], [isOkTim], [isOkApp], [block], [chkFunCod], [chkFunRes]) VALUES (@dataLav, @idxDipendente, @CognomeNome, @entrata_1, @uscita_1, @entrata_2, @uscita_2, @entrata_3, @uscita_3, @entrata_4, @uscita_4, @h_lav, @minLav, @minOrd, @minNonLav, @minStra, @minPerm, @minFer, @minMal, @minFest, @minCassa, @min104, @minMpp, @isOkTim, @isOkApp, @block, @chkFunCod, @chkFunRes); -SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrata_4, uscita_4, h_lav, minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMal, minFest, minCassa, min104, minMpp, minArcoPres, isOkTim, isOkApp, block, chkFunCod, chkFunRes, isOk, isOkLav, h_giust FROM TimbratureExpl WHERE (dataLav = @dataLav) AND (idxDipendente = @idxDipendente)"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [TimbratureExpl] ([dataLav], [idxDipendente], [CognomeNome], [entrata_1], [uscita_1], [entrata_2], [uscita_2], [entrata_3], [uscita_3], [entrata_4], [uscita_4], [h_lav], [minLav], [minOrd], [minNonLav], [minStra], [minPerm], [minFer], [minMal], [minFest], [minCassa], [min104], [minMpp], [isOkTim], [isOkApp], [block], [chkFunCod], [chkFunRes], [tempRil]) VALUES (@dataLav, @idxDipendente, @CognomeNome, @entrata_1, @uscita_1, @entrata_2, @uscita_2, @entrata_3, @uscita_3, @entrata_4, @uscita_4, @h_lav, @minLav, @minOrd, @minNonLav, @minStra, @minPerm, @minFer, @minMal, @minFest, @minCassa, @min104, @minMpp, @isOkTim, @isOkApp, @block, @chkFunCod, @chkFunRes, @tempRil); +SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrata_4, uscita_4, h_lav, minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMal, minFest, minCassa, min104, minMpp, minArcoPres, isOkTim, isOkApp, block, chkFunCod, chkFunRes, isOk, isOkLav, h_giust, tempRil FROM TimbratureExpl WHERE (dataLav = @dataLav) AND (idxDipendente = @idxDipendente)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataLav", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataLav", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 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, "", "", "")); @@ -17503,6 +17970,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@block", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "block", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkFunCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkFunCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkFunRes", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkFunRes", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tempRil", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "tempRil", 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 [TimbratureExpl] SET [dataLav] = @dataLav, [idxDipendente] = @idxDipendent" + @@ -17513,45 +17981,46 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci "nStra] = @minStra, [minPerm] = @minPerm, [minFer] = @minFer, [minMal] = @minMal," + " [minFest] = @minFest, [minCassa] = @minCassa, [min104] = @min104, [minMpp] = @m" + "inMpp, [isOkTim] = @isOkTim, [isOkApp] = @isOkApp, [block] = @block, [chkFunCod]" + - " = @chkFunCod, [chkFunRes] = @chkFunRes WHERE (([dataLav] = @Original_dataLav) A" + - "ND ([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_CognomeNome = 1 AND" + - " [CognomeNome] IS NULL) OR ([CognomeNome] = @Original_CognomeNome)) AND ((@IsNul" + - "l_entrata_1 = 1 AND [entrata_1] IS NULL) OR ([entrata_1] = @Original_entrata_1))" + - " AND ((@IsNull_uscita_1 = 1 AND [uscita_1] IS NULL) OR ([uscita_1] = @Original_u" + - "scita_1)) AND ((@IsNull_entrata_2 = 1 AND [entrata_2] IS NULL) OR ([entrata_2] =" + - " @Original_entrata_2)) AND ((@IsNull_uscita_2 = 1 AND [uscita_2] IS NULL) OR ([u" + - "scita_2] = @Original_uscita_2)) AND ((@IsNull_entrata_3 = 1 AND [entrata_3] IS N" + - "ULL) OR ([entrata_3] = @Original_entrata_3)) AND ((@IsNull_uscita_3 = 1 AND [usc" + - "ita_3] IS NULL) OR ([uscita_3] = @Original_uscita_3)) AND ((@IsNull_entrata_4 = " + - "1 AND [entrata_4] IS NULL) OR ([entrata_4] = @Original_entrata_4)) AND ((@IsNull" + - "_uscita_4 = 1 AND [uscita_4] IS NULL) OR ([uscita_4] = @Original_uscita_4)) AND " + - "((@IsNull_h_lav = 1 AND [h_lav] IS NULL) OR ([h_lav] = @Original_h_lav)) AND ((@" + - "IsNull_minLav = 1 AND [minLav] IS NULL) OR ([minLav] = @Original_minLav)) AND ((" + - "@IsNull_minOrd = 1 AND [minOrd] IS NULL) OR ([minOrd] = @Original_minOrd)) AND (" + - "(@IsNull_minNonLav = 1 AND [minNonLav] IS NULL) OR ([minNonLav] = @Original_minN" + - "onLav)) AND ((@IsNull_minStra = 1 AND [minStra] IS NULL) OR ([minStra] = @Origin" + - "al_minStra)) AND ((@IsNull_minPerm = 1 AND [minPerm] IS NULL) OR ([minPerm] = @O" + - "riginal_minPerm)) AND ((@IsNull_minFer = 1 AND [minFer] IS NULL) OR ([minFer] = " + - "@Original_minFer)) AND ((@IsNull_minMal = 1 AND [minMal] IS NULL) OR ([minMal] =" + - " @Original_minMal)) AND ((@IsNull_minFest = 1 AND [minFest] IS NULL) OR ([minFes" + - "t] = @Original_minFest)) AND ((@IsNull_minCassa = 1 AND [minCassa] IS NULL) OR (" + - "[minCassa] = @Original_minCassa)) AND ((@IsNull_min104 = 1 AND [min104] IS NULL)" + - " OR ([min104] = @Original_min104)) AND ((@IsNull_minMpp = 1 AND [minMpp] IS NULL" + - ") OR ([minMpp] = @Original_minMpp)) AND ((@IsNull_minArcoPres = 1 AND [minArcoPr" + - "es] IS NULL) OR ([minArcoPres] = @Original_minArcoPres)) AND ((@IsNull_isOkTim =" + - " 1 AND [isOkTim] IS NULL) OR ([isOkTim] = @Original_isOkTim)) AND ((@IsNull_isOk" + - "App = 1 AND [isOkApp] IS NULL) OR ([isOkApp] = @Original_isOkApp)) AND ((@IsNull" + - "_block = 1 AND [block] IS NULL) OR ([block] = @Original_block)) AND ((@IsNull_ch" + - "kFunCod = 1 AND [chkFunCod] IS NULL) OR ([chkFunCod] = @Original_chkFunCod)) AND" + - " ((@IsNull_chkFunRes = 1 AND [chkFunRes] IS NULL) OR ([chkFunRes] = @Original_ch" + - "kFunRes)) AND ((@IsNull_isOk = 1 AND [isOk] IS NULL) OR ([isOk] = @Original_isOk" + - ")) AND ([isOkLav] = @Original_isOkLav) AND ((@IsNull_h_giust = 1 AND [h_giust] I" + - "S NULL) OR ([h_giust] = @Original_h_giust)));\r\nSELECT dataLav, idxDipendente, Co" + - "gnomeNome, entrata_1, uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrat" + - "a_4, uscita_4, h_lav, minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMa" + - "l, minFest, minCassa, min104, minMpp, minArcoPres, isOkTim, isOkApp, block, chkF" + - "unCod, chkFunRes, isOk, isOkLav, h_giust FROM TimbratureExpl WHERE (dataLav = @d" + - "ataLav) AND (idxDipendente = @idxDipendente)"; + " = @chkFunCod, [chkFunRes] = @chkFunRes, [tempRil] = @tempRil WHERE (([dataLav] " + + "= @Original_dataLav) AND ([idxDipendente] = @Original_idxDipendente) AND ((@IsNu" + + "ll_CognomeNome = 1 AND [CognomeNome] IS NULL) OR ([CognomeNome] = @Original_Cogn" + + "omeNome)) AND ((@IsNull_entrata_1 = 1 AND [entrata_1] IS NULL) OR ([entrata_1] =" + + " @Original_entrata_1)) AND ((@IsNull_uscita_1 = 1 AND [uscita_1] IS NULL) OR ([u" + + "scita_1] = @Original_uscita_1)) AND ((@IsNull_entrata_2 = 1 AND [entrata_2] IS N" + + "ULL) OR ([entrata_2] = @Original_entrata_2)) AND ((@IsNull_uscita_2 = 1 AND [usc" + + "ita_2] IS NULL) OR ([uscita_2] = @Original_uscita_2)) AND ((@IsNull_entrata_3 = " + + "1 AND [entrata_3] IS NULL) OR ([entrata_3] = @Original_entrata_3)) AND ((@IsNull" + + "_uscita_3 = 1 AND [uscita_3] IS NULL) OR ([uscita_3] = @Original_uscita_3)) AND " + + "((@IsNull_entrata_4 = 1 AND [entrata_4] IS NULL) OR ([entrata_4] = @Original_ent" + + "rata_4)) AND ((@IsNull_uscita_4 = 1 AND [uscita_4] IS NULL) OR ([uscita_4] = @Or" + + "iginal_uscita_4)) AND ((@IsNull_h_lav = 1 AND [h_lav] IS NULL) OR ([h_lav] = @Or" + + "iginal_h_lav)) AND ((@IsNull_minLav = 1 AND [minLav] IS NULL) OR ([minLav] = @Or" + + "iginal_minLav)) AND ((@IsNull_minOrd = 1 AND [minOrd] IS NULL) OR ([minOrd] = @O" + + "riginal_minOrd)) AND ((@IsNull_minNonLav = 1 AND [minNonLav] IS NULL) OR ([minNo" + + "nLav] = @Original_minNonLav)) AND ((@IsNull_minStra = 1 AND [minStra] IS NULL) O" + + "R ([minStra] = @Original_minStra)) AND ((@IsNull_minPerm = 1 AND [minPerm] IS NU" + + "LL) OR ([minPerm] = @Original_minPerm)) AND ((@IsNull_minFer = 1 AND [minFer] IS" + + " NULL) OR ([minFer] = @Original_minFer)) AND ((@IsNull_minMal = 1 AND [minMal] I" + + "S NULL) OR ([minMal] = @Original_minMal)) AND ((@IsNull_minFest = 1 AND [minFest" + + "] IS NULL) OR ([minFest] = @Original_minFest)) AND ((@IsNull_minCassa = 1 AND [m" + + "inCassa] IS NULL) OR ([minCassa] = @Original_minCassa)) AND ((@IsNull_min104 = 1" + + " AND [min104] IS NULL) OR ([min104] = @Original_min104)) AND ((@IsNull_minMpp = " + + "1 AND [minMpp] IS NULL) OR ([minMpp] = @Original_minMpp)) AND ((@IsNull_minArcoP" + + "res = 1 AND [minArcoPres] IS NULL) OR ([minArcoPres] = @Original_minArcoPres)) A" + + "ND ((@IsNull_isOkTim = 1 AND [isOkTim] IS NULL) OR ([isOkTim] = @Original_isOkTi" + + "m)) AND ((@IsNull_isOkApp = 1 AND [isOkApp] IS NULL) OR ([isOkApp] = @Original_i" + + "sOkApp)) AND ((@IsNull_block = 1 AND [block] IS NULL) OR ([block] = @Original_bl" + + "ock)) AND ((@IsNull_chkFunCod = 1 AND [chkFunCod] IS NULL) OR ([chkFunCod] = @Or" + + "iginal_chkFunCod)) AND ((@IsNull_chkFunRes = 1 AND [chkFunRes] IS NULL) OR ([chk" + + "FunRes] = @Original_chkFunRes)) AND ((@IsNull_isOk = 1 AND [isOk] IS NULL) OR ([" + + "isOk] = @Original_isOk)) AND ([isOkLav] = @Original_isOkLav) AND ((@IsNull_h_giu" + + "st = 1 AND [h_giust] IS NULL) OR ([h_giust] = @Original_h_giust)) AND ([tempRil]" + + " = @Original_tempRil));\r\nSELECT dataLav, idxDipendente, CognomeNome, entrata_1, " + + "uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrata_4, uscita_4, h_lav, " + + "minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMal, minFest, minCassa, " + + "min104, minMpp, minArcoPres, isOkTim, isOkApp, block, chkFunCod, chkFunRes, isOk" + + ", isOkLav, h_giust, tempRil FROM TimbratureExpl WHERE (dataLav = @dataLav) AND (" + + "idxDipendente = @idxDipendente)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataLav", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataLav", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 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, "", "", "")); @@ -17581,6 +18050,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@block", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "block", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkFunCod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkFunCod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chkFunRes", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chkFunRes", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tempRil", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "tempRil", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dataLav", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataLav", 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("@IsNull_CognomeNome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CognomeNome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -17642,6 +18112,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isOkLav", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isOkLav", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_h_giust", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "h_giust", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_h_giust", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "h_giust", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tempRil", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "tempRil", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17964,7 +18435,8 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci string Original_chkFunRes, global::System.Nullable Original_isOk, int Original_isOkLav, - global::System.Nullable Original_h_giust) { + global::System.Nullable Original_h_giust, + decimal Original_tempRil) { this.Adapter.DeleteCommand.Parameters[0].Value = ((System.DateTime)(Original_dataLav)); this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_idxDipendente)); if ((Original_CognomeNome == null)) { @@ -18200,6 +18672,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci this.Adapter.DeleteCommand.Parameters[59].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[60].Value = global::System.DBNull.Value; } + this.Adapter.DeleteCommand.Parameters[61].Value = ((decimal)(Original_tempRil)); 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)) { @@ -18248,7 +18721,8 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci global::System.Nullable isOkApp, global::System.Nullable block, string chkFunCod, - string chkFunRes) { + string chkFunRes, + decimal tempRil) { this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(dataLav)); this.Adapter.InsertCommand.Parameters[1].Value = ((int)(idxDipendente)); if ((CognomeNome == null)) { @@ -18407,6 +18881,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci else { this.Adapter.InsertCommand.Parameters[27].Value = ((string)(chkFunRes)); } + this.Adapter.InsertCommand.Parameters[28].Value = ((decimal)(tempRil)); 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)) { @@ -18456,6 +18931,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci global::System.Nullable block, string chkFunCod, string chkFunRes, + decimal tempRil, System.DateTime Original_dataLav, int Original_idxDipendente, string Original_CognomeNome, @@ -18487,7 +18963,8 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci string Original_chkFunRes, global::System.Nullable Original_isOk, int Original_isOkLav, - global::System.Nullable Original_h_giust) { + global::System.Nullable Original_h_giust, + decimal Original_tempRil) { this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(dataLav)); this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(idxDipendente)); if ((CognomeNome == null)) { @@ -18646,241 +19123,243 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci else { this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(chkFunRes)); } - this.Adapter.UpdateCommand.Parameters[28].Value = ((System.DateTime)(Original_dataLav)); - this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_idxDipendente)); + this.Adapter.UpdateCommand.Parameters[28].Value = ((decimal)(tempRil)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(Original_dataLav)); + this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_idxDipendente)); if ((Original_CognomeNome == null)) { - this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_CognomeNome)); + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_CognomeNome)); } if ((Original_entrata_1.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[33].Value = ((System.DateTime)(Original_entrata_1.Value)); + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[34].Value = ((System.DateTime)(Original_entrata_1.Value)); } else { - this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value; } if ((Original_uscita_1.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[35].Value = ((System.DateTime)(Original_uscita_1.Value)); + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[36].Value = ((System.DateTime)(Original_uscita_1.Value)); } else { - this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; } if ((Original_entrata_2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[37].Value = ((System.DateTime)(Original_entrata_2.Value)); + this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[38].Value = ((System.DateTime)(Original_entrata_2.Value)); } else { - this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value; } if ((Original_uscita_2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[39].Value = ((System.DateTime)(Original_uscita_2.Value)); + this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[40].Value = ((System.DateTime)(Original_uscita_2.Value)); } else { - this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value; } if ((Original_entrata_3.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[41].Value = ((System.DateTime)(Original_entrata_3.Value)); + this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[42].Value = ((System.DateTime)(Original_entrata_3.Value)); } else { - this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value; } if ((Original_uscita_3.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[43].Value = ((System.DateTime)(Original_uscita_3.Value)); + this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[44].Value = ((System.DateTime)(Original_uscita_3.Value)); } else { - this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value; } if ((Original_entrata_4.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[45].Value = ((System.DateTime)(Original_entrata_4.Value)); + this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[46].Value = ((System.DateTime)(Original_entrata_4.Value)); } else { - this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value; } if ((Original_uscita_4.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[47].Value = ((System.DateTime)(Original_uscita_4.Value)); + this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[48].Value = ((System.DateTime)(Original_uscita_4.Value)); } else { - this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; } if ((Original_h_lav.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[49].Value = ((double)(Original_h_lav.Value)); + this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[50].Value = ((double)(Original_h_lav.Value)); } else { - this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; } if ((Original_minLav.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[51].Value = ((int)(Original_minLav.Value)); + this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[52].Value = ((int)(Original_minLav.Value)); } else { - this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value; } if ((Original_minOrd.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[53].Value = ((int)(Original_minOrd.Value)); + this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[54].Value = ((int)(Original_minOrd.Value)); } else { - this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value; } if ((Original_minNonLav.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[55].Value = ((int)(Original_minNonLav.Value)); + this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[56].Value = ((int)(Original_minNonLav.Value)); } else { - this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value; } if ((Original_minStra.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[57].Value = ((int)(Original_minStra.Value)); + this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[58].Value = ((int)(Original_minStra.Value)); } else { - this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value; } if ((Original_minPerm.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[59].Value = ((int)(Original_minPerm.Value)); + this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[60].Value = ((int)(Original_minPerm.Value)); } else { - this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value; } if ((Original_minFer.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[61].Value = ((int)(Original_minFer.Value)); + this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[62].Value = ((int)(Original_minFer.Value)); } else { - this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value; } if ((Original_minMal.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[63].Value = ((int)(Original_minMal.Value)); + this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[64].Value = ((int)(Original_minMal.Value)); } else { - this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value; } if ((Original_minFest.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[65].Value = ((int)(Original_minFest.Value)); + this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[66].Value = ((int)(Original_minFest.Value)); } else { - this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value; } if ((Original_minCassa.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[67].Value = ((int)(Original_minCassa.Value)); + this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[68].Value = ((int)(Original_minCassa.Value)); } else { - this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value; } if ((Original_min104.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[69].Value = ((int)(Original_min104.Value)); + this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[70].Value = ((int)(Original_min104.Value)); } else { - this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value; } if ((Original_minMpp.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[71].Value = ((int)(Original_minMpp.Value)); + this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[72].Value = ((int)(Original_minMpp.Value)); } else { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value; } if ((Original_minArcoPres.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[73].Value = ((int)(Original_minArcoPres.Value)); + this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[74].Value = ((int)(Original_minArcoPres.Value)); } else { - this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value; } if ((Original_isOkTim.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[75].Value = ((bool)(Original_isOkTim.Value)); + this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[76].Value = ((bool)(Original_isOkTim.Value)); } else { - this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value; } if ((Original_isOkApp.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[77].Value = ((bool)(Original_isOkApp.Value)); + this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[78].Value = ((bool)(Original_isOkApp.Value)); } else { - this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[77].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value; } if ((Original_block.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[79].Value = ((bool)(Original_block.Value)); + this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[80].Value = ((bool)(Original_block.Value)); } else { - this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[79].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value; } if ((Original_chkFunCod == null)) { - this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[81].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[82].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[81].Value = ((string)(Original_chkFunCod)); + this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[82].Value = ((string)(Original_chkFunCod)); } if ((Original_chkFunRes == null)) { - this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[83].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[84].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[83].Value = ((string)(Original_chkFunRes)); + this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[84].Value = ((string)(Original_chkFunRes)); } if ((Original_isOk.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[85].Value = ((int)(Original_isOk.Value)); + this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[86].Value = ((int)(Original_isOk.Value)); } else { - this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[85].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[86].Value = global::System.DBNull.Value; } - this.Adapter.UpdateCommand.Parameters[86].Value = ((int)(Original_isOkLav)); + this.Adapter.UpdateCommand.Parameters[87].Value = ((int)(Original_isOkLav)); if ((Original_h_giust.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[88].Value = ((double)(Original_h_giust.Value)); + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[89].Value = ((double)(Original_h_giust.Value)); } else { - this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[89].Value = global::System.DBNull.Value; } + this.Adapter.UpdateCommand.Parameters[90].Value = ((decimal)(Original_tempRil)); 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)) { @@ -18928,6 +19407,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci global::System.Nullable block, string chkFunCod, string chkFunRes, + decimal tempRil, System.DateTime Original_dataLav, int Original_idxDipendente, string Original_CognomeNome, @@ -18959,8 +19439,9 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci string Original_chkFunRes, global::System.Nullable Original_isOk, int Original_isOkLav, - global::System.Nullable Original_h_giust) { - return this.Update(Original_dataLav, Original_idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrata_4, uscita_4, h_lav, minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMal, minFest, minCassa, min104, minMpp, isOkTim, isOkApp, block, chkFunCod, chkFunRes, Original_dataLav, Original_idxDipendente, Original_CognomeNome, Original_entrata_1, Original_uscita_1, Original_entrata_2, Original_uscita_2, Original_entrata_3, Original_uscita_3, Original_entrata_4, Original_uscita_4, Original_h_lav, Original_minLav, Original_minOrd, Original_minNonLav, Original_minStra, Original_minPerm, Original_minFer, Original_minMal, Original_minFest, Original_minCassa, Original_min104, Original_minMpp, Original_minArcoPres, Original_isOkTim, Original_isOkApp, Original_block, Original_chkFunCod, Original_chkFunRes, Original_isOk, Original_isOkLav, Original_h_giust); + global::System.Nullable Original_h_giust, + decimal Original_tempRil) { + return this.Update(Original_dataLav, Original_idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrata_4, uscita_4, h_lav, minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMal, minFest, minCassa, min104, minMpp, isOkTim, isOkApp, block, chkFunCod, chkFunRes, tempRil, Original_dataLav, Original_idxDipendente, Original_CognomeNome, Original_entrata_1, Original_uscita_1, Original_entrata_2, Original_uscita_2, Original_entrata_3, Original_uscita_3, Original_entrata_4, Original_uscita_4, Original_h_lav, Original_minLav, Original_minOrd, Original_minNonLav, Original_minStra, Original_minPerm, Original_minFer, Original_minMal, Original_minFest, Original_minCassa, Original_min104, Original_minMpp, Original_minArcoPres, Original_isOkTim, Original_isOkApp, Original_block, Original_chkFunCod, Original_chkFunRes, Original_isOk, Original_isOkLav, Original_h_giust, Original_tempRil); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -30013,6 +30494,394 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) } } + /// + ///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 RilievoTempTableAdapter : 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", "16.0.0.0")] + public RilievoTempTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "RilievoTemp"; + tableMapping.ColumnMappings.Add("idxDipendente", "idxDipendente"); + tableMapping.ColumnMappings.Add("dtRilievo", "dtRilievo"); + tableMapping.ColumnMappings.Add("tempRil", "tempRil"); + 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 [RilievoTemp] WHERE (([idxDipendente] = @Original_idxDipendente) AND " + + "([dtRilievo] = @Original_dtRilievo) AND ([tempRil] = @Original_tempRil))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dtRilievo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtRilievo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tempRil", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "tempRil", 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 [RilievoTemp] ([idxDipendente], [dtRilievo], [tempRil]) VALUES (@idxD" + + "ipendente, @dtRilievo, @tempRil);\r\nSELECT idxDipendente, dtRilievo, tempRil FROM" + + " RilievoTemp WHERE (dtRilievo = @dtRilievo) AND (idxDipendente = @idxDipendente)" + + ""; + 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("@dtRilievo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtRilievo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tempRil", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "tempRil", 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 [RilievoTemp] SET [idxDipendente] = @idxDipendente, [dtRilievo] = @dtRilievo, [tempRil] = @tempRil WHERE (([idxDipendente] = @Original_idxDipendente) AND ([dtRilievo] = @Original_dtRilievo) AND ([tempRil] = @Original_tempRil)); +SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dtRilievo) AND (idxDipendente = @idxDipendente)"; + 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("@dtRilievo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtRilievo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tempRil", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "tempRil", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dtRilievo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtRilievo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tempRil", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "tempRil", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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 *\r\nFROM RilievoTemp"; + 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_RT_getByKey"; + 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("@dtRilievo", 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_RT_upsertQuery"; + 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("@dtRilievo", 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("@tempRil", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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.RilievoTempDataTable 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", "16.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.RilievoTempDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.RilievoTempDataTable dataTable = new DS_Applicazione.RilievoTempDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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.RilievoTempDataTable getByKey(global::System.Nullable idxDipendente, global::System.Nullable dtRilievo) { + 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 ((dtRilievo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dtRilievo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_Applicazione.RilievoTempDataTable dataTable = new DS_Applicazione.RilievoTempDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione.RilievoTempDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione dataSet) { + return this.Adapter.Update(dataSet, "RilievoTemp"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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_idxDipendente, System.DateTime Original_dtRilievo, decimal Original_tempRil) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxDipendente)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_dtRilievo)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_tempRil)); + 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", "16.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, System.DateTime dtRilievo, decimal tempRil) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxDipendente)); + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(dtRilievo)); + this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(tempRil)); + 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", "16.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, System.DateTime dtRilievo, decimal tempRil, int Original_idxDipendente, System.DateTime Original_dtRilievo, decimal Original_tempRil) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxDipendente)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(dtRilievo)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(tempRil)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idxDipendente)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Original_dtRilievo)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(Original_tempRil)); + 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", "16.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(decimal tempRil, int Original_idxDipendente, System.DateTime Original_dtRilievo, decimal Original_tempRil) { + return this.Update(Original_idxDipendente, Original_dtRilievo, tempRil, Original_idxDipendente, Original_dtRilievo, Original_tempRil); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int upsertQuery(global::System.Nullable idxDipendente, global::System.Nullable dtRilievo, global::System.Nullable tempRil) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((idxDipendente.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxDipendente.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((dtRilievo.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(dtRilievo.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((tempRil.HasValue == true)) { + command.Parameters[3].Value = ((decimal)(tempRil.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -30051,6 +30920,8 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) private RegistroEventiTableAdapter _registroEventiTableAdapter; + private RilievoTempTableAdapter _rilievoTempTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -30248,6 +31119,20 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 RilievoTempTableAdapter RilievoTempTableAdapter { + get { + return this._rilievoTempTableAdapter; + } + set { + this._rilievoTempTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -30319,6 +31204,10 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) && (this._registroEventiTableAdapter.Connection != null))) { return this._registroEventiTableAdapter.Connection; } + if (((this._rilievoTempTableAdapter != null) + && (this._rilievoTempTableAdapter.Connection != null))) { + return this._rilievoTempTableAdapter.Connection; + } return null; } set { @@ -30371,6 +31260,9 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) if ((this._registroEventiTableAdapter != null)) { count = (count + 1); } + if ((this._rilievoTempTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -30454,6 +31346,15 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) allChangedRows.AddRange(updatedRows); } } + if ((this._registroEventiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.RegistroEventi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._registroEventiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._dipendenti2RuoliTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Dipendenti2Ruoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -30490,12 +31391,12 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) allChangedRows.AddRange(updatedRows); } } - if ((this._registroEventiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.RegistroEventi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._rilievoTempTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._registroEventiTableAdapter.Update(updatedRows)); + result = (result + this._rilievoTempTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -30573,6 +31474,14 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) allAddedRows.AddRange(addedRows); } } + if ((this._registroEventiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.RegistroEventi.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._registroEventiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._dipendenti2RuoliTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Dipendenti2Ruoli.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -30605,11 +31514,11 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) allAddedRows.AddRange(addedRows); } } - if ((this._registroEventiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.RegistroEventi.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._rilievoTempTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._registroEventiTableAdapter.Update(addedRows)); + result = (result + this._rilievoTempTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -30623,11 +31532,11 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._registroEventiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.RegistroEventi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._rilievoTempTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.RilievoTemp.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._registroEventiTableAdapter.Update(deletedRows)); + result = (result + this._rilievoTempTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -30663,6 +31572,14 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) allChangedRows.AddRange(deletedRows); } } + if ((this._registroEventiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.RegistroEventi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._registroEventiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._regAttivitaTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.RegAttivita.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -30831,6 +31748,11 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + "a stessa stringa di connessione."); } + if (((this._rilievoTempTableAdapter != null) + && (this.MatchTableAdapterConnection(this._rilievoTempTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + + "a stessa stringa di connessione."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" + @@ -30981,6 +31903,15 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) adaptersWithAcceptChangesDuringUpdate.Add(this._registroEventiTableAdapter.Adapter); } } + if ((this._rilievoTempTableAdapter != null)) { + revertConnections.Add(this._rilievoTempTableAdapter, this._rilievoTempTableAdapter.Connection); + this._rilievoTempTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._rilievoTempTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._rilievoTempTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._rilievoTempTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._rilievoTempTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -31091,6 +32022,10 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) this._registroEventiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._registroEventiTableAdapter])); this._registroEventiTableAdapter.Transaction = null; } + if ((this._rilievoTempTableAdapter != null)) { + this._rilievoTempTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rilievoTempTableAdapter])); + this._rilievoTempTableAdapter.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 35d1ddf..0590906 100644 --- a/GPW_Data/DS_Applicazione.xsd +++ b/GPW_Data/DS_Applicazione.xsd @@ -213,7 +213,7 @@ SELECT dataOra, idxDipendente, entrata, IPv4, CodTipoTimb, Approv FROM Timbratur - DELETE FROM [TimbratureExpl] WHERE (([dataLav] = @Original_dataLav) AND ([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_CognomeNome = 1 AND [CognomeNome] IS NULL) OR ([CognomeNome] = @Original_CognomeNome)) AND ((@IsNull_entrata_1 = 1 AND [entrata_1] IS NULL) OR ([entrata_1] = @Original_entrata_1)) AND ((@IsNull_uscita_1 = 1 AND [uscita_1] IS NULL) OR ([uscita_1] = @Original_uscita_1)) AND ((@IsNull_entrata_2 = 1 AND [entrata_2] IS NULL) OR ([entrata_2] = @Original_entrata_2)) AND ((@IsNull_uscita_2 = 1 AND [uscita_2] IS NULL) OR ([uscita_2] = @Original_uscita_2)) AND ((@IsNull_entrata_3 = 1 AND [entrata_3] IS NULL) OR ([entrata_3] = @Original_entrata_3)) AND ((@IsNull_uscita_3 = 1 AND [uscita_3] IS NULL) OR ([uscita_3] = @Original_uscita_3)) AND ((@IsNull_entrata_4 = 1 AND [entrata_4] IS NULL) OR ([entrata_4] = @Original_entrata_4)) AND ((@IsNull_uscita_4 = 1 AND [uscita_4] IS NULL) OR ([uscita_4] = @Original_uscita_4)) AND ((@IsNull_h_lav = 1 AND [h_lav] IS NULL) OR ([h_lav] = @Original_h_lav)) AND ((@IsNull_minLav = 1 AND [minLav] IS NULL) OR ([minLav] = @Original_minLav)) AND ((@IsNull_minOrd = 1 AND [minOrd] IS NULL) OR ([minOrd] = @Original_minOrd)) AND ((@IsNull_minNonLav = 1 AND [minNonLav] IS NULL) OR ([minNonLav] = @Original_minNonLav)) AND ((@IsNull_minStra = 1 AND [minStra] IS NULL) OR ([minStra] = @Original_minStra)) AND ((@IsNull_minPerm = 1 AND [minPerm] IS NULL) OR ([minPerm] = @Original_minPerm)) AND ((@IsNull_minFer = 1 AND [minFer] IS NULL) OR ([minFer] = @Original_minFer)) AND ((@IsNull_minMal = 1 AND [minMal] IS NULL) OR ([minMal] = @Original_minMal)) AND ((@IsNull_minFest = 1 AND [minFest] IS NULL) OR ([minFest] = @Original_minFest)) AND ((@IsNull_minCassa = 1 AND [minCassa] IS NULL) OR ([minCassa] = @Original_minCassa)) AND ((@IsNull_min104 = 1 AND [min104] IS NULL) OR ([min104] = @Original_min104)) AND ((@IsNull_minMpp = 1 AND [minMpp] IS NULL) OR ([minMpp] = @Original_minMpp)) AND ((@IsNull_minArcoPres = 1 AND [minArcoPres] IS NULL) OR ([minArcoPres] = @Original_minArcoPres)) AND ((@IsNull_isOkTim = 1 AND [isOkTim] IS NULL) OR ([isOkTim] = @Original_isOkTim)) AND ((@IsNull_isOkApp = 1 AND [isOkApp] IS NULL) OR ([isOkApp] = @Original_isOkApp)) AND ((@IsNull_block = 1 AND [block] IS NULL) OR ([block] = @Original_block)) AND ((@IsNull_chkFunCod = 1 AND [chkFunCod] IS NULL) OR ([chkFunCod] = @Original_chkFunCod)) AND ((@IsNull_chkFunRes = 1 AND [chkFunRes] IS NULL) OR ([chkFunRes] = @Original_chkFunRes)) AND ((@IsNull_isOk = 1 AND [isOk] IS NULL) OR ([isOk] = @Original_isOk)) AND ([isOkLav] = @Original_isOkLav) AND ((@IsNull_h_giust = 1 AND [h_giust] IS NULL) OR ([h_giust] = @Original_h_giust))) + DELETE FROM [TimbratureExpl] WHERE (([dataLav] = @Original_dataLav) AND ([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_CognomeNome = 1 AND [CognomeNome] IS NULL) OR ([CognomeNome] = @Original_CognomeNome)) AND ((@IsNull_entrata_1 = 1 AND [entrata_1] IS NULL) OR ([entrata_1] = @Original_entrata_1)) AND ((@IsNull_uscita_1 = 1 AND [uscita_1] IS NULL) OR ([uscita_1] = @Original_uscita_1)) AND ((@IsNull_entrata_2 = 1 AND [entrata_2] IS NULL) OR ([entrata_2] = @Original_entrata_2)) AND ((@IsNull_uscita_2 = 1 AND [uscita_2] IS NULL) OR ([uscita_2] = @Original_uscita_2)) AND ((@IsNull_entrata_3 = 1 AND [entrata_3] IS NULL) OR ([entrata_3] = @Original_entrata_3)) AND ((@IsNull_uscita_3 = 1 AND [uscita_3] IS NULL) OR ([uscita_3] = @Original_uscita_3)) AND ((@IsNull_entrata_4 = 1 AND [entrata_4] IS NULL) OR ([entrata_4] = @Original_entrata_4)) AND ((@IsNull_uscita_4 = 1 AND [uscita_4] IS NULL) OR ([uscita_4] = @Original_uscita_4)) AND ((@IsNull_h_lav = 1 AND [h_lav] IS NULL) OR ([h_lav] = @Original_h_lav)) AND ((@IsNull_minLav = 1 AND [minLav] IS NULL) OR ([minLav] = @Original_minLav)) AND ((@IsNull_minOrd = 1 AND [minOrd] IS NULL) OR ([minOrd] = @Original_minOrd)) AND ((@IsNull_minNonLav = 1 AND [minNonLav] IS NULL) OR ([minNonLav] = @Original_minNonLav)) AND ((@IsNull_minStra = 1 AND [minStra] IS NULL) OR ([minStra] = @Original_minStra)) AND ((@IsNull_minPerm = 1 AND [minPerm] IS NULL) OR ([minPerm] = @Original_minPerm)) AND ((@IsNull_minFer = 1 AND [minFer] IS NULL) OR ([minFer] = @Original_minFer)) AND ((@IsNull_minMal = 1 AND [minMal] IS NULL) OR ([minMal] = @Original_minMal)) AND ((@IsNull_minFest = 1 AND [minFest] IS NULL) OR ([minFest] = @Original_minFest)) AND ((@IsNull_minCassa = 1 AND [minCassa] IS NULL) OR ([minCassa] = @Original_minCassa)) AND ((@IsNull_min104 = 1 AND [min104] IS NULL) OR ([min104] = @Original_min104)) AND ((@IsNull_minMpp = 1 AND [minMpp] IS NULL) OR ([minMpp] = @Original_minMpp)) AND ((@IsNull_minArcoPres = 1 AND [minArcoPres] IS NULL) OR ([minArcoPres] = @Original_minArcoPres)) AND ((@IsNull_isOkTim = 1 AND [isOkTim] IS NULL) OR ([isOkTim] = @Original_isOkTim)) AND ((@IsNull_isOkApp = 1 AND [isOkApp] IS NULL) OR ([isOkApp] = @Original_isOkApp)) AND ((@IsNull_block = 1 AND [block] IS NULL) OR ([block] = @Original_block)) AND ((@IsNull_chkFunCod = 1 AND [chkFunCod] IS NULL) OR ([chkFunCod] = @Original_chkFunCod)) AND ((@IsNull_chkFunRes = 1 AND [chkFunRes] IS NULL) OR ([chkFunRes] = @Original_chkFunRes)) AND ((@IsNull_isOk = 1 AND [isOk] IS NULL) OR ([isOk] = @Original_isOk)) AND ([isOkLav] = @Original_isOkLav) AND ((@IsNull_h_giust = 1 AND [h_giust] IS NULL) OR ([h_giust] = @Original_h_giust)) AND ([tempRil] = @Original_tempRil)) @@ -276,13 +276,14 @@ SELECT dataOra, idxDipendente, entrata, IPv4, CodTipoTimb, Approv FROM Timbratur + - INSERT INTO [TimbratureExpl] ([dataLav], [idxDipendente], [CognomeNome], [entrata_1], [uscita_1], [entrata_2], [uscita_2], [entrata_3], [uscita_3], [entrata_4], [uscita_4], [h_lav], [minLav], [minOrd], [minNonLav], [minStra], [minPerm], [minFer], [minMal], [minFest], [minCassa], [min104], [minMpp], [isOkTim], [isOkApp], [block], [chkFunCod], [chkFunRes]) VALUES (@dataLav, @idxDipendente, @CognomeNome, @entrata_1, @uscita_1, @entrata_2, @uscita_2, @entrata_3, @uscita_3, @entrata_4, @uscita_4, @h_lav, @minLav, @minOrd, @minNonLav, @minStra, @minPerm, @minFer, @minMal, @minFest, @minCassa, @min104, @minMpp, @isOkTim, @isOkApp, @block, @chkFunCod, @chkFunRes); -SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrata_4, uscita_4, h_lav, minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMal, minFest, minCassa, min104, minMpp, minArcoPres, isOkTim, isOkApp, block, chkFunCod, chkFunRes, isOk, isOkLav, h_giust FROM TimbratureExpl WHERE (dataLav = @dataLav) AND (idxDipendente = @idxDipendente) + INSERT INTO [TimbratureExpl] ([dataLav], [idxDipendente], [CognomeNome], [entrata_1], [uscita_1], [entrata_2], [uscita_2], [entrata_3], [uscita_3], [entrata_4], [uscita_4], [h_lav], [minLav], [minOrd], [minNonLav], [minStra], [minPerm], [minFer], [minMal], [minFest], [minCassa], [min104], [minMpp], [isOkTim], [isOkApp], [block], [chkFunCod], [chkFunRes], [tempRil]) VALUES (@dataLav, @idxDipendente, @CognomeNome, @entrata_1, @uscita_1, @entrata_2, @uscita_2, @entrata_3, @uscita_3, @entrata_4, @uscita_4, @h_lav, @minLav, @minOrd, @minNonLav, @minStra, @minPerm, @minFer, @minMal, @minFest, @minCassa, @min104, @minMpp, @isOkTim, @isOkApp, @block, @chkFunCod, @chkFunRes, @tempRil); +SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrata_4, uscita_4, h_lav, minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMal, minFest, minCassa, min104, minMpp, minArcoPres, isOkTim, isOkApp, block, chkFunCod, chkFunRes, isOk, isOkLav, h_giust, tempRil FROM TimbratureExpl WHERE (dataLav = @dataLav) AND (idxDipendente = @idxDipendente) @@ -312,6 +313,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci + @@ -324,8 +326,8 @@ FROM TimbratureExpl - UPDATE [TimbratureExpl] SET [dataLav] = @dataLav, [idxDipendente] = @idxDipendente, [CognomeNome] = @CognomeNome, [entrata_1] = @entrata_1, [uscita_1] = @uscita_1, [entrata_2] = @entrata_2, [uscita_2] = @uscita_2, [entrata_3] = @entrata_3, [uscita_3] = @uscita_3, [entrata_4] = @entrata_4, [uscita_4] = @uscita_4, [h_lav] = @h_lav, [minLav] = @minLav, [minOrd] = @minOrd, [minNonLav] = @minNonLav, [minStra] = @minStra, [minPerm] = @minPerm, [minFer] = @minFer, [minMal] = @minMal, [minFest] = @minFest, [minCassa] = @minCassa, [min104] = @min104, [minMpp] = @minMpp, [isOkTim] = @isOkTim, [isOkApp] = @isOkApp, [block] = @block, [chkFunCod] = @chkFunCod, [chkFunRes] = @chkFunRes WHERE (([dataLav] = @Original_dataLav) AND ([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_CognomeNome = 1 AND [CognomeNome] IS NULL) OR ([CognomeNome] = @Original_CognomeNome)) AND ((@IsNull_entrata_1 = 1 AND [entrata_1] IS NULL) OR ([entrata_1] = @Original_entrata_1)) AND ((@IsNull_uscita_1 = 1 AND [uscita_1] IS NULL) OR ([uscita_1] = @Original_uscita_1)) AND ((@IsNull_entrata_2 = 1 AND [entrata_2] IS NULL) OR ([entrata_2] = @Original_entrata_2)) AND ((@IsNull_uscita_2 = 1 AND [uscita_2] IS NULL) OR ([uscita_2] = @Original_uscita_2)) AND ((@IsNull_entrata_3 = 1 AND [entrata_3] IS NULL) OR ([entrata_3] = @Original_entrata_3)) AND ((@IsNull_uscita_3 = 1 AND [uscita_3] IS NULL) OR ([uscita_3] = @Original_uscita_3)) AND ((@IsNull_entrata_4 = 1 AND [entrata_4] IS NULL) OR ([entrata_4] = @Original_entrata_4)) AND ((@IsNull_uscita_4 = 1 AND [uscita_4] IS NULL) OR ([uscita_4] = @Original_uscita_4)) AND ((@IsNull_h_lav = 1 AND [h_lav] IS NULL) OR ([h_lav] = @Original_h_lav)) AND ((@IsNull_minLav = 1 AND [minLav] IS NULL) OR ([minLav] = @Original_minLav)) AND ((@IsNull_minOrd = 1 AND [minOrd] IS NULL) OR ([minOrd] = @Original_minOrd)) AND ((@IsNull_minNonLav = 1 AND [minNonLav] IS NULL) OR ([minNonLav] = @Original_minNonLav)) AND ((@IsNull_minStra = 1 AND [minStra] IS NULL) OR ([minStra] = @Original_minStra)) AND ((@IsNull_minPerm = 1 AND [minPerm] IS NULL) OR ([minPerm] = @Original_minPerm)) AND ((@IsNull_minFer = 1 AND [minFer] IS NULL) OR ([minFer] = @Original_minFer)) AND ((@IsNull_minMal = 1 AND [minMal] IS NULL) OR ([minMal] = @Original_minMal)) AND ((@IsNull_minFest = 1 AND [minFest] IS NULL) OR ([minFest] = @Original_minFest)) AND ((@IsNull_minCassa = 1 AND [minCassa] IS NULL) OR ([minCassa] = @Original_minCassa)) AND ((@IsNull_min104 = 1 AND [min104] IS NULL) OR ([min104] = @Original_min104)) AND ((@IsNull_minMpp = 1 AND [minMpp] IS NULL) OR ([minMpp] = @Original_minMpp)) AND ((@IsNull_minArcoPres = 1 AND [minArcoPres] IS NULL) OR ([minArcoPres] = @Original_minArcoPres)) AND ((@IsNull_isOkTim = 1 AND [isOkTim] IS NULL) OR ([isOkTim] = @Original_isOkTim)) AND ((@IsNull_isOkApp = 1 AND [isOkApp] IS NULL) OR ([isOkApp] = @Original_isOkApp)) AND ((@IsNull_block = 1 AND [block] IS NULL) OR ([block] = @Original_block)) AND ((@IsNull_chkFunCod = 1 AND [chkFunCod] IS NULL) OR ([chkFunCod] = @Original_chkFunCod)) AND ((@IsNull_chkFunRes = 1 AND [chkFunRes] IS NULL) OR ([chkFunRes] = @Original_chkFunRes)) AND ((@IsNull_isOk = 1 AND [isOk] IS NULL) OR ([isOk] = @Original_isOk)) AND ([isOkLav] = @Original_isOkLav) AND ((@IsNull_h_giust = 1 AND [h_giust] IS NULL) OR ([h_giust] = @Original_h_giust))); -SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrata_4, uscita_4, h_lav, minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMal, minFest, minCassa, min104, minMpp, minArcoPres, isOkTim, isOkApp, block, chkFunCod, chkFunRes, isOk, isOkLav, h_giust FROM TimbratureExpl WHERE (dataLav = @dataLav) AND (idxDipendente = @idxDipendente) + UPDATE [TimbratureExpl] SET [dataLav] = @dataLav, [idxDipendente] = @idxDipendente, [CognomeNome] = @CognomeNome, [entrata_1] = @entrata_1, [uscita_1] = @uscita_1, [entrata_2] = @entrata_2, [uscita_2] = @uscita_2, [entrata_3] = @entrata_3, [uscita_3] = @uscita_3, [entrata_4] = @entrata_4, [uscita_4] = @uscita_4, [h_lav] = @h_lav, [minLav] = @minLav, [minOrd] = @minOrd, [minNonLav] = @minNonLav, [minStra] = @minStra, [minPerm] = @minPerm, [minFer] = @minFer, [minMal] = @minMal, [minFest] = @minFest, [minCassa] = @minCassa, [min104] = @min104, [minMpp] = @minMpp, [isOkTim] = @isOkTim, [isOkApp] = @isOkApp, [block] = @block, [chkFunCod] = @chkFunCod, [chkFunRes] = @chkFunRes, [tempRil] = @tempRil WHERE (([dataLav] = @Original_dataLav) AND ([idxDipendente] = @Original_idxDipendente) AND ((@IsNull_CognomeNome = 1 AND [CognomeNome] IS NULL) OR ([CognomeNome] = @Original_CognomeNome)) AND ((@IsNull_entrata_1 = 1 AND [entrata_1] IS NULL) OR ([entrata_1] = @Original_entrata_1)) AND ((@IsNull_uscita_1 = 1 AND [uscita_1] IS NULL) OR ([uscita_1] = @Original_uscita_1)) AND ((@IsNull_entrata_2 = 1 AND [entrata_2] IS NULL) OR ([entrata_2] = @Original_entrata_2)) AND ((@IsNull_uscita_2 = 1 AND [uscita_2] IS NULL) OR ([uscita_2] = @Original_uscita_2)) AND ((@IsNull_entrata_3 = 1 AND [entrata_3] IS NULL) OR ([entrata_3] = @Original_entrata_3)) AND ((@IsNull_uscita_3 = 1 AND [uscita_3] IS NULL) OR ([uscita_3] = @Original_uscita_3)) AND ((@IsNull_entrata_4 = 1 AND [entrata_4] IS NULL) OR ([entrata_4] = @Original_entrata_4)) AND ((@IsNull_uscita_4 = 1 AND [uscita_4] IS NULL) OR ([uscita_4] = @Original_uscita_4)) AND ((@IsNull_h_lav = 1 AND [h_lav] IS NULL) OR ([h_lav] = @Original_h_lav)) AND ((@IsNull_minLav = 1 AND [minLav] IS NULL) OR ([minLav] = @Original_minLav)) AND ((@IsNull_minOrd = 1 AND [minOrd] IS NULL) OR ([minOrd] = @Original_minOrd)) AND ((@IsNull_minNonLav = 1 AND [minNonLav] IS NULL) OR ([minNonLav] = @Original_minNonLav)) AND ((@IsNull_minStra = 1 AND [minStra] IS NULL) OR ([minStra] = @Original_minStra)) AND ((@IsNull_minPerm = 1 AND [minPerm] IS NULL) OR ([minPerm] = @Original_minPerm)) AND ((@IsNull_minFer = 1 AND [minFer] IS NULL) OR ([minFer] = @Original_minFer)) AND ((@IsNull_minMal = 1 AND [minMal] IS NULL) OR ([minMal] = @Original_minMal)) AND ((@IsNull_minFest = 1 AND [minFest] IS NULL) OR ([minFest] = @Original_minFest)) AND ((@IsNull_minCassa = 1 AND [minCassa] IS NULL) OR ([minCassa] = @Original_minCassa)) AND ((@IsNull_min104 = 1 AND [min104] IS NULL) OR ([min104] = @Original_min104)) AND ((@IsNull_minMpp = 1 AND [minMpp] IS NULL) OR ([minMpp] = @Original_minMpp)) AND ((@IsNull_minArcoPres = 1 AND [minArcoPres] IS NULL) OR ([minArcoPres] = @Original_minArcoPres)) AND ((@IsNull_isOkTim = 1 AND [isOkTim] IS NULL) OR ([isOkTim] = @Original_isOkTim)) AND ((@IsNull_isOkApp = 1 AND [isOkApp] IS NULL) OR ([isOkApp] = @Original_isOkApp)) AND ((@IsNull_block = 1 AND [block] IS NULL) OR ([block] = @Original_block)) AND ((@IsNull_chkFunCod = 1 AND [chkFunCod] IS NULL) OR ([chkFunCod] = @Original_chkFunCod)) AND ((@IsNull_chkFunRes = 1 AND [chkFunRes] IS NULL) OR ([chkFunRes] = @Original_chkFunRes)) AND ((@IsNull_isOk = 1 AND [isOk] IS NULL) OR ([isOk] = @Original_isOk)) AND ([isOkLav] = @Original_isOkLav) AND ((@IsNull_h_giust = 1 AND [h_giust] IS NULL) OR ([h_giust] = @Original_h_giust)) AND ([tempRil] = @Original_tempRil)); +SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, uscita_2, entrata_3, uscita_3, entrata_4, uscita_4, h_lav, minLav, minOrd, minNonLav, minStra, minPerm, minFer, minMal, minFest, minCassa, min104, minMpp, minArcoPres, isOkTim, isOkApp, block, chkFunCod, chkFunRes, isOk, isOkLav, h_giust, tempRil FROM TimbratureExpl WHERE (dataLav = @dataLav) AND (idxDipendente = @idxDipendente) @@ -355,6 +357,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci + @@ -416,6 +419,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci + @@ -454,6 +458,7 @@ SELECT dataLav, idxDipendente, CognomeNome, entrata_1, uscita_1, entrata_2, usci + @@ -2736,6 +2741,86 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) + + + + + + DELETE FROM [RilievoTemp] WHERE (([idxDipendente] = @Original_idxDipendente) AND ([dtRilievo] = @Original_dtRilievo) AND ([tempRil] = @Original_tempRil)) + + + + + + + + + + INSERT INTO [RilievoTemp] ([idxDipendente], [dtRilievo], [tempRil]) VALUES (@idxDipendente, @dtRilievo, @tempRil); +SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dtRilievo) AND (idxDipendente = @idxDipendente) + + + + + + + + + + SELECT * +FROM RilievoTemp + + + + + + UPDATE [RilievoTemp] SET [idxDipendente] = @idxDipendente, [dtRilievo] = @dtRilievo, [tempRil] = @tempRil WHERE (([idxDipendente] = @Original_idxDipendente) AND ([dtRilievo] = @Original_dtRilievo) AND ([tempRil] = @Original_tempRil)); +SELECT idxDipendente, dtRilievo, tempRil FROM RilievoTemp WHERE (dtRilievo = @dtRilievo) AND (idxDipendente = @idxDipendente) + + + + + + + + + + + + + + + + + + + + + + dbo.stp_RT_getByKey + + + + + + + + + + + + dbo.stp_RT_upsertQuery + + + + + + + + + + + @@ -2744,7 +2829,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -2768,7 +2853,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -2821,10 +2906,11 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) + - + @@ -2862,7 +2948,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -2990,7 +3076,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3083,7 +3169,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3128,7 +3214,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3142,7 +3228,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3192,7 +3278,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3227,7 +3313,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3247,7 +3333,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3268,7 +3354,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3304,7 +3390,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3329,7 +3415,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3345,7 +3431,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3366,10 +3452,10 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + - + @@ -3431,7 +3517,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3479,7 +3565,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3520,7 +3606,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3541,6 +3627,15 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) + + + + + + + + + @@ -3629,15 +3724,21 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) + + + + + - - - - - - + + + + + + + \ No newline at end of file diff --git a/GPW_Data/DS_Applicazione.xss b/GPW_Data/DS_Applicazione.xss index 41e8de2..f0ed897 100644 --- a/GPW_Data/DS_Applicazione.xss +++ b/GPW_Data/DS_Applicazione.xss @@ -4,30 +4,31 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - + 385 @@ -39,7 +40,7 @@ - + 1234 @@ -59,7 +60,7 @@ - + 1186 @@ -79,7 +80,7 @@ - + 871 @@ -95,7 +96,7 @@ - + 579 @@ -107,7 +108,7 @@ - + 324 @@ -119,5 +120,17 @@ + + + + 553 + 859 + + + 553 + 1434 + + + \ No newline at end of file diff --git a/GPW_Data/DataProxy.cs b/GPW_Data/DataProxy.cs index 3e55a82..441a2e2 100644 --- a/GPW_Data/DataProxy.cs +++ b/GPW_Data/DataProxy.cs @@ -3,177 +3,181 @@ using System; namespace GPW_data { - /// - /// proxy accesso ai dati - /// - public class DataProxy - { - #region area table adapters - - public DS_ApplicazioneTableAdapters.AnagClientiTableAdapter taAnCli; - public DS_ApplicazioneTableAdapters.TimbratureTableAdapter taTimb; - public DS_ApplicazioneTableAdapters.TimbratureExplTableAdapter taTimbExpl; - public DS_ApplicazioneTableAdapters.AnagDevicesTableAdapter taAnagDev; - public DS_ApplicazioneTableAdapters.DipendentiTableAdapter taDipendenti; - public DS_ApplicazioneTableAdapters.Dipendenti2RuoliTableAdapter taDip2Ruoli; - public DS_ApplicazioneTableAdapters.AnagProgettiTableAdapter taAP; - public DS_ApplicazioneTableAdapters.AnagFasiTableAdapter taAF; - public DS_ApplicazioneTableAdapters.v_logCommUtTableAdapter taLCU; - public DS_ApplicazioneTableAdapters.RegAttivitaTableAdapter taRA; - public DS_ApplicazioneTableAdapters.regAttDayExplTableAdapter taRAExpl; - public DS_ApplicazioneTableAdapters.AnagOrariTableAdapter taAO; - public DS_ApplicazioneTableAdapters.GiustificativiTableAdapter taGiust; - public DS_ApplicazioneTableAdapters.stp_DipendentiAndAnomalieTableAdapter taDipAnom; - public DS_ApplicazioneTableAdapters.TE_RA_ExplTableAdapter taTimbRegAtt; - public DS_ApplicazioneTableAdapters.RegistroEventiTableAdapter taRE; - public DS_ApplicazioneTableAdapters.CalendFesteFerieTableAdapter taCFF; - - public DS_UtilityTableAdapters.nextValContatoreTableAdapter taNextVal; - public DS_UtilityTableAdapters.AnagKeyValueTableAdapter taAKV; - public DS_UtilityTableAdapters.stp_VSProjFasi_searchTableAdapter taVSProjFasiSearch; - public DS_UtilityTableAdapters.v_selProjFasiTableAdapter taVSPF; - - public DS_exportTableAdapters.TimbratureZucchettiTableAdapter taExpZucc; - public DS_exportTableAdapters.RegAtt_pivotTableAdapter taExpComm; - /// - /// init dei table adapters + /// proxy accesso ai dati /// - protected void initTA() + public class DataProxy { - taAnCli = new DS_ApplicazioneTableAdapters.AnagClientiTableAdapter(); - taTimb = new DS_ApplicazioneTableAdapters.TimbratureTableAdapter(); - taTimbExpl = new DS_ApplicazioneTableAdapters.TimbratureExplTableAdapter(); - taAnagDev = new DS_ApplicazioneTableAdapters.AnagDevicesTableAdapter(); - taDipendenti = new DS_ApplicazioneTableAdapters.DipendentiTableAdapter(); - taDip2Ruoli = new DS_ApplicazioneTableAdapters.Dipendenti2RuoliTableAdapter(); - taAP = new DS_ApplicazioneTableAdapters.AnagProgettiTableAdapter(); - taAF = new DS_ApplicazioneTableAdapters.AnagFasiTableAdapter(); - taLCU = new DS_ApplicazioneTableAdapters.v_logCommUtTableAdapter(); - taRA = new DS_ApplicazioneTableAdapters.RegAttivitaTableAdapter(); - taRAExpl = new DS_ApplicazioneTableAdapters.regAttDayExplTableAdapter(); - taAO = new DS_ApplicazioneTableAdapters.AnagOrariTableAdapter(); - taGiust = new DS_ApplicazioneTableAdapters.GiustificativiTableAdapter(); - taDipAnom = new DS_ApplicazioneTableAdapters.stp_DipendentiAndAnomalieTableAdapter(); - taTimbRegAtt = new DS_ApplicazioneTableAdapters.TE_RA_ExplTableAdapter(); - taRE = new DS_ApplicazioneTableAdapters.RegistroEventiTableAdapter(); - taCFF = new DS_ApplicazioneTableAdapters.CalendFesteFerieTableAdapter(); - taNextVal = new DS_UtilityTableAdapters.nextValContatoreTableAdapter(); - taAKV = new DS_UtilityTableAdapters.AnagKeyValueTableAdapter(); - taVSProjFasiSearch = new DS_UtilityTableAdapters.stp_VSProjFasi_searchTableAdapter(); - taVSPF = new DS_UtilityTableAdapters.v_selProjFasiTableAdapter(); - taExpZucc = new DS_exportTableAdapters.TimbratureZucchettiTableAdapter(); - taExpComm = new DS_exportTableAdapters.RegAtt_pivotTableAdapter(); - } - /// - /// effettua setup dei connection strings da web.config delal singola applicazione - /// - protected virtual void setupConnectionStringBase() - { - // connections del db - taAnCli.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taTimb.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taTimbExpl.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taAnagDev.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taDipendenti.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taDip2Ruoli.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taAP.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taAF.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taLCU.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taRA.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taRAExpl.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taAO.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taGiust.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taDipAnom.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taTimbRegAtt.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taRE.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taCFF.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taNextVal.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taAKV.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taVSProjFasiSearch.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taVSPF.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taExpZucc.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - taExpComm.Connection.ConnectionString = memLayer.ML.confReadString("GPWConnectionString"); - } + #region area table adapters - #endregion + public DS_ApplicazioneTableAdapters.AnagClientiTableAdapter taAnCli; + public DS_ApplicazioneTableAdapters.TimbratureTableAdapter taTimb; + public DS_ApplicazioneTableAdapters.TimbratureExplTableAdapter taTimbExpl; + public DS_ApplicazioneTableAdapters.AnagDevicesTableAdapter taAnagDev; + public DS_ApplicazioneTableAdapters.DipendentiTableAdapter taDipendenti; + public DS_ApplicazioneTableAdapters.Dipendenti2RuoliTableAdapter taDip2Ruoli; + public DS_ApplicazioneTableAdapters.AnagProgettiTableAdapter taAP; + public DS_ApplicazioneTableAdapters.AnagFasiTableAdapter taAF; + public DS_ApplicazioneTableAdapters.v_logCommUtTableAdapter taLCU; + public DS_ApplicazioneTableAdapters.RegAttivitaTableAdapter taRA; + public DS_ApplicazioneTableAdapters.regAttDayExplTableAdapter taRAExpl; + public DS_ApplicazioneTableAdapters.AnagOrariTableAdapter taAO; + public DS_ApplicazioneTableAdapters.GiustificativiTableAdapter taGiust; + public DS_ApplicazioneTableAdapters.stp_DipendentiAndAnomalieTableAdapter taDipAnom; + public DS_ApplicazioneTableAdapters.TE_RA_ExplTableAdapter taTimbRegAtt; + public DS_ApplicazioneTableAdapters.RegistroEventiTableAdapter taRE; + public DS_ApplicazioneTableAdapters.CalendFesteFerieTableAdapter taCFF; + public DS_ApplicazioneTableAdapters.RilievoTempTableAdapter taRT; - protected DataProxy() - { - initTA(); - setupConnectionStringBase(); - } - /// - /// Singleton accesso a DataProxy - /// - public static DataProxy DP = new DataProxy(); + public DS_UtilityTableAdapters.nextValContatoreTableAdapter taNextVal; + public DS_UtilityTableAdapters.AnagKeyValueTableAdapter taAKV; + public DS_UtilityTableAdapters.stp_VSProjFasi_searchTableAdapter taVSProjFasiSearch; + public DS_UtilityTableAdapters.v_selProjFasiTableAdapter taVSPF; - #region utility public esposte + public DS_exportTableAdapters.TimbratureZucchettiTableAdapter taExpZucc; + public DS_exportTableAdapters.RegAtt_pivotTableAdapter taExpComm; - /// - /// invia una mail al destinatario x linkare nuovi devices tramite URL - /// - /// - /// - /// - /// - public bool sendUserAuthEmail(string destinatario, string UserAuthKey, int idxDipendente) - { - bool fatto = false; - string mittente = ""; - string oggetto = ""; - string userUrl = ""; - string baseUrl = ""; - string userWebUrl = ""; - string baseWebUrl = ""; - string corpo = ""; - try - { - // compongo la stringa - mittente = memLayer.ML.confReadString("_fromEmail"); - oggetto = "Link autorizzazione device per GPW"; - baseUrl = memLayer.ML.confReadString("baseUrl"); - baseWebUrl = memLayer.ML.confReadString("baseWebUrl"); - userUrl = string.Format("{2}jumper?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseUrl); - userWebUrl = string.Format("{2}jumper?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseWebUrl); - corpo = string.Format("Hai ricevuto questa email su richiesta tua o dell'Admin per poter procedere a registrare un (nuovo) devices con GPW:{0}
Per proseguire clicca sul link seguente(rete interna):
{0}{0}{1}{0}{0}

oppure sul link seguente (internet):
{0}{0}{2}{0}{0}

Team GPW Steamware", Environment.NewLine, userUrl, userWebUrl); - fatto = gestEmail.geAuth.mandaEmail(mittente, destinatario, oggetto, corpo); - } - catch - { } - return fatto; - } - /// - /// effettua enroll del device - /// - /// - /// - /// - /// - /// - /// - public bool enrollDevice(string UserAuthKey, string IPv4, string DeviceName, string Description, int idxDipendente) - { - bool fatto = false; - // in primis testo se dipendente ed authKey sono validi.. - if (DataProxy.DP.taDipendenti.getByAuthKey(idxDipendente, UserAuthKey).Rows.Count > 0) - { + /// + /// init dei table adapters + /// + protected void initTA() + { + taAnCli = new DS_ApplicazioneTableAdapters.AnagClientiTableAdapter(); + taTimb = new DS_ApplicazioneTableAdapters.TimbratureTableAdapter(); + taTimbExpl = new DS_ApplicazioneTableAdapters.TimbratureExplTableAdapter(); + taAnagDev = new DS_ApplicazioneTableAdapters.AnagDevicesTableAdapter(); + taDipendenti = new DS_ApplicazioneTableAdapters.DipendentiTableAdapter(); + taDip2Ruoli = new DS_ApplicazioneTableAdapters.Dipendenti2RuoliTableAdapter(); + taAP = new DS_ApplicazioneTableAdapters.AnagProgettiTableAdapter(); + taAF = new DS_ApplicazioneTableAdapters.AnagFasiTableAdapter(); + taLCU = new DS_ApplicazioneTableAdapters.v_logCommUtTableAdapter(); + taRA = new DS_ApplicazioneTableAdapters.RegAttivitaTableAdapter(); + taRAExpl = new DS_ApplicazioneTableAdapters.regAttDayExplTableAdapter(); + taAO = new DS_ApplicazioneTableAdapters.AnagOrariTableAdapter(); + taGiust = new DS_ApplicazioneTableAdapters.GiustificativiTableAdapter(); + taDipAnom = new DS_ApplicazioneTableAdapters.stp_DipendentiAndAnomalieTableAdapter(); + taTimbRegAtt = new DS_ApplicazioneTableAdapters.TE_RA_ExplTableAdapter(); + taRE = new DS_ApplicazioneTableAdapters.RegistroEventiTableAdapter(); + taCFF = new DS_ApplicazioneTableAdapters.CalendFesteFerieTableAdapter(); + taRT = new DS_ApplicazioneTableAdapters.RilievoTempTableAdapter(); + taNextVal = new DS_UtilityTableAdapters.nextValContatoreTableAdapter(); + taAKV = new DS_UtilityTableAdapters.AnagKeyValueTableAdapter(); + taVSProjFasiSearch = new DS_UtilityTableAdapters.stp_VSProjFasi_searchTableAdapter(); + taVSPF = new DS_UtilityTableAdapters.v_selProjFasiTableAdapter(); + taExpZucc = new DS_exportTableAdapters.TimbratureZucchettiTableAdapter(); + taExpComm = new DS_exportTableAdapters.RegAtt_pivotTableAdapter(); + } + /// + /// effettua setup dei connection strings da web.config delal singola applicazione + /// + protected virtual void setupConnectionStringBase() + { + string connGPW = memLayer.ML.confReadString("GPWConnectionString"); + // connections del db + taAnCli.Connection.ConnectionString = connGPW; + taTimb.Connection.ConnectionString = connGPW; + taTimbExpl.Connection.ConnectionString = connGPW; + taAnagDev.Connection.ConnectionString = connGPW; + taDipendenti.Connection.ConnectionString = connGPW; + taDip2Ruoli.Connection.ConnectionString = connGPW; + taAP.Connection.ConnectionString = connGPW; + taAF.Connection.ConnectionString = connGPW; + taLCU.Connection.ConnectionString = connGPW; + taRA.Connection.ConnectionString = connGPW; + taRAExpl.Connection.ConnectionString = connGPW; + taAO.Connection.ConnectionString = connGPW; + taGiust.Connection.ConnectionString = connGPW; + taDipAnom.Connection.ConnectionString = connGPW; + taTimbRegAtt.Connection.ConnectionString = connGPW; + taRE.Connection.ConnectionString = connGPW; + taCFF.Connection.ConnectionString = connGPW; + taNextVal.Connection.ConnectionString = connGPW; + taRT.Connection.ConnectionString = connGPW; + taAKV.Connection.ConnectionString = connGPW; + taVSProjFasiSearch.Connection.ConnectionString = connGPW; + taVSPF.Connection.ConnectionString = connGPW; + taExpZucc.Connection.ConnectionString = connGPW; + taExpComm.Connection.ConnectionString = connGPW; + } - /************************************************ - * Gestione riconoscimento devices - * - * - cerco IP del device, testo se è rete interna (A) o extranet/internet (B) cercando substring "localNet" da web.config - * (A): device interni: c'è un DHCP, e "dhcpLeaseTime" deve essere pari a lease time--- - * - verifico se IP già in uso da un tempo < "dhcpLeaseTime" --> in questo caso segnalo errore e rimbalzo (NON permetto di registrare device a nuovo utente... sospetto uso "improprio" del device - * - se tempo > dhcpLeaseTime allora può aver cambiato IP: aggiorno IP e descrizione del device e proseguo - * (B): all'esterno vedo tutta una subnet NATtata con unico IP, non è + discriminante - * - le timbrature "da esterno" devono essere confermate (instrodurre "tipo timbratura" x cui interne sono autoconfermate, esterne sono "grayed" (da confermare, da admin o ad esempio se si accende secondo device utente entro 5/10 min) - * - le timbrature ext DOVREBBERO chiedere location (jScript?) e inviarla, visibile in conferma - * - * - * **********************************************/ + #endregion - //!!!RIFARE!!! non è + importante device name e description come distinti ma "quasi distinti" gli IP "intranet" o meglio anche ripetuto se a distanza di tempo + protected DataProxy() + { + initTA(); + setupConnectionStringBase(); + } + /// + /// Singleton accesso a DataProxy + /// + public static DataProxy DP = new DataProxy(); + + #region utility public esposte + + /// + /// invia una mail al destinatario x linkare nuovi devices tramite URL + /// + /// + /// + /// + /// + public bool sendUserAuthEmail(string destinatario, string UserAuthKey, int idxDipendente) + { + bool fatto = false; + string mittente = ""; + string oggetto = ""; + string userUrl = ""; + string baseUrl = ""; + string userWebUrl = ""; + string baseWebUrl = ""; + string corpo = ""; + try + { + // compongo la stringa + mittente = memLayer.ML.confReadString("_fromEmail"); + oggetto = "Link autorizzazione device per GPW"; + baseUrl = memLayer.ML.confReadString("baseUrl"); + baseWebUrl = memLayer.ML.confReadString("baseWebUrl"); + userUrl = string.Format("{2}jumper?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseUrl); + userWebUrl = string.Format("{2}jumper?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseWebUrl); + corpo = string.Format("Hai ricevuto questa email su richiesta tua o dell'Admin per poter procedere a registrare un (nuovo) devices con GPW:{0}
Per proseguire clicca sul link seguente(rete interna):
{0}{0}{1}{0}{0}

oppure sul link seguente (internet):
{0}{0}{2}{0}{0}

Team GPW Steamware", Environment.NewLine, userUrl, userWebUrl); + fatto = gestEmail.geAuth.mandaEmail(mittente, destinatario, oggetto, corpo); + } + catch + { } + return fatto; + } + /// + /// effettua enroll del device + /// + /// + /// + /// + /// + /// + /// + public bool enrollDevice(string UserAuthKey, string IPv4, string DeviceName, string Description, int idxDipendente) + { + bool fatto = false; + // in primis testo se dipendente ed authKey sono validi.. + if (DataProxy.DP.taDipendenti.getByAuthKey(idxDipendente, UserAuthKey).Rows.Count > 0) + { + + /************************************************ + * Gestione riconoscimento devices + * + * - cerco IP del device, testo se è rete interna (A) o extranet/internet (B) cercando substring "localNet" da web.config + * (A): device interni: c'è un DHCP, e "dhcpLeaseTime" deve essere pari a lease time--- + * - verifico se IP già in uso da un tempo < "dhcpLeaseTime" --> in questo caso segnalo errore e rimbalzo (NON permetto di registrare device a nuovo utente... sospetto uso "improprio" del device + * - se tempo > dhcpLeaseTime allora può aver cambiato IP: aggiorno IP e descrizione del device e proseguo + * (B): all'esterno vedo tutta una subnet NATtata con unico IP, non è + discriminante + * - le timbrature "da esterno" devono essere confermate (instrodurre "tipo timbratura" x cui interne sono autoconfermate, esterne sono "grayed" (da confermare, da admin o ad esempio se si accende secondo device utente entro 5/10 min) + * - le timbrature ext DOVREBBERO chiedere location (jScript?) e inviarla, visibile in conferma + * + * + * **********************************************/ + + //!!!RIFARE!!! non è + importante device name e description come distinti ma "quasi distinti" gli IP "intranet" o meglio anche ripetuto se a distanza di tempo #if false // controllo se esiste già device con quel secret code... if (DataProxy.DP.taAnagDev.getByDeviceName(DeviceName).Rows.Count > 0) @@ -190,96 +194,96 @@ namespace GPW_data } } #endif - // calcolo il secret... - DateTime adesso = DateTime.Now; - string Secret = string.Format("{0}|{1}|{2}", idxDipendente, DeviceName, adesso); - string devSecret = SteamCrypto.EncryptString(Secret, "AuthGPW"); - try - { - DataProxy.DP.taAnagDev.insertQuery(devSecret, idxDipendente, DeviceName, Description, adesso, IPv4); - // registro "consumo" della authKey - DataProxy.DP.taDipendenti.recordAuthKeyUse(idxDipendente); - // salvo il cookie nel browser - memLayer.ML.setCookieVal("AuthGPW", devSecret, DateTime.Now.AddYears(5)); - // indico come fatto - fatto = true; + // calcolo il secret... + DateTime adesso = DateTime.Now; + string Secret = string.Format("{0}|{1}|{2}", idxDipendente, DeviceName, adesso); + string devSecret = SteamCrypto.EncryptString(Secret, "AuthGPW"); + try + { + DataProxy.DP.taAnagDev.insertQuery(devSecret, idxDipendente, DeviceName, Description, adesso, IPv4); + // registro "consumo" della authKey + DataProxy.DP.taDipendenti.recordAuthKeyUse(idxDipendente); + // salvo il cookie nel browser + memLayer.ML.setCookieVal("AuthGPW", devSecret, DateTime.Now.AddYears(5)); + // indico come fatto + fatto = true; + } + catch + { } + } + return fatto; } - catch - { } - } - return fatto; - } - /// - /// idxDipendente in sessione - /// - public static int idxDipendente - { - get - { - int idx = 0; - try + /// + /// idxDipendente in sessione + /// + public static int idxDipendente { - idx = memLayer.ML.IntSessionObj("IdxDipendente"); + get + { + int idx = 0; + try + { + idx = memLayer.ML.IntSessionObj("IdxDipendente"); + } + catch + { } + return idx; + } + set + { + memLayer.ML.setSessionVal("idxDipendente", value); + } } - catch - { } - return idx; - } - set - { - memLayer.ML.setSessionVal("idxDipendente", value); - } - } - /// - /// Verifica se il dip corrente sia attivo - /// - public static bool currDipIsActive - { - get - { - bool answ = false; - try + /// + /// Verifica se il dip corrente sia attivo + /// + public static bool currDipIsActive { - DS_Applicazione.DipendentiRow rigaDip = DP.taDipendenti.getByIdx(idxDipendente)[0]; - answ = rigaDip.attivo; + get + { + bool answ = false; + try + { + DS_Applicazione.DipendentiRow rigaDip = DP.taDipendenti.getByIdx(idxDipendente)[0]; + answ = rigaDip.attivo; + } + catch + { } + return answ; + } } - catch - { } - return answ; - } - } - /// - /// Verifica se il dip RICHIESTO sia attivo - /// - /// - /// - public bool dipIsActive(int _idxDipendente) - { - bool answ = false; - try + /// + /// Verifica se il dip RICHIESTO sia attivo + /// + /// + /// + public bool dipIsActive(int _idxDipendente) { - DS_Applicazione.DipendentiRow rigaDip = DP.taDipendenti.getByIdx(_idxDipendente)[0]; - answ = rigaDip.attivo; + bool answ = false; + try + { + DS_Applicazione.DipendentiRow rigaDip = DP.taDipendenti.getByIdx(_idxDipendente)[0]; + answ = rigaDip.attivo; + } + catch + { } + return answ; } - catch - { } - return answ; - } - public string CognomeNomeByIdx(int idxDip) - { - string answ = ""; - try - { - DS_Applicazione.DipendentiRow rigaDip = taDipendenti.getByIdx(idxDip)[0]; - answ = string.Format("{0} {1}", rigaDip.Cognome, rigaDip.Nome); - } - catch - { } - return answ; - } + public string CognomeNomeByIdx(int idxDip) + { + string answ = ""; + try + { + DS_Applicazione.DipendentiRow rigaDip = taDipendenti.getByIdx(idxDip)[0]; + answ = string.Format("{0} {1}", rigaDip.Cognome, rigaDip.Nome); + } + catch + { } + return answ; + } - #endregion - } + #endregion + } } diff --git a/GPW_Smart/GPW_Smart.csproj b/GPW_Smart/GPW_Smart.csproj index 7d5603c..f3d5371 100644 --- a/GPW_Smart/GPW_Smart.csproj +++ b/GPW_Smart/GPW_Smart.csproj @@ -622,9 +622,11 @@ + + @@ -800,6 +802,13 @@ Site.Master + + TempRil.aspx + ASPXCodeBehind + + + TempRil.aspx + Timbrature.aspx ASPXCodeBehind @@ -828,6 +837,13 @@ cmp_menuTop.ascx + + cmp_rilTemp.ascx + ASPXCodeBehind + + + cmp_rilTemp.ascx + cmq_params.ascx ASPXCodeBehind diff --git a/GPW_Smart/TempRil.aspx b/GPW_Smart/TempRil.aspx new file mode 100644 index 0000000..65734a9 --- /dev/null +++ b/GPW_Smart/TempRil.aspx @@ -0,0 +1,7 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TempRil.aspx.cs" Inherits="GPW_Smart.TempRil" %> + +<%@ Register Src="~/WebUserControls/cmp_rilTemp.ascx" TagPrefix="uc1" TagName="cmp_rilTemp" %> + + + + diff --git a/GPW_Smart/TempRil.aspx.cs b/GPW_Smart/TempRil.aspx.cs new file mode 100644 index 0000000..b40209a --- /dev/null +++ b/GPW_Smart/TempRil.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW_Smart +{ + public partial class TempRil : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW_Smart/TempRil.aspx.designer.cs b/GPW_Smart/TempRil.aspx.designer.cs new file mode 100644 index 0000000..9adcdd5 --- /dev/null +++ b/GPW_Smart/TempRil.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace GPW_Smart +{ + + + public partial class TempRil + { + + /// + /// Controllo cmp_rilTemp. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::GPW_Smart.WebUserControls.cmp_rilTemp cmp_rilTemp; + } +} diff --git a/GPW_Smart/WebUserControls/cmp_rilTemp.ascx b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx new file mode 100644 index 0000000..ab2c2fc --- /dev/null +++ b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx @@ -0,0 +1,53 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_rilTemp.ascx.cs" Inherits="GPW_Smart.WebUserControls.cmp_rilTemp" %> + + +
+
+

Temperatura

+
+
+ <%: SteamWare.memLayer.ML.QSS("dataRif") %> +
+
+ +
+
+ Cancel +
+
+ Save +
+
+ +<%-- + +
+
+

Temperatura

+
+
+ <%: SteamWare.memLayer.ML.QSS("dataRif") %> +
+
+ +
+
+ Cancel +
+
+ Save +
+
+ + + + +   +
+
+ + + + + +--%> diff --git a/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs new file mode 100644 index 0000000..ce43830 --- /dev/null +++ b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs @@ -0,0 +1,89 @@ +using GPW_data; +using SteamWare; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW_Smart.WebUserControls +{ + public partial class cmp_rilTemp : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + //frmView.ChangeMode(FormViewMode.Edit); + if (!Page.IsPostBack) + { + setupData(); + } + } + + protected int idxDip + { + get + { + return memLayer.ML.IntSessionObj("idxDipendente"); + } + } + + protected DateTime dtRif + { + get + { + + DateTime answ = DateTime.Today; + DateTime.TryParse(memLayer.ML.QSS("dataRif"), out answ); + return answ; + } + } + + protected decimal tempRilevata + { + get + { + decimal answ = 0; + decimal.TryParse(txtTempRil.Text.Replace(".",","), out answ); + return answ; + } + set + { + + txtTempRil.Text = $"{value:0.0}".Replace(",", "."); + } + } + + private void setupData() + { + // recupero dati temperatura + decimal tempRil = 0; + try + { + var tabRT = DataProxy.DP.taRT.getByKey(idxDip, dtRif); + if (tabRT != null && tabRT.Rows.Count > 0) + { + tempRil = tabRT[0].tempRil; + } + } + catch + { } + tempRilevata = tempRil; + } + + + + protected void lbtSave_Click(object sender, EventArgs e) + { + DataProxy.DP.taRT.upsertQuery(idxDip, dtRif, tempRilevata); + // torno a timbrature... + Response.Redirect("Timbrature"); + } + + protected void lbtCancel_Click(object sender, EventArgs e) + { + // torno a timbrature... + Response.Redirect("Timbrature"); + } + } +} \ No newline at end of file diff --git a/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.designer.cs b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.designer.cs new file mode 100644 index 0000000..e2ff87c --- /dev/null +++ b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.designer.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace GPW_Smart.WebUserControls +{ + + + public partial class cmp_rilTemp + { + + /// + /// Controllo lblData. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblData; + + /// + /// Controllo txtTempRil. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtTempRil; + + /// + /// Controllo lbtCancel. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtCancel; + + /// + /// Controllo lbtSave. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtSave; + } +} diff --git a/GPW_Smart/WebUserControls/mod_timbrature.ascx b/GPW_Smart/WebUserControls/mod_timbrature.ascx index 00e8b1d..adfba26 100644 --- a/GPW_Smart/WebUserControls/mod_timbrature.ascx +++ b/GPW_Smart/WebUserControls/mod_timbrature.ascx @@ -1,80 +1,88 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_timbrature.ascx.cs" Inherits="GPW.WebUserControls.mod_timbrature" %>
-
- Entrata -
-
- Uscita -
+
+ Entrata +
+
+ Uscita +
-
- -
+
+ +
-
-
- - - - - <%# Eval("dataLav", "{0:MM.dd} {0:ddd}") %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+
+ + + + + <%# Eval("dataLav", "{0:MM.dd} {0:ddd}") %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
+
+
+
+
+ + + + + + + + + +
diff --git a/GPW_Smart/WebUserControls/mod_timbrature.ascx.cs b/GPW_Smart/WebUserControls/mod_timbrature.ascx.cs index 80218c3..9663592 100644 --- a/GPW_Smart/WebUserControls/mod_timbrature.ascx.cs +++ b/GPW_Smart/WebUserControls/mod_timbrature.ascx.cs @@ -6,251 +6,278 @@ using System.Web.UI.WebControls; namespace GPW.WebUserControls { - public partial class mod_timbrature : System.Web.UI.UserControl - { - protected bool forceButtons + public partial class mod_timbrature : System.Web.UI.UserControl { - get - { - return !abilitaAll; - } - set - { - abilitaAll = !(value); - } - } - public bool abilitaAll - { - get - { - bool answ = false; - try + protected bool forceButtons { - string rawData = memLayer.ML.getRSV("abilitaAll"); - bool.TryParse(rawData, out answ); + get + { + return !abilitaAll; + } + set + { + abilitaAll = !(value); + } + } + public bool abilitaAll + { + get + { + bool answ = false; + try + { + string rawData = memLayer.ML.getRSV("abilitaAll"); + bool.TryParse(rawData, out answ); + } + catch + { } + return answ; + } + set + { + int ttlSec = value ? memLayer.ML.CRI("ttlAbilitaAll") : 0; + memLayer.ML.setRSV("abilitaAll", value.ToString(), ttlSec); + } + } + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + // verifico se ci sia un numero di righe selezionate altrimenti lo imposto... + if (!memLayer.ML.isInSessionObject("numColEU")) numColEU = 2; + if (!memLayer.ML.isInSessionObject("numRowTimb")) numRowTimb = 10; + memLayer.ML.setSessionVal("dataRif", DateTime.Today); + } + setButtons(); } - catch - { } - return answ; - } - set - { - int ttlSec = value ? memLayer.ML.CRI("ttlAbilitaAll") : 0; - memLayer.ML.setRSV("abilitaAll", value.ToString(), ttlSec); - } - } - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - // verifico se ci sia un numero di righe selezionate altrimenti lo imposto... - if (!memLayer.ML.isInSessionObject("numColEU")) numColEU = 2; - if (!memLayer.ML.isInSessionObject("numRowTimb")) numRowTimb = 10; - memLayer.ML.setSessionVal("dataRif", DateTime.Today); - } - setButtons(); - } - public int numColEU - { - get - { - int answ = 2; - try + public int numColEU { - answ = memLayer.ML.IntSessionObj("numColEU"); + get + { + int answ = 2; + try + { + answ = memLayer.ML.IntSessionObj("numColEU"); + } + catch + { } + if (answ <= 0) answ = 2; + return answ; + } + set + { + memLayer.ML.setSessionVal("numColEU", value); + } } - catch - { } - if (answ <= 0) answ = 2; - return answ; - } - set - { - memLayer.ML.setSessionVal("numColEU", value); - } - } - public int numRowTimb - { - get - { - return memLayer.ML.IntSessionObj("numRowTimb"); - } - set - { - memLayer.ML.setSessionVal("numRowTimb", value); - } - } - /// - /// fix buttons button - /// - private void setButtons() - { - // controllo SE voglio inibire i buttons... - if (forceButtons) - { - // controllo se il prox comando DOVREBBE essere entrata o uscita - bool nextIsEntrata = true; - // controllo dipendente - if (IdxDipendente > 0) + public int numRowTimb { - // ricavo ultima timbratura.. - nextIsEntrata = timbratrice.nextIsEntrata(IdxDipendente); - // di conseguenza cambio abilitazione ad un buttons - if (nextIsEntrata) - { - fixBtnInOut(true, false); - } - else - { - fixBtnInOut(false, true); - } + get + { + return memLayer.ML.IntSessionObj("numRowTimb"); + } + set + { + memLayer.ML.setSessionVal("numRowTimb", value); + } } - else + /// + /// fix buttons button + /// + private void setButtons() { - fixBtnInOut(false, false); + // controllo SE voglio inibire i buttons... + if (forceButtons) + { + // controllo se il prox comando DOVREBBE essere entrata o uscita + bool nextIsEntrata = true; + // controllo dipendente + if (IdxDipendente > 0) + { + // ricavo ultima timbratura.. + nextIsEntrata = timbratrice.nextIsEntrata(IdxDipendente); + // di conseguenza cambio abilitazione ad un buttons + if (nextIsEntrata) + { + fixBtnInOut(true, false); + } + else + { + fixBtnInOut(false, true); + } + } + else + { + fixBtnInOut(false, false); + } + } + else + { + fixBtnInOut(true, true); + } } - } - else - { - fixBtnInOut(true, true); - } - } - private void fixBtnInOut(bool showIn, bool showOut) - { - lbtEntrata.Enabled = showIn; - lbtUscita.Enabled = showOut; - lbtEntrata.CssClass = showIn ? "btn btn-primary btn-block" : "btn btn-outline-primary disabled btn-block"; - lbtUscita.CssClass = showOut ? "btn btn-success btn-block" : "btn btn-outline-success disabled btn-block"; - } - - /// - /// timbro entrata... - /// - /// - /// - protected void lbtEntrata_Click(object sender, EventArgs e) - { - bool isEntrata = true; - registraTimbratura(isEntrata); - } - /// - /// uscita... - /// - /// - /// - protected void lbtUscita_Click(object sender, EventArgs e) - { - bool isEntrata = false; - registraTimbratura(isEntrata); - } - /// - /// Aggiorno visualizzazione - /// - public void doUpdate() - { - setButtons(); - grView.DataBind(); - } - /// - /// update elenco ultime timbrature - /// - private void updateTimbrature() - { - // aggiorno datagrid - } - /// - /// registro timbratura - /// - /// - /// - private int registraTimbratura(bool isEntrata) - { - // salvo evento entrata... - string IPv4 = ""; - bool approvata = false; - if (IdxDipendente > 0) - { - // recupero IP - IPv4 = Request.UserHostName; - // controllo se IP locale = approvata... - if (IPv4.Contains(memLayer.ML.confReadString("localNet"))) + private void fixBtnInOut(bool showIn, bool showOut) { - approvata = true; + lbtEntrata.Enabled = showIn; + lbtUscita.Enabled = showOut; + lbtEntrata.CssClass = showIn ? "btn btn-primary btn-block" : "btn btn-outline-primary disabled btn-block"; + lbtUscita.CssClass = showOut ? "btn btn-success btn-block" : "btn btn-outline-success disabled btn-block"; } - timbratrice.registraTimbratura(IdxDipendente, DateTime.Now, isEntrata, IPv4, "Web", approvata); - lblWarning.Visible = false; - abilitaAll = false; - //aggiorno timbrature visualizzate - setButtons(); - updateTimbrature(); - grView.DataBind(); - } - else - { - lblWarning.Text = "IdxDipendente non trovato! timbratura impossibile"; - lblWarning.Visible = true; - } - return IdxDipendente; - } - /// - /// idx dipendente loggato - /// - protected int IdxDipendente - { - get - { - int idx = 0; - try + + /// + /// timbro entrata... + /// + /// + /// + protected void lbtEntrata_Click(object sender, EventArgs e) { - idx = memLayer.ML.IntSessionObj("IdxDipendente"); + bool isEntrata = true; + registraTimbratura(isEntrata); + } + /// + /// uscita... + /// + /// + /// + protected void lbtUscita_Click(object sender, EventArgs e) + { + bool isEntrata = false; + registraTimbratura(isEntrata); + } + /// + /// Aggiorno visualizzazione + /// + public void doUpdate() + { + setButtons(); + grView.DataBind(); + } + /// + /// update elenco ultime timbrature + /// + private void updateTimbrature() + { + // aggiorno datagrid + } + /// + /// registro timbratura + /// + /// + /// + private int registraTimbratura(bool isEntrata) + { + // salvo evento entrata... + string IPv4 = ""; + bool approvata = false; + if (IdxDipendente > 0) + { + // recupero IP + IPv4 = Request.UserHostName; + // controllo se IP locale = approvata... + if (IPv4.Contains(memLayer.ML.confReadString("localNet"))) + { + approvata = true; + } + timbratrice.registraTimbratura(IdxDipendente, DateTime.Now, isEntrata, IPv4, "Web", approvata); + lblWarning.Visible = false; + abilitaAll = false; + //aggiorno timbrature visualizzate + setButtons(); + updateTimbrature(); + grView.DataBind(); + } + else + { + lblWarning.Text = "IdxDipendente non trovato! timbratura impossibile"; + lblWarning.Visible = true; + } + return IdxDipendente; + } + /// + /// idx dipendente loggato + /// + protected int IdxDipendente + { + get + { + int idx = 0; + try + { + idx = memLayer.ML.IntSessionObj("IdxDipendente"); + } + catch + { } + return idx; + } + } + /// + /// inverte valore booleano + /// + /// + /// + public bool invBool(object valore) + { + bool answ = true; + try + { + answ = !Convert.ToBoolean(valore); + } + catch + { } + return answ; } - catch - { } - return idx; - } - } - /// - /// inverte valore booleano - /// - /// - /// - public bool invBool(object valore) - { - bool answ = true; - try - { - answ = !Convert.ToBoolean(valore); - } - catch - { } - return answ; - } - protected void grView_RowCreated(object sender, GridViewRowEventArgs e) - { - int maxNum = e.Row.Cells.Count - 2; - for (int i = numColEU * 2 + 1; i < maxNum; i++) - { - e.Row.Cells[i].Visible = false; - } - } + protected void grView_RowCreated(object sender, GridViewRowEventArgs e) + { + int maxNum = e.Row.Cells.Count - 2; + for (int i = numColEU * 2 + 1; i < maxNum; i++) + { + e.Row.Cells[i].Visible = false; + } + } - protected void grView_SelectedIndexChanged(object sender, EventArgs e) - { - // rimando ai progetti sulla data indicata... - DateTime dataRif = DateTime.Today; - try - { - dataRif = Convert.ToDateTime(grView.SelectedDataKey["dataLav"]); - } - catch - { } - // salvo in sessione... - memLayer.ML.setSessionVal("dataRif", dataRif); - // reinvio - Response.Redirect(string.Format("Progetti?dataRif={0:yyyy-MM-dd}", dataRif)); + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // rimando ai progetti sulla data indicata... + DateTime dataRif = DateTime.Today; + try + { + dataRif = Convert.ToDateTime(grView.SelectedDataKey["dataLav"]); + } + catch + { } + // salvo in sessione... + memLayer.ML.setSessionVal("dataRif", dataRif); + // reinvio + Response.Redirect($"Progetti?dataRif={dataRif:yyyy-MM-dd}"); + } + + public bool gtZero(object _valore) + { + bool answ = false; + decimal valore = 0; + decimal.TryParse(_valore.ToString(), out valore); + answ = valore > 0; + return answ; + } + + protected void lbShowTemp_Click(object sender, EventArgs e) + { + // recupero data di riferimento + try + { + LinkButton lbt = (LinkButton)sender; + string cmdArg = lbt.CommandArgument; + DateTime dataRif = DateTime.Today; + DateTime.TryParse(cmdArg, out dataRif); + // salvo in sessione... + memLayer.ML.setSessionVal("dataRif", dataRif); + // reinvio + Response.Redirect($"TempRil?dataRif={dataRif:yyyy-MM-dd}"); + } + catch + { } + } } - } } \ No newline at end of file diff --git a/GPW_Smart/WebUserControls/mod_timbrature.ascx.designer.cs b/GPW_Smart/WebUserControls/mod_timbrature.ascx.designer.cs index d2df10f..90e24d8 100644 --- a/GPW_Smart/WebUserControls/mod_timbrature.ascx.designer.cs +++ b/GPW_Smart/WebUserControls/mod_timbrature.ascx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace GPW.WebUserControls { - - - public partial class mod_timbrature { - +namespace GPW.WebUserControls +{ + + + public partial class mod_timbrature + { + /// /// Controllo lbtEntrata. /// @@ -20,7 +22,7 @@ namespace GPW.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.LinkButton lbtEntrata; - + /// /// Controllo lbtUscita. /// @@ -29,7 +31,7 @@ namespace GPW.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.LinkButton lbtUscita; - + /// /// Controllo lblWarning. /// @@ -38,7 +40,7 @@ namespace GPW.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.Label lblWarning; - + /// /// Controllo grView. /// @@ -47,7 +49,7 @@ namespace GPW.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.GridView grView; - + /// /// Controllo ods. /// diff --git a/Jenkinsfile b/Jenkinsfile index 633105f..6f35c08 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=4114']) { + withEnv(['NEXT_BUILD_NUMBER=4115']) { // env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'GPW' From b33ab5ea71e4502972e4a9692aad0f4795b17513 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 2 Sep 2020 10:38:49 +0200 Subject: [PATCH 2/2] review grafico timbrature --- GPW_Smart/Content/Site.css | 3 +++ GPW_Smart/Content/Site.less | 10 +++++++--- GPW_Smart/Content/Site.min.css | 2 +- GPW_Smart/WebUserControls/cmp_rilTemp.ascx | 4 ++-- GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs | 4 ++-- GPW_Smart/WebUserControls/mod_timbrature.ascx | 16 ++++++++-------- 6 files changed, 23 insertions(+), 16 deletions(-) diff --git a/GPW_Smart/Content/Site.css b/GPW_Smart/Content/Site.css index 06c1667..448b7f0 100644 --- a/GPW_Smart/Content/Site.css +++ b/GPW_Smart/Content/Site.css @@ -4,6 +4,9 @@ body { padding-top: 50px; padding-bottom: 20px; } +.fontCond { + font-family: 'Open Sans Condensed', sans-serif; +} /* Wrapping element */ /* Set some basic padding to keep content from hitting the edges */ .body-content { diff --git a/GPW_Smart/Content/Site.less b/GPW_Smart/Content/Site.less index 26a869a..c8405e9 100644 --- a/GPW_Smart/Content/Site.less +++ b/GPW_Smart/Content/Site.less @@ -1,8 +1,12 @@ /* Move down content because we have a fixed navbar that is 50px tall */ body { - font-family: 'Open Sans', sans-serif; - padding-top: 50px; - padding-bottom: 20px; + font-family: 'Open Sans', sans-serif; + padding-top: 50px; + padding-bottom: 20px; +} + +.fontCond { + font-family: 'Open Sans Condensed', sans-serif; } /* Wrapping element */ diff --git a/GPW_Smart/Content/Site.min.css b/GPW_Smart/Content/Site.min.css index de19973..3d2721e 100644 --- a/GPW_Smart/Content/Site.min.css +++ b/GPW_Smart/Content/Site.min.css @@ -1 +1 @@ -body{font-family:'Open Sans',sans-serif;padding-top:50px;padding-bottom:20px;}.body-content{padding-left:15px;padding-right:15px;}input,select,textarea{max-width:280px;}.bg-abstract{background:url("../images/AbstractDownload.jpg");background-repeat:no-repeat;background-size:cover;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}body{font-size:1.6rem;}input,select,textarea{max-width:100%;}}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:.1rem !important;margin:.1rem !important;}.elTimbSmart{padding:.2em;font-size:1.1em;line-height:1.3em;} \ No newline at end of file +body{font-family:'Open Sans',sans-serif;padding-top:50px;padding-bottom:20px;}.fontCond{font-family:'Open Sans Condensed',sans-serif;}.body-content{padding-left:15px;padding-right:15px;}input,select,textarea{max-width:280px;}.bg-abstract{background:url("../images/AbstractDownload.jpg");background-repeat:no-repeat;background-size:cover;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}body{font-size:1.6rem;}input,select,textarea{max-width:100%;}}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:.1rem !important;margin:.1rem !important;}.elTimbSmart{padding:.2em;font-size:1.1em;line-height:1.3em;} \ No newline at end of file diff --git a/GPW_Smart/WebUserControls/cmp_rilTemp.ascx b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx index ab2c2fc..72d5182 100644 --- a/GPW_Smart/WebUserControls/cmp_rilTemp.ascx +++ b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx @@ -6,10 +6,10 @@

Temperatura

- <%: SteamWare.memLayer.ML.QSS("dataRif") %> + <%: string.Format("{0:yyyy-MM-dd, dddd}",dtRif) %>
- +
Cancel diff --git a/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs index ce43830..e927f13 100644 --- a/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs +++ b/GPW_Smart/WebUserControls/cmp_rilTemp.ascx.cs @@ -28,7 +28,7 @@ namespace GPW_Smart.WebUserControls } } - protected DateTime dtRif + public DateTime dtRif { get { @@ -43,7 +43,7 @@ namespace GPW_Smart.WebUserControls { get { - decimal answ = 0; + decimal answ = 37; decimal.TryParse(txtTempRil.Text.Replace(".",","), out answ); return answ; } diff --git a/GPW_Smart/WebUserControls/mod_timbrature.ascx b/GPW_Smart/WebUserControls/mod_timbrature.ascx index adfba26..9b7fcfc 100644 --- a/GPW_Smart/WebUserControls/mod_timbrature.ascx +++ b/GPW_Smart/WebUserControls/mod_timbrature.ascx @@ -12,13 +12,13 @@
-
+
- <%# Eval("dataLav", "{0:MM.dd} {0:ddd}") %> + <%# Eval("dataLav", "{0:MM.dd} {0:ddd}") %> @@ -61,13 +61,13 @@
- - - - - + + + + + - +