diff --git a/GMW/GMW/Type/Cartellino.cs b/GMW/GMW/Type/Cartellino.cs
index 735d23a8..33d03acf 100644
--- a/GMW/GMW/Type/Cartellino.cs
+++ b/GMW/GMW/Type/Cartellino.cs
@@ -36,6 +36,14 @@ namespace GMW.Type
///
public string RagSociale { get; set; }
///
+ /// Codice della Famiglia del particolare (se presente)
+ ///
+ public string CodFamiglia { get; set; }
+ ///
+ /// Famiglia del particolare (se presente)
+ ///
+ public string DescFamiglia { get; set; }
+ ///
/// Particolare
///
public string Particolare { get; set; }
@@ -201,6 +209,29 @@ namespace GMW.Type
{
DescStato = "n.d.";
}
+ try
+ {
+ CodFamiglia = DataProxy.obj.taAnagParticolari.getByParticolare(riga.Particolare)[0].CodFamiglia;
+ }
+ catch
+ {
+ CodFamiglia = "n.d.";
+ }
+ try
+ {
+ if (CodFamiglia != "n.d.")
+ {
+ DescFamiglia = DataProxy.obj.taAnagFamiglie.getByCodFamiglia(CodFamiglia)[0].DescFamiglia;
+ }
+ else
+ {
+ DescFamiglia = "n.d.";
+ }
+ }
+ catch
+ {
+ DescFamiglia = "n.d.";
+ }
}
}
}
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index 7bfdcaa0..6f53d044 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 c8d08d4f..e23324cb 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 58f79921..f19b78fe 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 228aa518..69cab9c0 100644
Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW/obj/Release/GMW.dll b/GMW/GMW/obj/Release/GMW.dll
index 7bfdcaa0..6f53d044 100644
Binary files a/GMW/GMW/obj/Release/GMW.dll and b/GMW/GMW/obj/Release/GMW.dll differ
diff --git a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache
index 30708866..cf0047fa 100644
Binary files a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_WS/bin/GMW.dll b/GMW/GMW_WS/bin/GMW.dll
index 7bfdcaa0..6f53d044 100644
Binary files a/GMW/GMW_WS/bin/GMW.dll and b/GMW/GMW_WS/bin/GMW.dll differ
diff --git a/GMW/GMW_WS/bin/GMW_WS.dll b/GMW/GMW_WS/bin/GMW_WS.dll
index 6b5cd7a8..9a36481f 100644
Binary files a/GMW/GMW_WS/bin/GMW_WS.dll and b/GMW/GMW_WS/bin/GMW_WS.dll differ
diff --git a/GMW/GMW_WS/bin/GMW_data.dll b/GMW/GMW_WS/bin/GMW_data.dll
index c8d08d4f..e23324cb 100644
Binary files a/GMW/GMW_WS/bin/GMW_data.dll and b/GMW/GMW_WS/bin/GMW_data.dll differ
diff --git a/GMW/GMW_WS/obj/Debug/GMW_WS.dll b/GMW/GMW_WS/obj/Debug/GMW_WS.dll
index 52876912..69413806 100644
Binary files a/GMW/GMW_WS/obj/Debug/GMW_WS.dll and b/GMW/GMW_WS/obj/Debug/GMW_WS.dll differ
diff --git a/GMW/GMW_WS/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_WS/obj/Debug/ResolveAssemblyReference.cache
index c6d1138c..ebbdd312 100644
Binary files a/GMW/GMW_WS/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_WS/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_WS/obj/Release/GMW_WS.dll b/GMW/GMW_WS/obj/Release/GMW_WS.dll
index 6b5cd7a8..9a36481f 100644
Binary files a/GMW/GMW_WS/obj/Release/GMW_WS.dll and b/GMW/GMW_WS/obj/Release/GMW_WS.dll differ
diff --git a/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache
index b388a248..2c367c4d 100644
Binary files a/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_WS_installer/GMW_WS_installer.vdproj b/GMW/GMW_WS_installer/GMW_WS_installer.vdproj
index bd6b39c7..7a227118 100644
--- a/GMW/GMW_WS_installer/GMW_WS_installer.vdproj
+++ b/GMW/GMW_WS_installer/GMW_WS_installer.vdproj
@@ -345,7 +345,7 @@
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:GMW_WS"
"ProductCode" = "8:{BE396C8D-16AF-4259-88AB-3A24D70C22AA}"
- "PackageCode" = "8:{BC0376DC-DA75-4302-9809-CA5808374012}"
+ "PackageCode" = "8:{F719988E-704B-4E30-A93F-DE27216A7712}"
"UpgradeCode" = "8:{BA470335-3D4B-4C20-8152-90A5F0F14FE0}"
"RestartWWWService" = "11:TRUE"
"RemovePreviousVersions" = "11:TRUE"
@@ -824,7 +824,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_C1E28C0CBEB3498E83D9B97B28568D55"
{
- "SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
+ "SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Release\\IISConsoleVB.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_B61BA0CAC3474474B971A8F12A1C93F2"
@@ -852,7 +852,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_D67ABEB91C7F428EB3C512E4A505628A"
{
- "SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
+ "SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_B61BA0CAC3474474B971A8F12A1C93F2"
diff --git a/GMW/GMW_WS_installer/Release/GMW_WS_installer.msi b/GMW/GMW_WS_installer/Release/GMW_WS_installer.msi
index 29599ddd..b55a9b8d 100644
Binary files a/GMW/GMW_WS_installer/Release/GMW_WS_installer.msi and b/GMW/GMW_WS_installer/Release/GMW_WS_installer.msi differ
diff --git a/GMW/GMW_data/DS_Applicazione.Designer.cs b/GMW/GMW_data/DS_Applicazione.Designer.cs
index 31eaf7eb..2d79a16a 100644
--- a/GMW/GMW_data/DS_Applicazione.Designer.cs
+++ b/GMW/GMW_data/DS_Applicazione.Designer.cs
@@ -57,6 +57,10 @@ namespace GMW_data {
private stp_prtCartByUDCDataTable tablestp_prtCartByUDC;
+ private AnagParticolariDataTable tableAnagParticolari;
+
+ private AnagFamiglieDataTable tableAnagFamiglie;
+
private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagArticoli1;
private global::System.Data.DataRelation relationFK_StoricoEventi_AnagTipoDichiaraz;
@@ -71,6 +75,8 @@ namespace GMW_data {
private global::System.Data.DataRelation relationFK_AnagOperatori_AnagCompanySito;
+ private global::System.Data.DataRelation relationFK_AnagParticolari_AnagCompanySito;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -145,6 +151,12 @@ namespace GMW_data {
if ((ds.Tables["stp_prtCartByUDC"] != null)) {
base.Tables.Add(new stp_prtCartByUDCDataTable(ds.Tables["stp_prtCartByUDC"]));
}
+ if ((ds.Tables["AnagParticolari"] != null)) {
+ base.Tables.Add(new AnagParticolariDataTable(ds.Tables["AnagParticolari"]));
+ }
+ if ((ds.Tables["AnagFamiglie"] != null)) {
+ base.Tables.Add(new AnagFamiglieDataTable(ds.Tables["AnagFamiglie"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -307,6 +319,24 @@ namespace GMW_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagParticolariDataTable AnagParticolari {
+ get {
+ return this.tableAnagParticolari;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagFamiglieDataTable AnagFamiglie {
+ get {
+ return this.tableAnagFamiglie;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
@@ -414,6 +444,12 @@ namespace GMW_data {
if ((ds.Tables["stp_prtCartByUDC"] != null)) {
base.Tables.Add(new stp_prtCartByUDCDataTable(ds.Tables["stp_prtCartByUDC"]));
}
+ if ((ds.Tables["AnagParticolari"] != null)) {
+ base.Tables.Add(new AnagParticolariDataTable(ds.Tables["AnagParticolari"]));
+ }
+ if ((ds.Tables["AnagFamiglie"] != null)) {
+ base.Tables.Add(new AnagFamiglieDataTable(ds.Tables["AnagFamiglie"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -540,6 +576,18 @@ namespace GMW_data {
this.tablestp_prtCartByUDC.InitVars();
}
}
+ this.tableAnagParticolari = ((AnagParticolariDataTable)(base.Tables["AnagParticolari"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagParticolari != null)) {
+ this.tableAnagParticolari.InitVars();
+ }
+ }
+ this.tableAnagFamiglie = ((AnagFamiglieDataTable)(base.Tables["AnagFamiglie"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagFamiglie != null)) {
+ this.tableAnagFamiglie.InitVars();
+ }
+ }
this.relationFK_Impianti2Articoli_AnagArticoli1 = this.Relations["FK_Impianti2Articoli_AnagArticoli1"];
this.relationFK_StoricoEventi_AnagTipoDichiaraz = this.Relations["FK_StoricoEventi_AnagTipoDichiaraz"];
this.relationFK_Impianti2Articoli_AnagImpianti = this.Relations["FK_Impianti2Articoli_AnagImpianti"];
@@ -547,6 +595,7 @@ namespace GMW_data {
this.relationFK_ElencoCartellini_AnagCompanySito = this.Relations["FK_ElencoCartellini_AnagCompanySito"];
this.relationFK_ElencoCartellini_AnagStatiProdotto = this.Relations["FK_ElencoCartellini_AnagStatiProdotto"];
this.relationFK_AnagOperatori_AnagCompanySito = this.Relations["FK_AnagOperatori_AnagCompanySito"];
+ this.relationFK_AnagParticolari_AnagCompanySito = this.Relations["FK_AnagParticolari_AnagCompanySito"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -588,6 +637,10 @@ namespace GMW_data {
base.Tables.Add(this.tableAnagClienti);
this.tablestp_prtCartByUDC = new stp_prtCartByUDCDataTable();
base.Tables.Add(this.tablestp_prtCartByUDC);
+ this.tableAnagParticolari = new AnagParticolariDataTable();
+ base.Tables.Add(this.tableAnagParticolari);
+ this.tableAnagFamiglie = new AnagFamiglieDataTable();
+ base.Tables.Add(this.tableAnagFamiglie);
this.relationFK_Impianti2Articoli_AnagArticoli1 = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagArticoli1", new global::System.Data.DataColumn[] {
this.tableAnagArticoli.ParticolareColumn}, new global::System.Data.DataColumn[] {
this.tableImpianti2Articoli.ParticolareColumn}, false);
@@ -616,6 +669,10 @@ namespace GMW_data {
this.tableAnagCompanySito.CodCSColumn}, new global::System.Data.DataColumn[] {
this.tableAnagOperatori.CodCSColumn}, false);
this.Relations.Add(this.relationFK_AnagOperatori_AnagCompanySito);
+ this.relationFK_AnagParticolari_AnagCompanySito = new global::System.Data.DataRelation("FK_AnagParticolari_AnagCompanySito", new global::System.Data.DataColumn[] {
+ this.tableAnagCompanySito.CodCSColumn}, new global::System.Data.DataColumn[] {
+ this.tableAnagParticolari.CodCSColumn}, false);
+ this.Relations.Add(this.relationFK_AnagParticolari_AnagCompanySito);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -698,6 +755,16 @@ namespace GMW_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeAnagParticolari() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeAnagFamiglie() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
@@ -783,6 +850,10 @@ namespace GMW_data {
public delegate void stp_prtCartByUDCRowChangeEventHandler(object sender, stp_prtCartByUDCRowChangeEvent e);
+ public delegate void AnagParticolariRowChangeEventHandler(object sender, AnagParticolariRowChangeEvent e);
+
+ public delegate void AnagFamiglieRowChangeEventHandler(object sender, AnagFamiglieRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -6283,6 +6354,564 @@ 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 AnagParticolariDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnParticolare;
+
+ private global::System.Data.DataColumn columnCodCS;
+
+ private global::System.Data.DataColumn columnCodCliente;
+
+ private global::System.Data.DataColumn columnDisegnoGrezzo;
+
+ private global::System.Data.DataColumn columnCodFamiglia;
+
+ private global::System.Data.DataColumn columnDescParticolare;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagParticolariDataTable() {
+ this.TableName = "AnagParticolari";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagParticolariDataTable(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 AnagParticolariDataTable(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 ParticolareColumn {
+ get {
+ return this.columnParticolare;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodCSColumn {
+ get {
+ return this.columnCodCS;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodClienteColumn {
+ get {
+ return this.columnCodCliente;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DisegnoGrezzoColumn {
+ get {
+ return this.columnDisegnoGrezzo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodFamigliaColumn {
+ get {
+ return this.columnCodFamiglia;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DescParticolareColumn {
+ get {
+ return this.columnDescParticolare;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagParticolariRow this[int index] {
+ get {
+ return ((AnagParticolariRow)(this.Rows[index]));
+ }
+ }
+
+ public event AnagParticolariRowChangeEventHandler AnagParticolariRowChanging;
+
+ public event AnagParticolariRowChangeEventHandler AnagParticolariRowChanged;
+
+ public event AnagParticolariRowChangeEventHandler AnagParticolariRowDeleting;
+
+ public event AnagParticolariRowChangeEventHandler AnagParticolariRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddAnagParticolariRow(AnagParticolariRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagParticolariRow AddAnagParticolariRow(string Particolare, AnagCompanySitoRow parentAnagCompanySitoRowByFK_AnagParticolari_AnagCompanySito, string CodCliente, string DisegnoGrezzo, string CodFamiglia, string DescParticolare) {
+ AnagParticolariRow rowAnagParticolariRow = ((AnagParticolariRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ Particolare,
+ null,
+ CodCliente,
+ DisegnoGrezzo,
+ CodFamiglia,
+ DescParticolare};
+ if ((parentAnagCompanySitoRowByFK_AnagParticolari_AnagCompanySito != null)) {
+ columnValuesArray[1] = parentAnagCompanySitoRowByFK_AnagParticolari_AnagCompanySito[0];
+ }
+ rowAnagParticolariRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagParticolariRow);
+ return rowAnagParticolariRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagParticolariRow FindByParticolare(string Particolare) {
+ return ((AnagParticolariRow)(this.Rows.Find(new object[] {
+ Particolare})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ AnagParticolariDataTable cln = ((AnagParticolariDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagParticolariDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnParticolare = base.Columns["Particolare"];
+ this.columnCodCS = base.Columns["CodCS"];
+ this.columnCodCliente = base.Columns["CodCliente"];
+ this.columnDisegnoGrezzo = base.Columns["DisegnoGrezzo"];
+ this.columnCodFamiglia = base.Columns["CodFamiglia"];
+ this.columnDescParticolare = base.Columns["DescParticolare"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnParticolare);
+ this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCS);
+ this.columnCodCliente = new global::System.Data.DataColumn("CodCliente", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCliente);
+ this.columnDisegnoGrezzo = new global::System.Data.DataColumn("DisegnoGrezzo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDisegnoGrezzo);
+ this.columnCodFamiglia = new global::System.Data.DataColumn("CodFamiglia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodFamiglia);
+ this.columnDescParticolare = new global::System.Data.DataColumn("DescParticolare", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescParticolare);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnParticolare}, true));
+ this.columnParticolare.AllowDBNull = false;
+ this.columnParticolare.Unique = true;
+ this.columnParticolare.MaxLength = 15;
+ this.columnCodCS.AllowDBNull = false;
+ this.columnCodCS.MaxLength = 2;
+ this.columnCodCliente.AllowDBNull = false;
+ this.columnCodCliente.MaxLength = 6;
+ this.columnDisegnoGrezzo.AllowDBNull = false;
+ this.columnDisegnoGrezzo.MaxLength = 30;
+ this.columnCodFamiglia.MaxLength = 4;
+ this.columnDescParticolare.MaxLength = 30;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagParticolariRow NewAnagParticolariRow() {
+ return ((AnagParticolariRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagParticolariRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagParticolariRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagParticolariRowChanged != null)) {
+ this.AnagParticolariRowChanged(this, new AnagParticolariRowChangeEvent(((AnagParticolariRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagParticolariRowChanging != null)) {
+ this.AnagParticolariRowChanging(this, new AnagParticolariRowChangeEvent(((AnagParticolariRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagParticolariRowDeleted != null)) {
+ this.AnagParticolariRowDeleted(this, new AnagParticolariRowChangeEvent(((AnagParticolariRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagParticolariRowDeleting != null)) {
+ this.AnagParticolariRowDeleting(this, new AnagParticolariRowChangeEvent(((AnagParticolariRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveAnagParticolariRow(AnagParticolariRow 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_Applicazione ds = new DS_Applicazione();
+ 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 = "AnagParticolariDataTable";
+ 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 AnagFamiglieDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodFamiglia;
+
+ private global::System.Data.DataColumn columnDescFamiglia;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagFamiglieDataTable() {
+ this.TableName = "AnagFamiglie";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagFamiglieDataTable(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 AnagFamiglieDataTable(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 CodFamigliaColumn {
+ get {
+ return this.columnCodFamiglia;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DescFamigliaColumn {
+ get {
+ return this.columnDescFamiglia;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagFamiglieRow this[int index] {
+ get {
+ return ((AnagFamiglieRow)(this.Rows[index]));
+ }
+ }
+
+ public event AnagFamiglieRowChangeEventHandler AnagFamiglieRowChanging;
+
+ public event AnagFamiglieRowChangeEventHandler AnagFamiglieRowChanged;
+
+ public event AnagFamiglieRowChangeEventHandler AnagFamiglieRowDeleting;
+
+ public event AnagFamiglieRowChangeEventHandler AnagFamiglieRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddAnagFamiglieRow(AnagFamiglieRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagFamiglieRow AddAnagFamiglieRow(string CodFamiglia, string DescFamiglia) {
+ AnagFamiglieRow rowAnagFamiglieRow = ((AnagFamiglieRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodFamiglia,
+ DescFamiglia};
+ rowAnagFamiglieRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagFamiglieRow);
+ return rowAnagFamiglieRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagFamiglieRow FindByCodFamiglia(string CodFamiglia) {
+ return ((AnagFamiglieRow)(this.Rows.Find(new object[] {
+ CodFamiglia})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ AnagFamiglieDataTable cln = ((AnagFamiglieDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagFamiglieDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnCodFamiglia = base.Columns["CodFamiglia"];
+ this.columnDescFamiglia = base.Columns["DescFamiglia"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnCodFamiglia = new global::System.Data.DataColumn("CodFamiglia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodFamiglia);
+ this.columnDescFamiglia = new global::System.Data.DataColumn("DescFamiglia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescFamiglia);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodFamiglia}, true));
+ this.columnCodFamiglia.AllowDBNull = false;
+ this.columnCodFamiglia.Unique = true;
+ this.columnCodFamiglia.MaxLength = 4;
+ this.columnDescFamiglia.MaxLength = 100;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagFamiglieRow NewAnagFamiglieRow() {
+ return ((AnagFamiglieRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagFamiglieRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagFamiglieRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagFamiglieRowChanged != null)) {
+ this.AnagFamiglieRowChanged(this, new AnagFamiglieRowChangeEvent(((AnagFamiglieRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagFamiglieRowChanging != null)) {
+ this.AnagFamiglieRowChanging(this, new AnagFamiglieRowChangeEvent(((AnagFamiglieRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagFamiglieRowDeleted != null)) {
+ this.AnagFamiglieRowDeleted(this, new AnagFamiglieRowChangeEvent(((AnagFamiglieRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagFamiglieRowDeleting != null)) {
+ this.AnagFamiglieRowDeleting(this, new AnagFamiglieRowChangeEvent(((AnagFamiglieRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveAnagFamiglieRow(AnagFamiglieRow 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_Applicazione ds = new DS_Applicazione();
+ 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 = "AnagFamiglieDataTable";
+ 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.
///
@@ -7412,6 +8041,16 @@ namespace GMW_data {
return ((AnagOperatoriRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagOperatori_AnagCompanySito"])));
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagParticolariRow[] GetAnagParticolariRows() {
+ if ((this.Table.ChildRelations["FK_AnagParticolari_AnagCompanySito"] == null)) {
+ return new AnagParticolariRow[0];
+ }
+ else {
+ return ((AnagParticolariRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagParticolari_AnagCompanySito"])));
+ }
+ }
}
///
@@ -9504,6 +10143,171 @@ namespace GMW_data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class AnagParticolariRow : global::System.Data.DataRow {
+
+ private AnagParticolariDataTable tableAnagParticolari;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagParticolariRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagParticolari = ((AnagParticolariDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Particolare {
+ get {
+ return ((string)(this[this.tableAnagParticolari.ParticolareColumn]));
+ }
+ set {
+ this[this.tableAnagParticolari.ParticolareColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCS {
+ get {
+ return ((string)(this[this.tableAnagParticolari.CodCSColumn]));
+ }
+ set {
+ this[this.tableAnagParticolari.CodCSColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCliente {
+ get {
+ return ((string)(this[this.tableAnagParticolari.CodClienteColumn]));
+ }
+ set {
+ this[this.tableAnagParticolari.CodClienteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DisegnoGrezzo {
+ get {
+ return ((string)(this[this.tableAnagParticolari.DisegnoGrezzoColumn]));
+ }
+ set {
+ this[this.tableAnagParticolari.DisegnoGrezzoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodFamiglia {
+ get {
+ try {
+ return ((string)(this[this.tableAnagParticolari.CodFamigliaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodFamiglia\' in table \'AnagParticolari\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagParticolari.CodFamigliaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescParticolare {
+ get {
+ try {
+ return ((string)(this[this.tableAnagParticolari.DescParticolareColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescParticolare\' in table \'AnagParticolari\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagParticolari.DescParticolareColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagCompanySitoRow AnagCompanySitoRow {
+ get {
+ return ((AnagCompanySitoRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagParticolari_AnagCompanySito"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_AnagParticolari_AnagCompanySito"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodFamigliaNull() {
+ return this.IsNull(this.tableAnagParticolari.CodFamigliaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodFamigliaNull() {
+ this[this.tableAnagParticolari.CodFamigliaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescParticolareNull() {
+ return this.IsNull(this.tableAnagParticolari.DescParticolareColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescParticolareNull() {
+ this[this.tableAnagParticolari.DescParticolareColumn] = 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 AnagFamiglieRow : global::System.Data.DataRow {
+
+ private AnagFamiglieDataTable tableAnagFamiglie;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagFamiglieRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagFamiglie = ((AnagFamiglieDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodFamiglia {
+ get {
+ return ((string)(this[this.tableAnagFamiglie.CodFamigliaColumn]));
+ }
+ set {
+ this[this.tableAnagFamiglie.CodFamigliaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescFamiglia {
+ get {
+ try {
+ return ((string)(this[this.tableAnagFamiglie.DescFamigliaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescFamiglia\' in table \'AnagFamiglie\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagFamiglie.DescFamigliaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescFamigliaNull() {
+ return this.IsNull(this.tableAnagFamiglie.DescFamigliaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescFamigliaNull() {
+ this[this.tableAnagFamiglie.DescFamigliaColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Row event argument class
///
@@ -9999,6 +10803,68 @@ namespace GMW_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class AnagParticolariRowChangeEvent : global::System.EventArgs {
+
+ private AnagParticolariRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagParticolariRowChangeEvent(AnagParticolariRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagParticolariRow 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 AnagFamiglieRowChangeEvent : global::System.EventArgs {
+
+ private AnagFamiglieRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagFamiglieRowChangeEvent(AnagFamiglieRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagFamiglieRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace GMW_data.DS_ApplicazioneTableAdapters {
@@ -18048,6 +18914,828 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
}
}
+ ///
+ ///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 AnagParticolariTableAdapter : 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 AnagParticolariTableAdapter() {
+ 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 = "AnagParticolari";
+ tableMapping.ColumnMappings.Add("Particolare", "Particolare");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("CodCliente", "CodCliente");
+ tableMapping.ColumnMappings.Add("DisegnoGrezzo", "DisegnoGrezzo");
+ tableMapping.ColumnMappings.Add("CodFamiglia", "CodFamiglia");
+ tableMapping.ColumnMappings.Add("DescParticolare", "DescParticolare");
+ 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 [RilPro].[AnagParticolari] WHERE (([Particolare] = @Original_Particolare) AND ([CodCS] = @Original_CodCS) AND ([CodCliente] = @Original_CodCliente) AND ([DisegnoGrezzo] = @Original_DisegnoGrezzo) AND ((@IsNull_CodFamiglia = 1 AND [CodFamiglia] IS NULL) OR ([CodFamiglia] = @Original_CodFamiglia)) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodFamiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescParticolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [RilPro].[AnagParticolari] ([Particolare], [CodCS], [CodCliente], [DisegnoGrezzo], [CodFamiglia], [DescParticolare]) VALUES (@Particolare, @CodCS, @CodCliente, @DisegnoGrezzo, @CodFamiglia, @DescParticolare);
+SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticolare FROM RilPro.AnagParticolari WHERE (Particolare = @Particolare)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFamiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [RilPro].[AnagParticolari] SET [Particolare] = @Particolare, [CodCS] = @CodCS, [CodCliente] = @CodCliente, [DisegnoGrezzo] = @DisegnoGrezzo, [CodFamiglia] = @CodFamiglia, [DescParticolare] = @DescParticolare WHERE (([Particolare] = @Original_Particolare) AND ([CodCS] = @Original_CodCS) AND ([CodCliente] = @Original_CodCliente) AND ([DisegnoGrezzo] = @Original_DisegnoGrezzo) AND ((@IsNull_CodFamiglia = 1 AND [CodFamiglia] IS NULL) OR ([CodFamiglia] = @Original_CodFamiglia)) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)));
+SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticolare FROM RilPro.AnagParticolari WHERE (Particolare = @Particolare)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFamiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodFamiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescParticolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [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 Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticolar" +
+ "e FROM RilPro.AnagParticolari";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticolar" +
+ "e FROM RilPro.AnagParticolari\r\nwhere Particolare = @Particolare";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", 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_Applicazione.AnagParticolariDataTable 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_Applicazione.AnagParticolariDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.AnagParticolariDataTable dataTable = new DS_Applicazione.AnagParticolariDataTable();
+ 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_Applicazione.AnagParticolariDataTable getByParticolare(string Particolare) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((Particolare == null)) {
+ throw new global::System.ArgumentNullException("Particolare");
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(Particolare));
+ }
+ DS_Applicazione.AnagParticolariDataTable dataTable = new DS_Applicazione.AnagParticolariDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.AnagParticolariDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione dataSet) {
+ return this.Adapter.Update(dataSet, "AnagParticolari");
+ }
+
+ [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_Particolare, string Original_CodCS, string Original_CodCliente, string Original_DisegnoGrezzo, string Original_CodFamiglia, string Original_DescParticolare) {
+ if ((Original_Particolare == null)) {
+ throw new global::System.ArgumentNullException("Original_Particolare");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Particolare));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_CodCliente == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCliente");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodCliente));
+ }
+ if ((Original_DisegnoGrezzo == null)) {
+ throw new global::System.ArgumentNullException("Original_DisegnoGrezzo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DisegnoGrezzo));
+ }
+ if ((Original_CodFamiglia == 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_CodFamiglia));
+ }
+ if ((Original_DescParticolare == null)) {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_DescParticolare));
+ }
+ 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 Particolare, string CodCS, string CodCliente, string DisegnoGrezzo, string CodFamiglia, string DescParticolare) {
+ if ((Particolare == null)) {
+ throw new global::System.ArgumentNullException("Particolare");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Particolare));
+ }
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((CodCliente == null)) {
+ throw new global::System.ArgumentNullException("CodCliente");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCliente));
+ }
+ if ((DisegnoGrezzo == null)) {
+ throw new global::System.ArgumentNullException("DisegnoGrezzo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(DisegnoGrezzo));
+ }
+ if ((CodFamiglia == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodFamiglia));
+ }
+ if ((DescParticolare == null)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(DescParticolare));
+ }
+ 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 Particolare, string CodCS, string CodCliente, string DisegnoGrezzo, string CodFamiglia, string DescParticolare, string Original_Particolare, string Original_CodCS, string Original_CodCliente, string Original_DisegnoGrezzo, string Original_CodFamiglia, string Original_DescParticolare) {
+ if ((Particolare == null)) {
+ throw new global::System.ArgumentNullException("Particolare");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Particolare));
+ }
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((CodCliente == null)) {
+ throw new global::System.ArgumentNullException("CodCliente");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCliente));
+ }
+ if ((DisegnoGrezzo == null)) {
+ throw new global::System.ArgumentNullException("DisegnoGrezzo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(DisegnoGrezzo));
+ }
+ if ((CodFamiglia == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodFamiglia));
+ }
+ if ((DescParticolare == null)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(DescParticolare));
+ }
+ if ((Original_Particolare == null)) {
+ throw new global::System.ArgumentNullException("Original_Particolare");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Particolare));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_CodCliente == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCliente");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodCliente));
+ }
+ if ((Original_DisegnoGrezzo == null)) {
+ throw new global::System.ArgumentNullException("Original_DisegnoGrezzo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_DisegnoGrezzo));
+ }
+ if ((Original_CodFamiglia == null)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodFamiglia));
+ }
+ if ((Original_DescParticolare == null)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_DescParticolare));
+ }
+ 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 CodCliente, string DisegnoGrezzo, string CodFamiglia, string DescParticolare, string Original_Particolare, string Original_CodCS, string Original_CodCliente, string Original_DisegnoGrezzo, string Original_CodFamiglia, string Original_DescParticolare) {
+ return this.Update(Original_Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticolare, Original_Particolare, Original_CodCS, Original_CodCliente, Original_DisegnoGrezzo, Original_CodFamiglia, Original_DescParticolare);
+ }
+ }
+
+ ///
+ ///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 AnagFamiglieTableAdapter : 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 AnagFamiglieTableAdapter() {
+ 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 = "AnagFamiglie";
+ tableMapping.ColumnMappings.Add("CodFamiglia", "CodFamiglia");
+ tableMapping.ColumnMappings.Add("DescFamiglia", "DescFamiglia");
+ 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 [RilPro].[AnagFamiglie] WHERE (([CodFamiglia] = @Original_CodFamiglia" +
+ ") AND ((@IsNull_DescFamiglia = 1 AND [DescFamiglia] IS NULL) OR ([DescFamiglia] " +
+ "= @Original_DescFamiglia)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodFamiglia", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescFamiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescFamiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescFamiglia", 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 [RilPro].[AnagFamiglie] ([CodFamiglia], [DescFamiglia]) VALUES (@CodF" +
+ "amiglia, @DescFamiglia);\r\nSELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamig" +
+ "lie WHERE (CodFamiglia = @CodFamiglia)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFamiglia", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescFamiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescFamiglia", 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 [RilPro].[AnagFamiglie] SET [CodFamiglia] = @CodFamiglia, [DescFamiglia] = @DescFamiglia WHERE (([CodFamiglia] = @Original_CodFamiglia) AND ((@IsNull_DescFamiglia = 1 AND [DescFamiglia] IS NULL) OR ([DescFamiglia] = @Original_DescFamiglia)));
+SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @CodFamiglia)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFamiglia", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescFamiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodFamiglia", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescFamiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescFamiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescFamiglia", 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 CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie\r\nwhere CodFamiglia=@Cod" +
+ "Famiglia";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFamiglia", global::System.Data.SqlDbType.NChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, "CodFamiglia", 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_Applicazione.AnagFamiglieDataTable 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_Applicazione.AnagFamiglieDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.AnagFamiglieDataTable dataTable = new DS_Applicazione.AnagFamiglieDataTable();
+ 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_Applicazione.AnagFamiglieDataTable getByCodFamiglia(string CodFamiglia) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodFamiglia == null)) {
+ throw new global::System.ArgumentNullException("CodFamiglia");
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CodFamiglia));
+ }
+ DS_Applicazione.AnagFamiglieDataTable dataTable = new DS_Applicazione.AnagFamiglieDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.AnagFamiglieDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione dataSet) {
+ return this.Adapter.Update(dataSet, "AnagFamiglie");
+ }
+
+ [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_CodFamiglia, string Original_DescFamiglia) {
+ if ((Original_CodFamiglia == null)) {
+ throw new global::System.ArgumentNullException("Original_CodFamiglia");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodFamiglia));
+ }
+ if ((Original_DescFamiglia == null)) {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescFamiglia));
+ }
+ 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 CodFamiglia, string DescFamiglia) {
+ if ((CodFamiglia == null)) {
+ throw new global::System.ArgumentNullException("CodFamiglia");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodFamiglia));
+ }
+ if ((DescFamiglia == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescFamiglia));
+ }
+ 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 CodFamiglia, string DescFamiglia, string Original_CodFamiglia, string Original_DescFamiglia) {
+ if ((CodFamiglia == null)) {
+ throw new global::System.ArgumentNullException("CodFamiglia");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodFamiglia));
+ }
+ if ((DescFamiglia == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescFamiglia));
+ }
+ if ((Original_CodFamiglia == null)) {
+ throw new global::System.ArgumentNullException("Original_CodFamiglia");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodFamiglia));
+ }
+ if ((Original_DescFamiglia == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DescFamiglia));
+ }
+ 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 DescFamiglia, string Original_CodFamiglia, string Original_DescFamiglia) {
+ return this.Update(Original_CodFamiglia, DescFamiglia, Original_CodFamiglia, Original_DescFamiglia);
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -18089,6 +19777,10 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
private AnagClientiTableAdapter _anagClientiTableAdapter;
+ private AnagParticolariTableAdapter _anagParticolariTableAdapter;
+
+ private AnagFamiglieTableAdapter _anagFamiglieTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -18285,6 +19977,32 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
}
}
+ [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 AnagParticolariTableAdapter AnagParticolariTableAdapter {
+ get {
+ return this._anagParticolariTableAdapter;
+ }
+ set {
+ this._anagParticolariTableAdapter = 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 AnagFamiglieTableAdapter AnagFamiglieTableAdapter {
+ get {
+ return this._anagFamiglieTableAdapter;
+ }
+ set {
+ this._anagFamiglieTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool BackupDataSetBeforeUpdate {
get {
@@ -18358,6 +20076,14 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
&& (this._anagClientiTableAdapter.Connection != null))) {
return this._anagClientiTableAdapter.Connection;
}
+ if (((this._anagParticolariTableAdapter != null)
+ && (this._anagParticolariTableAdapter.Connection != null))) {
+ return this._anagParticolariTableAdapter.Connection;
+ }
+ if (((this._anagFamiglieTableAdapter != null)
+ && (this._anagFamiglieTableAdapter.Connection != null))) {
+ return this._anagFamiglieTableAdapter.Connection;
+ }
return null;
}
set {
@@ -18412,6 +20138,12 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
if ((this._anagClientiTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._anagParticolariTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._anagFamiglieTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -18440,15 +20172,6 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagStatiProdottoTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagStatiProdottoTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._anagImpiantiTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagImpianti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -18467,21 +20190,12 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagImballiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._anagStatiProdottoTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._anagImballiTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._anagClientiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagClientiTableAdapter.Update(updatedRows));
+ result = (result + this._anagStatiProdottoTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -18494,12 +20208,48 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._elencoCartelliniTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._anagClientiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._elencoCartelliniTableAdapter.Update(updatedRows));
+ result = (result + this._anagClientiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._anagFamiglieTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagFamiglie.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagFamiglieTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._anagParticolariTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagParticolariTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._anagImballiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagImballiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._relazUDCTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._relazUDCTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -18521,12 +20271,12 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._relazUDCTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._elencoCartelliniTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._relazUDCTableAdapter.Update(updatedRows));
+ result = (result + this._elencoCartelliniTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -18573,14 +20323,6 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagStatiProdottoTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagStatiProdottoTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._anagImpiantiTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagImpianti.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -18597,19 +20339,11 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagImballiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._anagStatiProdottoTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._anagImballiTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._anagClientiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagClientiTableAdapter.Update(addedRows));
+ result = (result + this._anagStatiProdottoTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -18621,11 +20355,43 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allAddedRows.AddRange(addedRows);
}
}
- if ((this._elencoCartelliniTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._anagClientiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._elencoCartelliniTableAdapter.Update(addedRows));
+ result = (result + this._anagClientiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._anagFamiglieTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagFamiglie.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagFamiglieTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._anagParticolariTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagParticolariTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._anagImballiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagImballiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._relazUDCTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._relazUDCTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -18645,11 +20411,11 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allAddedRows.AddRange(addedRows);
}
}
- if ((this._relazUDCTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._elencoCartelliniTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._relazUDCTableAdapter.Update(addedRows));
+ result = (result + this._elencoCartelliniTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -18694,11 +20460,11 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._relazUDCTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._elencoCartelliniTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._relazUDCTableAdapter.Update(deletedRows));
+ result = (result + this._elencoCartelliniTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -18718,19 +20484,35 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._elencoCartelliniTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._relazUDCTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._elencoCartelliniTableAdapter.Update(deletedRows));
+ result = (result + this._relazUDCTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagOperatoriTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._anagImballiTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._anagOperatoriTableAdapter.Update(deletedRows));
+ result = (result + this._anagImballiTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._anagParticolariTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagParticolariTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._anagFamiglieTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagFamiglie.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagFamiglieTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -18742,11 +20524,19 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagImballiTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._anagOperatoriTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._anagImballiTableAdapter.Update(deletedRows));
+ result = (result + this._anagOperatoriTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._anagStatiProdottoTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagStatiProdottoTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -18766,14 +20556,6 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagStatiProdottoTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._anagStatiProdottoTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
if ((this._anagArticoliTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -18897,6 +20679,16 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._anagParticolariTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagParticolariTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._anagFamiglieTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagFamiglieTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -19055,6 +20847,24 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
adaptersWithAcceptChangesDuringUpdate.Add(this._anagClientiTableAdapter.Adapter);
}
}
+ if ((this._anagParticolariTableAdapter != null)) {
+ revertConnections.Add(this._anagParticolariTableAdapter, this._anagParticolariTableAdapter.Connection);
+ this._anagParticolariTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagParticolariTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagParticolariTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagParticolariTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagParticolariTableAdapter.Adapter);
+ }
+ }
+ if ((this._anagFamiglieTableAdapter != null)) {
+ revertConnections.Add(this._anagFamiglieTableAdapter, this._anagFamiglieTableAdapter.Connection);
+ this._anagFamiglieTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagFamiglieTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagFamiglieTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagFamiglieTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagFamiglieTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -19169,6 +20979,14 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
this._anagClientiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagClientiTableAdapter]));
this._anagClientiTableAdapter.Transaction = null;
}
+ if ((this._anagParticolariTableAdapter != null)) {
+ this._anagParticolariTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagParticolariTableAdapter]));
+ this._anagParticolariTableAdapter.Transaction = null;
+ }
+ if ((this._anagFamiglieTableAdapter != null)) {
+ this._anagFamiglieTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagFamiglieTableAdapter]));
+ this._anagFamiglieTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/GMW/GMW_data/DS_Applicazione.xsd b/GMW/GMW_data/DS_Applicazione.xsd
index b53bc5b5..b1fc9989 100644
--- a/GMW/GMW_data/DS_Applicazione.xsd
+++ b/GMW/GMW_data/DS_Applicazione.xsd
@@ -1425,6 +1425,152 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
+
+
+
+
+
+ DELETE FROM [RilPro].[AnagParticolari] WHERE (([Particolare] = @Original_Particolare) AND ([CodCS] = @Original_CodCS) AND ([CodCliente] = @Original_CodCliente) AND ([DisegnoGrezzo] = @Original_DisegnoGrezzo) AND ((@IsNull_CodFamiglia = 1 AND [CodFamiglia] IS NULL) OR ([CodFamiglia] = @Original_CodFamiglia)) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [RilPro].[AnagParticolari] ([Particolare], [CodCS], [CodCliente], [DisegnoGrezzo], [CodFamiglia], [DescParticolare]) VALUES (@Particolare, @CodCS, @CodCliente, @DisegnoGrezzo, @CodFamiglia, @DescParticolare);
+SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticolare FROM RilPro.AnagParticolari WHERE (Particolare = @Particolare)
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticolare FROM RilPro.AnagParticolari
+
+
+
+
+
+ UPDATE [RilPro].[AnagParticolari] SET [Particolare] = @Particolare, [CodCS] = @CodCS, [CodCliente] = @CodCliente, [DisegnoGrezzo] = @DisegnoGrezzo, [CodFamiglia] = @CodFamiglia, [DescParticolare] = @DescParticolare WHERE (([Particolare] = @Original_Particolare) AND ([CodCS] = @Original_CodCS) AND ([CodCliente] = @Original_CodCliente) AND ([DisegnoGrezzo] = @Original_DisegnoGrezzo) AND ((@IsNull_CodFamiglia = 1 AND [CodFamiglia] IS NULL) OR ([CodFamiglia] = @Original_CodFamiglia)) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)));
+SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticolare FROM RilPro.AnagParticolari WHERE (Particolare = @Particolare)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticolare FROM RilPro.AnagParticolari
+where Particolare = @Particolare
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [RilPro].[AnagFamiglie] WHERE (([CodFamiglia] = @Original_CodFamiglia) AND ((@IsNull_DescFamiglia = 1 AND [DescFamiglia] IS NULL) OR ([DescFamiglia] = @Original_DescFamiglia)))
+
+
+
+
+
+
+
+
+
+ INSERT INTO [RilPro].[AnagFamiglie] ([CodFamiglia], [DescFamiglia]) VALUES (@CodFamiglia, @DescFamiglia);
+SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @CodFamiglia)
+
+
+
+
+
+
+
+
+ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie
+
+
+
+
+
+ UPDATE [RilPro].[AnagFamiglie] SET [CodFamiglia] = @CodFamiglia, [DescFamiglia] = @DescFamiglia WHERE (([CodFamiglia] = @Original_CodFamiglia) AND ((@IsNull_DescFamiglia = 1 AND [DescFamiglia] IS NULL) OR ([DescFamiglia] = @Original_DescFamiglia)));
+SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @CodFamiglia)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie
+where CodFamiglia=@CodFamiglia
+
+
+
+
+
+
+
+
@@ -2034,63 +2180,63 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -2269,6 +2415,74 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2334,6 +2548,14 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
+
+
+
+
+
+
+
+
@@ -2344,6 +2566,7 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DS_Applicazione.xss b/GMW/GMW_data/DS_Applicazione.xss
index a6de609e..bca1aa0d 100644
--- a/GMW/GMW_data/DS_Applicazione.xss
+++ b/GMW/GMW_data/DS_Applicazione.xss
@@ -4,27 +4,29 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
385
@@ -36,7 +38,7 @@
-
+
948
@@ -48,7 +50,7 @@
-
+
853
@@ -60,7 +62,7 @@
-
+
1129
@@ -72,7 +74,7 @@
-
+
1188
@@ -88,7 +90,7 @@
-
+
336
@@ -104,7 +106,7 @@
-
+
1138
@@ -120,5 +122,17 @@
+
+
+
+ 1248
+ 255
+
+
+ 1248
+ 331
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DataProxy.cs b/GMW/GMW_data/DataProxy.cs
index 700aed56..fa943a23 100644
--- a/GMW/GMW_data/DataProxy.cs
+++ b/GMW/GMW_data/DataProxy.cs
@@ -26,6 +26,8 @@ namespace GMW_data
public DS_ApplicazioneTableAdapters.AnagCompanySitoTableAdapter taAnagCS;
public DS_ApplicazioneTableAdapters.AnagClientiTableAdapter taAnagClienti;
public DS_ApplicazioneTableAdapters.AnagOperatoriTableAdapter taAnagOperatore;
+ public DS_ApplicazioneTableAdapters.AnagParticolariTableAdapter taAnagParticolari;
+ public DS_ApplicazioneTableAdapters.AnagFamiglieTableAdapter taAnagFamiglie;
///
/// init dei table adapters
@@ -45,6 +47,8 @@ namespace GMW_data
taAnagCS = new GMW_data.DS_ApplicazioneTableAdapters.AnagCompanySitoTableAdapter();
taAnagClienti = new GMW_data.DS_ApplicazioneTableAdapters.AnagClientiTableAdapter();
taAnagOperatore = new GMW_data.DS_ApplicazioneTableAdapters.AnagOperatoriTableAdapter();
+ taAnagParticolari = new GMW_data.DS_ApplicazioneTableAdapters.AnagParticolariTableAdapter();
+ taAnagFamiglie = new GMW_data.DS_ApplicazioneTableAdapters.AnagFamiglieTableAdapter();
}
///
/// effettua setup dei connection strings da web.config delal singola applicazione
@@ -65,6 +69,8 @@ namespace GMW_data
taAnagCS.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taAnagClienti.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taAnagOperatore.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
+ taAnagParticolari.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
+ taAnagFamiglie.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
}
#endregion
diff --git a/GMW/GMW_data/GMW_data.csproj b/GMW/GMW_data/GMW_data.csproj
index a0b01da3..67ce4c50 100644
--- a/GMW/GMW_data/GMW_data.csproj
+++ b/GMW/GMW_data/GMW_data.csproj
@@ -125,6 +125,7 @@
Settings.Designer.cs
+