diff --git a/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.cs b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.cs
index c6821a49..8c41c7f4 100644
--- a/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.cs
+++ b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.cs
@@ -343,7 +343,7 @@ namespace GMW.WebUserControls
}
}
}
-#endif
+#endif
///
/// svuoto da cache post update
///
@@ -368,13 +368,13 @@ namespace GMW.WebUserControls
if (answ)
{
// controllo se ci sono postazioni correlate...
- if (MagClass.magazzino.taAnagCelle.getByCodMag(memLayer.ML.StringSessionObj("CodCS"), idxMaker.ToString()).Rows.Count > 0)
+ if (MagClass.magazzino.taMappe.getByCodMag(memLayer.ML.StringSessionObj("CodCS"), idxMaker.ToString()).Rows.Count > 0)
{
answ = false;
- }
+ }
}
return answ;
- }
+ }
#endregion
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index 0c341d86..0c44f28b 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 f7bbe5b6..61dedba1 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 0c341d86..0c44f28b 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 cdc6acc1..cc1be307 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_magazzino.Designer.cs b/GMW/GMW_data/DS_magazzino.Designer.cs
index b01f6079..7d2a6774 100644
--- a/GMW/GMW_data/DS_magazzino.Designer.cs
+++ b/GMW/GMW_data/DS_magazzino.Designer.cs
@@ -27,21 +27,33 @@ namespace GMW_data {
private ElencoCartelliniDataTable tableElencoCartellini;
- private PosizioneUdcCorrenteDataTable tablePosizioneUdcCorrente;
+ private AnagMagDataTable tableAnagMag;
- private AnagCelleDataTable tableAnagCelle;
+ private PosizioneUdcCorrenteDataTable tablePosizioneUdcCorrente;
private PosizioneUdcStoricoDataTable tablePosizioneUdcStorico;
- private AnagMagDataTable tableAnagMag;
+ private BlocchiDataTable tableBlocchi;
+
+ private CelleDataTable tableCelle;
+
+ private Celle2BlocchiDataTable tableCelle2Blocchi;
+
+ private MappeDataTable tableMappe;
private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini;
- private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_AnagCelle;
-
private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini;
- private global::System.Data.DataRelation relationFK_AnagCelle_AnagMag;
+ private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_Celle;
+
+ private global::System.Data.DataRelation relationFK_Celle2Blocchi_Blocchi;
+
+ private global::System.Data.DataRelation relationFK_Celle2Blocchi_Celle;
+
+ private global::System.Data.DataRelation relationFK_Blocchi_Mappe;
+
+ private global::System.Data.DataRelation relationFK_Mappe_AnagMag;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
@@ -72,17 +84,26 @@ namespace GMW_data {
if ((ds.Tables["ElencoCartellini"] != null)) {
base.Tables.Add(new ElencoCartelliniDataTable(ds.Tables["ElencoCartellini"]));
}
+ if ((ds.Tables["AnagMag"] != null)) {
+ base.Tables.Add(new AnagMagDataTable(ds.Tables["AnagMag"]));
+ }
if ((ds.Tables["PosizioneUdcCorrente"] != null)) {
base.Tables.Add(new PosizioneUdcCorrenteDataTable(ds.Tables["PosizioneUdcCorrente"]));
}
- if ((ds.Tables["AnagCelle"] != null)) {
- base.Tables.Add(new AnagCelleDataTable(ds.Tables["AnagCelle"]));
- }
if ((ds.Tables["PosizioneUdcStorico"] != null)) {
base.Tables.Add(new PosizioneUdcStoricoDataTable(ds.Tables["PosizioneUdcStorico"]));
}
- if ((ds.Tables["AnagMag"] != null)) {
- base.Tables.Add(new AnagMagDataTable(ds.Tables["AnagMag"]));
+ if ((ds.Tables["Blocchi"] != null)) {
+ base.Tables.Add(new BlocchiDataTable(ds.Tables["Blocchi"]));
+ }
+ if ((ds.Tables["Celle"] != null)) {
+ base.Tables.Add(new CelleDataTable(ds.Tables["Celle"]));
+ }
+ if ((ds.Tables["Celle2Blocchi"] != null)) {
+ base.Tables.Add(new Celle2BlocchiDataTable(ds.Tables["Celle2Blocchi"]));
+ }
+ if ((ds.Tables["Mappe"] != null)) {
+ base.Tables.Add(new MappeDataTable(ds.Tables["Mappe"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
@@ -114,18 +135,18 @@ namespace GMW_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public PosizioneUdcCorrenteDataTable PosizioneUdcCorrente {
+ public AnagMagDataTable AnagMag {
get {
- return this.tablePosizioneUdcCorrente;
+ return this.tableAnagMag;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagCelleDataTable AnagCelle {
+ public PosizioneUdcCorrenteDataTable PosizioneUdcCorrente {
get {
- return this.tableAnagCelle;
+ return this.tablePosizioneUdcCorrente;
}
}
@@ -141,9 +162,36 @@ namespace GMW_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagMagDataTable AnagMag {
+ public BlocchiDataTable Blocchi {
get {
- return this.tableAnagMag;
+ return this.tableBlocchi;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public CelleDataTable Celle {
+ get {
+ return this.tableCelle;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public Celle2BlocchiDataTable Celle2Blocchi {
+ get {
+ return this.tableCelle2Blocchi;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public MappeDataTable Mappe {
+ get {
+ return this.tableMappe;
}
}
@@ -209,17 +257,26 @@ namespace GMW_data {
if ((ds.Tables["ElencoCartellini"] != null)) {
base.Tables.Add(new ElencoCartelliniDataTable(ds.Tables["ElencoCartellini"]));
}
+ if ((ds.Tables["AnagMag"] != null)) {
+ base.Tables.Add(new AnagMagDataTable(ds.Tables["AnagMag"]));
+ }
if ((ds.Tables["PosizioneUdcCorrente"] != null)) {
base.Tables.Add(new PosizioneUdcCorrenteDataTable(ds.Tables["PosizioneUdcCorrente"]));
}
- if ((ds.Tables["AnagCelle"] != null)) {
- base.Tables.Add(new AnagCelleDataTable(ds.Tables["AnagCelle"]));
- }
if ((ds.Tables["PosizioneUdcStorico"] != null)) {
base.Tables.Add(new PosizioneUdcStoricoDataTable(ds.Tables["PosizioneUdcStorico"]));
}
- if ((ds.Tables["AnagMag"] != null)) {
- base.Tables.Add(new AnagMagDataTable(ds.Tables["AnagMag"]));
+ if ((ds.Tables["Blocchi"] != null)) {
+ base.Tables.Add(new BlocchiDataTable(ds.Tables["Blocchi"]));
+ }
+ if ((ds.Tables["Celle"] != null)) {
+ base.Tables.Add(new CelleDataTable(ds.Tables["Celle"]));
+ }
+ if ((ds.Tables["Celle2Blocchi"] != null)) {
+ base.Tables.Add(new Celle2BlocchiDataTable(ds.Tables["Celle2Blocchi"]));
+ }
+ if ((ds.Tables["Mappe"] != null)) {
+ base.Tables.Add(new MappeDataTable(ds.Tables["Mappe"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
@@ -257,34 +314,55 @@ namespace GMW_data {
this.tableElencoCartellini.InitVars();
}
}
+ this.tableAnagMag = ((AnagMagDataTable)(base.Tables["AnagMag"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagMag != null)) {
+ this.tableAnagMag.InitVars();
+ }
+ }
this.tablePosizioneUdcCorrente = ((PosizioneUdcCorrenteDataTable)(base.Tables["PosizioneUdcCorrente"]));
if ((initTable == true)) {
if ((this.tablePosizioneUdcCorrente != null)) {
this.tablePosizioneUdcCorrente.InitVars();
}
}
- this.tableAnagCelle = ((AnagCelleDataTable)(base.Tables["AnagCelle"]));
- if ((initTable == true)) {
- if ((this.tableAnagCelle != null)) {
- this.tableAnagCelle.InitVars();
- }
- }
this.tablePosizioneUdcStorico = ((PosizioneUdcStoricoDataTable)(base.Tables["PosizioneUdcStorico"]));
if ((initTable == true)) {
if ((this.tablePosizioneUdcStorico != null)) {
this.tablePosizioneUdcStorico.InitVars();
}
}
- this.tableAnagMag = ((AnagMagDataTable)(base.Tables["AnagMag"]));
+ this.tableBlocchi = ((BlocchiDataTable)(base.Tables["Blocchi"]));
if ((initTable == true)) {
- if ((this.tableAnagMag != null)) {
- this.tableAnagMag.InitVars();
+ if ((this.tableBlocchi != null)) {
+ this.tableBlocchi.InitVars();
+ }
+ }
+ this.tableCelle = ((CelleDataTable)(base.Tables["Celle"]));
+ if ((initTable == true)) {
+ if ((this.tableCelle != null)) {
+ this.tableCelle.InitVars();
+ }
+ }
+ this.tableCelle2Blocchi = ((Celle2BlocchiDataTable)(base.Tables["Celle2Blocchi"]));
+ if ((initTable == true)) {
+ if ((this.tableCelle2Blocchi != null)) {
+ this.tableCelle2Blocchi.InitVars();
+ }
+ }
+ this.tableMappe = ((MappeDataTable)(base.Tables["Mappe"]));
+ if ((initTable == true)) {
+ if ((this.tableMappe != null)) {
+ this.tableMappe.InitVars();
}
}
this.relationFK_PosizioneUdcCorrente_ElencoCartellini = this.Relations["FK_PosizioneUdcCorrente_ElencoCartellini"];
- this.relationFK_PosizioneUdcCorrente_AnagCelle = this.Relations["FK_PosizioneUdcCorrente_AnagCelle"];
this.relationFK_PosizioneUdcStorico_ElencoCartellini = this.Relations["FK_PosizioneUdcStorico_ElencoCartellini"];
- this.relationFK_AnagCelle_AnagMag = this.Relations["FK_AnagCelle_AnagMag"];
+ this.relationFK_PosizioneUdcCorrente_Celle = this.Relations["FK_PosizioneUdcCorrente_Celle"];
+ this.relationFK_Celle2Blocchi_Blocchi = this.Relations["FK_Celle2Blocchi_Blocchi"];
+ this.relationFK_Celle2Blocchi_Celle = this.Relations["FK_Celle2Blocchi_Celle"];
+ this.relationFK_Blocchi_Mappe = this.Relations["FK_Blocchi_Mappe"];
+ this.relationFK_Mappe_AnagMag = this.Relations["FK_Mappe_AnagMag"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -296,32 +374,50 @@ namespace GMW_data {
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tableElencoCartellini = new ElencoCartelliniDataTable();
base.Tables.Add(this.tableElencoCartellini);
- this.tablePosizioneUdcCorrente = new PosizioneUdcCorrenteDataTable();
- base.Tables.Add(this.tablePosizioneUdcCorrente);
- this.tableAnagCelle = new AnagCelleDataTable();
- base.Tables.Add(this.tableAnagCelle);
- this.tablePosizioneUdcStorico = new PosizioneUdcStoricoDataTable();
- base.Tables.Add(this.tablePosizioneUdcStorico);
this.tableAnagMag = new AnagMagDataTable();
base.Tables.Add(this.tableAnagMag);
+ this.tablePosizioneUdcCorrente = new PosizioneUdcCorrenteDataTable();
+ base.Tables.Add(this.tablePosizioneUdcCorrente);
+ this.tablePosizioneUdcStorico = new PosizioneUdcStoricoDataTable();
+ base.Tables.Add(this.tablePosizioneUdcStorico);
+ this.tableBlocchi = new BlocchiDataTable();
+ base.Tables.Add(this.tableBlocchi);
+ this.tableCelle = new CelleDataTable();
+ base.Tables.Add(this.tableCelle);
+ this.tableCelle2Blocchi = new Celle2BlocchiDataTable();
+ base.Tables.Add(this.tableCelle2Blocchi);
+ this.tableMappe = new MappeDataTable();
+ base.Tables.Add(this.tableMappe);
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);
this.Relations.Add(this.relationFK_PosizioneUdcCorrente_ElencoCartellini);
- this.relationFK_PosizioneUdcCorrente_AnagCelle = new global::System.Data.DataRelation("FK_PosizioneUdcCorrente_AnagCelle", new global::System.Data.DataColumn[] {
- this.tableAnagCelle.CodMagColumn,
- this.tableAnagCelle.CodCellaColumn}, new global::System.Data.DataColumn[] {
- this.tablePosizioneUdcCorrente.CodMagColumn,
- this.tablePosizioneUdcCorrente.CodCellaColumn}, false);
- this.Relations.Add(this.relationFK_PosizioneUdcCorrente_AnagCelle);
this.relationFK_PosizioneUdcStorico_ElencoCartellini = new global::System.Data.DataRelation("FK_PosizioneUdcStorico_ElencoCartellini", new global::System.Data.DataColumn[] {
this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] {
this.tablePosizioneUdcStorico.UDCColumn}, false);
this.Relations.Add(this.relationFK_PosizioneUdcStorico_ElencoCartellini);
- this.relationFK_AnagCelle_AnagMag = new global::System.Data.DataRelation("FK_AnagCelle_AnagMag", new global::System.Data.DataColumn[] {
- this.tableAnagMag.CodMagColumn}, new global::System.Data.DataColumn[] {
- this.tableAnagCelle.CodMagColumn}, false);
- this.Relations.Add(this.relationFK_AnagCelle_AnagMag);
+ this.relationFK_PosizioneUdcCorrente_Celle = new global::System.Data.DataRelation("FK_PosizioneUdcCorrente_Celle", new global::System.Data.DataColumn[] {
+ this.tableCelle.IdxCellaColumn}, new global::System.Data.DataColumn[] {
+ this.tablePosizioneUdcCorrente.IdxCellaColumn}, false);
+ this.Relations.Add(this.relationFK_PosizioneUdcCorrente_Celle);
+ this.relationFK_Celle2Blocchi_Blocchi = new global::System.Data.DataRelation("FK_Celle2Blocchi_Blocchi", new global::System.Data.DataColumn[] {
+ this.tableBlocchi.IdxBloccoColumn}, new global::System.Data.DataColumn[] {
+ this.tableCelle2Blocchi.IdxBloccoColumn}, false);
+ this.Relations.Add(this.relationFK_Celle2Blocchi_Blocchi);
+ this.relationFK_Celle2Blocchi_Celle = new global::System.Data.DataRelation("FK_Celle2Blocchi_Celle", new global::System.Data.DataColumn[] {
+ this.tableCelle.IdxCellaColumn}, new global::System.Data.DataColumn[] {
+ this.tableCelle2Blocchi.IdxCellaColumn}, false);
+ this.Relations.Add(this.relationFK_Celle2Blocchi_Celle);
+ this.relationFK_Blocchi_Mappe = new global::System.Data.DataRelation("FK_Blocchi_Mappe", new global::System.Data.DataColumn[] {
+ this.tableMappe.IdxMappaColumn}, new global::System.Data.DataColumn[] {
+ this.tableBlocchi.IdxMappaColumn}, false);
+ this.Relations.Add(this.relationFK_Blocchi_Mappe);
+ this.relationFK_Mappe_AnagMag = new global::System.Data.DataRelation("FK_Mappe_AnagMag", new global::System.Data.DataColumn[] {
+ this.tableAnagMag.CodMagColumn,
+ this.tableAnagMag.CodCSColumn}, new global::System.Data.DataColumn[] {
+ this.tableMappe.CodMagColumn,
+ this.tableMappe.CodCSColumn}, false);
+ this.Relations.Add(this.relationFK_Mappe_AnagMag);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -329,23 +425,38 @@ namespace GMW_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeAnagMag() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializePosizioneUdcCorrente() {
return false;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagCelle() {
- return false;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializePosizioneUdcStorico() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagMag() {
+ private bool ShouldSerializeBlocchi() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeCelle() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeCelle2Blocchi() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeMappe() {
return false;
}
@@ -404,13 +515,19 @@ namespace GMW_data {
public delegate void ElencoCartelliniRowChangeEventHandler(object sender, ElencoCartelliniRowChangeEvent e);
- public delegate void PosizioneUdcCorrenteRowChangeEventHandler(object sender, PosizioneUdcCorrenteRowChangeEvent e);
+ public delegate void AnagMagRowChangeEventHandler(object sender, AnagMagRowChangeEvent e);
- public delegate void AnagCelleRowChangeEventHandler(object sender, AnagCelleRowChangeEvent e);
+ public delegate void PosizioneUdcCorrenteRowChangeEventHandler(object sender, PosizioneUdcCorrenteRowChangeEvent e);
public delegate void PosizioneUdcStoricoRowChangeEventHandler(object sender, PosizioneUdcStoricoRowChangeEvent e);
- public delegate void AnagMagRowChangeEventHandler(object sender, AnagMagRowChangeEvent e);
+ public delegate void BlocchiRowChangeEventHandler(object sender, BlocchiRowChangeEvent e);
+
+ public delegate void CelleRowChangeEventHandler(object sender, CelleRowChangeEvent e);
+
+ public delegate void Celle2BlocchiRowChangeEventHandler(object sender, Celle2BlocchiRowChangeEvent e);
+
+ public delegate void MappeRowChangeEventHandler(object sender, MappeRowChangeEvent e);
///
///Represents the strongly named DataTable class.
@@ -997,868 +1114,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 PosizioneUdcCorrenteDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnUDC;
-
- private global::System.Data.DataColumn columnCodMag;
-
- private global::System.Data.DataColumn columnCodCella;
-
- private global::System.Data.DataColumn columnDataRif;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcCorrenteDataTable() {
- this.TableName = "PosizioneUdcCorrente";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal PosizioneUdcCorrenteDataTable(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 PosizioneUdcCorrenteDataTable(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 UDCColumn {
- get {
- return this.columnUDC;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodMagColumn {
- get {
- return this.columnCodMag;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCellaColumn {
- get {
- return this.columnCodCella;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DataRifColumn {
- get {
- return this.columnDataRif;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcCorrenteRow this[int index] {
- get {
- return ((PosizioneUdcCorrenteRow)(this.Rows[index]));
- }
- }
-
- public event PosizioneUdcCorrenteRowChangeEventHandler PosizioneUdcCorrenteRowChanging;
-
- public event PosizioneUdcCorrenteRowChangeEventHandler PosizioneUdcCorrenteRowChanged;
-
- public event PosizioneUdcCorrenteRowChangeEventHandler PosizioneUdcCorrenteRowDeleting;
-
- public event PosizioneUdcCorrenteRowChangeEventHandler PosizioneUdcCorrenteRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddPosizioneUdcCorrenteRow(PosizioneUdcCorrenteRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcCorrenteRow AddPosizioneUdcCorrenteRow(ElencoCartelliniRow parentElencoCartelliniRowByFK_PosizioneUdcCorrente_ElencoCartellini, string CodMag, string CodCella, System.DateTime DataRif) {
- PosizioneUdcCorrenteRow rowPosizioneUdcCorrenteRow = ((PosizioneUdcCorrenteRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- null,
- CodMag,
- CodCella,
- DataRif};
- if ((parentElencoCartelliniRowByFK_PosizioneUdcCorrente_ElencoCartellini != null)) {
- columnValuesArray[0] = parentElencoCartelliniRowByFK_PosizioneUdcCorrente_ElencoCartellini[0];
- }
- rowPosizioneUdcCorrenteRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowPosizioneUdcCorrenteRow);
- return rowPosizioneUdcCorrenteRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcCorrenteRow FindByUDCCodMagCodCella(string UDC, string CodMag, string CodCella) {
- return ((PosizioneUdcCorrenteRow)(this.Rows.Find(new object[] {
- UDC,
- CodMag,
- CodCella})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- PosizioneUdcCorrenteDataTable cln = ((PosizioneUdcCorrenteDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new PosizioneUdcCorrenteDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnUDC = base.Columns["UDC"];
- this.columnCodMag = base.Columns["CodMag"];
- this.columnCodCella = base.Columns["CodCella"];
- this.columnDataRif = base.Columns["DataRif"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnUDC);
- this.columnCodMag = new global::System.Data.DataColumn("CodMag", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodMag);
- this.columnCodCella = new global::System.Data.DataColumn("CodCella", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodCella);
- this.columnDataRif = new global::System.Data.DataColumn("DataRif", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDataRif);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnUDC,
- this.columnCodMag,
- this.columnCodCella}, true));
- this.columnUDC.AllowDBNull = false;
- this.columnUDC.MaxLength = 50;
- this.columnCodMag.AllowDBNull = false;
- this.columnCodMag.MaxLength = 50;
- this.columnCodCella.AllowDBNull = false;
- this.columnCodCella.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcCorrenteRow NewPosizioneUdcCorrenteRow() {
- return ((PosizioneUdcCorrenteRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new PosizioneUdcCorrenteRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(PosizioneUdcCorrenteRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.PosizioneUdcCorrenteRowChanged != null)) {
- this.PosizioneUdcCorrenteRowChanged(this, new PosizioneUdcCorrenteRowChangeEvent(((PosizioneUdcCorrenteRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.PosizioneUdcCorrenteRowChanging != null)) {
- this.PosizioneUdcCorrenteRowChanging(this, new PosizioneUdcCorrenteRowChangeEvent(((PosizioneUdcCorrenteRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.PosizioneUdcCorrenteRowDeleted != null)) {
- this.PosizioneUdcCorrenteRowDeleted(this, new PosizioneUdcCorrenteRowChangeEvent(((PosizioneUdcCorrenteRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.PosizioneUdcCorrenteRowDeleting != null)) {
- this.PosizioneUdcCorrenteRowDeleting(this, new PosizioneUdcCorrenteRowChangeEvent(((PosizioneUdcCorrenteRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemovePosizioneUdcCorrenteRow(PosizioneUdcCorrenteRow 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 = "PosizioneUdcCorrenteDataTable";
- 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.
- ///
- [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 AnagCelleDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodMag;
-
- private global::System.Data.DataColumn columnCodCella;
-
- private global::System.Data.DataColumn columnCapacita;
-
- private global::System.Data.DataColumn columnDescrizione;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleDataTable() {
- this.TableName = "AnagCelle";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagCelleDataTable(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 AnagCelleDataTable(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 CodMagColumn {
- get {
- return this.columnCodMag;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCellaColumn {
- get {
- return this.columnCodCella;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CapacitaColumn {
- get {
- return this.columnCapacita;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DescrizioneColumn {
- get {
- return this.columnDescrizione;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleRow this[int index] {
- get {
- return ((AnagCelleRow)(this.Rows[index]));
- }
- }
-
- public event AnagCelleRowChangeEventHandler AnagCelleRowChanging;
-
- public event AnagCelleRowChangeEventHandler AnagCelleRowChanged;
-
- public event AnagCelleRowChangeEventHandler AnagCelleRowDeleting;
-
- public event AnagCelleRowChangeEventHandler AnagCelleRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddAnagCelleRow(AnagCelleRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleRow AddAnagCelleRow(AnagMagRow parentAnagMagRowByFK_AnagCelle_AnagMag, string CodCella, int Capacita, string Descrizione) {
- AnagCelleRow rowAnagCelleRow = ((AnagCelleRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- null,
- CodCella,
- Capacita,
- Descrizione};
- if ((parentAnagMagRowByFK_AnagCelle_AnagMag != null)) {
- columnValuesArray[0] = parentAnagMagRowByFK_AnagCelle_AnagMag[0];
- }
- rowAnagCelleRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagCelleRow);
- return rowAnagCelleRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleRow FindByCodMagCodCella(string CodMag, string CodCella) {
- return ((AnagCelleRow)(this.Rows.Find(new object[] {
- CodMag,
- CodCella})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- AnagCelleDataTable cln = ((AnagCelleDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagCelleDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodMag = base.Columns["CodMag"];
- this.columnCodCella = base.Columns["CodCella"];
- this.columnCapacita = base.Columns["Capacita"];
- this.columnDescrizione = base.Columns["Descrizione"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodMag = new global::System.Data.DataColumn("CodMag", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodMag);
- this.columnCodCella = new global::System.Data.DataColumn("CodCella", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodCella);
- this.columnCapacita = new global::System.Data.DataColumn("Capacita", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCapacita);
- this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescrizione);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodMag,
- this.columnCodCella}, true));
- this.columnCodMag.AllowDBNull = false;
- this.columnCodMag.MaxLength = 50;
- this.columnCodCella.AllowDBNull = false;
- this.columnCodCella.MaxLength = 50;
- this.columnDescrizione.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleRow NewAnagCelleRow() {
- return ((AnagCelleRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagCelleRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(AnagCelleRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagCelleRowChanged != null)) {
- this.AnagCelleRowChanged(this, new AnagCelleRowChangeEvent(((AnagCelleRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagCelleRowChanging != null)) {
- this.AnagCelleRowChanging(this, new AnagCelleRowChangeEvent(((AnagCelleRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagCelleRowDeleted != null)) {
- this.AnagCelleRowDeleted(this, new AnagCelleRowChangeEvent(((AnagCelleRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagCelleRowDeleting != null)) {
- this.AnagCelleRowDeleting(this, new AnagCelleRowChangeEvent(((AnagCelleRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveAnagCelleRow(AnagCelleRow 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 = "AnagCelleDataTable";
- 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.
- ///
- [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 PosizioneUdcStoricoDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnUDC;
-
- private global::System.Data.DataColumn columnCodMag;
-
- private global::System.Data.DataColumn columnCodCella;
-
- private global::System.Data.DataColumn columnDataInizio;
-
- private global::System.Data.DataColumn columnDataFine;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcStoricoDataTable() {
- this.TableName = "PosizioneUdcStorico";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal PosizioneUdcStoricoDataTable(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 PosizioneUdcStoricoDataTable(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 UDCColumn {
- get {
- return this.columnUDC;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodMagColumn {
- get {
- return this.columnCodMag;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCellaColumn {
- get {
- return this.columnCodCella;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DataInizioColumn {
- get {
- return this.columnDataInizio;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DataFineColumn {
- get {
- return this.columnDataFine;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcStoricoRow this[int index] {
- get {
- return ((PosizioneUdcStoricoRow)(this.Rows[index]));
- }
- }
-
- public event PosizioneUdcStoricoRowChangeEventHandler PosizioneUdcStoricoRowChanging;
-
- public event PosizioneUdcStoricoRowChangeEventHandler PosizioneUdcStoricoRowChanged;
-
- public event PosizioneUdcStoricoRowChangeEventHandler PosizioneUdcStoricoRowDeleting;
-
- public event PosizioneUdcStoricoRowChangeEventHandler PosizioneUdcStoricoRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddPosizioneUdcStoricoRow(PosizioneUdcStoricoRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcStoricoRow AddPosizioneUdcStoricoRow(ElencoCartelliniRow parentElencoCartelliniRowByFK_PosizioneUdcStorico_ElencoCartellini, string CodMag, string CodCella, System.DateTime DataInizio, System.DateTime DataFine) {
- PosizioneUdcStoricoRow rowPosizioneUdcStoricoRow = ((PosizioneUdcStoricoRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- null,
- CodMag,
- CodCella,
- DataInizio,
- DataFine};
- if ((parentElencoCartelliniRowByFK_PosizioneUdcStorico_ElencoCartellini != null)) {
- columnValuesArray[0] = parentElencoCartelliniRowByFK_PosizioneUdcStorico_ElencoCartellini[0];
- }
- rowPosizioneUdcStoricoRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowPosizioneUdcStoricoRow);
- return rowPosizioneUdcStoricoRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcStoricoRow FindByUDCCodMagCodCellaDataInizio(string UDC, string CodMag, string CodCella, System.DateTime DataInizio) {
- return ((PosizioneUdcStoricoRow)(this.Rows.Find(new object[] {
- UDC,
- CodMag,
- CodCella,
- DataInizio})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- PosizioneUdcStoricoDataTable cln = ((PosizioneUdcStoricoDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new PosizioneUdcStoricoDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnUDC = base.Columns["UDC"];
- this.columnCodMag = base.Columns["CodMag"];
- this.columnCodCella = base.Columns["CodCella"];
- this.columnDataInizio = base.Columns["DataInizio"];
- this.columnDataFine = base.Columns["DataFine"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnUDC);
- this.columnCodMag = new global::System.Data.DataColumn("CodMag", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodMag);
- this.columnCodCella = new global::System.Data.DataColumn("CodCella", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodCella);
- this.columnDataInizio = new global::System.Data.DataColumn("DataInizio", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDataInizio);
- this.columnDataFine = new global::System.Data.DataColumn("DataFine", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDataFine);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnUDC,
- this.columnCodMag,
- this.columnCodCella,
- this.columnDataInizio}, true));
- this.columnUDC.AllowDBNull = false;
- this.columnUDC.MaxLength = 50;
- this.columnCodMag.AllowDBNull = false;
- this.columnCodMag.MaxLength = 50;
- this.columnCodCella.AllowDBNull = false;
- this.columnCodCella.MaxLength = 50;
- this.columnDataInizio.AllowDBNull = false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcStoricoRow NewPosizioneUdcStoricoRow() {
- return ((PosizioneUdcStoricoRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new PosizioneUdcStoricoRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(PosizioneUdcStoricoRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.PosizioneUdcStoricoRowChanged != null)) {
- this.PosizioneUdcStoricoRowChanged(this, new PosizioneUdcStoricoRowChangeEvent(((PosizioneUdcStoricoRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.PosizioneUdcStoricoRowChanging != null)) {
- this.PosizioneUdcStoricoRowChanging(this, new PosizioneUdcStoricoRowChangeEvent(((PosizioneUdcStoricoRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.PosizioneUdcStoricoRowDeleted != null)) {
- this.PosizioneUdcStoricoRowDeleted(this, new PosizioneUdcStoricoRowChangeEvent(((PosizioneUdcStoricoRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.PosizioneUdcStoricoRowDeleting != null)) {
- this.PosizioneUdcStoricoRowDeleting(this, new PosizioneUdcStoricoRowChangeEvent(((PosizioneUdcStoricoRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemovePosizioneUdcStoricoRow(PosizioneUdcStoricoRow 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 = "PosizioneUdcStoricoDataTable";
- 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.
///
@@ -2122,6 +1377,1765 @@ 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 PosizioneUdcCorrenteDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnUDC;
+
+ private global::System.Data.DataColumn columnIdxCella;
+
+ private global::System.Data.DataColumn columnCodCS;
+
+ private global::System.Data.DataColumn columnDataRif;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcCorrenteDataTable() {
+ this.TableName = "PosizioneUdcCorrente";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal PosizioneUdcCorrenteDataTable(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 PosizioneUdcCorrenteDataTable(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 UDCColumn {
+ get {
+ return this.columnUDC;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn IdxCellaColumn {
+ get {
+ return this.columnIdxCella;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodCSColumn {
+ get {
+ return this.columnCodCS;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DataRifColumn {
+ get {
+ return this.columnDataRif;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcCorrenteRow this[int index] {
+ get {
+ return ((PosizioneUdcCorrenteRow)(this.Rows[index]));
+ }
+ }
+
+ public event PosizioneUdcCorrenteRowChangeEventHandler PosizioneUdcCorrenteRowChanging;
+
+ public event PosizioneUdcCorrenteRowChangeEventHandler PosizioneUdcCorrenteRowChanged;
+
+ public event PosizioneUdcCorrenteRowChangeEventHandler PosizioneUdcCorrenteRowDeleting;
+
+ public event PosizioneUdcCorrenteRowChangeEventHandler PosizioneUdcCorrenteRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddPosizioneUdcCorrenteRow(PosizioneUdcCorrenteRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcCorrenteRow AddPosizioneUdcCorrenteRow(ElencoCartelliniRow parentElencoCartelliniRowByFK_PosizioneUdcCorrente_ElencoCartellini, CelleRow parentCelleRowByFK_PosizioneUdcCorrente_Celle, string CodCS, System.DateTime DataRif) {
+ PosizioneUdcCorrenteRow rowPosizioneUdcCorrenteRow = ((PosizioneUdcCorrenteRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null,
+ CodCS,
+ DataRif};
+ if ((parentElencoCartelliniRowByFK_PosizioneUdcCorrente_ElencoCartellini != null)) {
+ columnValuesArray[0] = parentElencoCartelliniRowByFK_PosizioneUdcCorrente_ElencoCartellini[0];
+ }
+ if ((parentCelleRowByFK_PosizioneUdcCorrente_Celle != null)) {
+ columnValuesArray[1] = parentCelleRowByFK_PosizioneUdcCorrente_Celle[0];
+ }
+ rowPosizioneUdcCorrenteRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowPosizioneUdcCorrenteRow);
+ return rowPosizioneUdcCorrenteRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcCorrenteRow FindByUDCIdxCella(string UDC, int IdxCella) {
+ return ((PosizioneUdcCorrenteRow)(this.Rows.Find(new object[] {
+ UDC,
+ IdxCella})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ PosizioneUdcCorrenteDataTable cln = ((PosizioneUdcCorrenteDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new PosizioneUdcCorrenteDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnUDC = base.Columns["UDC"];
+ this.columnIdxCella = base.Columns["IdxCella"];
+ this.columnCodCS = base.Columns["CodCS"];
+ this.columnDataRif = base.Columns["DataRif"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnUDC);
+ this.columnIdxCella = new global::System.Data.DataColumn("IdxCella", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxCella);
+ this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCS);
+ this.columnDataRif = new global::System.Data.DataColumn("DataRif", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDataRif);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnUDC,
+ this.columnIdxCella}, true));
+ this.columnUDC.AllowDBNull = false;
+ this.columnUDC.MaxLength = 50;
+ this.columnIdxCella.AllowDBNull = false;
+ this.columnCodCS.AllowDBNull = false;
+ this.columnCodCS.MaxLength = 2;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcCorrenteRow NewPosizioneUdcCorrenteRow() {
+ return ((PosizioneUdcCorrenteRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new PosizioneUdcCorrenteRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(PosizioneUdcCorrenteRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.PosizioneUdcCorrenteRowChanged != null)) {
+ this.PosizioneUdcCorrenteRowChanged(this, new PosizioneUdcCorrenteRowChangeEvent(((PosizioneUdcCorrenteRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.PosizioneUdcCorrenteRowChanging != null)) {
+ this.PosizioneUdcCorrenteRowChanging(this, new PosizioneUdcCorrenteRowChangeEvent(((PosizioneUdcCorrenteRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.PosizioneUdcCorrenteRowDeleted != null)) {
+ this.PosizioneUdcCorrenteRowDeleted(this, new PosizioneUdcCorrenteRowChangeEvent(((PosizioneUdcCorrenteRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.PosizioneUdcCorrenteRowDeleting != null)) {
+ this.PosizioneUdcCorrenteRowDeleting(this, new PosizioneUdcCorrenteRowChangeEvent(((PosizioneUdcCorrenteRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemovePosizioneUdcCorrenteRow(PosizioneUdcCorrenteRow 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 = "PosizioneUdcCorrenteDataTable";
+ 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.
+ ///
+ [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 PosizioneUdcStoricoDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnUDC;
+
+ private global::System.Data.DataColumn columnIdxCella;
+
+ private global::System.Data.DataColumn columnCodCS;
+
+ private global::System.Data.DataColumn columnDataInizio;
+
+ private global::System.Data.DataColumn columnDataFine;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcStoricoDataTable() {
+ this.TableName = "PosizioneUdcStorico";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal PosizioneUdcStoricoDataTable(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 PosizioneUdcStoricoDataTable(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 UDCColumn {
+ get {
+ return this.columnUDC;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn IdxCellaColumn {
+ get {
+ return this.columnIdxCella;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodCSColumn {
+ get {
+ return this.columnCodCS;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DataInizioColumn {
+ get {
+ return this.columnDataInizio;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DataFineColumn {
+ get {
+ return this.columnDataFine;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcStoricoRow this[int index] {
+ get {
+ return ((PosizioneUdcStoricoRow)(this.Rows[index]));
+ }
+ }
+
+ public event PosizioneUdcStoricoRowChangeEventHandler PosizioneUdcStoricoRowChanging;
+
+ public event PosizioneUdcStoricoRowChangeEventHandler PosizioneUdcStoricoRowChanged;
+
+ public event PosizioneUdcStoricoRowChangeEventHandler PosizioneUdcStoricoRowDeleting;
+
+ public event PosizioneUdcStoricoRowChangeEventHandler PosizioneUdcStoricoRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddPosizioneUdcStoricoRow(PosizioneUdcStoricoRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcStoricoRow AddPosizioneUdcStoricoRow(ElencoCartelliniRow parentElencoCartelliniRowByFK_PosizioneUdcStorico_ElencoCartellini, int IdxCella, string CodCS, System.DateTime DataInizio, System.DateTime DataFine) {
+ PosizioneUdcStoricoRow rowPosizioneUdcStoricoRow = ((PosizioneUdcStoricoRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ IdxCella,
+ CodCS,
+ DataInizio,
+ DataFine};
+ if ((parentElencoCartelliniRowByFK_PosizioneUdcStorico_ElencoCartellini != null)) {
+ columnValuesArray[0] = parentElencoCartelliniRowByFK_PosizioneUdcStorico_ElencoCartellini[0];
+ }
+ rowPosizioneUdcStoricoRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowPosizioneUdcStoricoRow);
+ return rowPosizioneUdcStoricoRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcStoricoRow FindByUDCIdxCella(string UDC, int IdxCella) {
+ return ((PosizioneUdcStoricoRow)(this.Rows.Find(new object[] {
+ UDC,
+ IdxCella})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ PosizioneUdcStoricoDataTable cln = ((PosizioneUdcStoricoDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new PosizioneUdcStoricoDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnUDC = base.Columns["UDC"];
+ this.columnIdxCella = base.Columns["IdxCella"];
+ this.columnCodCS = base.Columns["CodCS"];
+ this.columnDataInizio = base.Columns["DataInizio"];
+ this.columnDataFine = base.Columns["DataFine"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnUDC);
+ this.columnIdxCella = new global::System.Data.DataColumn("IdxCella", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxCella);
+ this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCS);
+ this.columnDataInizio = new global::System.Data.DataColumn("DataInizio", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDataInizio);
+ this.columnDataFine = new global::System.Data.DataColumn("DataFine", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDataFine);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnUDC,
+ this.columnIdxCella}, true));
+ this.columnUDC.AllowDBNull = false;
+ this.columnUDC.MaxLength = 50;
+ this.columnIdxCella.AllowDBNull = false;
+ this.columnCodCS.AllowDBNull = false;
+ this.columnCodCS.MaxLength = 2;
+ this.columnDataInizio.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcStoricoRow NewPosizioneUdcStoricoRow() {
+ return ((PosizioneUdcStoricoRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new PosizioneUdcStoricoRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(PosizioneUdcStoricoRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.PosizioneUdcStoricoRowChanged != null)) {
+ this.PosizioneUdcStoricoRowChanged(this, new PosizioneUdcStoricoRowChangeEvent(((PosizioneUdcStoricoRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.PosizioneUdcStoricoRowChanging != null)) {
+ this.PosizioneUdcStoricoRowChanging(this, new PosizioneUdcStoricoRowChangeEvent(((PosizioneUdcStoricoRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.PosizioneUdcStoricoRowDeleted != null)) {
+ this.PosizioneUdcStoricoRowDeleted(this, new PosizioneUdcStoricoRowChangeEvent(((PosizioneUdcStoricoRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.PosizioneUdcStoricoRowDeleting != null)) {
+ this.PosizioneUdcStoricoRowDeleting(this, new PosizioneUdcStoricoRowChangeEvent(((PosizioneUdcStoricoRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemovePosizioneUdcStoricoRow(PosizioneUdcStoricoRow 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 = "PosizioneUdcStoricoDataTable";
+ 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.
+ ///
+ [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 BlocchiDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnIdxBlocco;
+
+ private global::System.Data.DataColumn columnIdxMappa;
+
+ private global::System.Data.DataColumn columnCodBlocco;
+
+ private global::System.Data.DataColumn columnDescBlocco;
+
+ private global::System.Data.DataColumn columnNumX;
+
+ private global::System.Data.DataColumn columnNumY;
+
+ private global::System.Data.DataColumn columnNumZ;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public BlocchiDataTable() {
+ this.TableName = "Blocchi";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal BlocchiDataTable(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 BlocchiDataTable(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 IdxBloccoColumn {
+ get {
+ return this.columnIdxBlocco;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn IdxMappaColumn {
+ get {
+ return this.columnIdxMappa;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodBloccoColumn {
+ get {
+ return this.columnCodBlocco;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DescBloccoColumn {
+ get {
+ return this.columnDescBlocco;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn NumXColumn {
+ get {
+ return this.columnNumX;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn NumYColumn {
+ get {
+ return this.columnNumY;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn NumZColumn {
+ get {
+ return this.columnNumZ;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public BlocchiRow this[int index] {
+ get {
+ return ((BlocchiRow)(this.Rows[index]));
+ }
+ }
+
+ public event BlocchiRowChangeEventHandler BlocchiRowChanging;
+
+ public event BlocchiRowChangeEventHandler BlocchiRowChanged;
+
+ public event BlocchiRowChangeEventHandler BlocchiRowDeleting;
+
+ public event BlocchiRowChangeEventHandler BlocchiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddBlocchiRow(BlocchiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public BlocchiRow AddBlocchiRow(int IdxBlocco, MappeRow parentMappeRowByFK_Blocchi_Mappe, string CodBlocco, string DescBlocco, int NumX, int NumY, int NumZ) {
+ BlocchiRow rowBlocchiRow = ((BlocchiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ IdxBlocco,
+ null,
+ CodBlocco,
+ DescBlocco,
+ NumX,
+ NumY,
+ NumZ};
+ if ((parentMappeRowByFK_Blocchi_Mappe != null)) {
+ columnValuesArray[1] = parentMappeRowByFK_Blocchi_Mappe[0];
+ }
+ rowBlocchiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowBlocchiRow);
+ return rowBlocchiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public BlocchiRow FindByIdxBlocco(int IdxBlocco) {
+ return ((BlocchiRow)(this.Rows.Find(new object[] {
+ IdxBlocco})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ BlocchiDataTable cln = ((BlocchiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new BlocchiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnIdxBlocco = base.Columns["IdxBlocco"];
+ this.columnIdxMappa = base.Columns["IdxMappa"];
+ this.columnCodBlocco = base.Columns["CodBlocco"];
+ this.columnDescBlocco = base.Columns["DescBlocco"];
+ this.columnNumX = base.Columns["NumX"];
+ this.columnNumY = base.Columns["NumY"];
+ this.columnNumZ = base.Columns["NumZ"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnIdxBlocco = new global::System.Data.DataColumn("IdxBlocco", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxBlocco);
+ this.columnIdxMappa = new global::System.Data.DataColumn("IdxMappa", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxMappa);
+ this.columnCodBlocco = new global::System.Data.DataColumn("CodBlocco", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodBlocco);
+ this.columnDescBlocco = new global::System.Data.DataColumn("DescBlocco", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescBlocco);
+ this.columnNumX = new global::System.Data.DataColumn("NumX", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNumX);
+ this.columnNumY = new global::System.Data.DataColumn("NumY", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNumY);
+ this.columnNumZ = new global::System.Data.DataColumn("NumZ", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNumZ);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxBlocco}, true));
+ this.columnIdxBlocco.AllowDBNull = false;
+ this.columnIdxBlocco.Unique = true;
+ this.columnIdxMappa.AllowDBNull = false;
+ this.columnCodBlocco.MaxLength = 50;
+ this.columnDescBlocco.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public BlocchiRow NewBlocchiRow() {
+ return ((BlocchiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new BlocchiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(BlocchiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.BlocchiRowChanged != null)) {
+ this.BlocchiRowChanged(this, new BlocchiRowChangeEvent(((BlocchiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.BlocchiRowChanging != null)) {
+ this.BlocchiRowChanging(this, new BlocchiRowChangeEvent(((BlocchiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.BlocchiRowDeleted != null)) {
+ this.BlocchiRowDeleted(this, new BlocchiRowChangeEvent(((BlocchiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.BlocchiRowDeleting != null)) {
+ this.BlocchiRowDeleting(this, new BlocchiRowChangeEvent(((BlocchiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveBlocchiRow(BlocchiRow 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 = "BlocchiDataTable";
+ 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.
+ ///
+ [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 CelleDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnIdxCella;
+
+ private global::System.Data.DataColumn columnCodCS;
+
+ private global::System.Data.DataColumn columnCodCella;
+
+ private global::System.Data.DataColumn columnCapacita;
+
+ private global::System.Data.DataColumn columnDescrizione;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public CelleDataTable() {
+ this.TableName = "Celle";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal CelleDataTable(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 CelleDataTable(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 IdxCellaColumn {
+ get {
+ return this.columnIdxCella;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodCSColumn {
+ get {
+ return this.columnCodCS;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodCellaColumn {
+ get {
+ return this.columnCodCella;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CapacitaColumn {
+ get {
+ return this.columnCapacita;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DescrizioneColumn {
+ get {
+ return this.columnDescrizione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public CelleRow this[int index] {
+ get {
+ return ((CelleRow)(this.Rows[index]));
+ }
+ }
+
+ public event CelleRowChangeEventHandler CelleRowChanging;
+
+ public event CelleRowChangeEventHandler CelleRowChanged;
+
+ public event CelleRowChangeEventHandler CelleRowDeleting;
+
+ public event CelleRowChangeEventHandler CelleRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddCelleRow(CelleRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public CelleRow AddCelleRow(string CodCS, string CodCella, int Capacita, string Descrizione) {
+ CelleRow rowCelleRow = ((CelleRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ CodCS,
+ CodCella,
+ Capacita,
+ Descrizione};
+ rowCelleRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowCelleRow);
+ return rowCelleRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public CelleRow FindByIdxCella(int IdxCella) {
+ return ((CelleRow)(this.Rows.Find(new object[] {
+ IdxCella})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ CelleDataTable cln = ((CelleDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new CelleDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnIdxCella = base.Columns["IdxCella"];
+ this.columnCodCS = base.Columns["CodCS"];
+ this.columnCodCella = base.Columns["CodCella"];
+ this.columnCapacita = base.Columns["Capacita"];
+ this.columnDescrizione = base.Columns["Descrizione"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnIdxCella = new global::System.Data.DataColumn("IdxCella", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxCella);
+ this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCS);
+ this.columnCodCella = new global::System.Data.DataColumn("CodCella", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCella);
+ this.columnCapacita = new global::System.Data.DataColumn("Capacita", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCapacita);
+ this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrizione);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxCella}, true));
+ this.columnIdxCella.AutoIncrement = true;
+ this.columnIdxCella.AutoIncrementSeed = -1;
+ this.columnIdxCella.AutoIncrementStep = -1;
+ this.columnIdxCella.AllowDBNull = false;
+ this.columnIdxCella.ReadOnly = true;
+ this.columnIdxCella.Unique = true;
+ this.columnCodCS.AllowDBNull = false;
+ this.columnCodCS.MaxLength = 2;
+ this.columnCodCella.AllowDBNull = false;
+ this.columnCodCella.MaxLength = 50;
+ this.columnDescrizione.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public CelleRow NewCelleRow() {
+ return ((CelleRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new CelleRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(CelleRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.CelleRowChanged != null)) {
+ this.CelleRowChanged(this, new CelleRowChangeEvent(((CelleRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.CelleRowChanging != null)) {
+ this.CelleRowChanging(this, new CelleRowChangeEvent(((CelleRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.CelleRowDeleted != null)) {
+ this.CelleRowDeleted(this, new CelleRowChangeEvent(((CelleRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.CelleRowDeleting != null)) {
+ this.CelleRowDeleting(this, new CelleRowChangeEvent(((CelleRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveCelleRow(CelleRow 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 = "CelleDataTable";
+ 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.
+ ///
+ [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 Celle2BlocchiDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnIdxBlocco;
+
+ private global::System.Data.DataColumn columnIdxCella;
+
+ private global::System.Data.DataColumn columnX;
+
+ private global::System.Data.DataColumn columnY;
+
+ private global::System.Data.DataColumn columnZ;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Celle2BlocchiDataTable() {
+ this.TableName = "Celle2Blocchi";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal Celle2BlocchiDataTable(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 Celle2BlocchiDataTable(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 IdxBloccoColumn {
+ get {
+ return this.columnIdxBlocco;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn IdxCellaColumn {
+ get {
+ return this.columnIdxCella;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn XColumn {
+ get {
+ return this.columnX;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn YColumn {
+ get {
+ return this.columnY;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn ZColumn {
+ get {
+ return this.columnZ;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Celle2BlocchiRow this[int index] {
+ get {
+ return ((Celle2BlocchiRow)(this.Rows[index]));
+ }
+ }
+
+ public event Celle2BlocchiRowChangeEventHandler Celle2BlocchiRowChanging;
+
+ public event Celle2BlocchiRowChangeEventHandler Celle2BlocchiRowChanged;
+
+ public event Celle2BlocchiRowChangeEventHandler Celle2BlocchiRowDeleting;
+
+ public event Celle2BlocchiRowChangeEventHandler Celle2BlocchiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddCelle2BlocchiRow(Celle2BlocchiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Celle2BlocchiRow AddCelle2BlocchiRow(BlocchiRow parentBlocchiRowByFK_Celle2Blocchi_Blocchi, CelleRow parentCelleRowByFK_Celle2Blocchi_Celle, int X, int Y, int Z) {
+ Celle2BlocchiRow rowCelle2BlocchiRow = ((Celle2BlocchiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null,
+ X,
+ Y,
+ Z};
+ if ((parentBlocchiRowByFK_Celle2Blocchi_Blocchi != null)) {
+ columnValuesArray[0] = parentBlocchiRowByFK_Celle2Blocchi_Blocchi[0];
+ }
+ if ((parentCelleRowByFK_Celle2Blocchi_Celle != null)) {
+ columnValuesArray[1] = parentCelleRowByFK_Celle2Blocchi_Celle[0];
+ }
+ rowCelle2BlocchiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowCelle2BlocchiRow);
+ return rowCelle2BlocchiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Celle2BlocchiRow FindByIdxBloccoIdxCella(int IdxBlocco, int IdxCella) {
+ return ((Celle2BlocchiRow)(this.Rows.Find(new object[] {
+ IdxBlocco,
+ IdxCella})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ Celle2BlocchiDataTable cln = ((Celle2BlocchiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new Celle2BlocchiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnIdxBlocco = base.Columns["IdxBlocco"];
+ this.columnIdxCella = base.Columns["IdxCella"];
+ this.columnX = base.Columns["X"];
+ this.columnY = base.Columns["Y"];
+ this.columnZ = base.Columns["Z"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnIdxBlocco = new global::System.Data.DataColumn("IdxBlocco", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxBlocco);
+ this.columnIdxCella = new global::System.Data.DataColumn("IdxCella", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxCella);
+ this.columnX = new global::System.Data.DataColumn("X", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnX);
+ this.columnY = new global::System.Data.DataColumn("Y", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnY);
+ this.columnZ = new global::System.Data.DataColumn("Z", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnZ);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxBlocco,
+ this.columnIdxCella}, true));
+ this.columnIdxBlocco.AllowDBNull = false;
+ this.columnIdxCella.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Celle2BlocchiRow NewCelle2BlocchiRow() {
+ return ((Celle2BlocchiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new Celle2BlocchiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(Celle2BlocchiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.Celle2BlocchiRowChanged != null)) {
+ this.Celle2BlocchiRowChanged(this, new Celle2BlocchiRowChangeEvent(((Celle2BlocchiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.Celle2BlocchiRowChanging != null)) {
+ this.Celle2BlocchiRowChanging(this, new Celle2BlocchiRowChangeEvent(((Celle2BlocchiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.Celle2BlocchiRowDeleted != null)) {
+ this.Celle2BlocchiRowDeleted(this, new Celle2BlocchiRowChangeEvent(((Celle2BlocchiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.Celle2BlocchiRowDeleting != null)) {
+ this.Celle2BlocchiRowDeleting(this, new Celle2BlocchiRowChangeEvent(((Celle2BlocchiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveCelle2BlocchiRow(Celle2BlocchiRow 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 = "Celle2BlocchiDataTable";
+ 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.
+ ///
+ [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 MappeDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnIdxMappa;
+
+ private global::System.Data.DataColumn columnCodMag;
+
+ private global::System.Data.DataColumn columnCodCS;
+
+ private global::System.Data.DataColumn columnDescMappa;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public MappeDataTable() {
+ this.TableName = "Mappe";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal MappeDataTable(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 MappeDataTable(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 IdxMappaColumn {
+ get {
+ return this.columnIdxMappa;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodMagColumn {
+ get {
+ return this.columnCodMag;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodCSColumn {
+ get {
+ return this.columnCodCS;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DescMappaColumn {
+ get {
+ return this.columnDescMappa;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public MappeRow this[int index] {
+ get {
+ return ((MappeRow)(this.Rows[index]));
+ }
+ }
+
+ public event MappeRowChangeEventHandler MappeRowChanging;
+
+ public event MappeRowChangeEventHandler MappeRowChanged;
+
+ public event MappeRowChangeEventHandler MappeRowDeleting;
+
+ public event MappeRowChangeEventHandler MappeRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddMappeRow(MappeRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public MappeRow AddMappeRow(int IdxMappa, string CodMag, string CodCS, string DescMappa) {
+ MappeRow rowMappeRow = ((MappeRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ IdxMappa,
+ CodMag,
+ CodCS,
+ DescMappa};
+ rowMappeRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowMappeRow);
+ return rowMappeRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public MappeRow FindByIdxMappa(int IdxMappa) {
+ return ((MappeRow)(this.Rows.Find(new object[] {
+ IdxMappa})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ MappeDataTable cln = ((MappeDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new MappeDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnIdxMappa = base.Columns["IdxMappa"];
+ this.columnCodMag = base.Columns["CodMag"];
+ this.columnCodCS = base.Columns["CodCS"];
+ this.columnDescMappa = base.Columns["DescMappa"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnIdxMappa = new global::System.Data.DataColumn("IdxMappa", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxMappa);
+ this.columnCodMag = new global::System.Data.DataColumn("CodMag", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodMag);
+ this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCS);
+ this.columnDescMappa = new global::System.Data.DataColumn("DescMappa", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescMappa);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxMappa}, true));
+ this.columnIdxMappa.AllowDBNull = false;
+ this.columnIdxMappa.Unique = true;
+ this.columnCodMag.AllowDBNull = false;
+ this.columnCodMag.MaxLength = 50;
+ this.columnCodCS.AllowDBNull = false;
+ this.columnCodCS.MaxLength = 2;
+ this.columnDescMappa.AllowDBNull = false;
+ this.columnDescMappa.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public MappeRow NewMappeRow() {
+ return ((MappeRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new MappeRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(MappeRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.MappeRowChanged != null)) {
+ this.MappeRowChanged(this, new MappeRowChangeEvent(((MappeRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.MappeRowChanging != null)) {
+ this.MappeRowChanging(this, new MappeRowChangeEvent(((MappeRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.MappeRowDeleted != null)) {
+ this.MappeRowDeleted(this, new MappeRowChangeEvent(((MappeRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.MappeRowDeleting != null)) {
+ this.MappeRowDeleting(this, new MappeRowChangeEvent(((MappeRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveMappeRow(MappeRow 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 = "MappeDataTable";
+ 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.
///
@@ -2767,291 +3781,6 @@ namespace GMW_data {
}
}
- ///
- ///Represents strongly named DataRow class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class PosizioneUdcCorrenteRow : global::System.Data.DataRow {
-
- private PosizioneUdcCorrenteDataTable tablePosizioneUdcCorrente;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal PosizioneUdcCorrenteRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tablePosizioneUdcCorrente = ((PosizioneUdcCorrenteDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string UDC {
- get {
- return ((string)(this[this.tablePosizioneUdcCorrente.UDCColumn]));
- }
- set {
- this[this.tablePosizioneUdcCorrente.UDCColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodMag {
- get {
- return ((string)(this[this.tablePosizioneUdcCorrente.CodMagColumn]));
- }
- set {
- this[this.tablePosizioneUdcCorrente.CodMagColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodCella {
- get {
- return ((string)(this[this.tablePosizioneUdcCorrente.CodCellaColumn]));
- }
- set {
- this[this.tablePosizioneUdcCorrente.CodCellaColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime DataRif {
- get {
- try {
- return ((global::System.DateTime)(this[this.tablePosizioneUdcCorrente.DataRifColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DataRif\' in table \'PosizioneUdcCorrente\' is DBNull.", e);
- }
- }
- set {
- this[this.tablePosizioneUdcCorrente.DataRifColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public ElencoCartelliniRow ElencoCartelliniRow {
- get {
- return ((ElencoCartelliniRow)(this.GetParentRow(this.Table.ParentRelations["FK_PosizioneUdcCorrente_ElencoCartellini"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_PosizioneUdcCorrente_ElencoCartellini"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleRow AnagCelleRowParent {
- get {
- return ((AnagCelleRow)(this.GetParentRow(this.Table.ParentRelations["FK_PosizioneUdcCorrente_AnagCelle"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_PosizioneUdcCorrente_AnagCelle"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDataRifNull() {
- return this.IsNull(this.tablePosizioneUdcCorrente.DataRifColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDataRifNull() {
- this[this.tablePosizioneUdcCorrente.DataRifColumn] = global::System.Convert.DBNull;
- }
- }
-
- ///
- ///Represents strongly named DataRow class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AnagCelleRow : global::System.Data.DataRow {
-
- private AnagCelleDataTable tableAnagCelle;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagCelleRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagCelle = ((AnagCelleDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodMag {
- get {
- return ((string)(this[this.tableAnagCelle.CodMagColumn]));
- }
- set {
- this[this.tableAnagCelle.CodMagColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodCella {
- get {
- return ((string)(this[this.tableAnagCelle.CodCellaColumn]));
- }
- set {
- this[this.tableAnagCelle.CodCellaColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int Capacita {
- get {
- try {
- return ((int)(this[this.tableAnagCelle.CapacitaColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Capacita\' in table \'AnagCelle\' is DBNull.", e);
- }
- }
- set {
- this[this.tableAnagCelle.CapacitaColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Descrizione {
- get {
- try {
- return ((string)(this[this.tableAnagCelle.DescrizioneColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'AnagCelle\' is DBNull.", e);
- }
- }
- set {
- this[this.tableAnagCelle.DescrizioneColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagRow AnagMagRow {
- get {
- return ((AnagMagRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagCelle_AnagMag"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_AnagCelle_AnagMag"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCapacitaNull() {
- return this.IsNull(this.tableAnagCelle.CapacitaColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCapacitaNull() {
- this[this.tableAnagCelle.CapacitaColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDescrizioneNull() {
- return this.IsNull(this.tableAnagCelle.DescrizioneColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescrizioneNull() {
- this[this.tableAnagCelle.DescrizioneColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public PosizioneUdcCorrenteRow[] GetPosizioneUdcCorrenteRows() {
- if ((this.Table.ChildRelations["FK_PosizioneUdcCorrente_AnagCelle"] == null)) {
- return new PosizioneUdcCorrenteRow[0];
- }
- else {
- return ((PosizioneUdcCorrenteRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PosizioneUdcCorrente_AnagCelle"])));
- }
- }
- }
-
- ///
- ///Represents strongly named DataRow class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class PosizioneUdcStoricoRow : global::System.Data.DataRow {
-
- private PosizioneUdcStoricoDataTable tablePosizioneUdcStorico;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal PosizioneUdcStoricoRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tablePosizioneUdcStorico = ((PosizioneUdcStoricoDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string UDC {
- get {
- return ((string)(this[this.tablePosizioneUdcStorico.UDCColumn]));
- }
- set {
- this[this.tablePosizioneUdcStorico.UDCColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodMag {
- get {
- return ((string)(this[this.tablePosizioneUdcStorico.CodMagColumn]));
- }
- set {
- this[this.tablePosizioneUdcStorico.CodMagColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodCella {
- get {
- return ((string)(this[this.tablePosizioneUdcStorico.CodCellaColumn]));
- }
- set {
- this[this.tablePosizioneUdcStorico.CodCellaColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime DataInizio {
- get {
- return ((global::System.DateTime)(this[this.tablePosizioneUdcStorico.DataInizioColumn]));
- }
- set {
- this[this.tablePosizioneUdcStorico.DataInizioColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime DataFine {
- get {
- try {
- return ((global::System.DateTime)(this[this.tablePosizioneUdcStorico.DataFineColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DataFine\' in table \'PosizioneUdcStorico\' is DBNull.", e);
- }
- }
- set {
- this[this.tablePosizioneUdcStorico.DataFineColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public ElencoCartelliniRow ElencoCartelliniRow {
- get {
- return ((ElencoCartelliniRow)(this.GetParentRow(this.Table.ParentRelations["FK_PosizioneUdcStorico_ElencoCartellini"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_PosizioneUdcStorico_ElencoCartellini"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDataFineNull() {
- return this.IsNull(this.tablePosizioneUdcStorico.DataFineColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDataFineNull() {
- this[this.tablePosizioneUdcStorico.DataFineColumn] = global::System.Convert.DBNull;
- }
- }
-
///
///Represents strongly named DataRow class.
///
@@ -3112,12 +3841,692 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleRow[] GetAnagCelleRows() {
- if ((this.Table.ChildRelations["FK_AnagCelle_AnagMag"] == null)) {
- return new AnagCelleRow[0];
+ public MappeRow[] GetMappeRows() {
+ if ((this.Table.ChildRelations["FK_Mappe_AnagMag"] == null)) {
+ return new MappeRow[0];
}
else {
- return ((AnagCelleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagCelle_AnagMag"])));
+ return ((MappeRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Mappe_AnagMag"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class PosizioneUdcCorrenteRow : global::System.Data.DataRow {
+
+ private PosizioneUdcCorrenteDataTable tablePosizioneUdcCorrente;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal PosizioneUdcCorrenteRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tablePosizioneUdcCorrente = ((PosizioneUdcCorrenteDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string UDC {
+ get {
+ return ((string)(this[this.tablePosizioneUdcCorrente.UDCColumn]));
+ }
+ set {
+ this[this.tablePosizioneUdcCorrente.UDCColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxCella {
+ get {
+ return ((int)(this[this.tablePosizioneUdcCorrente.IdxCellaColumn]));
+ }
+ set {
+ this[this.tablePosizioneUdcCorrente.IdxCellaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCS {
+ get {
+ return ((string)(this[this.tablePosizioneUdcCorrente.CodCSColumn]));
+ }
+ set {
+ this[this.tablePosizioneUdcCorrente.CodCSColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime DataRif {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tablePosizioneUdcCorrente.DataRifColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DataRif\' in table \'PosizioneUdcCorrente\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablePosizioneUdcCorrente.DataRifColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public ElencoCartelliniRow ElencoCartelliniRow {
+ get {
+ return ((ElencoCartelliniRow)(this.GetParentRow(this.Table.ParentRelations["FK_PosizioneUdcCorrente_ElencoCartellini"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_PosizioneUdcCorrente_ElencoCartellini"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public CelleRow CelleRow {
+ get {
+ return ((CelleRow)(this.GetParentRow(this.Table.ParentRelations["FK_PosizioneUdcCorrente_Celle"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_PosizioneUdcCorrente_Celle"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDataRifNull() {
+ return this.IsNull(this.tablePosizioneUdcCorrente.DataRifColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDataRifNull() {
+ this[this.tablePosizioneUdcCorrente.DataRifColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class PosizioneUdcStoricoRow : global::System.Data.DataRow {
+
+ private PosizioneUdcStoricoDataTable tablePosizioneUdcStorico;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal PosizioneUdcStoricoRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tablePosizioneUdcStorico = ((PosizioneUdcStoricoDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string UDC {
+ get {
+ return ((string)(this[this.tablePosizioneUdcStorico.UDCColumn]));
+ }
+ set {
+ this[this.tablePosizioneUdcStorico.UDCColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxCella {
+ get {
+ return ((int)(this[this.tablePosizioneUdcStorico.IdxCellaColumn]));
+ }
+ set {
+ this[this.tablePosizioneUdcStorico.IdxCellaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCS {
+ get {
+ return ((string)(this[this.tablePosizioneUdcStorico.CodCSColumn]));
+ }
+ set {
+ this[this.tablePosizioneUdcStorico.CodCSColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime DataInizio {
+ get {
+ return ((global::System.DateTime)(this[this.tablePosizioneUdcStorico.DataInizioColumn]));
+ }
+ set {
+ this[this.tablePosizioneUdcStorico.DataInizioColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime DataFine {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tablePosizioneUdcStorico.DataFineColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DataFine\' in table \'PosizioneUdcStorico\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablePosizioneUdcStorico.DataFineColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public ElencoCartelliniRow ElencoCartelliniRow {
+ get {
+ return ((ElencoCartelliniRow)(this.GetParentRow(this.Table.ParentRelations["FK_PosizioneUdcStorico_ElencoCartellini"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_PosizioneUdcStorico_ElencoCartellini"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDataFineNull() {
+ return this.IsNull(this.tablePosizioneUdcStorico.DataFineColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDataFineNull() {
+ this[this.tablePosizioneUdcStorico.DataFineColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class BlocchiRow : global::System.Data.DataRow {
+
+ private BlocchiDataTable tableBlocchi;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal BlocchiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableBlocchi = ((BlocchiDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxBlocco {
+ get {
+ return ((int)(this[this.tableBlocchi.IdxBloccoColumn]));
+ }
+ set {
+ this[this.tableBlocchi.IdxBloccoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxMappa {
+ get {
+ return ((int)(this[this.tableBlocchi.IdxMappaColumn]));
+ }
+ set {
+ this[this.tableBlocchi.IdxMappaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodBlocco {
+ get {
+ try {
+ return ((string)(this[this.tableBlocchi.CodBloccoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodBlocco\' in table \'Blocchi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableBlocchi.CodBloccoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescBlocco {
+ get {
+ try {
+ return ((string)(this[this.tableBlocchi.DescBloccoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescBlocco\' in table \'Blocchi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableBlocchi.DescBloccoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int NumX {
+ get {
+ try {
+ return ((int)(this[this.tableBlocchi.NumXColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'NumX\' in table \'Blocchi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableBlocchi.NumXColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int NumY {
+ get {
+ try {
+ return ((int)(this[this.tableBlocchi.NumYColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'NumY\' in table \'Blocchi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableBlocchi.NumYColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int NumZ {
+ get {
+ try {
+ return ((int)(this[this.tableBlocchi.NumZColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'NumZ\' in table \'Blocchi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableBlocchi.NumZColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public MappeRow MappeRow {
+ get {
+ return ((MappeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Blocchi_Mappe"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Blocchi_Mappe"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodBloccoNull() {
+ return this.IsNull(this.tableBlocchi.CodBloccoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodBloccoNull() {
+ this[this.tableBlocchi.CodBloccoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescBloccoNull() {
+ return this.IsNull(this.tableBlocchi.DescBloccoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescBloccoNull() {
+ this[this.tableBlocchi.DescBloccoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsNumXNull() {
+ return this.IsNull(this.tableBlocchi.NumXColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetNumXNull() {
+ this[this.tableBlocchi.NumXColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsNumYNull() {
+ return this.IsNull(this.tableBlocchi.NumYColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetNumYNull() {
+ this[this.tableBlocchi.NumYColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsNumZNull() {
+ return this.IsNull(this.tableBlocchi.NumZColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetNumZNull() {
+ this[this.tableBlocchi.NumZColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Celle2BlocchiRow[] GetCelle2BlocchiRows() {
+ if ((this.Table.ChildRelations["FK_Celle2Blocchi_Blocchi"] == null)) {
+ return new Celle2BlocchiRow[0];
+ }
+ else {
+ return ((Celle2BlocchiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Celle2Blocchi_Blocchi"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class CelleRow : global::System.Data.DataRow {
+
+ private CelleDataTable tableCelle;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal CelleRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableCelle = ((CelleDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxCella {
+ get {
+ return ((int)(this[this.tableCelle.IdxCellaColumn]));
+ }
+ set {
+ this[this.tableCelle.IdxCellaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCS {
+ get {
+ return ((string)(this[this.tableCelle.CodCSColumn]));
+ }
+ set {
+ this[this.tableCelle.CodCSColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCella {
+ get {
+ return ((string)(this[this.tableCelle.CodCellaColumn]));
+ }
+ set {
+ this[this.tableCelle.CodCellaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int Capacita {
+ get {
+ try {
+ return ((int)(this[this.tableCelle.CapacitaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Capacita\' in table \'Celle\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle.CapacitaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Descrizione {
+ get {
+ try {
+ return ((string)(this[this.tableCelle.DescrizioneColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'Celle\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle.DescrizioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCapacitaNull() {
+ return this.IsNull(this.tableCelle.CapacitaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCapacitaNull() {
+ this[this.tableCelle.CapacitaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescrizioneNull() {
+ return this.IsNull(this.tableCelle.DescrizioneColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescrizioneNull() {
+ this[this.tableCelle.DescrizioneColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public PosizioneUdcCorrenteRow[] GetPosizioneUdcCorrenteRows() {
+ if ((this.Table.ChildRelations["FK_PosizioneUdcCorrente_Celle"] == null)) {
+ return new PosizioneUdcCorrenteRow[0];
+ }
+ else {
+ return ((PosizioneUdcCorrenteRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PosizioneUdcCorrente_Celle"])));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Celle2BlocchiRow[] GetCelle2BlocchiRows() {
+ if ((this.Table.ChildRelations["FK_Celle2Blocchi_Celle"] == null)) {
+ return new Celle2BlocchiRow[0];
+ }
+ else {
+ return ((Celle2BlocchiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Celle2Blocchi_Celle"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class Celle2BlocchiRow : global::System.Data.DataRow {
+
+ private Celle2BlocchiDataTable tableCelle2Blocchi;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal Celle2BlocchiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableCelle2Blocchi = ((Celle2BlocchiDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxBlocco {
+ get {
+ return ((int)(this[this.tableCelle2Blocchi.IdxBloccoColumn]));
+ }
+ set {
+ this[this.tableCelle2Blocchi.IdxBloccoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxCella {
+ get {
+ return ((int)(this[this.tableCelle2Blocchi.IdxCellaColumn]));
+ }
+ set {
+ this[this.tableCelle2Blocchi.IdxCellaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int X {
+ get {
+ try {
+ return ((int)(this[this.tableCelle2Blocchi.XColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'X\' in table \'Celle2Blocchi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle2Blocchi.XColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int Y {
+ get {
+ try {
+ return ((int)(this[this.tableCelle2Blocchi.YColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Y\' in table \'Celle2Blocchi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle2Blocchi.YColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int Z {
+ get {
+ try {
+ return ((int)(this[this.tableCelle2Blocchi.ZColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Z\' in table \'Celle2Blocchi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle2Blocchi.ZColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public BlocchiRow BlocchiRow {
+ get {
+ return ((BlocchiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Celle2Blocchi_Blocchi"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Celle2Blocchi_Blocchi"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public CelleRow CelleRow {
+ get {
+ return ((CelleRow)(this.GetParentRow(this.Table.ParentRelations["FK_Celle2Blocchi_Celle"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Celle2Blocchi_Celle"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsXNull() {
+ return this.IsNull(this.tableCelle2Blocchi.XColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetXNull() {
+ this[this.tableCelle2Blocchi.XColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsYNull() {
+ return this.IsNull(this.tableCelle2Blocchi.YColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetYNull() {
+ this[this.tableCelle2Blocchi.YColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsZNull() {
+ return this.IsNull(this.tableCelle2Blocchi.ZColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetZNull() {
+ this[this.tableCelle2Blocchi.ZColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class MappeRow : global::System.Data.DataRow {
+
+ private MappeDataTable tableMappe;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal MappeRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableMappe = ((MappeDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxMappa {
+ get {
+ return ((int)(this[this.tableMappe.IdxMappaColumn]));
+ }
+ set {
+ this[this.tableMappe.IdxMappaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodMag {
+ get {
+ return ((string)(this[this.tableMappe.CodMagColumn]));
+ }
+ set {
+ this[this.tableMappe.CodMagColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCS {
+ get {
+ return ((string)(this[this.tableMappe.CodCSColumn]));
+ }
+ set {
+ this[this.tableMappe.CodCSColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescMappa {
+ get {
+ return ((string)(this[this.tableMappe.DescMappaColumn]));
+ }
+ set {
+ this[this.tableMappe.DescMappaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagMagRow AnagMagRowParent {
+ get {
+ return ((AnagMagRow)(this.GetParentRow(this.Table.ParentRelations["FK_Mappe_AnagMag"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Mappe_AnagMag"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public BlocchiRow[] GetBlocchiRows() {
+ if ((this.Table.ChildRelations["FK_Blocchi_Mappe"] == null)) {
+ return new BlocchiRow[0];
+ }
+ else {
+ return ((BlocchiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Blocchi_Mappe"])));
}
}
}
@@ -3153,6 +4562,37 @@ namespace GMW_data {
}
}
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class AnagMagRowChangeEvent : global::System.EventArgs {
+
+ private AnagMagRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagMagRowChangeEvent(AnagMagRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagMagRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
///
///Row event argument class
///
@@ -3184,37 +4624,6 @@ namespace GMW_data {
}
}
- ///
- ///Row event argument class
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AnagCelleRowChangeEvent : global::System.EventArgs {
-
- private AnagCelleRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleRowChangeEvent(AnagCelleRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
-
///
///Row event argument class
///
@@ -3250,20 +4659,113 @@ namespace GMW_data {
///Row event argument class
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AnagMagRowChangeEvent : global::System.EventArgs {
+ public class BlocchiRowChangeEvent : global::System.EventArgs {
- private AnagMagRow eventRow;
+ private BlocchiRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagRowChangeEvent(AnagMagRow row, global::System.Data.DataRowAction action) {
+ public BlocchiRowChangeEvent(BlocchiRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagRow Row {
+ public BlocchiRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class CelleRowChangeEvent : global::System.EventArgs {
+
+ private CelleRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public CelleRowChangeEvent(CelleRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public CelleRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class Celle2BlocchiRowChangeEvent : global::System.EventArgs {
+
+ private Celle2BlocchiRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Celle2BlocchiRowChangeEvent(Celle2BlocchiRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Celle2BlocchiRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class MappeRowChangeEvent : global::System.EventArgs {
+
+ private MappeRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public MappeRowChangeEvent(MappeRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public MappeRow Row {
get {
return this.eventRow;
}
@@ -4628,1206 +6130,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
}
}
- ///
- ///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 PosizioneUdcCorrenteTableAdapter : 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 PosizioneUdcCorrenteTableAdapter() {
- 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 = "PosizioneUdcCorrente";
- tableMapping.ColumnMappings.Add("UDC", "UDC");
- tableMapping.ColumnMappings.Add("CodMag", "CodMag");
- tableMapping.ColumnMappings.Add("CodCella", "CodCella");
- tableMapping.ColumnMappings.Add("DataRif", "DataRif");
- 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].[PosizioneUdcCorrente] WHERE (([UDC] = @Original_UDC) AND ([Cod" +
- "Mag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Dat" +
- "aRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- 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_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", 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].[PosizioneUdcCorrente] ([UDC], [CodMag], [CodCella], [DataRif]) VALUES (@UDC, @CodMag, @CodCella, @DataRif);
-SELECT UDC, CodMag, CodCella, DataRif FROM PosizioneUdcCorrente WHERE (CodCella = @CodCella) AND (CodMag = @CodMag) AND (UDC = @UDC)";
- 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("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", 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].[PosizioneUdcCorrente] SET [UDC] = @UDC, [CodMag] = @CodMag, [CodCella] = @CodCella, [DataRif] = @DataRif WHERE (([UDC] = @Original_UDC) AND ([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)));
-SELECT UDC, CodMag, CodCella, DataRif FROM PosizioneUdcCorrente WHERE (CodCella = @CodCella) AND (CodMag = @CodMag) AND (UDC = @UDC)";
- 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("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Current, 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_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", 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[1];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT UDC, CodMag, CodCella, DataRif FROM dbo.PosizioneUdcCorrente";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- }
-
- [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.PosizioneUdcCorrenteDataTable 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.PosizioneUdcCorrenteDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_magazzino.PosizioneUdcCorrenteDataTable dataTable = new DS_magazzino.PosizioneUdcCorrenteDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_magazzino.PosizioneUdcCorrenteDataTable 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, "PosizioneUdcCorrente");
- }
-
- [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_UDC, string Original_CodMag, string Original_CodCella, global::System.Nullable Original_DataRif) {
- if ((Original_UDC == null)) {
- throw new global::System.ArgumentNullException("Original_UDC");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_UDC));
- }
- if ((Original_CodMag == null)) {
- throw new global::System.ArgumentNullException("Original_CodMag");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodMag));
- }
- if ((Original_CodCella == null)) {
- throw new global::System.ArgumentNullException("Original_CodCella");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodCella));
- }
- if ((Original_DataRif.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DataRif.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- 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 UDC, string CodMag, string CodCella, global::System.Nullable DataRif) {
- if ((UDC == null)) {
- throw new global::System.ArgumentNullException("UDC");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UDC));
- }
- if ((CodMag == null)) {
- throw new global::System.ArgumentNullException("CodMag");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodMag));
- }
- if ((CodCella == null)) {
- throw new global::System.ArgumentNullException("CodCella");
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCella));
- }
- if ((DataRif.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DataRif.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- 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 UDC, string CodMag, string CodCella, global::System.Nullable DataRif, string Original_UDC, string Original_CodMag, string Original_CodCella, global::System.Nullable Original_DataRif) {
- if ((UDC == null)) {
- throw new global::System.ArgumentNullException("UDC");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UDC));
- }
- if ((CodMag == null)) {
- throw new global::System.ArgumentNullException("CodMag");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodMag));
- }
- if ((CodCella == null)) {
- throw new global::System.ArgumentNullException("CodCella");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCella));
- }
- if ((DataRif.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DataRif.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((Original_UDC == null)) {
- throw new global::System.ArgumentNullException("Original_UDC");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_UDC));
- }
- if ((Original_CodMag == null)) {
- throw new global::System.ArgumentNullException("Original_CodMag");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodMag));
- }
- if ((Original_CodCella == null)) {
- throw new global::System.ArgumentNullException("Original_CodCella");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodCella));
- }
- if ((Original_DataRif.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DataRif.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- 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(global::System.Nullable DataRif, string Original_UDC, string Original_CodMag, string Original_CodCella, global::System.Nullable Original_DataRif) {
- return this.Update(Original_UDC, Original_CodMag, Original_CodCella, DataRif, Original_UDC, Original_CodMag, Original_CodCella, Original_DataRif);
- }
- }
-
- ///
- ///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 AnagCelleTableAdapter : 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 AnagCelleTableAdapter() {
- 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 = "AnagCelle";
- tableMapping.ColumnMappings.Add("CodMag", "CodMag");
- tableMapping.ColumnMappings.Add("CodCella", "CodCella");
- tableMapping.ColumnMappings.Add("Capacita", "Capacita");
- tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
- 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].[AnagCelle] WHERE (([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", 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].[AnagCelle] ([CodMag], [CodCella], [Capacita], [Descrizione]) V" +
- "ALUES (@CodMag, @CodCella, @Capacita, @Descrizione);\r\nSELECT CodMag, CodCella, C" +
- "apacita, Descrizione FROM AnagCelle WHERE (CodCella = @CodCella) AND (CodMag = @" +
- "CodMag)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", 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].[AnagCelle] SET [CodMag] = @CodMag, [CodCella] = @CodCella, [Capacita] = @Capacita, [Descrizione] = @Descrizione WHERE (([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)));
-SELECT CodMag, CodCella, Capacita, Descrizione FROM AnagCelle WHERE (CodCella = @CodCella) AND (CodMag = @CodMag)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", 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[2];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT CodMag, CodCella, Capacita, Descrizione FROM dbo.AnagCelle";
- 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_cellaGetByCodMag";
- this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- }
-
- [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.AnagCelleDataTable 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.AnagCelleDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_magazzino.AnagCelleDataTable dataTable = new DS_magazzino.AnagCelleDataTable();
- 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.AnagCelleDataTable getByCodMag(string CodCS, string CodMag) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((CodCS == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
- }
- if ((CodMag == null)) {
- this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodMag));
- }
- DS_magazzino.AnagCelleDataTable dataTable = new DS_magazzino.AnagCelleDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_magazzino.AnagCelleDataTable 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, "AnagCelle");
- }
-
- [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_CodMag, string Original_CodCella, global::System.Nullable Original_Capacita, string Original_Descrizione) {
- if ((Original_CodMag == null)) {
- throw new global::System.ArgumentNullException("Original_CodMag");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodMag));
- }
- if ((Original_CodCella == null)) {
- throw new global::System.ArgumentNullException("Original_CodCella");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodCella));
- }
- if ((Original_Capacita.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Capacita.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((Original_Descrizione == 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_Descrizione));
- }
- 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 CodMag, string CodCella, global::System.Nullable Capacita, string Descrizione) {
- if ((CodMag == null)) {
- throw new global::System.ArgumentNullException("CodMag");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodMag));
- }
- if ((CodCella == null)) {
- throw new global::System.ArgumentNullException("CodCella");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCella));
- }
- if ((Capacita.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Capacita.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- if ((Descrizione == null)) {
- this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Descrizione));
- }
- 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 CodMag, string CodCella, global::System.Nullable Capacita, string Descrizione, string Original_CodMag, string Original_CodCella, global::System.Nullable Original_Capacita, string Original_Descrizione) {
- if ((CodMag == null)) {
- throw new global::System.ArgumentNullException("CodMag");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodMag));
- }
- if ((CodCella == null)) {
- throw new global::System.ArgumentNullException("CodCella");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCella));
- }
- if ((Capacita.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Capacita.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- if ((Descrizione == null)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Descrizione));
- }
- if ((Original_CodMag == null)) {
- throw new global::System.ArgumentNullException("Original_CodMag");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodMag));
- }
- if ((Original_CodCella == null)) {
- throw new global::System.ArgumentNullException("Original_CodCella");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodCella));
- }
- if ((Original_Capacita.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Capacita.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- if ((Original_Descrizione == null)) {
- this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Descrizione));
- }
- 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(global::System.Nullable Capacita, string Descrizione, string Original_CodMag, string Original_CodCella, global::System.Nullable Original_Capacita, string Original_Descrizione) {
- return this.Update(Original_CodMag, Original_CodCella, Capacita, Descrizione, Original_CodMag, Original_CodCella, Original_Capacita, Original_Descrizione);
- }
- }
-
- ///
- ///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 PosizioneUdcStoricoTableAdapter : 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 PosizioneUdcStoricoTableAdapter() {
- 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 = "PosizioneUdcStorico";
- tableMapping.ColumnMappings.Add("UDC", "UDC");
- tableMapping.ColumnMappings.Add("CodMag", "CodMag");
- tableMapping.ColumnMappings.Add("CodCella", "CodCella");
- tableMapping.ColumnMappings.Add("DataInizio", "DataInizio");
- tableMapping.ColumnMappings.Add("DataFine", "DataFine");
- 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].[PosizioneUdcStorico] WHERE (([UDC] = @Original_UDC) AND ([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ([DataInizio] = @Original_DataInizio) AND ((@IsNull_DataFine = 1 AND [DataFine] IS NULL) OR ([DataFine] = @Original_DataFine)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- 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_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataInizio", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizio", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataFine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataFine", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", 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].[PosizioneUdcStorico] ([UDC], [CodMag], [CodCella], [DataInizio], [DataFine]) VALUES (@UDC, @CodMag, @CodCella, @DataInizio, @DataFine);
-SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHERE (CodCella = @CodCella) AND (CodMag = @CodMag) AND (DataInizio = @DataInizio) AND (UDC = @UDC)";
- 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("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizio", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", 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].[PosizioneUdcStorico] SET [UDC] = @UDC, [CodMag] = @CodMag, [CodCella] = @CodCella, [DataInizio] = @DataInizio, [DataFine] = @DataFine WHERE (([UDC] = @Original_UDC) AND ([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ([DataInizio] = @Original_DataInizio) AND ((@IsNull_DataFine = 1 AND [DataFine] IS NULL) OR ([DataFine] = @Original_DataFine)));
-SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHERE (CodCella = @CodCella) AND (CodMag = @CodMag) AND (DataInizio = @DataInizio) AND (UDC = @UDC)";
- 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("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizio", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", global::System.Data.DataRowVersion.Current, 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_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataInizio", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizio", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataFine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataFine", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", 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[1];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM dbo.PosizioneUdcStorico";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- }
-
- [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.PosizioneUdcStoricoDataTable 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.PosizioneUdcStoricoDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_magazzino.PosizioneUdcStoricoDataTable dataTable = new DS_magazzino.PosizioneUdcStoricoDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_magazzino.PosizioneUdcStoricoDataTable 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, "PosizioneUdcStorico");
- }
-
- [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_UDC, string Original_CodMag, string Original_CodCella, System.DateTime Original_DataInizio, global::System.Nullable Original_DataFine) {
- if ((Original_UDC == null)) {
- throw new global::System.ArgumentNullException("Original_UDC");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_UDC));
- }
- if ((Original_CodMag == null)) {
- throw new global::System.ArgumentNullException("Original_CodMag");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodMag));
- }
- if ((Original_CodCella == null)) {
- throw new global::System.ArgumentNullException("Original_CodCella");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodCella));
- }
- this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_DataInizio));
- if ((Original_DataFine.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[5].Value = ((System.DateTime)(Original_DataFine.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- 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 UDC, string CodMag, string CodCella, System.DateTime DataInizio, global::System.Nullable DataFine) {
- if ((UDC == null)) {
- throw new global::System.ArgumentNullException("UDC");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UDC));
- }
- if ((CodMag == null)) {
- throw new global::System.ArgumentNullException("CodMag");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodMag));
- }
- if ((CodCella == null)) {
- throw new global::System.ArgumentNullException("CodCella");
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCella));
- }
- this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DataInizio));
- if ((DataFine.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(DataFine.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- 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 UDC, string CodMag, string CodCella, System.DateTime DataInizio, global::System.Nullable DataFine, string Original_UDC, string Original_CodMag, string Original_CodCella, System.DateTime Original_DataInizio, global::System.Nullable Original_DataFine) {
- if ((UDC == null)) {
- throw new global::System.ArgumentNullException("UDC");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UDC));
- }
- if ((CodMag == null)) {
- throw new global::System.ArgumentNullException("CodMag");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodMag));
- }
- if ((CodCella == null)) {
- throw new global::System.ArgumentNullException("CodCella");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCella));
- }
- this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DataInizio));
- if ((DataFine.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(DataFine.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- if ((Original_UDC == null)) {
- throw new global::System.ArgumentNullException("Original_UDC");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_UDC));
- }
- if ((Original_CodMag == null)) {
- throw new global::System.ArgumentNullException("Original_CodMag");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodMag));
- }
- if ((Original_CodCella == null)) {
- throw new global::System.ArgumentNullException("Original_CodCella");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CodCella));
- }
- this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DataInizio));
- if ((Original_DataFine.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_DataFine.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- 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(global::System.Nullable DataFine, string Original_UDC, string Original_CodMag, string Original_CodCella, System.DateTime Original_DataInizio, global::System.Nullable Original_DataFine) {
- return this.Update(Original_UDC, Original_CodMag, Original_CodCella, Original_DataInizio, DataFine, Original_UDC, Original_CodMag, Original_CodCella, Original_DataInizio, Original_DataFine);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -6341,6 +6643,2376 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
}
}
+ ///
+ ///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 PosizioneUdcCorrenteTableAdapter : 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 PosizioneUdcCorrenteTableAdapter() {
+ 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 = "PosizioneUdcCorrente";
+ tableMapping.ColumnMappings.Add("UDC", "UDC");
+ tableMapping.ColumnMappings.Add("IdxCella", "IdxCella");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("DataRif", "DataRif");
+ 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].[PosizioneUdcCorrente] WHERE (([UDC] = @Original_UDC) AND ([Idx" +
+ "Cella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DataR" +
+ "if = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ 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_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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("@IsNull_DataRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", 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].[PosizioneUdcCorrente] ([UDC], [IdxCella], [CodCS], [DataRif]) " +
+ "VALUES (@UDC, @IdxCella, @CodCS, @DataRif);\r\nSELECT UDC, IdxCella, CodCS, DataRi" +
+ "f FROM PosizioneUdcCorrente WHERE (IdxCella = @IdxCella) AND (UDC = @UDC)";
+ 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("@IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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("@DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", 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].[PosizioneUdcCorrente] SET [UDC] = @UDC, [IdxCella] = @IdxCella, [CodCS] = @CodCS, [DataRif] = @DataRif WHERE (([UDC] = @Original_UDC) AND ([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)));
+SELECT UDC, IdxCella, CodCS, DataRif FROM PosizioneUdcCorrente WHERE (IdxCella = @IdxCella) AND (UDC = @UDC)";
+ 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("@IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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("@DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Current, 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_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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("@IsNull_DataRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", 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[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT UDC, IdxCella, CodCS, DataRif FROM dbo.PosizioneUdcCorrente";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [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.PosizioneUdcCorrenteDataTable 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.PosizioneUdcCorrenteDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_magazzino.PosizioneUdcCorrenteDataTable dataTable = new DS_magazzino.PosizioneUdcCorrenteDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_magazzino.PosizioneUdcCorrenteDataTable 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, "PosizioneUdcCorrente");
+ }
+
+ [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_UDC, int Original_IdxCella, string Original_CodCS, global::System.Nullable Original_DataRif) {
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_UDC));
+ }
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxCella));
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_DataRif.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DataRif.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ 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 UDC, int IdxCella, string CodCS, global::System.Nullable DataRif) {
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UDC));
+ }
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxCella));
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCS));
+ }
+ if ((DataRif.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DataRif.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ 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 UDC, int IdxCella, string CodCS, global::System.Nullable DataRif, string Original_UDC, int Original_IdxCella, string Original_CodCS, global::System.Nullable Original_DataRif) {
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UDC));
+ }
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxCella));
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCS));
+ }
+ if ((DataRif.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DataRif.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_UDC));
+ }
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxCella));
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_DataRif.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DataRif.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ 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 CodCS, global::System.Nullable DataRif, string Original_UDC, int Original_IdxCella, string Original_CodCS, global::System.Nullable Original_DataRif) {
+ return this.Update(Original_UDC, Original_IdxCella, CodCS, DataRif, Original_UDC, Original_IdxCella, Original_CodCS, Original_DataRif);
+ }
+ }
+
+ ///
+ ///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 PosizioneUdcStoricoTableAdapter : 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 PosizioneUdcStoricoTableAdapter() {
+ 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 = "PosizioneUdcStorico";
+ tableMapping.ColumnMappings.Add("UDC", "UDC");
+ tableMapping.ColumnMappings.Add("IdxCella", "IdxCella");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("DataInizio", "DataInizio");
+ tableMapping.ColumnMappings.Add("DataFine", "DataFine");
+ 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].[PosizioneUdcStorico] WHERE (([UDC] = @Original_UDC) AND ([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([DataInizio] = @Original_DataInizio) AND ((@IsNull_DataFine = 1 AND [DataFine] IS NULL) OR ([DataFine] = @Original_DataFine)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ 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_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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_DataInizio", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizio", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataFine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataFine", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", 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].[PosizioneUdcStorico] ([UDC], [IdxCella], [CodCS], [DataInizio], [DataFine]) VALUES (@UDC, @IdxCella, @CodCS, @DataInizio, @DataFine);
+SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM PosizioneUdcStorico WHERE (IdxCella = @IdxCella) AND (UDC = @UDC)";
+ 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("@IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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("@DataInizio", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizio", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", 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].[PosizioneUdcStorico] SET [UDC] = @UDC, [IdxCella] = @IdxCella, [CodCS] = @CodCS, [DataInizio] = @DataInizio, [DataFine] = @DataFine WHERE (([UDC] = @Original_UDC) AND ([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([DataInizio] = @Original_DataInizio) AND ((@IsNull_DataFine = 1 AND [DataFine] IS NULL) OR ([DataFine] = @Original_DataFine)));
+SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM PosizioneUdcStorico WHERE (IdxCella = @IdxCella) AND (UDC = @UDC)";
+ 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("@IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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("@DataInizio", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizio", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", global::System.Data.DataRowVersion.Current, 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_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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_DataInizio", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizio", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataFine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataFine", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFine", 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[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM dbo.PosizioneUdcStorico";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [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.PosizioneUdcStoricoDataTable 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.PosizioneUdcStoricoDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_magazzino.PosizioneUdcStoricoDataTable dataTable = new DS_magazzino.PosizioneUdcStoricoDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_magazzino.PosizioneUdcStoricoDataTable 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, "PosizioneUdcStorico");
+ }
+
+ [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_UDC, int Original_IdxCella, string Original_CodCS, System.DateTime Original_DataInizio, global::System.Nullable Original_DataFine) {
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_UDC));
+ }
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxCella));
+ 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_DataInizio));
+ if ((Original_DataFine.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((System.DateTime)(Original_DataFine.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ 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 UDC, int IdxCella, string CodCS, System.DateTime DataInizio, global::System.Nullable DataFine) {
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UDC));
+ }
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxCella));
+ 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)(DataInizio));
+ if ((DataFine.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(DataFine.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ 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 UDC, int IdxCella, string CodCS, System.DateTime DataInizio, global::System.Nullable DataFine, string Original_UDC, int Original_IdxCella, string Original_CodCS, System.DateTime Original_DataInizio, global::System.Nullable Original_DataFine) {
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UDC));
+ }
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxCella));
+ 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)(DataInizio));
+ if ((DataFine.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(DataFine.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_UDC));
+ }
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdxCella));
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CodCS));
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DataInizio));
+ if ((Original_DataFine.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_DataFine.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ 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 CodCS, System.DateTime DataInizio, global::System.Nullable DataFine, string Original_UDC, int Original_IdxCella, string Original_CodCS, System.DateTime Original_DataInizio, global::System.Nullable Original_DataFine) {
+ return this.Update(Original_UDC, Original_IdxCella, CodCS, DataInizio, DataFine, Original_UDC, Original_IdxCella, Original_CodCS, Original_DataInizio, Original_DataFine);
+ }
+ }
+
+ ///
+ ///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 BlocchiTableAdapter : 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 BlocchiTableAdapter() {
+ 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 = "Blocchi";
+ tableMapping.ColumnMappings.Add("IdxBlocco", "IdxBlocco");
+ tableMapping.ColumnMappings.Add("IdxMappa", "IdxMappa");
+ tableMapping.ColumnMappings.Add("CodBlocco", "CodBlocco");
+ tableMapping.ColumnMappings.Add("DescBlocco", "DescBlocco");
+ tableMapping.ColumnMappings.Add("NumX", "NumX");
+ tableMapping.ColumnMappings.Add("NumY", "NumY");
+ tableMapping.ColumnMappings.Add("NumZ", "NumZ");
+ 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].[Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxMappa] = @Original_IdxMappa) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumX", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumX", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumX", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumX", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", 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].[Blocchi] ([IdxBlocco], [IdxMappa], [CodBlocco], [DescBlocco], [NumX], [NumY], [NumZ]) VALUES (@IdxBlocco, @IdxMappa, @CodBlocco, @DescBlocco, @NumX, @NumY, @NumZ);
+SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumX", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumX", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", 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].[Blocchi] SET [IdxBlocco] = @IdxBlocco, [IdxMappa] = @IdxMappa, [CodBlocco] = @CodBlocco, [DescBlocco] = @DescBlocco, [NumX] = @NumX, [NumY] = @NumY, [NumZ] = @NumZ WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxMappa] = @Original_IdxMappa) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)));
+SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumX", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumX", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumX", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumX", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumX", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumX", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", 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[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM dbo.Bloc" +
+ "chi";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [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.BlocchiDataTable 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.BlocchiDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_magazzino.BlocchiDataTable dataTable = new DS_magazzino.BlocchiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_magazzino.BlocchiDataTable 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, "Blocchi");
+ }
+
+ [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(int Original_IdxBlocco, int Original_IdxMappa, string Original_CodBlocco, string Original_DescBlocco, global::System.Nullable Original_NumX, global::System.Nullable Original_NumY, global::System.Nullable Original_NumZ) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxBlocco));
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxMappa));
+ if ((Original_CodBlocco == null)) {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_CodBlocco));
+ }
+ if ((Original_DescBlocco == 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_DescBlocco));
+ }
+ if ((Original_NumX.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_NumX.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((Original_NumY.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_NumY.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ if ((Original_NumZ.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((int)(Original_NumZ.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ 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(int IdxBlocco, int IdxMappa, string CodBlocco, string DescBlocco, global::System.Nullable NumX, global::System.Nullable NumY, global::System.Nullable NumZ) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxBlocco));
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxMappa));
+ if ((CodBlocco == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodBlocco));
+ }
+ if ((DescBlocco == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(DescBlocco));
+ }
+ if ((NumX.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((int)(NumX.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((NumY.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((int)(NumY.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((NumZ.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((int)(NumZ.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ 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(int IdxBlocco, int IdxMappa, string CodBlocco, string DescBlocco, global::System.Nullable NumX, global::System.Nullable NumY, global::System.Nullable NumZ, int Original_IdxBlocco, int Original_IdxMappa, string Original_CodBlocco, string Original_DescBlocco, global::System.Nullable Original_NumX, global::System.Nullable Original_NumY, global::System.Nullable Original_NumZ) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxBlocco));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxMappa));
+ if ((CodBlocco == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodBlocco));
+ }
+ if ((DescBlocco == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(DescBlocco));
+ }
+ if ((NumX.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(NumX.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((NumY.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(NumY.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((NumZ.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(NumZ.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdxBlocco));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IdxMappa));
+ if ((Original_CodBlocco == null)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodBlocco));
+ }
+ if ((Original_DescBlocco == null)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_DescBlocco));
+ }
+ if ((Original_NumX.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_NumX.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ if ((Original_NumY.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_NumY.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ if ((Original_NumZ.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_NumZ.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ 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(int IdxMappa, string CodBlocco, string DescBlocco, global::System.Nullable NumX, global::System.Nullable NumY, global::System.Nullable NumZ, int Original_IdxBlocco, int Original_IdxMappa, string Original_CodBlocco, string Original_DescBlocco, global::System.Nullable Original_NumX, global::System.Nullable Original_NumY, global::System.Nullable Original_NumZ) {
+ return this.Update(Original_IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ, Original_IdxBlocco, Original_IdxMappa, Original_CodBlocco, Original_DescBlocco, Original_NumX, Original_NumY, Original_NumZ);
+ }
+ }
+
+ ///
+ ///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 CelleTableAdapter : 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 CelleTableAdapter() {
+ 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 = "Celle";
+ tableMapping.ColumnMappings.Add("IdxCella", "IdxCella");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("CodCella", "CodCella");
+ tableMapping.ColumnMappings.Add("Capacita", "Capacita");
+ tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
+ 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].[Celle] WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", 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].[Celle] ([CodCS], [CodCella], [Capacita], [Descrizione]) VALUES" +
+ " (@CodCS, @CodCella, @Capacita, @Descrizione);\r\nSELECT IdxCella, CodCS, CodCella" +
+ ", Capacita, Descrizione FROM Celle WHERE (IdxCella = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ 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("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", 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].[Celle] SET [CodCS] = @CodCS, [CodCella] = @CodCella, [Capacita] = @Capacita, [Descrizione] = @Descrizione WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)));
+SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCella = @IdxCella)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ 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("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", 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_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Current, 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[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM dbo.Celle";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [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.CelleDataTable 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.CelleDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_magazzino.CelleDataTable dataTable = new DS_magazzino.CelleDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_magazzino.CelleDataTable 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, "Celle");
+ }
+
+ [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(int Original_IdxCella, string Original_CodCS, string Original_CodCella, global::System.Nullable Original_Capacita, string Original_Descrizione) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxCella));
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_CodCella == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCella");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodCella));
+ }
+ if ((Original_Capacita.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Capacita.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Descrizione == null)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Descrizione));
+ }
+ 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 CodCS, string CodCella, global::System.Nullable Capacita, string Descrizione) {
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCS));
+ }
+ if ((CodCella == null)) {
+ throw new global::System.ArgumentNullException("CodCella");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCella));
+ }
+ if ((Capacita.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Capacita.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((Descrizione == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Descrizione));
+ }
+ 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 CodCS, string CodCella, global::System.Nullable Capacita, string Descrizione, int Original_IdxCella, string Original_CodCS, string Original_CodCella, global::System.Nullable Original_Capacita, string Original_Descrizione, int IdxCella) {
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCS));
+ }
+ if ((CodCella == null)) {
+ throw new global::System.ArgumentNullException("CodCella");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCella));
+ }
+ if ((Capacita.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Capacita.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((Descrizione == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Descrizione));
+ }
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdxCella));
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_CodCella == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCella");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodCella));
+ }
+ if ((Original_Capacita.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Capacita.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Descrizione == null)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Descrizione));
+ }
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(IdxCella));
+ 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 CodCS, string CodCella, global::System.Nullable Capacita, string Descrizione, int Original_IdxCella, string Original_CodCS, string Original_CodCella, global::System.Nullable Original_Capacita, string Original_Descrizione) {
+ return this.Update(CodCS, CodCella, Capacita, Descrizione, Original_IdxCella, Original_CodCS, Original_CodCella, Original_Capacita, Original_Descrizione, Original_IdxCella);
+ }
+ }
+
+ ///
+ ///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 Celle2BlocchiTableAdapter : 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 Celle2BlocchiTableAdapter() {
+ 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 = "Celle2Blocchi";
+ tableMapping.ColumnMappings.Add("IdxBlocco", "IdxBlocco");
+ tableMapping.ColumnMappings.Add("IdxCella", "IdxCella");
+ tableMapping.ColumnMappings.Add("X", "X");
+ tableMapping.ColumnMappings.Add("Y", "Y");
+ tableMapping.ColumnMappings.Add("Z", "Z");
+ 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].[Celle2Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxCella] = @Original_IdxCella) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", 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].[Celle2Blocchi] ([IdxBlocco], [IdxCella], [X], [Y], [Z]) VALUES" +
+ " (@IdxBlocco, @IdxCella, @X, @Y, @Z);\r\nSELECT IdxBlocco, IdxCella, X, Y, Z FROM " +
+ "Celle2Blocchi WHERE (IdxBlocco = @IdxBlocco) AND (IdxCella = @IdxCella)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", 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].[Celle2Blocchi] SET [IdxBlocco] = @IdxBlocco, [IdxCella] = @IdxCella, [X] = @X, [Y] = @Y, [Z] = @Z WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxCella] = @Original_IdxCella) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)));
+SELECT IdxBlocco, IdxCella, X, Y, Z FROM Celle2Blocchi WHERE (IdxBlocco = @IdxBlocco) AND (IdxCella = @IdxCella)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", 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[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT IdxBlocco, IdxCella, X, Y, Z FROM dbo.Celle2Blocchi";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [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.Celle2BlocchiDataTable 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.Celle2BlocchiDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_magazzino.Celle2BlocchiDataTable dataTable = new DS_magazzino.Celle2BlocchiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_magazzino.Celle2BlocchiDataTable 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, "Celle2Blocchi");
+ }
+
+ [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(int Original_IdxBlocco, int Original_IdxCella, global::System.Nullable Original_X, global::System.Nullable Original_Y, global::System.Nullable Original_Z) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxBlocco));
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxCella));
+ if ((Original_X.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_X.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Y.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Y.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Z.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_Z.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ 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(int IdxBlocco, int IdxCella, global::System.Nullable X, global::System.Nullable Y, global::System.Nullable Z) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxBlocco));
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxCella));
+ if ((X.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(X.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((Y.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Y.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((Z.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Z.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ 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(int IdxBlocco, int IdxCella, global::System.Nullable X, global::System.Nullable Y, global::System.Nullable Z, int Original_IdxBlocco, int Original_IdxCella, global::System.Nullable Original_X, global::System.Nullable Original_Y, global::System.Nullable Original_Z) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxBlocco));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxCella));
+ if ((X.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(X.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((Y.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Y.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((Z.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Z.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxBlocco));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdxCella));
+ if ((Original_X.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_X.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Y.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Y.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Z.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Z.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ 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(global::System.Nullable X, global::System.Nullable Y, global::System.Nullable Z, int Original_IdxBlocco, int Original_IdxCella, global::System.Nullable Original_X, global::System.Nullable Original_Y, global::System.Nullable Original_Z) {
+ return this.Update(Original_IdxBlocco, Original_IdxCella, X, Y, Z, Original_IdxBlocco, Original_IdxCella, Original_X, Original_Y, Original_Z);
+ }
+ }
+
+ ///
+ ///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 MappeTableAdapter : 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 MappeTableAdapter() {
+ 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 = "Mappe";
+ tableMapping.ColumnMappings.Add("IdxMappa", "IdxMappa");
+ tableMapping.ColumnMappings.Add("CodMag", "CodMag");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("DescMappa", "DescMappa");
+ 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].[Mappe] WHERE (([IdxMappa] = @Original_IdxMappa) AND ([CodMag] " +
+ "= @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([DescMappa] = @Original" +
+ "_DescMappa))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", 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_DescMappa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMappa", 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].[Mappe] ([IdxMappa], [CodMag], [CodCS], [DescMappa]) VALUES (@I" +
+ "dxMappa, @CodMag, @CodCS, @DescMappa);\r\nSELECT IdxMappa, CodMag, CodCS, DescMapp" +
+ "a FROM Mappe WHERE (IdxMappa = @IdxMappa)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", 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("@DescMappa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMappa", 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].[Mappe] SET [IdxMappa] = @IdxMappa, [CodMag] = @CodMag, [CodCS] = @CodCS, [DescMappa] = @DescMappa WHERE (([IdxMappa] = @Original_IdxMappa) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([DescMappa] = @Original_DescMappa));
+SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", 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("@DescMappa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", 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_DescMappa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMappa", 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[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT IdxMappa, CodMag, CodCS, DescMappa FROM dbo.Mappe";
+ 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_mappeGetByCodMag";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [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.MappeDataTable 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.MappeDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_magazzino.MappeDataTable dataTable = new DS_magazzino.MappeDataTable();
+ 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.MappeDataTable getByCodMag(string CodCS, string CodMag) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodCS == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((CodMag == null)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodMag));
+ }
+ DS_magazzino.MappeDataTable dataTable = new DS_magazzino.MappeDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_magazzino.MappeDataTable 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, "Mappe");
+ }
+
+ [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(int Original_IdxMappa, string Original_CodMag, string Original_CodCS, string Original_DescMappa) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxMappa));
+ if ((Original_CodMag == null)) {
+ throw new global::System.ArgumentNullException("Original_CodMag");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodMag));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_DescMappa == null)) {
+ throw new global::System.ArgumentNullException("Original_DescMappa");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DescMappa));
+ }
+ 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(int IdxMappa, string CodMag, string CodCS, string DescMappa) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxMappa));
+ if ((CodMag == null)) {
+ throw new global::System.ArgumentNullException("CodMag");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodMag));
+ }
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCS));
+ }
+ if ((DescMappa == null)) {
+ throw new global::System.ArgumentNullException("DescMappa");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(DescMappa));
+ }
+ 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(int IdxMappa, string CodMag, string CodCS, string DescMappa, int Original_IdxMappa, string Original_CodMag, string Original_CodCS, string Original_DescMappa) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxMappa));
+ if ((CodMag == null)) {
+ throw new global::System.ArgumentNullException("CodMag");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodMag));
+ }
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCS));
+ }
+ if ((DescMappa == null)) {
+ throw new global::System.ArgumentNullException("DescMappa");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(DescMappa));
+ }
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdxMappa));
+ if ((Original_CodMag == null)) {
+ throw new global::System.ArgumentNullException("Original_CodMag");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodMag));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_DescMappa == null)) {
+ throw new global::System.ArgumentNullException("Original_DescMappa");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_DescMappa));
+ }
+ 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 CodMag, string CodCS, string DescMappa, int Original_IdxMappa, string Original_CodMag, string Original_CodCS, string Original_DescMappa) {
+ return this.Update(Original_IdxMappa, CodMag, CodCS, DescMappa, Original_IdxMappa, Original_CodMag, Original_CodCS, Original_DescMappa);
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -6356,13 +9028,19 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
private ElencoCartelliniTableAdapter _elencoCartelliniTableAdapter;
- private PosizioneUdcCorrenteTableAdapter _posizioneUdcCorrenteTableAdapter;
+ private AnagMagTableAdapter _anagMagTableAdapter;
- private AnagCelleTableAdapter _anagCelleTableAdapter;
+ private PosizioneUdcCorrenteTableAdapter _posizioneUdcCorrenteTableAdapter;
private PosizioneUdcStoricoTableAdapter _posizioneUdcStoricoTableAdapter;
- private AnagMagTableAdapter _anagMagTableAdapter;
+ private BlocchiTableAdapter _blocchiTableAdapter;
+
+ private CelleTableAdapter _celleTableAdapter;
+
+ private Celle2BlocchiTableAdapter _celle2BlocchiTableAdapter;
+
+ private MappeTableAdapter _mappeTableAdapter;
private bool _backupDataSetBeforeUpdate;
@@ -6395,12 +9073,12 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
[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 PosizioneUdcCorrenteTableAdapter PosizioneUdcCorrenteTableAdapter {
+ public AnagMagTableAdapter AnagMagTableAdapter {
get {
- return this._posizioneUdcCorrenteTableAdapter;
+ return this._anagMagTableAdapter;
}
set {
- this._posizioneUdcCorrenteTableAdapter = value;
+ this._anagMagTableAdapter = value;
}
}
@@ -6408,12 +9086,12 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
[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 AnagCelleTableAdapter AnagCelleTableAdapter {
+ public PosizioneUdcCorrenteTableAdapter PosizioneUdcCorrenteTableAdapter {
get {
- return this._anagCelleTableAdapter;
+ return this._posizioneUdcCorrenteTableAdapter;
}
set {
- this._anagCelleTableAdapter = value;
+ this._posizioneUdcCorrenteTableAdapter = value;
}
}
@@ -6434,12 +9112,51 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
[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 AnagMagTableAdapter AnagMagTableAdapter {
+ public BlocchiTableAdapter BlocchiTableAdapter {
get {
- return this._anagMagTableAdapter;
+ return this._blocchiTableAdapter;
}
set {
- this._anagMagTableAdapter = value;
+ this._blocchiTableAdapter = 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" +
+ "", "System.Drawing.Design.UITypeEditor")]
+ public CelleTableAdapter CelleTableAdapter {
+ get {
+ return this._celleTableAdapter;
+ }
+ set {
+ this._celleTableAdapter = 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" +
+ "", "System.Drawing.Design.UITypeEditor")]
+ public Celle2BlocchiTableAdapter Celle2BlocchiTableAdapter {
+ get {
+ return this._celle2BlocchiTableAdapter;
+ }
+ set {
+ this._celle2BlocchiTableAdapter = 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" +
+ "", "System.Drawing.Design.UITypeEditor")]
+ public MappeTableAdapter MappeTableAdapter {
+ get {
+ return this._mappeTableAdapter;
+ }
+ set {
+ this._mappeTableAdapter = value;
}
}
@@ -6464,21 +9181,33 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
&& (this._elencoCartelliniTableAdapter.Connection != null))) {
return this._elencoCartelliniTableAdapter.Connection;
}
+ if (((this._anagMagTableAdapter != null)
+ && (this._anagMagTableAdapter.Connection != null))) {
+ return this._anagMagTableAdapter.Connection;
+ }
if (((this._posizioneUdcCorrenteTableAdapter != null)
&& (this._posizioneUdcCorrenteTableAdapter.Connection != null))) {
return this._posizioneUdcCorrenteTableAdapter.Connection;
}
- if (((this._anagCelleTableAdapter != null)
- && (this._anagCelleTableAdapter.Connection != null))) {
- return this._anagCelleTableAdapter.Connection;
- }
if (((this._posizioneUdcStoricoTableAdapter != null)
&& (this._posizioneUdcStoricoTableAdapter.Connection != null))) {
return this._posizioneUdcStoricoTableAdapter.Connection;
}
- if (((this._anagMagTableAdapter != null)
- && (this._anagMagTableAdapter.Connection != null))) {
- return this._anagMagTableAdapter.Connection;
+ if (((this._blocchiTableAdapter != null)
+ && (this._blocchiTableAdapter.Connection != null))) {
+ return this._blocchiTableAdapter.Connection;
+ }
+ if (((this._celleTableAdapter != null)
+ && (this._celleTableAdapter.Connection != null))) {
+ return this._celleTableAdapter.Connection;
+ }
+ if (((this._celle2BlocchiTableAdapter != null)
+ && (this._celle2BlocchiTableAdapter.Connection != null))) {
+ return this._celle2BlocchiTableAdapter.Connection;
+ }
+ if (((this._mappeTableAdapter != null)
+ && (this._mappeTableAdapter.Connection != null))) {
+ return this._mappeTableAdapter.Connection;
}
return null;
}
@@ -6495,16 +9224,25 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
if ((this._elencoCartelliniTableAdapter != null)) {
count = (count + 1);
}
- if ((this._posizioneUdcCorrenteTableAdapter != null)) {
+ if ((this._anagMagTableAdapter != null)) {
count = (count + 1);
}
- if ((this._anagCelleTableAdapter != null)) {
+ if ((this._posizioneUdcCorrenteTableAdapter != null)) {
count = (count + 1);
}
if ((this._posizioneUdcStoricoTableAdapter != null)) {
count = (count + 1);
}
- if ((this._anagMagTableAdapter != null)) {
+ if ((this._blocchiTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._celleTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._celle2BlocchiTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._mappeTableAdapter != null)) {
count = (count + 1);
}
return count;
@@ -6526,6 +9264,33 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._mappeTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Mappe.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._mappeTableAdapter.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);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._blocchiTableAdapter.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);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._celleTableAdapter.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);
@@ -6535,12 +9300,21 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagCelleTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagCelle.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._posizioneUdcStoricoTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._anagCelleTableAdapter.Update(updatedRows));
+ result = (result + this._posizioneUdcStoricoTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._celle2BlocchiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Celle2Blocchi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._celle2BlocchiTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -6553,15 +9327,6 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
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);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._posizioneUdcStoricoTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
return result;
}
@@ -6579,6 +9344,30 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._mappeTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Mappe.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._mappeTableAdapter.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)
+ && (0 < addedRows.Length))) {
+ result = (result + this._blocchiTableAdapter.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)
+ && (0 < addedRows.Length))) {
+ result = (result + this._celleTableAdapter.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)
@@ -6587,11 +9376,19 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagCelleTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagCelle.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._posizioneUdcStoricoTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._anagCelleTableAdapter.Update(addedRows));
+ result = (result + this._posizioneUdcStoricoTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._celle2BlocchiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Celle2Blocchi.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._celle2BlocchiTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -6603,14 +9400,6 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
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)
- && (0 < addedRows.Length))) {
- result = (result + this._posizioneUdcStoricoTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
return result;
}
@@ -6620,14 +9409,6 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateDeletedRows(DS_magazzino dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
- if ((this._posizioneUdcStoricoTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._posizioneUdcStoricoTableAdapter.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)
@@ -6636,11 +9417,19 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagCelleTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagCelle.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._celle2BlocchiTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Celle2Blocchi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._anagCelleTableAdapter.Update(deletedRows));
+ result = (result + this._celle2BlocchiTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._posizioneUdcStoricoTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._posizioneUdcStoricoTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -6652,6 +9441,30 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
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)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._celleTableAdapter.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._mappeTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Mappe.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._mappeTableAdapter.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)
@@ -6702,13 +9515,13 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
- if (((this._posizioneUdcCorrenteTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._posizioneUdcCorrenteTableAdapter.Connection) == false))) {
+ if (((this._anagMagTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagMagTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
- if (((this._anagCelleTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagCelleTableAdapter.Connection) == false))) {
+ if (((this._posizioneUdcCorrenteTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._posizioneUdcCorrenteTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
@@ -6717,8 +9530,23 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
- if (((this._anagMagTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagMagTableAdapter.Connection) == false))) {
+ if (((this._blocchiTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._blocchiTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._celleTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._celleTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._celle2BlocchiTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._celle2BlocchiTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._mappeTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._mappeTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
@@ -6763,6 +9591,15 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
adaptersWithAcceptChangesDuringUpdate.Add(this._elencoCartelliniTableAdapter.Adapter);
}
}
+ if ((this._anagMagTableAdapter != null)) {
+ revertConnections.Add(this._anagMagTableAdapter, this._anagMagTableAdapter.Connection);
+ this._anagMagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagMagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagMagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagMagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagMagTableAdapter.Adapter);
+ }
+ }
if ((this._posizioneUdcCorrenteTableAdapter != null)) {
revertConnections.Add(this._posizioneUdcCorrenteTableAdapter, this._posizioneUdcCorrenteTableAdapter.Connection);
this._posizioneUdcCorrenteTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -6772,15 +9609,6 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
adaptersWithAcceptChangesDuringUpdate.Add(this._posizioneUdcCorrenteTableAdapter.Adapter);
}
}
- if ((this._anagCelleTableAdapter != null)) {
- revertConnections.Add(this._anagCelleTableAdapter, this._anagCelleTableAdapter.Connection);
- this._anagCelleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagCelleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagCelleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagCelleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagCelleTableAdapter.Adapter);
- }
- }
if ((this._posizioneUdcStoricoTableAdapter != null)) {
revertConnections.Add(this._posizioneUdcStoricoTableAdapter, this._posizioneUdcStoricoTableAdapter.Connection);
this._posizioneUdcStoricoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -6790,13 +9618,40 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
adaptersWithAcceptChangesDuringUpdate.Add(this._posizioneUdcStoricoTableAdapter.Adapter);
}
}
- if ((this._anagMagTableAdapter != null)) {
- revertConnections.Add(this._anagMagTableAdapter, this._anagMagTableAdapter.Connection);
- this._anagMagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagMagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagMagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagMagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagMagTableAdapter.Adapter);
+ if ((this._blocchiTableAdapter != null)) {
+ revertConnections.Add(this._blocchiTableAdapter, this._blocchiTableAdapter.Connection);
+ this._blocchiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._blocchiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._blocchiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._blocchiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._blocchiTableAdapter.Adapter);
+ }
+ }
+ if ((this._celleTableAdapter != null)) {
+ revertConnections.Add(this._celleTableAdapter, this._celleTableAdapter.Connection);
+ this._celleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._celleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._celleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._celleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._celleTableAdapter.Adapter);
+ }
+ }
+ if ((this._celle2BlocchiTableAdapter != null)) {
+ revertConnections.Add(this._celle2BlocchiTableAdapter, this._celle2BlocchiTableAdapter.Connection);
+ this._celle2BlocchiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._celle2BlocchiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._celle2BlocchiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._celle2BlocchiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._celle2BlocchiTableAdapter.Adapter);
+ }
+ }
+ if ((this._mappeTableAdapter != null)) {
+ revertConnections.Add(this._mappeTableAdapter, this._mappeTableAdapter.Connection);
+ this._mappeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._mappeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._mappeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._mappeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._mappeTableAdapter.Adapter);
}
}
//
@@ -6861,21 +9716,33 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
this._elencoCartelliniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoCartelliniTableAdapter]));
this._elencoCartelliniTableAdapter.Transaction = null;
}
+ if ((this._anagMagTableAdapter != null)) {
+ this._anagMagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagMagTableAdapter]));
+ this._anagMagTableAdapter.Transaction = null;
+ }
if ((this._posizioneUdcCorrenteTableAdapter != null)) {
this._posizioneUdcCorrenteTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._posizioneUdcCorrenteTableAdapter]));
this._posizioneUdcCorrenteTableAdapter.Transaction = null;
}
- if ((this._anagCelleTableAdapter != null)) {
- this._anagCelleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagCelleTableAdapter]));
- this._anagCelleTableAdapter.Transaction = null;
- }
if ((this._posizioneUdcStoricoTableAdapter != null)) {
this._posizioneUdcStoricoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._posizioneUdcStoricoTableAdapter]));
this._posizioneUdcStoricoTableAdapter.Transaction = null;
}
- if ((this._anagMagTableAdapter != null)) {
- this._anagMagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagMagTableAdapter]));
- this._anagMagTableAdapter.Transaction = null;
+ if ((this._blocchiTableAdapter != null)) {
+ this._blocchiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._blocchiTableAdapter]));
+ this._blocchiTableAdapter.Transaction = null;
+ }
+ if ((this._celleTableAdapter != null)) {
+ this._celleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._celleTableAdapter]));
+ this._celleTableAdapter.Transaction = null;
+ }
+ if ((this._celle2BlocchiTableAdapter != null)) {
+ this._celle2BlocchiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._celle2BlocchiTableAdapter]));
+ this._celle2BlocchiTableAdapter.Transaction = null;
+ }
+ if ((this._mappeTableAdapter != null)) {
+ this._mappeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mappeTableAdapter]));
+ this._mappeTableAdapter.Transaction = null;
}
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
diff --git a/GMW/GMW_data/DS_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd
index 246f4fac..99928e5f 100644
--- a/GMW/GMW_data/DS_magazzino.xsd
+++ b/GMW/GMW_data/DS_magazzino.xsd
@@ -218,206 +218,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
-
-
-
-
-
- DELETE FROM [dbo].[PosizioneUdcCorrente] WHERE (([UDC] = @Original_UDC) AND ([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)))
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[PosizioneUdcCorrente] ([UDC], [CodMag], [CodCella], [DataRif]) VALUES (@UDC, @CodMag, @CodCella, @DataRif);
-SELECT UDC, CodMag, CodCella, DataRif FROM PosizioneUdcCorrente WHERE (CodCella = @CodCella) AND (CodMag = @CodMag) AND (UDC = @UDC)
-
-
-
-
-
-
-
-
-
-
- SELECT UDC, CodMag, CodCella, DataRif FROM dbo.PosizioneUdcCorrente
-
-
-
-
-
- UPDATE [dbo].[PosizioneUdcCorrente] SET [UDC] = @UDC, [CodMag] = @CodMag, [CodCella] = @CodCella, [DataRif] = @DataRif WHERE (([UDC] = @Original_UDC) AND ([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)));
-SELECT UDC, CodMag, CodCella, DataRif FROM PosizioneUdcCorrente WHERE (CodCella = @CodCella) AND (CodMag = @CodMag) AND (UDC = @UDC)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DELETE FROM [dbo].[AnagCelle] WHERE (([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)))
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagCelle] ([CodMag], [CodCella], [Capacita], [Descrizione]) VALUES (@CodMag, @CodCella, @Capacita, @Descrizione);
-SELECT CodMag, CodCella, Capacita, Descrizione FROM AnagCelle WHERE (CodCella = @CodCella) AND (CodMag = @CodMag)
-
-
-
-
-
-
-
-
-
-
- SELECT CodMag, CodCella, Capacita, Descrizione FROM dbo.AnagCelle
-
-
-
-
-
- UPDATE [dbo].[AnagCelle] SET [CodMag] = @CodMag, [CodCella] = @CodCella, [Capacita] = @Capacita, [Descrizione] = @Descrizione WHERE (([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)));
-SELECT CodMag, CodCella, Capacita, Descrizione FROM AnagCelle WHERE (CodCella = @CodCella) AND (CodMag = @CodMag)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_cellaGetByCodMag
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DELETE FROM [dbo].[PosizioneUdcStorico] WHERE (([UDC] = @Original_UDC) AND ([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ([DataInizio] = @Original_DataInizio) AND ((@IsNull_DataFine = 1 AND [DataFine] IS NULL) OR ([DataFine] = @Original_DataFine)))
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[PosizioneUdcStorico] ([UDC], [CodMag], [CodCella], [DataInizio], [DataFine]) VALUES (@UDC, @CodMag, @CodCella, @DataInizio, @DataFine);
-SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHERE (CodCella = @CodCella) AND (CodMag = @CodMag) AND (DataInizio = @DataInizio) AND (UDC = @UDC)
-
-
-
-
-
-
-
-
-
-
-
- SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM dbo.PosizioneUdcStorico
-
-
-
-
-
- UPDATE [dbo].[PosizioneUdcStorico] SET [UDC] = @UDC, [CodMag] = @CodMag, [CodCella] = @CodCella, [DataInizio] = @DataInizio, [DataFine] = @DataFine WHERE (([UDC] = @Original_UDC) AND ([CodMag] = @Original_CodMag) AND ([CodCella] = @Original_CodCella) AND ([DataInizio] = @Original_DataInizio) AND ((@IsNull_DataFine = 1 AND [DataFine] IS NULL) OR ([DataFine] = @Original_DataFine)));
-SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHERE (CodCella = @CodCella) AND (CodMag = @CodMag) AND (DataInizio = @DataInizio) AND (UDC = @UDC)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -472,7 +272,7 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)
-
+
DELETE FROM AnagMag
@@ -507,7 +307,7 @@ WHERE (CodCS = @CodCS) AND (CodMag = @Original_CodMag)
-
+
UPDATE AnagMag
@@ -525,6 +325,420 @@ WHERE (CodCS = @Original_CodCS) AND (CodMag = @Original_CodMag)
+
+
+
+
+
+ DELETE FROM [dbo].[PosizioneUdcCorrente] WHERE (([UDC] = @Original_UDC) AND ([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)))
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[PosizioneUdcCorrente] ([UDC], [IdxCella], [CodCS], [DataRif]) VALUES (@UDC, @IdxCella, @CodCS, @DataRif);
+SELECT UDC, IdxCella, CodCS, DataRif FROM PosizioneUdcCorrente WHERE (IdxCella = @IdxCella) AND (UDC = @UDC)
+
+
+
+
+
+
+
+
+
+
+ SELECT UDC, IdxCella, CodCS, DataRif FROM dbo.PosizioneUdcCorrente
+
+
+
+
+
+ UPDATE [dbo].[PosizioneUdcCorrente] SET [UDC] = @UDC, [IdxCella] = @IdxCella, [CodCS] = @CodCS, [DataRif] = @DataRif WHERE (([UDC] = @Original_UDC) AND ([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)));
+SELECT UDC, IdxCella, CodCS, DataRif FROM PosizioneUdcCorrente WHERE (IdxCella = @IdxCella) AND (UDC = @UDC)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[PosizioneUdcStorico] WHERE (([UDC] = @Original_UDC) AND ([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([DataInizio] = @Original_DataInizio) AND ((@IsNull_DataFine = 1 AND [DataFine] IS NULL) OR ([DataFine] = @Original_DataFine)))
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[PosizioneUdcStorico] ([UDC], [IdxCella], [CodCS], [DataInizio], [DataFine]) VALUES (@UDC, @IdxCella, @CodCS, @DataInizio, @DataFine);
+SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM PosizioneUdcStorico WHERE (IdxCella = @IdxCella) AND (UDC = @UDC)
+
+
+
+
+
+
+
+
+
+
+
+ SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM dbo.PosizioneUdcStorico
+
+
+
+
+
+ UPDATE [dbo].[PosizioneUdcStorico] SET [UDC] = @UDC, [IdxCella] = @IdxCella, [CodCS] = @CodCS, [DataInizio] = @DataInizio, [DataFine] = @DataFine WHERE (([UDC] = @Original_UDC) AND ([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([DataInizio] = @Original_DataInizio) AND ((@IsNull_DataFine = 1 AND [DataFine] IS NULL) OR ([DataFine] = @Original_DataFine)));
+SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM PosizioneUdcStorico WHERE (IdxCella = @IdxCella) AND (UDC = @UDC)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxMappa] = @Original_IdxMappa) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[Blocchi] ([IdxBlocco], [IdxMappa], [CodBlocco], [DescBlocco], [NumX], [NumY], [NumZ]) VALUES (@IdxBlocco, @IdxMappa, @CodBlocco, @DescBlocco, @NumX, @NumY, @NumZ);
+SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM dbo.Blocchi
+
+
+
+
+
+ UPDATE [dbo].[Blocchi] SET [IdxBlocco] = @IdxBlocco, [IdxMappa] = @IdxMappa, [CodBlocco] = @CodBlocco, [DescBlocco] = @DescBlocco, [NumX] = @NumX, [NumY] = @NumY, [NumZ] = @NumZ WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxMappa] = @Original_IdxMappa) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)));
+SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[Celle] WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[Celle] ([CodCS], [CodCella], [Capacita], [Descrizione]) VALUES (@CodCS, @CodCella, @Capacita, @Descrizione);
+SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCella = SCOPE_IDENTITY())
+
+
+
+
+
+
+
+
+
+
+ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM dbo.Celle
+
+
+
+
+
+ UPDATE [dbo].[Celle] SET [CodCS] = @CodCS, [CodCella] = @CodCella, [Capacita] = @Capacita, [Descrizione] = @Descrizione WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)));
+SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCella = @IdxCella)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[Celle2Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxCella] = @Original_IdxCella) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[Celle2Blocchi] ([IdxBlocco], [IdxCella], [X], [Y], [Z]) VALUES (@IdxBlocco, @IdxCella, @X, @Y, @Z);
+SELECT IdxBlocco, IdxCella, X, Y, Z FROM Celle2Blocchi WHERE (IdxBlocco = @IdxBlocco) AND (IdxCella = @IdxCella)
+
+
+
+
+
+
+
+
+
+
+
+ SELECT IdxBlocco, IdxCella, X, Y, Z FROM dbo.Celle2Blocchi
+
+
+
+
+
+ UPDATE [dbo].[Celle2Blocchi] SET [IdxBlocco] = @IdxBlocco, [IdxCella] = @IdxCella, [X] = @X, [Y] = @Y, [Z] = @Z WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxCella] = @Original_IdxCella) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)));
+SELECT IdxBlocco, IdxCella, X, Y, Z FROM Celle2Blocchi WHERE (IdxBlocco = @IdxBlocco) AND (IdxCella = @IdxCella)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[Mappe] WHERE (([IdxMappa] = @Original_IdxMappa) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([DescMappa] = @Original_DescMappa))
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[Mappe] ([IdxMappa], [CodMag], [CodCS], [DescMappa]) VALUES (@IdxMappa, @CodMag, @CodCS, @DescMappa);
+SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa)
+
+
+
+
+
+
+
+
+
+
+ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM dbo.Mappe
+
+
+
+
+
+ UPDATE [dbo].[Mappe] SET [IdxMappa] = @IdxMappa, [CodMag] = @CodMag, [CodCS] = @CodCS, [DescMappa] = @DescMappa WHERE (([IdxMappa] = @Original_IdxMappa) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([DescMappa] = @Original_DescMappa));
+SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_mappeGetByCodMag
+
+
+
+
+
+
+
+
+
+
@@ -536,125 +750,152 @@ WHERE (CodCS = @Original_CodCS) AND (CodMag = @Original_CodMag)
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -664,17 +905,11 @@ WHERE (CodCS = @Original_CodCS) AND (CodMag = @Original_CodMag)
-
+
+
-
-
-
-
-
-
-
-
+
@@ -682,16 +917,65 @@ WHERE (CodCS = @Original_CodCS) AND (CodMag = @Original_CodMag)
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -710,16 +994,21 @@ WHERE (CodCS = @Original_CodCS) AND (CodMag = @Original_CodMag)
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -727,36 +1016,14 @@ WHERE (CodCS = @Original_CodCS) AND (CodMag = @Original_CodMag)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
@@ -772,35 +1039,47 @@ WHERE (CodCS = @Original_CodCS) AND (CodMag = @Original_CodMag)
+
+
+
+
-
-
-
-
-
-
-
+
-
-
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DS_magazzino.xss b/GMW/GMW_data/DS_magazzino.xss
index f6d15453..c033cda8 100644
--- a/GMW/GMW_data/DS_magazzino.xss
+++ b/GMW/GMW_data/DS_magazzino.xss
@@ -4,60 +4,99 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
- 942
- 403
+ 302
+ 641
- 746
- 403
+ 375
+ 641
-
+
- 361
- 423
+ 302
+ 413
- 473
- 423
+ 387
+ 413
-
+
- 942
- 226
+ 825
+ 633
- 744
- 226
+ 648
+ 633
-
+
- 213
- 282
+ 824
+ 231
- 213
- 388
+ 824
+ 279
+
+
+
+
+
+
+ 911
+ 550
+
+
+ 911
+ 451
+
+
+
+
+
+
+ 723
+ 155
+
+
+ 804
+ 155
+
+
+
+
+
+
+ 386
+ 147
+
+
+ 481
+ 147
diff --git a/GMW/GMW_data/MagClass.cs b/GMW/GMW_data/MagClass.cs
index 9c8a1edb..862ebf09 100644
--- a/GMW/GMW_data/MagClass.cs
+++ b/GMW/GMW_data/MagClass.cs
@@ -14,7 +14,9 @@ namespace GMW_data
#region area table adapters
public DS_magazzinoTableAdapters.AnagMagTableAdapter taAnagMag;
- public DS_magazzinoTableAdapters.AnagCelleTableAdapter taAnagCelle;
+ public DS_magazzinoTableAdapters.MappeTableAdapter taMappe;
+ public DS_magazzinoTableAdapters.BlocchiTableAdapter taBlocchi;
+ public DS_magazzinoTableAdapters.CelleTableAdapter taCelle;
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taCartellini;
public DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter taPosUdcCorr;
public DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter taPosUdcStorico;
@@ -26,7 +28,9 @@ namespace GMW_data
protected void initTA()
{
taAnagMag = new GMW_data.DS_magazzinoTableAdapters.AnagMagTableAdapter();
- taAnagCelle = new GMW_data.DS_magazzinoTableAdapters.AnagCelleTableAdapter();
+ taMappe = new GMW_data.DS_magazzinoTableAdapters.MappeTableAdapter();
+ taBlocchi = new GMW_data.DS_magazzinoTableAdapters.BlocchiTableAdapter();
+ taCelle = new GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter();
taCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter();
taPosUdcCorr = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter();
taPosUdcStorico = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter();
@@ -38,11 +42,14 @@ namespace GMW_data
{
// connections del db
taAnagMag.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
- taAnagCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
+ taMappe.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
+ taBlocchi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
+ taCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taPosUdcCorr.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taPosUdcStorico.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
}
+
#endregion
#region Inizializzazione
diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll
index f7bbe5b6..61dedba1 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 f7bbe5b6..61dedba1 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_magazzino.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll
index c7456dda..f649e277 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