-
+
-
+
diff --git a/GMW/WebUserControls/mod_trattamenti.ascx.cs b/GMW/WebUserControls/mod_trattamenti.ascx.cs
index 788b6631..02abbd76 100644
--- a/GMW/WebUserControls/mod_trattamenti.ascx.cs
+++ b/GMW/WebUserControls/mod_trattamenti.ascx.cs
@@ -4,6 +4,7 @@ using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
using GMW_data;
+using System.Collections;
namespace GMW.WebUserControls
{
@@ -25,6 +26,11 @@ namespace GMW.WebUserControls
/// stato associato all'UDC precedente (Sterrato)
///
protected string statoUDC_pre = "Sterr";
+ ///
+ /// attributo per TRATTAMENTO termico
+ ///
+ protected string attrNumTra = "NT";
+#if false
///
/// flusso associato (hard coded) al TRATTAMENTO termico
///
@@ -32,7 +38,8 @@ namespace GMW.WebUserControls
///
/// tipo di evento associato alla creazione dell'UDC di trattamento termico
///
- protected string eventoUDC_TR = "NEW_TRAT";
+ protected string eventoUDC_TR = "NEW_TRAT";
+#endif
///
/// stringa UID univoca
///
@@ -381,6 +388,8 @@ namespace GMW.WebUserControls
switch (tipoBCode)
{
case tipoCodiceBarcode.Particolare:
+ // 2014.02.13: tolto perché NON si vuole particolare OUT diverso da IN
+#if false
// imposto il particolare corrente
currParticolare = barcodeIn;
// controllo esista il particolare scansionato
@@ -396,6 +405,7 @@ namespace GMW.WebUserControls
pnlAll.CssClass = "stileComandoOk";
}
fixNumPezzi();
+#endif
break;
case tipoCodiceBarcode.UDC:
/* controllo UDC:
@@ -415,12 +425,9 @@ namespace GMW.WebUserControls
{
// se è ok aggiungo in elenco UDC e mostro udpate
checkUdc4elenco(barcodeIn);
- // tolta selez automatica particolare...
-#if false
- // seleziono anche particolare corrente
- currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
- fixNumPezzi();
-#endif
+ // seleziono anche particolare corrente
+ currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
+ fixNumPezzi();
pnlAll.CssClass = "stileComandoOk";
}
else
@@ -510,62 +517,88 @@ namespace GMW.WebUserControls
// calcolo postazione
calcolaPostazione();
+ string[] stringSeparators = new string[] { "#" };
// verifico postazione x procedere...
if (postazione_printer != "n.d.")
{
- string newUdcChild = "";
- string newUdcParent = "";
- bool UdcExists = false;
- int anno = Convert.ToInt32(txtAnno.Text.Substring(txtAnno.Text.Trim().Length - 2, 2));
- int qta = memLayer.ML.confReadInt("QtaImballoTratt");
- string noteTrim = txtNote.Text.Trim();
+ // controllo UDC in ingresso, che siano tutti con uguale particolare e DIVERSO da ""
+ string partUdcIn = "";
try
{
- qta = Convert.ToInt32(txtQta.Text);
+ // ciclo tutti gli UDC trattati
+ if (elencoUDC.Count > 0)
+ {
+ partUdcIn = checkPartUDC(elencoUDC);
+ }
}
catch
{ }
- // effettuo controlli che cod_soggetto e cod particolare siano disponibili...
- string codSogg = "";
- string particolare = "";
- try
+ if (partUdcIn != "")
{
- codSogg = MagClass.magazzino.CodSoggCurrUser;
- particolare = currParticolare;
- }
- catch
- {
- }
- if (codSogg != "" && particolare != "")
- {
- // genero cartellino
- DateTime adesso = DateTime.Now;
- string[] stringSeparators = new string[] { "#" };
+ // controllo da distinta base coerenza particolare IN/OUT
+ bool partDistintaOk = false;
try
{
- // creo nuovo UDC trattati
- newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoTratt"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneTrattati"), "IdxPosizioneTrattati", eventoUDC, noteTrim, "", adesso.Year, Request.UserHostName);
- // registro creazione nuovo UDC
- MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Trattati, qta: {0} {1}", qta, noteTrim));
+ if (MagClass.magazzino.taPartIO.GetData(currParticolare, partUdcIn, true)[0].Trovati > 0) partDistintaOk = true;
}
- catch (Exception exc)
+ catch
+ { }
+ if (partDistintaOk)
{
- httpLog(string.Format("Errore creazione UDC Trattato: {0}", exc), tipoLog.EXCEPTION);
- }
- // devo gestire associazione e consumo SIA dei trattamenti che degli USC
- if (newUdcChild != "")
- {
- // associo UDC da elenco sterrati
- foreach (KeyValuePair
kvp in elencoUDC)
+ string newUdcChild = "";
+ //string newUdcParent = "";
+ //bool UdcExists = false;
+ int anno = Convert.ToInt32(txtAnno.Text.Substring(txtAnno.Text.Trim().Length - 2, 2));
+ int qta = memLayer.ML.confReadInt("QtaImballoTratt");
+ string noteTrim = txtNote.Text.Trim();
+ try
{
- // associo i 2 cartellini
- MagClass.magazzino.associaUdcParent(newUdcChild, kvp.Key);
- // consumo gli UDC indicati (se non già consumati)
- consumaUdc(kvp.Key);
+ qta = Convert.ToInt32(txtQta.Text);
}
- // creo UDC dei trattamenti termici
- foreach (KeyValuePair kvp in elencoTrattamenti)
+ catch
+ { }
+ // effettuo controlli che cod_soggetto e cod particolare siano disponibili...
+ string codSogg = "";
+ string particolare = "";
+ try
{
+ codSogg = MagClass.magazzino.CodSoggCurrUser;
+ particolare = currParticolare;
+ }
+ catch
+ {
+ }
+ if (codSogg != "" && particolare != "")
+ {
+ // genero cartellino
+ DateTime adesso = DateTime.Now;
+ try
+ {
+ // creo nuovo UDC trattati
+ newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoTratt"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneTrattati"), "IdxPosizioneTrattati", eventoUDC, noteTrim, "", adesso.Year, Request.UserHostName);
+ // registro creazione nuovo UDC
+ MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Trattati, qta: {0} {1}", qta, noteTrim));
+ }
+ catch (Exception exc)
+ {
+ httpLog(string.Format("Errore creazione UDC Trattato: {0}", exc), tipoLog.EXCEPTION);
+ }
+ // devo gestire associazione e consumo SIA dei trattamenti che degli USC
+ if (newUdcChild != "")
+ {
+ // associo UDC da elenco sterrati
+ foreach (KeyValuePair kvp in elencoUDC)
+ {
+ // associo i 2 cartellini
+ MagClass.magazzino.associaUdcParent(newUdcChild, kvp.Key);
+ // consumo gli UDC indicati (se non già consumati)
+ consumaUdc(kvp.Key);
+ }
+ // creo UDC dei trattamenti termici
+ foreach (KeyValuePair kvp in elencoTrattamenti)
+ {
+ // versione vecchia con creazione UDC di trattamento e relazione...
+#if false
// calcolo il nuovo codice UDC del trattamento
newUdcParent = MagClass.magazzino.getComposizioneUDC(memLayer.ML.confReadString("CodCS"), flusso_TR, anno.ToString(), Convert.ToInt32(kvp.Key));
// verifico se ci sia già UDC
@@ -591,18 +624,35 @@ namespace GMW.WebUserControls
}
// reset valori
newUdcParent = "";
- UdcExists = false;
+ UdcExists = false;
+#endif
+ // inserisco attributo trattamento
+ MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrNumTra, kvp.Key);
+ }
+ // ora stampo il nuovo cartellino!!!
+ MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartTratt, Request.UserHostName);
+ // incremento timing...
+ adesso = DateTime.Now;
+ adesso = adesso.AddSeconds(2);
+ // registro stampa nuovo UDC
+ MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Trattato");
+ }
+ // resetto
+ doResetData();
}
- // ora stampo il nuovo cartellino!!!
- MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartTratt, Request.UserHostName);
- // incremento timing...
- adesso = DateTime.Now;
- adesso = adesso.AddSeconds(2);
- // registro stampa nuovo UDC
- MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Trattato");
+ else
+ {
+ httpLog(string.Format("TRATTATI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
+ Response.Redirect("~/login.aspx");
+ }
+ mod_storicoAzioniOperatore1.doUpdate();
+ }
+ else
+ {
+ httpLog(string.Format("TRATTATI, Errore controllo coerenza particolari da distinta base!"), tipoLog.ERROR);
+ lblMessaggi.Text += "Errore particolari UDC da controllo distinta base";
+ pnlAll.CssClass = "stileComandoND";
}
- // resetto
- doResetData();
}
else
{
@@ -654,6 +704,28 @@ namespace GMW.WebUserControls
}
}
///
+ /// verifica che il vettore di UDC abbia tutto lo stesso particolare e lo restituisce, altrimenti restituisce ""
+ ///
+ /// dictionary di UDC da verificare
+ private string checkPartUDC(Dictionary UDC_P)
+ {
+ string answ = "";
+ if (UDC_P.Count > 0)
+ {
+ // imposto il primo particolare...
+ IEnumerator enumerator = UDC_P.Keys.GetEnumerator();
+ enumerator.MoveNext();
+ object first = enumerator.Current;
+ answ = MagClass.magazzino.getParticolareByUDC(first.ToString());
+ // ciclo
+ foreach (KeyValuePair udc_p in UDC_P)
+ {
+ if (MagClass.magazzino.getParticolareByUDC(udc_p.Key) != answ) answ = ""; // se uno è diverso "azzero"
+ }
+ }
+ return answ;
+ }
+ ///
/// wrapper per log con salvataggio dell'IP del chiamante
///
///
diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll
index 6d88f176..eef7f515 100644
Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ
diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll
index c9c7d6ff..0976e870 100644
Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ
diff --git a/GMW/bin/SteamWare.dll b/GMW/bin/SteamWare.dll
index c9086333..6a1eae2a 100644
Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ
diff --git a/GMW_data/DS_magazzino.Designer.cs b/GMW_data/DS_magazzino.Designer.cs
index eaf1b198..718fe840 100644
--- a/GMW_data/DS_magazzino.Designer.cs
+++ b/GMW_data/DS_magazzino.Designer.cs
@@ -86,6 +86,8 @@ namespace GMW_data {
private stp_ParticolareInOutOkDataTable tablestp_ParticolareInOutOk;
+ private Attr2UDCDataTable tableAttr2UDC;
+
private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini;
private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini;
@@ -108,6 +110,8 @@ namespace GMW_data {
private global::System.Data.DataRelation relationFK_Celle_TipoCella;
+ private global::System.Data.DataRelation relationFK_Attr2UDC_ElencoCartellini;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -229,6 +233,9 @@ namespace GMW_data {
if ((ds.Tables["stp_ParticolareInOutOk"] != null)) {
base.Tables.Add(new stp_ParticolareInOutOkDataTable(ds.Tables["stp_ParticolareInOutOk"]));
}
+ if ((ds.Tables["Attr2UDC"] != null)) {
+ base.Tables.Add(new Attr2UDCDataTable(ds.Tables["Attr2UDC"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -557,6 +564,16 @@ namespace GMW_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public Attr2UDCDataTable Attr2UDC {
+ get {
+ return this.tableAttr2UDC;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -717,6 +734,9 @@ namespace GMW_data {
if ((ds.Tables["stp_ParticolareInOutOk"] != null)) {
base.Tables.Add(new stp_ParticolareInOutOkDataTable(ds.Tables["stp_ParticolareInOutOk"]));
}
+ if ((ds.Tables["Attr2UDC"] != null)) {
+ base.Tables.Add(new Attr2UDCDataTable(ds.Tables["Attr2UDC"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -936,6 +956,12 @@ namespace GMW_data {
this.tablestp_ParticolareInOutOk.InitVars();
}
}
+ this.tableAttr2UDC = ((Attr2UDCDataTable)(base.Tables["Attr2UDC"]));
+ if ((initTable == true)) {
+ if ((this.tableAttr2UDC != null)) {
+ this.tableAttr2UDC.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"];
@@ -947,6 +973,7 @@ namespace GMW_data {
this.relationFK_ElencoListePrelievo_TipoListaPrelievo11 = this.Relations["FK_ElencoListePrelievo_TipoListaPrelievo11"];
this.relationFK_ElencoCartellini_AnagPosizioni = this.Relations["FK_ElencoCartellini_AnagPosizioni"];
this.relationFK_Celle_TipoCella = this.Relations["FK_Celle_TipoCella"];
+ this.relationFK_Attr2UDC_ElencoCartellini = this.Relations["FK_Attr2UDC_ElencoCartellini"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1019,6 +1046,8 @@ namespace GMW_data {
base.Tables.Add(this.tableAnagLinee);
this.tablestp_ParticolareInOutOk = new stp_ParticolareInOutOkDataTable();
base.Tables.Add(this.tablestp_ParticolareInOutOk);
+ this.tableAttr2UDC = new Attr2UDCDataTable();
+ base.Tables.Add(this.tableAttr2UDC);
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);
@@ -1067,6 +1096,10 @@ namespace GMW_data {
this.tableTipoCella.IdxTipoCellaColumn}, new global::System.Data.DataColumn[] {
this.tableCelle.IdxTipoCellaColumn}, false);
this.Relations.Add(this.relationFK_Celle_TipoCella);
+ this.relationFK_Attr2UDC_ElencoCartellini = new global::System.Data.DataRelation("FK_Attr2UDC_ElencoCartellini", new global::System.Data.DataColumn[] {
+ this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] {
+ this.tableAttr2UDC.UDCColumn}, false);
+ this.Relations.Add(this.relationFK_Attr2UDC_ElencoCartellini);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1255,6 +1288,12 @@ namespace GMW_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeAttr2UDC() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -1403,6 +1442,9 @@ namespace GMW_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void stp_ParticolareInOutOkRowChangeEventHandler(object sender, stp_ParticolareInOutOkRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void Attr2UDCRowChangeEventHandler(object sender, Attr2UDCRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -12820,6 +12862,319 @@ namespace GMW_data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class Attr2UDCDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidxAttr;
+
+ private global::System.Data.DataColumn columnUDC;
+
+ private global::System.Data.DataColumn columnCodAttr;
+
+ private global::System.Data.DataColumn columnValAttr;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Attr2UDCDataTable() {
+ this.TableName = "Attr2UDC";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Attr2UDCDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected Attr2UDCDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn idxAttrColumn {
+ get {
+ return this.columnidxAttr;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn UDCColumn {
+ get {
+ return this.columnUDC;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodAttrColumn {
+ get {
+ return this.columnCodAttr;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ValAttrColumn {
+ get {
+ return this.columnValAttr;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Attr2UDCRow this[int index] {
+ get {
+ return ((Attr2UDCRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Attr2UDCRowChangeEventHandler Attr2UDCRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Attr2UDCRowChangeEventHandler Attr2UDCRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Attr2UDCRowChangeEventHandler Attr2UDCRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Attr2UDCRowChangeEventHandler Attr2UDCRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddAttr2UDCRow(Attr2UDCRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Attr2UDCRow AddAttr2UDCRow(ElencoCartelliniRow parentElencoCartelliniRowByFK_Attr2UDC_ElencoCartellini, string CodAttr, string ValAttr) {
+ Attr2UDCRow rowAttr2UDCRow = ((Attr2UDCRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null,
+ CodAttr,
+ ValAttr};
+ if ((parentElencoCartelliniRowByFK_Attr2UDC_ElencoCartellini != null)) {
+ columnValuesArray[1] = parentElencoCartelliniRowByFK_Attr2UDC_ElencoCartellini[0];
+ }
+ rowAttr2UDCRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAttr2UDCRow);
+ return rowAttr2UDCRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Attr2UDCRow FindByidxAttr(int idxAttr) {
+ return ((Attr2UDCRow)(this.Rows.Find(new object[] {
+ idxAttr})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ Attr2UDCDataTable cln = ((Attr2UDCDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new Attr2UDCDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidxAttr = base.Columns["idxAttr"];
+ this.columnUDC = base.Columns["UDC"];
+ this.columnCodAttr = base.Columns["CodAttr"];
+ this.columnValAttr = base.Columns["ValAttr"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidxAttr = new global::System.Data.DataColumn("idxAttr", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxAttr);
+ this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnUDC);
+ this.columnCodAttr = new global::System.Data.DataColumn("CodAttr", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodAttr);
+ this.columnValAttr = new global::System.Data.DataColumn("ValAttr", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnValAttr);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidxAttr}, true));
+ this.columnidxAttr.AutoIncrement = true;
+ this.columnidxAttr.AutoIncrementSeed = -1;
+ this.columnidxAttr.AutoIncrementStep = -1;
+ this.columnidxAttr.AllowDBNull = false;
+ this.columnidxAttr.ReadOnly = true;
+ this.columnidxAttr.Unique = true;
+ this.columnUDC.AllowDBNull = false;
+ this.columnUDC.MaxLength = 50;
+ this.columnCodAttr.AllowDBNull = false;
+ this.columnCodAttr.MaxLength = 2;
+ this.columnValAttr.AllowDBNull = false;
+ this.columnValAttr.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Attr2UDCRow NewAttr2UDCRow() {
+ return ((Attr2UDCRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new Attr2UDCRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(Attr2UDCRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.Attr2UDCRowChanged != null)) {
+ this.Attr2UDCRowChanged(this, new Attr2UDCRowChangeEvent(((Attr2UDCRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.Attr2UDCRowChanging != null)) {
+ this.Attr2UDCRowChanging(this, new Attr2UDCRowChangeEvent(((Attr2UDCRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.Attr2UDCRowDeleted != null)) {
+ this.Attr2UDCRowDeleted(this, new Attr2UDCRowChangeEvent(((Attr2UDCRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.Attr2UDCRowDeleting != null)) {
+ this.Attr2UDCRowDeleting(this, new Attr2UDCRowChangeEvent(((Attr2UDCRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveAttr2UDCRow(Attr2UDCRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_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 = "Attr2UDCDataTable";
+ 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.
///
@@ -13588,6 +13943,17 @@ namespace GMW_data {
return ((RigheListePrelievoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_RigheListePrelievo_ElencoCartellini"])));
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Attr2UDCRow[] GetAttr2UDCRows() {
+ if ((this.Table.ChildRelations["FK_Attr2UDC_ElencoCartellini"] == null)) {
+ return new Attr2UDCRow[0];
+ }
+ else {
+ return ((Attr2UDCRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Attr2UDC_ElencoCartellini"])));
+ }
+ }
}
///
@@ -18693,6 +19059,76 @@ namespace GMW_data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class Attr2UDCRow : global::System.Data.DataRow {
+
+ private Attr2UDCDataTable tableAttr2UDC;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Attr2UDCRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAttr2UDC = ((Attr2UDCDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxAttr {
+ get {
+ return ((int)(this[this.tableAttr2UDC.idxAttrColumn]));
+ }
+ set {
+ this[this.tableAttr2UDC.idxAttrColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string UDC {
+ get {
+ return ((string)(this[this.tableAttr2UDC.UDCColumn]));
+ }
+ set {
+ this[this.tableAttr2UDC.UDCColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodAttr {
+ get {
+ return ((string)(this[this.tableAttr2UDC.CodAttrColumn]));
+ }
+ set {
+ this[this.tableAttr2UDC.CodAttrColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string ValAttr {
+ get {
+ return ((string)(this[this.tableAttr2UDC.ValAttrColumn]));
+ }
+ set {
+ this[this.tableAttr2UDC.ValAttrColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public ElencoCartelliniRow ElencoCartelliniRow {
+ get {
+ return ((ElencoCartelliniRow)(this.GetParentRow(this.Table.ParentRelations["FK_Attr2UDC_ElencoCartellini"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Attr2UDC_ElencoCartellini"]);
+ }
+ }
+ }
+
///
///Row event argument class
///
@@ -19746,6 +20182,40 @@ namespace GMW_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class Attr2UDCRowChangeEvent : global::System.EventArgs {
+
+ private Attr2UDCRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Attr2UDCRowChangeEvent(Attr2UDCRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Attr2UDCRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace GMW_data.DS_magazzinoTableAdapters {
@@ -35393,6 +35863,383 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class Attr2UDCTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Attr2UDCTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "Attr2UDC";
+ tableMapping.ColumnMappings.Add("idxAttr", "idxAttr");
+ tableMapping.ColumnMappings.Add("UDC", "UDC");
+ tableMapping.ColumnMappings.Add("CodAttr", "CodAttr");
+ tableMapping.ColumnMappings.Add("ValAttr", "ValAttr");
+ 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].[Attr2UDC] WHERE (([idxAttr] = @Original_idxAttr) AND ([UDC] = " +
+ "@Original_UDC) AND ([CodAttr] = @Original_CodAttr) AND ([ValAttr] = @Original_Va" +
+ "lAttr))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxAttr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValAttr", 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].[Attr2UDC] ([UDC], [CodAttr], [ValAttr]) VALUES (@UDC, @CodAttr" +
+ ", @ValAttr);\r\nSELECT idxAttr, UDC, CodAttr, ValAttr FROM Attr2UDC WHERE (idxAttr" +
+ " = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValAttr", 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].[Attr2UDC] SET [UDC] = @UDC, [CodAttr] = @CodAttr, [ValAttr] = @ValAttr WHERE (([idxAttr] = @Original_idxAttr) AND ([UDC] = @Original_UDC) AND ([CodAttr] = @Original_CodAttr) AND ([ValAttr] = @Original_ValAttr));
+SELECT idxAttr, UDC, CodAttr, ValAttr FROM Attr2UDC WHERE (idxAttr = @idxAttr)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxAttr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValAttr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValAttr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxAttr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxAttr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ 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()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT idxAttr, UDC, CodAttr, ValAttr FROM dbo.Attr2UDC";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_magazzino.Attr2UDCDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_magazzino.Attr2UDCDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_magazzino.Attr2UDCDataTable dataTable = new DS_magazzino.Attr2UDCDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_magazzino.Attr2UDCDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_magazzino dataSet) {
+ return this.Adapter.Update(dataSet, "Attr2UDC");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_idxAttr, string Original_UDC, string Original_CodAttr, string Original_ValAttr) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxAttr));
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_UDC));
+ }
+ if ((Original_CodAttr == null)) {
+ throw new global::System.ArgumentNullException("Original_CodAttr");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodAttr));
+ }
+ if ((Original_ValAttr == null)) {
+ throw new global::System.ArgumentNullException("Original_ValAttr");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_ValAttr));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string UDC, string CodAttr, string ValAttr) {
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UDC));
+ }
+ if ((CodAttr == null)) {
+ throw new global::System.ArgumentNullException("CodAttr");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodAttr));
+ }
+ if ((ValAttr == null)) {
+ throw new global::System.ArgumentNullException("ValAttr");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ValAttr));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string UDC, string CodAttr, string ValAttr, int Original_idxAttr, string Original_UDC, string Original_CodAttr, string Original_ValAttr, int idxAttr) {
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UDC));
+ }
+ if ((CodAttr == null)) {
+ throw new global::System.ArgumentNullException("CodAttr");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodAttr));
+ }
+ if ((ValAttr == null)) {
+ throw new global::System.ArgumentNullException("ValAttr");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ValAttr));
+ }
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idxAttr));
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_UDC));
+ }
+ if ((Original_CodAttr == null)) {
+ throw new global::System.ArgumentNullException("Original_CodAttr");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodAttr));
+ }
+ if ((Original_ValAttr == null)) {
+ throw new global::System.ArgumentNullException("Original_ValAttr");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_ValAttr));
+ }
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idxAttr));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string UDC, string CodAttr, string ValAttr, int Original_idxAttr, string Original_UDC, string Original_CodAttr, string Original_ValAttr) {
+ return this.Update(UDC, CodAttr, ValAttr, Original_idxAttr, Original_UDC, Original_CodAttr, Original_ValAttr, Original_idxAttr);
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -35439,6 +36286,8 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
private AnagLineeTableAdapter _anagLineeTableAdapter;
+ private Attr2UDCTableAdapter _attr2UDCTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -35692,6 +36541,20 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public Attr2UDCTableAdapter Attr2UDCTableAdapter {
+ get {
+ return this._attr2UDCTableAdapter;
+ }
+ set {
+ this._attr2UDCTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -35779,6 +36642,10 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
&& (this._anagLineeTableAdapter.Connection != null))) {
return this._anagLineeTableAdapter.Connection;
}
+ if (((this._attr2UDCTableAdapter != null)
+ && (this._attr2UDCTableAdapter.Connection != null))) {
+ return this._attr2UDCTableAdapter.Connection;
+ }
return null;
}
set {
@@ -35843,6 +36710,9 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
if ((this._anagLineeTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._attr2UDCTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -35863,24 +36733,6 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagPosizioniTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagPosizioniTableAdapter.Update(updatedRows));
- 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);
@@ -35899,6 +36751,24 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._anagPosizioniTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagPosizioniTableAdapter.Update(updatedRows));
+ 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._elencoCartelliniTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -35917,33 +36787,6 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagLegheTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagLeghe.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagLegheTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._anagParticolariTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagParticolariTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._elencoPostazioniTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.ElencoPostazioni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._elencoPostazioniTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._rapQualTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.RapQual.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -35962,6 +36805,24 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._anagLegheTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagLeghe.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagLegheTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._elencoPostazioniTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ElencoPostazioni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._elencoPostazioniTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
if ((this._anagLineeTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagLinee.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -35971,6 +36832,15 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._anagParticolariTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagParticolariTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
if ((this._righeListePrelievoTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -36007,6 +36877,15 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._attr2UDCTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Attr2UDC.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._attr2UDCTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -36025,22 +36904,6 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagPosizioniTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagPosizioniTableAdapter.Update(addedRows));
- 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)
@@ -36057,6 +36920,22 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._anagPosizioniTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagPosizioniTableAdapter.Update(addedRows));
+ 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._elencoCartelliniTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -36073,30 +36952,6 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagLegheTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagLeghe.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagLegheTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._anagParticolariTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagParticolariTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._elencoPostazioniTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.ElencoPostazioni.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._elencoPostazioniTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._rapQualTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.RapQual.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -36113,6 +36968,22 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._anagLegheTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagLeghe.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagLegheTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._elencoPostazioniTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ElencoPostazioni.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._elencoPostazioniTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
if ((this._anagLineeTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagLinee.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -36121,6 +36992,14 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._anagParticolariTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagParticolariTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
if ((this._righeListePrelievoTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -36153,6 +37032,14 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._attr2UDCTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Attr2UDC.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._attr2UDCTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -36163,6 +37050,14 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(DS_magazzino dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._attr2UDCTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Attr2UDC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._attr2UDCTableAdapter.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)
@@ -36195,6 +37090,14 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allChangedRows.AddRange(deletedRows);
}
}
+ if ((this._anagParticolariTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagParticolariTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._anagLineeTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagLinee.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -36203,6 +37106,22 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allChangedRows.AddRange(deletedRows);
}
}
+ if ((this._elencoPostazioniTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ElencoPostazioni.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._elencoPostazioniTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._anagLegheTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagLeghe.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagLegheTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._storicoAzioniOperatoreTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.StoricoAzioniOperatore.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -36219,30 +37138,6 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._elencoPostazioniTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.ElencoPostazioni.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._elencoPostazioniTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._anagParticolariTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._anagParticolariTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._anagLegheTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagLeghe.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._anagLegheTableAdapter.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)
@@ -36259,22 +37154,6 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
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._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)
@@ -36291,6 +37170,22 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
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._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)
@@ -36423,6 +37318,11 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._attr2UDCTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._attr2UDCTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -36608,6 +37508,15 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
adaptersWithAcceptChangesDuringUpdate.Add(this._anagLineeTableAdapter.Adapter);
}
}
+ if ((this._attr2UDCTableAdapter != null)) {
+ revertConnections.Add(this._attr2UDCTableAdapter, this._attr2UDCTableAdapter.Connection);
+ this._attr2UDCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._attr2UDCTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._attr2UDCTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._attr2UDCTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._attr2UDCTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -36734,6 +37643,10 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
this._anagLineeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagLineeTableAdapter]));
this._anagLineeTableAdapter.Transaction = null;
}
+ if ((this._attr2UDCTableAdapter != null)) {
+ this._attr2UDCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attr2UDCTableAdapter]));
+ this._attr2UDCTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/GMW_data/DS_magazzino.xsd b/GMW_data/DS_magazzino.xsd
index 6e93d6f2..8bc9f12b 100644
--- a/GMW_data/DS_magazzino.xsd
+++ b/GMW_data/DS_magazzino.xsd
@@ -3308,6 +3308,63 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
+
+
+
+
+
+ DELETE FROM [dbo].[Attr2UDC] WHERE (([idxAttr] = @Original_idxAttr) AND ([UDC] = @Original_UDC) AND ([CodAttr] = @Original_CodAttr) AND ([ValAttr] = @Original_ValAttr))
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[Attr2UDC] ([UDC], [CodAttr], [ValAttr]) VALUES (@UDC, @CodAttr, @ValAttr);
+SELECT idxAttr, UDC, CodAttr, ValAttr FROM Attr2UDC WHERE (idxAttr = SCOPE_IDENTITY())
+
+
+
+
+
+
+
+
+
+ SELECT idxAttr, UDC, CodAttr, ValAttr FROM dbo.Attr2UDC
+
+
+
+
+
+ UPDATE [dbo].[Attr2UDC] SET [UDC] = @UDC, [CodAttr] = @CodAttr, [ValAttr] = @ValAttr WHERE (([idxAttr] = @Original_idxAttr) AND ([UDC] = @Original_UDC) AND ([CodAttr] = @Original_CodAttr) AND ([ValAttr] = @Original_ValAttr));
+SELECT idxAttr, UDC, CodAttr, ValAttr FROM Attr2UDC WHERE (idxAttr = @idxAttr)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4410,7 +4467,7 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
-
+
@@ -4467,7 +4524,7 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
-
+
@@ -4499,7 +4556,7 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
-
+
@@ -4521,7 +4578,7 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
-
+
@@ -4548,7 +4605,7 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
-
+
@@ -4590,13 +4647,41 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4738,20 +4823,25 @@ SELECT CodLinea, Descrizione, CodBlocco, CodCella, codPostazione, dtAccess FROM
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW_data/DS_magazzino.xss b/GMW_data/DS_magazzino.xss
index 22e73f13..28af7c36 100644
--- a/GMW_data/DS_magazzino.xss
+++ b/GMW_data/DS_magazzino.xss
@@ -4,42 +4,43 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
328
@@ -51,7 +52,7 @@
-
+
328
@@ -63,7 +64,7 @@
-
+
1254
@@ -75,7 +76,7 @@
-
+
712
@@ -87,7 +88,7 @@
-
+
1072
@@ -99,7 +100,7 @@
-
+
1139
@@ -111,7 +112,7 @@
-
+
211
@@ -123,7 +124,7 @@
-
+
430
@@ -135,7 +136,7 @@
-
+
735
@@ -147,14 +148,14 @@
-
+
- 392
- 256
+ 467
+ 269
- 392
+ 467
353
@@ -163,7 +164,7 @@
-
+
1029
@@ -179,5 +180,17 @@
+
+
+
+ 166
+ 230
+
+
+ 166
+ 144
+
+
+
\ No newline at end of file
diff --git a/GMW_data/MagClass.cs b/GMW_data/MagClass.cs
index f3f4ad4d..cf64898e 100644
--- a/GMW_data/MagClass.cs
+++ b/GMW_data/MagClass.cs
@@ -39,6 +39,7 @@ namespace GMW_data
public DS_magazzinoTableAdapters.StoricoAzioniOperatoreTableAdapter taSAO;
public DS_magazzinoTableAdapters.AnagLineeTableAdapter taAL;
public DS_magazzinoTableAdapters.stp_ParticolareInOutOkTableAdapter taPartIO;
+ public DS_magazzinoTableAdapters.Attr2UDCTableAdapter taAtt2UDC;
///
@@ -73,6 +74,7 @@ namespace GMW_data
taSAO = new DS_magazzinoTableAdapters.StoricoAzioniOperatoreTableAdapter();
taAL = new DS_magazzinoTableAdapters.AnagLineeTableAdapter();
taPartIO = new DS_magazzinoTableAdapters.stp_ParticolareInOutOkTableAdapter();
+ taAtt2UDC = new DS_magazzinoTableAdapters.Attr2UDCTableAdapter();
}
///
/// effettua setup dei connection strings da web.config delal singola applicazione
@@ -106,6 +108,7 @@ namespace GMW_data
taSAO.Connection.ConnectionString = connString;
taAL.Connection.ConnectionString = connString;
taPartIO.Connection.ConnectionString = connString;
+ taAtt2UDC.Connection.ConnectionString = connString;
}
#endregion