diff --git a/GMW/GMW.sln b/GMW/GMW.sln index 30d943ad..28636663 100644 --- a/GMW/GMW.sln +++ b/GMW/GMW.sln @@ -81,7 +81,6 @@ Global {67AF6121-D250-44E3-9C4E-0FC36599AAE4}.Installer|Any CPU.Build.0 = Release|Any CPU {67AF6121-D250-44E3-9C4E-0FC36599AAE4}.Release|Any CPU.ActiveCfg = Release|Any CPU {F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Debug|Any CPU.Build.0 = Debug|Any CPU {F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Deploy|Any CPU.ActiveCfg = Debug|Any CPU {F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Deploy|Any CPU.Build.0 = Debug|Any CPU {F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Installer_Offline|Any CPU.ActiveCfg = Release|Any CPU @@ -91,7 +90,6 @@ Global {F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Installer|Any CPU.ActiveCfg = Release|Any CPU {F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Installer|Any CPU.Build.0 = Release|Any CPU {F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj index 13158e97..b9b39d07 100644 --- a/GMW/GMW/GMW.csproj +++ b/GMW/GMW/GMW.csproj @@ -105,13 +105,6 @@ DettaglioBlocco.aspx - - DettaglioBloccoLogico.aspx - ASPXCodeBehind - - - DettaglioBloccoLogico.aspx - ElencoListePrelievo.aspx ASPXCodeBehind @@ -861,7 +854,6 @@ - diff --git a/GMW/GMW/MagLogico.aspx.cs b/GMW/GMW/MagLogico.aspx.cs index 3c2b5767..f4dc3587 100644 --- a/GMW/GMW/MagLogico.aspx.cs +++ b/GMW/GMW/MagLogico.aspx.cs @@ -17,7 +17,7 @@ namespace GMW void mod_statoMagLogico1_eh_selValore(object sender, EventArgs e) { // rimbalzo alla nuova pagina... - Response.Redirect("~/DettaglioBloccoLogico.aspx"); + Response.Redirect("~/DettaglioBlocco.aspx"); } } } diff --git a/GMW/GMW/WebUserControls/mod_anagCelle.ascx.cs b/GMW/GMW/WebUserControls/mod_anagCelle.ascx.cs index e6ed644a..e914c908 100644 --- a/GMW/GMW/WebUserControls/mod_anagCelle.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_anagCelle.ascx.cs @@ -341,7 +341,7 @@ namespace GMW.WebUserControls void mod_filtroBlock_eh_selValore(object sender, EventArgs e) { // salvo in sessione il valore selezionato... - if (mod_filtroBlock.valoreInt != 0) + if (mod_filtroBlock.valoreInt != -1) { memLayer.ML.setSessionVal("IdxBlocco_sel", mod_filtroBlock.valoreInt, false); } diff --git a/GMW/GMW/WebUserControls/mod_dettCelleBlocco.ascx.cs b/GMW/GMW/WebUserControls/mod_dettCelleBlocco.ascx.cs index 0e1bcc9a..e6886d32 100644 --- a/GMW/GMW/WebUserControls/mod_dettCelleBlocco.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_dettCelleBlocco.ascx.cs @@ -13,6 +13,7 @@ namespace GMW.WebUserControls { protected int IdxBlocco = 0; protected int IdxCella = 0; + protected int CodMagLogico = -1; protected int numX = 1; protected int numY = 1; protected GMW_data.Type.BlockMap[,] BloccoCelle; @@ -88,11 +89,19 @@ namespace GMW.WebUserControls /// private void aggiornaCelleOccupate() { + // carico il magazzino logico da visualizzare (oppure tutti...) + CodMagLogico = memLayer.ML.IntSessionObj("CodMagLogico_sel"); + // carico altri dati da sessione string ParticolareSel = memLayer.ML.StringSessionObj("Particolare_sel"); string DescStatoSel = memLayer.ML.StringSessionObj("DescStato_sel"); string EsponenteSel = memLayer.ML.StringSessionObj("Esponente_sel"); // ottengo elenco dettaglio UDC che occupano il blocco... DS_magazzino.v_UdcDetailDataTable tabUdc = MagClass.magazzino.taDettUDC.getUdcDetailByIdxBlocco(IdxBlocco); + // SE รจ filtrato x mag logico utilizza altro metodo... + if (CodMagLogico != -1) + { + tabUdc = MagClass.magazzino.taDettUDC.getByIdxBloccoCodMagLog(IdxBlocco, CodMagLogico); + } // controllo se sia un magazzino mono o multicella... bool multicella = MagClass.magazzino.taCelle.getByIdxBlocco(IdxBlocco).Rows.Count > 1; // SE ci sono righe aggiorno il blocco... diff --git a/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx b/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx index eb15134e..d27d1108 100644 --- a/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx +++ b/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx @@ -10,7 +10,14 @@
- +
+
+ +
+
+ +
+
@@ -35,6 +42,15 @@ +
+ + + + + + +
diff --git a/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx.cs b/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx.cs index 52cbaf8b..78d377c9 100644 --- a/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx.cs @@ -36,6 +36,7 @@ namespace GMW.WebUserControls { base.OnInit(e); mod_filtroBlock.eh_selValore += new EventHandler(mod_filtroBlock_eh_selValore); + mod_filtroMagLog.eh_selValore += new EventHandler(mod_filtroMagLog_eh_selValore); mod_paretoUdcBlocco1.eh_selValore += new EventHandler(mod_paretoUdcBlocco1_eh_selValore); mod_paretoUdcBlocco1.eh_resetSelezione += new EventHandler(mod_paretoUdcBlocco1_eh_resetSelezione); mod_paretoPartByFullSpec1.eh_selValore += new EventHandler(mod_paretoPartByFullSpec1_eh_selValore); @@ -46,8 +47,12 @@ namespace GMW.WebUserControls if (!Page.IsPostBack) { lnkReturn.Text = traduci("TornaStatoMag"); + lnkReturn2.Text = traduci("TornaStatoMagLogico"); mod_filtroMag.ods = odsFiltroMag; mod_filtroBlock.ods = odsFiltroBlock; + mod_filtroMagLog.ods = odsFiltroMagLog; + mod_filtroMagLog.filterChekText = "SetFiltroMagLog"; + mod_filtroMagLog.filterUnchekText = "UnSetFiltroMagLog"; // imposto corretto valore x filtro Mag if (memLayer.ML.isInSessionObject("CodMag_sel")) { @@ -61,6 +66,16 @@ namespace GMW.WebUserControls { memLayer.ML.setSessionVal("CodMag_sel", mod_filtroMag.valore, false); } + // imposto corretto valore x filtro Mag logico + if (memLayer.ML.isInSessionObject("CodMagLogico_sel")) + { + mod_filtroMagLog.isChecked = true; + mod_filtroMagLog.valore = memLayer.ML.StringSessionObj("CodMagLogico_sel"); + } + else + { + mod_filtroMagLog.isChecked = false; + } pnlDetail.Visible = false; mod_operazioniUdc1.Visible = false; updateControlli(); @@ -75,6 +90,7 @@ namespace GMW.WebUserControls mod_paretoPartByFullSpec1.doUpdate(); } } + /// /// nascondo dettagli UDC /// @@ -141,10 +157,40 @@ namespace GMW.WebUserControls // aggiorno la visualizzazione del magazzino! Response.Redirect("~/DettaglioBlocco.aspx"); } + /// + /// selezione valore mag logico + /// + /// + /// + void mod_filtroMagLog_eh_selValore(object sender, EventArgs e) + { + // salvo in sessione il valore selezionato... + if (mod_filtroMagLog.valoreInt != -1) + { + memLayer.ML.setSessionVal("CodMagLogico_sel", mod_filtroMagLog.valoreInt, false); + } + else + { + memLayer.ML.emptySessionVal("CodMagLogico_sel"); + } + // svuoto selezioni secondarie... + memLayer.ML.emptySessionVal("Particolare_sel"); + //// chiamo procedura che aggiorna ods principale + //mod_dettCelleBlocco1.doUpdate(); + //updateControlli(); + + // aggiorno la visualizzazione del magazzino! + Response.Redirect("~/DettaglioBlocco.aspx"); + } + /// + /// selezione valore blocco + /// + /// + /// void mod_filtroBlock_eh_selValore(object sender, EventArgs e) { // salvo in sessione il valore selezionato... - if (mod_filtroBlock.valoreInt != 0) + if (mod_filtroBlock.valoreInt != -1) { memLayer.ML.setSessionVal("IdxBlocco_sel", mod_filtroBlock.valoreInt, false); } @@ -200,17 +246,32 @@ namespace GMW.WebUserControls /// /// protected void lnkReturn_Click(object sender, EventArgs e) + { + svuotaVarSessione(); + Response.Redirect("~/StatoMag.aspx"); + } + + private static void svuotaVarSessione() { // svuoto dati in memoria... memLayer.ML.emptySessionVal("CodMag_sel"); + memLayer.ML.emptySessionVal("CodMagLogico_sel"); memLayer.ML.emptySessionVal("IdxBlocco_sel"); memLayer.ML.emptySessionVal("IdxCellaMag"); memLayer.ML.emptySessionVal("Particolare_sel"); memLayer.ML.emptySessionVal("DescStato_sel"); memLayer.ML.emptySessionVal("Esponente_sel"); - Response.Redirect("~/StatoMag.aspx"); } - + /// + /// ritorno ad elenco magazzini logico + /// + /// + /// + protected void lnkReturn1_Click(object sender, EventArgs e) + { + svuotaVarSessione(); + Response.Redirect("~/MagLogico.aspx"); + } #endregion } } \ No newline at end of file diff --git a/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx.designer.cs index a0378e24..96374aeb 100644 --- a/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx.designer.cs +++ b/GMW/GMW/WebUserControls/mod_dettaglioBlocco.ascx.designer.cs @@ -22,6 +22,15 @@ namespace GMW.WebUserControls { /// protected global::System.Web.UI.WebControls.LinkButton lnkReturn; + /// + /// lnkReturn2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lnkReturn2; + /// /// mod_filtroMag control. /// @@ -58,6 +67,24 @@ namespace GMW.WebUserControls { /// protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltroBlock; + /// + /// mod_filtroMagLog control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_filtro mod_filtroMagLog; + + /// + /// odsFiltroMagLog control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltroMagLog; + /// /// mod_operazioniUdc1 control. /// diff --git a/GMW/GMW/WebUserControls/mod_filtro.ascx.cs b/GMW/GMW/WebUserControls/mod_filtro.ascx.cs index 9c569e18..60b1a2cb 100644 --- a/GMW/GMW/WebUserControls/mod_filtro.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_filtro.ascx.cs @@ -29,8 +29,39 @@ public partial class mod_filtro : ApplicationUserControl protected bool _changeCheckVisible = true; protected bool _changeSelEnabled = true; protected string _where = ""; - protected string _showFiltered = "mostraSoloSelez"; - protected string _showAll = "mostraTutti"; + protected string _showFiltered + { + get + { + return memLayer.ML.StringSessionObj("_showFiltered"); + } + set + { + memLayer.ML.setSessionVal("_showFiltered", value); + } + } + protected string _showAll + { + get + { + return memLayer.ML.StringSessionObj("_showAll"); + } + set + { + memLayer.ML.setSessionVal("_showAll", value); + } + } + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + if (!Page.IsPostBack) + { + _showFiltered = "mostraSoloSelez"; + _showAll = "mostraTutti"; + } + } + /// /// traduzione oggetti /// @@ -123,6 +154,10 @@ public partial class mod_filtro : ApplicationUserControl traduciObj(); } protected SteamWare.tipoVistaMod _modo = SteamWare.tipoVistaMod.editing; + protected void dlFilt_SelectedIndexChanged(object sender, EventArgs e) + { + raiseSelEvent(); + } /// @@ -218,7 +253,7 @@ public partial class mod_filtro : ApplicationUserControl { get { - int answ = 0; + int answ = -1; try { if (chkFilt.Checked) @@ -299,11 +334,24 @@ public partial class mod_filtro : ApplicationUserControl updateChkLbl(); } } - protected void dlFilt_SelectedIndexChanged(object sender, EventArgs e) + /// + /// get/set della checkbox + /// + public bool isChecked { - raiseSelEvent(); + get + { + return chkFilt.Checked; + } + set + { + chkFilt.Checked = value; + updateChkLbl(); + } } + + /// /// oggetto ODS con cui popolare il selettore, VINCOLO abbia campi value(key) / label /// diff --git a/GMW/GMW/WebUserControls/mod_paretoPartByFullSpec.ascx.cs b/GMW/GMW/WebUserControls/mod_paretoPartByFullSpec.ascx.cs index 086fb06c..38ac8b2b 100644 --- a/GMW/GMW/WebUserControls/mod_paretoPartByFullSpec.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_paretoPartByFullSpec.ascx.cs @@ -117,6 +117,32 @@ namespace GMW.WebUserControls /// private void checkFixOds() { + // controllo se devo filtrare x magazzino logico e di conseguenza setto l'ods... + if (memLayer.ML.isInSessionObject("CodMagLogico_sel")) + { + // svuoto select parameters + ods.SelectParameters.Clear(); + // imposto i parametri... + ods.SelectParameters.Add("CodCS", DbType.String, memLayer.ML.StringSessionObj("CodCS")); + ods.SelectParameters.Add("CodMag", DbType.String, memLayer.ML.StringSessionObj("CodMag_sel")); + ods.SelectParameters.Add("IdxBlocco", DbType.Int32, memLayer.ML.StringSessionObj("IdxBlocco_sel")); + ods.SelectParameters.Add("Particolare", DbType.String, memLayer.ML.StringSessionObj("Particolare_sel")); + ods.SelectParameters.Add("CodMagLog", DbType.Int32, memLayer.ML.StringSessionObj("CodMagLogico_sel")); + // metto nuovo metodo select + ods.SelectMethod = "getParetoByFullSpecMagLog"; + } + else + { + // svuoto select parameters + ods.SelectParameters.Clear(); + // imposto i parametri... + ods.SelectParameters.Add("CodCS", DbType.String, memLayer.ML.StringSessionObj("CodCS")); + ods.SelectParameters.Add("CodMag", DbType.String, memLayer.ML.StringSessionObj("CodMag_sel")); + ods.SelectParameters.Add("IdxBlocco", DbType.Int32, memLayer.ML.StringSessionObj("IdxBlocco_sel")); + ods.SelectParameters.Add("Particolare", DbType.String, memLayer.ML.StringSessionObj("Particolare_sel")); + // metto nuovo metodo select + ods.SelectMethod = "getParetoByFullSpec"; + } grView.DataBind(); } /// @@ -171,6 +197,7 @@ namespace GMW.WebUserControls SteamWare.memLayer.ML.emptySessionVal("DescStato_sel"); SteamWare.memLayer.ML.emptySessionVal("Esponente_sel"); grView.SelectedIndex = -1; + checkFixOds(); grView.DataBind(); lblWarning.Visible = false; if (eh_resetSelezione != null) diff --git a/GMW/GMW/WebUserControls/mod_paretoUdcBlocco.ascx.cs b/GMW/GMW/WebUserControls/mod_paretoUdcBlocco.ascx.cs index abf7fb99..706fe3ed 100644 --- a/GMW/GMW/WebUserControls/mod_paretoUdcBlocco.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_paretoUdcBlocco.ascx.cs @@ -124,6 +124,30 @@ namespace GMW.WebUserControls /// private void checkFixOds() { + // controllo se devo filtrare x magazzino logico e di conseguenza setto l'ods... + if (memLayer.ML.isInSessionObject("CodMagLogico_sel")) + { + // svuoto select parameters + ods.SelectParameters.Clear(); + // imposto i parametri... + ods.SelectParameters.Add("CodCS", DbType.String, memLayer.ML.StringSessionObj("CodCS")); + ods.SelectParameters.Add("CodMag", DbType.String, memLayer.ML.StringSessionObj("CodMag_sel")); + ods.SelectParameters.Add("IdxBlocco", DbType.Int32, memLayer.ML.StringSessionObj("IdxBlocco_sel")); + ods.SelectParameters.Add("CodMagLog", DbType.Int32, memLayer.ML.StringSessionObj("CodMagLogico_sel")); + // metto nuovo metodo select + ods.SelectMethod = "getParetoByMagBloccoMagLog"; + } + else + { + // svuoto select parameters + ods.SelectParameters.Clear(); + // imposto i parametri... + ods.SelectParameters.Add("CodCS", DbType.String, memLayer.ML.StringSessionObj("CodCS")); + ods.SelectParameters.Add("CodMag", DbType.String, memLayer.ML.StringSessionObj("CodMag_sel")); + ods.SelectParameters.Add("IdxBlocco", DbType.Int32, memLayer.ML.StringSessionObj("IdxBlocco_sel")); + // metto nuovo metodo select + ods.SelectMethod = "getParetoByMagBlocco"; + } grView.DataBind(); } /// @@ -180,6 +204,7 @@ namespace GMW.WebUserControls { memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); grView.SelectedIndex = -1; + checkFixOds(); grView.DataBind(); lblWarning.Visible = false; if (eh_resetSelezione != null) @@ -192,6 +217,7 @@ namespace GMW.WebUserControls /// public void doUpdate() { + grView.SelectedIndex = -1; checkFixOds(); } /// diff --git a/GMW/GMW/WebUserControls/mod_statoMagLogico.ascx b/GMW/GMW/WebUserControls/mod_statoMagLogico.ascx index 28f13656..73c4039e 100644 --- a/GMW/GMW/WebUserControls/mod_statoMagLogico.ascx +++ b/GMW/GMW/WebUserControls/mod_statoMagLogico.ascx @@ -14,7 +14,7 @@ @@ -88,7 +88,7 @@ SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter"> - + diff --git a/GMW/GMW/WebUserControls/mod_statoMagLogico.ascx.cs b/GMW/GMW/WebUserControls/mod_statoMagLogico.ascx.cs index f80e40cd..0004074d 100644 --- a/GMW/GMW/WebUserControls/mod_statoMagLogico.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_statoMagLogico.ascx.cs @@ -273,10 +273,10 @@ namespace GMW.WebUserControls { // salvo in session il valore selezionato... SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true); - // salvo anche codBlocco... + // salvo anche codMag... string codMag = MagClass.magazzino.taBlocchi.getByIdx(Convert.ToInt32(grView.SelectedValue))[0].CodMag; SteamWare.memLayer.ML.setSessionVal("CodMag_sel", codMag, true); - + memLayer.ML.setSessionVal("CodMagLogico_sel", grView.SelectedDataKey["CodMagLogico"].ToString()); // sollevo evento nuovo valore... if (eh_selValore != null) { diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index 5284dbb8..d21cf5a8 100644 Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ diff --git a/GMW/GMW/bin/GMW_data.dll b/GMW/GMW/bin/GMW_data.dll index 908ffea2..691af20e 100644 Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll index 5284dbb8..d21cf5a8 100644 Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache index dc642283..b22e4a5a 100644 Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_data/DS_Utility.Designer.cs b/GMW/GMW_data/DS_Utility.Designer.cs index 0bea138b..e8ad912a 100644 --- a/GMW/GMW_data/DS_Utility.Designer.cs +++ b/GMW/GMW_data/DS_Utility.Designer.cs @@ -49,6 +49,8 @@ namespace GMW_data { private stp_ricercaFullTerminalinoDataTable tablestp_ricercaFullTerminalino; + private v_selMagLogicoDataTable tablev_selMagLogico; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -111,6 +113,9 @@ namespace GMW_data { if ((ds.Tables["stp_ricercaFullTerminalino"] != null)) { base.Tables.Add(new stp_ricercaFullTerminalinoDataTable(ds.Tables["stp_ricercaFullTerminalino"])); } + if ((ds.Tables["v_selMagLogico"] != null)) { + base.Tables.Add(new v_selMagLogicoDataTable(ds.Tables["v_selMagLogico"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -237,6 +242,15 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selMagLogicoDataTable v_selMagLogico { + get { + return this.tablev_selMagLogico; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -332,6 +346,9 @@ namespace GMW_data { if ((ds.Tables["stp_ricercaFullTerminalino"] != null)) { base.Tables.Add(new stp_ricercaFullTerminalinoDataTable(ds.Tables["stp_ricercaFullTerminalino"])); } + if ((ds.Tables["v_selMagLogico"] != null)) { + base.Tables.Add(new v_selMagLogicoDataTable(ds.Tables["v_selMagLogico"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -434,6 +451,12 @@ namespace GMW_data { this.tablestp_ricercaFullTerminalino.InitVars(); } } + this.tablev_selMagLogico = ((v_selMagLogicoDataTable)(base.Tables["v_selMagLogico"])); + if ((initTable == true)) { + if ((this.tablev_selMagLogico != null)) { + this.tablev_selMagLogico.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -467,6 +490,8 @@ namespace GMW_data { base.Tables.Add(this.tablev_selDestinatariListePrelievo); this.tablestp_ricercaFullTerminalino = new stp_ricercaFullTerminalinoDataTable(); base.Tables.Add(this.tablestp_ricercaFullTerminalino); + this.tablev_selMagLogico = new v_selMagLogicoDataTable(); + base.Tables.Add(this.tablev_selMagLogico); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -529,6 +554,11 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializev_selMagLogico() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -606,6 +636,8 @@ namespace GMW_data { public delegate void stp_ricercaFullTerminalinoRowChangeEventHandler(object sender, stp_ricercaFullTerminalinoRowChangeEvent e); + public delegate void v_selMagLogicoRowChangeEventHandler(object sender, v_selMagLogicoRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -3712,6 +3744,260 @@ namespace GMW_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selMagLogicoDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + private global::System.Data.DataColumn columnconditio; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selMagLogicoDataTable() { + this.TableName = "v_selMagLogico"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal v_selMagLogicoDataTable(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()] + protected v_selMagLogicoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn conditioColumn { + get { + return this.columnconditio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selMagLogicoRow this[int index] { + get { + return ((v_selMagLogicoRow)(this.Rows[index])); + } + } + + public event v_selMagLogicoRowChangeEventHandler v_selMagLogicoRowChanging; + + public event v_selMagLogicoRowChangeEventHandler v_selMagLogicoRowChanged; + + public event v_selMagLogicoRowChangeEventHandler v_selMagLogicoRowDeleting; + + public event v_selMagLogicoRowChangeEventHandler v_selMagLogicoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Addv_selMagLogicoRow(v_selMagLogicoRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selMagLogicoRow Addv_selMagLogicoRow(string value, string label, string conditio) { + v_selMagLogicoRow rowv_selMagLogicoRow = ((v_selMagLogicoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label, + conditio}; + rowv_selMagLogicoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selMagLogicoRow); + return rowv_selMagLogicoRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + v_selMagLogicoDataTable cln = ((v_selMagLogicoDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selMagLogicoDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + this.columnconditio = base.Columns["conditio"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.columnconditio = new global::System.Data.DataColumn("conditio", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconditio); + this.columnvalue.ReadOnly = true; + this.columnvalue.MaxLength = 50; + this.columnlabel.ReadOnly = true; + this.columnlabel.MaxLength = 50; + this.columnconditio.MaxLength = 2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selMagLogicoRow Newv_selMagLogicoRow() { + return ((v_selMagLogicoRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selMagLogicoRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(v_selMagLogicoRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selMagLogicoRowChanged != null)) { + this.v_selMagLogicoRowChanged(this, new v_selMagLogicoRowChangeEvent(((v_selMagLogicoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selMagLogicoRowChanging != null)) { + this.v_selMagLogicoRowChanging(this, new v_selMagLogicoRowChangeEvent(((v_selMagLogicoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selMagLogicoRowDeleted != null)) { + this.v_selMagLogicoRowDeleted(this, new v_selMagLogicoRowChangeEvent(((v_selMagLogicoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selMagLogicoRowDeleting != null)) { + this.v_selMagLogicoRowDeleting(this, new v_selMagLogicoRowChangeEvent(((v_selMagLogicoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Removev_selMagLogicoRow(v_selMagLogicoRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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_Utility ds = new DS_Utility(); + 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 = "v_selMagLogicoDataTable"; + 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. /// @@ -4503,6 +4789,96 @@ namespace GMW_data { } } + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class v_selMagLogicoRow : global::System.Data.DataRow { + + private v_selMagLogicoDataTable tablev_selMagLogico; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal v_selMagLogicoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selMagLogico = ((v_selMagLogicoDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string value { + get { + try { + return ((string)(this[this.tablev_selMagLogico.valueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_selMagLogico\' is DBNull.", e); + } + } + set { + this[this.tablev_selMagLogico.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string label { + get { + try { + return ((string)(this[this.tablev_selMagLogico.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selMagLogico\' is DBNull.", e); + } + } + set { + this[this.tablev_selMagLogico.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string conditio { + get { + try { + return ((string)(this[this.tablev_selMagLogico.conditioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'conditio\' in table \'v_selMagLogico\' is DBNull.", e); + } + } + set { + this[this.tablev_selMagLogico.conditioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsvalueNull() { + return this.IsNull(this.tablev_selMagLogico.valueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetvalueNull() { + this[this.tablev_selMagLogico.valueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IslabelNull() { + return this.IsNull(this.tablev_selMagLogico.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetlabelNull() { + this[this.tablev_selMagLogico.labelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsconditioNull() { + return this.IsNull(this.tablev_selMagLogico.conditioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetconditioNull() { + this[this.tablev_selMagLogico.conditioColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -4874,6 +5250,37 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class v_selMagLogicoRowChangeEvent : global::System.EventArgs { + + private v_selMagLogicoRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selMagLogicoRowChangeEvent(v_selMagLogicoRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selMagLogicoRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_UtilityTableAdapters { @@ -7422,6 +7829,187 @@ namespace GMW_data.DS_UtilityTableAdapters { } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selMagLogicoTableAdapter : 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()] + public v_selMagLogicoTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public 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()] + 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()] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 = "v_selMagLogico"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + tableMapping.ColumnMappings.Add("conditio", "conditio"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 value, label, conditio FROM dbo.v_selMagLogico"; + 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 = "SELECT value, label, conditio\r\nFROM v_selMagLogico\r\nWHERE " + + " (conditio = @conditio)"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conditio", global::System.Data.SqlDbType.NChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, "conditio", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.v_selMagLogicoDataTable 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selMagLogicoDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selMagLogicoDataTable dataTable = new DS_Utility.v_selMagLogicoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selMagLogicoDataTable getByConditio(string conditio) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((conditio == null)) { + this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(conditio)); + } + DS_Utility.v_selMagLogicoDataTable dataTable = new DS_Utility.v_selMagLogicoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/GMW/GMW_data/DS_Utility.xsd b/GMW/GMW_data/DS_Utility.xsd index 3a691c4d..c20bdca5 100644 --- a/GMW/GMW_data/DS_Utility.xsd +++ b/GMW/GMW_data/DS_Utility.xsd @@ -426,6 +426,37 @@ where conditio = @conditio + + + + + + SELECT value, label, conditio FROM dbo.v_selMagLogico + + + + + + + + + + + + + + + SELECT value, label, conditio +FROM v_selMagLogico +WHERE (conditio = @conditio) + + + + + + + + @@ -437,21 +468,21 @@ where conditio = @conditio - + - + - + @@ -464,22 +495,22 @@ where conditio = @conditio - - + + - + - + @@ -492,35 +523,15 @@ where conditio = @conditio - - + + - - - - - - - - - - - - - - - - - - - - - + @@ -534,21 +545,41 @@ where conditio = @conditio - + + + + + + + - + + + + + + + + + + + + + + + - + @@ -561,29 +592,29 @@ where conditio = @conditio - - + + - + - + - + @@ -596,8 +627,8 @@ where conditio = @conditio - - + + @@ -610,14 +641,14 @@ where conditio = @conditio - + - + @@ -630,21 +661,21 @@ where conditio = @conditio - + - + - + @@ -657,14 +688,14 @@ where conditio = @conditio - + - + @@ -677,7 +708,7 @@ where conditio = @conditio - + @@ -690,13 +721,40 @@ where conditio = @conditio - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -704,10 +762,10 @@ where conditio = @conditio - + - + diff --git a/GMW/GMW_data/DS_Utility.xss b/GMW/GMW_data/DS_Utility.xss index 445282d9..60da6944 100644 --- a/GMW/GMW_data/DS_Utility.xss +++ b/GMW/GMW_data/DS_Utility.xss @@ -6,18 +6,19 @@ --> - - - - - - - - - - - - + + + + + + + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_data/DS_magazzino.Designer.cs b/GMW/GMW_data/DS_magazzino.Designer.cs index 24fbadd0..30ae7427 100644 --- a/GMW/GMW_data/DS_magazzino.Designer.cs +++ b/GMW/GMW_data/DS_magazzino.Designer.cs @@ -63,6 +63,8 @@ namespace GMW_data { private V_statoCelleCapienzaAssegnatiDataTable tableV_statoCelleCapienzaAssegnati; + private V_MagazziniLogiciOverviewDataTable tableV_MagazziniLogiciOverview; + private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini; private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini; @@ -168,6 +170,9 @@ namespace GMW_data { if ((ds.Tables["V_statoCelleCapienzaAssegnati"] != null)) { base.Tables.Add(new V_statoCelleCapienzaAssegnatiDataTable(ds.Tables["V_statoCelleCapienzaAssegnati"])); } + if ((ds.Tables["V_MagazziniLogiciOverview"] != null)) { + base.Tables.Add(new V_MagazziniLogiciOverviewDataTable(ds.Tables["V_MagazziniLogiciOverview"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -357,6 +362,15 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public V_MagazziniLogiciOverviewDataTable V_MagazziniLogiciOverview { + get { + return this.tableV_MagazziniLogiciOverview; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -473,6 +487,9 @@ namespace GMW_data { if ((ds.Tables["V_statoCelleCapienzaAssegnati"] != null)) { base.Tables.Add(new V_statoCelleCapienzaAssegnatiDataTable(ds.Tables["V_statoCelleCapienzaAssegnati"])); } + if ((ds.Tables["V_MagazziniLogiciOverview"] != null)) { + base.Tables.Add(new V_MagazziniLogiciOverviewDataTable(ds.Tables["V_MagazziniLogiciOverview"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -617,6 +634,12 @@ namespace GMW_data { this.tableV_statoCelleCapienzaAssegnati.InitVars(); } } + this.tableV_MagazziniLogiciOverview = ((V_MagazziniLogiciOverviewDataTable)(base.Tables["V_MagazziniLogiciOverview"])); + if ((initTable == true)) { + if ((this.tableV_MagazziniLogiciOverview != null)) { + this.tableV_MagazziniLogiciOverview.InitVars(); + } + } this.relationFK_PosizioneUdcCorrente_ElencoCartellini = this.Relations["FK_PosizioneUdcCorrente_ElencoCartellini"]; this.relationFK_PosizioneUdcStorico_ElencoCartellini = this.Relations["FK_PosizioneUdcStorico_ElencoCartellini"]; this.relationFK_Blocchi_AnagMag = this.Relations["FK_Blocchi_AnagMag"]; @@ -675,6 +698,8 @@ namespace GMW_data { base.Tables.Add(this.tableAnagPosizioni); this.tableV_statoCelleCapienzaAssegnati = new V_statoCelleCapienzaAssegnatiDataTable(); base.Tables.Add(this.tableV_statoCelleCapienzaAssegnati); + this.tableV_MagazziniLogiciOverview = new V_MagazziniLogiciOverviewDataTable(); + base.Tables.Add(this.tableV_MagazziniLogiciOverview); this.relationFK_PosizioneUdcCorrente_ElencoCartellini = new global::System.Data.DataRelation("FK_PosizioneUdcCorrente_ElencoCartellini", new global::System.Data.DataColumn[] { this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] { this.tablePosizioneUdcCorrente.UDCColumn}, false); @@ -820,6 +845,11 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeV_MagazziniLogiciOverview() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -911,6 +941,8 @@ namespace GMW_data { public delegate void V_statoCelleCapienzaAssegnatiRowChangeEventHandler(object sender, V_statoCelleCapienzaAssegnatiRowChangeEvent e); + public delegate void V_MagazziniLogiciOverviewRowChangeEventHandler(object sender, V_MagazziniLogiciOverviewRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -7541,6 +7573,353 @@ namespace GMW_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class V_MagazziniLogiciOverviewDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCS; + + private global::System.Data.DataColumn columnCodMagLogico; + + private global::System.Data.DataColumn columnDescMagLogico; + + private global::System.Data.DataColumn columnIdxBlocco; + + private global::System.Data.DataColumn columnCodMag; + + private global::System.Data.DataColumn columnCodBlocco; + + private global::System.Data.DataColumn columnCelleOccupate; + + private global::System.Data.DataColumn columnOldest; + + private global::System.Data.DataColumn columnNewest; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public V_MagazziniLogiciOverviewDataTable() { + this.TableName = "V_MagazziniLogiciOverview"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal V_MagazziniLogiciOverviewDataTable(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()] + protected V_MagazziniLogiciOverviewDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodCSColumn { + get { + return this.columnCodCS; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodMagLogicoColumn { + get { + return this.columnCodMagLogico; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescMagLogicoColumn { + get { + return this.columnDescMagLogico; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn IdxBloccoColumn { + get { + return this.columnIdxBlocco; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodMagColumn { + get { + return this.columnCodMag; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodBloccoColumn { + get { + return this.columnCodBlocco; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CelleOccupateColumn { + get { + return this.columnCelleOccupate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn OldestColumn { + get { + return this.columnOldest; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn NewestColumn { + get { + return this.columnNewest; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public V_MagazziniLogiciOverviewRow this[int index] { + get { + return ((V_MagazziniLogiciOverviewRow)(this.Rows[index])); + } + } + + public event V_MagazziniLogiciOverviewRowChangeEventHandler V_MagazziniLogiciOverviewRowChanging; + + public event V_MagazziniLogiciOverviewRowChangeEventHandler V_MagazziniLogiciOverviewRowChanged; + + public event V_MagazziniLogiciOverviewRowChangeEventHandler V_MagazziniLogiciOverviewRowDeleting; + + public event V_MagazziniLogiciOverviewRowChangeEventHandler V_MagazziniLogiciOverviewRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddV_MagazziniLogiciOverviewRow(V_MagazziniLogiciOverviewRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public V_MagazziniLogiciOverviewRow AddV_MagazziniLogiciOverviewRow(string CodCS, int CodMagLogico, string DescMagLogico, int IdxBlocco, string CodMag, string CodBlocco, int CelleOccupate, System.DateTime Oldest, System.DateTime Newest) { + V_MagazziniLogiciOverviewRow rowV_MagazziniLogiciOverviewRow = ((V_MagazziniLogiciOverviewRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodCS, + CodMagLogico, + DescMagLogico, + IdxBlocco, + CodMag, + CodBlocco, + CelleOccupate, + Oldest, + Newest}; + rowV_MagazziniLogiciOverviewRow.ItemArray = columnValuesArray; + this.Rows.Add(rowV_MagazziniLogiciOverviewRow); + return rowV_MagazziniLogiciOverviewRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public V_MagazziniLogiciOverviewRow FindByCodMagLogicoIdxBlocco(int CodMagLogico, int IdxBlocco) { + return ((V_MagazziniLogiciOverviewRow)(this.Rows.Find(new object[] { + CodMagLogico, + IdxBlocco}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + V_MagazziniLogiciOverviewDataTable cln = ((V_MagazziniLogiciOverviewDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new V_MagazziniLogiciOverviewDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodCS = base.Columns["CodCS"]; + this.columnCodMagLogico = base.Columns["CodMagLogico"]; + this.columnDescMagLogico = base.Columns["DescMagLogico"]; + this.columnIdxBlocco = base.Columns["IdxBlocco"]; + this.columnCodMag = base.Columns["CodMag"]; + this.columnCodBlocco = base.Columns["CodBlocco"]; + this.columnCelleOccupate = base.Columns["CelleOccupate"]; + this.columnOldest = base.Columns["Oldest"]; + this.columnNewest = base.Columns["Newest"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCS); + this.columnCodMagLogico = new global::System.Data.DataColumn("CodMagLogico", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodMagLogico); + this.columnDescMagLogico = new global::System.Data.DataColumn("DescMagLogico", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescMagLogico); + this.columnIdxBlocco = new global::System.Data.DataColumn("IdxBlocco", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxBlocco); + this.columnCodMag = new global::System.Data.DataColumn("CodMag", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodMag); + this.columnCodBlocco = new global::System.Data.DataColumn("CodBlocco", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodBlocco); + this.columnCelleOccupate = new global::System.Data.DataColumn("CelleOccupate", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCelleOccupate); + this.columnOldest = new global::System.Data.DataColumn("Oldest", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOldest); + this.columnNewest = new global::System.Data.DataColumn("Newest", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNewest); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodMagLogico, + this.columnIdxBlocco}, true)); + this.columnCodCS.MaxLength = 2; + this.columnCodMagLogico.AllowDBNull = false; + this.columnDescMagLogico.MaxLength = 50; + this.columnIdxBlocco.AllowDBNull = false; + this.columnCodMag.AllowDBNull = false; + this.columnCodMag.MaxLength = 50; + this.columnCodBlocco.AllowDBNull = false; + this.columnCodBlocco.MaxLength = 3; + this.columnOldest.ReadOnly = true; + this.columnNewest.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public V_MagazziniLogiciOverviewRow NewV_MagazziniLogiciOverviewRow() { + return ((V_MagazziniLogiciOverviewRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new V_MagazziniLogiciOverviewRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(V_MagazziniLogiciOverviewRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.V_MagazziniLogiciOverviewRowChanged != null)) { + this.V_MagazziniLogiciOverviewRowChanged(this, new V_MagazziniLogiciOverviewRowChangeEvent(((V_MagazziniLogiciOverviewRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.V_MagazziniLogiciOverviewRowChanging != null)) { + this.V_MagazziniLogiciOverviewRowChanging(this, new V_MagazziniLogiciOverviewRowChangeEvent(((V_MagazziniLogiciOverviewRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.V_MagazziniLogiciOverviewRowDeleted != null)) { + this.V_MagazziniLogiciOverviewRowDeleted(this, new V_MagazziniLogiciOverviewRowChangeEvent(((V_MagazziniLogiciOverviewRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.V_MagazziniLogiciOverviewRowDeleting != null)) { + this.V_MagazziniLogiciOverviewRowDeleting(this, new V_MagazziniLogiciOverviewRowChangeEvent(((V_MagazziniLogiciOverviewRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveV_MagazziniLogiciOverviewRow(V_MagazziniLogiciOverviewRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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_magazzino ds = new DS_magazzino(); + 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 = "V_MagazziniLogiciOverviewDataTable"; + 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. /// @@ -11238,6 +11617,188 @@ namespace GMW_data { } } + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class V_MagazziniLogiciOverviewRow : global::System.Data.DataRow { + + private V_MagazziniLogiciOverviewDataTable tableV_MagazziniLogiciOverview; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal V_MagazziniLogiciOverviewRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableV_MagazziniLogiciOverview = ((V_MagazziniLogiciOverviewDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCS { + get { + try { + return ((string)(this[this.tableV_MagazziniLogiciOverview.CodCSColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodCS\' in table \'V_MagazziniLogiciOverview\' is DBNull.", e); + } + } + set { + this[this.tableV_MagazziniLogiciOverview.CodCSColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int CodMagLogico { + get { + return ((int)(this[this.tableV_MagazziniLogiciOverview.CodMagLogicoColumn])); + } + set { + this[this.tableV_MagazziniLogiciOverview.CodMagLogicoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescMagLogico { + get { + try { + return ((string)(this[this.tableV_MagazziniLogiciOverview.DescMagLogicoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescMagLogico\' in table \'V_MagazziniLogiciOverview\' is DBNu" + + "ll.", e); + } + } + set { + this[this.tableV_MagazziniLogiciOverview.DescMagLogicoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int IdxBlocco { + get { + return ((int)(this[this.tableV_MagazziniLogiciOverview.IdxBloccoColumn])); + } + set { + this[this.tableV_MagazziniLogiciOverview.IdxBloccoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodMag { + get { + return ((string)(this[this.tableV_MagazziniLogiciOverview.CodMagColumn])); + } + set { + this[this.tableV_MagazziniLogiciOverview.CodMagColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodBlocco { + get { + return ((string)(this[this.tableV_MagazziniLogiciOverview.CodBloccoColumn])); + } + set { + this[this.tableV_MagazziniLogiciOverview.CodBloccoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int CelleOccupate { + get { + try { + return ((int)(this[this.tableV_MagazziniLogiciOverview.CelleOccupateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CelleOccupate\' in table \'V_MagazziniLogiciOverview\' is DBNu" + + "ll.", e); + } + } + set { + this[this.tableV_MagazziniLogiciOverview.CelleOccupateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime Oldest { + get { + try { + return ((global::System.DateTime)(this[this.tableV_MagazziniLogiciOverview.OldestColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Oldest\' in table \'V_MagazziniLogiciOverview\' is DBNull.", e); + } + } + set { + this[this.tableV_MagazziniLogiciOverview.OldestColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime Newest { + get { + try { + return ((global::System.DateTime)(this[this.tableV_MagazziniLogiciOverview.NewestColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Newest\' in table \'V_MagazziniLogiciOverview\' is DBNull.", e); + } + } + set { + this[this.tableV_MagazziniLogiciOverview.NewestColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodCSNull() { + return this.IsNull(this.tableV_MagazziniLogiciOverview.CodCSColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodCSNull() { + this[this.tableV_MagazziniLogiciOverview.CodCSColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescMagLogicoNull() { + return this.IsNull(this.tableV_MagazziniLogiciOverview.DescMagLogicoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescMagLogicoNull() { + this[this.tableV_MagazziniLogiciOverview.DescMagLogicoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCelleOccupateNull() { + return this.IsNull(this.tableV_MagazziniLogiciOverview.CelleOccupateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCelleOccupateNull() { + this[this.tableV_MagazziniLogiciOverview.CelleOccupateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsOldestNull() { + return this.IsNull(this.tableV_MagazziniLogiciOverview.OldestColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetOldestNull() { + this[this.tableV_MagazziniLogiciOverview.OldestColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsNewestNull() { + return this.IsNull(this.tableV_MagazziniLogiciOverview.NewestColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetNewestNull() { + this[this.tableV_MagazziniLogiciOverview.NewestColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -11826,6 +12387,37 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class V_MagazziniLogiciOverviewRowChangeEvent : global::System.EventArgs { + + private V_MagazziniLogiciOverviewRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public V_MagazziniLogiciOverviewRowChangeEvent(V_MagazziniLogiciOverviewRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public V_MagazziniLogiciOverviewRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_magazzinoTableAdapters { @@ -17415,7 +18007,7 @@ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT * FROM dbo.v_UdcDetail"; @@ -17429,23 +18021,30 @@ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_getUdcDetailLikeSearch"; + this._commandCollection[2].CommandText = "dbo.stp_UdcDetailGetByIdxBloccoCodMagLog"; this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMagLog", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_UdcDetailGetByIdxBlocco"; + this._commandCollection[3].CommandText = "dbo.stp_getUdcDetailLikeSearch"; this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_UdcDetailGetByIdxCella"; + this._commandCollection[4].CommandText = "dbo.stp_UdcDetailGetByIdxBlocco"; this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_UdcDetailGetByIdxCella"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17495,8 +18094,30 @@ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_magazzino.v_UdcDetailDataTable getByLikeSearch(string searchVal, string CodCS) { + public virtual DS_magazzino.v_UdcDetailDataTable getByIdxBloccoCodMagLog(global::System.Nullable IdxBlocco, global::System.Nullable CodMagLog) { this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxBlocco.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxBlocco.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((CodMagLog.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(CodMagLog.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_magazzino.v_UdcDetailDataTable dataTable = new DS_magazzino.v_UdcDetailDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.v_UdcDetailDataTable getByLikeSearch(string searchVal, string CodCS) { + this.Adapter.SelectCommand = this.CommandCollection[3]; if ((searchVal == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17518,7 +18139,7 @@ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_magazzino.v_UdcDetailDataTable getUdcDetailByIdxBlocco(global::System.Nullable IdxBlocco) { - this.Adapter.SelectCommand = this.CommandCollection[3]; + this.Adapter.SelectCommand = this.CommandCollection[4]; if ((IdxBlocco.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxBlocco.Value)); } @@ -17534,7 +18155,7 @@ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_magazzino.v_UdcDetailDataTable getUdcDetailByIdxCella(global::System.Nullable IdxCella) { - this.Adapter.SelectCommand = this.CommandCollection[4]; + this.Adapter.SelectCommand = this.CommandCollection[5]; if ((IdxCella.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxCella.Value)); } @@ -18638,7 +19259,7 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT * FROM dbo.V_DettMagPart"; @@ -18654,19 +19275,38 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_paretoPartByMagBlocco"; + this._commandCollection[2].CommandText = "dbo.stp_paretoDettPartByFullSpecMagLog"; this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMagLog", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_paretoDettMagByParticolare"; + this._commandCollection[3].CommandText = "dbo.stp_paretoPartByMagBlocco"; this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_paretoPartByMagBloccoCodMagLog"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMagLog", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_paretoDettMagByParticolare"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -18728,7 +19368,7 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_magazzino.V_DettMagPartDataTable getParetoByMagBlocco(string CodCS, string CodMag, global::System.Nullable IdxBlocco) { + public virtual DS_magazzino.V_DettMagPartDataTable getParetoByFullSpecMagLog(string CodCS, string CodMag, global::System.Nullable IdxBlocco, string Particolare, global::System.Nullable CodMagLog) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((CodCS == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -18748,6 +19388,80 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co else { this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; } + if ((Particolare == null)) { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Particolare)); + } + if ((CodMagLog.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((int)(CodMagLog.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + DS_magazzino.V_DettMagPartDataTable dataTable = new DS_magazzino.V_DettMagPartDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.V_DettMagPartDataTable getParetoByMagBlocco(string CodCS, string CodMag, global::System.Nullable IdxBlocco) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((CodCS == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS)); + } + if ((CodMag == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodMag)); + } + if ((IdxBlocco.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(IdxBlocco.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_magazzino.V_DettMagPartDataTable dataTable = new DS_magazzino.V_DettMagPartDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.V_DettMagPartDataTable getParetoByMagBloccoMagLog(string CodCS, string CodMag, global::System.Nullable IdxBlocco, global::System.Nullable CodMagLog) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((CodCS == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS)); + } + if ((CodMag == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodMag)); + } + if ((IdxBlocco.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(IdxBlocco.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CodMagLog.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((int)(CodMagLog.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } DS_magazzino.V_DettMagPartDataTable dataTable = new DS_magazzino.V_DettMagPartDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -18757,7 +19471,7 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_magazzino.V_DettMagPartDataTable getParetoByParticolare(string CodCS, string Particolare) { - this.Adapter.SelectCommand = this.CommandCollection[3]; + this.Adapter.SelectCommand = this.CommandCollection[5]; if ((CodCS == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -21298,6 +22012,194 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class V_MagazziniLogiciOverviewTableAdapter : 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()] + public V_MagazziniLogiciOverviewTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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()] + 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()] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 = "V_MagazziniLogiciOverview"; + tableMapping.ColumnMappings.Add("CodCS", "CodCS"); + tableMapping.ColumnMappings.Add("CodMagLogico", "CodMagLogico"); + tableMapping.ColumnMappings.Add("DescMagLogico", "DescMagLogico"); + tableMapping.ColumnMappings.Add("IdxBlocco", "IdxBlocco"); + tableMapping.ColumnMappings.Add("CodMag", "CodMag"); + tableMapping.ColumnMappings.Add("CodBlocco", "CodBlocco"); + tableMapping.ColumnMappings.Add("CelleOccupate", "CelleOccupate"); + tableMapping.ColumnMappings.Add("Oldest", "Oldest"); + tableMapping.ColumnMappings.Add("Newest", "Newest"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 CodCS, CodMagLogico, DescMagLogico, IdxBlocco, CodMag, CodBlocco, CelleOcc" + + "upate, Oldest, Newest FROM dbo.V_MagazziniLogiciOverview"; + 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_magazzinoLogicoOverview"; + 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("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_magazzino.V_MagazziniLogiciOverviewDataTable 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_magazzino.V_MagazziniLogiciOverviewDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_magazzino.V_MagazziniLogiciOverviewDataTable dataTable = new DS_magazzino.V_MagazziniLogiciOverviewDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.V_MagazziniLogiciOverviewDataTable getByCodCS(string CodCS) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodCS == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS)); + } + DS_magazzino.V_MagazziniLogiciOverviewDataTable dataTable = new DS_magazzino.V_MagazziniLogiciOverviewDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -21624,12 +22526,12 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx allChangedRows.AddRange(updatedRows); } } - if ((this._tipoCellaTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._tipoListaPrelievoTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._tipoCellaTableAdapter.Update(updatedRows)); + result = (result + this._tipoListaPrelievoTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -21642,12 +22544,12 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx allChangedRows.AddRange(updatedRows); } } - if ((this._tipoListaPrelievoTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._tipoCellaTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._tipoListaPrelievoTableAdapter.Update(updatedRows)); + result = (result + this._tipoCellaTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -21730,11 +22632,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx allAddedRows.AddRange(addedRows); } } - if ((this._tipoCellaTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._tipoListaPrelievoTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._tipoCellaTableAdapter.Update(addedRows)); + result = (result + this._tipoListaPrelievoTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -21746,11 +22648,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx allAddedRows.AddRange(addedRows); } } - if ((this._tipoListaPrelievoTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._tipoCellaTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._tipoListaPrelievoTableAdapter.Update(addedRows)); + result = (result + this._tipoCellaTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -21859,11 +22761,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx allChangedRows.AddRange(deletedRows); } } - if ((this._tipoListaPrelievoTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._tipoCellaTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._tipoListaPrelievoTableAdapter.Update(deletedRows)); + result = (result + this._tipoCellaTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -21875,11 +22777,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx allChangedRows.AddRange(deletedRows); } } - if ((this._tipoCellaTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._tipoListaPrelievoTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._tipoCellaTableAdapter.Update(deletedRows)); + result = (result + this._tipoListaPrelievoTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } diff --git a/GMW/GMW_data/DS_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd index f401031c..262c4996 100644 --- a/GMW/GMW_data/DS_magazzino.xsd +++ b/GMW/GMW_data/DS_magazzino.xsd @@ -1209,6 +1209,18 @@ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max + + + + dbo.stp_UdcDetailGetByIdxBloccoCodMagLog + + + + + + + + @@ -1499,6 +1511,21 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co + + + + dbo.stp_paretoDettPartByFullSpecMagLog + + + + + + + + + + + @@ -1512,6 +1539,20 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co + + + + dbo.stp_paretoPartByMagBloccoCodMagLog + + + + + + + + + + @@ -2094,6 +2135,42 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx + + + + + + SELECT CodCS, CodMagLogico, DescMagLogico, IdxBlocco, CodMag, CodBlocco, CelleOccupate, Oldest, Newest FROM dbo.V_MagazziniLogiciOverview + + + + + + + + + + + + + + + + + + + + + dbo.stp_magazzinoLogicoOverview + + + + + + + + + @@ -2105,273 +2182,127 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx - + - + - + - + - + - + - + - + - + - + - + - + - - - + + + - + - - - - + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2386,18 +2317,17 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx - - - - - - - - + + + + + + + - + @@ -2407,14 +2337,272 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2428,101 +2616,319 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx - + + + + + + + + + + - + - - - - - - - - + - - - - - - - - - - - + - - - - - - - - - + + - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + - + + + + + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2539,350 +2945,21 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -2895,8 +2972,8 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx - - + + @@ -2909,17 +2986,56 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx - - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3015,6 +3131,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx + + + + + diff --git a/GMW/GMW_data/DS_magazzino.xss b/GMW/GMW_data/DS_magazzino.xss index c10b02a3..d997e5fa 100644 --- a/GMW/GMW_data/DS_magazzino.xss +++ b/GMW/GMW_data/DS_magazzino.xss @@ -4,30 +4,31 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - + 318 @@ -39,7 +40,7 @@ - + 318 @@ -51,7 +52,7 @@ - + 1118 @@ -63,7 +64,7 @@ - + 712 @@ -75,7 +76,7 @@ - + 1014 @@ -87,7 +88,7 @@ - + 1107 @@ -99,7 +100,7 @@ - + 197 @@ -111,7 +112,7 @@ - + 430 @@ -123,7 +124,7 @@ - + 735 @@ -135,7 +136,7 @@ - + 392 @@ -151,7 +152,7 @@ - + 1006 diff --git a/GMW/GMW_data/GMW_data.csproj b/GMW/GMW_data/GMW_data.csproj index aab8b1eb..c4c104bb 100644 --- a/GMW/GMW_data/GMW_data.csproj +++ b/GMW/GMW_data/GMW_data.csproj @@ -161,6 +161,7 @@ Settings.Designer.cs + diff --git a/GMW/GMW_data/SqlScripts/GMW_00245.sql b/GMW/GMW_data/SqlScripts/GMW_00245.sql new file mode 100644 index 00000000..fd2af48f --- /dev/null +++ b/GMW/GMW_data/SqlScripts/GMW_00245.sql @@ -0,0 +1,427 @@ +-- update permessi x magazzino logico + +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.Permessi SET + NUMERO=5 + WHERE COD_PERMESSO='MAG_delibere' +UPDATE dbo.Permessi SET + NUMERO=4 + WHERE COD_PERMESSO='MAG_elListe' +INSERT INTO dbo.Permessi + VALUES ('MAG_logico', 'MagLogico.aspx', 2, 3, 'StatoMagLogico', 'StatoMagLogicoExpl') +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.Permessi2Funzione + VALUES ('MAG_logico', N'GMW_user', 'S') +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +create VIEW V_MagazziniLogiciOverview +AS +SELECT TOP (100) PERCENT dbo.ElencoCartellini.CodCS, dbo.AnagPosizioni.IdxPosizione AS CodMagLogico, dbo.AnagPosizioni.DescPosizione AS DescMagLogico, + dbo.Blocchi.IdxBlocco, dbo.AnagMag.CodMag, dbo.Blocchi.CodBlocco, COUNT(dbo.ElencoCartellini.UDC) AS CelleOccupate, + ISNULL(MIN(dbo.PosizioneUdcCorrente.DataRif), GETDATE()) AS Oldest, ISNULL(MAX(dbo.PosizioneUdcCorrente.DataRif), GETDATE()) AS Newest +FROM dbo.Celle INNER JOIN + dbo.Blocchi INNER JOIN + dbo.AnagMag ON dbo.Blocchi.CodMag = dbo.AnagMag.CodMag AND dbo.Blocchi.CodCS = dbo.AnagMag.CodCS ON + dbo.Celle.IdxBlocco = dbo.Blocchi.IdxBlocco INNER JOIN + dbo.ElencoCartellini INNER JOIN + dbo.PosizioneUdcCorrente ON dbo.ElencoCartellini.UDC = dbo.PosizioneUdcCorrente.UDC INNER JOIN + dbo.AnagPosizioni ON dbo.ElencoCartellini.IdxPosizione = dbo.AnagPosizioni.IdxPosizione ON dbo.Celle.IdxCella = dbo.PosizioneUdcCorrente.IdxCella +GROUP BY dbo.ElencoCartellini.CodCS, dbo.AnagPosizioni.IdxPosizione, dbo.AnagPosizioni.DescPosizione, dbo.Blocchi.IdxBlocco, dbo.Blocchi.CodBlocco, + dbo.AnagMag.CodMag +ORDER BY CodMagLogico, dbo.Blocchi.CodBlocco +go + +exec sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "Blocchi" + Begin Extent = + Top = 6 + Left = 486 + Bottom = 135 + Right = 672 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "ElencoCartellini" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 135 + Right = 224 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "PosizioneUdcCorrente" + Begin Extent = + Top = 6 + Left = 934 + Bottom = 135 + Right = 1120 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagPosizioni" + Begin Extent = + Top = 6 + Left = 262 + Bottom = 101 + Right = 448 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "Celle" + Begin Extent = + Top = 6 + Left = 710 + Bottom = 135 + Right = 896 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagMag" + Begin Extent = + Top = 6 + Left = 1158 + Bottom = 118 + Right = 1344 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 12 + Width = 284 + Width = 1500 + ', 'SCHEMA', 'dbo', 'VIEW', 'V_MagazziniLogiciOverview' +go + +exec sp_addextendedproperty 'MS_DiagramPane2', ' Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 12 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'V_MagazziniLogiciOverview' +go + +exec sp_addextendedproperty 'MS_DiagramPaneCount', 2, 'SCHEMA', 'dbo', 'VIEW', 'V_MagazziniLogiciOverview' +go + +create VIEW v_selMagLogico +AS +SELECT DISTINCT TOP (100) PERCENT CAST(IdxPosizione AS NVARCHAR(20)) AS value, 'Mag. ' + CAST(IdxPosizione AS NVARCHAR(20)) AS label, CodCS AS conditio +FROM dbo.ElencoCartellini +ORDER BY label +go + +exec sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "ElencoCartellini" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 343 + Right = 208 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selMagLogico' +go + +exec sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selMagLogico' +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/*************************************** +* STORED stp_ParticolariOverview +* +* elenco di overview sullo stato dei magazzini LOGICI (dettaglio a "maglie larghe") +* +* Steamware, S.E.L. +* mod: 2010.09.15 +* +****************************************/ +create PROCEDURE stp_magazzinoLogicoOverview +( + @CodCS VARCHAR(2) +) +AS + +SELECT ElencoCartellini.CodCS, AnagPosizioni.IdxPosizione AS CodMagLogico, AnagPosizioni.DescPosizione AS DescMagLogico, Blocchi.IdxBlocco, AnagMag.CodMag, + Blocchi.CodBlocco, COUNT(ElencoCartellini.UDC) AS CelleOccupate, ISNULL(MIN(PosizioneUdcCorrente.DataRif), GETDATE()) AS Oldest, + ISNULL(MAX(PosizioneUdcCorrente.DataRif), GETDATE()) AS Newest +FROM Celle INNER JOIN + Blocchi INNER JOIN + AnagMag ON Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS ON Celle.IdxBlocco = Blocchi.IdxBlocco INNER JOIN + ElencoCartellini INNER JOIN + PosizioneUdcCorrente ON ElencoCartellini.UDC = PosizioneUdcCorrente.UDC INNER JOIN + AnagPosizioni ON ElencoCartellini.IdxPosizione = AnagPosizioni.IdxPosizione ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella +WHERE (ElencoCartellini.CodCS = @CodCS) +GROUP BY ElencoCartellini.CodCS, AnagPosizioni.IdxPosizione, AnagPosizioni.DescPosizione, Blocchi.IdxBlocco, Blocchi.CodBlocco, AnagMag.CodMag +ORDER BY CodMagLogico, Blocchi.CodBlocco + +RETURN +go + +commit +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(245, GETDATE()) +GO \ No newline at end of file diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll index 36de9d10..691af20e 100644 Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/bin/Release/GMW_data.dll b/GMW/GMW_data/bin/Release/GMW_data.dll index 75336cba..8c4ea973 100644 Binary files a/GMW/GMW_data/bin/Release/GMW_data.dll and b/GMW/GMW_data/bin/Release/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll index 36de9d10..691af20e 100644 Binary files a/GMW/GMW_data/obj/Debug/GMW_data.dll and b/GMW/GMW_data/obj/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/Refactor/GMW_data.dll b/GMW/GMW_data/obj/Debug/Refactor/GMW_data.dll index 2a8a7e72..1b37887e 100644 Binary files a/GMW/GMW_data/obj/Debug/Refactor/GMW_data.dll and b/GMW/GMW_data/obj/Debug/Refactor/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll index 3507c981..440f7766 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll index dd33c2ff..99877a84 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Release/GMW_data.dll b/GMW/GMW_data/obj/Release/GMW_data.dll index 75336cba..8c4ea973 100644 Binary files a/GMW/GMW_data/obj/Release/GMW_data.dll and b/GMW/GMW_data/obj/Release/GMW_data.dll differ diff --git a/GMW/GMW_installer/GMW_installer.vdproj b/GMW/GMW_installer/GMW_installer.vdproj index 774f2767..0825fa48 100644 --- a/GMW/GMW_installer/GMW_installer.vdproj +++ b/GMW/GMW_installer/GMW_installer.vdproj @@ -349,14 +349,14 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:GMW" - "ProductCode" = "8:{9749740C-0A9B-44A6-BFF5-7072CA8AB38D}" - "PackageCode" = "8:{D3866B83-1976-4561-8C3A-858DB07E7078}" + "ProductCode" = "8:{AB7F541C-843E-4CB6-9814-2317D35C513F}" + "PackageCode" = "8:{62B837CA-F1D7-404A-AB5F-EE130F16C2F3}" "UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}" "RestartWWWService" = "11:TRUE" "RemovePreviousVersions" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:FALSE" - "ProductVersion" = "8:1.0.240" + "ProductVersion" = "8:1.0.245" "Manufacturer" = "8:SteamWare s.r.l." "ARPHELPTELEPHONE" = "8:+39-035460560" "ARPHELPLINK" = "8:http://www.steamware.net" diff --git a/GMW/GMW_installer/Release/GMW_installer.msi b/GMW/GMW_installer/Release/GMW_installer.msi index 2b67a7c7..4e2c6ccf 100644 Binary files a/GMW/GMW_installer/Release/GMW_installer.msi and b/GMW/GMW_installer/Release/GMW_installer.msi differ