diff --git a/.vs/XPS_app/v15/sqlite3/storage.ide b/.vs/XPS_app/v15/sqlite3/storage.ide
index e8550e4..093f404 100644
Binary files a/.vs/XPS_app/v15/sqlite3/storage.ide and b/.vs/XPS_app/v15/sqlite3/storage.ide differ
diff --git a/SQL_Scripts/Update_1.7.sql b/SQL_Scripts/Update_1.7.sql
index 054b8ad..f7f8c0c 100644
--- a/SQL_Scripts/Update_1.7.sql
+++ b/SQL_Scripts/Update_1.7.sql
@@ -5,3 +5,54 @@ INSERT INTO TraEv2Stati (CodMappa,CodObj,CodStato,CodEvento,NextCodStato,CmdPlug
INSERT INTO TraEv2Stati (CodMappa,CodObj,CodStato,CodEvento,NextCodStato,CmdPlugin,text2show,descrComando) VALUES('E_Stati','U','01','04','04',NULL,NULL,'cambio da stato 1 a 4 (inizio lav)')
+-- 2018.03.23 update tab IstObj x salvare VOLUME occupato (come pesoEq / Peso standard)
+ALTER TABLE IstObj ADD PesoEquiv float null;
+ALTER TABLE IstObj_storico ADD PesoEquiv float null;
+UPDATE IstObj_storico SET PesoEquiv = CEILING(Peso/10)*10
+UPDATE IstObj SET PesoEquiv = CEILING(Peso/10)*10
+
+ALTER TABLE AnagLav ADD PesoUnit FLOAT NOT NULL DEFAULT 400;
+ALTER TABLE AnagLav ADD RoundVal FLOAT NOT NULL DEFAULT 10;
+INSERT INTO AnagLav([IdxLav],[DescrLav],[PesoUnit], RoundVal) VALUES('Fosf-VG', 'Fosfatazione Vasca Grande', 2500, 10)
+
+/****** Object: StoredProcedure [dbo].[stp_selStatiMinMax] Script Date: 23/03/2018 11:59:33 ******/
+SET ANSI_NULLS ON
+GO
+SET QUOTED_IDENTIFIER ON
+GO
+
+/***************************************
+* STORED stp_impegniSchedulati
+* recupera elenco degli impegni schedulati x TipoLav e unità equivalenti
+*
+* Steamware, S.E.L.
+* mod: 2018.03.23
+****************************************/
+create PROCEDURE [dbo].[stp_impegniSchedulati]
+(
+ @IdxLav nvarchar(50) = '*'
+)
+AS
+
+SELECT @IdxLav = ISNULL(@IdxLav,'*')
+
+;with cteImpegni as
+(
+ SELECT *
+ FROM IstObj
+ WHERE ISNULL(PesoEquiv,0)>0
+ AND CodStato = '03'
+ AND ExtKey = CASE WHEN @IdxLav = '*' THEN ExtKey ELSE @IdxLav END
+)
+, cteImpGG AS
+(
+SELECT dbo.DateOnly(DueDate) AS DueDate, ExtKey as IdxLav, SUM(Peso) AS TotPeso, Sum(PesoEquiv) as TotPesoEquiv
+FROM cteImpegni
+GROUP BY dbo.DateOnly(DueDate), ExtKey
+)
+
+SELECT i.*, i.TotPesoEquiv / al.PesoUnit AS RatioUnit, CEILING(i.TotPesoEquiv / al.PesoUnit) AS NumUnit
+FROM cteImpGG i
+ INNER JOIN AnagLav al ON al.IdxLav=i.IdxLav
+
+RETURN
diff --git a/XPS/WebUserControls/mod_elencoComm.ascx b/XPS/WebUserControls/mod_elencoComm.ascx
index 9c82f2f..9e8166a 100644
--- a/XPS/WebUserControls/mod_elencoComm.ascx
+++ b/XPS/WebUserControls/mod_elencoComm.ascx
@@ -3,6 +3,8 @@
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="mod_logStati.ascx" TagName="mod_logStati" TagPrefix="uc2" %>
<%@ Register Src="~/WebUserControls/mod_periodoAnalisi.ascx" TagPrefix="uc1" TagName="mod_periodoAnalisi" %>
+<%@ Register Src="~/WebUserControls/mod_impegniSched.ascx" TagPrefix="uc1" TagName="mod_impegniSched" %>
+
-
-
- Carico giornate successive
-
-
+
@@ -131,6 +129,7 @@
+
@@ -156,19 +155,12 @@
-
-
+
@@ -181,8 +173,7 @@
-
-
+
@@ -194,10 +185,10 @@
num:
-
+
del:
-
+
diff --git a/XPS/WebUserControls/mod_elencoComm.ascx.cs b/XPS/WebUserControls/mod_elencoComm.ascx.cs
index 40808e4..e972aee 100644
--- a/XPS/WebUserControls/mod_elencoComm.ascx.cs
+++ b/XPS/WebUserControls/mod_elencoComm.ascx.cs
@@ -657,6 +657,49 @@ namespace XPS.WebUserControls
{
memLayer.ML.setSessionVal("nextObjCommand", "fatturaObj");
}
+ ///
+ /// Codice OBJ selezionato
+ ///
+ protected string CodSel
+ {
+ get
+ {
+ string answ = "";
+ try
+ {
+ answ = grView.SelectedValue.ToString();
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ ///
+ /// Ciclo LAV selezionato
+ ///
+ protected string CicloSel
+ {
+ get
+ {
+ string answ = "";
+ try
+ {
+ if (CodSel != "")
+ {
+ // se ho un codice recupero...
+ answ = XPS_data.XPS.obj.taComm.getByCod(CodSel)[0].Ciclo;
+ }
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+
+
+
+
+
///
/// gestione cambio selezione valore
///
@@ -676,6 +719,8 @@ namespace XPS.WebUserControls
pnlSetDueDate.Visible = true;
pnlCambiaStato.Visible = false;
pnlLogStati.Visible = false;
+ mod_impegniSched.Visible = true;
+ mod_impegniSched.CicloSel = CicloSel;
showDetailPnl(true);
break;
case "cambiaStato": // non è vero select ma un edit dello stato...
@@ -683,6 +728,8 @@ namespace XPS.WebUserControls
pnlCambiaStato.Visible = true;
pnlSetDueDate.Visible = false;
pnlLogStati.Visible = false;
+ mod_impegniSched.Visible = true;
+ mod_impegniSched.CicloSel = CicloSel;
showDetailPnl(true);
break;
case "mostraLog": // non è vero select ma un show del log di cambio stato
@@ -690,11 +737,13 @@ namespace XPS.WebUserControls
pnlSetDueDate.Visible = false;
pnlCambiaStato.Visible = false;
mod_logStati1.idxObj = grView.SelectedValue.ToString();
+ mod_impegniSched.Visible = false;
showDetailPnl(true);
break;
default: // è select...
// salvo in session il valore selezionato...
memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue.ToString(), true);
+ mod_impegniSched.Visible = false;
// sollevo evento nuovo valore...
if (eh_selValore != null)
{
@@ -708,6 +757,7 @@ namespace XPS.WebUserControls
// significa che mi chiedono di impostare la data a tutti i child...
DateTime dueDate = Convert.ToDateTime(txtDueDate.Text).AddHours(Convert.ToInt32(ddlOra.SelectedValue));
string codObjCommon = grView.SelectedValue.ToString().Replace("D", "%");
+
// salvo le date...
XPS_data.XPS.obj.taObj.updateDueDateULP(dueDate, user_std.UtSn.utente, DateTime.Now, codObjCommon);
// aggiorno stato...
diff --git a/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs b/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs
index b685af7..478b830 100644
--- a/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs
+++ b/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs
@@ -435,6 +435,15 @@ namespace XPS.WebUserControls {
///
protected global::XPS.WebUserControls.mod_logStati mod_logStati1;
+ ///
+ /// Controllo mod_impegniSched.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::XPS.WebUserControls.mod_impegniSched mod_impegniSched;
+
///
/// Controllo divMain.
///
diff --git a/XPS/WebUserControls/mod_impegniSched.ascx b/XPS/WebUserControls/mod_impegniSched.ascx
new file mode 100644
index 0000000..7562045
--- /dev/null
+++ b/XPS/WebUserControls/mod_impegniSched.ascx
@@ -0,0 +1,34 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_impegniSched.ascx.cs" Inherits="XPS.WebUserControls.mod_impegniSched" %>
+
+
+
+
+
+
+
+
+
+ <%# Eval("DueDate","{0:ddd dd.MM.yyy}") %>
+
+
+ <%# Eval("TotPesoEquiv","{0:N} kg") %>
+ <%# Eval("TotPeso","({0:N} kg)") %>
+
+
+ <%# Eval("NumUnit") %> x
+
+ <%# Eval("RatioUnit","({0:N2})") %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/XPS/WebUserControls/mod_impegniSched.ascx.cs b/XPS/WebUserControls/mod_impegniSched.ascx.cs
new file mode 100644
index 0000000..f86a662
--- /dev/null
+++ b/XPS/WebUserControls/mod_impegniSched.ascx.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace XPS.WebUserControls
+{
+ public partial class mod_impegniSched : System.Web.UI.UserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ ///
+ /// Valore filtro tipo lavorazioni
+ ///
+ public string CicloSel
+ {
+ get
+ {
+ return hfIdxLav.Value;
+ }
+ set
+ {
+ hfIdxLav.Value = value;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/XPS/WebUserControls/mod_impegniSched.ascx.designer.cs b/XPS/WebUserControls/mod_impegniSched.ascx.designer.cs
new file mode 100644
index 0000000..9989489
--- /dev/null
+++ b/XPS/WebUserControls/mod_impegniSched.ascx.designer.cs
@@ -0,0 +1,42 @@
+//------------------------------------------------------------------------------
+//
+// 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 XPS.WebUserControls {
+
+
+ public partial class mod_impegniSched {
+
+ ///
+ /// Controllo hfIdxLav.
+ ///
+ ///
+ /// 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.HiddenField hfIdxLav;
+
+ ///
+ /// Controllo repCtr.
+ ///
+ ///
+ /// 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.Repeater repCtr;
+
+ ///
+ /// Controllo ods.
+ ///
+ ///
+ /// 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.ObjectDataSource ods;
+ }
+}
diff --git a/XPS/XPS.csproj b/XPS/XPS.csproj
index 4ee9bd1..a217a0c 100644
--- a/XPS/XPS.csproj
+++ b/XPS/XPS.csproj
@@ -794,6 +794,13 @@
mod_fixCal.ascx
+
+ mod_impegniSched.ascx
+ ASPXCodeBehind
+
+
+ mod_impegniSched.ascx
+
mod_lemmiVocab.ascx
ASPXCodeBehind
@@ -1001,6 +1008,7 @@
+
diff --git a/XPS_data/DS_applicazione.Designer.cs b/XPS_data/DS_applicazione.Designer.cs
index 1767518..13061d2 100644
--- a/XPS_data/DS_applicazione.Designer.cs
+++ b/XPS_data/DS_applicazione.Designer.cs
@@ -52,6 +52,8 @@ namespace XPS_data {
private sp_ddtDataTable tablesp_ddt;
+ private ImpegniSchedulatiDataTable tableImpegniSchedulati;
+
private global::System.Data.DataRelation relationFK_Tratt2Obj_AnagTrattamenti;
private global::System.Data.DataRelation relationFK_Tratt2Obj_IstObj;
@@ -130,6 +132,9 @@ namespace XPS_data {
if ((ds.Tables["sp_ddt"] != null)) {
base.Tables.Add(new sp_ddtDataTable(ds.Tables["sp_ddt"]));
}
+ if ((ds.Tables["ImpegniSchedulati"] != null)) {
+ base.Tables.Add(new ImpegniSchedulatiDataTable(ds.Tables["ImpegniSchedulati"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -288,6 +293,16 @@ namespace XPS_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ImpegniSchedulatiDataTable ImpegniSchedulati {
+ get {
+ return this.tableImpegniSchedulati;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -397,6 +412,9 @@ namespace XPS_data {
if ((ds.Tables["sp_ddt"] != null)) {
base.Tables.Add(new sp_ddtDataTable(ds.Tables["sp_ddt"]));
}
+ if ((ds.Tables["ImpegniSchedulati"] != null)) {
+ base.Tables.Add(new ImpegniSchedulatiDataTable(ds.Tables["ImpegniSchedulati"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -514,6 +532,12 @@ namespace XPS_data {
this.tablesp_ddt.InitVars();
}
}
+ this.tableImpegniSchedulati = ((ImpegniSchedulatiDataTable)(base.Tables["ImpegniSchedulati"]));
+ if ((initTable == true)) {
+ if ((this.tableImpegniSchedulati != null)) {
+ this.tableImpegniSchedulati.InitVars();
+ }
+ }
this.relationFK_Tratt2Obj_AnagTrattamenti = this.Relations["FK_Tratt2Obj_AnagTrattamenti"];
this.relationFK_Tratt2Obj_IstObj = this.Relations["FK_Tratt2Obj_IstObj"];
this.relationFK_IstObj_AnagClienti = this.Relations["FK_IstObj_AnagClienti"];
@@ -556,6 +580,8 @@ namespace XPS_data {
base.Tables.Add(this.tablesp_schedaIdent);
this.tablesp_ddt = new sp_ddtDataTable();
base.Tables.Add(this.tablesp_ddt);
+ this.tableImpegniSchedulati = new ImpegniSchedulatiDataTable();
+ base.Tables.Add(this.tableImpegniSchedulati);
this.relationFK_Tratt2Obj_AnagTrattamenti = new global::System.Data.DataRelation("FK_Tratt2Obj_AnagTrattamenti", new global::System.Data.DataColumn[] {
this.tableAnagTrattamenti.CodTrattamentoColumn}, new global::System.Data.DataColumn[] {
this.tableTratt2Obj.CodTrattamentoColumn}, false);
@@ -658,6 +684,12 @@ namespace XPS_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private bool ShouldSerializeImpegniSchedulati() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -755,6 +787,9 @@ namespace XPS_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public delegate void sp_ddtRowChangeEventHandler(object sender, sp_ddtRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public delegate void ImpegniSchedulatiRowChangeEventHandler(object sender, ImpegniSchedulatiRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -6300,6 +6335,342 @@ namespace XPS_data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ImpegniSchedulatiDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnDueDate;
+
+ private global::System.Data.DataColumn columnIdxLav;
+
+ private global::System.Data.DataColumn columnTotPeso;
+
+ private global::System.Data.DataColumn columnTotPesoEquiv;
+
+ private global::System.Data.DataColumn columnRatioUnit;
+
+ private global::System.Data.DataColumn columnNumUnit;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ImpegniSchedulatiDataTable() {
+ this.TableName = "ImpegniSchedulati";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal ImpegniSchedulatiDataTable(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", "15.0.0.0")]
+ protected ImpegniSchedulatiDataTable(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", "15.0.0.0")]
+ public global::System.Data.DataColumn DueDateColumn {
+ get {
+ return this.columnDueDate;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn IdxLavColumn {
+ get {
+ return this.columnIdxLav;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn TotPesoColumn {
+ get {
+ return this.columnTotPeso;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn TotPesoEquivColumn {
+ get {
+ return this.columnTotPesoEquiv;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn RatioUnitColumn {
+ get {
+ return this.columnRatioUnit;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn NumUnitColumn {
+ get {
+ return this.columnNumUnit;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
+ public ImpegniSchedulatiRow this[int index] {
+ get {
+ return ((ImpegniSchedulatiRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event ImpegniSchedulatiRowChangeEventHandler ImpegniSchedulatiRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event ImpegniSchedulatiRowChangeEventHandler ImpegniSchedulatiRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event ImpegniSchedulatiRowChangeEventHandler ImpegniSchedulatiRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event ImpegniSchedulatiRowChangeEventHandler ImpegniSchedulatiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void AddImpegniSchedulatiRow(ImpegniSchedulatiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ImpegniSchedulatiRow AddImpegniSchedulatiRow(System.DateTime DueDate, string IdxLav, double TotPeso, double TotPesoEquiv, double RatioUnit, double NumUnit) {
+ ImpegniSchedulatiRow rowImpegniSchedulatiRow = ((ImpegniSchedulatiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ DueDate,
+ IdxLav,
+ TotPeso,
+ TotPesoEquiv,
+ RatioUnit,
+ NumUnit};
+ rowImpegniSchedulatiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowImpegniSchedulatiRow);
+ return rowImpegniSchedulatiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ImpegniSchedulatiRow FindByDueDateIdxLav(System.DateTime DueDate, string IdxLav) {
+ return ((ImpegniSchedulatiRow)(this.Rows.Find(new object[] {
+ DueDate,
+ IdxLav})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ImpegniSchedulatiDataTable cln = ((ImpegniSchedulatiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ImpegniSchedulatiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal void InitVars() {
+ this.columnDueDate = base.Columns["DueDate"];
+ this.columnIdxLav = base.Columns["IdxLav"];
+ this.columnTotPeso = base.Columns["TotPeso"];
+ this.columnTotPesoEquiv = base.Columns["TotPesoEquiv"];
+ this.columnRatioUnit = base.Columns["RatioUnit"];
+ this.columnNumUnit = base.Columns["NumUnit"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitClass() {
+ this.columnDueDate = new global::System.Data.DataColumn("DueDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDueDate);
+ this.columnIdxLav = new global::System.Data.DataColumn("IdxLav", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxLav);
+ this.columnTotPeso = new global::System.Data.DataColumn("TotPeso", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTotPeso);
+ this.columnTotPesoEquiv = new global::System.Data.DataColumn("TotPesoEquiv", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTotPesoEquiv);
+ this.columnRatioUnit = new global::System.Data.DataColumn("RatioUnit", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnRatioUnit);
+ this.columnNumUnit = new global::System.Data.DataColumn("NumUnit", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNumUnit);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("stp_impegniSchedulatiPK", new global::System.Data.DataColumn[] {
+ this.columnDueDate,
+ this.columnIdxLav}, true));
+ this.columnDueDate.AllowDBNull = false;
+ this.columnDueDate.ReadOnly = true;
+ this.columnIdxLav.AllowDBNull = false;
+ this.columnIdxLav.MaxLength = 50;
+ this.columnTotPeso.ReadOnly = true;
+ this.columnTotPesoEquiv.ReadOnly = true;
+ this.columnRatioUnit.ReadOnly = true;
+ this.columnNumUnit.ReadOnly = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ImpegniSchedulatiRow NewImpegniSchedulatiRow() {
+ return ((ImpegniSchedulatiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ImpegniSchedulatiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ImpegniSchedulatiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ImpegniSchedulatiRowChanged != null)) {
+ this.ImpegniSchedulatiRowChanged(this, new ImpegniSchedulatiRowChangeEvent(((ImpegniSchedulatiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ImpegniSchedulatiRowChanging != null)) {
+ this.ImpegniSchedulatiRowChanging(this, new ImpegniSchedulatiRowChangeEvent(((ImpegniSchedulatiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ImpegniSchedulatiRowDeleted != null)) {
+ this.ImpegniSchedulatiRowDeleted(this, new ImpegniSchedulatiRowChangeEvent(((ImpegniSchedulatiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ImpegniSchedulatiRowDeleting != null)) {
+ this.ImpegniSchedulatiRowDeleting(this, new ImpegniSchedulatiRowChangeEvent(((ImpegniSchedulatiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void RemoveImpegniSchedulatiRow(ImpegniSchedulatiRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 = "ImpegniSchedulatiDataTable";
+ 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.
///
@@ -10147,6 +10518,156 @@ namespace XPS_data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class ImpegniSchedulatiRow : global::System.Data.DataRow {
+
+ private ImpegniSchedulatiDataTable tableImpegniSchedulati;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal ImpegniSchedulatiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableImpegniSchedulati = ((ImpegniSchedulatiDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public System.DateTime DueDate {
+ get {
+ return ((global::System.DateTime)(this[this.tableImpegniSchedulati.DueDateColumn]));
+ }
+ set {
+ this[this.tableImpegniSchedulati.DueDateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string IdxLav {
+ get {
+ return ((string)(this[this.tableImpegniSchedulati.IdxLavColumn]));
+ }
+ set {
+ this[this.tableImpegniSchedulati.IdxLavColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public double TotPeso {
+ get {
+ try {
+ return ((double)(this[this.tableImpegniSchedulati.TotPesoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("Il valore della colonna \'TotPeso\' nella tabella \'ImpegniSchedulati\' è DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableImpegniSchedulati.TotPesoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public double TotPesoEquiv {
+ get {
+ try {
+ return ((double)(this[this.tableImpegniSchedulati.TotPesoEquivColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("Il valore della colonna \'TotPesoEquiv\' nella tabella \'ImpegniSchedulati\' è DBNull" +
+ ".", e);
+ }
+ }
+ set {
+ this[this.tableImpegniSchedulati.TotPesoEquivColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public double RatioUnit {
+ get {
+ try {
+ return ((double)(this[this.tableImpegniSchedulati.RatioUnitColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("Il valore della colonna \'RatioUnit\' nella tabella \'ImpegniSchedulati\' è DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableImpegniSchedulati.RatioUnitColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public double NumUnit {
+ get {
+ try {
+ return ((double)(this[this.tableImpegniSchedulati.NumUnitColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumUnit\' nella tabella \'ImpegniSchedulati\' è DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableImpegniSchedulati.NumUnitColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool IsTotPesoNull() {
+ return this.IsNull(this.tableImpegniSchedulati.TotPesoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void SetTotPesoNull() {
+ this[this.tableImpegniSchedulati.TotPesoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool IsTotPesoEquivNull() {
+ return this.IsNull(this.tableImpegniSchedulati.TotPesoEquivColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void SetTotPesoEquivNull() {
+ this[this.tableImpegniSchedulati.TotPesoEquivColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool IsRatioUnitNull() {
+ return this.IsNull(this.tableImpegniSchedulati.RatioUnitColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void SetRatioUnitNull() {
+ this[this.tableImpegniSchedulati.RatioUnitColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool IsNumUnitNull() {
+ return this.IsNull(this.tableImpegniSchedulati.NumUnitColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void SetNumUnitNull() {
+ this[this.tableImpegniSchedulati.NumUnitColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Row event argument class
///
@@ -10622,6 +11143,40 @@ namespace XPS_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public class ImpegniSchedulatiRowChangeEvent : global::System.EventArgs {
+
+ private ImpegniSchedulatiRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ImpegniSchedulatiRowChangeEvent(ImpegniSchedulatiRow 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", "15.0.0.0")]
+ public ImpegniSchedulatiRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace XPS_data.DS_applicazioneTableAdapters {
@@ -16894,6 +17449,192 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
}
}
+ ///
+ ///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 ImpegniSchedulatiTableAdapter : 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", "15.0.0.0")]
+ public ImpegniSchedulatiTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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", "15.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", "15.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", "15.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 = "ImpegniSchedulati";
+ tableMapping.ColumnMappings.Add("DueDate", "DueDate");
+ tableMapping.ColumnMappings.Add("IdxLav", "IdxLav");
+ tableMapping.ColumnMappings.Add("TotPeso", "TotPeso");
+ tableMapping.ColumnMappings.Add("TotPesoEquiv", "TotPesoEquiv");
+ tableMapping.ColumnMappings.Add("RatioUnit", "RatioUnit");
+ tableMapping.ColumnMappings.Add("NumUnit", "NumUnit");
+ this._adapter.TableMappings.Add(tableMapping);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::XPS_data.Properties.Settings.Default.Equa_XPSConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "dbo.stp_impegniSchedulati";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxLav", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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.ImpegniSchedulatiDataTable dataTable, string IdxLav) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((IdxLav == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxLav));
+ }
+ 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", "15.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.ImpegniSchedulatiDataTable GetData(string IdxLav) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((IdxLav == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxLav));
+ }
+ DS_applicazione.ImpegniSchedulatiDataTable dataTable = new DS_applicazione.ImpegniSchedulatiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+ }
+
///
///Represents the connection and commands used to retrieve and save data.
///
diff --git a/XPS_data/DS_applicazione.xsd b/XPS_data/DS_applicazione.xsd
index ae97f2b..b1b33a2 100644
--- a/XPS_data/DS_applicazione.xsd
+++ b/XPS_data/DS_applicazione.xsd
@@ -1185,6 +1185,30 @@ WHERE (IdxObj = @IdxObj)
+
+
+
+
+
+ dbo.stp_impegniSchedulati
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2008,6 +2032,24 @@ WHERE (IdxObj = @IdxObj)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2058,13 +2100,18 @@ WHERE (IdxObj = @IdxObj)
+
+
+
+
+
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/XPS_data/DS_applicazione.xss b/XPS_data/DS_applicazione.xss
index d0b64a7..7f7c9d1 100644
--- a/XPS_data/DS_applicazione.xss
+++ b/XPS_data/DS_applicazione.xss
@@ -4,26 +4,27 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
1023
@@ -39,7 +40,7 @@
-
+
769
@@ -51,7 +52,7 @@
-
+
432
@@ -63,7 +64,7 @@
-
+
181