diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj index c6992265..6af5ae98 100644 --- a/GMW/GMW/GMW.csproj +++ b/GMW/GMW/GMW.csproj @@ -470,6 +470,13 @@ mod_paretoUdcBlocco.ascx + + mod_periodoAnalisi.ascx + ASPXCodeBehind + + + mod_periodoAnalisi.ascx + mod_ricercaGenerica.ascx ASPXCodeBehind @@ -812,6 +819,7 @@ + diff --git a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx index b9612a9f..83d4db0f 100644 --- a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx +++ b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx @@ -3,102 +3,112 @@ <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_viewRigheListaPrelievo.ascx" TagName="mod_viewRigheListaPrelievo" TagPrefix="uc1" %> -
- - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -    - - - - - - - - - - -
-
- -
+<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %> + + + + + + + + + +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +    + + + + + + + + + + + + +
diff --git a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.cs b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.cs index 6c909088..15738bae 100644 --- a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.cs @@ -302,10 +302,7 @@ namespace GMW.WebUserControls if (!Page.IsPostBack) { mod_viewRigheListaPrelievo1.Visible = false; - chkIniziata.Checked = false; - chkCompletata.Checked = false; - chkIniziata.Text = traduci("MostraIniziate"); - chkCompletata.Text = traduci("MostraCompletate"); + mod_periodoAnalisi1.setPeriodoFree(); } // registro evento update mod_viewRigheListaPrelievo1.eh_nuovoValore += new EventHandler(mod_viewRigheListaPrelievo1_eh_nuovoValore); @@ -355,13 +352,33 @@ namespace GMW.WebUserControls #endif return answ; } - - public bool iniziaEnabled(object statoIniziata) + /// + /// determina se sia abilitato il pulsante x iniziare una lista di prelievo + /// + /// + /// + public bool iniziaEnabled(object codStato) { bool answ = false; try { - answ = !Convert.ToBoolean(statoIniziata); + answ = ((int)codStato == (int)statoLista.generata); + } + catch + { } + return answ; + } + /// + /// determina se sia abilitato il pulsante x completare una lista di prelievo + /// + /// + /// + public bool completaEnabled(object codStato) + { + bool answ = false; + try + { + answ = ((int)codStato == (int)statoLista.iniziata); } catch { } @@ -377,16 +394,18 @@ namespace GMW.WebUserControls { aggiornaElencoRighe(); } - + /// + /// aggiorna visualizzazione + /// private void aggiornaElencoRighe() { // salvo in session il valore selezionato... SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true); - + bool prelievoOk = false; try { - prelievoOk = GMW_data.MagClass.magazzino.taElencoListePrelievo.getByCodLista(grView.SelectedValue.ToString())[0].Iniziata; + prelievoOk = (GMW_data.MagClass.magazzino.taElencoListePrelievo.getByCodLista(grView.SelectedValue.ToString())[0].CodStatoLista == (int)statoLista.iniziata); } catch { } @@ -447,6 +466,15 @@ namespace GMW.WebUserControls SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "iniziaListaPrelievo"); } /// + /// salvo in session che il prox comando è completare lista prelievo... + /// + /// + /// + protected void imgCompletaLista_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "completaListaPrelievo"); + } + /// /// in caso di aggiornamento verifico se sia salvato un comando inizia o completa lista prelievo... /// /// @@ -462,11 +490,11 @@ namespace GMW.WebUserControls _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand"); SteamWare.memLayer.ML.emptySessionVal("nextObjCommand"); } + string CodSoggetto = "O0000000000000069"; // operatore a caso, POI sarà da cercare da operatore correntemente loggato... !!!FARE!!! // verifico il tipo di richiesta (up/down level, clona o update normale switch (_comando) { case "iniziaListaPrelievo": - string CodSoggetto = "O0000000000000069"; // operatore a caso, POI sarà da cercare da operatore correntemente loggato... !!!FARE!!! GMW_data.MagClass.magazzino.iniziaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto); updateOds(); grView.EditIndex = -1; @@ -479,6 +507,19 @@ namespace GMW.WebUserControls // blocco update! e.Cancel = true; break; + case "completaListaPrelievo": + GMW_data.MagClass.magazzino.completaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto); + updateOds(); + grView.EditIndex = -1; + grView.DataBind(); + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + // blocco update! + e.Cancel = true; + break; default: // faccio update! break; @@ -487,7 +528,5 @@ namespace GMW.WebUserControls } #endregion - - } } \ No newline at end of file diff --git a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs index fb10c922..c6080c76 100644 --- a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs +++ b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs @@ -14,22 +14,13 @@ namespace GMW.WebUserControls { public partial class mod_elencoListePrelievo { /// - /// chkIniziata control. + /// mod_periodoAnalisi1 control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.CheckBox chkIniziata; - - /// - /// chkCompletata control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.CheckBox chkCompletata; + protected global::mod_periodoAnalisi mod_periodoAnalisi1; /// /// grView control. diff --git a/GMW/GMW/WebUserControls/mod_funzioniVarieTest.ascx.cs b/GMW/GMW/WebUserControls/mod_funzioniVarieTest.ascx.cs index 1325362c..5367224d 100644 --- a/GMW/GMW/WebUserControls/mod_funzioniVarieTest.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_funzioniVarieTest.ascx.cs @@ -23,13 +23,13 @@ namespace GMW.WebUserControls protected void Button2_Click(object sender, EventArgs e) { // testa inizio lista prelievo - MagClass.magazzino.iniziaListaPrelievo("MA", "KMA100600005", "0000000000000080"); + MagClass.magazzino.iniziaListaPrelievo("MA", "KMA100600005", "O9900000000000003"); //!!!FARE!!! } protected void Button3_Click(object sender, EventArgs e) { // testa fine e scaricamento - indicando completata - lista prelievo - MagClass.magazzino.scaricaListaPrelievo("MA", "KMA100600019"); + MagClass.magazzino.scaricaListaPrelievo("MA", "KMA100600019","O9900000000000003"); } protected void Button4_Click(object sender, EventArgs e) diff --git a/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx b/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx new file mode 100644 index 00000000..0a02fc55 --- /dev/null +++ b/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx @@ -0,0 +1,35 @@ +<%@ Control Language="C#" AutoEventWireup="true" + Inherits="mod_periodoAnalisi" Codebehind="mod_periodoAnalisi.ascx.cs" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +
+
+ +
+
+ + + + +
+
+ + + + +
+
+ + + + + + + +
+
diff --git a/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.cs b/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.cs new file mode 100644 index 00000000..6be7b2de --- /dev/null +++ b/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.cs @@ -0,0 +1,205 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_periodoAnalisi : System.Web.UI.UserControl +{ + #region area protected + + protected intervalloDate _intervallo; + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + setIntervallo(); + } + + /// + /// gestione del selettore rapido dell'intervallo temporale... + /// + /// + /// + protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) + { + intervalloDate _intervallo = new intervalloDate(); + // verifico cosa sia cambiato ed imposto date... + datario _datario = new datario(); + switch (DropDownList1.SelectedValue) + { + case "1_today": + _intervallo = _datario.giornata(DateTime.Now); + break; + case "2_yesterday": + _intervallo = _datario.giornata(DateTime.Now.AddDays(-1)); + break; + case "3_last_7": + _intervallo = _datario.ultimiGiorni(DateTime.Now, 7); + break; + case "4_this_week": + _intervallo = _datario.questaSett(DateTime.Now); + break; + case "5_last_30": + _intervallo = _datario.ultimiGiorni(DateTime.Now, 30); + break; + case "6_this_month": + _intervallo = _datario.questoMese(DateTime.Now); + break; + case "7_last_month": + _intervallo = _datario.estremiMese(DateTime.Now.AddMonths(-1)); + break; + case "8_this_year": + _intervallo = _datario.estremiAnno(DateTime.Now); + break; + case "9_last_year": + _intervallo = _datario.estremiAnno(DateTime.Now.AddYears(-1)); + break; + default: + break; + } + intervalloAnalisi = _intervallo; + aggiornaDateMostrate(); + } + + private void aggiornaDateMostrate() + { + txtInizio.Text = intervalloAnalisi.inizio.ToShortDateString(); + txtFine.Text = intervalloAnalisi.fine.AddDays(-1).ToShortDateString(); // mostro 1 gg in meno xché termina alle 00:00... + reportUpdate(); + } + + private void setIntervallo() + { + intervalloDate _intervallo; + try + { + _intervallo = (intervalloDate)Session["_intervallo"]; + } + catch + { + _intervallo = new intervalloDate(); + _intervallo.fine = DateTime.Now.Subtract(DateTime.Now.TimeOfDay).AddDays(1); + _intervallo.inizio = _intervallo.fine.AddMonths(-1); + Session["_intervallo"] = _intervallo; + Session["_inizio"] = _intervallo.inizio; + Session["_fine"] = _intervallo.fine; + } + txtInizio.Text = _intervallo.inizio.ToShortDateString(); + txtFine.Text = _intervallo.fine.ToShortDateString(); + } + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + lblPeriodo.Text = traduci("periodoRif"); + txtInizio.ToolTip = traduci("inizioPeriodo"); + txtFine.ToolTip = traduci("finePeriodo"); + } + } + protected void txtInizio_TextChanged(object sender, EventArgs e) + { + // imposto il selettore a discesa... + DropDownList1.SelectedIndex = 0; + // se campo vuoto imposto oggi... + if (txtInizio.Text == "") + { + txtInizio.Text = DateTime.Now.ToShortDateString(); + } + else + { + txtInizio.Text = Convert.ToDateTime(txtInizio.Text).ToShortDateString(); + } + // aggiorno dati in session... + aggiornaPeriodo(); + } + + private void aggiornaPeriodo() + { + _intervallo = new intervalloDate(); + _intervallo.inizio = Convert.ToDateTime(txtInizio.Text); + _intervallo.fine = ((DateTime)Convert.ToDateTime(txtFine.Text)).Date.AddDays(1); + //_intervallo.fine = ((DateTime)Convert.ToDateTime(txtFine.Text)).Date.AddDays(1).AddMinutes(-1); + intervalloAnalisi = _intervallo; + reportUpdate(); + + } + protected void txtFine_TextChanged(object sender, EventArgs e) + { + // imposto il selettore a discesa... + DropDownList1.SelectedIndex = 0; + // se campo vuoto imposto oggi... + if (txtFine.Text == "") + { + txtFine.Text = DateTime.Now.AddDays(1).ToShortDateString(); + } + else + { + txtFine.Text = Convert.ToDateTime(txtFine.Text).ToShortDateString(); + } + // aggiorno dati in session... + aggiornaPeriodo(); + } + + protected void reportUpdate() + { + // alzo l'evento d update/inserimento e ricarico cache... + if (eh_doUpdate != null) + { + eh_doUpdate(this, new EventArgs()); + } + } + + #endregion + + #region area public + + public intervalloDate intervalloAnalisi + { + get + { + return (intervalloDate)Session["_intervallo"]; + } + set + { + intervalloDate interv = value; + Session["_intervallo"] = interv; + Session["_inizio"] = interv.inizio; + Session["_fine"] = interv.fine; + } + } + + public void doUpdate() + { + aggiornaDateMostrate(); + } + + public void setPeriodoFree() + { + DropDownList1.SelectedIndex = 0; + } + + #region gestione eventi + + public event EventHandler eh_doUpdate; + + #endregion + + #endregion + +} diff --git a/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.designer.cs new file mode 100644 index 00000000..1f92cd3d --- /dev/null +++ b/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.designer.cs @@ -0,0 +1,95 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.4927 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + + +public partial class mod_periodoAnalisi { + + /// + /// lblPeriodo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblPeriodo; + + /// + /// txtInizio control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtInizio; + + /// + /// CalendarExtender1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1; + + /// + /// RequiredFieldValidator1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; + + /// + /// txtFine control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFine; + + /// + /// CalendarExtender2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2; + + /// + /// RequiredFieldValidator2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator2; + + /// + /// DropDownList1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList DropDownList1; + + /// + /// odsPeriodi control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsPeriodi; +} diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index 7c4d3b1b..5affb8a0 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 c76565c7..5b34f7c8 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 7c4d3b1b..5affb8a0 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 d3490537..519c351b 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 c07d1c80..39ff70b2 100644 --- a/GMW/GMW_data/DS_Utility.Designer.cs +++ b/GMW/GMW_data/DS_Utility.Designer.cs @@ -35,6 +35,8 @@ namespace GMW_data { private STPDataTable tableSTP; + private v_selPeriodiTradDataTable tablev_selPeriodiTrad; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -76,6 +78,9 @@ namespace GMW_data { if ((ds.Tables["STP"] != null)) { base.Tables.Add(new STPDataTable(ds.Tables["STP"])); } + if ((ds.Tables["v_selPeriodiTrad"] != null)) { + base.Tables.Add(new v_selPeriodiTradDataTable(ds.Tables["v_selPeriodiTrad"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -139,6 +144,15 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selPeriodiTradDataTable v_selPeriodiTrad { + get { + return this.tablev_selPeriodiTrad; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -213,6 +227,9 @@ namespace GMW_data { if ((ds.Tables["STP"] != null)) { base.Tables.Add(new STPDataTable(ds.Tables["STP"])); } + if ((ds.Tables["v_selPeriodiTrad"] != null)) { + base.Tables.Add(new v_selPeriodiTradDataTable(ds.Tables["v_selPeriodiTrad"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -273,6 +290,12 @@ namespace GMW_data { this.tableSTP.InitVars(); } } + this.tablev_selPeriodiTrad = ((v_selPeriodiTradDataTable)(base.Tables["v_selPeriodiTrad"])); + if ((initTable == true)) { + if ((this.tablev_selPeriodiTrad != null)) { + this.tablev_selPeriodiTrad.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -292,6 +315,8 @@ namespace GMW_data { base.Tables.Add(this.tablestp_getImpiantiByCodCS); this.tableSTP = new STPDataTable(); base.Tables.Add(this.tableSTP); + this.tablev_selPeriodiTrad = new v_selPeriodiTradDataTable(); + base.Tables.Add(this.tablev_selPeriodiTrad); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -319,6 +344,11 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializev_selPeriodiTrad() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -382,6 +412,8 @@ namespace GMW_data { public delegate void STPRowChangeEventHandler(object sender, STPRowChangeEvent e); + public delegate void v_selPeriodiTradRowChangeEventHandler(object sender, v_selPeriodiTradRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -1745,6 +1777,264 @@ 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_selPeriodiTradDataTable : 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_selPeriodiTradDataTable() { + this.TableName = "v_selPeriodiTrad"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal v_selPeriodiTradDataTable(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_selPeriodiTradDataTable(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_selPeriodiTradRow this[int index] { + get { + return ((v_selPeriodiTradRow)(this.Rows[index])); + } + } + + public event v_selPeriodiTradRowChangeEventHandler v_selPeriodiTradRowChanging; + + public event v_selPeriodiTradRowChangeEventHandler v_selPeriodiTradRowChanged; + + public event v_selPeriodiTradRowChangeEventHandler v_selPeriodiTradRowDeleting; + + public event v_selPeriodiTradRowChangeEventHandler v_selPeriodiTradRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Addv_selPeriodiTradRow(v_selPeriodiTradRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selPeriodiTradRow Addv_selPeriodiTradRow(string value, string label, string conditio) { + v_selPeriodiTradRow rowv_selPeriodiTradRow = ((v_selPeriodiTradRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label, + conditio}; + rowv_selPeriodiTradRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selPeriodiTradRow); + return rowv_selPeriodiTradRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + v_selPeriodiTradDataTable cln = ((v_selPeriodiTradDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selPeriodiTradDataTable(); + } + + [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.Constraints.Add(new global::System.Data.UniqueConstraint("v_selPeriodiTradKey1", new global::System.Data.DataColumn[] { + this.columnvalue, + this.columnconditio}, false)); + this.columnvalue.AllowDBNull = false; + this.columnvalue.MaxLength = 20; + this.columnlabel.AllowDBNull = false; + this.columnlabel.MaxLength = 500; + this.columnconditio.AllowDBNull = false; + this.columnconditio.MaxLength = 3; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selPeriodiTradRow Newv_selPeriodiTradRow() { + return ((v_selPeriodiTradRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selPeriodiTradRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(v_selPeriodiTradRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selPeriodiTradRowChanged != null)) { + this.v_selPeriodiTradRowChanged(this, new v_selPeriodiTradRowChangeEvent(((v_selPeriodiTradRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selPeriodiTradRowChanging != null)) { + this.v_selPeriodiTradRowChanging(this, new v_selPeriodiTradRowChangeEvent(((v_selPeriodiTradRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selPeriodiTradRowDeleted != null)) { + this.v_selPeriodiTradRowDeleted(this, new v_selPeriodiTradRowChangeEvent(((v_selPeriodiTradRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selPeriodiTradRowDeleting != null)) { + this.v_selPeriodiTradRowDeleting(this, new v_selPeriodiTradRowChangeEvent(((v_selPeriodiTradRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Removev_selPeriodiTradRow(v_selPeriodiTradRow 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_selPeriodiTradDataTable"; + 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. /// @@ -2135,6 +2425,51 @@ 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_selPeriodiTradRow : global::System.Data.DataRow { + + private v_selPeriodiTradDataTable tablev_selPeriodiTrad; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal v_selPeriodiTradRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selPeriodiTrad = ((v_selPeriodiTradDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string value { + get { + return ((string)(this[this.tablev_selPeriodiTrad.valueColumn])); + } + set { + this[this.tablev_selPeriodiTrad.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string label { + get { + return ((string)(this[this.tablev_selPeriodiTrad.labelColumn])); + } + set { + this[this.tablev_selPeriodiTrad.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string conditio { + get { + return ((string)(this[this.tablev_selPeriodiTrad.conditioColumn])); + } + set { + this[this.tablev_selPeriodiTrad.conditioColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -2289,6 +2624,37 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class v_selPeriodiTradRowChangeEvent : global::System.EventArgs { + + private v_selPeriodiTradRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selPeriodiTradRowChangeEvent(v_selPeriodiTradRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selPeriodiTradRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_UtilityTableAdapters { @@ -3528,6 +3894,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_selPeriodiTradTableAdapter : 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_selPeriodiTradTableAdapter() { + 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_selPeriodiTrad"; + 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_selPeriodiTrad"; + 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 conditio, label, value FROM v_selPeriodiTrad WHERE (conditio = @conditio) " + + "ORDER BY value"; + 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.NVarChar, 3, 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_selPeriodiTradDataTable 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_selPeriodiTradDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selPeriodiTradDataTable dataTable = new DS_Utility.v_selPeriodiTradDataTable(); + 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_selPeriodiTradDataTable getByConditio(string conditio) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((conditio == null)) { + throw new global::System.ArgumentNullException("conditio"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(conditio)); + } + DS_Utility.v_selPeriodiTradDataTable dataTable = new DS_Utility.v_selPeriodiTradDataTable(); + 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 6b4b204f..0a855b72 100644 --- a/GMW/GMW_data/DS_Utility.xsd +++ b/GMW/GMW_data/DS_Utility.xsd @@ -239,6 +239,35 @@ WHERE (value = @value) + + + + + + SELECT value, label, conditio FROM dbo.v_selPeriodiTrad + + + + + + + + + + + + + + + SELECT conditio, label, value FROM v_selPeriodiTrad WHERE (conditio = @conditio) ORDER BY value + + + + + + + + @@ -250,21 +279,21 @@ WHERE (value = @value) - + - + - + @@ -277,22 +306,22 @@ WHERE (value = @value) - - + + - + - + @@ -305,35 +334,15 @@ WHERE (value = @value) - - + + - - - - - - - - - - - - - - - - - - - - - + @@ -347,21 +356,41 @@ WHERE (value = @value) - + + + + + + + - + + + + + + + + + + + + + + + - + @@ -371,11 +400,38 @@ WHERE (value = @value) - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -402,5 +458,10 @@ WHERE (value = @value) + + + + + \ No newline at end of file diff --git a/GMW/GMW_data/DS_Utility.xss b/GMW/GMW_data/DS_Utility.xss index 90d646e6..aaea9431 100644 --- a/GMW/GMW_data/DS_Utility.xss +++ b/GMW/GMW_data/DS_Utility.xss @@ -6,11 +6,12 @@ --> - - - - - + + + + + + \ 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 585383db..c2463326 100644 --- a/GMW/GMW_data/DS_magazzino.Designer.cs +++ b/GMW/GMW_data/DS_magazzino.Designer.cs @@ -49,12 +49,12 @@ namespace GMW_data { private V_DettMagPartDataTable tableV_DettMagPart; - private ElencoListePrelievoDataTable tableElencoListePrelievo; - private TipoListaPrelievoDataTable tableTipoListaPrelievo; private RigheListePrelievoDataTable tableRigheListePrelievo; + private ElencoListePrelievoDataTable tableElencoListePrelievo; + private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini; private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini; @@ -67,11 +67,11 @@ namespace GMW_data { private global::System.Data.DataRelation relationFK_TipoCella_AnagMag; - private global::System.Data.DataRelation relationFK_ElencoListePrelievo_TipoListaPrelievo1; - private global::System.Data.DataRelation relationFK_RigheListePrelievo_ElencoCartellini; - private global::System.Data.DataRelation relationFK_RigheListePrelievo_ElencoListePrelievo1; + private global::System.Data.DataRelation relationFK_RigheListePrelievo_ElencoListePrelievo11; + + private global::System.Data.DataRelation relationFK_ElencoListePrelievo_TipoListaPrelievo11; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -135,15 +135,15 @@ namespace GMW_data { if ((ds.Tables["V_DettMagPart"] != null)) { base.Tables.Add(new V_DettMagPartDataTable(ds.Tables["V_DettMagPart"])); } - if ((ds.Tables["ElencoListePrelievo"] != null)) { - base.Tables.Add(new ElencoListePrelievoDataTable(ds.Tables["ElencoListePrelievo"])); - } if ((ds.Tables["TipoListaPrelievo"] != null)) { base.Tables.Add(new TipoListaPrelievoDataTable(ds.Tables["TipoListaPrelievo"])); } if ((ds.Tables["RigheListePrelievo"] != null)) { base.Tables.Add(new RigheListePrelievoDataTable(ds.Tables["RigheListePrelievo"])); } + if ((ds.Tables["ElencoListePrelievo"] != null)) { + base.Tables.Add(new ElencoListePrelievoDataTable(ds.Tables["ElencoListePrelievo"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -270,15 +270,6 @@ namespace GMW_data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public ElencoListePrelievoDataTable ElencoListePrelievo { - get { - return this.tableElencoListePrelievo; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] @@ -297,6 +288,15 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ElencoListePrelievoDataTable ElencoListePrelievo { + get { + return this.tableElencoListePrelievo; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -392,15 +392,15 @@ namespace GMW_data { if ((ds.Tables["V_DettMagPart"] != null)) { base.Tables.Add(new V_DettMagPartDataTable(ds.Tables["V_DettMagPart"])); } - if ((ds.Tables["ElencoListePrelievo"] != null)) { - base.Tables.Add(new ElencoListePrelievoDataTable(ds.Tables["ElencoListePrelievo"])); - } if ((ds.Tables["TipoListaPrelievo"] != null)) { base.Tables.Add(new TipoListaPrelievoDataTable(ds.Tables["TipoListaPrelievo"])); } if ((ds.Tables["RigheListePrelievo"] != null)) { base.Tables.Add(new RigheListePrelievoDataTable(ds.Tables["RigheListePrelievo"])); } + if ((ds.Tables["ElencoListePrelievo"] != null)) { + base.Tables.Add(new ElencoListePrelievoDataTable(ds.Tables["ElencoListePrelievo"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -503,12 +503,6 @@ namespace GMW_data { this.tableV_DettMagPart.InitVars(); } } - this.tableElencoListePrelievo = ((ElencoListePrelievoDataTable)(base.Tables["ElencoListePrelievo"])); - if ((initTable == true)) { - if ((this.tableElencoListePrelievo != null)) { - this.tableElencoListePrelievo.InitVars(); - } - } this.tableTipoListaPrelievo = ((TipoListaPrelievoDataTable)(base.Tables["TipoListaPrelievo"])); if ((initTable == true)) { if ((this.tableTipoListaPrelievo != null)) { @@ -521,15 +515,21 @@ namespace GMW_data { this.tableRigheListePrelievo.InitVars(); } } + this.tableElencoListePrelievo = ((ElencoListePrelievoDataTable)(base.Tables["ElencoListePrelievo"])); + if ((initTable == true)) { + if ((this.tableElencoListePrelievo != null)) { + this.tableElencoListePrelievo.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"]; this.relationFK_PosizioneUdcCorrente_Celle = this.Relations["FK_PosizioneUdcCorrente_Celle"]; this.relationFK_Celle_Blocchi1 = this.Relations["FK_Celle_Blocchi1"]; this.relationFK_TipoCella_AnagMag = this.Relations["FK_TipoCella_AnagMag"]; - this.relationFK_ElencoListePrelievo_TipoListaPrelievo1 = this.Relations["FK_ElencoListePrelievo_TipoListaPrelievo1"]; this.relationFK_RigheListePrelievo_ElencoCartellini = this.Relations["FK_RigheListePrelievo_ElencoCartellini"]; - this.relationFK_RigheListePrelievo_ElencoListePrelievo1 = this.Relations["FK_RigheListePrelievo_ElencoListePrelievo1"]; + this.relationFK_RigheListePrelievo_ElencoListePrelievo11 = this.Relations["FK_RigheListePrelievo_ElencoListePrelievo11"]; + this.relationFK_ElencoListePrelievo_TipoListaPrelievo11 = this.Relations["FK_ElencoListePrelievo_TipoListaPrelievo11"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -563,12 +563,12 @@ namespace GMW_data { base.Tables.Add(this.tableV_MagazziniOverview); this.tableV_DettMagPart = new V_DettMagPartDataTable(); base.Tables.Add(this.tableV_DettMagPart); - this.tableElencoListePrelievo = new ElencoListePrelievoDataTable(); - base.Tables.Add(this.tableElencoListePrelievo); this.tableTipoListaPrelievo = new TipoListaPrelievoDataTable(); base.Tables.Add(this.tableTipoListaPrelievo); this.tableRigheListePrelievo = new RigheListePrelievoDataTable(); base.Tables.Add(this.tableRigheListePrelievo); + this.tableElencoListePrelievo = new ElencoListePrelievoDataTable(); + base.Tables.Add(this.tableElencoListePrelievo); 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); @@ -597,18 +597,18 @@ namespace GMW_data { this.tableTipoCella.CodMagColumn, this.tableTipoCella.CodCSColumn}, false); this.Relations.Add(this.relationFK_TipoCella_AnagMag); - this.relationFK_ElencoListePrelievo_TipoListaPrelievo1 = new global::System.Data.DataRelation("FK_ElencoListePrelievo_TipoListaPrelievo1", new global::System.Data.DataColumn[] { - this.tableTipoListaPrelievo.CodTipoListaColumn}, new global::System.Data.DataColumn[] { - this.tableElencoListePrelievo.CodTipoListaColumn}, false); - this.Relations.Add(this.relationFK_ElencoListePrelievo_TipoListaPrelievo1); this.relationFK_RigheListePrelievo_ElencoCartellini = new global::System.Data.DataRelation("FK_RigheListePrelievo_ElencoCartellini", new global::System.Data.DataColumn[] { this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] { this.tableRigheListePrelievo.UDCColumn}, false); this.Relations.Add(this.relationFK_RigheListePrelievo_ElencoCartellini); - this.relationFK_RigheListePrelievo_ElencoListePrelievo1 = new global::System.Data.DataRelation("FK_RigheListePrelievo_ElencoListePrelievo1", new global::System.Data.DataColumn[] { + this.relationFK_RigheListePrelievo_ElencoListePrelievo11 = new global::System.Data.DataRelation("FK_RigheListePrelievo_ElencoListePrelievo11", new global::System.Data.DataColumn[] { this.tableElencoListePrelievo.CodListaColumn}, new global::System.Data.DataColumn[] { this.tableRigheListePrelievo.CodListaColumn}, false); - this.Relations.Add(this.relationFK_RigheListePrelievo_ElencoListePrelievo1); + this.Relations.Add(this.relationFK_RigheListePrelievo_ElencoListePrelievo11); + this.relationFK_ElencoListePrelievo_TipoListaPrelievo11 = new global::System.Data.DataRelation("FK_ElencoListePrelievo_TipoListaPrelievo11", new global::System.Data.DataColumn[] { + this.tableTipoListaPrelievo.CodTipoListaColumn}, new global::System.Data.DataColumn[] { + this.tableElencoListePrelievo.CodTipoListaColumn}, false); + this.Relations.Add(this.relationFK_ElencoListePrelievo_TipoListaPrelievo11); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -671,11 +671,6 @@ namespace GMW_data { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - private bool ShouldSerializeElencoListePrelievo() { - return false; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeTipoListaPrelievo() { return false; @@ -686,6 +681,11 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeElencoListePrelievo() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -763,12 +763,12 @@ namespace GMW_data { public delegate void V_DettMagPartRowChangeEventHandler(object sender, V_DettMagPartRowChangeEvent e); - public delegate void ElencoListePrelievoRowChangeEventHandler(object sender, ElencoListePrelievoRowChangeEvent e); - public delegate void TipoListaPrelievoRowChangeEventHandler(object sender, TipoListaPrelievoRowChangeEvent e); public delegate void RigheListePrelievoRowChangeEventHandler(object sender, RigheListePrelievoRowChangeEvent e); + public delegate void ElencoListePrelievoRowChangeEventHandler(object sender, ElencoListePrelievoRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -5066,443 +5066,6 @@ 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 ElencoListePrelievoDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnCodLista; - - private global::System.Data.DataColumn columnCodTipoLista; - - private global::System.Data.DataColumn columnCodCS; - - private global::System.Data.DataColumn columnDataCreaz; - - private global::System.Data.DataColumn columnCodCliente; - - private global::System.Data.DataColumn columnRagSociale; - - private global::System.Data.DataColumn columnCodSoggetto; - - private global::System.Data.DataColumn columnParticolare; - - private global::System.Data.DataColumn columnDescParticolare; - - private global::System.Data.DataColumn columnDisegnoGrezzo; - - private global::System.Data.DataColumn columnEsponente; - - private global::System.Data.DataColumn columnCodImballo; - - private global::System.Data.DataColumn columnQtaTot; - - private global::System.Data.DataColumn columnIniziata; - - private global::System.Data.DataColumn columnCompletata; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoDataTable() { - this.TableName = "ElencoListePrelievo"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal ElencoListePrelievoDataTable(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 ElencoListePrelievoDataTable(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 CodListaColumn { - get { - return this.columnCodLista; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodTipoListaColumn { - get { - return this.columnCodTipoLista; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodCSColumn { - get { - return this.columnCodCS; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn DataCreazColumn { - get { - return this.columnDataCreaz; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodClienteColumn { - get { - return this.columnCodCliente; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn RagSocialeColumn { - get { - return this.columnRagSociale; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodSoggettoColumn { - get { - return this.columnCodSoggetto; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn ParticolareColumn { - get { - return this.columnParticolare; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn DescParticolareColumn { - get { - return this.columnDescParticolare; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn DisegnoGrezzoColumn { - get { - return this.columnDisegnoGrezzo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn EsponenteColumn { - get { - return this.columnEsponente; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodImballoColumn { - get { - return this.columnCodImballo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn QtaTotColumn { - get { - return this.columnQtaTot; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn IniziataColumn { - get { - return this.columnIniziata; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CompletataColumn { - get { - return this.columnCompletata; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] - public int Count { - get { - return this.Rows.Count; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoRow this[int index] { - get { - return ((ElencoListePrelievoRow)(this.Rows[index])); - } - } - - public event ElencoListePrelievoRowChangeEventHandler ElencoListePrelievoRowChanging; - - public event ElencoListePrelievoRowChangeEventHandler ElencoListePrelievoRowChanged; - - public event ElencoListePrelievoRowChangeEventHandler ElencoListePrelievoRowDeleting; - - public event ElencoListePrelievoRowChangeEventHandler ElencoListePrelievoRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void AddElencoListePrelievoRow(ElencoListePrelievoRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoRow AddElencoListePrelievoRow(string CodLista, TipoListaPrelievoRow parentTipoListaPrelievoRowByFK_ElencoListePrelievo_TipoListaPrelievo1, string CodCS, System.DateTime DataCreaz, string CodCliente, string RagSociale, string CodSoggetto, string Particolare, string DescParticolare, string DisegnoGrezzo, string Esponente, string CodImballo, decimal QtaTot, bool Iniziata, bool Completata) { - ElencoListePrelievoRow rowElencoListePrelievoRow = ((ElencoListePrelievoRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - CodLista, - null, - CodCS, - DataCreaz, - CodCliente, - RagSociale, - CodSoggetto, - Particolare, - DescParticolare, - DisegnoGrezzo, - Esponente, - CodImballo, - QtaTot, - Iniziata, - Completata}; - if ((parentTipoListaPrelievoRowByFK_ElencoListePrelievo_TipoListaPrelievo1 != null)) { - columnValuesArray[1] = parentTipoListaPrelievoRowByFK_ElencoListePrelievo_TipoListaPrelievo1[0]; - } - rowElencoListePrelievoRow.ItemArray = columnValuesArray; - this.Rows.Add(rowElencoListePrelievoRow); - return rowElencoListePrelievoRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoRow FindByCodLista(string CodLista) { - return ((ElencoListePrelievoRow)(this.Rows.Find(new object[] { - CodLista}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override global::System.Data.DataTable Clone() { - ElencoListePrelievoDataTable cln = ((ElencoListePrelievoDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataTable CreateInstance() { - return new ElencoListePrelievoDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal void InitVars() { - this.columnCodLista = base.Columns["CodLista"]; - this.columnCodTipoLista = base.Columns["CodTipoLista"]; - this.columnCodCS = base.Columns["CodCS"]; - this.columnDataCreaz = base.Columns["DataCreaz"]; - this.columnCodCliente = base.Columns["CodCliente"]; - this.columnRagSociale = base.Columns["RagSociale"]; - this.columnCodSoggetto = base.Columns["CodSoggetto"]; - this.columnParticolare = base.Columns["Particolare"]; - this.columnDescParticolare = base.Columns["DescParticolare"]; - this.columnDisegnoGrezzo = base.Columns["DisegnoGrezzo"]; - this.columnEsponente = base.Columns["Esponente"]; - this.columnCodImballo = base.Columns["CodImballo"]; - this.columnQtaTot = base.Columns["QtaTot"]; - this.columnIniziata = base.Columns["Iniziata"]; - this.columnCompletata = base.Columns["Completata"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - private void InitClass() { - this.columnCodLista = new global::System.Data.DataColumn("CodLista", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodLista); - this.columnCodTipoLista = new global::System.Data.DataColumn("CodTipoLista", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodTipoLista); - this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodCS); - this.columnDataCreaz = new global::System.Data.DataColumn("DataCreaz", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDataCreaz); - this.columnCodCliente = new global::System.Data.DataColumn("CodCliente", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodCliente); - this.columnRagSociale = new global::System.Data.DataColumn("RagSociale", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnRagSociale); - this.columnCodSoggetto = new global::System.Data.DataColumn("CodSoggetto", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodSoggetto); - this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnParticolare); - this.columnDescParticolare = new global::System.Data.DataColumn("DescParticolare", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDescParticolare); - this.columnDisegnoGrezzo = new global::System.Data.DataColumn("DisegnoGrezzo", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDisegnoGrezzo); - this.columnEsponente = new global::System.Data.DataColumn("Esponente", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnEsponente); - this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodImballo); - this.columnQtaTot = new global::System.Data.DataColumn("QtaTot", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnQtaTot); - this.columnIniziata = new global::System.Data.DataColumn("Iniziata", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnIniziata); - this.columnCompletata = new global::System.Data.DataColumn("Completata", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCompletata); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnCodLista}, true)); - this.columnCodLista.AllowDBNull = false; - this.columnCodLista.Unique = true; - this.columnCodLista.MaxLength = 12; - this.columnCodTipoLista.AllowDBNull = false; - this.columnCodTipoLista.MaxLength = 10; - this.columnCodCS.AllowDBNull = false; - this.columnCodCS.MaxLength = 2; - this.columnDataCreaz.AllowDBNull = false; - this.columnCodCliente.MaxLength = 6; - this.columnRagSociale.MaxLength = 35; - this.columnCodSoggetto.AllowDBNull = false; - this.columnCodSoggetto.MaxLength = 16; - this.columnParticolare.AllowDBNull = false; - this.columnParticolare.MaxLength = 15; - this.columnDescParticolare.MaxLength = 30; - this.columnDisegnoGrezzo.MaxLength = 30; - this.columnEsponente.MaxLength = 6; - this.columnCodImballo.MaxLength = 15; - this.columnQtaTot.AllowDBNull = false; - this.columnIniziata.AllowDBNull = false; - this.columnCompletata.AllowDBNull = false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoRow NewElencoListePrelievoRow() { - return ((ElencoListePrelievoRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new ElencoListePrelievoRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Type GetRowType() { - return typeof(ElencoListePrelievoRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.ElencoListePrelievoRowChanged != null)) { - this.ElencoListePrelievoRowChanged(this, new ElencoListePrelievoRowChangeEvent(((ElencoListePrelievoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.ElencoListePrelievoRowChanging != null)) { - this.ElencoListePrelievoRowChanging(this, new ElencoListePrelievoRowChangeEvent(((ElencoListePrelievoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.ElencoListePrelievoRowDeleted != null)) { - this.ElencoListePrelievoRowDeleted(this, new ElencoListePrelievoRowChangeEvent(((ElencoListePrelievoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.ElencoListePrelievoRowDeleting != null)) { - this.ElencoListePrelievoRowDeleting(this, new ElencoListePrelievoRowChangeEvent(((ElencoListePrelievoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void RemoveElencoListePrelievoRow(ElencoListePrelievoRow 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 = "ElencoListePrelievoDataTable"; - 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 the strongly named DataTable class. /// @@ -5891,7 +5454,7 @@ namespace GMW_data { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public RigheListePrelievoRow AddRigheListePrelievoRow(ElencoListePrelievoRow parentElencoListePrelievoRowByFK_RigheListePrelievo_ElencoListePrelievo1, ElencoCartelliniRow parentElencoCartelliniRowByFK_RigheListePrelievo_ElencoCartellini, decimal Qta, bool Proposto, bool Prelevato) { + public RigheListePrelievoRow AddRigheListePrelievoRow(ElencoListePrelievoRow parentElencoListePrelievoRowByFK_RigheListePrelievo_ElencoListePrelievo11, ElencoCartelliniRow parentElencoCartelliniRowByFK_RigheListePrelievo_ElencoCartellini, decimal Qta, bool Proposto, bool Prelevato) { RigheListePrelievoRow rowRigheListePrelievoRow = ((RigheListePrelievoRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -5899,8 +5462,8 @@ namespace GMW_data { Qta, Proposto, Prelevato}; - if ((parentElencoListePrelievoRowByFK_RigheListePrelievo_ElencoListePrelievo1 != null)) { - columnValuesArray[0] = parentElencoListePrelievoRowByFK_RigheListePrelievo_ElencoListePrelievo1[0]; + if ((parentElencoListePrelievoRowByFK_RigheListePrelievo_ElencoListePrelievo11 != null)) { + columnValuesArray[0] = parentElencoListePrelievoRowByFK_RigheListePrelievo_ElencoListePrelievo11[0]; } if ((parentElencoCartelliniRowByFK_RigheListePrelievo_ElencoCartellini != null)) { columnValuesArray[1] = parentElencoCartelliniRowByFK_RigheListePrelievo_ElencoCartellini[0]; @@ -6075,6 +5638,443 @@ 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 ElencoListePrelievoDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodLista; + + private global::System.Data.DataColumn columnCodTipoLista; + + private global::System.Data.DataColumn columnCodCS; + + private global::System.Data.DataColumn columnDataCreaz; + + private global::System.Data.DataColumn columnCodCliente; + + private global::System.Data.DataColumn columnRagSociale; + + private global::System.Data.DataColumn columnCodSoggetto; + + private global::System.Data.DataColumn columnParticolare; + + private global::System.Data.DataColumn columnDescParticolare; + + private global::System.Data.DataColumn columnDisegnoGrezzo; + + private global::System.Data.DataColumn columnEsponente; + + private global::System.Data.DataColumn columnCodImballo; + + private global::System.Data.DataColumn columnQtaTot; + + private global::System.Data.DataColumn columnCodStatoLista; + + private global::System.Data.DataColumn columnPrelevato; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoDataTable() { + this.TableName = "ElencoListePrelievo"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal ElencoListePrelievoDataTable(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 ElencoListePrelievoDataTable(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 CodListaColumn { + get { + return this.columnCodLista; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodTipoListaColumn { + get { + return this.columnCodTipoLista; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodCSColumn { + get { + return this.columnCodCS; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DataCreazColumn { + get { + return this.columnDataCreaz; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodClienteColumn { + get { + return this.columnCodCliente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn RagSocialeColumn { + get { + return this.columnRagSociale; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodSoggettoColumn { + get { + return this.columnCodSoggetto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ParticolareColumn { + get { + return this.columnParticolare; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescParticolareColumn { + get { + return this.columnDescParticolare; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DisegnoGrezzoColumn { + get { + return this.columnDisegnoGrezzo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn EsponenteColumn { + get { + return this.columnEsponente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodImballoColumn { + get { + return this.columnCodImballo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn QtaTotColumn { + get { + return this.columnQtaTot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodStatoListaColumn { + get { + return this.columnCodStatoLista; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn PrelevatoColumn { + get { + return this.columnPrelevato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoRow this[int index] { + get { + return ((ElencoListePrelievoRow)(this.Rows[index])); + } + } + + public event ElencoListePrelievoRowChangeEventHandler ElencoListePrelievoRowChanging; + + public event ElencoListePrelievoRowChangeEventHandler ElencoListePrelievoRowChanged; + + public event ElencoListePrelievoRowChangeEventHandler ElencoListePrelievoRowDeleting; + + public event ElencoListePrelievoRowChangeEventHandler ElencoListePrelievoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddElencoListePrelievoRow(ElencoListePrelievoRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoRow AddElencoListePrelievoRow(string CodLista, TipoListaPrelievoRow parentTipoListaPrelievoRowByFK_ElencoListePrelievo_TipoListaPrelievo11, string CodCS, System.DateTime DataCreaz, string CodCliente, string RagSociale, string CodSoggetto, string Particolare, string DescParticolare, string DisegnoGrezzo, string Esponente, string CodImballo, decimal QtaTot, int CodStatoLista, decimal Prelevato) { + ElencoListePrelievoRow rowElencoListePrelievoRow = ((ElencoListePrelievoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodLista, + null, + CodCS, + DataCreaz, + CodCliente, + RagSociale, + CodSoggetto, + Particolare, + DescParticolare, + DisegnoGrezzo, + Esponente, + CodImballo, + QtaTot, + CodStatoLista, + Prelevato}; + if ((parentTipoListaPrelievoRowByFK_ElencoListePrelievo_TipoListaPrelievo11 != null)) { + columnValuesArray[1] = parentTipoListaPrelievoRowByFK_ElencoListePrelievo_TipoListaPrelievo11[0]; + } + rowElencoListePrelievoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowElencoListePrelievoRow); + return rowElencoListePrelievoRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoRow FindByCodLista(string CodLista) { + return ((ElencoListePrelievoRow)(this.Rows.Find(new object[] { + CodLista}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + ElencoListePrelievoDataTable cln = ((ElencoListePrelievoDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new ElencoListePrelievoDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodLista = base.Columns["CodLista"]; + this.columnCodTipoLista = base.Columns["CodTipoLista"]; + this.columnCodCS = base.Columns["CodCS"]; + this.columnDataCreaz = base.Columns["DataCreaz"]; + this.columnCodCliente = base.Columns["CodCliente"]; + this.columnRagSociale = base.Columns["RagSociale"]; + this.columnCodSoggetto = base.Columns["CodSoggetto"]; + this.columnParticolare = base.Columns["Particolare"]; + this.columnDescParticolare = base.Columns["DescParticolare"]; + this.columnDisegnoGrezzo = base.Columns["DisegnoGrezzo"]; + this.columnEsponente = base.Columns["Esponente"]; + this.columnCodImballo = base.Columns["CodImballo"]; + this.columnQtaTot = base.Columns["QtaTot"]; + this.columnCodStatoLista = base.Columns["CodStatoLista"]; + this.columnPrelevato = base.Columns["Prelevato"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodLista = new global::System.Data.DataColumn("CodLista", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodLista); + this.columnCodTipoLista = new global::System.Data.DataColumn("CodTipoLista", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodTipoLista); + this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCS); + this.columnDataCreaz = new global::System.Data.DataColumn("DataCreaz", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataCreaz); + this.columnCodCliente = new global::System.Data.DataColumn("CodCliente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCliente); + this.columnRagSociale = new global::System.Data.DataColumn("RagSociale", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRagSociale); + this.columnCodSoggetto = new global::System.Data.DataColumn("CodSoggetto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodSoggetto); + this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnParticolare); + this.columnDescParticolare = new global::System.Data.DataColumn("DescParticolare", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescParticolare); + this.columnDisegnoGrezzo = new global::System.Data.DataColumn("DisegnoGrezzo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDisegnoGrezzo); + this.columnEsponente = new global::System.Data.DataColumn("Esponente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEsponente); + this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodImballo); + this.columnQtaTot = new global::System.Data.DataColumn("QtaTot", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQtaTot); + this.columnCodStatoLista = new global::System.Data.DataColumn("CodStatoLista", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodStatoLista); + this.columnPrelevato = new global::System.Data.DataColumn("Prelevato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPrelevato); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodLista}, true)); + this.columnCodLista.AllowDBNull = false; + this.columnCodLista.Unique = true; + this.columnCodLista.MaxLength = 12; + this.columnCodTipoLista.AllowDBNull = false; + this.columnCodTipoLista.MaxLength = 10; + this.columnCodCS.AllowDBNull = false; + this.columnCodCS.MaxLength = 2; + this.columnDataCreaz.AllowDBNull = false; + this.columnCodCliente.MaxLength = 6; + this.columnRagSociale.MaxLength = 35; + this.columnCodSoggetto.AllowDBNull = false; + this.columnCodSoggetto.MaxLength = 17; + this.columnParticolare.AllowDBNull = false; + this.columnParticolare.MaxLength = 15; + this.columnDescParticolare.MaxLength = 30; + this.columnDisegnoGrezzo.MaxLength = 30; + this.columnEsponente.MaxLength = 6; + this.columnCodImballo.MaxLength = 15; + this.columnQtaTot.AllowDBNull = false; + this.columnCodStatoLista.AllowDBNull = false; + this.columnPrelevato.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoRow NewElencoListePrelievoRow() { + return ((ElencoListePrelievoRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ElencoListePrelievoRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(ElencoListePrelievoRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ElencoListePrelievoRowChanged != null)) { + this.ElencoListePrelievoRowChanged(this, new ElencoListePrelievoRowChangeEvent(((ElencoListePrelievoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ElencoListePrelievoRowChanging != null)) { + this.ElencoListePrelievoRowChanging(this, new ElencoListePrelievoRowChangeEvent(((ElencoListePrelievoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ElencoListePrelievoRowDeleted != null)) { + this.ElencoListePrelievoRowDeleted(this, new ElencoListePrelievoRowChangeEvent(((ElencoListePrelievoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ElencoListePrelievoRowDeleting != null)) { + this.ElencoListePrelievoRowDeleting(this, new ElencoListePrelievoRowChangeEvent(((ElencoListePrelievoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveElencoListePrelievoRow(ElencoListePrelievoRow 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 = "ElencoListePrelievoDataTable"; + 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. /// @@ -8771,6 +8771,216 @@ namespace GMW_data { } } + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class TipoListaPrelievoRow : global::System.Data.DataRow { + + private TipoListaPrelievoDataTable tableTipoListaPrelievo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal TipoListaPrelievoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTipoListaPrelievo = ((TipoListaPrelievoDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodTipoLista { + get { + return ((string)(this[this.tableTipoListaPrelievo.CodTipoListaColumn])); + } + set { + this[this.tableTipoListaPrelievo.CodTipoListaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescrLista { + get { + try { + return ((string)(this[this.tableTipoListaPrelievo.DescrListaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrLista\' in table \'TipoListaPrelievo\' is DBNull.", e); + } + } + set { + this[this.tableTipoListaPrelievo.DescrListaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int IdxPosizione { + get { + try { + return ((int)(this[this.tableTipoListaPrelievo.IdxPosizioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxPosizione\' in table \'TipoListaPrelievo\' is DBNull.", e); + } + } + set { + this[this.tableTipoListaPrelievo.IdxPosizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCella { + get { + return ((string)(this[this.tableTipoListaPrelievo.CodCellaColumn])); + } + set { + this[this.tableTipoListaPrelievo.CodCellaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescrListaNull() { + return this.IsNull(this.tableTipoListaPrelievo.DescrListaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescrListaNull() { + this[this.tableTipoListaPrelievo.DescrListaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsIdxPosizioneNull() { + return this.IsNull(this.tableTipoListaPrelievo.IdxPosizioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetIdxPosizioneNull() { + this[this.tableTipoListaPrelievo.IdxPosizioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoRow[] _GetElencoListePrelievoRows() { + if ((this.Table.ChildRelations["FK_ElencoListePrelievo_TipoListaPrelievo11"] == null)) { + return new ElencoListePrelievoRow[0]; + } + else { + return ((ElencoListePrelievoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ElencoListePrelievo_TipoListaPrelievo11"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class RigheListePrelievoRow : global::System.Data.DataRow { + + private RigheListePrelievoDataTable tableRigheListePrelievo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal RigheListePrelievoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableRigheListePrelievo = ((RigheListePrelievoDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodLista { + get { + return ((string)(this[this.tableRigheListePrelievo.CodListaColumn])); + } + set { + this[this.tableRigheListePrelievo.CodListaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string UDC { + get { + return ((string)(this[this.tableRigheListePrelievo.UDCColumn])); + } + set { + this[this.tableRigheListePrelievo.UDCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal Qta { + get { + return ((decimal)(this[this.tableRigheListePrelievo.QtaColumn])); + } + set { + this[this.tableRigheListePrelievo.QtaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool Proposto { + get { + try { + return ((bool)(this[this.tableRigheListePrelievo.PropostoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Proposto\' in table \'RigheListePrelievo\' is DBNull.", e); + } + } + set { + this[this.tableRigheListePrelievo.PropostoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool Prelevato { + get { + try { + return ((bool)(this[this.tableRigheListePrelievo.PrelevatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Prelevato\' in table \'RigheListePrelievo\' is DBNull.", e); + } + } + set { + this[this.tableRigheListePrelievo.PrelevatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoCartelliniRow ElencoCartelliniRow { + get { + return ((ElencoCartelliniRow)(this.GetParentRow(this.Table.ParentRelations["FK_RigheListePrelievo_ElencoCartellini"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_RigheListePrelievo_ElencoCartellini"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoRow _ElencoListePrelievoRow { + get { + return ((ElencoListePrelievoRow)(this.GetParentRow(this.Table.ParentRelations["FK_RigheListePrelievo_ElencoListePrelievo11"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_RigheListePrelievo_ElencoListePrelievo11"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsPropostoNull() { + return this.IsNull(this.tableRigheListePrelievo.PropostoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetPropostoNull() { + this[this.tableRigheListePrelievo.PropostoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsPrelevatoNull() { + return this.IsNull(this.tableRigheListePrelievo.PrelevatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetPrelevatoNull() { + this[this.tableRigheListePrelievo.PrelevatoColumn] = global::System.Convert.DBNull; + } + } + /// ///Represents strongly named DataRow class. /// @@ -8946,32 +9156,37 @@ namespace GMW_data { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool Iniziata { + public int CodStatoLista { get { - return ((bool)(this[this.tableElencoListePrelievo.IniziataColumn])); + return ((int)(this[this.tableElencoListePrelievo.CodStatoListaColumn])); } set { - this[this.tableElencoListePrelievo.IniziataColumn] = value; + this[this.tableElencoListePrelievo.CodStatoListaColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool Completata { + public decimal Prelevato { get { - return ((bool)(this[this.tableElencoListePrelievo.CompletataColumn])); + try { + return ((decimal)(this[this.tableElencoListePrelievo.PrelevatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Prelevato\' in table \'ElencoListePrelievo\' is DBNull.", e); + } } set { - this[this.tableElencoListePrelievo.CompletataColumn] = value; + this[this.tableElencoListePrelievo.PrelevatoColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public TipoListaPrelievoRow TipoListaPrelievoRow { get { - return ((TipoListaPrelievoRow)(this.GetParentRow(this.Table.ParentRelations["FK_ElencoListePrelievo_TipoListaPrelievo1"]))); + return ((TipoListaPrelievoRow)(this.GetParentRow(this.Table.ParentRelations["FK_ElencoListePrelievo_TipoListaPrelievo11"]))); } set { - this.SetParentRow(value, this.Table.ParentRelations["FK_ElencoListePrelievo_TipoListaPrelievo1"]); + this.SetParentRow(value, this.Table.ParentRelations["FK_ElencoListePrelievo_TipoListaPrelievo11"]); } } @@ -9035,224 +9250,24 @@ namespace GMW_data { this[this.tableElencoListePrelievo.CodImballoColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public RigheListePrelievoRow[] GetRigheListePrelievoRows() { - if ((this.Table.ChildRelations["FK_RigheListePrelievo_ElencoListePrelievo1"] == null)) { - return new RigheListePrelievoRow[0]; - } - else { - return ((RigheListePrelievoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_RigheListePrelievo_ElencoListePrelievo1"]))); - } - } - } - - /// - ///Represents strongly named DataRow class. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public partial class TipoListaPrelievoRow : global::System.Data.DataRow { - - private TipoListaPrelievoDataTable tableTipoListaPrelievo; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal TipoListaPrelievoRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableTipoListaPrelievo = ((TipoListaPrelievoDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodTipoLista { - get { - return ((string)(this[this.tableTipoListaPrelievo.CodTipoListaColumn])); - } - set { - this[this.tableTipoListaPrelievo.CodTipoListaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string DescrLista { - get { - try { - return ((string)(this[this.tableTipoListaPrelievo.DescrListaColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DescrLista\' in table \'TipoListaPrelievo\' is DBNull.", e); - } - } - set { - this[this.tableTipoListaPrelievo.DescrListaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public int IdxPosizione { - get { - try { - return ((int)(this[this.tableTipoListaPrelievo.IdxPosizioneColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxPosizione\' in table \'TipoListaPrelievo\' is DBNull.", e); - } - } - set { - this[this.tableTipoListaPrelievo.IdxPosizioneColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodCella { - get { - return ((string)(this[this.tableTipoListaPrelievo.CodCellaColumn])); - } - set { - this[this.tableTipoListaPrelievo.CodCellaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsDescrListaNull() { - return this.IsNull(this.tableTipoListaPrelievo.DescrListaColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetDescrListaNull() { - this[this.tableTipoListaPrelievo.DescrListaColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsIdxPosizioneNull() { - return this.IsNull(this.tableTipoListaPrelievo.IdxPosizioneColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetIdxPosizioneNull() { - this[this.tableTipoListaPrelievo.IdxPosizioneColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoRow[] GetElencoListePrelievoRows() { - if ((this.Table.ChildRelations["FK_ElencoListePrelievo_TipoListaPrelievo1"] == null)) { - return new ElencoListePrelievoRow[0]; - } - else { - return ((ElencoListePrelievoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ElencoListePrelievo_TipoListaPrelievo1"]))); - } - } - } - - /// - ///Represents strongly named DataRow class. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public partial class RigheListePrelievoRow : global::System.Data.DataRow { - - private RigheListePrelievoDataTable tableRigheListePrelievo; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal RigheListePrelievoRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableRigheListePrelievo = ((RigheListePrelievoDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodLista { - get { - return ((string)(this[this.tableRigheListePrelievo.CodListaColumn])); - } - set { - this[this.tableRigheListePrelievo.CodListaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string UDC { - get { - return ((string)(this[this.tableRigheListePrelievo.UDCColumn])); - } - set { - this[this.tableRigheListePrelievo.UDCColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public decimal Qta { - get { - return ((decimal)(this[this.tableRigheListePrelievo.QtaColumn])); - } - set { - this[this.tableRigheListePrelievo.QtaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool Proposto { - get { - try { - return ((bool)(this[this.tableRigheListePrelievo.PropostoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Proposto\' in table \'RigheListePrelievo\' is DBNull.", e); - } - } - set { - this[this.tableRigheListePrelievo.PropostoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool Prelevato { - get { - try { - return ((bool)(this[this.tableRigheListePrelievo.PrelevatoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Prelevato\' in table \'RigheListePrelievo\' is DBNull.", e); - } - } - set { - this[this.tableRigheListePrelievo.PrelevatoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoCartelliniRow ElencoCartelliniRow { - get { - return ((ElencoCartelliniRow)(this.GetParentRow(this.Table.ParentRelations["FK_RigheListePrelievo_ElencoCartellini"]))); - } - set { - this.SetParentRow(value, this.Table.ParentRelations["FK_RigheListePrelievo_ElencoCartellini"]); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoRow ElencoListePrelievoRow { - get { - return ((ElencoListePrelievoRow)(this.GetParentRow(this.Table.ParentRelations["FK_RigheListePrelievo_ElencoListePrelievo1"]))); - } - set { - this.SetParentRow(value, this.Table.ParentRelations["FK_RigheListePrelievo_ElencoListePrelievo1"]); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsPropostoNull() { - return this.IsNull(this.tableRigheListePrelievo.PropostoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetPropostoNull() { - this[this.tableRigheListePrelievo.PropostoColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsPrelevatoNull() { - return this.IsNull(this.tableRigheListePrelievo.PrelevatoColumn); + return this.IsNull(this.tableElencoListePrelievo.PrelevatoColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetPrelevatoNull() { - this[this.tableRigheListePrelievo.PrelevatoColumn] = global::System.Convert.DBNull; + this[this.tableElencoListePrelievo.PrelevatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public RigheListePrelievoRow[] GetRigheListePrelievoRows() { + if ((this.Table.ChildRelations["FK_RigheListePrelievo_ElencoListePrelievo11"] == null)) { + return new RigheListePrelievoRow[0]; + } + else { + return ((RigheListePrelievoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_RigheListePrelievo_ElencoListePrelievo11"]))); + } } } @@ -9628,37 +9643,6 @@ namespace GMW_data { } } - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public class ElencoListePrelievoRowChangeEvent : global::System.EventArgs { - - private ElencoListePrelievoRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoRowChangeEvent(ElencoListePrelievoRow row, global::System.Data.DataRowAction action) { - this.eventRow = row; - this.eventAction = action; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoListePrelievoRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataRowAction Action { - get { - return this.eventAction; - } - } - } - /// ///Row event argument class /// @@ -9720,6 +9704,37 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class ElencoListePrelievoRowChangeEvent : global::System.EventArgs { + + private ElencoListePrelievoRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoRowChangeEvent(ElencoListePrelievoRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoListePrelievoRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_magazzinoTableAdapters { @@ -16238,947 +16253,6 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co } } - /// - ///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 ElencoListePrelievoTableAdapter : 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 ElencoListePrelievoTableAdapter() { - 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 = "ElencoListePrelievo"; - tableMapping.ColumnMappings.Add("CodLista", "CodLista"); - tableMapping.ColumnMappings.Add("CodTipoLista", "CodTipoLista"); - tableMapping.ColumnMappings.Add("CodCS", "CodCS"); - tableMapping.ColumnMappings.Add("DataCreaz", "DataCreaz"); - tableMapping.ColumnMappings.Add("CodCliente", "CodCliente"); - tableMapping.ColumnMappings.Add("RagSociale", "RagSociale"); - tableMapping.ColumnMappings.Add("CodSoggetto", "CodSoggetto"); - tableMapping.ColumnMappings.Add("Particolare", "Particolare"); - tableMapping.ColumnMappings.Add("DescParticolare", "DescParticolare"); - tableMapping.ColumnMappings.Add("DisegnoGrezzo", "DisegnoGrezzo"); - tableMapping.ColumnMappings.Add("Esponente", "Esponente"); - tableMapping.ColumnMappings.Add("CodImballo", "CodImballo"); - tableMapping.ColumnMappings.Add("QtaTot", "QtaTot"); - tableMapping.ColumnMappings.Add("Iniziata", "Iniziata"); - tableMapping.ColumnMappings.Add("Completata", "Completata"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ElencoListePrelievo] WHERE (([CodLista] = @Original_CodLista) AND ([CodTipoLista] = @Original_CodTipoLista) AND ([CodCS] = @Original_CodCS) AND ([DataCreaz] = @Original_DataCreaz) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_RagSociale = 1 AND [RagSociale] IS NULL) OR ([RagSociale] = @Original_RagSociale)) AND ([CodSoggetto] = @Original_CodSoggetto) AND ([Particolare] = @Original_Particolare) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)) AND ((@IsNull_DisegnoGrezzo = 1 AND [DisegnoGrezzo] IS NULL) OR ([DisegnoGrezzo] = @Original_DisegnoGrezzo)) AND ((@IsNull_Esponente = 1 AND [Esponente] IS NULL) OR ([Esponente] = @Original_Esponente)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ([QtaTot] = @Original_QtaTot) AND ([Iniziata] = @Original_Iniziata) AND ([Completata] = @Original_Completata))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataCreaz", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreaz", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RagSociale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescParticolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DisegnoGrezzo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Esponente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QtaTot", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "QtaTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Iniziata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Iniziata", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Completata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Completata", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ElencoListePrelievo] ([CodLista], [CodTipoLista], [CodCS], [DataCreaz], [CodCliente], [RagSociale], [CodSoggetto], [Particolare], [DescParticolare], [DisegnoGrezzo], [Esponente], [CodImballo], [QtaTot], [Iniziata], [Completata]) VALUES (@CodLista, @CodTipoLista, @CodCS, @DataCreaz, @CodCliente, @RagSociale, @CodSoggetto, @Particolare, @DescParticolare, @DisegnoGrezzo, @Esponente, @CodImballo, @QtaTot, @Iniziata, @Completata); -SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSoggetto, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImballo, QtaTot, Iniziata, Completata FROM ElencoListePrelievo WHERE (CodLista = @CodLista)"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataCreaz", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreaz", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaTot", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "QtaTot", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Iniziata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Iniziata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Completata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Completata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[ElencoListePrelievo] SET [CodLista] = @CodLista, [CodTipoLista] = @" + - "CodTipoLista, [CodCS] = @CodCS, [DataCreaz] = @DataCreaz, [CodCliente] = @CodCli" + - "ente, [RagSociale] = @RagSociale, [CodSoggetto] = @CodSoggetto, [Particolare] = " + - "@Particolare, [DescParticolare] = @DescParticolare, [DisegnoGrezzo] = @DisegnoGr" + - "ezzo, [Esponente] = @Esponente, [CodImballo] = @CodImballo, [QtaTot] = @QtaTot, " + - "[Iniziata] = @Iniziata, [Completata] = @Completata WHERE (([CodLista] = @Origina" + - "l_CodLista) AND ([CodTipoLista] = @Original_CodTipoLista) AND ([CodCS] = @Origin" + - "al_CodCS) AND ([DataCreaz] = @Original_DataCreaz) AND ((@IsNull_CodCliente = 1 A" + - "ND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull" + - "_RagSociale = 1 AND [RagSociale] IS NULL) OR ([RagSociale] = @Original_RagSocial" + - "e)) AND ([CodSoggetto] = @Original_CodSoggetto) AND ([Particolare] = @Original_P" + - "articolare) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR " + - "([DescParticolare] = @Original_DescParticolare)) AND ((@IsNull_DisegnoGrezzo = 1" + - " AND [DisegnoGrezzo] IS NULL) OR ([DisegnoGrezzo] = @Original_DisegnoGrezzo)) AN" + - "D ((@IsNull_Esponente = 1 AND [Esponente] IS NULL) OR ([Esponente] = @Original_E" + - "sponente)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImball" + - "o] = @Original_CodImballo)) AND ([QtaTot] = @Original_QtaTot) AND ([Iniziata] = " + - "@Original_Iniziata) AND ([Completata] = @Original_Completata));\r\nSELECT CodLista" + - ", CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSoggetto, Particola" + - "re, DescParticolare, DisegnoGrezzo, Esponente, CodImballo, QtaTot, Iniziata, Com" + - "pletata FROM ElencoListePrelievo WHERE (CodLista = @CodLista)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataCreaz", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreaz", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaTot", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "QtaTot", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Iniziata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Iniziata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Completata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Completata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataCreaz", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreaz", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RagSociale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescParticolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DisegnoGrezzo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Esponente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QtaTot", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "QtaTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Iniziata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Iniziata", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Completata", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Completata", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - } - - [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[6]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSogge" + - "tto, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImballo, QtaTot," + - " Iniziata, Completata FROM dbo.ElencoListePrelievo"; - 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_getElencoListaByCodLista"; - 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("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, 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_elencoListePrelievoFilt"; - 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("@Iniziata", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Completata", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 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_creaListaPrelievo"; - 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("@Anno", 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("@Mese", 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("@IdxPosizione", 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("@CodCS", global::System.Data.SqlDbType.NChar, 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("@CodCliente", global::System.Data.SqlDbType.NVarChar, 6, 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("@RagSociale", global::System.Data.SqlDbType.NVarChar, 35, 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("@CodSoggetto", global::System.Data.SqlDbType.NChar, 16, 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.NVarChar, 15, 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("@DescParticolare", global::System.Data.SqlDbType.NVarChar, 30, 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("@DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 30, 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("@Esponente", global::System.Data.SqlDbType.NVarChar, 6, 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("@CodImballo", global::System.Data.SqlDbType.NVarChar, 15, 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("@QtaTot", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, 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_updateCodSoggettoListePrelievo"; - 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("@NewCodSoggetto", global::System.Data.SqlDbType.NChar, 16, 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("@CodListaAttuale", global::System.Data.SqlDbType.VarChar, 12, global::System.Data.ParameterDirection.Input, 0, 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_segnaCompletatoListePrelievo"; - 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("@CodListaAttuale", global::System.Data.SqlDbType.VarChar, 12, 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.ElencoListePrelievoDataTable 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.ElencoListePrelievoDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); - 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.ElencoListePrelievoDataTable getByCodLista(string CodLista) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - if ((CodLista == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodLista)); - } - DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); - 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.ElencoListePrelievoDataTable getByFilt(global::System.Nullable Iniziata, global::System.Nullable Completata) { - this.Adapter.SelectCommand = this.CommandCollection[2]; - if ((Iniziata.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((bool)(Iniziata.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((Completata.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[2].Value = ((bool)(Completata.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); - 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.ElencoListePrelievoDataTable InsertQuery(string Anno, string Mese, global::System.Nullable IdxPosizione, string CodCS, string CodCliente, string RagSociale, string CodSoggetto, string Particolare, string DescParticolare, string DisegnoGrezzo, string Esponente, string CodImballo, global::System.Nullable QtaTot) { - this.Adapter.SelectCommand = this.CommandCollection[3]; - if ((Anno == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Anno)); - } - if ((Mese == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Mese)); - } - if ((IdxPosizione.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[3].Value = ((int)(IdxPosizione.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - if ((CodCS == null)) { - this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodCS)); - } - if ((CodCliente == null)) { - this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[5].Value = ((string)(CodCliente)); - } - if ((RagSociale == null)) { - this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[6].Value = ((string)(RagSociale)); - } - if ((CodSoggetto == null)) { - this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodSoggetto)); - } - if ((Particolare == null)) { - this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[8].Value = ((string)(Particolare)); - } - if ((DescParticolare == null)) { - this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[9].Value = ((string)(DescParticolare)); - } - if ((DisegnoGrezzo == null)) { - this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[10].Value = ((string)(DisegnoGrezzo)); - } - if ((Esponente == null)) { - this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[11].Value = ((string)(Esponente)); - } - if ((CodImballo == null)) { - this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[12].Value = ((string)(CodImballo)); - } - if ((QtaTot.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[13].Value = ((decimal)(QtaTot.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value; - } - DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); - 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.ElencoListePrelievoDataTable updateCodSoggetto(string NewCodSoggetto, string CodListaAttuale) { - this.Adapter.SelectCommand = this.CommandCollection[4]; - if ((NewCodSoggetto == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(NewCodSoggetto)); - } - if ((CodListaAttuale == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodListaAttuale)); - } - DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); - 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.ElencoListePrelievoDataTable updateCompletato(string CodListaAttuale) { - this.Adapter.SelectCommand = this.CommandCollection[5]; - if ((CodListaAttuale == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodListaAttuale)); - } - DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_magazzino.ElencoListePrelievoDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_magazzino dataSet) { - return this.Adapter.Update(dataSet, "ElencoListePrelievo"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(string Original_CodLista, string Original_CodTipoLista, string Original_CodCS, System.DateTime Original_DataCreaz, string Original_CodCliente, string Original_RagSociale, string Original_CodSoggetto, string Original_Particolare, string Original_DescParticolare, string Original_DisegnoGrezzo, string Original_Esponente, string Original_CodImballo, decimal Original_QtaTot, bool Original_Iniziata, bool Original_Completata) { - if ((Original_CodLista == null)) { - throw new global::System.ArgumentNullException("Original_CodLista"); - } - else { - this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodLista)); - } - if ((Original_CodTipoLista == null)) { - throw new global::System.ArgumentNullException("Original_CodTipoLista"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodTipoLista)); - } - if ((Original_CodCS == null)) { - throw new global::System.ArgumentNullException("Original_CodCS"); - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodCS)); - } - this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_DataCreaz)); - if ((Original_CodCliente == null)) { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_CodCliente)); - } - if ((Original_RagSociale == null)) { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_RagSociale)); - } - if ((Original_CodSoggetto == null)) { - throw new global::System.ArgumentNullException("Original_CodSoggetto"); - } - else { - this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_CodSoggetto)); - } - if ((Original_Particolare == null)) { - throw new global::System.ArgumentNullException("Original_Particolare"); - } - else { - this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Particolare)); - } - if ((Original_DescParticolare == null)) { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_DescParticolare)); - } - if ((Original_DisegnoGrezzo == null)) { - this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_DisegnoGrezzo)); - } - if ((Original_Esponente == null)) { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_Esponente)); - } - if ((Original_CodImballo == null)) { - this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_CodImballo)); - } - this.Adapter.DeleteCommand.Parameters[18].Value = ((decimal)(Original_QtaTot)); - this.Adapter.DeleteCommand.Parameters[19].Value = ((bool)(Original_Iniziata)); - this.Adapter.DeleteCommand.Parameters[20].Value = ((bool)(Original_Completata)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(string CodLista, string CodTipoLista, string CodCS, System.DateTime DataCreaz, string CodCliente, string RagSociale, string CodSoggetto, string Particolare, string DescParticolare, string DisegnoGrezzo, string Esponente, string CodImballo, decimal QtaTot, bool Iniziata, bool Completata) { - if ((CodLista == null)) { - throw new global::System.ArgumentNullException("CodLista"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodLista)); - } - if ((CodTipoLista == null)) { - throw new global::System.ArgumentNullException("CodTipoLista"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodTipoLista)); - } - if ((CodCS == null)) { - throw new global::System.ArgumentNullException("CodCS"); - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCS)); - } - this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DataCreaz)); - if ((CodCliente == null)) { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodCliente)); - } - if ((RagSociale == null)) { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(RagSociale)); - } - if ((CodSoggetto == null)) { - throw new global::System.ArgumentNullException("CodSoggetto"); - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodSoggetto)); - } - if ((Particolare == null)) { - throw new global::System.ArgumentNullException("Particolare"); - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Particolare)); - } - if ((DescParticolare == null)) { - this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = ((string)(DescParticolare)); - } - if ((DisegnoGrezzo == null)) { - this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = ((string)(DisegnoGrezzo)); - } - if ((Esponente == null)) { - this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Esponente)); - } - if ((CodImballo == null)) { - this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[11].Value = ((string)(CodImballo)); - } - this.Adapter.InsertCommand.Parameters[12].Value = ((decimal)(QtaTot)); - this.Adapter.InsertCommand.Parameters[13].Value = ((bool)(Iniziata)); - this.Adapter.InsertCommand.Parameters[14].Value = ((bool)(Completata)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string CodLista, - string CodTipoLista, - string CodCS, - System.DateTime DataCreaz, - string CodCliente, - string RagSociale, - string CodSoggetto, - string Particolare, - string DescParticolare, - string DisegnoGrezzo, - string Esponente, - string CodImballo, - decimal QtaTot, - bool Iniziata, - bool Completata, - string Original_CodLista, - string Original_CodTipoLista, - string Original_CodCS, - System.DateTime Original_DataCreaz, - string Original_CodCliente, - string Original_RagSociale, - string Original_CodSoggetto, - string Original_Particolare, - string Original_DescParticolare, - string Original_DisegnoGrezzo, - string Original_Esponente, - string Original_CodImballo, - decimal Original_QtaTot, - bool Original_Iniziata, - bool Original_Completata) { - if ((CodLista == null)) { - throw new global::System.ArgumentNullException("CodLista"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodLista)); - } - if ((CodTipoLista == null)) { - throw new global::System.ArgumentNullException("CodTipoLista"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodTipoLista)); - } - if ((CodCS == null)) { - throw new global::System.ArgumentNullException("CodCS"); - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCS)); - } - this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DataCreaz)); - if ((CodCliente == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodCliente)); - } - if ((RagSociale == null)) { - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(RagSociale)); - } - if ((CodSoggetto == null)) { - throw new global::System.ArgumentNullException("CodSoggetto"); - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodSoggetto)); - } - if ((Particolare == null)) { - throw new global::System.ArgumentNullException("Particolare"); - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Particolare)); - } - if ((DescParticolare == null)) { - this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(DescParticolare)); - } - if ((DisegnoGrezzo == null)) { - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(DisegnoGrezzo)); - } - if ((Esponente == null)) { - this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Esponente)); - } - if ((CodImballo == null)) { - this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(CodImballo)); - } - this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(QtaTot)); - this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(Iniziata)); - this.Adapter.UpdateCommand.Parameters[14].Value = ((bool)(Completata)); - if ((Original_CodLista == null)) { - throw new global::System.ArgumentNullException("Original_CodLista"); - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_CodLista)); - } - if ((Original_CodTipoLista == null)) { - throw new global::System.ArgumentNullException("Original_CodTipoLista"); - } - else { - this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_CodTipoLista)); - } - if ((Original_CodCS == null)) { - throw new global::System.ArgumentNullException("Original_CodCS"); - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_CodCS)); - } - this.Adapter.UpdateCommand.Parameters[18].Value = ((System.DateTime)(Original_DataCreaz)); - if ((Original_CodCliente == null)) { - this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_CodCliente)); - } - if ((Original_RagSociale == null)) { - this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_RagSociale)); - } - if ((Original_CodSoggetto == null)) { - throw new global::System.ArgumentNullException("Original_CodSoggetto"); - } - else { - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_CodSoggetto)); - } - if ((Original_Particolare == null)) { - throw new global::System.ArgumentNullException("Original_Particolare"); - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_Particolare)); - } - if ((Original_DescParticolare == null)) { - this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_DescParticolare)); - } - if ((Original_DisegnoGrezzo == null)) { - this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_DisegnoGrezzo)); - } - if ((Original_Esponente == null)) { - this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_Esponente)); - } - if ((Original_CodImballo == null)) { - this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_CodImballo)); - } - this.Adapter.UpdateCommand.Parameters[33].Value = ((decimal)(Original_QtaTot)); - this.Adapter.UpdateCommand.Parameters[34].Value = ((bool)(Original_Iniziata)); - this.Adapter.UpdateCommand.Parameters[35].Value = ((bool)(Original_Completata)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string CodTipoLista, - string CodCS, - System.DateTime DataCreaz, - string CodCliente, - string RagSociale, - string CodSoggetto, - string Particolare, - string DescParticolare, - string DisegnoGrezzo, - string Esponente, - string CodImballo, - decimal QtaTot, - bool Iniziata, - bool Completata, - string Original_CodLista, - string Original_CodTipoLista, - string Original_CodCS, - System.DateTime Original_DataCreaz, - string Original_CodCliente, - string Original_RagSociale, - string Original_CodSoggetto, - string Original_Particolare, - string Original_DescParticolare, - string Original_DisegnoGrezzo, - string Original_Esponente, - string Original_CodImballo, - decimal Original_QtaTot, - bool Original_Iniziata, - bool Original_Completata) { - return this.Update(Original_CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSoggetto, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImballo, QtaTot, Iniziata, Completata, Original_CodLista, Original_CodTipoLista, Original_CodCS, Original_DataCreaz, Original_CodCliente, Original_RagSociale, Original_CodSoggetto, Original_Particolare, Original_DescParticolare, Original_DisegnoGrezzo, Original_Esponente, Original_CodImballo, Original_QtaTot, Original_Iniziata, Original_Completata); - } - } - /// ///Represents the connection and commands used to retrieve and save data. /// @@ -18071,6 +17145,370 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co } } + /// + ///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 ElencoListePrelievoTableAdapter : 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 ElencoListePrelievoTableAdapter() { + 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 = "ElencoListePrelievo"; + tableMapping.ColumnMappings.Add("CodLista", "CodLista"); + tableMapping.ColumnMappings.Add("CodTipoLista", "CodTipoLista"); + tableMapping.ColumnMappings.Add("CodCS", "CodCS"); + tableMapping.ColumnMappings.Add("DataCreaz", "DataCreaz"); + tableMapping.ColumnMappings.Add("CodCliente", "CodCliente"); + tableMapping.ColumnMappings.Add("RagSociale", "RagSociale"); + tableMapping.ColumnMappings.Add("CodSoggetto", "CodSoggetto"); + tableMapping.ColumnMappings.Add("Particolare", "Particolare"); + tableMapping.ColumnMappings.Add("DescParticolare", "DescParticolare"); + tableMapping.ColumnMappings.Add("DisegnoGrezzo", "DisegnoGrezzo"); + tableMapping.ColumnMappings.Add("Esponente", "Esponente"); + tableMapping.ColumnMappings.Add("CodImballo", "CodImballo"); + tableMapping.ColumnMappings.Add("QtaTot", "QtaTot"); + tableMapping.ColumnMappings.Add("CodStatoLista", "CodStatoLista"); + tableMapping.ColumnMappings.Add("Prelevato", "Prelevato"); + 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[5]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.V_ElencoListePrelievo"; + 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_elencoListePrelievoByCodLista"; + 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("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, 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_elencoListePrelievoFilt"; + 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("@DataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_creaListaPrelievo"; + 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("@Anno", 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("@Mese", 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("@IdxPosizione", 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("@CodCS", global::System.Data.SqlDbType.NChar, 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("@CodCliente", global::System.Data.SqlDbType.NVarChar, 6, 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("@RagSociale", global::System.Data.SqlDbType.NVarChar, 35, 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("@CodSoggetto", global::System.Data.SqlDbType.NChar, 16, 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.NVarChar, 15, 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("@DescParticolare", global::System.Data.SqlDbType.NVarChar, 30, 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("@DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 30, 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("@Esponente", global::System.Data.SqlDbType.NVarChar, 6, 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("@CodImballo", global::System.Data.SqlDbType.NVarChar, 15, 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("@QtaTot", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, 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_elencoListePrelievoUpdateStato"; + 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("@NewCodSoggetto", global::System.Data.SqlDbType.NChar, 16, 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("@CodListaAttuale", global::System.Data.SqlDbType.VarChar, 12, 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("@CodStatoLista", 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()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_magazzino.ElencoListePrelievoDataTable 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.ElencoListePrelievoDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); + 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.ElencoListePrelievoDataTable getByCodLista(string CodLista) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodLista == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodLista)); + } + DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); + 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.ElencoListePrelievoDataTable getByFilt(global::System.Nullable DataFrom, global::System.Nullable DataTo) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((DataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(DataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); + 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.ElencoListePrelievoDataTable InsertQuery(string Anno, string Mese, global::System.Nullable IdxPosizione, string CodCS, string CodCliente, string RagSociale, string CodSoggetto, string Particolare, string DescParticolare, string DisegnoGrezzo, string Esponente, string CodImballo, global::System.Nullable QtaTot) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((Anno == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Anno)); + } + if ((Mese == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Mese)); + } + if ((IdxPosizione.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(IdxPosizione.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CodCS == null)) { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodCS)); + } + if ((CodCliente == null)) { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = ((string)(CodCliente)); + } + if ((RagSociale == null)) { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = ((string)(RagSociale)); + } + if ((CodSoggetto == null)) { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodSoggetto)); + } + if ((Particolare == null)) { + this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[8].Value = ((string)(Particolare)); + } + if ((DescParticolare == null)) { + this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[9].Value = ((string)(DescParticolare)); + } + if ((DisegnoGrezzo == null)) { + this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[10].Value = ((string)(DisegnoGrezzo)); + } + if ((Esponente == null)) { + this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[11].Value = ((string)(Esponente)); + } + if ((CodImballo == null)) { + this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[12].Value = ((string)(CodImballo)); + } + if ((QtaTot.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[13].Value = ((decimal)(QtaTot.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value; + } + DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); + 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.ElencoListePrelievoDataTable updateStato(string NewCodSoggetto, string CodListaAttuale, global::System.Nullable CodStatoLista) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((NewCodSoggetto == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(NewCodSoggetto)); + } + if ((CodListaAttuale == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodListaAttuale)); + } + if ((CodStatoLista.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(CodStatoLista.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -18100,8 +17538,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co private AnagImballiTableAdapter _anagImballiTableAdapter; - private ElencoListePrelievoTableAdapter _elencoListePrelievoTableAdapter; - private TipoListaPrelievoTableAdapter _tipoListaPrelievoTableAdapter; private RigheListePrelievoTableAdapter _righeListePrelievoTableAdapter; @@ -18224,19 +17660,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + - "", "System.Drawing.Design.UITypeEditor")] - public ElencoListePrelievoTableAdapter ElencoListePrelievoTableAdapter { - get { - return this._elencoListePrelievoTableAdapter; - } - set { - this._elencoListePrelievoTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + @@ -18312,10 +17735,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co && (this._anagImballiTableAdapter.Connection != null))) { return this._anagImballiTableAdapter.Connection; } - if (((this._elencoListePrelievoTableAdapter != null) - && (this._elencoListePrelievoTableAdapter.Connection != null))) { - return this._elencoListePrelievoTableAdapter.Connection; - } if (((this._tipoListaPrelievoTableAdapter != null) && (this._tipoListaPrelievoTableAdapter.Connection != null))) { return this._tipoListaPrelievoTableAdapter.Connection; @@ -18360,9 +17779,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co if ((this._anagImballiTableAdapter != null)) { count = (count + 1); } - if ((this._elencoListePrelievoTableAdapter != null)) { - count = (count + 1); - } if ((this._tipoListaPrelievoTableAdapter != null)) { count = (count + 1); } @@ -18388,15 +17804,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(updatedRows); } } - 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._tipoListaPrelievoTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._blocchiTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Blocchi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -18406,6 +17813,15 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(updatedRows); } } + 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._tipoListaPrelievoTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._celleTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -18415,15 +17831,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(updatedRows); } } - if ((this._elencoListePrelievoTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.ElencoListePrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._elencoListePrelievoTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._elencoCartelliniTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -18442,6 +17849,15 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(updatedRows); } } + 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._tipoCellaTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._posizioneUdcStoricoTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -18460,15 +17876,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(updatedRows); } } - 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._tipoCellaTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._anagImballiTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -18495,14 +17902,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allAddedRows.AddRange(addedRows); } } - 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._tipoListaPrelievoTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._blocchiTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Blocchi.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -18511,6 +17910,14 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allAddedRows.AddRange(addedRows); } } + 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._tipoListaPrelievoTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._celleTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -18519,14 +17926,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allAddedRows.AddRange(addedRows); } } - if ((this._elencoListePrelievoTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.ElencoListePrelievo.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._elencoListePrelievoTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._elencoCartelliniTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -18543,6 +17942,14 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allAddedRows.AddRange(addedRows); } } + 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._tipoCellaTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._posizioneUdcStoricoTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -18559,14 +17966,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allAddedRows.AddRange(addedRows); } } - 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._tipoCellaTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._anagImballiTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -18592,14 +17991,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(deletedRows); } } - 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._tipoCellaTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._posizioneUdcCorrenteTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -18616,6 +18007,14 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(deletedRows); } } + 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._tipoCellaTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._righeListePrelievoTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -18632,14 +18031,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(deletedRows); } } - if ((this._elencoListePrelievoTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.ElencoListePrelievo.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._elencoListePrelievoTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._celleTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -18648,14 +18039,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(deletedRows); } } - if ((this._blocchiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Blocchi.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._blocchiTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._tipoListaPrelievoTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -18664,6 +18047,14 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(deletedRows); } } + if ((this._blocchiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Blocchi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._blocchiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._anagMagTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagMag.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -18749,11 +18140,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } - if (((this._elencoListePrelievoTableAdapter != null) - && (this.MatchTableAdapterConnection(this._elencoListePrelievoTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + - "tring."); - } if (((this._tipoListaPrelievoTableAdapter != null) && (this.MatchTableAdapterConnection(this._tipoListaPrelievoTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + @@ -18868,15 +18254,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co adaptersWithAcceptChangesDuringUpdate.Add(this._anagImballiTableAdapter.Adapter); } } - if ((this._elencoListePrelievoTableAdapter != null)) { - revertConnections.Add(this._elencoListePrelievoTableAdapter, this._elencoListePrelievoTableAdapter.Connection); - this._elencoListePrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._elencoListePrelievoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._elencoListePrelievoTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._elencoListePrelievoTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._elencoListePrelievoTableAdapter.Adapter); - } - } if ((this._tipoListaPrelievoTableAdapter != null)) { revertConnections.Add(this._tipoListaPrelievoTableAdapter, this._tipoListaPrelievoTableAdapter.Connection); this._tipoListaPrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -18985,10 +18362,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co this._anagImballiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImballiTableAdapter])); this._anagImballiTableAdapter.Transaction = null; } - if ((this._elencoListePrelievoTableAdapter != null)) { - this._elencoListePrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoListePrelievoTableAdapter])); - this._elencoListePrelievoTableAdapter.Transaction = null; - } if ((this._tipoListaPrelievoTableAdapter != null)) { this._tipoListaPrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tipoListaPrelievoTableAdapter])); this._tipoListaPrelievoTableAdapter.Transaction = null; diff --git a/GMW/GMW_data/DS_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd index 9bb6f7f0..c5d2c232 100644 --- a/GMW/GMW_data/DS_magazzino.xsd +++ b/GMW/GMW_data/DS_magazzino.xsd @@ -1358,201 +1358,6 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co - - - - - - DELETE FROM [dbo].[ElencoListePrelievo] WHERE (([CodLista] = @Original_CodLista) AND ([CodTipoLista] = @Original_CodTipoLista) AND ([CodCS] = @Original_CodCS) AND ([DataCreaz] = @Original_DataCreaz) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_RagSociale = 1 AND [RagSociale] IS NULL) OR ([RagSociale] = @Original_RagSociale)) AND ([CodSoggetto] = @Original_CodSoggetto) AND ([Particolare] = @Original_Particolare) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)) AND ((@IsNull_DisegnoGrezzo = 1 AND [DisegnoGrezzo] IS NULL) OR ([DisegnoGrezzo] = @Original_DisegnoGrezzo)) AND ((@IsNull_Esponente = 1 AND [Esponente] IS NULL) OR ([Esponente] = @Original_Esponente)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ([QtaTot] = @Original_QtaTot) AND ([Iniziata] = @Original_Iniziata) AND ([Completata] = @Original_Completata)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO [dbo].[ElencoListePrelievo] ([CodLista], [CodTipoLista], [CodCS], [DataCreaz], [CodCliente], [RagSociale], [CodSoggetto], [Particolare], [DescParticolare], [DisegnoGrezzo], [Esponente], [CodImballo], [QtaTot], [Iniziata], [Completata]) VALUES (@CodLista, @CodTipoLista, @CodCS, @DataCreaz, @CodCliente, @RagSociale, @CodSoggetto, @Particolare, @DescParticolare, @DisegnoGrezzo, @Esponente, @CodImballo, @QtaTot, @Iniziata, @Completata); -SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSoggetto, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImballo, QtaTot, Iniziata, Completata FROM ElencoListePrelievo WHERE (CodLista = @CodLista) - - - - - - - - - - - - - - - - - - - - - - SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSoggetto, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImballo, QtaTot, Iniziata, Completata FROM dbo.ElencoListePrelievo - - - - - - UPDATE [dbo].[ElencoListePrelievo] SET [CodLista] = @CodLista, [CodTipoLista] = @CodTipoLista, [CodCS] = @CodCS, [DataCreaz] = @DataCreaz, [CodCliente] = @CodCliente, [RagSociale] = @RagSociale, [CodSoggetto] = @CodSoggetto, [Particolare] = @Particolare, [DescParticolare] = @DescParticolare, [DisegnoGrezzo] = @DisegnoGrezzo, [Esponente] = @Esponente, [CodImballo] = @CodImballo, [QtaTot] = @QtaTot, [Iniziata] = @Iniziata, [Completata] = @Completata WHERE (([CodLista] = @Original_CodLista) AND ([CodTipoLista] = @Original_CodTipoLista) AND ([CodCS] = @Original_CodCS) AND ([DataCreaz] = @Original_DataCreaz) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_RagSociale = 1 AND [RagSociale] IS NULL) OR ([RagSociale] = @Original_RagSociale)) AND ([CodSoggetto] = @Original_CodSoggetto) AND ([Particolare] = @Original_Particolare) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)) AND ((@IsNull_DisegnoGrezzo = 1 AND [DisegnoGrezzo] IS NULL) OR ([DisegnoGrezzo] = @Original_DisegnoGrezzo)) AND ((@IsNull_Esponente = 1 AND [Esponente] IS NULL) OR ([Esponente] = @Original_Esponente)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ([QtaTot] = @Original_QtaTot) AND ([Iniziata] = @Original_Iniziata) AND ([Completata] = @Original_Completata)); -SELECT CodLista, CodTipoLista, CodCS, DataCreaz, CodCliente, RagSociale, CodSoggetto, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImballo, QtaTot, Iniziata, Completata FROM ElencoListePrelievo WHERE (CodLista = @CodLista) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dbo.stp_getElencoListaByCodLista - - - - - - - - - - - dbo.stp_elencoListePrelievoFilt - - - - - - - - - - - - dbo.stp_creaListaPrelievo - - - - - - - - - - - - - - - - - - - - - - - dbo.stp_updateCodSoggettoListePrelievo - - - - - - - - - - - - dbo.stp_segnaCompletatoListePrelievo - - - - - - - - - @@ -1730,6 +1535,96 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co + + + + + + SELECT * FROM dbo.V_ElencoListePrelievo + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_elencoListePrelievoByCodLista + + + + + + + + + + + dbo.stp_elencoListePrelievoFilt + + + + + + + + + + + + dbo.stp_creaListaPrelievo + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_elencoListePrelievoUpdateStato + + + + + + + + + + + @@ -1739,6 +1634,154 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1748,120 +1791,117 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1876,178 +1916,143 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2061,102 +2066,210 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - + + + + + + + + + + - + - - - - - - - - + - - - - - - - - - - - + - - - - - - - - - + + - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + - + + + + + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2171,248 +2284,30 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -2475,10 +2370,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - - - - @@ -2488,6 +2379,10 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co + + + + @@ -2497,9 +2392,9 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - - + + \ No newline at end of file diff --git a/GMW/GMW_data/DS_magazzino.xss b/GMW/GMW_data/DS_magazzino.xss index 88e7867f..eaeff728 100644 --- a/GMW/GMW_data/DS_magazzino.xss +++ b/GMW/GMW_data/DS_magazzino.xss @@ -4,11 +4,11 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - + @@ -16,11 +16,11 @@ - - - - - + + + + + @@ -66,11 +66,11 @@ 803 - 676 + 651 803 - 676 + 651 751 @@ -99,19 +99,7 @@ - - - - 697 - 951 - - - 635 - 951 - - - - + 109 @@ -123,19 +111,27 @@ - + - 335 - 893 + 393 + 1004 - 101 - 893 + 306 + 1004 + + + + + + + 697 + 926 - 101 - 901 + 611 + 926 diff --git a/GMW/GMW_data/MagClass.cs b/GMW/GMW_data/MagClass.cs index e7ec0d6b..9b5bc066 100644 --- a/GMW/GMW_data/MagClass.cs +++ b/GMW/GMW_data/MagClass.cs @@ -299,27 +299,7 @@ namespace GMW_data return answ; } - /// - /// Fornisce un dataset dell'elenco delle liste di prelievo secondo i parametri di filtraggio richiesti - /// - /// si = mostra le liste iniziate, no = mostra quelle da eseguire - /// si = mostra le liste già terminate ed eseguite, no = mostra quelle ancora da completare - /// Dataset - public DS_magazzino.ElencoListePrelievoDataTable getListePrelievoFilt(bool iniziata, bool completata) - { - DS_magazzino.ElencoListePrelievoDataTable tabella = new DS_magazzino.ElencoListePrelievoDataTable(); - /* ti mostro quelle proposte (elenco liste prelievo da svolgere ... -> dettaglio delle righe per svolgere lista prelievo - * per ogni cassone confermi di averlo preso...) - * - * datagrid + vista + stored -> prima mostra liste non completate ... ne scegli uno vedi tutte le righe e le spunti per dire preso - * scrive nella colonna prelevato = true - * datagrid a due livelli con i lsecondo con clic sulla singola riga: ti confermo che ho prelevato - * */ - tabella = taElencoListePrelievo.getByFilt(iniziata, completata); - - return tabella; - } /// /// indica presa in carico di una lista di prelievo @@ -343,9 +323,9 @@ namespace GMW_data if (tabella.Rows.Count > 0) { // se la lista è ancora non completata - if (riga.Completata == false && riga.Iniziata == false) + if (riga.CodStatoLista == (int)statoLista.generata) { - taElencoListePrelievo.updateCodSoggetto(CodSoggetto, CodLista); + taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.iniziata); answ = esitoOperazione.ok; } // se è già completata o iniziata dà errore @@ -365,6 +345,137 @@ namespace GMW_data return answ; } + /// + /// indica come completata (da aprte del magazziniere) una lista di prelievo + /// + /// Codice company/sito + /// codice della lista di prelievo + /// cod operatore carrellista + /// + public esitoOperazione completaListaPrelievo(string CodCS, string CodLista, string CodSoggetto) + { + // da chiamare quando clicco e inizio lista prelievo .... vedi sopra + esitoOperazione answ = esitoOperazione.errore; + + try + { + // la query recupera la lista in base al CodLista + DS_magazzino.ElencoListePrelievoDataTable tabella = taElencoListePrelievo.getByCodLista(CodLista); + DS_magazzino.ElencoListePrelievoRow riga = tabella[0]; + + // se la lista esiste... + if (tabella.Rows.Count > 0) + { + // se la lista è ancora non completata + if (riga.CodStatoLista == (int)statoLista.iniziata) + { + taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.completata); + answ = esitoOperazione.ok; + } + // se è già completata o NON iniziata dà errore + else + { + answ = esitoOperazione.errore_readOnly; + } + } + // se la lista non esiste dai errore + else + { + answ = esitoOperazione.errore; + } + } + catch + { } + return answ; + } + /// + /// Effettua lo scaricamento della lista di prelievo indicata, ovvero + /// - toglie dalle posizioni di magazzino tutti gli UDC indicati come prelevati (liberando tali posizioni) + /// - assegna tutti gli UDC prelevati alla cella indicata per il tipo di lista di prelievo interessata + /// - elimina eventuali righe di prelievo della lista per UDC non effettivamente prelevate + /// - chiude la lista di prelievo (completata = 1) + /// + /// Codice company/sito + /// codice della lista di prelievo + /// cod operatore carrellista + /// esito comando + public esitoOperazione scaricaListaPrelievo(string CodCS, string CodLista, string CodSoggetto) + { + /* + * Questa funzione serve ALLA FINE delle operazioni di prelievo, x chiudere la lista di prelievo + * - controllo se la lista esiste, ed è ancora NON completata + * - se risulta già completata errore xché è "readOnly" la lista essendo già completata (vedere l'enum in fondo al codice) + * - se la lista è ok + * - leggo da tipoLista prelievo alcuni dati (es codcella di destinazione) + * - sposto TUTTI gli UDC delle righeListaPrelievo, da posizione attuale a posizione indicata da tipo lista + * (quindi da codCella --> IdxCella --> spostamento + * indico la lista come compeltata = 1 (true) + * */ + + esitoOperazione answ = esitoOperazione.errore; + int trovate = 0; + DS_magazzino.ElencoListePrelievoDataTable tabella; + DS_magazzino.ElencoListePrelievoRow riga; + try + { + tabella = taElencoListePrelievo.getByCodLista(CodLista); + riga = tabella[0]; + trovate = tabella.Rows.Count; + + // se la lista esiste... + if (trovate > 0) + { + // se la lista è iniziata + if (riga.CodStatoLista == (int)statoLista.iniziata) + { + // ricavo il codtipolista + string codTipoListaAttuale = riga.CodTipoLista; + + //leggo da tipoLista prelievo alcuni dati (es codcella di destinazione) + DS_magazzino.TipoListaPrelievoDataTable tabellaTipoLista = taTipoListaPrelievo.getByCodTipoLista(codTipoListaAttuale); + DS_magazzino.TipoListaPrelievoRow rigaTipoLista = tabellaTipoLista[0]; + + // leggo da righe lista prelievo il dato udc che mi serve + DS_magazzino.RigheListePrelievoDataTable tabellaRigheListaPrelievo = taRigheListePrelievo.getByCodLista(CodLista); + DS_magazzino.RigheListePrelievoRow rigaListaPrelievo = tabellaRigheListaPrelievo[0]; + + // potrebbe non servire se per codCella si intende l'idx più sotto... + string codCellaDestAttuale = rigaTipoLista.CodCella; + // i due idx che mi servono ... il primo ... + int idxCellaTo = rigaTipoLista.IdxPosizione; + + foreach (DS_magazzino.RigheListePrelievoRow row in tabellaRigheListaPrelievo.Rows) + { + // ricavo il codice UDC ... fai con foreach + string UDC = row.UDC; + // mi serve per posizione udc corrente + DS_magazzino.PosizioneUdcCorrenteRow rigaUdcCorrente = taPosUdcCorr.getByUDC(UDC)[0]; + // il secondo idx che mi serve + int idxCellaFrom = rigaUdcCorrente.IdxCella; + // sposto UDC + spostaUDC(CodCS, UDC, idxCellaFrom, idxCellaTo); + } + // segna come scaricata la lista prelievo + taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.scaricata); + // restituisce ok + answ = esitoOperazione.ok; + } + // se è già completata dà errore + else + { + answ = esitoOperazione.errore_readOnly; + } + } + // se la lista non esiste dai errore + else + { + answ = esitoOperazione.errore; + } + } + catch + { } + return answ; + } /// /// Verifica la corrispondenza dati tra RigheListePrelievo ed ElencoCartellini /// @@ -440,9 +551,6 @@ namespace GMW_data return answ; } - - - /// /// annulla il prelievo di un UDC, aggiornando RigheListePrelievo (solo preventivato...) /// @@ -487,93 +595,7 @@ namespace GMW_data { } return answ; } - /// - /// Effettua lo scaricamento della lista di prelievo indicata, ovvero - /// - toglie dalle posizioni di magazzino tutti gli UDC indicati come prelevati (liberando tali posizioni) - /// - assegna tutti gli UDC prelevati alla cella indicata per il tipo di lista di prelievo interessata - /// - elimina eventuali righe di prelievo della lista per UDC non effettivamente prelevate - /// - chiude la lista di prelievo (completata = 1) - /// - /// Codice company/sito - /// codice della lista di prelievo - /// esito comando - public esitoOperazione scaricaListaPrelievo(string CodCS, string CodLista) - { - /* - * Questa funzione serve ALLA FINE delle operazioni di prelievo, x chiudere la lista di prelievo - * - controllo se la lista esiste, ed è ancora NON completata - * - se risulta già completata errore xché è "readOnly" la lista essendo già completata (vedere l'enum in fondo al codice) - * - se la lista è ok - * - leggo da tipoLista prelievo alcuni dati (es codcella di destinazione) - * - sposto TUTTI gli UDC delle righeListaPrelievo, da posizione attuale a posizione indicata da tipo lista - * (quindi da codCella --> IdxCella --> spostamento - * indico la lista come compeltata = 1 (true) - * */ - esitoOperazione answ = esitoOperazione.errore; - int trovate = 0; - DS_magazzino.ElencoListePrelievoDataTable tabella; - DS_magazzino.ElencoListePrelievoRow riga; - try - { - tabella = taElencoListePrelievo.getByCodLista(CodLista); - riga = tabella[0]; - trovate = tabella.Rows.Count; - - // se la lista esiste... - if (trovate > 0) - { - // se la lista è ancora non completata - if (riga.Completata == false) - { - // ricavo il codtipolista - string codTipoListaAttuale = riga.CodTipoLista; - - //leggo da tipoLista prelievo alcuni dati (es codcella di destinazione) - DS_magazzino.TipoListaPrelievoDataTable tabellaTipoLista = taTipoListaPrelievo.getByCodTipoLista(codTipoListaAttuale); - DS_magazzino.TipoListaPrelievoRow rigaTipoLista = tabellaTipoLista[0]; - - // leggo da righe lista prelievo il dato udc che mi serve - DS_magazzino.RigheListePrelievoDataTable tabellaRigheListaPrelievo = taRigheListePrelievo.getByCodLista(CodLista); - DS_magazzino.RigheListePrelievoRow rigaListaPrelievo = tabellaRigheListaPrelievo[0]; - - // potrebbe non servire se per codCella si intende l'idx più sotto... - string codCellaDestAttuale = rigaTipoLista.CodCella; - // i due idx che mi servono ... il primo ... - int idxCellaTo = rigaTipoLista.IdxPosizione; - - foreach (DS_magazzino.RigheListePrelievoRow row in tabellaRigheListaPrelievo.Rows) - { - // ricavo il codice UDC ... fai con foreach - string UDC = row.UDC; - // mi serve per posizione udc corrente - DS_magazzino.PosizioneUdcCorrenteRow rigaUdcCorrente = taPosUdcCorr.getByUDC(UDC)[0]; - // il secondo idx che mi serve - int idxCellaFrom = rigaUdcCorrente.IdxCella; - // sposto UDC - spostaUDC(CodCS, UDC, idxCellaFrom, idxCellaTo); - } - // segna come completata la lista prelievo - taElencoListePrelievo.updateCompletato(CodLista); - // restituisce ok - answ = esitoOperazione.ok; - } - // se è già completata dà errore - else - { - answ = esitoOperazione.errore_readOnly; - } - } - // se la lista non esiste dai errore - else - { - answ = esitoOperazione.errore; - } - } - catch - { } - return answ; - } #endregion } @@ -586,3 +608,11 @@ public enum esitoOperazione errore_mismatch, // errore x mancanza corrispondenza tra dati (particolare-esponente-figura di lista ed UDC, ad esempio) errore_readOnly // errore xché ild ato è read only o bloccato (es lista di prelievo già completata, NON posso riprenderla in carico) } + +public enum statoLista +{ + generata = 1, + iniziata, + completata, + scaricata +} \ 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 c76565c7..5b34f7c8 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/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll index c76565c7..5b34f7c8 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/TempPE/DS_Utility.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll index 675ff6db..fc616df4 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 2f745294..0616919f 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