diff --git a/MP-ADM/MP-ADM.csproj b/MP-ADM/MP-ADM.csproj index 4dfdf78e..034a54c7 100644 --- a/MP-ADM/MP-ADM.csproj +++ b/MP-ADM/MP-ADM.csproj @@ -600,6 +600,7 @@ + @@ -940,6 +941,13 @@ cmp_planStats_Art.ascx + + cmp_planStats_Cli.ascx + ASPXCodeBehind + + + cmp_planStats_Cli.ascx + cmp_planStats_Fasi.ascx ASPXCodeBehind diff --git a/MP-ADM/Planner.aspx.cs b/MP-ADM/Planner.aspx.cs index 51eb227f..098d29d4 100644 --- a/MP-ADM/Planner.aspx.cs +++ b/MP-ADM/Planner.aspx.cs @@ -60,6 +60,7 @@ namespace MP_ADM { mod_planCreate.CodGruppo = mod_planStats.CodFase; mod_planCreate.IdxMacchina = mod_planStats.IdxMacchina; + mod_planCreate.CodCliente = mod_planStats.CodCliente; mod_planCreate.CodArticolo = mod_planStats.CodArticolo; mod_planCreate.doUpdate(); } diff --git a/MP-ADM/WebUserControls/cmp_planStats_Art.ascx b/MP-ADM/WebUserControls/cmp_planStats_Art.ascx index 2135f9e5..0b76e78a 100644 --- a/MP-ADM/WebUserControls/cmp_planStats_Art.ascx +++ b/MP-ADM/WebUserControls/cmp_planStats_Art.ascx @@ -5,12 +5,12 @@
-
+
-
+

Articoli

-
+
diff --git a/MP-ADM/WebUserControls/cmp_planStats_Cli.ascx b/MP-ADM/WebUserControls/cmp_planStats_Cli.ascx new file mode 100644 index 00000000..90b0634c --- /dev/null +++ b/MP-ADM/WebUserControls/cmp_planStats_Cli.ascx @@ -0,0 +1,40 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_planStats_Cli.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_planStats_Cli" %> + +<%@ Register Src="~/WebUserControls/cmp_numRow.ascx" TagPrefix="uc1" TagName="cmp_numRow" %> + + +
+
+

Clienti

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
\ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_planStats_Cli.ascx.cs b/MP-ADM/WebUserControls/cmp_planStats_Cli.ascx.cs new file mode 100644 index 00000000..b2e17a10 --- /dev/null +++ b/MP-ADM/WebUserControls/cmp_planStats_Cli.ascx.cs @@ -0,0 +1,91 @@ +using SteamWare; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MP_ADM.WebUserControls +{ + public partial class cmp_planStats_Cli : BaseUserControl + { + #region Public Properties + + public string CodGrp + { + get + { + return hfCodGrp.Value; + } + set + { + hfCodGrp.Value = value; + } + } + + public string SelCodCliente + { + get + { + string answ = ""; + if (grView.SelectedIndex >= 0) + { + answ = $"{grView.SelectedValue}"; + } + return answ; + } + } + + #endregion Public Properties + + #region Private Methods + + private void Cmp_numRow_eh_newNum(object sender, EventArgs e) + { + grView.PageSize = cmp_numRow.numRowPag; + } + + #endregion Private Methods + + #region Protected Methods + + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + raiseSelNew(); + } + + /// + /// comando reset + /// + /// + /// + protected void lbtReset_Click(object sender, EventArgs e) + { + doReset(); + raiseReset(); + } + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + cmp_numRow.numRowPag = memLayer.ML.CRI("_righeDataGridShort") / 2; + grView.PageSize = cmp_numRow.numRowPag; + } + cmp_numRow.eh_newNum += Cmp_numRow_eh_newNum; + } + + #endregion Protected Methods + + #region Public Methods + + public void doReset() + { + grView.SelectedIndex = -1; + grView.DataBind(); + } + + #endregion Public Methods + } +} \ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_planStats_Cli.ascx.designer.cs b/MP-ADM/WebUserControls/cmp_planStats_Cli.ascx.designer.cs new file mode 100644 index 00000000..a2ce102c --- /dev/null +++ b/MP-ADM/WebUserControls/cmp_planStats_Cli.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 MP_ADM.WebUserControls +{ + + + public partial class cmp_planStats_Cli + { + + /// + /// Controllo hfCodGrp. + /// + /// + /// 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 hfCodGrp; + + /// + /// Controllo grView. + /// + /// + /// 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.GridView grView; + + /// + /// 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; + + /// + /// Controllo cmp_numRow. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::MP_ADM.WebUserControls.cmp_numRow cmp_numRow; + } +} diff --git a/MP-ADM/WebUserControls/cmp_planStats_Fasi.ascx b/MP-ADM/WebUserControls/cmp_planStats_Fasi.ascx index 79cbd29a..1b24fff6 100644 --- a/MP-ADM/WebUserControls/cmp_planStats_Fasi.ascx +++ b/MP-ADM/WebUserControls/cmp_planStats_Fasi.ascx @@ -4,7 +4,7 @@
-

Reparti/Fasi

+

Fasi

diff --git a/MP-ADM/WebUserControls/cmp_planStats_Mac.ascx b/MP-ADM/WebUserControls/cmp_planStats_Mac.ascx index d1d754f1..ea3cb7bb 100644 --- a/MP-ADM/WebUserControls/cmp_planStats_Mac.ascx +++ b/MP-ADM/WebUserControls/cmp_planStats_Mac.ascx @@ -4,7 +4,7 @@
-
+

Macchine

diff --git a/MP-ADM/WebUserControls/mod_planCreate.ascx b/MP-ADM/WebUserControls/mod_planCreate.ascx index a7af9ae3..2baa0685 100644 --- a/MP-ADM/WebUserControls/mod_planCreate.ascx +++ b/MP-ADM/WebUserControls/mod_planCreate.ascx @@ -4,6 +4,7 @@
+
diff --git a/MP-ADM/WebUserControls/mod_planCreate.ascx.cs b/MP-ADM/WebUserControls/mod_planCreate.ascx.cs index 3170c341..598f11f7 100644 --- a/MP-ADM/WebUserControls/mod_planCreate.ascx.cs +++ b/MP-ADM/WebUserControls/mod_planCreate.ascx.cs @@ -9,18 +9,60 @@ namespace MP_ADM.WebUserControls { public partial class mod_planCreate : SteamWare.UserControl { + #region Private Fields + /// /// Oggetto datalayer specifico /// private DataLayer DataLayerObj = new DataLayer(); - protected void Page_Load(object sender, EventArgs e) + #endregion Private Fields + + #region Protected Properties + + /// + /// Num pz totali calcolati + /// + protected int numPzCalc { - if (!Page.IsPostBack) + get { - // di default NASCONDE... - //toggleVisibility(); - calcTotali(); + int answ = 0; + int.TryParse(hfNumPzTot.Value, out answ); + return answ; + } + set + { + lblNumPzTot.Text = $"{value:N0}"; + hfNumPzTot.Value = value.ToString(); + } + } + + #endregion Protected Properties + + #region Public Properties + + public string CodArticolo + { + get + { + return hfCodArticolo.Value; + } + set + { + hfCodArticolo.Value = value; + } + } + + public string CodCliente + { + get + { + return hfCodCliente.Value; + } + set + { + hfCodCliente.Value = value; } } @@ -36,18 +78,6 @@ namespace MP_ADM.WebUserControls } } - public string CodArticolo - { - get - { - return hfCodArticolo.Value; - } - set - { - hfCodArticolo.Value = value; - } - } - public string IdxMacchina { get @@ -60,69 +90,9 @@ namespace MP_ADM.WebUserControls } } - public void doUpdate() - { - grView.DataBind(); - calcTotali(); - } + #endregion Public Properties - /// - /// seleziona/deseleziona le righe indicate... - /// - /// - /// - protected void btnSelAll_Click(object sender, EventArgs e) - { - // seleziono tutti i valori visibili nel datagrid - CheckBox chkbox = ((CheckBox)sender); - bool isChecked = chkbox.Checked; - if (!isChecked) - { - chkbox.ToolTip = traduci("btnSelAll"); - } - else - { - chkbox.ToolTip = traduci("btnDeselAll"); - } - foreach (GridViewRow riga in grView.Rows) - { - ((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked; - } - calcTotali(); - } - - /// - /// comando reset - /// - /// - /// - protected void lbtReset_Click(object sender, EventArgs e) - { - doReset(); - } - - private void doReset() - { - grView.SelectedIndex = -1; - grView.DataBind(); - raiseEvent(SteamWare.ucEvType.Reset); - } - - protected void lbtToggle_Click(object sender, EventArgs e) - { - toggleVisibility(); - } - - private void toggleVisibility() - { - divDetail.Visible = !divDetail.Visible; - tgIcon.Attributes["class"] = divDetail.Visible ? "fa fa-chevron-up" : "fa fa-chevron-down"; - } - - protected void chkSelect_CheckedChanged(object sender, EventArgs e) - { - calcTotali(); - } + #region Private Methods private void calcTotali() { @@ -175,49 +145,11 @@ namespace MP_ADM.WebUserControls ddlMacc.DataBind(); } - /// - /// Num pz totali calcolati - /// - protected int numPzCalc + private void doReset() { - get - { - int answ = 0; - int.TryParse(hfNumPzTot.Value, out answ); - return answ; - } - set - { - lblNumPzTot.Text = $"{value:N0}"; - hfNumPzTot.Value = value.ToString(); - } - } - - /// - /// Approva e pianifica richeiste... - /// - /// - /// - protected void lbtDoPlan_Click(object sender, EventArgs e) - { - int IdxPromessa = 0; - foreach (GridViewRow riga in grView.Rows) - { - DateTime DataRif = DateTime.Now.Date; - if (((CheckBox)riga.FindControl("chkSelect")).Checked && ((CheckBox)riga.FindControl("chkSelect")).Visible) - { - try - { - int.TryParse(((Label)riga.FindControl("lblIdxPromessa")).Text, out IdxPromessa); - // approvo la promessa COPIANDOLA - DataLayerObj.taPlanRichieste.approvaRich(IdxPromessa, SteamWare.user_std.UtSn.utente); - } - catch - { } - } - } - // update! - reportUpdate(); + grView.SelectedIndex = -1; + grView.DataBind(); + raiseEvent(SteamWare.ucEvType.Reset); } private void reportUpdate() @@ -229,6 +161,46 @@ namespace MP_ADM.WebUserControls raiseEvent(SteamWare.ucEvType.ReqUpdateParent); } + private void toggleVisibility() + { + divDetail.Visible = !divDetail.Visible; + tgIcon.Attributes["class"] = divDetail.Visible ? "fa fa-chevron-up" : "fa fa-chevron-down"; + } + + #endregion Private Methods + + #region Protected Methods + + /// + /// seleziona/deseleziona le righe indicate... + /// + /// + /// + protected void btnSelAll_Click(object sender, EventArgs e) + { + // seleziono tutti i valori visibili nel datagrid + CheckBox chkbox = ((CheckBox)sender); + bool isChecked = chkbox.Checked; + if (!isChecked) + { + chkbox.ToolTip = traduci("btnSelAll"); + } + else + { + chkbox.ToolTip = traduci("btnDeselAll"); + } + foreach (GridViewRow riga in grView.Rows) + { + ((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked; + } + calcTotali(); + } + + protected void chkSelect_CheckedChanged(object sender, EventArgs e) + { + calcTotali(); + } + /// /// Chiama stored per creare NUOVO PODL, chiudere i selezionati, registrare associazione,... /// @@ -286,11 +258,67 @@ namespace MP_ADM.WebUserControls reportUpdate(); } + /// + /// Approva e pianifica richeiste... + /// + /// + /// + protected void lbtDoPlan_Click(object sender, EventArgs e) + { + int IdxPromessa = 0; + foreach (GridViewRow riga in grView.Rows) + { + DateTime DataRif = DateTime.Now.Date; + if (((CheckBox)riga.FindControl("chkSelect")).Checked && ((CheckBox)riga.FindControl("chkSelect")).Visible) + { + try + { + int.TryParse(((Label)riga.FindControl("lblIdxPromessa")).Text, out IdxPromessa); + // approvo la promessa COPIANDOLA + DataLayerObj.taPlanRichieste.approvaRich(IdxPromessa, SteamWare.user_std.UtSn.utente); + } + catch + { } + } + } + // update! + reportUpdate(); + } + + /// + /// comando reset + /// + /// + /// + protected void lbtReset_Click(object sender, EventArgs e) + { + doReset(); + } + + protected void lbtToggle_Click(object sender, EventArgs e) + { + toggleVisibility(); + } + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + // di default NASCONDE... + //toggleVisibility(); + calcTotali(); + } + } + protected void txtNumPezzi_TextChanged(object sender, EventArgs e) { calcTotali(); } + #endregion Protected Methods + + #region Public Methods + /// /// cambia il colore del campo secondo la due date indicata /// rosso: in ritardo (scaduta) @@ -319,5 +347,13 @@ namespace MP_ADM.WebUserControls } return answ; } + + public void doUpdate() + { + grView.DataBind(); + calcTotali(); + } + + #endregion Public Methods } } \ No newline at end of file diff --git a/MP-ADM/WebUserControls/mod_planCreate.ascx.designer.cs b/MP-ADM/WebUserControls/mod_planCreate.ascx.designer.cs index d904826d..bd543695 100644 --- a/MP-ADM/WebUserControls/mod_planCreate.ascx.designer.cs +++ b/MP-ADM/WebUserControls/mod_planCreate.ascx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace MP_ADM.WebUserControls { - - - public partial class mod_planCreate { - +namespace MP_ADM.WebUserControls +{ + + + public partial class mod_planCreate + { + /// /// Controllo hfCodGruppo. /// @@ -20,7 +22,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.HiddenField hfCodGruppo; - + /// /// Controllo hfIdxMacchina. /// @@ -29,7 +31,16 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.HiddenField hfIdxMacchina; - + + /// + /// Controllo hfCodCliente. + /// + /// + /// 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 hfCodCliente; + /// /// Controllo hfCodArticolo. /// @@ -38,7 +49,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.HiddenField hfCodArticolo; - + /// /// Controllo lblNumPzTot. /// @@ -47,7 +58,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.Label lblNumPzTot; - + /// /// Controllo hfNumPzTot. /// @@ -56,7 +67,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.HiddenField hfNumPzTot; - + /// /// Controllo lblOreTot. /// @@ -65,7 +76,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.Label lblOreTot; - + /// /// Controllo lbtToggle. /// @@ -74,7 +85,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.LinkButton lbtToggle; - + /// /// Controllo tgIcon. /// @@ -83,7 +94,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl tgIcon; - + /// /// Controllo divDetail. /// @@ -92,7 +103,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail; - + /// /// Controllo grView. /// @@ -101,7 +112,7 @@ namespace MP_ADM.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 odsPromIN. /// @@ -110,7 +121,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsPromIN; - + /// /// Controllo divConfirm. /// @@ -119,7 +130,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divConfirm; - + /// /// Controllo lbtDoPlan. /// @@ -128,7 +139,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.LinkButton lbtDoPlan; - + /// /// Controllo divCreaGrp. /// @@ -137,7 +148,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCreaGrp; - + /// /// Controllo ddlMacc. /// @@ -146,7 +157,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.DropDownList ddlMacc; - + /// /// Controllo odsMac. /// @@ -155,7 +166,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsMac; - + /// /// Controllo lbtCreaGrp. /// @@ -164,7 +175,7 @@ namespace MP_ADM.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.LinkButton lbtCreaGrp; - + /// /// Controllo divSplitOdl. /// diff --git a/MP-ADM/WebUserControls/mod_planStats.ascx b/MP-ADM/WebUserControls/mod_planStats.ascx index 31ccb7e9..6c6c6125 100644 --- a/MP-ADM/WebUserControls/mod_planStats.ascx +++ b/MP-ADM/WebUserControls/mod_planStats.ascx @@ -2,6 +2,7 @@ <%@ Register Src="~/WebUserControls/cmp_planStats_Fasi.ascx" TagPrefix="uc1" TagName="cmp_planStats_Fasi" %> <%@ Register Src="~/WebUserControls/cmp_planStats_Mac.ascx" TagPrefix="uc1" TagName="cmp_planStats_Mac" %> <%@ Register Src="~/WebUserControls/cmp_planStats_Art.ascx" TagPrefix="uc1" TagName="cmp_planStats_Art" %> +<%@ Register Src="~/WebUserControls/cmp_planStats_Cli.ascx" TagPrefix="uc1" TagName="cmp_planStats_Cli" %>
@@ -15,9 +16,9 @@
-
+
-
Num Richieste
+
Tot #
@@ -25,8 +26,8 @@
-
Gruppi
-
+
Fasi
+
@@ -34,15 +35,31 @@
Macchine
-
+
+
+
Clienti
+
+ +
+
+
+
+
+
Articoli
+
+ +
+
+
+
Richieste
-
+
@@ -50,7 +67,7 @@
Pianificate
-
+
@@ -63,6 +80,7 @@ +
@@ -75,10 +93,12 @@
+ +
diff --git a/MP-ADM/WebUserControls/mod_planStats.ascx.cs b/MP-ADM/WebUserControls/mod_planStats.ascx.cs index c083110c..86cbc159 100644 --- a/MP-ADM/WebUserControls/mod_planStats.ascx.cs +++ b/MP-ADM/WebUserControls/mod_planStats.ascx.cs @@ -27,6 +27,17 @@ namespace MP_ADM.WebUserControls } } + /// + /// CodCliente selezionato in GridView + /// + public string CodCliente + { + get + { + return cmp_planStats_Cli.SelCodCliente; + } + } + /// /// CodFase selezionato in GridView /// @@ -64,6 +75,17 @@ namespace MP_ADM.WebUserControls hfCodArt.Value = cmp_planStats_Art.SelCodArt; } + private void Cmp_planStats_Cli_eh_resetSelezione(object sender, EventArgs e) + { + hfCodCli.Value = "*"; + raiseEvent(tipoEvento.reset); + } + + private void Cmp_planStats_Cli_eh_selValore(object sender, EventArgs e) + { + hfCodCli.Value = cmp_planStats_Cli.SelCodCliente; + } + private void Cmp_planStats_Fasi_eh_resetSelezione(object sender, EventArgs e) { hfCodGrp.Value = "*"; @@ -94,6 +116,12 @@ namespace MP_ADM.WebUserControls raiseEvent(tipoEvento.reset); } + private void doResetCli() + { + cmp_planStats_Cli.doReset(); + raiseEvent(tipoEvento.reset); + } + private void doResetGrp() { cmp_planStats_Fasi.doReset(); @@ -115,16 +143,6 @@ namespace MP_ADM.WebUserControls raiseEvent(tipoEvento.selection); } - /// - /// comando reset - /// - /// - /// - protected void lbtResetArt_Click(object sender, EventArgs e) - { - doResetArt(); - } - protected void lbtToggle_Click(object sender, EventArgs e) { divDetail.Visible = !divDetail.Visible; @@ -137,6 +155,8 @@ namespace MP_ADM.WebUserControls cmp_planStats_Fasi.eh_selValore += Cmp_planStats_Fasi_eh_selValore; cmp_planStats_Mac.eh_resetSelezione += Cmp_planStats_Mac_eh_resetSelezione; cmp_planStats_Mac.eh_selValore += Cmp_planStats_Mac_eh_selValore; + cmp_planStats_Cli.eh_resetSelezione += Cmp_planStats_Cli_eh_resetSelezione; + cmp_planStats_Cli.eh_selValore += Cmp_planStats_Cli_eh_selValore; cmp_planStats_Art.eh_resetSelezione += Cmp_planStats_Art_eh_resetSelezione; cmp_planStats_Art.eh_selValore += Cmp_planStats_Art_eh_selValore; } @@ -182,6 +202,7 @@ namespace MP_ADM.WebUserControls { doResetGrp(); doResetMac(); + doResetCli(); doResetArt(); } diff --git a/MP-ADM/WebUserControls/mod_planStats.ascx.designer.cs b/MP-ADM/WebUserControls/mod_planStats.ascx.designer.cs index 4721c94e..046f4a71 100644 --- a/MP-ADM/WebUserControls/mod_planStats.ascx.designer.cs +++ b/MP-ADM/WebUserControls/mod_planStats.ascx.designer.cs @@ -77,6 +77,15 @@ namespace MP_ADM.WebUserControls /// protected global::MP_ADM.WebUserControls.cmp_planStats_Mac cmp_planStats_Mac; + /// + /// Controllo cmp_planStats_Cli. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::MP_ADM.WebUserControls.cmp_planStats_Cli cmp_planStats_Cli; + /// /// Controllo cmp_planStats_Art. /// @@ -112,5 +121,14 @@ namespace MP_ADM.WebUserControls /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.HiddenField hfCodArt; + + /// + /// Controllo hfCodCli. + /// + /// + /// 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 hfCodCli; } } diff --git a/MapoDb/DS_Plan.Designer.cs b/MapoDb/DS_Plan.Designer.cs index 8fb8ddc8..4cb0befa 100644 --- a/MapoDb/DS_Plan.Designer.cs +++ b/MapoDb/DS_Plan.Designer.cs @@ -52,6 +52,8 @@ namespace MapoDb { private planHistStatMacDataTable tableplanHistStatMac; + private planStatsCliDataTable tableplanStatsCli; + private global::System.Data.DataRelation relationFK_MachineParams_ConfWeek; private global::System.Data.DataRelation relationFK_MachineParams_ConfWeek1; @@ -126,6 +128,9 @@ namespace MapoDb { if ((ds.Tables["planHistStatMac"] != null)) { base.Tables.Add(new planHistStatMacDataTable(ds.Tables["planHistStatMac"])); } + if ((ds.Tables["planStatsCli"] != null)) { + base.Tables.Add(new planStatsCliDataTable(ds.Tables["planStatsCli"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -284,6 +289,16 @@ namespace MapoDb { } } + [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 planStatsCliDataTable planStatsCli { + get { + return this.tableplanStatsCli; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -393,6 +408,9 @@ namespace MapoDb { if ((ds.Tables["planHistStatMac"] != null)) { base.Tables.Add(new planHistStatMacDataTable(ds.Tables["planHistStatMac"])); } + if ((ds.Tables["planStatsCli"] != null)) { + base.Tables.Add(new planStatsCliDataTable(ds.Tables["planStatsCli"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -510,6 +528,12 @@ namespace MapoDb { this.tableplanHistStatMac.InitVars(); } } + this.tableplanStatsCli = ((planStatsCliDataTable)(base.Tables["planStatsCli"])); + if ((initTable == true)) { + if ((this.tableplanStatsCli != null)) { + this.tableplanStatsCli.InitVars(); + } + } this.relationFK_MachineParams_ConfWeek = this.Relations["FK_MachineParams_ConfWeek"]; this.relationFK_MachineParams_ConfWeek1 = this.Relations["FK_MachineParams_ConfWeek1"]; } @@ -550,6 +574,8 @@ namespace MapoDb { base.Tables.Add(this.tableselConfWeek); this.tableplanHistStatMac = new planHistStatMacDataTable(); base.Tables.Add(this.tableplanHistStatMac); + this.tableplanStatsCli = new planStatsCliDataTable(); + base.Tables.Add(this.tableplanStatsCli); this.relationFK_MachineParams_ConfWeek = new global::System.Data.DataRelation("FK_MachineParams_ConfWeek", new global::System.Data.DataColumn[] { this.tableConfWeek.CodConfAperColumn}, new global::System.Data.DataColumn[] { this.tableMachineParams.CodConfAperColumn}, false); @@ -644,6 +670,12 @@ namespace MapoDb { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeplanStatsCli() { + 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) { @@ -741,6 +773,9 @@ namespace MapoDb { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void planHistStatMacRowChangeEventHandler(object sender, planHistStatMacRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void planStatsCliRowChangeEventHandler(object sender, planStatsCliRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -754,6 +789,10 @@ namespace MapoDb { private global::System.Data.DataColumn columnNumMacc; + private global::System.Data.DataColumn columnNumCli; + + private global::System.Data.DataColumn columnNumArt; + private global::System.Data.DataColumn columnTotOreRich; private global::System.Data.DataColumn columnTotOrePlan; @@ -815,6 +854,22 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumCliColumn { + get { + return this.columnNumCli; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NumArtColumn { + get { + return this.columnNumArt; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn TotOreRichColumn { @@ -868,12 +923,14 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public planStatsGlobalRow AddplanStatsGlobalRow(int NumRows, int NumGrp, int NumMacc, decimal TotOreRich, decimal TotOrePlan) { + public planStatsGlobalRow AddplanStatsGlobalRow(int NumRows, int NumGrp, int NumMacc, int NumCli, int NumArt, decimal TotOreRich, decimal TotOrePlan) { planStatsGlobalRow rowplanStatsGlobalRow = ((planStatsGlobalRow)(this.NewRow())); object[] columnValuesArray = new object[] { NumRows, NumGrp, NumMacc, + NumCli, + NumArt, TotOreRich, TotOrePlan}; rowplanStatsGlobalRow.ItemArray = columnValuesArray; @@ -901,6 +958,8 @@ namespace MapoDb { this.columnNumRows = base.Columns["NumRows"]; this.columnNumGrp = base.Columns["NumGrp"]; this.columnNumMacc = base.Columns["NumMacc"]; + this.columnNumCli = base.Columns["NumCli"]; + this.columnNumArt = base.Columns["NumArt"]; this.columnTotOreRich = base.Columns["TotOreRich"]; this.columnTotOrePlan = base.Columns["TotOrePlan"]; } @@ -914,6 +973,10 @@ namespace MapoDb { base.Columns.Add(this.columnNumGrp); this.columnNumMacc = new global::System.Data.DataColumn("NumMacc", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNumMacc); + this.columnNumCli = new global::System.Data.DataColumn("NumCli", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumCli); + this.columnNumArt = new global::System.Data.DataColumn("NumArt", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumArt); this.columnTotOreRich = new global::System.Data.DataColumn("TotOreRich", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTotOreRich); this.columnTotOrePlan = new global::System.Data.DataColumn("TotOrePlan", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -5871,6 +5934,315 @@ namespace MapoDb { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class planStatsCliDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCliente; + + private global::System.Data.DataColumn columnDescCliente; + + private global::System.Data.DataColumn columnTotQty; + + private global::System.Data.DataColumn columnTotOreRich; + + private global::System.Data.DataColumn columnTotOrePlan; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public planStatsCliDataTable() { + this.TableName = "planStatsCli"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal planStatsCliDataTable(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 planStatsCliDataTable(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 CodClienteColumn { + get { + return this.columnCodCliente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DescClienteColumn { + get { + return this.columnDescCliente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TotQtyColumn { + get { + return this.columnTotQty; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TotOreRichColumn { + get { + return this.columnTotOreRich; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TotOrePlanColumn { + get { + return this.columnTotOrePlan; + } + } + + [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 planStatsCliRow this[int index] { + get { + return ((planStatsCliRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event planStatsCliRowChangeEventHandler planStatsCliRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event planStatsCliRowChangeEventHandler planStatsCliRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event planStatsCliRowChangeEventHandler planStatsCliRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event planStatsCliRowChangeEventHandler planStatsCliRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddplanStatsCliRow(planStatsCliRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public planStatsCliRow AddplanStatsCliRow(string CodCliente, string DescCliente, int TotQty, decimal TotOreRich, decimal TotOrePlan) { + planStatsCliRow rowplanStatsCliRow = ((planStatsCliRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodCliente, + DescCliente, + TotQty, + TotOreRich, + TotOrePlan}; + rowplanStatsCliRow.ItemArray = columnValuesArray; + this.Rows.Add(rowplanStatsCliRow); + return rowplanStatsCliRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + planStatsCliDataTable cln = ((planStatsCliDataTable)(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 planStatsCliDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnCodCliente = base.Columns["CodCliente"]; + this.columnDescCliente = base.Columns["DescCliente"]; + this.columnTotQty = base.Columns["TotQty"]; + this.columnTotOreRich = base.Columns["TotOreRich"]; + this.columnTotOrePlan = base.Columns["TotOrePlan"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnCodCliente = new global::System.Data.DataColumn("CodCliente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCliente); + this.columnDescCliente = new global::System.Data.DataColumn("DescCliente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescCliente); + this.columnTotQty = new global::System.Data.DataColumn("TotQty", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotQty); + this.columnTotOreRich = new global::System.Data.DataColumn("TotOreRich", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotOreRich); + this.columnTotOrePlan = new global::System.Data.DataColumn("TotOrePlan", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotOrePlan); + this.columnCodCliente.AllowDBNull = false; + this.columnCodCliente.MaxLength = 50; + this.columnDescCliente.AllowDBNull = false; + this.columnDescCliente.MaxLength = 500; + this.columnTotOreRich.ReadOnly = true; + this.columnTotOrePlan.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public planStatsCliRow NewplanStatsCliRow() { + return ((planStatsCliRow)(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 planStatsCliRow(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(planStatsCliRow); + } + + [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.planStatsCliRowChanged != null)) { + this.planStatsCliRowChanged(this, new planStatsCliRowChangeEvent(((planStatsCliRow)(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.planStatsCliRowChanging != null)) { + this.planStatsCliRowChanging(this, new planStatsCliRowChangeEvent(((planStatsCliRow)(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.planStatsCliRowDeleted != null)) { + this.planStatsCliRowDeleted(this, new planStatsCliRowChangeEvent(((planStatsCliRow)(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.planStatsCliRowDeleting != null)) { + this.planStatsCliRowDeleting(this, new planStatsCliRowChangeEvent(((planStatsCliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveplanStatsCliRow(planStatsCliRow 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_Plan ds = new DS_Plan(); + 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 = "planStatsCliDataTable"; + 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. /// @@ -5933,6 +6305,38 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumCli { + get { + try { + return ((int)(this[this.tableplanStatsGlobal.NumCliColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumCli\' nella tabella \'planStatsGlobal\' è DBNull.", e); + } + } + set { + this[this.tableplanStatsGlobal.NumCliColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int NumArt { + get { + try { + return ((int)(this[this.tableplanStatsGlobal.NumArtColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumArt\' nella tabella \'planStatsGlobal\' è DBNull.", e); + } + } + set { + this[this.tableplanStatsGlobal.NumArtColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public decimal TotOreRich { @@ -6001,6 +6405,30 @@ namespace MapoDb { this[this.tableplanStatsGlobal.NumMaccColumn] = global::System.Convert.DBNull; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumCliNull() { + return this.IsNull(this.tableplanStatsGlobal.NumCliColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumCliNull() { + this[this.tableplanStatsGlobal.NumCliColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsNumArtNull() { + return this.IsNull(this.tableplanStatsGlobal.NumArtColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetNumArtNull() { + this[this.tableplanStatsGlobal.NumArtColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsTotOreRichNull() { @@ -8031,6 +8459,127 @@ namespace MapoDb { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class planStatsCliRow : global::System.Data.DataRow { + + private planStatsCliDataTable tableplanStatsCli; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal planStatsCliRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableplanStatsCli = ((planStatsCliDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CodCliente { + get { + return ((string)(this[this.tableplanStatsCli.CodClienteColumn])); + } + set { + this[this.tableplanStatsCli.CodClienteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string DescCliente { + get { + return ((string)(this[this.tableplanStatsCli.DescClienteColumn])); + } + set { + this[this.tableplanStatsCli.DescClienteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int TotQty { + get { + try { + return ((int)(this[this.tableplanStatsCli.TotQtyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TotQty\' nella tabella \'planStatsCli\' è DBNull.", e); + } + } + set { + this[this.tableplanStatsCli.TotQtyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal TotOreRich { + get { + try { + return ((decimal)(this[this.tableplanStatsCli.TotOreRichColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TotOreRich\' nella tabella \'planStatsCli\' è DBNull.", e); + } + } + set { + this[this.tableplanStatsCli.TotOreRichColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal TotOrePlan { + get { + try { + return ((decimal)(this[this.tableplanStatsCli.TotOrePlanColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TotOrePlan\' nella tabella \'planStatsCli\' è DBNull.", e); + } + } + set { + this[this.tableplanStatsCli.TotOrePlanColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTotQtyNull() { + return this.IsNull(this.tableplanStatsCli.TotQtyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTotQtyNull() { + this[this.tableplanStatsCli.TotQtyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTotOreRichNull() { + return this.IsNull(this.tableplanStatsCli.TotOreRichColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTotOreRichNull() { + this[this.tableplanStatsCli.TotOreRichColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTotOrePlanNull() { + return this.IsNull(this.tableplanStatsCli.TotOrePlanColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTotOrePlanNull() { + this[this.tableplanStatsCli.TotOrePlanColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -8506,6 +9055,40 @@ namespace MapoDb { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class planStatsCliRowChangeEvent : global::System.EventArgs { + + private planStatsCliRow 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 planStatsCliRowChangeEvent(planStatsCliRow 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 planStatsCliRow 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 MapoDb.DS_PlanTableAdapters { @@ -8635,6 +9218,8 @@ namespace MapoDb.DS_PlanTableAdapters { tableMapping.ColumnMappings.Add("NumRows", "NumRows"); tableMapping.ColumnMappings.Add("NumGrp", "NumGrp"); tableMapping.ColumnMappings.Add("NumMacc", "NumMacc"); + tableMapping.ColumnMappings.Add("NumCli", "NumCli"); + tableMapping.ColumnMappings.Add("NumArt", "NumArt"); tableMapping.ColumnMappings.Add("TotOreRich", "TotOreRich"); tableMapping.ColumnMappings.Add("TotOrePlan", "TotOrePlan"); this._adapter.TableMappings.Add(tableMapping); @@ -8653,7 +9238,7 @@ namespace MapoDb.DS_PlanTableAdapters { this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_planStatsGlobal"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_planStatsGlobal"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -8663,6 +9248,7 @@ namespace MapoDb.DS_PlanTableAdapters { this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", 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()] @@ -8693,7 +9279,7 @@ namespace MapoDb.DS_PlanTableAdapters { [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_Plan.planStatsGlobalDataTable getFilt(string CodGruppo, string CodArticolo, string IdxMacchina) { + public virtual DS_Plan.planStatsGlobalDataTable getFilt(string CodGruppo, string CodArticolo, string IdxMacchina, string CodCliente) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((CodGruppo == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -8713,6 +9299,12 @@ namespace MapoDb.DS_PlanTableAdapters { else { this.Adapter.SelectCommand.Parameters[3].Value = ((string)(IdxMacchina)); } + if ((CodCliente == null)) { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodCliente)); + } DS_Plan.planStatsGlobalDataTable dataTable = new DS_Plan.planStatsGlobalDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -12588,6 +13180,200 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod } } + /// + ///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 planStatsCliTableAdapter : 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 planStatsCliTableAdapter() { + 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 = "planStatsCli"; + tableMapping.ColumnMappings.Add("CodCliente", "CodCliente"); + tableMapping.ColumnMappings.Add("DescCliente", "DescCliente"); + tableMapping.ColumnMappings.Add("TotQty", "TotQty"); + tableMapping.ColumnMappings.Add("TotOreRich", "TotOreRich"); + tableMapping.ColumnMappings.Add("TotOrePlan", "TotOrePlan"); + this._adapter.TableMappings.Add(tableMapping); + } + + [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::MapoDb.Properties.Settings.Default.MoonPro_ES3ConnectionString; + } + + [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[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_planStatsCli \r\nORDER BY TotOreRich DESC"; + 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_PSC_filt"; + 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("@CodGruppo", 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", "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_Plan.planStatsCliDataTable 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_Plan.planStatsCliDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Plan.planStatsCliDataTable dataTable = new DS_Plan.planStatsCliDataTable(); + 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_Plan.planStatsCliDataTable getFilt(string CodGruppo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodGruppo == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodGruppo)); + } + DS_Plan.planStatsCliDataTable dataTable = new DS_Plan.planStatsCliDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/MapoDb/DS_Plan.xsd b/MapoDb/DS_Plan.xsd index 101e20ff..1169ab2d 100644 --- a/MapoDb/DS_Plan.xsd +++ b/MapoDb/DS_Plan.xsd @@ -13,7 +13,7 @@ SELECT * -FROM dbo.v_planStatsGlobal +FROM v_planStatsGlobal @@ -23,6 +23,8 @@ FROM dbo.v_planStatsGlobal + + @@ -36,6 +38,7 @@ FROM dbo.v_planStatsGlobal + @@ -678,7 +681,7 @@ FROM MachineParams - + dbo.stp_MacPar_DeleteQuery @@ -689,7 +692,7 @@ FROM MachineParams - + dbo.stp_MacPar_insMissing @@ -759,6 +762,40 @@ FROM v_selConfWeek + + + + + + SELECT * +FROM v_planStatsCli +ORDER BY TotOreRich DESC + + + + + + + + + + + + + + + + + dbo.stp_PSC_filt + + + + + + + + + @@ -767,18 +804,20 @@ FROM v_selConfWeek - + + + - + @@ -808,7 +847,7 @@ FROM v_selConfWeek - + @@ -831,7 +870,7 @@ FROM v_selConfWeek - + @@ -854,7 +893,7 @@ FROM v_selConfWeek - + @@ -948,7 +987,7 @@ FROM v_selConfWeek - + @@ -1004,7 +1043,7 @@ FROM v_selConfWeek - + @@ -1081,7 +1120,7 @@ FROM v_selConfWeek - + @@ -1103,7 +1142,7 @@ FROM v_selConfWeek - + @@ -1117,7 +1156,7 @@ FROM v_selConfWeek - + @@ -1133,7 +1172,7 @@ FROM v_selConfWeek - + @@ -1155,7 +1194,7 @@ FROM v_selConfWeek - + @@ -1177,7 +1216,7 @@ FROM v_selConfWeek - + @@ -1197,7 +1236,7 @@ FROM v_selConfWeek - + @@ -1216,6 +1255,29 @@ FROM v_selConfWeek + + + + + + + + + + + + + + + + + + + + + + + @@ -1259,8 +1321,8 @@ FROM v_selConfWeek - - + + \ No newline at end of file diff --git a/MapoDb/DS_Plan.xss b/MapoDb/DS_Plan.xss index 24381a3e..308a6c25 100644 --- a/MapoDb/DS_Plan.xss +++ b/MapoDb/DS_Plan.xss @@ -4,25 +4,26 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + 826 @@ -38,7 +39,7 @@ - + 1419