1f7b3ff79f
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@483 365432ac-a1b5-4ffd-bb28-6d3099d32164
15137 lines
824 KiB
C#
15137 lines
824 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:2.0.50727.4927
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
#pragma warning disable 1591
|
|
|
|
namespace GMW_Reports {
|
|
|
|
|
|
/// <summary>
|
|
///Represents a strongly typed in-memory cache of data.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
[global::System.Serializable()]
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
|
|
[global::System.Xml.Serialization.XmlRootAttribute("GMWDataSet")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
|
|
public partial class GMWDataSet : global::System.Data.DataSet {
|
|
|
|
private AnagArticoliDataTable tableAnagArticoli;
|
|
|
|
private AnagBilanceDataTable tableAnagBilance;
|
|
|
|
private AnagCompanyDataTable tableAnagCompany;
|
|
|
|
private AnagImpiantiDataTable tableAnagImpianti;
|
|
|
|
private AnagOdpDataTable tableAnagOdp;
|
|
|
|
private AnagSitiDataTable tableAnagSiti;
|
|
|
|
private AnagStatiDataTable tableAnagStati;
|
|
|
|
private ContatoriUdcDataTable tableContatoriUdc;
|
|
|
|
private Impianti2ArticoliDataTable tableImpianti2Articoli;
|
|
|
|
private TabStatoOdpUdcDataTable tableTabStatoOdpUdc;
|
|
|
|
private stp_getStatoByUdcDataTable tablestp_getStatoByUdc;
|
|
|
|
private stp_insNewOdpUdcDataTable tablestp_insNewOdpUdc;
|
|
|
|
private stp_updateByBilanciaDataTable tablestp_updateByBilancia;
|
|
|
|
private stp_prtCartByUDCDataTable tablestp_prtCartByUDC;
|
|
|
|
private stp_prtCartMatPrimaByUDCDataTable tablestp_prtCartMatPrimaByUDC;
|
|
|
|
private global::System.Data.DataRelation relationFK_AnagBilance_AnagSiti;
|
|
|
|
private global::System.Data.DataRelation relationFK_AnagImpianti_AnagSiti;
|
|
|
|
private global::System.Data.DataRelation relationFK_AnagOdp_AnagCompany;
|
|
|
|
private global::System.Data.DataRelation relationFK_AnagSiti_AnagCompany;
|
|
|
|
private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagArticoli;
|
|
|
|
private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagImpianti;
|
|
|
|
private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagOdp;
|
|
|
|
private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagStati;
|
|
|
|
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public GMWDataSet() {
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
base.Tables.CollectionChanged += schemaChangedHandler;
|
|
base.Relations.CollectionChanged += schemaChangedHandler;
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected GMWDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context, false) {
|
|
if ((this.IsBinarySerialized(info, context) == true)) {
|
|
this.InitVars(false);
|
|
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
this.Tables.CollectionChanged += schemaChangedHandler1;
|
|
this.Relations.CollectionChanged += schemaChangedHandler1;
|
|
return;
|
|
}
|
|
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
|
|
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
|
global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
|
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
|
if ((ds.Tables["AnagArticoli"] != null)) {
|
|
base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
|
|
}
|
|
if ((ds.Tables["AnagBilance"] != null)) {
|
|
base.Tables.Add(new AnagBilanceDataTable(ds.Tables["AnagBilance"]));
|
|
}
|
|
if ((ds.Tables["AnagCompany"] != null)) {
|
|
base.Tables.Add(new AnagCompanyDataTable(ds.Tables["AnagCompany"]));
|
|
}
|
|
if ((ds.Tables["AnagImpianti"] != null)) {
|
|
base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"]));
|
|
}
|
|
if ((ds.Tables["AnagOdp"] != null)) {
|
|
base.Tables.Add(new AnagOdpDataTable(ds.Tables["AnagOdp"]));
|
|
}
|
|
if ((ds.Tables["AnagSiti"] != null)) {
|
|
base.Tables.Add(new AnagSitiDataTable(ds.Tables["AnagSiti"]));
|
|
}
|
|
if ((ds.Tables["AnagStati"] != null)) {
|
|
base.Tables.Add(new AnagStatiDataTable(ds.Tables["AnagStati"]));
|
|
}
|
|
if ((ds.Tables["ContatoriUdc"] != null)) {
|
|
base.Tables.Add(new ContatoriUdcDataTable(ds.Tables["ContatoriUdc"]));
|
|
}
|
|
if ((ds.Tables["Impianti2Articoli"] != null)) {
|
|
base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"]));
|
|
}
|
|
if ((ds.Tables["TabStatoOdpUdc"] != null)) {
|
|
base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"]));
|
|
}
|
|
if ((ds.Tables["stp_getStatoByUdc"] != null)) {
|
|
base.Tables.Add(new stp_getStatoByUdcDataTable(ds.Tables["stp_getStatoByUdc"]));
|
|
}
|
|
if ((ds.Tables["stp_insNewOdpUdc"] != null)) {
|
|
base.Tables.Add(new stp_insNewOdpUdcDataTable(ds.Tables["stp_insNewOdpUdc"]));
|
|
}
|
|
if ((ds.Tables["stp_updateByBilancia"] != null)) {
|
|
base.Tables.Add(new stp_updateByBilanciaDataTable(ds.Tables["stp_updateByBilancia"]));
|
|
}
|
|
if ((ds.Tables["stp_prtCartByUDC"] != null)) {
|
|
base.Tables.Add(new stp_prtCartByUDCDataTable(ds.Tables["stp_prtCartByUDC"]));
|
|
}
|
|
if ((ds.Tables["stp_prtCartMatPrimaByUDC"] != null)) {
|
|
base.Tables.Add(new stp_prtCartMatPrimaByUDCDataTable(ds.Tables["stp_prtCartMatPrimaByUDC"]));
|
|
}
|
|
this.DataSetName = ds.DataSetName;
|
|
this.Prefix = ds.Prefix;
|
|
this.Namespace = ds.Namespace;
|
|
this.Locale = ds.Locale;
|
|
this.CaseSensitive = ds.CaseSensitive;
|
|
this.EnforceConstraints = ds.EnforceConstraints;
|
|
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
|
this.InitVars();
|
|
}
|
|
else {
|
|
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
|
}
|
|
this.GetSerializationData(info, context);
|
|
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
base.Tables.CollectionChanged += schemaChangedHandler;
|
|
this.Relations.CollectionChanged += schemaChangedHandler;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public AnagArticoliDataTable AnagArticoli {
|
|
get {
|
|
return this.tableAnagArticoli;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public AnagBilanceDataTable AnagBilance {
|
|
get {
|
|
return this.tableAnagBilance;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public AnagCompanyDataTable AnagCompany {
|
|
get {
|
|
return this.tableAnagCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public AnagImpiantiDataTable AnagImpianti {
|
|
get {
|
|
return this.tableAnagImpianti;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public AnagOdpDataTable AnagOdp {
|
|
get {
|
|
return this.tableAnagOdp;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public AnagSitiDataTable AnagSiti {
|
|
get {
|
|
return this.tableAnagSiti;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public AnagStatiDataTable AnagStati {
|
|
get {
|
|
return this.tableAnagStati;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public ContatoriUdcDataTable ContatoriUdc {
|
|
get {
|
|
return this.tableContatoriUdc;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public Impianti2ArticoliDataTable Impianti2Articoli {
|
|
get {
|
|
return this.tableImpianti2Articoli;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public TabStatoOdpUdcDataTable TabStatoOdpUdc {
|
|
get {
|
|
return this.tableTabStatoOdpUdc;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public stp_getStatoByUdcDataTable stp_getStatoByUdc {
|
|
get {
|
|
return this.tablestp_getStatoByUdc;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public stp_insNewOdpUdcDataTable stp_insNewOdpUdc {
|
|
get {
|
|
return this.tablestp_insNewOdpUdc;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public stp_updateByBilanciaDataTable stp_updateByBilancia {
|
|
get {
|
|
return this.tablestp_updateByBilancia;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public stp_prtCartByUDCDataTable stp_prtCartByUDC {
|
|
get {
|
|
return this.tablestp_prtCartByUDC;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public stp_prtCartMatPrimaByUDCDataTable stp_prtCartMatPrimaByUDC {
|
|
get {
|
|
return this.tablestp_prtCartMatPrimaByUDC;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.BrowsableAttribute(true)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
|
|
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
|
|
get {
|
|
return this._schemaSerializationMode;
|
|
}
|
|
set {
|
|
this._schemaSerializationMode = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
|
public new global::System.Data.DataTableCollection Tables {
|
|
get {
|
|
return base.Tables;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
|
public new global::System.Data.DataRelationCollection Relations {
|
|
get {
|
|
return base.Relations;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void InitializeDerivedDataSet() {
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataSet Clone() {
|
|
GMWDataSet cln = ((GMWDataSet)(base.Clone()));
|
|
cln.InitVars();
|
|
cln.SchemaSerializationMode = this.SchemaSerializationMode;
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override bool ShouldSerializeTables() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override bool ShouldSerializeRelations() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
|
|
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
|
this.Reset();
|
|
global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
|
ds.ReadXml(reader);
|
|
if ((ds.Tables["AnagArticoli"] != null)) {
|
|
base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
|
|
}
|
|
if ((ds.Tables["AnagBilance"] != null)) {
|
|
base.Tables.Add(new AnagBilanceDataTable(ds.Tables["AnagBilance"]));
|
|
}
|
|
if ((ds.Tables["AnagCompany"] != null)) {
|
|
base.Tables.Add(new AnagCompanyDataTable(ds.Tables["AnagCompany"]));
|
|
}
|
|
if ((ds.Tables["AnagImpianti"] != null)) {
|
|
base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"]));
|
|
}
|
|
if ((ds.Tables["AnagOdp"] != null)) {
|
|
base.Tables.Add(new AnagOdpDataTable(ds.Tables["AnagOdp"]));
|
|
}
|
|
if ((ds.Tables["AnagSiti"] != null)) {
|
|
base.Tables.Add(new AnagSitiDataTable(ds.Tables["AnagSiti"]));
|
|
}
|
|
if ((ds.Tables["AnagStati"] != null)) {
|
|
base.Tables.Add(new AnagStatiDataTable(ds.Tables["AnagStati"]));
|
|
}
|
|
if ((ds.Tables["ContatoriUdc"] != null)) {
|
|
base.Tables.Add(new ContatoriUdcDataTable(ds.Tables["ContatoriUdc"]));
|
|
}
|
|
if ((ds.Tables["Impianti2Articoli"] != null)) {
|
|
base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"]));
|
|
}
|
|
if ((ds.Tables["TabStatoOdpUdc"] != null)) {
|
|
base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"]));
|
|
}
|
|
if ((ds.Tables["stp_getStatoByUdc"] != null)) {
|
|
base.Tables.Add(new stp_getStatoByUdcDataTable(ds.Tables["stp_getStatoByUdc"]));
|
|
}
|
|
if ((ds.Tables["stp_insNewOdpUdc"] != null)) {
|
|
base.Tables.Add(new stp_insNewOdpUdcDataTable(ds.Tables["stp_insNewOdpUdc"]));
|
|
}
|
|
if ((ds.Tables["stp_updateByBilancia"] != null)) {
|
|
base.Tables.Add(new stp_updateByBilanciaDataTable(ds.Tables["stp_updateByBilancia"]));
|
|
}
|
|
if ((ds.Tables["stp_prtCartByUDC"] != null)) {
|
|
base.Tables.Add(new stp_prtCartByUDCDataTable(ds.Tables["stp_prtCartByUDC"]));
|
|
}
|
|
if ((ds.Tables["stp_prtCartMatPrimaByUDC"] != null)) {
|
|
base.Tables.Add(new stp_prtCartMatPrimaByUDCDataTable(ds.Tables["stp_prtCartMatPrimaByUDC"]));
|
|
}
|
|
this.DataSetName = ds.DataSetName;
|
|
this.Prefix = ds.Prefix;
|
|
this.Namespace = ds.Namespace;
|
|
this.Locale = ds.Locale;
|
|
this.CaseSensitive = ds.CaseSensitive;
|
|
this.EnforceConstraints = ds.EnforceConstraints;
|
|
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
|
this.InitVars();
|
|
}
|
|
else {
|
|
this.ReadXml(reader);
|
|
this.InitVars();
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
|
|
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
|
|
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
|
|
stream.Position = 0;
|
|
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.InitVars(true);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars(bool initTable) {
|
|
this.tableAnagArticoli = ((AnagArticoliDataTable)(base.Tables["AnagArticoli"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableAnagArticoli != null)) {
|
|
this.tableAnagArticoli.InitVars();
|
|
}
|
|
}
|
|
this.tableAnagBilance = ((AnagBilanceDataTable)(base.Tables["AnagBilance"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableAnagBilance != null)) {
|
|
this.tableAnagBilance.InitVars();
|
|
}
|
|
}
|
|
this.tableAnagCompany = ((AnagCompanyDataTable)(base.Tables["AnagCompany"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableAnagCompany != null)) {
|
|
this.tableAnagCompany.InitVars();
|
|
}
|
|
}
|
|
this.tableAnagImpianti = ((AnagImpiantiDataTable)(base.Tables["AnagImpianti"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableAnagImpianti != null)) {
|
|
this.tableAnagImpianti.InitVars();
|
|
}
|
|
}
|
|
this.tableAnagOdp = ((AnagOdpDataTable)(base.Tables["AnagOdp"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableAnagOdp != null)) {
|
|
this.tableAnagOdp.InitVars();
|
|
}
|
|
}
|
|
this.tableAnagSiti = ((AnagSitiDataTable)(base.Tables["AnagSiti"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableAnagSiti != null)) {
|
|
this.tableAnagSiti.InitVars();
|
|
}
|
|
}
|
|
this.tableAnagStati = ((AnagStatiDataTable)(base.Tables["AnagStati"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableAnagStati != null)) {
|
|
this.tableAnagStati.InitVars();
|
|
}
|
|
}
|
|
this.tableContatoriUdc = ((ContatoriUdcDataTable)(base.Tables["ContatoriUdc"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableContatoriUdc != null)) {
|
|
this.tableContatoriUdc.InitVars();
|
|
}
|
|
}
|
|
this.tableImpianti2Articoli = ((Impianti2ArticoliDataTable)(base.Tables["Impianti2Articoli"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableImpianti2Articoli != null)) {
|
|
this.tableImpianti2Articoli.InitVars();
|
|
}
|
|
}
|
|
this.tableTabStatoOdpUdc = ((TabStatoOdpUdcDataTable)(base.Tables["TabStatoOdpUdc"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableTabStatoOdpUdc != null)) {
|
|
this.tableTabStatoOdpUdc.InitVars();
|
|
}
|
|
}
|
|
this.tablestp_getStatoByUdc = ((stp_getStatoByUdcDataTable)(base.Tables["stp_getStatoByUdc"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tablestp_getStatoByUdc != null)) {
|
|
this.tablestp_getStatoByUdc.InitVars();
|
|
}
|
|
}
|
|
this.tablestp_insNewOdpUdc = ((stp_insNewOdpUdcDataTable)(base.Tables["stp_insNewOdpUdc"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tablestp_insNewOdpUdc != null)) {
|
|
this.tablestp_insNewOdpUdc.InitVars();
|
|
}
|
|
}
|
|
this.tablestp_updateByBilancia = ((stp_updateByBilanciaDataTable)(base.Tables["stp_updateByBilancia"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tablestp_updateByBilancia != null)) {
|
|
this.tablestp_updateByBilancia.InitVars();
|
|
}
|
|
}
|
|
this.tablestp_prtCartByUDC = ((stp_prtCartByUDCDataTable)(base.Tables["stp_prtCartByUDC"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tablestp_prtCartByUDC != null)) {
|
|
this.tablestp_prtCartByUDC.InitVars();
|
|
}
|
|
}
|
|
this.tablestp_prtCartMatPrimaByUDC = ((stp_prtCartMatPrimaByUDCDataTable)(base.Tables["stp_prtCartMatPrimaByUDC"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tablestp_prtCartMatPrimaByUDC != null)) {
|
|
this.tablestp_prtCartMatPrimaByUDC.InitVars();
|
|
}
|
|
}
|
|
this.relationFK_AnagBilance_AnagSiti = this.Relations["FK_AnagBilance_AnagSiti"];
|
|
this.relationFK_AnagImpianti_AnagSiti = this.Relations["FK_AnagImpianti_AnagSiti"];
|
|
this.relationFK_AnagOdp_AnagCompany = this.Relations["FK_AnagOdp_AnagCompany"];
|
|
this.relationFK_AnagSiti_AnagCompany = this.Relations["FK_AnagSiti_AnagCompany"];
|
|
this.relationFK_Impianti2Articoli_AnagArticoli = this.Relations["FK_Impianti2Articoli_AnagArticoli"];
|
|
this.relationFK_Impianti2Articoli_AnagImpianti = this.Relations["FK_Impianti2Articoli_AnagImpianti"];
|
|
this.relationFK_TabStatoOdpUdc_AnagOdp = this.Relations["FK_TabStatoOdpUdc_AnagOdp"];
|
|
this.relationFK_TabStatoOdpUdc_AnagStati = this.Relations["FK_TabStatoOdpUdc_AnagStati"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.DataSetName = "GMWDataSet";
|
|
this.Prefix = "";
|
|
this.Namespace = "http://tempuri.org/GMWDataSet.xsd";
|
|
this.EnforceConstraints = true;
|
|
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
this.tableAnagArticoli = new AnagArticoliDataTable();
|
|
base.Tables.Add(this.tableAnagArticoli);
|
|
this.tableAnagBilance = new AnagBilanceDataTable();
|
|
base.Tables.Add(this.tableAnagBilance);
|
|
this.tableAnagCompany = new AnagCompanyDataTable();
|
|
base.Tables.Add(this.tableAnagCompany);
|
|
this.tableAnagImpianti = new AnagImpiantiDataTable();
|
|
base.Tables.Add(this.tableAnagImpianti);
|
|
this.tableAnagOdp = new AnagOdpDataTable();
|
|
base.Tables.Add(this.tableAnagOdp);
|
|
this.tableAnagSiti = new AnagSitiDataTable();
|
|
base.Tables.Add(this.tableAnagSiti);
|
|
this.tableAnagStati = new AnagStatiDataTable();
|
|
base.Tables.Add(this.tableAnagStati);
|
|
this.tableContatoriUdc = new ContatoriUdcDataTable();
|
|
base.Tables.Add(this.tableContatoriUdc);
|
|
this.tableImpianti2Articoli = new Impianti2ArticoliDataTable();
|
|
base.Tables.Add(this.tableImpianti2Articoli);
|
|
this.tableTabStatoOdpUdc = new TabStatoOdpUdcDataTable();
|
|
base.Tables.Add(this.tableTabStatoOdpUdc);
|
|
this.tablestp_getStatoByUdc = new stp_getStatoByUdcDataTable();
|
|
base.Tables.Add(this.tablestp_getStatoByUdc);
|
|
this.tablestp_insNewOdpUdc = new stp_insNewOdpUdcDataTable();
|
|
base.Tables.Add(this.tablestp_insNewOdpUdc);
|
|
this.tablestp_updateByBilancia = new stp_updateByBilanciaDataTable();
|
|
base.Tables.Add(this.tablestp_updateByBilancia);
|
|
this.tablestp_prtCartByUDC = new stp_prtCartByUDCDataTable();
|
|
base.Tables.Add(this.tablestp_prtCartByUDC);
|
|
this.tablestp_prtCartMatPrimaByUDC = new stp_prtCartMatPrimaByUDCDataTable();
|
|
base.Tables.Add(this.tablestp_prtCartMatPrimaByUDC);
|
|
this.relationFK_AnagBilance_AnagSiti = new global::System.Data.DataRelation("FK_AnagBilance_AnagSiti", new global::System.Data.DataColumn[] {
|
|
this.tableAnagSiti.CodCompanyColumn,
|
|
this.tableAnagSiti.CodSitoColumn}, new global::System.Data.DataColumn[] {
|
|
this.tableAnagBilance.CodCompanyColumn,
|
|
this.tableAnagBilance.CodSitoColumn}, false);
|
|
this.Relations.Add(this.relationFK_AnagBilance_AnagSiti);
|
|
this.relationFK_AnagImpianti_AnagSiti = new global::System.Data.DataRelation("FK_AnagImpianti_AnagSiti", new global::System.Data.DataColumn[] {
|
|
this.tableAnagSiti.CodCompanyColumn,
|
|
this.tableAnagSiti.CodSitoColumn}, new global::System.Data.DataColumn[] {
|
|
this.tableAnagImpianti.CodCompanyColumn,
|
|
this.tableAnagImpianti.CodSitoColumn}, false);
|
|
this.Relations.Add(this.relationFK_AnagImpianti_AnagSiti);
|
|
this.relationFK_AnagOdp_AnagCompany = new global::System.Data.DataRelation("FK_AnagOdp_AnagCompany", new global::System.Data.DataColumn[] {
|
|
this.tableAnagCompany.CodCompanyColumn}, new global::System.Data.DataColumn[] {
|
|
this.tableAnagOdp.CodCompanyColumn}, false);
|
|
this.Relations.Add(this.relationFK_AnagOdp_AnagCompany);
|
|
this.relationFK_AnagSiti_AnagCompany = new global::System.Data.DataRelation("FK_AnagSiti_AnagCompany", new global::System.Data.DataColumn[] {
|
|
this.tableAnagCompany.CodCompanyColumn}, new global::System.Data.DataColumn[] {
|
|
this.tableAnagSiti.CodCompanyColumn}, false);
|
|
this.Relations.Add(this.relationFK_AnagSiti_AnagCompany);
|
|
this.relationFK_Impianti2Articoli_AnagArticoli = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagArticoli", new global::System.Data.DataColumn[] {
|
|
this.tableAnagArticoli.CodArticoloColumn}, new global::System.Data.DataColumn[] {
|
|
this.tableImpianti2Articoli.CodArticoloColumn}, false);
|
|
this.Relations.Add(this.relationFK_Impianti2Articoli_AnagArticoli);
|
|
this.relationFK_Impianti2Articoli_AnagImpianti = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagImpianti", new global::System.Data.DataColumn[] {
|
|
this.tableAnagImpianti.CodImpiantoColumn}, new global::System.Data.DataColumn[] {
|
|
this.tableImpianti2Articoli.CodImpiantoColumn}, false);
|
|
this.Relations.Add(this.relationFK_Impianti2Articoli_AnagImpianti);
|
|
this.relationFK_TabStatoOdpUdc_AnagOdp = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagOdp", new global::System.Data.DataColumn[] {
|
|
this.tableAnagOdp.CodCompanyColumn,
|
|
this.tableAnagOdp.ODPColumn}, new global::System.Data.DataColumn[] {
|
|
this.tableTabStatoOdpUdc.CodCompanyColumn,
|
|
this.tableTabStatoOdpUdc.ODPColumn}, false);
|
|
this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagOdp);
|
|
this.relationFK_TabStatoOdpUdc_AnagStati = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagStati", new global::System.Data.DataColumn[] {
|
|
this.tableAnagStati.IdxStatoColumn}, new global::System.Data.DataColumn[] {
|
|
this.tableTabStatoOdpUdc.IdxStatoColumn}, false);
|
|
this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagStati);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeAnagArticoli() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeAnagBilance() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeAnagCompany() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeAnagImpianti() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeAnagOdp() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeAnagSiti() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeAnagStati() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeContatoriUdc() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeImpianti2Articoli() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializeTabStatoOdpUdc() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializestp_getStatoByUdc() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializestp_insNewOdpUdc() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializestp_updateByBilancia() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializestp_prtCartByUDC() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool ShouldSerializestp_prtCartMatPrimaByUDC() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
|
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
|
this.InitVars();
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
GMWDataSet ds = new GMWDataSet();
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any.Namespace = ds.Namespace;
|
|
sequence.Items.Add(any);
|
|
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;
|
|
}
|
|
|
|
public delegate void AnagArticoliRowChangeEventHandler(object sender, AnagArticoliRowChangeEvent e);
|
|
|
|
public delegate void AnagBilanceRowChangeEventHandler(object sender, AnagBilanceRowChangeEvent e);
|
|
|
|
public delegate void AnagCompanyRowChangeEventHandler(object sender, AnagCompanyRowChangeEvent e);
|
|
|
|
public delegate void AnagImpiantiRowChangeEventHandler(object sender, AnagImpiantiRowChangeEvent e);
|
|
|
|
public delegate void AnagOdpRowChangeEventHandler(object sender, AnagOdpRowChangeEvent e);
|
|
|
|
public delegate void AnagSitiRowChangeEventHandler(object sender, AnagSitiRowChangeEvent e);
|
|
|
|
public delegate void AnagStatiRowChangeEventHandler(object sender, AnagStatiRowChangeEvent e);
|
|
|
|
public delegate void ContatoriUdcRowChangeEventHandler(object sender, ContatoriUdcRowChangeEvent e);
|
|
|
|
public delegate void Impianti2ArticoliRowChangeEventHandler(object sender, Impianti2ArticoliRowChangeEvent e);
|
|
|
|
public delegate void TabStatoOdpUdcRowChangeEventHandler(object sender, TabStatoOdpUdcRowChangeEvent e);
|
|
|
|
public delegate void stp_getStatoByUdcRowChangeEventHandler(object sender, stp_getStatoByUdcRowChangeEvent e);
|
|
|
|
public delegate void stp_insNewOdpUdcRowChangeEventHandler(object sender, stp_insNewOdpUdcRowChangeEvent e);
|
|
|
|
public delegate void stp_updateByBilanciaRowChangeEventHandler(object sender, stp_updateByBilanciaRowChangeEvent e);
|
|
|
|
public delegate void stp_prtCartByUDCRowChangeEventHandler(object sender, stp_prtCartByUDCRowChangeEvent e);
|
|
|
|
public delegate void stp_prtCartMatPrimaByUDCRowChangeEventHandler(object sender, stp_prtCartMatPrimaByUDCRowChangeEvent e);
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 AnagArticoliDataTable : global::System.Data.TypedTableBase<AnagArticoliRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodArticolo;
|
|
|
|
private global::System.Data.DataColumn columnDescrArticolo;
|
|
|
|
private global::System.Data.DataColumn columnFigura;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagArticoliDataTable() {
|
|
this.TableName = "AnagArticoli";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagArticoliDataTable(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 AnagArticoliDataTable(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 CodArticoloColumn {
|
|
get {
|
|
return this.columnCodArticolo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescrArticoloColumn {
|
|
get {
|
|
return this.columnDescrArticolo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn FiguraColumn {
|
|
get {
|
|
return this.columnFigura;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagArticoliRow this[int index] {
|
|
get {
|
|
return ((AnagArticoliRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanging;
|
|
|
|
public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanged;
|
|
|
|
public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleting;
|
|
|
|
public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddAnagArticoliRow(AnagArticoliRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagArticoliRow AddAnagArticoliRow(string CodArticolo, string DescrArticolo, string Figura) {
|
|
AnagArticoliRow rowAnagArticoliRow = ((AnagArticoliRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
CodArticolo,
|
|
DescrArticolo,
|
|
Figura};
|
|
rowAnagArticoliRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowAnagArticoliRow);
|
|
return rowAnagArticoliRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagArticoliRow FindByCodArticolo(string CodArticolo) {
|
|
return ((AnagArticoliRow)(this.Rows.Find(new object[] {
|
|
CodArticolo})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
AnagArticoliDataTable cln = ((AnagArticoliDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new AnagArticoliDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodArticolo = base.Columns["CodArticolo"];
|
|
this.columnDescrArticolo = base.Columns["DescrArticolo"];
|
|
this.columnFigura = base.Columns["Figura"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodArticolo);
|
|
this.columnDescrArticolo = new global::System.Data.DataColumn("DescrArticolo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescrArticolo);
|
|
this.columnFigura = new global::System.Data.DataColumn("Figura", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnFigura);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodArticolo}, true));
|
|
this.columnCodArticolo.AllowDBNull = false;
|
|
this.columnCodArticolo.Unique = true;
|
|
this.columnCodArticolo.MaxLength = 50;
|
|
this.columnDescrArticolo.MaxLength = 50;
|
|
this.columnFigura.MaxLength = 50;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagArticoliRow NewAnagArticoliRow() {
|
|
return ((AnagArticoliRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new AnagArticoliRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(AnagArticoliRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.AnagArticoliRowChanged != null)) {
|
|
this.AnagArticoliRowChanged(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.AnagArticoliRowChanging != null)) {
|
|
this.AnagArticoliRowChanging(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.AnagArticoliRowDeleted != null)) {
|
|
this.AnagArticoliRowDeleted(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.AnagArticoliRowDeleting != null)) {
|
|
this.AnagArticoliRowDeleting(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveAnagArticoliRow(AnagArticoliRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "AnagArticoliDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 AnagBilanceDataTable : global::System.Data.TypedTableBase<AnagBilanceRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodBilancia;
|
|
|
|
private global::System.Data.DataColumn columnDescrImpianto;
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnCodSito;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagBilanceDataTable() {
|
|
this.TableName = "AnagBilance";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagBilanceDataTable(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 AnagBilanceDataTable(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 CodBilanciaColumn {
|
|
get {
|
|
return this.columnCodBilancia;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescrImpiantoColumn {
|
|
get {
|
|
return this.columnDescrImpianto;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodSitoColumn {
|
|
get {
|
|
return this.columnCodSito;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagBilanceRow this[int index] {
|
|
get {
|
|
return ((AnagBilanceRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event AnagBilanceRowChangeEventHandler AnagBilanceRowChanging;
|
|
|
|
public event AnagBilanceRowChangeEventHandler AnagBilanceRowChanged;
|
|
|
|
public event AnagBilanceRowChangeEventHandler AnagBilanceRowDeleting;
|
|
|
|
public event AnagBilanceRowChangeEventHandler AnagBilanceRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddAnagBilanceRow(AnagBilanceRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagBilanceRow AddAnagBilanceRow(string CodBilancia, string DescrImpianto, string CodCompany, string CodSito) {
|
|
AnagBilanceRow rowAnagBilanceRow = ((AnagBilanceRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
CodBilancia,
|
|
DescrImpianto,
|
|
CodCompany,
|
|
CodSito};
|
|
rowAnagBilanceRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowAnagBilanceRow);
|
|
return rowAnagBilanceRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagBilanceRow FindByCodBilancia(string CodBilancia) {
|
|
return ((AnagBilanceRow)(this.Rows.Find(new object[] {
|
|
CodBilancia})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
AnagBilanceDataTable cln = ((AnagBilanceDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new AnagBilanceDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodBilancia = base.Columns["CodBilancia"];
|
|
this.columnDescrImpianto = base.Columns["DescrImpianto"];
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnCodSito = base.Columns["CodSito"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodBilancia = new global::System.Data.DataColumn("CodBilancia", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodBilancia);
|
|
this.columnDescrImpianto = new global::System.Data.DataColumn("DescrImpianto", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescrImpianto);
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnCodSito = new global::System.Data.DataColumn("CodSito", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodSito);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodBilancia}, true));
|
|
this.columnCodBilancia.AllowDBNull = false;
|
|
this.columnCodBilancia.Unique = true;
|
|
this.columnCodBilancia.MaxLength = 50;
|
|
this.columnDescrImpianto.MaxLength = 50;
|
|
this.columnCodCompany.MaxLength = 4;
|
|
this.columnCodSito.MaxLength = 10;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagBilanceRow NewAnagBilanceRow() {
|
|
return ((AnagBilanceRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new AnagBilanceRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(AnagBilanceRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.AnagBilanceRowChanged != null)) {
|
|
this.AnagBilanceRowChanged(this, new AnagBilanceRowChangeEvent(((AnagBilanceRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.AnagBilanceRowChanging != null)) {
|
|
this.AnagBilanceRowChanging(this, new AnagBilanceRowChangeEvent(((AnagBilanceRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.AnagBilanceRowDeleted != null)) {
|
|
this.AnagBilanceRowDeleted(this, new AnagBilanceRowChangeEvent(((AnagBilanceRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.AnagBilanceRowDeleting != null)) {
|
|
this.AnagBilanceRowDeleting(this, new AnagBilanceRowChangeEvent(((AnagBilanceRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveAnagBilanceRow(AnagBilanceRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "AnagBilanceDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 AnagCompanyDataTable : global::System.Data.TypedTableBase<AnagCompanyRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnDescrCompany;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagCompanyDataTable() {
|
|
this.TableName = "AnagCompany";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagCompanyDataTable(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 AnagCompanyDataTable(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 CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescrCompanyColumn {
|
|
get {
|
|
return this.columnDescrCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagCompanyRow this[int index] {
|
|
get {
|
|
return ((AnagCompanyRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event AnagCompanyRowChangeEventHandler AnagCompanyRowChanging;
|
|
|
|
public event AnagCompanyRowChangeEventHandler AnagCompanyRowChanged;
|
|
|
|
public event AnagCompanyRowChangeEventHandler AnagCompanyRowDeleting;
|
|
|
|
public event AnagCompanyRowChangeEventHandler AnagCompanyRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddAnagCompanyRow(AnagCompanyRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagCompanyRow AddAnagCompanyRow(string CodCompany, string DescrCompany) {
|
|
AnagCompanyRow rowAnagCompanyRow = ((AnagCompanyRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
CodCompany,
|
|
DescrCompany};
|
|
rowAnagCompanyRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowAnagCompanyRow);
|
|
return rowAnagCompanyRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagCompanyRow FindByCodCompany(string CodCompany) {
|
|
return ((AnagCompanyRow)(this.Rows.Find(new object[] {
|
|
CodCompany})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
AnagCompanyDataTable cln = ((AnagCompanyDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new AnagCompanyDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnDescrCompany = base.Columns["DescrCompany"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnDescrCompany = new global::System.Data.DataColumn("DescrCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescrCompany);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodCompany}, true));
|
|
this.columnCodCompany.AllowDBNull = false;
|
|
this.columnCodCompany.Unique = true;
|
|
this.columnCodCompany.MaxLength = 4;
|
|
this.columnDescrCompany.MaxLength = 50;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagCompanyRow NewAnagCompanyRow() {
|
|
return ((AnagCompanyRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new AnagCompanyRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(AnagCompanyRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.AnagCompanyRowChanged != null)) {
|
|
this.AnagCompanyRowChanged(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.AnagCompanyRowChanging != null)) {
|
|
this.AnagCompanyRowChanging(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.AnagCompanyRowDeleted != null)) {
|
|
this.AnagCompanyRowDeleted(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.AnagCompanyRowDeleting != null)) {
|
|
this.AnagCompanyRowDeleting(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveAnagCompanyRow(AnagCompanyRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "AnagCompanyDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 AnagImpiantiDataTable : global::System.Data.TypedTableBase<AnagImpiantiRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodImpianto;
|
|
|
|
private global::System.Data.DataColumn columnDescrImpianto;
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnCodSito;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagImpiantiDataTable() {
|
|
this.TableName = "AnagImpianti";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagImpiantiDataTable(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 AnagImpiantiDataTable(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 CodImpiantoColumn {
|
|
get {
|
|
return this.columnCodImpianto;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescrImpiantoColumn {
|
|
get {
|
|
return this.columnDescrImpianto;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodSitoColumn {
|
|
get {
|
|
return this.columnCodSito;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagImpiantiRow this[int index] {
|
|
get {
|
|
return ((AnagImpiantiRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowChanging;
|
|
|
|
public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowChanged;
|
|
|
|
public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowDeleting;
|
|
|
|
public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddAnagImpiantiRow(AnagImpiantiRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagImpiantiRow AddAnagImpiantiRow(string CodImpianto, string DescrImpianto, string CodCompany, string CodSito) {
|
|
AnagImpiantiRow rowAnagImpiantiRow = ((AnagImpiantiRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
CodImpianto,
|
|
DescrImpianto,
|
|
CodCompany,
|
|
CodSito};
|
|
rowAnagImpiantiRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowAnagImpiantiRow);
|
|
return rowAnagImpiantiRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagImpiantiRow FindByCodImpianto(string CodImpianto) {
|
|
return ((AnagImpiantiRow)(this.Rows.Find(new object[] {
|
|
CodImpianto})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
AnagImpiantiDataTable cln = ((AnagImpiantiDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new AnagImpiantiDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodImpianto = base.Columns["CodImpianto"];
|
|
this.columnDescrImpianto = base.Columns["DescrImpianto"];
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnCodSito = base.Columns["CodSito"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodImpianto = new global::System.Data.DataColumn("CodImpianto", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodImpianto);
|
|
this.columnDescrImpianto = new global::System.Data.DataColumn("DescrImpianto", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescrImpianto);
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnCodSito = new global::System.Data.DataColumn("CodSito", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodSito);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodImpianto}, true));
|
|
this.columnCodImpianto.AllowDBNull = false;
|
|
this.columnCodImpianto.Unique = true;
|
|
this.columnCodImpianto.MaxLength = 50;
|
|
this.columnDescrImpianto.MaxLength = 50;
|
|
this.columnCodCompany.MaxLength = 4;
|
|
this.columnCodSito.MaxLength = 10;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagImpiantiRow NewAnagImpiantiRow() {
|
|
return ((AnagImpiantiRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new AnagImpiantiRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(AnagImpiantiRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.AnagImpiantiRowChanged != null)) {
|
|
this.AnagImpiantiRowChanged(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.AnagImpiantiRowChanging != null)) {
|
|
this.AnagImpiantiRowChanging(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.AnagImpiantiRowDeleted != null)) {
|
|
this.AnagImpiantiRowDeleted(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.AnagImpiantiRowDeleting != null)) {
|
|
this.AnagImpiantiRowDeleting(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveAnagImpiantiRow(AnagImpiantiRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "AnagImpiantiDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 AnagOdpDataTable : global::System.Data.TypedTableBase<AnagOdpRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnODP;
|
|
|
|
private global::System.Data.DataColumn columnCodArticolo;
|
|
|
|
private global::System.Data.DataColumn columnCodDisegno;
|
|
|
|
private global::System.Data.DataColumn columnEsponente;
|
|
|
|
private global::System.Data.DataColumn columnMagazzino;
|
|
|
|
private global::System.Data.DataColumn columnUbicazione;
|
|
|
|
private global::System.Data.DataColumn columnCreateDate;
|
|
|
|
private global::System.Data.DataColumn columnModDate;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagOdpDataTable() {
|
|
this.TableName = "AnagOdp";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagOdpDataTable(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 AnagOdpDataTable(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 CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ODPColumn {
|
|
get {
|
|
return this.columnODP;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodArticoloColumn {
|
|
get {
|
|
return this.columnCodArticolo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodDisegnoColumn {
|
|
get {
|
|
return this.columnCodDisegno;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn EsponenteColumn {
|
|
get {
|
|
return this.columnEsponente;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn MagazzinoColumn {
|
|
get {
|
|
return this.columnMagazzino;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn UbicazioneColumn {
|
|
get {
|
|
return this.columnUbicazione;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CreateDateColumn {
|
|
get {
|
|
return this.columnCreateDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ModDateColumn {
|
|
get {
|
|
return this.columnModDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagOdpRow this[int index] {
|
|
get {
|
|
return ((AnagOdpRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event AnagOdpRowChangeEventHandler AnagOdpRowChanging;
|
|
|
|
public event AnagOdpRowChangeEventHandler AnagOdpRowChanged;
|
|
|
|
public event AnagOdpRowChangeEventHandler AnagOdpRowDeleting;
|
|
|
|
public event AnagOdpRowChangeEventHandler AnagOdpRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddAnagOdpRow(AnagOdpRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagOdpRow AddAnagOdpRow(AnagCompanyRow parentAnagCompanyRowByFK_AnagOdp_AnagCompany, string ODP, string CodArticolo, string CodDisegno, string Esponente, string Magazzino, string Ubicazione, System.DateTime CreateDate, System.DateTime ModDate) {
|
|
AnagOdpRow rowAnagOdpRow = ((AnagOdpRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
null,
|
|
ODP,
|
|
CodArticolo,
|
|
CodDisegno,
|
|
Esponente,
|
|
Magazzino,
|
|
Ubicazione,
|
|
CreateDate,
|
|
ModDate};
|
|
if ((parentAnagCompanyRowByFK_AnagOdp_AnagCompany != null)) {
|
|
columnValuesArray[0] = parentAnagCompanyRowByFK_AnagOdp_AnagCompany[0];
|
|
}
|
|
rowAnagOdpRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowAnagOdpRow);
|
|
return rowAnagOdpRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagOdpRow FindByCodCompanyODP(string CodCompany, string ODP) {
|
|
return ((AnagOdpRow)(this.Rows.Find(new object[] {
|
|
CodCompany,
|
|
ODP})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
AnagOdpDataTable cln = ((AnagOdpDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new AnagOdpDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnODP = base.Columns["ODP"];
|
|
this.columnCodArticolo = base.Columns["CodArticolo"];
|
|
this.columnCodDisegno = base.Columns["CodDisegno"];
|
|
this.columnEsponente = base.Columns["Esponente"];
|
|
this.columnMagazzino = base.Columns["Magazzino"];
|
|
this.columnUbicazione = base.Columns["Ubicazione"];
|
|
this.columnCreateDate = base.Columns["CreateDate"];
|
|
this.columnModDate = base.Columns["ModDate"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnODP);
|
|
this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodArticolo);
|
|
this.columnCodDisegno = new global::System.Data.DataColumn("CodDisegno", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodDisegno);
|
|
this.columnEsponente = new global::System.Data.DataColumn("Esponente", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnEsponente);
|
|
this.columnMagazzino = new global::System.Data.DataColumn("Magazzino", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnMagazzino);
|
|
this.columnUbicazione = new global::System.Data.DataColumn("Ubicazione", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnUbicazione);
|
|
this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCreateDate);
|
|
this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnModDate);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodCompany,
|
|
this.columnODP}, true));
|
|
this.columnCodCompany.AllowDBNull = false;
|
|
this.columnCodCompany.MaxLength = 4;
|
|
this.columnODP.AllowDBNull = false;
|
|
this.columnODP.MaxLength = 20;
|
|
this.columnCodArticolo.AllowDBNull = false;
|
|
this.columnCodArticolo.MaxLength = 20;
|
|
this.columnCodDisegno.AllowDBNull = false;
|
|
this.columnCodDisegno.MaxLength = 10;
|
|
this.columnEsponente.AllowDBNull = false;
|
|
this.columnEsponente.MaxLength = 20;
|
|
this.columnMagazzino.AllowDBNull = false;
|
|
this.columnMagazzino.MaxLength = 10;
|
|
this.columnUbicazione.AllowDBNull = false;
|
|
this.columnUbicazione.MaxLength = 10;
|
|
this.columnCreateDate.AllowDBNull = false;
|
|
this.columnModDate.AllowDBNull = false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagOdpRow NewAnagOdpRow() {
|
|
return ((AnagOdpRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new AnagOdpRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(AnagOdpRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.AnagOdpRowChanged != null)) {
|
|
this.AnagOdpRowChanged(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.AnagOdpRowChanging != null)) {
|
|
this.AnagOdpRowChanging(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.AnagOdpRowDeleted != null)) {
|
|
this.AnagOdpRowDeleted(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.AnagOdpRowDeleting != null)) {
|
|
this.AnagOdpRowDeleting(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveAnagOdpRow(AnagOdpRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "AnagOdpDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 AnagSitiDataTable : global::System.Data.TypedTableBase<AnagSitiRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnCodSito;
|
|
|
|
private global::System.Data.DataColumn columnDescrSito;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiDataTable() {
|
|
this.TableName = "AnagSiti";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagSitiDataTable(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 AnagSitiDataTable(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 CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodSitoColumn {
|
|
get {
|
|
return this.columnCodSito;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescrSitoColumn {
|
|
get {
|
|
return this.columnDescrSito;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiRow this[int index] {
|
|
get {
|
|
return ((AnagSitiRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event AnagSitiRowChangeEventHandler AnagSitiRowChanging;
|
|
|
|
public event AnagSitiRowChangeEventHandler AnagSitiRowChanged;
|
|
|
|
public event AnagSitiRowChangeEventHandler AnagSitiRowDeleting;
|
|
|
|
public event AnagSitiRowChangeEventHandler AnagSitiRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddAnagSitiRow(AnagSitiRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiRow AddAnagSitiRow(AnagCompanyRow parentAnagCompanyRowByFK_AnagSiti_AnagCompany, string CodSito, string DescrSito) {
|
|
AnagSitiRow rowAnagSitiRow = ((AnagSitiRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
null,
|
|
CodSito,
|
|
DescrSito};
|
|
if ((parentAnagCompanyRowByFK_AnagSiti_AnagCompany != null)) {
|
|
columnValuesArray[0] = parentAnagCompanyRowByFK_AnagSiti_AnagCompany[0];
|
|
}
|
|
rowAnagSitiRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowAnagSitiRow);
|
|
return rowAnagSitiRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiRow FindByCodCompanyCodSito(string CodCompany, string CodSito) {
|
|
return ((AnagSitiRow)(this.Rows.Find(new object[] {
|
|
CodCompany,
|
|
CodSito})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
AnagSitiDataTable cln = ((AnagSitiDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new AnagSitiDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnCodSito = base.Columns["CodSito"];
|
|
this.columnDescrSito = base.Columns["DescrSito"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnCodSito = new global::System.Data.DataColumn("CodSito", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodSito);
|
|
this.columnDescrSito = new global::System.Data.DataColumn("DescrSito", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescrSito);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodCompany,
|
|
this.columnCodSito}, true));
|
|
this.columnCodCompany.AllowDBNull = false;
|
|
this.columnCodCompany.MaxLength = 4;
|
|
this.columnCodSito.AllowDBNull = false;
|
|
this.columnCodSito.MaxLength = 10;
|
|
this.columnDescrSito.MaxLength = 50;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiRow NewAnagSitiRow() {
|
|
return ((AnagSitiRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new AnagSitiRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(AnagSitiRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.AnagSitiRowChanged != null)) {
|
|
this.AnagSitiRowChanged(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.AnagSitiRowChanging != null)) {
|
|
this.AnagSitiRowChanging(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.AnagSitiRowDeleted != null)) {
|
|
this.AnagSitiRowDeleted(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.AnagSitiRowDeleting != null)) {
|
|
this.AnagSitiRowDeleting(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveAnagSitiRow(AnagSitiRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "AnagSitiDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 AnagStatiDataTable : global::System.Data.TypedTableBase<AnagStatiRow> {
|
|
|
|
private global::System.Data.DataColumn columnIdxStato;
|
|
|
|
private global::System.Data.DataColumn columnDescrStato;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagStatiDataTable() {
|
|
this.TableName = "AnagStati";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagStatiDataTable(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 AnagStatiDataTable(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 IdxStatoColumn {
|
|
get {
|
|
return this.columnIdxStato;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescrStatoColumn {
|
|
get {
|
|
return this.columnDescrStato;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagStatiRow this[int index] {
|
|
get {
|
|
return ((AnagStatiRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event AnagStatiRowChangeEventHandler AnagStatiRowChanging;
|
|
|
|
public event AnagStatiRowChangeEventHandler AnagStatiRowChanged;
|
|
|
|
public event AnagStatiRowChangeEventHandler AnagStatiRowDeleting;
|
|
|
|
public event AnagStatiRowChangeEventHandler AnagStatiRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddAnagStatiRow(AnagStatiRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagStatiRow AddAnagStatiRow(int IdxStato, string DescrStato) {
|
|
AnagStatiRow rowAnagStatiRow = ((AnagStatiRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
IdxStato,
|
|
DescrStato};
|
|
rowAnagStatiRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowAnagStatiRow);
|
|
return rowAnagStatiRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagStatiRow FindByIdxStato(int IdxStato) {
|
|
return ((AnagStatiRow)(this.Rows.Find(new object[] {
|
|
IdxStato})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
AnagStatiDataTable cln = ((AnagStatiDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new AnagStatiDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnIdxStato = base.Columns["IdxStato"];
|
|
this.columnDescrStato = base.Columns["DescrStato"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnIdxStato);
|
|
this.columnDescrStato = new global::System.Data.DataColumn("DescrStato", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescrStato);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnIdxStato}, true));
|
|
this.columnIdxStato.AllowDBNull = false;
|
|
this.columnIdxStato.Unique = true;
|
|
this.columnDescrStato.MaxLength = 50;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagStatiRow NewAnagStatiRow() {
|
|
return ((AnagStatiRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new AnagStatiRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(AnagStatiRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.AnagStatiRowChanged != null)) {
|
|
this.AnagStatiRowChanged(this, new AnagStatiRowChangeEvent(((AnagStatiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.AnagStatiRowChanging != null)) {
|
|
this.AnagStatiRowChanging(this, new AnagStatiRowChangeEvent(((AnagStatiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.AnagStatiRowDeleted != null)) {
|
|
this.AnagStatiRowDeleted(this, new AnagStatiRowChangeEvent(((AnagStatiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.AnagStatiRowDeleting != null)) {
|
|
this.AnagStatiRowDeleting(this, new AnagStatiRowChangeEvent(((AnagStatiRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveAnagStatiRow(AnagStatiRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "AnagStatiDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 ContatoriUdcDataTable : global::System.Data.TypedTableBase<ContatoriUdcRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnFlusso;
|
|
|
|
private global::System.Data.DataColumn columnAnno;
|
|
|
|
private global::System.Data.DataColumn columnLastIdx;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public ContatoriUdcDataTable() {
|
|
this.TableName = "ContatoriUdc";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal ContatoriUdcDataTable(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 ContatoriUdcDataTable(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 CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn FlussoColumn {
|
|
get {
|
|
return this.columnFlusso;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn AnnoColumn {
|
|
get {
|
|
return this.columnAnno;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn LastIdxColumn {
|
|
get {
|
|
return this.columnLastIdx;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public ContatoriUdcRow this[int index] {
|
|
get {
|
|
return ((ContatoriUdcRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event ContatoriUdcRowChangeEventHandler ContatoriUdcRowChanging;
|
|
|
|
public event ContatoriUdcRowChangeEventHandler ContatoriUdcRowChanged;
|
|
|
|
public event ContatoriUdcRowChangeEventHandler ContatoriUdcRowDeleting;
|
|
|
|
public event ContatoriUdcRowChangeEventHandler ContatoriUdcRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddContatoriUdcRow(ContatoriUdcRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public ContatoriUdcRow AddContatoriUdcRow(string CodCompany, string Flusso, string Anno, int LastIdx) {
|
|
ContatoriUdcRow rowContatoriUdcRow = ((ContatoriUdcRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
CodCompany,
|
|
Flusso,
|
|
Anno,
|
|
LastIdx};
|
|
rowContatoriUdcRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowContatoriUdcRow);
|
|
return rowContatoriUdcRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public ContatoriUdcRow FindByCodCompanyFlussoAnno(string CodCompany, string Flusso, string Anno) {
|
|
return ((ContatoriUdcRow)(this.Rows.Find(new object[] {
|
|
CodCompany,
|
|
Flusso,
|
|
Anno})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
ContatoriUdcDataTable cln = ((ContatoriUdcDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new ContatoriUdcDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnFlusso = base.Columns["Flusso"];
|
|
this.columnAnno = base.Columns["Anno"];
|
|
this.columnLastIdx = base.Columns["LastIdx"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnFlusso = new global::System.Data.DataColumn("Flusso", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnFlusso);
|
|
this.columnAnno = new global::System.Data.DataColumn("Anno", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnAnno);
|
|
this.columnLastIdx = new global::System.Data.DataColumn("LastIdx", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnLastIdx);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodCompany,
|
|
this.columnFlusso,
|
|
this.columnAnno}, true));
|
|
this.columnCodCompany.AllowDBNull = false;
|
|
this.columnCodCompany.MaxLength = 2;
|
|
this.columnFlusso.AllowDBNull = false;
|
|
this.columnFlusso.MaxLength = 2;
|
|
this.columnAnno.AllowDBNull = false;
|
|
this.columnAnno.MaxLength = 2;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public ContatoriUdcRow NewContatoriUdcRow() {
|
|
return ((ContatoriUdcRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new ContatoriUdcRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(ContatoriUdcRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.ContatoriUdcRowChanged != null)) {
|
|
this.ContatoriUdcRowChanged(this, new ContatoriUdcRowChangeEvent(((ContatoriUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.ContatoriUdcRowChanging != null)) {
|
|
this.ContatoriUdcRowChanging(this, new ContatoriUdcRowChangeEvent(((ContatoriUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.ContatoriUdcRowDeleted != null)) {
|
|
this.ContatoriUdcRowDeleted(this, new ContatoriUdcRowChangeEvent(((ContatoriUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.ContatoriUdcRowDeleting != null)) {
|
|
this.ContatoriUdcRowDeleting(this, new ContatoriUdcRowChangeEvent(((ContatoriUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveContatoriUdcRow(ContatoriUdcRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "ContatoriUdcDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 Impianti2ArticoliDataTable : global::System.Data.TypedTableBase<Impianti2ArticoliRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodImpianto;
|
|
|
|
private global::System.Data.DataColumn columnCodArticolo;
|
|
|
|
private global::System.Data.DataColumn columnInizioProd;
|
|
|
|
private global::System.Data.DataColumn columnFineProd;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public Impianti2ArticoliDataTable() {
|
|
this.TableName = "Impianti2Articoli";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal Impianti2ArticoliDataTable(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 Impianti2ArticoliDataTable(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 CodImpiantoColumn {
|
|
get {
|
|
return this.columnCodImpianto;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodArticoloColumn {
|
|
get {
|
|
return this.columnCodArticolo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn InizioProdColumn {
|
|
get {
|
|
return this.columnInizioProd;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn FineProdColumn {
|
|
get {
|
|
return this.columnFineProd;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public Impianti2ArticoliRow this[int index] {
|
|
get {
|
|
return ((Impianti2ArticoliRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowChanging;
|
|
|
|
public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowChanged;
|
|
|
|
public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowDeleting;
|
|
|
|
public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddImpianti2ArticoliRow(Impianti2ArticoliRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public Impianti2ArticoliRow AddImpianti2ArticoliRow(AnagImpiantiRow parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti, AnagArticoliRow parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli, System.DateTime InizioProd, System.DateTime FineProd) {
|
|
Impianti2ArticoliRow rowImpianti2ArticoliRow = ((Impianti2ArticoliRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
null,
|
|
null,
|
|
InizioProd,
|
|
FineProd};
|
|
if ((parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti != null)) {
|
|
columnValuesArray[0] = parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti[0];
|
|
}
|
|
if ((parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli != null)) {
|
|
columnValuesArray[1] = parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli[0];
|
|
}
|
|
rowImpianti2ArticoliRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowImpianti2ArticoliRow);
|
|
return rowImpianti2ArticoliRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public Impianti2ArticoliRow FindByCodImpiantoCodArticoloInizioProd(string CodImpianto, string CodArticolo, System.DateTime InizioProd) {
|
|
return ((Impianti2ArticoliRow)(this.Rows.Find(new object[] {
|
|
CodImpianto,
|
|
CodArticolo,
|
|
InizioProd})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
Impianti2ArticoliDataTable cln = ((Impianti2ArticoliDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new Impianti2ArticoliDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodImpianto = base.Columns["CodImpianto"];
|
|
this.columnCodArticolo = base.Columns["CodArticolo"];
|
|
this.columnInizioProd = base.Columns["InizioProd"];
|
|
this.columnFineProd = base.Columns["FineProd"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodImpianto = new global::System.Data.DataColumn("CodImpianto", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodImpianto);
|
|
this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodArticolo);
|
|
this.columnInizioProd = new global::System.Data.DataColumn("InizioProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnInizioProd);
|
|
this.columnFineProd = new global::System.Data.DataColumn("FineProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnFineProd);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodImpianto,
|
|
this.columnCodArticolo,
|
|
this.columnInizioProd}, true));
|
|
this.columnCodImpianto.AllowDBNull = false;
|
|
this.columnCodImpianto.MaxLength = 50;
|
|
this.columnCodArticolo.AllowDBNull = false;
|
|
this.columnCodArticolo.MaxLength = 50;
|
|
this.columnInizioProd.AllowDBNull = false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public Impianti2ArticoliRow NewImpianti2ArticoliRow() {
|
|
return ((Impianti2ArticoliRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new Impianti2ArticoliRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(Impianti2ArticoliRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.Impianti2ArticoliRowChanged != null)) {
|
|
this.Impianti2ArticoliRowChanged(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.Impianti2ArticoliRowChanging != null)) {
|
|
this.Impianti2ArticoliRowChanging(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.Impianti2ArticoliRowDeleted != null)) {
|
|
this.Impianti2ArticoliRowDeleted(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.Impianti2ArticoliRowDeleting != null)) {
|
|
this.Impianti2ArticoliRowDeleting(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveImpianti2ArticoliRow(Impianti2ArticoliRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "Impianti2ArticoliDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 TabStatoOdpUdcDataTable : global::System.Data.TypedTableBase<TabStatoOdpUdcRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnODP;
|
|
|
|
private global::System.Data.DataColumn columnUDC;
|
|
|
|
private global::System.Data.DataColumn columnTara;
|
|
|
|
private global::System.Data.DataColumn columnIdxStato;
|
|
|
|
private global::System.Data.DataColumn columnQta;
|
|
|
|
private global::System.Data.DataColumn columnCodImballo;
|
|
|
|
private global::System.Data.DataColumn columnCreateDate;
|
|
|
|
private global::System.Data.DataColumn columnModDate;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public TabStatoOdpUdcDataTable() {
|
|
this.TableName = "TabStatoOdpUdc";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal TabStatoOdpUdcDataTable(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 TabStatoOdpUdcDataTable(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 CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ODPColumn {
|
|
get {
|
|
return this.columnODP;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn UDCColumn {
|
|
get {
|
|
return this.columnUDC;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn TaraColumn {
|
|
get {
|
|
return this.columnTara;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn IdxStatoColumn {
|
|
get {
|
|
return this.columnIdxStato;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn QtaColumn {
|
|
get {
|
|
return this.columnQta;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodImballoColumn {
|
|
get {
|
|
return this.columnCodImballo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CreateDateColumn {
|
|
get {
|
|
return this.columnCreateDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ModDateColumn {
|
|
get {
|
|
return this.columnModDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public TabStatoOdpUdcRow this[int index] {
|
|
get {
|
|
return ((TabStatoOdpUdcRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowChanging;
|
|
|
|
public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowChanged;
|
|
|
|
public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowDeleting;
|
|
|
|
public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void AddTabStatoOdpUdcRow(TabStatoOdpUdcRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public TabStatoOdpUdcRow AddTabStatoOdpUdcRow(string CodCompany, string ODP, string UDC, double Tara, AnagStatiRow parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate) {
|
|
TabStatoOdpUdcRow rowTabStatoOdpUdcRow = ((TabStatoOdpUdcRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
CodCompany,
|
|
ODP,
|
|
UDC,
|
|
Tara,
|
|
null,
|
|
Qta,
|
|
CodImballo,
|
|
CreateDate,
|
|
ModDate};
|
|
if ((parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati != null)) {
|
|
columnValuesArray[4] = parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati[0];
|
|
}
|
|
rowTabStatoOdpUdcRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowTabStatoOdpUdcRow);
|
|
return rowTabStatoOdpUdcRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public TabStatoOdpUdcRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) {
|
|
return ((TabStatoOdpUdcRow)(this.Rows.Find(new object[] {
|
|
CodCompany,
|
|
ODP,
|
|
UDC})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
TabStatoOdpUdcDataTable cln = ((TabStatoOdpUdcDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new TabStatoOdpUdcDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnODP = base.Columns["ODP"];
|
|
this.columnUDC = base.Columns["UDC"];
|
|
this.columnTara = base.Columns["Tara"];
|
|
this.columnIdxStato = base.Columns["IdxStato"];
|
|
this.columnQta = base.Columns["Qta"];
|
|
this.columnCodImballo = base.Columns["CodImballo"];
|
|
this.columnCreateDate = base.Columns["CreateDate"];
|
|
this.columnModDate = base.Columns["ModDate"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnODP);
|
|
this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnUDC);
|
|
this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnTara);
|
|
this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnIdxStato);
|
|
this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnQta);
|
|
this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodImballo);
|
|
this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCreateDate);
|
|
this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnModDate);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodCompany,
|
|
this.columnODP,
|
|
this.columnUDC}, true));
|
|
this.columnCodCompany.AllowDBNull = false;
|
|
this.columnCodCompany.MaxLength = 4;
|
|
this.columnODP.AllowDBNull = false;
|
|
this.columnODP.MaxLength = 20;
|
|
this.columnUDC.AllowDBNull = false;
|
|
this.columnUDC.MaxLength = 50;
|
|
this.columnCodImballo.MaxLength = 50;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public TabStatoOdpUdcRow NewTabStatoOdpUdcRow() {
|
|
return ((TabStatoOdpUdcRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new TabStatoOdpUdcRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(TabStatoOdpUdcRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.TabStatoOdpUdcRowChanged != null)) {
|
|
this.TabStatoOdpUdcRowChanged(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.TabStatoOdpUdcRowChanging != null)) {
|
|
this.TabStatoOdpUdcRowChanging(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.TabStatoOdpUdcRowDeleted != null)) {
|
|
this.TabStatoOdpUdcRowDeleted(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.TabStatoOdpUdcRowDeleting != null)) {
|
|
this.TabStatoOdpUdcRowDeleting(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void RemoveTabStatoOdpUdcRow(TabStatoOdpUdcRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "TabStatoOdpUdcDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 stp_getStatoByUdcDataTable : global::System.Data.TypedTableBase<stp_getStatoByUdcRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnODP;
|
|
|
|
private global::System.Data.DataColumn columnUDC;
|
|
|
|
private global::System.Data.DataColumn columnTara;
|
|
|
|
private global::System.Data.DataColumn columnIdxStato;
|
|
|
|
private global::System.Data.DataColumn columnQta;
|
|
|
|
private global::System.Data.DataColumn columnCodImballo;
|
|
|
|
private global::System.Data.DataColumn columnCreateDate;
|
|
|
|
private global::System.Data.DataColumn columnModDate;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_getStatoByUdcDataTable() {
|
|
this.TableName = "stp_getStatoByUdc";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_getStatoByUdcDataTable(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 stp_getStatoByUdcDataTable(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 CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ODPColumn {
|
|
get {
|
|
return this.columnODP;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn UDCColumn {
|
|
get {
|
|
return this.columnUDC;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn TaraColumn {
|
|
get {
|
|
return this.columnTara;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn IdxStatoColumn {
|
|
get {
|
|
return this.columnIdxStato;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn QtaColumn {
|
|
get {
|
|
return this.columnQta;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodImballoColumn {
|
|
get {
|
|
return this.columnCodImballo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CreateDateColumn {
|
|
get {
|
|
return this.columnCreateDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ModDateColumn {
|
|
get {
|
|
return this.columnModDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_getStatoByUdcRow this[int index] {
|
|
get {
|
|
return ((stp_getStatoByUdcRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event stp_getStatoByUdcRowChangeEventHandler stp_getStatoByUdcRowChanging;
|
|
|
|
public event stp_getStatoByUdcRowChangeEventHandler stp_getStatoByUdcRowChanged;
|
|
|
|
public event stp_getStatoByUdcRowChangeEventHandler stp_getStatoByUdcRowDeleting;
|
|
|
|
public event stp_getStatoByUdcRowChangeEventHandler stp_getStatoByUdcRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Addstp_getStatoByUdcRow(stp_getStatoByUdcRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_getStatoByUdcRow Addstp_getStatoByUdcRow(string CodCompany, string ODP, string UDC, double Tara, int IdxStato, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate) {
|
|
stp_getStatoByUdcRow rowstp_getStatoByUdcRow = ((stp_getStatoByUdcRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
CodCompany,
|
|
ODP,
|
|
UDC,
|
|
Tara,
|
|
IdxStato,
|
|
Qta,
|
|
CodImballo,
|
|
CreateDate,
|
|
ModDate};
|
|
rowstp_getStatoByUdcRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowstp_getStatoByUdcRow);
|
|
return rowstp_getStatoByUdcRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_getStatoByUdcRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) {
|
|
return ((stp_getStatoByUdcRow)(this.Rows.Find(new object[] {
|
|
CodCompany,
|
|
ODP,
|
|
UDC})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
stp_getStatoByUdcDataTable cln = ((stp_getStatoByUdcDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new stp_getStatoByUdcDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnODP = base.Columns["ODP"];
|
|
this.columnUDC = base.Columns["UDC"];
|
|
this.columnTara = base.Columns["Tara"];
|
|
this.columnIdxStato = base.Columns["IdxStato"];
|
|
this.columnQta = base.Columns["Qta"];
|
|
this.columnCodImballo = base.Columns["CodImballo"];
|
|
this.columnCreateDate = base.Columns["CreateDate"];
|
|
this.columnModDate = base.Columns["ModDate"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnODP);
|
|
this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnUDC);
|
|
this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnTara);
|
|
this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnIdxStato);
|
|
this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnQta);
|
|
this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodImballo);
|
|
this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCreateDate);
|
|
this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnModDate);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodCompany,
|
|
this.columnODP,
|
|
this.columnUDC}, true));
|
|
this.columnCodCompany.AllowDBNull = false;
|
|
this.columnCodCompany.MaxLength = 4;
|
|
this.columnODP.AllowDBNull = false;
|
|
this.columnODP.MaxLength = 20;
|
|
this.columnUDC.AllowDBNull = false;
|
|
this.columnUDC.MaxLength = 50;
|
|
this.columnCodImballo.MaxLength = 50;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_getStatoByUdcRow Newstp_getStatoByUdcRow() {
|
|
return ((stp_getStatoByUdcRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new stp_getStatoByUdcRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(stp_getStatoByUdcRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.stp_getStatoByUdcRowChanged != null)) {
|
|
this.stp_getStatoByUdcRowChanged(this, new stp_getStatoByUdcRowChangeEvent(((stp_getStatoByUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.stp_getStatoByUdcRowChanging != null)) {
|
|
this.stp_getStatoByUdcRowChanging(this, new stp_getStatoByUdcRowChangeEvent(((stp_getStatoByUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.stp_getStatoByUdcRowDeleted != null)) {
|
|
this.stp_getStatoByUdcRowDeleted(this, new stp_getStatoByUdcRowChangeEvent(((stp_getStatoByUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.stp_getStatoByUdcRowDeleting != null)) {
|
|
this.stp_getStatoByUdcRowDeleting(this, new stp_getStatoByUdcRowChangeEvent(((stp_getStatoByUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Removestp_getStatoByUdcRow(stp_getStatoByUdcRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "stp_getStatoByUdcDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 stp_insNewOdpUdcDataTable : global::System.Data.TypedTableBase<stp_insNewOdpUdcRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnODP;
|
|
|
|
private global::System.Data.DataColumn columnUDC;
|
|
|
|
private global::System.Data.DataColumn columnTara;
|
|
|
|
private global::System.Data.DataColumn columnIdxStato;
|
|
|
|
private global::System.Data.DataColumn columnQta;
|
|
|
|
private global::System.Data.DataColumn columnCodImballo;
|
|
|
|
private global::System.Data.DataColumn columnCreateDate;
|
|
|
|
private global::System.Data.DataColumn columnModDate;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_insNewOdpUdcDataTable() {
|
|
this.TableName = "stp_insNewOdpUdc";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_insNewOdpUdcDataTable(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 stp_insNewOdpUdcDataTable(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 CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ODPColumn {
|
|
get {
|
|
return this.columnODP;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn UDCColumn {
|
|
get {
|
|
return this.columnUDC;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn TaraColumn {
|
|
get {
|
|
return this.columnTara;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn IdxStatoColumn {
|
|
get {
|
|
return this.columnIdxStato;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn QtaColumn {
|
|
get {
|
|
return this.columnQta;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodImballoColumn {
|
|
get {
|
|
return this.columnCodImballo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CreateDateColumn {
|
|
get {
|
|
return this.columnCreateDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ModDateColumn {
|
|
get {
|
|
return this.columnModDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_insNewOdpUdcRow this[int index] {
|
|
get {
|
|
return ((stp_insNewOdpUdcRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event stp_insNewOdpUdcRowChangeEventHandler stp_insNewOdpUdcRowChanging;
|
|
|
|
public event stp_insNewOdpUdcRowChangeEventHandler stp_insNewOdpUdcRowChanged;
|
|
|
|
public event stp_insNewOdpUdcRowChangeEventHandler stp_insNewOdpUdcRowDeleting;
|
|
|
|
public event stp_insNewOdpUdcRowChangeEventHandler stp_insNewOdpUdcRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Addstp_insNewOdpUdcRow(stp_insNewOdpUdcRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_insNewOdpUdcRow Addstp_insNewOdpUdcRow(string CodCompany, string ODP, string UDC, double Tara, int IdxStato, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate) {
|
|
stp_insNewOdpUdcRow rowstp_insNewOdpUdcRow = ((stp_insNewOdpUdcRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
CodCompany,
|
|
ODP,
|
|
UDC,
|
|
Tara,
|
|
IdxStato,
|
|
Qta,
|
|
CodImballo,
|
|
CreateDate,
|
|
ModDate};
|
|
rowstp_insNewOdpUdcRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowstp_insNewOdpUdcRow);
|
|
return rowstp_insNewOdpUdcRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_insNewOdpUdcRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) {
|
|
return ((stp_insNewOdpUdcRow)(this.Rows.Find(new object[] {
|
|
CodCompany,
|
|
ODP,
|
|
UDC})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
stp_insNewOdpUdcDataTable cln = ((stp_insNewOdpUdcDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new stp_insNewOdpUdcDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnODP = base.Columns["ODP"];
|
|
this.columnUDC = base.Columns["UDC"];
|
|
this.columnTara = base.Columns["Tara"];
|
|
this.columnIdxStato = base.Columns["IdxStato"];
|
|
this.columnQta = base.Columns["Qta"];
|
|
this.columnCodImballo = base.Columns["CodImballo"];
|
|
this.columnCreateDate = base.Columns["CreateDate"];
|
|
this.columnModDate = base.Columns["ModDate"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnODP);
|
|
this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnUDC);
|
|
this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnTara);
|
|
this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnIdxStato);
|
|
this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnQta);
|
|
this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodImballo);
|
|
this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCreateDate);
|
|
this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnModDate);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodCompany,
|
|
this.columnODP,
|
|
this.columnUDC}, true));
|
|
this.columnCodCompany.AllowDBNull = false;
|
|
this.columnCodCompany.MaxLength = 4;
|
|
this.columnODP.AllowDBNull = false;
|
|
this.columnODP.MaxLength = 20;
|
|
this.columnUDC.AllowDBNull = false;
|
|
this.columnUDC.MaxLength = 50;
|
|
this.columnCodImballo.MaxLength = 50;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_insNewOdpUdcRow Newstp_insNewOdpUdcRow() {
|
|
return ((stp_insNewOdpUdcRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new stp_insNewOdpUdcRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(stp_insNewOdpUdcRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.stp_insNewOdpUdcRowChanged != null)) {
|
|
this.stp_insNewOdpUdcRowChanged(this, new stp_insNewOdpUdcRowChangeEvent(((stp_insNewOdpUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.stp_insNewOdpUdcRowChanging != null)) {
|
|
this.stp_insNewOdpUdcRowChanging(this, new stp_insNewOdpUdcRowChangeEvent(((stp_insNewOdpUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.stp_insNewOdpUdcRowDeleted != null)) {
|
|
this.stp_insNewOdpUdcRowDeleted(this, new stp_insNewOdpUdcRowChangeEvent(((stp_insNewOdpUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.stp_insNewOdpUdcRowDeleting != null)) {
|
|
this.stp_insNewOdpUdcRowDeleting(this, new stp_insNewOdpUdcRowChangeEvent(((stp_insNewOdpUdcRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Removestp_insNewOdpUdcRow(stp_insNewOdpUdcRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "stp_insNewOdpUdcDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 stp_updateByBilanciaDataTable : global::System.Data.TypedTableBase<stp_updateByBilanciaRow> {
|
|
|
|
private global::System.Data.DataColumn columnCodCompany;
|
|
|
|
private global::System.Data.DataColumn columnODP;
|
|
|
|
private global::System.Data.DataColumn columnUDC;
|
|
|
|
private global::System.Data.DataColumn columnTara;
|
|
|
|
private global::System.Data.DataColumn columnIdxStato;
|
|
|
|
private global::System.Data.DataColumn columnQta;
|
|
|
|
private global::System.Data.DataColumn columnCodImballo;
|
|
|
|
private global::System.Data.DataColumn columnCreateDate;
|
|
|
|
private global::System.Data.DataColumn columnModDate;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_updateByBilanciaDataTable() {
|
|
this.TableName = "stp_updateByBilancia";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_updateByBilanciaDataTable(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 stp_updateByBilanciaDataTable(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 CodCompanyColumn {
|
|
get {
|
|
return this.columnCodCompany;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ODPColumn {
|
|
get {
|
|
return this.columnODP;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn UDCColumn {
|
|
get {
|
|
return this.columnUDC;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn TaraColumn {
|
|
get {
|
|
return this.columnTara;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn IdxStatoColumn {
|
|
get {
|
|
return this.columnIdxStato;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn QtaColumn {
|
|
get {
|
|
return this.columnQta;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodImballoColumn {
|
|
get {
|
|
return this.columnCodImballo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CreateDateColumn {
|
|
get {
|
|
return this.columnCreateDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ModDateColumn {
|
|
get {
|
|
return this.columnModDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_updateByBilanciaRow this[int index] {
|
|
get {
|
|
return ((stp_updateByBilanciaRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event stp_updateByBilanciaRowChangeEventHandler stp_updateByBilanciaRowChanging;
|
|
|
|
public event stp_updateByBilanciaRowChangeEventHandler stp_updateByBilanciaRowChanged;
|
|
|
|
public event stp_updateByBilanciaRowChangeEventHandler stp_updateByBilanciaRowDeleting;
|
|
|
|
public event stp_updateByBilanciaRowChangeEventHandler stp_updateByBilanciaRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Addstp_updateByBilanciaRow(stp_updateByBilanciaRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_updateByBilanciaRow Addstp_updateByBilanciaRow(string CodCompany, string ODP, string UDC, double Tara, int IdxStato, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate) {
|
|
stp_updateByBilanciaRow rowstp_updateByBilanciaRow = ((stp_updateByBilanciaRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
CodCompany,
|
|
ODP,
|
|
UDC,
|
|
Tara,
|
|
IdxStato,
|
|
Qta,
|
|
CodImballo,
|
|
CreateDate,
|
|
ModDate};
|
|
rowstp_updateByBilanciaRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowstp_updateByBilanciaRow);
|
|
return rowstp_updateByBilanciaRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_updateByBilanciaRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) {
|
|
return ((stp_updateByBilanciaRow)(this.Rows.Find(new object[] {
|
|
CodCompany,
|
|
ODP,
|
|
UDC})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
stp_updateByBilanciaDataTable cln = ((stp_updateByBilanciaDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new stp_updateByBilanciaDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnCodCompany = base.Columns["CodCompany"];
|
|
this.columnODP = base.Columns["ODP"];
|
|
this.columnUDC = base.Columns["UDC"];
|
|
this.columnTara = base.Columns["Tara"];
|
|
this.columnIdxStato = base.Columns["IdxStato"];
|
|
this.columnQta = base.Columns["Qta"];
|
|
this.columnCodImballo = base.Columns["CodImballo"];
|
|
this.columnCreateDate = base.Columns["CreateDate"];
|
|
this.columnModDate = base.Columns["ModDate"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodCompany);
|
|
this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnODP);
|
|
this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnUDC);
|
|
this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnTara);
|
|
this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnIdxStato);
|
|
this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnQta);
|
|
this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodImballo);
|
|
this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCreateDate);
|
|
this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnModDate);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnCodCompany,
|
|
this.columnODP,
|
|
this.columnUDC}, true));
|
|
this.columnCodCompany.AllowDBNull = false;
|
|
this.columnCodCompany.MaxLength = 4;
|
|
this.columnODP.AllowDBNull = false;
|
|
this.columnODP.MaxLength = 20;
|
|
this.columnUDC.AllowDBNull = false;
|
|
this.columnUDC.MaxLength = 50;
|
|
this.columnCodImballo.MaxLength = 50;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_updateByBilanciaRow Newstp_updateByBilanciaRow() {
|
|
return ((stp_updateByBilanciaRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new stp_updateByBilanciaRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(stp_updateByBilanciaRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.stp_updateByBilanciaRowChanged != null)) {
|
|
this.stp_updateByBilanciaRowChanged(this, new stp_updateByBilanciaRowChangeEvent(((stp_updateByBilanciaRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.stp_updateByBilanciaRowChanging != null)) {
|
|
this.stp_updateByBilanciaRowChanging(this, new stp_updateByBilanciaRowChangeEvent(((stp_updateByBilanciaRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.stp_updateByBilanciaRowDeleted != null)) {
|
|
this.stp_updateByBilanciaRowDeleted(this, new stp_updateByBilanciaRowChangeEvent(((stp_updateByBilanciaRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.stp_updateByBilanciaRowDeleting != null)) {
|
|
this.stp_updateByBilanciaRowDeleting(this, new stp_updateByBilanciaRowChangeEvent(((stp_updateByBilanciaRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Removestp_updateByBilanciaRow(stp_updateByBilanciaRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "stp_updateByBilanciaDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 stp_prtCartByUDCDataTable : global::System.Data.TypedTableBase<stp_prtCartByUDCRow> {
|
|
|
|
private global::System.Data.DataColumn columnUDC;
|
|
|
|
private global::System.Data.DataColumn columnCodCS;
|
|
|
|
private global::System.Data.DataColumn columncodcliente;
|
|
|
|
private global::System.Data.DataColumn columnragsociale;
|
|
|
|
private global::System.Data.DataColumn columnparticolare;
|
|
|
|
private global::System.Data.DataColumn columndescparticolare;
|
|
|
|
private global::System.Data.DataColumn columndisegnogrezzo;
|
|
|
|
private global::System.Data.DataColumn columnesponente;
|
|
|
|
private global::System.Data.DataColumn columncodimpianto;
|
|
|
|
private global::System.Data.DataColumn columndescimpianto;
|
|
|
|
private global::System.Data.DataColumn columncodstampo;
|
|
|
|
private global::System.Data.DataColumn columnfigura;
|
|
|
|
private global::System.Data.DataColumn columndatafus;
|
|
|
|
private global::System.Data.DataColumn columnturnofus;
|
|
|
|
private global::System.Data.DataColumn columncodimballo;
|
|
|
|
private global::System.Data.DataColumn columncodsoggetto;
|
|
|
|
private global::System.Data.DataColumn columnnumcont;
|
|
|
|
private global::System.Data.DataColumn columntara;
|
|
|
|
private global::System.Data.DataColumn columnqta;
|
|
|
|
private global::System.Data.DataColumn columncodstato;
|
|
|
|
private global::System.Data.DataColumn columnidxposizione;
|
|
|
|
private global::System.Data.DataColumn columnpesotot;
|
|
|
|
private global::System.Data.DataColumn columnpesocad;
|
|
|
|
private global::System.Data.DataColumn columnCreateDate;
|
|
|
|
private global::System.Data.DataColumn columnModDate;
|
|
|
|
private global::System.Data.DataColumn columncognome;
|
|
|
|
private global::System.Data.DataColumn columnnome;
|
|
|
|
private global::System.Data.DataColumn columndescstato;
|
|
|
|
private global::System.Data.DataColumn columndescimballo;
|
|
|
|
private global::System.Data.DataColumn columnCodFamiglia;
|
|
|
|
private global::System.Data.DataColumn columnDescFamiglia;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartByUDCDataTable() {
|
|
this.TableName = "stp_prtCartByUDC";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_prtCartByUDCDataTable(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 stp_prtCartByUDCDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn UDCColumn {
|
|
get {
|
|
return this.columnUDC;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn 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 ragsocialeColumn {
|
|
get {
|
|
return this.columnragsociale;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn particolareColumn {
|
|
get {
|
|
return this.columnparticolare;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn descparticolareColumn {
|
|
get {
|
|
return this.columndescparticolare;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn disegnogrezzoColumn {
|
|
get {
|
|
return this.columndisegnogrezzo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn esponenteColumn {
|
|
get {
|
|
return this.columnesponente;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn codimpiantoColumn {
|
|
get {
|
|
return this.columncodimpianto;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn descimpiantoColumn {
|
|
get {
|
|
return this.columndescimpianto;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn codstampoColumn {
|
|
get {
|
|
return this.columncodstampo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn figuraColumn {
|
|
get {
|
|
return this.columnfigura;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn datafusColumn {
|
|
get {
|
|
return this.columndatafus;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn turnofusColumn {
|
|
get {
|
|
return this.columnturnofus;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn codimballoColumn {
|
|
get {
|
|
return this.columncodimballo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn codsoggettoColumn {
|
|
get {
|
|
return this.columncodsoggetto;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn numcontColumn {
|
|
get {
|
|
return this.columnnumcont;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn taraColumn {
|
|
get {
|
|
return this.columntara;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn qtaColumn {
|
|
get {
|
|
return this.columnqta;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn codstatoColumn {
|
|
get {
|
|
return this.columncodstato;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn idxposizioneColumn {
|
|
get {
|
|
return this.columnidxposizione;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn pesototColumn {
|
|
get {
|
|
return this.columnpesotot;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn pesocadColumn {
|
|
get {
|
|
return this.columnpesocad;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CreateDateColumn {
|
|
get {
|
|
return this.columnCreateDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ModDateColumn {
|
|
get {
|
|
return this.columnModDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn cognomeColumn {
|
|
get {
|
|
return this.columncognome;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn nomeColumn {
|
|
get {
|
|
return this.columnnome;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn descstatoColumn {
|
|
get {
|
|
return this.columndescstato;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn descimballoColumn {
|
|
get {
|
|
return this.columndescimballo;
|
|
}
|
|
}
|
|
|
|
[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 stp_prtCartByUDCRow this[int index] {
|
|
get {
|
|
return ((stp_prtCartByUDCRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event stp_prtCartByUDCRowChangeEventHandler stp_prtCartByUDCRowChanging;
|
|
|
|
public event stp_prtCartByUDCRowChangeEventHandler stp_prtCartByUDCRowChanged;
|
|
|
|
public event stp_prtCartByUDCRowChangeEventHandler stp_prtCartByUDCRowDeleting;
|
|
|
|
public event stp_prtCartByUDCRowChangeEventHandler stp_prtCartByUDCRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Addstp_prtCartByUDCRow(stp_prtCartByUDCRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartByUDCRow Addstp_prtCartByUDCRow(
|
|
string UDC,
|
|
string CodCS,
|
|
string codcliente,
|
|
string ragsociale,
|
|
string particolare,
|
|
string descparticolare,
|
|
string disegnogrezzo,
|
|
string esponente,
|
|
string codimpianto,
|
|
string descimpianto,
|
|
string codstampo,
|
|
string figura,
|
|
System.DateTime datafus,
|
|
int turnofus,
|
|
string codimballo,
|
|
string codsoggetto,
|
|
int numcont,
|
|
double tara,
|
|
decimal qta,
|
|
string codstato,
|
|
int idxposizione,
|
|
double pesotot,
|
|
double pesocad,
|
|
System.DateTime CreateDate,
|
|
System.DateTime ModDate,
|
|
string cognome,
|
|
string nome,
|
|
string descstato,
|
|
string descimballo,
|
|
string CodFamiglia,
|
|
string DescFamiglia) {
|
|
stp_prtCartByUDCRow rowstp_prtCartByUDCRow = ((stp_prtCartByUDCRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
UDC,
|
|
CodCS,
|
|
codcliente,
|
|
ragsociale,
|
|
particolare,
|
|
descparticolare,
|
|
disegnogrezzo,
|
|
esponente,
|
|
codimpianto,
|
|
descimpianto,
|
|
codstampo,
|
|
figura,
|
|
datafus,
|
|
turnofus,
|
|
codimballo,
|
|
codsoggetto,
|
|
numcont,
|
|
tara,
|
|
qta,
|
|
codstato,
|
|
idxposizione,
|
|
pesotot,
|
|
pesocad,
|
|
CreateDate,
|
|
ModDate,
|
|
cognome,
|
|
nome,
|
|
descstato,
|
|
descimballo,
|
|
CodFamiglia,
|
|
DescFamiglia};
|
|
rowstp_prtCartByUDCRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowstp_prtCartByUDCRow);
|
|
return rowstp_prtCartByUDCRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartByUDCRow FindByUDC(string UDC) {
|
|
return ((stp_prtCartByUDCRow)(this.Rows.Find(new object[] {
|
|
UDC})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
stp_prtCartByUDCDataTable cln = ((stp_prtCartByUDCDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new stp_prtCartByUDCDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnUDC = base.Columns["UDC"];
|
|
this.columnCodCS = base.Columns["CodCS"];
|
|
this.columncodcliente = base.Columns["codcliente"];
|
|
this.columnragsociale = base.Columns["ragsociale"];
|
|
this.columnparticolare = base.Columns["particolare"];
|
|
this.columndescparticolare = base.Columns["descparticolare"];
|
|
this.columndisegnogrezzo = base.Columns["disegnogrezzo"];
|
|
this.columnesponente = base.Columns["esponente"];
|
|
this.columncodimpianto = base.Columns["codimpianto"];
|
|
this.columndescimpianto = base.Columns["descimpianto"];
|
|
this.columncodstampo = base.Columns["codstampo"];
|
|
this.columnfigura = base.Columns["figura"];
|
|
this.columndatafus = base.Columns["datafus"];
|
|
this.columnturnofus = base.Columns["turnofus"];
|
|
this.columncodimballo = base.Columns["codimballo"];
|
|
this.columncodsoggetto = base.Columns["codsoggetto"];
|
|
this.columnnumcont = base.Columns["numcont"];
|
|
this.columntara = base.Columns["tara"];
|
|
this.columnqta = base.Columns["qta"];
|
|
this.columncodstato = base.Columns["codstato"];
|
|
this.columnidxposizione = base.Columns["idxposizione"];
|
|
this.columnpesotot = base.Columns["pesotot"];
|
|
this.columnpesocad = base.Columns["pesocad"];
|
|
this.columnCreateDate = base.Columns["CreateDate"];
|
|
this.columnModDate = base.Columns["ModDate"];
|
|
this.columncognome = base.Columns["cognome"];
|
|
this.columnnome = base.Columns["nome"];
|
|
this.columndescstato = base.Columns["descstato"];
|
|
this.columndescimballo = base.Columns["descimballo"];
|
|
this.columnCodFamiglia = base.Columns["CodFamiglia"];
|
|
this.columnDescFamiglia = base.Columns["DescFamiglia"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnUDC);
|
|
this.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.columnragsociale = new global::System.Data.DataColumn("ragsociale", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnragsociale);
|
|
this.columnparticolare = new global::System.Data.DataColumn("particolare", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnparticolare);
|
|
this.columndescparticolare = new global::System.Data.DataColumn("descparticolare", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndescparticolare);
|
|
this.columndisegnogrezzo = new global::System.Data.DataColumn("disegnogrezzo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndisegnogrezzo);
|
|
this.columnesponente = new global::System.Data.DataColumn("esponente", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnesponente);
|
|
this.columncodimpianto = new global::System.Data.DataColumn("codimpianto", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columncodimpianto);
|
|
this.columndescimpianto = new global::System.Data.DataColumn("descimpianto", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndescimpianto);
|
|
this.columncodstampo = new global::System.Data.DataColumn("codstampo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columncodstampo);
|
|
this.columnfigura = new global::System.Data.DataColumn("figura", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnfigura);
|
|
this.columndatafus = new global::System.Data.DataColumn("datafus", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndatafus);
|
|
this.columnturnofus = new global::System.Data.DataColumn("turnofus", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnturnofus);
|
|
this.columncodimballo = new global::System.Data.DataColumn("codimballo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columncodimballo);
|
|
this.columncodsoggetto = new global::System.Data.DataColumn("codsoggetto", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columncodsoggetto);
|
|
this.columnnumcont = new global::System.Data.DataColumn("numcont", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnnumcont);
|
|
this.columntara = new global::System.Data.DataColumn("tara", typeof(double), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columntara);
|
|
this.columnqta = new global::System.Data.DataColumn("qta", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnqta);
|
|
this.columncodstato = new global::System.Data.DataColumn("codstato", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columncodstato);
|
|
this.columnidxposizione = new global::System.Data.DataColumn("idxposizione", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnidxposizione);
|
|
this.columnpesotot = new global::System.Data.DataColumn("pesotot", typeof(double), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpesotot);
|
|
this.columnpesocad = new global::System.Data.DataColumn("pesocad", typeof(double), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpesocad);
|
|
this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCreateDate);
|
|
this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnModDate);
|
|
this.columncognome = new global::System.Data.DataColumn("cognome", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columncognome);
|
|
this.columnnome = new global::System.Data.DataColumn("nome", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnnome);
|
|
this.columndescstato = new global::System.Data.DataColumn("descstato", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndescstato);
|
|
this.columndescimballo = new global::System.Data.DataColumn("descimballo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndescimballo);
|
|
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.columnUDC}, true));
|
|
this.columnUDC.AllowDBNull = false;
|
|
this.columnUDC.Unique = true;
|
|
this.columnUDC.MaxLength = 50;
|
|
this.columnCodCS.MaxLength = 2;
|
|
this.columncodcliente.ReadOnly = true;
|
|
this.columncodcliente.MaxLength = 6;
|
|
this.columnragsociale.ReadOnly = true;
|
|
this.columnragsociale.MaxLength = 35;
|
|
this.columnparticolare.ReadOnly = true;
|
|
this.columnparticolare.MaxLength = 15;
|
|
this.columndescparticolare.ReadOnly = true;
|
|
this.columndescparticolare.MaxLength = 30;
|
|
this.columndisegnogrezzo.ReadOnly = true;
|
|
this.columndisegnogrezzo.MaxLength = 30;
|
|
this.columnesponente.ReadOnly = true;
|
|
this.columnesponente.MaxLength = 6;
|
|
this.columncodimpianto.ReadOnly = true;
|
|
this.columncodimpianto.MaxLength = 50;
|
|
this.columndescimpianto.ReadOnly = true;
|
|
this.columndescimpianto.MaxLength = 50;
|
|
this.columncodstampo.ReadOnly = true;
|
|
this.columncodstampo.MaxLength = 8;
|
|
this.columnfigura.ReadOnly = true;
|
|
this.columnfigura.MaxLength = 4;
|
|
this.columndatafus.ReadOnly = true;
|
|
this.columnturnofus.ReadOnly = true;
|
|
this.columncodimballo.ReadOnly = true;
|
|
this.columncodimballo.MaxLength = 15;
|
|
this.columncodsoggetto.ReadOnly = true;
|
|
this.columncodsoggetto.MaxLength = 17;
|
|
this.columnnumcont.ReadOnly = true;
|
|
this.columntara.ReadOnly = true;
|
|
this.columnqta.ReadOnly = true;
|
|
this.columncodstato.ReadOnly = true;
|
|
this.columncodstato.MaxLength = 50;
|
|
this.columnidxposizione.ReadOnly = true;
|
|
this.columnpesotot.ReadOnly = true;
|
|
this.columnpesocad.ReadOnly = true;
|
|
this.columncognome.ReadOnly = true;
|
|
this.columncognome.MaxLength = 40;
|
|
this.columnnome.ReadOnly = true;
|
|
this.columnnome.MaxLength = 40;
|
|
this.columndescstato.ReadOnly = true;
|
|
this.columndescstato.MaxLength = 50;
|
|
this.columndescimballo.ReadOnly = true;
|
|
this.columndescimballo.MaxLength = 30;
|
|
this.columnCodFamiglia.MaxLength = 4;
|
|
this.columnDescFamiglia.MaxLength = 100;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartByUDCRow Newstp_prtCartByUDCRow() {
|
|
return ((stp_prtCartByUDCRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new stp_prtCartByUDCRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(stp_prtCartByUDCRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.stp_prtCartByUDCRowChanged != null)) {
|
|
this.stp_prtCartByUDCRowChanged(this, new stp_prtCartByUDCRowChangeEvent(((stp_prtCartByUDCRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.stp_prtCartByUDCRowChanging != null)) {
|
|
this.stp_prtCartByUDCRowChanging(this, new stp_prtCartByUDCRowChangeEvent(((stp_prtCartByUDCRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.stp_prtCartByUDCRowDeleted != null)) {
|
|
this.stp_prtCartByUDCRowDeleted(this, new stp_prtCartByUDCRowChangeEvent(((stp_prtCartByUDCRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.stp_prtCartByUDCRowDeleting != null)) {
|
|
this.stp_prtCartByUDCRowDeleting(this, new stp_prtCartByUDCRowChangeEvent(((stp_prtCartByUDCRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Removestp_prtCartByUDCRow(stp_prtCartByUDCRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "stp_prtCartByUDCDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[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 stp_prtCartMatPrimaByUDCDataTable : global::System.Data.TypedTableBase<stp_prtCartMatPrimaByUDCRow> {
|
|
|
|
private global::System.Data.DataColumn columnnRapQual;
|
|
|
|
private global::System.Data.DataColumn columnDataRapQual;
|
|
|
|
private global::System.Data.DataColumn columnProgUDC;
|
|
|
|
private global::System.Data.DataColumn columnCodFor;
|
|
|
|
private global::System.Data.DataColumn columnDestTerz;
|
|
|
|
private global::System.Data.DataColumn columnCodLega;
|
|
|
|
private global::System.Data.DataColumn columnDataPrelFus;
|
|
|
|
private global::System.Data.DataColumn columnTurnoPrelFus;
|
|
|
|
private global::System.Data.DataColumn columnQta;
|
|
|
|
private global::System.Data.DataColumn columnDestLega;
|
|
|
|
private global::System.Data.DataColumn columnLegaScaric;
|
|
|
|
private global::System.Data.DataColumn columnBenesQual;
|
|
|
|
private global::System.Data.DataColumn columnUDC;
|
|
|
|
private global::System.Data.DataColumn columnDescFornitore;
|
|
|
|
private global::System.Data.DataColumn columnDescFornitore2;
|
|
|
|
private global::System.Data.DataColumn columnCodLega2;
|
|
|
|
private global::System.Data.DataColumn columnDescLega;
|
|
|
|
private global::System.Data.DataColumn columnDescLega2;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartMatPrimaByUDCDataTable() {
|
|
this.TableName = "stp_prtCartMatPrimaByUDC";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_prtCartMatPrimaByUDCDataTable(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 stp_prtCartMatPrimaByUDCDataTable(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 nRapQualColumn {
|
|
get {
|
|
return this.columnnRapQual;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DataRapQualColumn {
|
|
get {
|
|
return this.columnDataRapQual;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn ProgUDCColumn {
|
|
get {
|
|
return this.columnProgUDC;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodForColumn {
|
|
get {
|
|
return this.columnCodFor;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DestTerzColumn {
|
|
get {
|
|
return this.columnDestTerz;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodLegaColumn {
|
|
get {
|
|
return this.columnCodLega;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DataPrelFusColumn {
|
|
get {
|
|
return this.columnDataPrelFus;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn TurnoPrelFusColumn {
|
|
get {
|
|
return this.columnTurnoPrelFus;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn QtaColumn {
|
|
get {
|
|
return this.columnQta;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DestLegaColumn {
|
|
get {
|
|
return this.columnDestLega;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn LegaScaricColumn {
|
|
get {
|
|
return this.columnLegaScaric;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn BenesQualColumn {
|
|
get {
|
|
return this.columnBenesQual;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn UDCColumn {
|
|
get {
|
|
return this.columnUDC;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescFornitoreColumn {
|
|
get {
|
|
return this.columnDescFornitore;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescFornitore2Column {
|
|
get {
|
|
return this.columnDescFornitore2;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn CodLega2Column {
|
|
get {
|
|
return this.columnCodLega2;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescLegaColumn {
|
|
get {
|
|
return this.columnDescLega;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataColumn DescLega2Column {
|
|
get {
|
|
return this.columnDescLega2;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartMatPrimaByUDCRow this[int index] {
|
|
get {
|
|
return ((stp_prtCartMatPrimaByUDCRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
public event stp_prtCartMatPrimaByUDCRowChangeEventHandler stp_prtCartMatPrimaByUDCRowChanging;
|
|
|
|
public event stp_prtCartMatPrimaByUDCRowChangeEventHandler stp_prtCartMatPrimaByUDCRowChanged;
|
|
|
|
public event stp_prtCartMatPrimaByUDCRowChangeEventHandler stp_prtCartMatPrimaByUDCRowDeleting;
|
|
|
|
public event stp_prtCartMatPrimaByUDCRowChangeEventHandler stp_prtCartMatPrimaByUDCRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Addstp_prtCartMatPrimaByUDCRow(stp_prtCartMatPrimaByUDCRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartMatPrimaByUDCRow Addstp_prtCartMatPrimaByUDCRow(
|
|
decimal nRapQual,
|
|
decimal DataRapQual,
|
|
string ProgUDC,
|
|
string CodFor,
|
|
string DestTerz,
|
|
string CodLega,
|
|
decimal DataPrelFus,
|
|
string TurnoPrelFus,
|
|
decimal Qta,
|
|
string DestLega,
|
|
string LegaScaric,
|
|
string BenesQual,
|
|
string UDC,
|
|
string DescFornitore,
|
|
string DescFornitore2,
|
|
string CodLega2,
|
|
string DescLega,
|
|
string DescLega2) {
|
|
stp_prtCartMatPrimaByUDCRow rowstp_prtCartMatPrimaByUDCRow = ((stp_prtCartMatPrimaByUDCRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
nRapQual,
|
|
DataRapQual,
|
|
ProgUDC,
|
|
CodFor,
|
|
DestTerz,
|
|
CodLega,
|
|
DataPrelFus,
|
|
TurnoPrelFus,
|
|
Qta,
|
|
DestLega,
|
|
LegaScaric,
|
|
BenesQual,
|
|
UDC,
|
|
DescFornitore,
|
|
DescFornitore2,
|
|
CodLega2,
|
|
DescLega,
|
|
DescLega2};
|
|
rowstp_prtCartMatPrimaByUDCRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowstp_prtCartMatPrimaByUDCRow);
|
|
return rowstp_prtCartMatPrimaByUDCRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartMatPrimaByUDCRow FindByProgUDC(string ProgUDC) {
|
|
return ((stp_prtCartMatPrimaByUDCRow)(this.Rows.Find(new object[] {
|
|
ProgUDC})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public override global::System.Data.DataTable Clone() {
|
|
stp_prtCartMatPrimaByUDCDataTable cln = ((stp_prtCartMatPrimaByUDCDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new stp_prtCartMatPrimaByUDCDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal void InitVars() {
|
|
this.columnnRapQual = base.Columns["nRapQual"];
|
|
this.columnDataRapQual = base.Columns["DataRapQual"];
|
|
this.columnProgUDC = base.Columns["ProgUDC"];
|
|
this.columnCodFor = base.Columns["CodFor"];
|
|
this.columnDestTerz = base.Columns["DestTerz"];
|
|
this.columnCodLega = base.Columns["CodLega"];
|
|
this.columnDataPrelFus = base.Columns["DataPrelFus"];
|
|
this.columnTurnoPrelFus = base.Columns["TurnoPrelFus"];
|
|
this.columnQta = base.Columns["Qta"];
|
|
this.columnDestLega = base.Columns["DestLega"];
|
|
this.columnLegaScaric = base.Columns["LegaScaric"];
|
|
this.columnBenesQual = base.Columns["BenesQual"];
|
|
this.columnUDC = base.Columns["UDC"];
|
|
this.columnDescFornitore = base.Columns["DescFornitore"];
|
|
this.columnDescFornitore2 = base.Columns["DescFornitore2"];
|
|
this.columnCodLega2 = base.Columns["CodLega2"];
|
|
this.columnDescLega = base.Columns["DescLega"];
|
|
this.columnDescLega2 = base.Columns["DescLega2"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitClass() {
|
|
this.columnnRapQual = new global::System.Data.DataColumn("nRapQual", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnnRapQual);
|
|
this.columnDataRapQual = new global::System.Data.DataColumn("DataRapQual", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDataRapQual);
|
|
this.columnProgUDC = new global::System.Data.DataColumn("ProgUDC", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnProgUDC);
|
|
this.columnCodFor = new global::System.Data.DataColumn("CodFor", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodFor);
|
|
this.columnDestTerz = new global::System.Data.DataColumn("DestTerz", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDestTerz);
|
|
this.columnCodLega = new global::System.Data.DataColumn("CodLega", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodLega);
|
|
this.columnDataPrelFus = new global::System.Data.DataColumn("DataPrelFus", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDataPrelFus);
|
|
this.columnTurnoPrelFus = new global::System.Data.DataColumn("TurnoPrelFus", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnTurnoPrelFus);
|
|
this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnQta);
|
|
this.columnDestLega = new global::System.Data.DataColumn("DestLega", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDestLega);
|
|
this.columnLegaScaric = new global::System.Data.DataColumn("LegaScaric", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnLegaScaric);
|
|
this.columnBenesQual = new global::System.Data.DataColumn("BenesQual", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnBenesQual);
|
|
this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnUDC);
|
|
this.columnDescFornitore = new global::System.Data.DataColumn("DescFornitore", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescFornitore);
|
|
this.columnDescFornitore2 = new global::System.Data.DataColumn("DescFornitore2", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescFornitore2);
|
|
this.columnCodLega2 = new global::System.Data.DataColumn("CodLega2", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCodLega2);
|
|
this.columnDescLega = new global::System.Data.DataColumn("DescLega", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescLega);
|
|
this.columnDescLega2 = new global::System.Data.DataColumn("DescLega2", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDescLega2);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnProgUDC}, true));
|
|
this.columnnRapQual.AllowDBNull = false;
|
|
this.columnDataRapQual.AllowDBNull = false;
|
|
this.columnProgUDC.AllowDBNull = false;
|
|
this.columnProgUDC.Unique = true;
|
|
this.columnProgUDC.MaxLength = 10;
|
|
this.columnCodFor.AllowDBNull = false;
|
|
this.columnCodFor.MaxLength = 6;
|
|
this.columnDestTerz.AllowDBNull = false;
|
|
this.columnDestTerz.MaxLength = 6;
|
|
this.columnCodLega.AllowDBNull = false;
|
|
this.columnCodLega.MaxLength = 15;
|
|
this.columnDataPrelFus.AllowDBNull = false;
|
|
this.columnTurnoPrelFus.AllowDBNull = false;
|
|
this.columnTurnoPrelFus.MaxLength = 5;
|
|
this.columnQta.AllowDBNull = false;
|
|
this.columnDestLega.AllowDBNull = false;
|
|
this.columnDestLega.MaxLength = 3;
|
|
this.columnLegaScaric.AllowDBNull = false;
|
|
this.columnLegaScaric.MaxLength = 1;
|
|
this.columnBenesQual.AllowDBNull = false;
|
|
this.columnBenesQual.MaxLength = 1;
|
|
this.columnUDC.MaxLength = 50;
|
|
this.columnDescFornitore.MaxLength = 35;
|
|
this.columnDescFornitore2.MaxLength = 35;
|
|
this.columnCodLega2.MaxLength = 12;
|
|
this.columnDescLega.MaxLength = 25;
|
|
this.columnDescLega2.MaxLength = 25;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartMatPrimaByUDCRow Newstp_prtCartMatPrimaByUDCRow() {
|
|
return ((stp_prtCartMatPrimaByUDCRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new stp_prtCartMatPrimaByUDCRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(stp_prtCartMatPrimaByUDCRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.stp_prtCartMatPrimaByUDCRowChanged != null)) {
|
|
this.stp_prtCartMatPrimaByUDCRowChanged(this, new stp_prtCartMatPrimaByUDCRowChangeEvent(((stp_prtCartMatPrimaByUDCRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.stp_prtCartMatPrimaByUDCRowChanging != null)) {
|
|
this.stp_prtCartMatPrimaByUDCRowChanging(this, new stp_prtCartMatPrimaByUDCRowChangeEvent(((stp_prtCartMatPrimaByUDCRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.stp_prtCartMatPrimaByUDCRowDeleted != null)) {
|
|
this.stp_prtCartMatPrimaByUDCRowDeleted(this, new stp_prtCartMatPrimaByUDCRowChangeEvent(((stp_prtCartMatPrimaByUDCRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.stp_prtCartMatPrimaByUDCRowDeleting != null)) {
|
|
this.stp_prtCartMatPrimaByUDCRowDeleting(this, new stp_prtCartMatPrimaByUDCRowChangeEvent(((stp_prtCartMatPrimaByUDCRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Removestp_prtCartMatPrimaByUDCRow(stp_prtCartMatPrimaByUDCRow 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();
|
|
GMWDataSet ds = new GMWDataSet();
|
|
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 = "stp_prtCartMatPrimaByUDCDataTable";
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class AnagArticoliRow : global::System.Data.DataRow {
|
|
|
|
private AnagArticoliDataTable tableAnagArticoli;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagArticoliRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableAnagArticoli = ((AnagArticoliDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodArticolo {
|
|
get {
|
|
return ((string)(this[this.tableAnagArticoli.CodArticoloColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagArticoli.CodArticoloColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescrArticolo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagArticoli.DescrArticoloColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescrArticolo\' in table \'AnagArticoli\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagArticoli.DescrArticoloColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string Figura {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagArticoli.FiguraColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'Figura\' in table \'AnagArticoli\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagArticoli.FiguraColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescrArticoloNull() {
|
|
return this.IsNull(this.tableAnagArticoli.DescrArticoloColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescrArticoloNull() {
|
|
this[this.tableAnagArticoli.DescrArticoloColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsFiguraNull() {
|
|
return this.IsNull(this.tableAnagArticoli.FiguraColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetFiguraNull() {
|
|
this[this.tableAnagArticoli.FiguraColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public Impianti2ArticoliRow[] GetImpianti2ArticoliRows() {
|
|
if ((this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli"] == null)) {
|
|
return new Impianti2ArticoliRow[0];
|
|
}
|
|
else {
|
|
return ((Impianti2ArticoliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli"])));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class AnagBilanceRow : global::System.Data.DataRow {
|
|
|
|
private AnagBilanceDataTable tableAnagBilance;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagBilanceRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableAnagBilance = ((AnagBilanceDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodBilancia {
|
|
get {
|
|
return ((string)(this[this.tableAnagBilance.CodBilanciaColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagBilance.CodBilanciaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescrImpianto {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagBilance.DescrImpiantoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescrImpianto\' in table \'AnagBilance\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagBilance.DescrImpiantoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagBilance.CodCompanyColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodCompany\' in table \'AnagBilance\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagBilance.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodSito {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagBilance.CodSitoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodSito\' in table \'AnagBilance\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagBilance.CodSitoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiRow AnagSitiRowParent {
|
|
get {
|
|
return ((AnagSitiRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagBilance_AnagSiti"])));
|
|
}
|
|
set {
|
|
this.SetParentRow(value, this.Table.ParentRelations["FK_AnagBilance_AnagSiti"]);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescrImpiantoNull() {
|
|
return this.IsNull(this.tableAnagBilance.DescrImpiantoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescrImpiantoNull() {
|
|
this[this.tableAnagBilance.DescrImpiantoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodCompanyNull() {
|
|
return this.IsNull(this.tableAnagBilance.CodCompanyColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodCompanyNull() {
|
|
this[this.tableAnagBilance.CodCompanyColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodSitoNull() {
|
|
return this.IsNull(this.tableAnagBilance.CodSitoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodSitoNull() {
|
|
this[this.tableAnagBilance.CodSitoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class AnagCompanyRow : global::System.Data.DataRow {
|
|
|
|
private AnagCompanyDataTable tableAnagCompany;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagCompanyRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableAnagCompany = ((AnagCompanyDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
return ((string)(this[this.tableAnagCompany.CodCompanyColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagCompany.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescrCompany {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagCompany.DescrCompanyColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescrCompany\' in table \'AnagCompany\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagCompany.DescrCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescrCompanyNull() {
|
|
return this.IsNull(this.tableAnagCompany.DescrCompanyColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescrCompanyNull() {
|
|
this[this.tableAnagCompany.DescrCompanyColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagOdpRow[] GetAnagOdpRows() {
|
|
if ((this.Table.ChildRelations["FK_AnagOdp_AnagCompany"] == null)) {
|
|
return new AnagOdpRow[0];
|
|
}
|
|
else {
|
|
return ((AnagOdpRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagOdp_AnagCompany"])));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiRow[] GetAnagSitiRows() {
|
|
if ((this.Table.ChildRelations["FK_AnagSiti_AnagCompany"] == null)) {
|
|
return new AnagSitiRow[0];
|
|
}
|
|
else {
|
|
return ((AnagSitiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagSiti_AnagCompany"])));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class AnagImpiantiRow : global::System.Data.DataRow {
|
|
|
|
private AnagImpiantiDataTable tableAnagImpianti;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagImpiantiRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableAnagImpianti = ((AnagImpiantiDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodImpianto {
|
|
get {
|
|
return ((string)(this[this.tableAnagImpianti.CodImpiantoColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagImpianti.CodImpiantoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescrImpianto {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagImpianti.DescrImpiantoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescrImpianto\' in table \'AnagImpianti\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagImpianti.DescrImpiantoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagImpianti.CodCompanyColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodCompany\' in table \'AnagImpianti\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagImpianti.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodSito {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagImpianti.CodSitoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodSito\' in table \'AnagImpianti\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagImpianti.CodSitoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiRow AnagSitiRowParent {
|
|
get {
|
|
return ((AnagSitiRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagImpianti_AnagSiti"])));
|
|
}
|
|
set {
|
|
this.SetParentRow(value, this.Table.ParentRelations["FK_AnagImpianti_AnagSiti"]);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescrImpiantoNull() {
|
|
return this.IsNull(this.tableAnagImpianti.DescrImpiantoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescrImpiantoNull() {
|
|
this[this.tableAnagImpianti.DescrImpiantoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodCompanyNull() {
|
|
return this.IsNull(this.tableAnagImpianti.CodCompanyColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodCompanyNull() {
|
|
this[this.tableAnagImpianti.CodCompanyColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodSitoNull() {
|
|
return this.IsNull(this.tableAnagImpianti.CodSitoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodSitoNull() {
|
|
this[this.tableAnagImpianti.CodSitoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public Impianti2ArticoliRow[] GetImpianti2ArticoliRows() {
|
|
if ((this.Table.ChildRelations["FK_Impianti2Articoli_AnagImpianti"] == null)) {
|
|
return new Impianti2ArticoliRow[0];
|
|
}
|
|
else {
|
|
return ((Impianti2ArticoliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Impianti2Articoli_AnagImpianti"])));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class AnagOdpRow : global::System.Data.DataRow {
|
|
|
|
private AnagOdpDataTable tableAnagOdp;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagOdpRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableAnagOdp = ((AnagOdpDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
return ((string)(this[this.tableAnagOdp.CodCompanyColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagOdp.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string ODP {
|
|
get {
|
|
return ((string)(this[this.tableAnagOdp.ODPColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagOdp.ODPColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodArticolo {
|
|
get {
|
|
return ((string)(this[this.tableAnagOdp.CodArticoloColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagOdp.CodArticoloColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodDisegno {
|
|
get {
|
|
return ((string)(this[this.tableAnagOdp.CodDisegnoColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagOdp.CodDisegnoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string Esponente {
|
|
get {
|
|
return ((string)(this[this.tableAnagOdp.EsponenteColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagOdp.EsponenteColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string Magazzino {
|
|
get {
|
|
return ((string)(this[this.tableAnagOdp.MagazzinoColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagOdp.MagazzinoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string Ubicazione {
|
|
get {
|
|
return ((string)(this[this.tableAnagOdp.UbicazioneColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagOdp.UbicazioneColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime CreateDate {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableAnagOdp.CreateDateColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagOdp.CreateDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime ModDate {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableAnagOdp.ModDateColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagOdp.ModDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagCompanyRow AnagCompanyRow {
|
|
get {
|
|
return ((AnagCompanyRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagOdp_AnagCompany"])));
|
|
}
|
|
set {
|
|
this.SetParentRow(value, this.Table.ParentRelations["FK_AnagOdp_AnagCompany"]);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
|
|
if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagOdp"] == null)) {
|
|
return new TabStatoOdpUdcRow[0];
|
|
}
|
|
else {
|
|
return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagOdp"])));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class AnagSitiRow : global::System.Data.DataRow {
|
|
|
|
private AnagSitiDataTable tableAnagSiti;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagSitiRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableAnagSiti = ((AnagSitiDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
return ((string)(this[this.tableAnagSiti.CodCompanyColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagSiti.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodSito {
|
|
get {
|
|
return ((string)(this[this.tableAnagSiti.CodSitoColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagSiti.CodSitoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescrSito {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagSiti.DescrSitoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescrSito\' in table \'AnagSiti\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagSiti.DescrSitoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagCompanyRow AnagCompanyRow {
|
|
get {
|
|
return ((AnagCompanyRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagSiti_AnagCompany"])));
|
|
}
|
|
set {
|
|
this.SetParentRow(value, this.Table.ParentRelations["FK_AnagSiti_AnagCompany"]);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescrSitoNull() {
|
|
return this.IsNull(this.tableAnagSiti.DescrSitoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescrSitoNull() {
|
|
this[this.tableAnagSiti.DescrSitoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagBilanceRow[] GetAnagBilanceRows() {
|
|
if ((this.Table.ChildRelations["FK_AnagBilance_AnagSiti"] == null)) {
|
|
return new AnagBilanceRow[0];
|
|
}
|
|
else {
|
|
return ((AnagBilanceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagBilance_AnagSiti"])));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagImpiantiRow[] GetAnagImpiantiRows() {
|
|
if ((this.Table.ChildRelations["FK_AnagImpianti_AnagSiti"] == null)) {
|
|
return new AnagImpiantiRow[0];
|
|
}
|
|
else {
|
|
return ((AnagImpiantiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagImpianti_AnagSiti"])));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class AnagStatiRow : global::System.Data.DataRow {
|
|
|
|
private AnagStatiDataTable tableAnagStati;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal AnagStatiRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableAnagStati = ((AnagStatiDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int IdxStato {
|
|
get {
|
|
return ((int)(this[this.tableAnagStati.IdxStatoColumn]));
|
|
}
|
|
set {
|
|
this[this.tableAnagStati.IdxStatoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescrStato {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableAnagStati.DescrStatoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescrStato\' in table \'AnagStati\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableAnagStati.DescrStatoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescrStatoNull() {
|
|
return this.IsNull(this.tableAnagStati.DescrStatoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescrStatoNull() {
|
|
this[this.tableAnagStati.DescrStatoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
|
|
if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStati"] == null)) {
|
|
return new TabStatoOdpUdcRow[0];
|
|
}
|
|
else {
|
|
return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStati"])));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class ContatoriUdcRow : global::System.Data.DataRow {
|
|
|
|
private ContatoriUdcDataTable tableContatoriUdc;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal ContatoriUdcRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableContatoriUdc = ((ContatoriUdcDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
return ((string)(this[this.tableContatoriUdc.CodCompanyColumn]));
|
|
}
|
|
set {
|
|
this[this.tableContatoriUdc.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string Flusso {
|
|
get {
|
|
return ((string)(this[this.tableContatoriUdc.FlussoColumn]));
|
|
}
|
|
set {
|
|
this[this.tableContatoriUdc.FlussoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string Anno {
|
|
get {
|
|
return ((string)(this[this.tableContatoriUdc.AnnoColumn]));
|
|
}
|
|
set {
|
|
this[this.tableContatoriUdc.AnnoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int LastIdx {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tableContatoriUdc.LastIdxColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'LastIdx\' in table \'ContatoriUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableContatoriUdc.LastIdxColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsLastIdxNull() {
|
|
return this.IsNull(this.tableContatoriUdc.LastIdxColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetLastIdxNull() {
|
|
this[this.tableContatoriUdc.LastIdxColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class Impianti2ArticoliRow : global::System.Data.DataRow {
|
|
|
|
private Impianti2ArticoliDataTable tableImpianti2Articoli;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal Impianti2ArticoliRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableImpianti2Articoli = ((Impianti2ArticoliDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodImpianto {
|
|
get {
|
|
return ((string)(this[this.tableImpianti2Articoli.CodImpiantoColumn]));
|
|
}
|
|
set {
|
|
this[this.tableImpianti2Articoli.CodImpiantoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodArticolo {
|
|
get {
|
|
return ((string)(this[this.tableImpianti2Articoli.CodArticoloColumn]));
|
|
}
|
|
set {
|
|
this[this.tableImpianti2Articoli.CodArticoloColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime InizioProd {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableImpianti2Articoli.InizioProdColumn]));
|
|
}
|
|
set {
|
|
this[this.tableImpianti2Articoli.InizioProdColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime FineProd {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tableImpianti2Articoli.FineProdColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'FineProd\' in table \'Impianti2Articoli\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableImpianti2Articoli.FineProdColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagArticoliRow AnagArticoliRow {
|
|
get {
|
|
return ((AnagArticoliRow)(this.GetParentRow(this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli"])));
|
|
}
|
|
set {
|
|
this.SetParentRow(value, this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli"]);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagImpiantiRow AnagImpiantiRow {
|
|
get {
|
|
return ((AnagImpiantiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Impianti2Articoli_AnagImpianti"])));
|
|
}
|
|
set {
|
|
this.SetParentRow(value, this.Table.ParentRelations["FK_Impianti2Articoli_AnagImpianti"]);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsFineProdNull() {
|
|
return this.IsNull(this.tableImpianti2Articoli.FineProdColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetFineProdNull() {
|
|
this[this.tableImpianti2Articoli.FineProdColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class TabStatoOdpUdcRow : global::System.Data.DataRow {
|
|
|
|
private TabStatoOdpUdcDataTable tableTabStatoOdpUdc;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal TabStatoOdpUdcRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableTabStatoOdpUdc = ((TabStatoOdpUdcDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
return ((string)(this[this.tableTabStatoOdpUdc.CodCompanyColumn]));
|
|
}
|
|
set {
|
|
this[this.tableTabStatoOdpUdc.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string ODP {
|
|
get {
|
|
return ((string)(this[this.tableTabStatoOdpUdc.ODPColumn]));
|
|
}
|
|
set {
|
|
this[this.tableTabStatoOdpUdc.ODPColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string UDC {
|
|
get {
|
|
return ((string)(this[this.tableTabStatoOdpUdc.UDCColumn]));
|
|
}
|
|
set {
|
|
this[this.tableTabStatoOdpUdc.UDCColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public double Tara {
|
|
get {
|
|
try {
|
|
return ((double)(this[this.tableTabStatoOdpUdc.TaraColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'TabStatoOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableTabStatoOdpUdc.TaraColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int IdxStato {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tableTabStatoOdpUdc.IdxStatoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'TabStatoOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableTabStatoOdpUdc.IdxStatoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public decimal Qta {
|
|
get {
|
|
try {
|
|
return ((decimal)(this[this.tableTabStatoOdpUdc.QtaColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'TabStatoOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableTabStatoOdpUdc.QtaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodImballo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableTabStatoOdpUdc.CodImballoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'TabStatoOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableTabStatoOdpUdc.CodImballoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime CreateDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tableTabStatoOdpUdc.CreateDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'TabStatoOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableTabStatoOdpUdc.CreateDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime ModDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tableTabStatoOdpUdc.ModDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'TabStatoOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableTabStatoOdpUdc.ModDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagOdpRow AnagOdpRowParent {
|
|
get {
|
|
return ((AnagOdpRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagOdp"])));
|
|
}
|
|
set {
|
|
this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagOdp"]);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagStatiRow AnagStatiRow {
|
|
get {
|
|
return ((AnagStatiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStati"])));
|
|
}
|
|
set {
|
|
this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStati"]);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsTaraNull() {
|
|
return this.IsNull(this.tableTabStatoOdpUdc.TaraColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetTaraNull() {
|
|
this[this.tableTabStatoOdpUdc.TaraColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsIdxStatoNull() {
|
|
return this.IsNull(this.tableTabStatoOdpUdc.IdxStatoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetIdxStatoNull() {
|
|
this[this.tableTabStatoOdpUdc.IdxStatoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsQtaNull() {
|
|
return this.IsNull(this.tableTabStatoOdpUdc.QtaColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetQtaNull() {
|
|
this[this.tableTabStatoOdpUdc.QtaColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodImballoNull() {
|
|
return this.IsNull(this.tableTabStatoOdpUdc.CodImballoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodImballoNull() {
|
|
this[this.tableTabStatoOdpUdc.CodImballoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCreateDateNull() {
|
|
return this.IsNull(this.tableTabStatoOdpUdc.CreateDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCreateDateNull() {
|
|
this[this.tableTabStatoOdpUdc.CreateDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsModDateNull() {
|
|
return this.IsNull(this.tableTabStatoOdpUdc.ModDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetModDateNull() {
|
|
this[this.tableTabStatoOdpUdc.ModDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class stp_getStatoByUdcRow : global::System.Data.DataRow {
|
|
|
|
private stp_getStatoByUdcDataTable tablestp_getStatoByUdc;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_getStatoByUdcRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tablestp_getStatoByUdc = ((stp_getStatoByUdcDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
return ((string)(this[this.tablestp_getStatoByUdc.CodCompanyColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_getStatoByUdc.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string ODP {
|
|
get {
|
|
return ((string)(this[this.tablestp_getStatoByUdc.ODPColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_getStatoByUdc.ODPColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string UDC {
|
|
get {
|
|
return ((string)(this[this.tablestp_getStatoByUdc.UDCColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_getStatoByUdc.UDCColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public double Tara {
|
|
get {
|
|
try {
|
|
return ((double)(this[this.tablestp_getStatoByUdc.TaraColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'stp_getStatoByUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_getStatoByUdc.TaraColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int IdxStato {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tablestp_getStatoByUdc.IdxStatoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'stp_getStatoByUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_getStatoByUdc.IdxStatoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public decimal Qta {
|
|
get {
|
|
try {
|
|
return ((decimal)(this[this.tablestp_getStatoByUdc.QtaColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'stp_getStatoByUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_getStatoByUdc.QtaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodImballo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_getStatoByUdc.CodImballoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'stp_getStatoByUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_getStatoByUdc.CodImballoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime CreateDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tablestp_getStatoByUdc.CreateDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'stp_getStatoByUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_getStatoByUdc.CreateDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime ModDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tablestp_getStatoByUdc.ModDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'stp_getStatoByUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_getStatoByUdc.ModDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsTaraNull() {
|
|
return this.IsNull(this.tablestp_getStatoByUdc.TaraColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetTaraNull() {
|
|
this[this.tablestp_getStatoByUdc.TaraColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsIdxStatoNull() {
|
|
return this.IsNull(this.tablestp_getStatoByUdc.IdxStatoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetIdxStatoNull() {
|
|
this[this.tablestp_getStatoByUdc.IdxStatoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsQtaNull() {
|
|
return this.IsNull(this.tablestp_getStatoByUdc.QtaColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetQtaNull() {
|
|
this[this.tablestp_getStatoByUdc.QtaColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodImballoNull() {
|
|
return this.IsNull(this.tablestp_getStatoByUdc.CodImballoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodImballoNull() {
|
|
this[this.tablestp_getStatoByUdc.CodImballoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCreateDateNull() {
|
|
return this.IsNull(this.tablestp_getStatoByUdc.CreateDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCreateDateNull() {
|
|
this[this.tablestp_getStatoByUdc.CreateDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsModDateNull() {
|
|
return this.IsNull(this.tablestp_getStatoByUdc.ModDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetModDateNull() {
|
|
this[this.tablestp_getStatoByUdc.ModDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class stp_insNewOdpUdcRow : global::System.Data.DataRow {
|
|
|
|
private stp_insNewOdpUdcDataTable tablestp_insNewOdpUdc;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_insNewOdpUdcRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tablestp_insNewOdpUdc = ((stp_insNewOdpUdcDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
return ((string)(this[this.tablestp_insNewOdpUdc.CodCompanyColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_insNewOdpUdc.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string ODP {
|
|
get {
|
|
return ((string)(this[this.tablestp_insNewOdpUdc.ODPColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_insNewOdpUdc.ODPColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string UDC {
|
|
get {
|
|
return ((string)(this[this.tablestp_insNewOdpUdc.UDCColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_insNewOdpUdc.UDCColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public double Tara {
|
|
get {
|
|
try {
|
|
return ((double)(this[this.tablestp_insNewOdpUdc.TaraColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'stp_insNewOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_insNewOdpUdc.TaraColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int IdxStato {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tablestp_insNewOdpUdc.IdxStatoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'stp_insNewOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_insNewOdpUdc.IdxStatoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public decimal Qta {
|
|
get {
|
|
try {
|
|
return ((decimal)(this[this.tablestp_insNewOdpUdc.QtaColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'stp_insNewOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_insNewOdpUdc.QtaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodImballo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_insNewOdpUdc.CodImballoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'stp_insNewOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_insNewOdpUdc.CodImballoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime CreateDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tablestp_insNewOdpUdc.CreateDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'stp_insNewOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_insNewOdpUdc.CreateDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime ModDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tablestp_insNewOdpUdc.ModDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'stp_insNewOdpUdc\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_insNewOdpUdc.ModDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsTaraNull() {
|
|
return this.IsNull(this.tablestp_insNewOdpUdc.TaraColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetTaraNull() {
|
|
this[this.tablestp_insNewOdpUdc.TaraColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsIdxStatoNull() {
|
|
return this.IsNull(this.tablestp_insNewOdpUdc.IdxStatoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetIdxStatoNull() {
|
|
this[this.tablestp_insNewOdpUdc.IdxStatoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsQtaNull() {
|
|
return this.IsNull(this.tablestp_insNewOdpUdc.QtaColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetQtaNull() {
|
|
this[this.tablestp_insNewOdpUdc.QtaColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodImballoNull() {
|
|
return this.IsNull(this.tablestp_insNewOdpUdc.CodImballoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodImballoNull() {
|
|
this[this.tablestp_insNewOdpUdc.CodImballoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCreateDateNull() {
|
|
return this.IsNull(this.tablestp_insNewOdpUdc.CreateDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCreateDateNull() {
|
|
this[this.tablestp_insNewOdpUdc.CreateDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsModDateNull() {
|
|
return this.IsNull(this.tablestp_insNewOdpUdc.ModDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetModDateNull() {
|
|
this[this.tablestp_insNewOdpUdc.ModDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class stp_updateByBilanciaRow : global::System.Data.DataRow {
|
|
|
|
private stp_updateByBilanciaDataTable tablestp_updateByBilancia;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_updateByBilanciaRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tablestp_updateByBilancia = ((stp_updateByBilanciaDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCompany {
|
|
get {
|
|
return ((string)(this[this.tablestp_updateByBilancia.CodCompanyColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_updateByBilancia.CodCompanyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string ODP {
|
|
get {
|
|
return ((string)(this[this.tablestp_updateByBilancia.ODPColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_updateByBilancia.ODPColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string UDC {
|
|
get {
|
|
return ((string)(this[this.tablestp_updateByBilancia.UDCColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_updateByBilancia.UDCColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public double Tara {
|
|
get {
|
|
try {
|
|
return ((double)(this[this.tablestp_updateByBilancia.TaraColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'stp_updateByBilancia\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_updateByBilancia.TaraColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int IdxStato {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tablestp_updateByBilancia.IdxStatoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'stp_updateByBilancia\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_updateByBilancia.IdxStatoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public decimal Qta {
|
|
get {
|
|
try {
|
|
return ((decimal)(this[this.tablestp_updateByBilancia.QtaColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'stp_updateByBilancia\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_updateByBilancia.QtaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodImballo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_updateByBilancia.CodImballoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'stp_updateByBilancia\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_updateByBilancia.CodImballoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime CreateDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tablestp_updateByBilancia.CreateDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'stp_updateByBilancia\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_updateByBilancia.CreateDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime ModDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tablestp_updateByBilancia.ModDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'stp_updateByBilancia\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_updateByBilancia.ModDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsTaraNull() {
|
|
return this.IsNull(this.tablestp_updateByBilancia.TaraColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetTaraNull() {
|
|
this[this.tablestp_updateByBilancia.TaraColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsIdxStatoNull() {
|
|
return this.IsNull(this.tablestp_updateByBilancia.IdxStatoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetIdxStatoNull() {
|
|
this[this.tablestp_updateByBilancia.IdxStatoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsQtaNull() {
|
|
return this.IsNull(this.tablestp_updateByBilancia.QtaColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetQtaNull() {
|
|
this[this.tablestp_updateByBilancia.QtaColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodImballoNull() {
|
|
return this.IsNull(this.tablestp_updateByBilancia.CodImballoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodImballoNull() {
|
|
this[this.tablestp_updateByBilancia.CodImballoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCreateDateNull() {
|
|
return this.IsNull(this.tablestp_updateByBilancia.CreateDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCreateDateNull() {
|
|
this[this.tablestp_updateByBilancia.CreateDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsModDateNull() {
|
|
return this.IsNull(this.tablestp_updateByBilancia.ModDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetModDateNull() {
|
|
this[this.tablestp_updateByBilancia.ModDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class stp_prtCartByUDCRow : global::System.Data.DataRow {
|
|
|
|
private stp_prtCartByUDCDataTable tablestp_prtCartByUDC;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_prtCartByUDCRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tablestp_prtCartByUDC = ((stp_prtCartByUDCDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string UDC {
|
|
get {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.UDCColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.UDCColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodCS {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.CodCSColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodCS\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.CodCSColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string codcliente {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.codclienteColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'codcliente\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.codclienteColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string ragsociale {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.ragsocialeColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'ragsociale\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.ragsocialeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string particolare {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.particolareColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'particolare\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.particolareColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string descparticolare {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.descparticolareColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'descparticolare\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.descparticolareColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string disegnogrezzo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.disegnogrezzoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'disegnogrezzo\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.disegnogrezzoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string esponente {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.esponenteColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'esponente\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.esponenteColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string codimpianto {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.codimpiantoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'codimpianto\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.codimpiantoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string descimpianto {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.descimpiantoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'descimpianto\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.descimpiantoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string codstampo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.codstampoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'codstampo\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.codstampoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string figura {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.figuraColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'figura\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.figuraColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime datafus {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tablestp_prtCartByUDC.datafusColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'datafus\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.datafusColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int turnofus {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tablestp_prtCartByUDC.turnofusColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'turnofus\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.turnofusColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string codimballo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.codimballoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'codimballo\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.codimballoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string codsoggetto {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.codsoggettoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'codsoggetto\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.codsoggettoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int numcont {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tablestp_prtCartByUDC.numcontColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'numcont\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.numcontColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public double tara {
|
|
get {
|
|
try {
|
|
return ((double)(this[this.tablestp_prtCartByUDC.taraColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'tara\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.taraColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public decimal qta {
|
|
get {
|
|
try {
|
|
return ((decimal)(this[this.tablestp_prtCartByUDC.qtaColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'qta\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.qtaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string codstato {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.codstatoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'codstato\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.codstatoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int idxposizione {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tablestp_prtCartByUDC.idxposizioneColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'idxposizione\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.idxposizioneColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public double pesotot {
|
|
get {
|
|
try {
|
|
return ((double)(this[this.tablestp_prtCartByUDC.pesototColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'pesotot\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.pesototColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public double pesocad {
|
|
get {
|
|
try {
|
|
return ((double)(this[this.tablestp_prtCartByUDC.pesocadColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'pesocad\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.pesocadColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime CreateDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tablestp_prtCartByUDC.CreateDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.CreateDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public System.DateTime ModDate {
|
|
get {
|
|
try {
|
|
return ((global::System.DateTime)(this[this.tablestp_prtCartByUDC.ModDateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.ModDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string cognome {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.cognomeColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'cognome\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.cognomeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string nome {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.nomeColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'nome\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.nomeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string descstato {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.descstatoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'descstato\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.descstatoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string descimballo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.descimballoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'descimballo\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.descimballoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodFamiglia {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.CodFamigliaColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodFamiglia\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.CodFamigliaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescFamiglia {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartByUDC.DescFamigliaColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescFamiglia\' in table \'stp_prtCartByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartByUDC.DescFamigliaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodCSNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.CodCSColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodCSNull() {
|
|
this[this.tablestp_prtCartByUDC.CodCSColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IscodclienteNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.codclienteColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetcodclienteNull() {
|
|
this[this.tablestp_prtCartByUDC.codclienteColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsragsocialeNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.ragsocialeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetragsocialeNull() {
|
|
this[this.tablestp_prtCartByUDC.ragsocialeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsparticolareNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.particolareColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetparticolareNull() {
|
|
this[this.tablestp_prtCartByUDC.particolareColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsdescparticolareNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.descparticolareColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetdescparticolareNull() {
|
|
this[this.tablestp_prtCartByUDC.descparticolareColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsdisegnogrezzoNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.disegnogrezzoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetdisegnogrezzoNull() {
|
|
this[this.tablestp_prtCartByUDC.disegnogrezzoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsesponenteNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.esponenteColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetesponenteNull() {
|
|
this[this.tablestp_prtCartByUDC.esponenteColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IscodimpiantoNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.codimpiantoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetcodimpiantoNull() {
|
|
this[this.tablestp_prtCartByUDC.codimpiantoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsdescimpiantoNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.descimpiantoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetdescimpiantoNull() {
|
|
this[this.tablestp_prtCartByUDC.descimpiantoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IscodstampoNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.codstampoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetcodstampoNull() {
|
|
this[this.tablestp_prtCartByUDC.codstampoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsfiguraNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.figuraColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetfiguraNull() {
|
|
this[this.tablestp_prtCartByUDC.figuraColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsdatafusNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.datafusColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetdatafusNull() {
|
|
this[this.tablestp_prtCartByUDC.datafusColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsturnofusNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.turnofusColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetturnofusNull() {
|
|
this[this.tablestp_prtCartByUDC.turnofusColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IscodimballoNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.codimballoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetcodimballoNull() {
|
|
this[this.tablestp_prtCartByUDC.codimballoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IscodsoggettoNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.codsoggettoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetcodsoggettoNull() {
|
|
this[this.tablestp_prtCartByUDC.codsoggettoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsnumcontNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.numcontColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetnumcontNull() {
|
|
this[this.tablestp_prtCartByUDC.numcontColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IstaraNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.taraColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SettaraNull() {
|
|
this[this.tablestp_prtCartByUDC.taraColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsqtaNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.qtaColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetqtaNull() {
|
|
this[this.tablestp_prtCartByUDC.qtaColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IscodstatoNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.codstatoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetcodstatoNull() {
|
|
this[this.tablestp_prtCartByUDC.codstatoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsidxposizioneNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.idxposizioneColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetidxposizioneNull() {
|
|
this[this.tablestp_prtCartByUDC.idxposizioneColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IspesototNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.pesototColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetpesototNull() {
|
|
this[this.tablestp_prtCartByUDC.pesototColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IspesocadNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.pesocadColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetpesocadNull() {
|
|
this[this.tablestp_prtCartByUDC.pesocadColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCreateDateNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.CreateDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCreateDateNull() {
|
|
this[this.tablestp_prtCartByUDC.CreateDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsModDateNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.ModDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetModDateNull() {
|
|
this[this.tablestp_prtCartByUDC.ModDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IscognomeNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.cognomeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetcognomeNull() {
|
|
this[this.tablestp_prtCartByUDC.cognomeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsnomeNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.nomeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetnomeNull() {
|
|
this[this.tablestp_prtCartByUDC.nomeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsdescstatoNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.descstatoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetdescstatoNull() {
|
|
this[this.tablestp_prtCartByUDC.descstatoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsdescimballoNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.descimballoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetdescimballoNull() {
|
|
this[this.tablestp_prtCartByUDC.descimballoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodFamigliaNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.CodFamigliaColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodFamigliaNull() {
|
|
this[this.tablestp_prtCartByUDC.CodFamigliaColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescFamigliaNull() {
|
|
return this.IsNull(this.tablestp_prtCartByUDC.DescFamigliaColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescFamigliaNull() {
|
|
this[this.tablestp_prtCartByUDC.DescFamigliaColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public partial class stp_prtCartMatPrimaByUDCRow : global::System.Data.DataRow {
|
|
|
|
private stp_prtCartMatPrimaByUDCDataTable tablestp_prtCartMatPrimaByUDC;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal stp_prtCartMatPrimaByUDCRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tablestp_prtCartMatPrimaByUDC = ((stp_prtCartMatPrimaByUDCDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public decimal nRapQual {
|
|
get {
|
|
return ((decimal)(this[this.tablestp_prtCartMatPrimaByUDC.nRapQualColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.nRapQualColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public decimal DataRapQual {
|
|
get {
|
|
return ((decimal)(this[this.tablestp_prtCartMatPrimaByUDC.DataRapQualColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DataRapQualColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string ProgUDC {
|
|
get {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.ProgUDCColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.ProgUDCColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodFor {
|
|
get {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.CodForColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.CodForColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DestTerz {
|
|
get {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.DestTerzColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DestTerzColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodLega {
|
|
get {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.CodLegaColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.CodLegaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public decimal DataPrelFus {
|
|
get {
|
|
return ((decimal)(this[this.tablestp_prtCartMatPrimaByUDC.DataPrelFusColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DataPrelFusColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string TurnoPrelFus {
|
|
get {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.TurnoPrelFusColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.TurnoPrelFusColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public decimal Qta {
|
|
get {
|
|
return ((decimal)(this[this.tablestp_prtCartMatPrimaByUDC.QtaColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.QtaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DestLega {
|
|
get {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.DestLegaColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DestLegaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string LegaScaric {
|
|
get {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.LegaScaricColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.LegaScaricColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string BenesQual {
|
|
get {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.BenesQualColumn]));
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.BenesQualColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string UDC {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.UDCColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'UDC\' in table \'stp_prtCartMatPrimaByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.UDCColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescFornitore {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.DescFornitoreColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescFornitore\' in table \'stp_prtCartMatPrimaByUDC\' is DBNul" +
|
|
"l.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DescFornitoreColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescFornitore2 {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.DescFornitore2Column]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescFornitore2\' in table \'stp_prtCartMatPrimaByUDC\' is DBNu" +
|
|
"ll.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DescFornitore2Column] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string CodLega2 {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.CodLega2Column]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'CodLega2\' in table \'stp_prtCartMatPrimaByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.CodLega2Column] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescLega {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.DescLegaColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescLega\' in table \'stp_prtCartMatPrimaByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DescLegaColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public string DescLega2 {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tablestp_prtCartMatPrimaByUDC.DescLega2Column]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("The value for column \'DescLega2\' in table \'stp_prtCartMatPrimaByUDC\' is DBNull.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DescLega2Column] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsUDCNull() {
|
|
return this.IsNull(this.tablestp_prtCartMatPrimaByUDC.UDCColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetUDCNull() {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.UDCColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescFornitoreNull() {
|
|
return this.IsNull(this.tablestp_prtCartMatPrimaByUDC.DescFornitoreColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescFornitoreNull() {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DescFornitoreColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescFornitore2Null() {
|
|
return this.IsNull(this.tablestp_prtCartMatPrimaByUDC.DescFornitore2Column);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescFornitore2Null() {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DescFornitore2Column] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsCodLega2Null() {
|
|
return this.IsNull(this.tablestp_prtCartMatPrimaByUDC.CodLega2Column);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetCodLega2Null() {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.CodLega2Column] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescLegaNull() {
|
|
return this.IsNull(this.tablestp_prtCartMatPrimaByUDC.DescLegaColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescLegaNull() {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DescLegaColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool IsDescLega2Null() {
|
|
return this.IsNull(this.tablestp_prtCartMatPrimaByUDC.DescLega2Column);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void SetDescLega2Null() {
|
|
this[this.tablestp_prtCartMatPrimaByUDC.DescLega2Column] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class AnagArticoliRowChangeEvent : global::System.EventArgs {
|
|
|
|
private AnagArticoliRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagArticoliRowChangeEvent(AnagArticoliRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagArticoliRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class AnagBilanceRowChangeEvent : global::System.EventArgs {
|
|
|
|
private AnagBilanceRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagBilanceRowChangeEvent(AnagBilanceRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagBilanceRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class AnagCompanyRowChangeEvent : global::System.EventArgs {
|
|
|
|
private AnagCompanyRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagCompanyRowChangeEvent(AnagCompanyRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagCompanyRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class AnagImpiantiRowChangeEvent : global::System.EventArgs {
|
|
|
|
private AnagImpiantiRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagImpiantiRowChangeEvent(AnagImpiantiRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagImpiantiRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class AnagOdpRowChangeEvent : global::System.EventArgs {
|
|
|
|
private AnagOdpRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagOdpRowChangeEvent(AnagOdpRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagOdpRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class AnagSitiRowChangeEvent : global::System.EventArgs {
|
|
|
|
private AnagSitiRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiRowChangeEvent(AnagSitiRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagSitiRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class AnagStatiRowChangeEvent : global::System.EventArgs {
|
|
|
|
private AnagStatiRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagStatiRowChangeEvent(AnagStatiRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public AnagStatiRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class ContatoriUdcRowChangeEvent : global::System.EventArgs {
|
|
|
|
private ContatoriUdcRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public ContatoriUdcRowChangeEvent(ContatoriUdcRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public ContatoriUdcRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class Impianti2ArticoliRowChangeEvent : global::System.EventArgs {
|
|
|
|
private Impianti2ArticoliRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public Impianti2ArticoliRowChangeEvent(Impianti2ArticoliRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public Impianti2ArticoliRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class TabStatoOdpUdcRowChangeEvent : global::System.EventArgs {
|
|
|
|
private TabStatoOdpUdcRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public TabStatoOdpUdcRowChangeEvent(TabStatoOdpUdcRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public TabStatoOdpUdcRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class stp_getStatoByUdcRowChangeEvent : global::System.EventArgs {
|
|
|
|
private stp_getStatoByUdcRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_getStatoByUdcRowChangeEvent(stp_getStatoByUdcRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_getStatoByUdcRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class stp_insNewOdpUdcRowChangeEvent : global::System.EventArgs {
|
|
|
|
private stp_insNewOdpUdcRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_insNewOdpUdcRowChangeEvent(stp_insNewOdpUdcRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_insNewOdpUdcRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class stp_updateByBilanciaRowChangeEvent : global::System.EventArgs {
|
|
|
|
private stp_updateByBilanciaRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_updateByBilanciaRowChangeEvent(stp_updateByBilanciaRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_updateByBilanciaRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class stp_prtCartByUDCRowChangeEvent : global::System.EventArgs {
|
|
|
|
private stp_prtCartByUDCRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartByUDCRowChangeEvent(stp_prtCartByUDCRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartByUDCRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public class stp_prtCartMatPrimaByUDCRowChangeEvent : global::System.EventArgs {
|
|
|
|
private stp_prtCartMatPrimaByUDCRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartMatPrimaByUDCRowChangeEvent(stp_prtCartMatPrimaByUDCRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public stp_prtCartMatPrimaByUDCRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
namespace GMW_Reports.GMWDataSetTableAdapters {
|
|
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 AnagArticoliTableAdapter : 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 AnagArticoliTableAdapter() {
|
|
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 = "AnagArticoli";
|
|
tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo");
|
|
tableMapping.ColumnMappings.Add("DescrArticolo", "DescrArticolo");
|
|
tableMapping.ColumnMappings.Add("Figura", "Figura");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagArticoli] WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Figura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagArticoli] ([CodArticolo], [DescrArticolo], [Figura]) VALUE" +
|
|
"S (@CodArticolo, @DescrArticolo, @Figura);\r\nSELECT CodArticolo, DescrArticolo, F" +
|
|
"igura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagArticoli] SET [CodArticolo] = @CodArticolo, [DescrArticolo] = @DescrArticolo, [Figura] = @Figura WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)));
|
|
SELECT CodArticolo, DescrArticolo, Figura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Figura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT CodArticolo, DescrArticolo, Figura FROM dbo.AnagArticoli";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.AnagArticoliDataTable 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 GMWDataSet.AnagArticoliDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.AnagArticoliDataTable dataTable = new GMWDataSet.AnagArticoliDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.AnagArticoliDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "AnagArticoli");
|
|
}
|
|
|
|
[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_CodArticolo, string Original_DescrArticolo, string Original_Figura) {
|
|
if ((Original_CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodArticolo));
|
|
}
|
|
if ((Original_DescrArticolo == 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_DescrArticolo));
|
|
}
|
|
if ((Original_Figura == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Figura));
|
|
}
|
|
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 CodArticolo, string DescrArticolo, string Figura) {
|
|
if ((CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodArticolo));
|
|
}
|
|
if ((DescrArticolo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrArticolo));
|
|
}
|
|
if ((Figura == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Figura));
|
|
}
|
|
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 CodArticolo, string DescrArticolo, string Figura, string Original_CodArticolo, string Original_DescrArticolo, string Original_Figura) {
|
|
if ((CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodArticolo));
|
|
}
|
|
if ((DescrArticolo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrArticolo));
|
|
}
|
|
if ((Figura == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Figura));
|
|
}
|
|
if ((Original_CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodArticolo));
|
|
}
|
|
if ((Original_DescrArticolo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_DescrArticolo));
|
|
}
|
|
if ((Original_Figura == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Figura));
|
|
}
|
|
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 DescrArticolo, string Figura, string Original_CodArticolo, string Original_DescrArticolo, string Original_Figura) {
|
|
return this.Update(Original_CodArticolo, DescrArticolo, Figura, Original_CodArticolo, Original_DescrArticolo, Original_Figura);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 AnagBilanceTableAdapter : 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 AnagBilanceTableAdapter() {
|
|
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 = "AnagBilance";
|
|
tableMapping.ColumnMappings.Add("CodBilancia", "CodBilancia");
|
|
tableMapping.ColumnMappings.Add("DescrImpianto", "DescrImpianto");
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("CodSito", "CodSito");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagBilance] WHERE (([CodBilancia] = @Original_CodBilancia) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodBilancia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBilancia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagBilance] ([CodBilancia], [DescrImpianto], [CodCompany], [CodSito]) VALUES (@CodBilancia, @DescrImpianto, @CodCompany, @CodSito);
|
|
SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance WHERE (CodBilancia = @CodBilancia)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodBilancia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBilancia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagBilance] SET [CodBilancia] = @CodBilancia, [DescrImpianto] = @DescrImpianto, [CodCompany] = @CodCompany, [CodSito] = @CodSito WHERE (([CodBilancia] = @Original_CodBilancia) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)));
|
|
SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance WHERE (CodBilancia = @CodBilancia)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodBilancia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBilancia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodBilancia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBilancia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM dbo.AnagBilance";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.AnagBilanceDataTable 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 GMWDataSet.AnagBilanceDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.AnagBilanceDataTable dataTable = new GMWDataSet.AnagBilanceDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.AnagBilanceDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "AnagBilance");
|
|
}
|
|
|
|
[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_CodBilancia, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) {
|
|
if ((Original_CodBilancia == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodBilancia");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodBilancia));
|
|
}
|
|
if ((Original_DescrImpianto == 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_DescrImpianto));
|
|
}
|
|
if ((Original_CodCompany == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_CodSito == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodSito));
|
|
}
|
|
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 CodBilancia, string DescrImpianto, string CodCompany, string CodSito) {
|
|
if ((CodBilancia == null)) {
|
|
throw new global::System.ArgumentNullException("CodBilancia");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodBilancia));
|
|
}
|
|
if ((DescrImpianto == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrImpianto));
|
|
}
|
|
if ((CodCompany == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCompany));
|
|
}
|
|
if ((CodSito == null)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodSito));
|
|
}
|
|
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 CodBilancia, string DescrImpianto, string CodCompany, string CodSito, string Original_CodBilancia, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) {
|
|
if ((CodBilancia == null)) {
|
|
throw new global::System.ArgumentNullException("CodBilancia");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodBilancia));
|
|
}
|
|
if ((DescrImpianto == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrImpianto));
|
|
}
|
|
if ((CodCompany == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCompany));
|
|
}
|
|
if ((CodSito == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodSito));
|
|
}
|
|
if ((Original_CodBilancia == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodBilancia");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodBilancia));
|
|
}
|
|
if ((Original_DescrImpianto == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrImpianto));
|
|
}
|
|
if ((Original_CodCompany == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_CodSito == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodSito));
|
|
}
|
|
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 DescrImpianto, string CodCompany, string CodSito, string Original_CodBilancia, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) {
|
|
return this.Update(Original_CodBilancia, DescrImpianto, CodCompany, CodSito, Original_CodBilancia, Original_DescrImpianto, Original_CodCompany, Original_CodSito);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 AnagCompanyTableAdapter : 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 AnagCompanyTableAdapter() {
|
|
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 = "AnagCompany";
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("DescrCompany", "DescrCompany");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagCompany] WHERE (([CodCompany] = @Original_CodCompany) AND " +
|
|
"((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Ori" +
|
|
"ginal_DescrCompany)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagCompany] ([CodCompany], [DescrCompany]) VALUES (@CodCompan" +
|
|
"y, @DescrCompany);\r\nSELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodC" +
|
|
"ompany = @CodCompany)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagCompany] SET [CodCompany] = @CodCompany, [DescrCompany] = @DescrCompany WHERE (([CodCompany] = @Original_CodCompany) AND ((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Original_DescrCompany)));
|
|
SELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodCompany = @CodCompany)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT CodCompany, DescrCompany FROM dbo.AnagCompany";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.AnagCompanyDataTable 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 GMWDataSet.AnagCompanyDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.AnagCompanyDataTable dataTable = new GMWDataSet.AnagCompanyDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.AnagCompanyDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "AnagCompany");
|
|
}
|
|
|
|
[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_CodCompany, string Original_DescrCompany) {
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_DescrCompany == 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_DescrCompany));
|
|
}
|
|
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 CodCompany, string DescrCompany) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((DescrCompany == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrCompany));
|
|
}
|
|
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 CodCompany, string DescrCompany, string Original_CodCompany, string Original_DescrCompany) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((DescrCompany == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrCompany));
|
|
}
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_DescrCompany == 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_DescrCompany));
|
|
}
|
|
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 DescrCompany, string Original_CodCompany, string Original_DescrCompany) {
|
|
return this.Update(Original_CodCompany, DescrCompany, Original_CodCompany, Original_DescrCompany);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 AnagImpiantiTableAdapter : 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 AnagImpiantiTableAdapter() {
|
|
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 = "AnagImpianti";
|
|
tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
|
|
tableMapping.ColumnMappings.Add("DescrImpianto", "DescrImpianto");
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("CodSito", "CodSito");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagImpianti] WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagImpianti] ([CodImpianto], [DescrImpianto], [CodCompany], [CodSito]) VALUES (@CodImpianto, @DescrImpianto, @CodCompany, @CodSito);
|
|
SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagImpianti] SET [CodImpianto] = @CodImpianto, [DescrImpianto] = @DescrImpianto, [CodCompany] = @CodCompany, [CodSito] = @CodSito WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)));
|
|
SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM dbo.AnagImpianti";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.AnagImpiantiDataTable 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 GMWDataSet.AnagImpiantiDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.AnagImpiantiDataTable dataTable = new GMWDataSet.AnagImpiantiDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.AnagImpiantiDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "AnagImpianti");
|
|
}
|
|
|
|
[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_CodImpianto, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) {
|
|
if ((Original_CodImpianto == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodImpianto");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImpianto));
|
|
}
|
|
if ((Original_DescrImpianto == 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_DescrImpianto));
|
|
}
|
|
if ((Original_CodCompany == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_CodSito == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodSito));
|
|
}
|
|
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 CodImpianto, string DescrImpianto, string CodCompany, string CodSito) {
|
|
if ((CodImpianto == null)) {
|
|
throw new global::System.ArgumentNullException("CodImpianto");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImpianto));
|
|
}
|
|
if ((DescrImpianto == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrImpianto));
|
|
}
|
|
if ((CodCompany == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCompany));
|
|
}
|
|
if ((CodSito == null)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodSito));
|
|
}
|
|
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 CodImpianto, string DescrImpianto, string CodCompany, string CodSito, string Original_CodImpianto, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) {
|
|
if ((CodImpianto == null)) {
|
|
throw new global::System.ArgumentNullException("CodImpianto");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImpianto));
|
|
}
|
|
if ((DescrImpianto == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrImpianto));
|
|
}
|
|
if ((CodCompany == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCompany));
|
|
}
|
|
if ((CodSito == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodSito));
|
|
}
|
|
if ((Original_CodImpianto == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodImpianto");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodImpianto));
|
|
}
|
|
if ((Original_DescrImpianto == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrImpianto));
|
|
}
|
|
if ((Original_CodCompany == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_CodSito == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodSito));
|
|
}
|
|
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 DescrImpianto, string CodCompany, string CodSito, string Original_CodImpianto, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) {
|
|
return this.Update(Original_CodImpianto, DescrImpianto, CodCompany, CodSito, Original_CodImpianto, Original_DescrImpianto, Original_CodCompany, Original_CodSito);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 AnagOdpTableAdapter : 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 AnagOdpTableAdapter() {
|
|
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 = "AnagOdp";
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("ODP", "ODP");
|
|
tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo");
|
|
tableMapping.ColumnMappings.Add("CodDisegno", "CodDisegno");
|
|
tableMapping.ColumnMappings.Add("Esponente", "Esponente");
|
|
tableMapping.ColumnMappings.Add("Magazzino", "Magazzino");
|
|
tableMapping.ColumnMappings.Add("Ubicazione", "Ubicazione");
|
|
tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
|
|
tableMapping.ColumnMappings.Add("ModDate", "ModDate");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagOdp] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagOdp] ([CodCompany], [ODP], [CodArticolo], [CodDisegno], [Esponente], [Magazzino], [Ubicazione], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @CodArticolo, @CodDisegno, @Esponente, @Magazzino, @Ubicazione, @CreateDate, @ModDate);
|
|
SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagOdp] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [CodArticolo] = @CodArticolo, [CodDisegno] = @CodDisegno, [Esponente] = @Esponente, [Magazzino] = @Magazzino, [Ubicazione] = @Ubicazione, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate));
|
|
SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione" +
|
|
", CreateDate, ModDate FROM dbo.AnagOdp";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.AnagOdpDataTable 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 GMWDataSet.AnagOdpDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.AnagOdpDataTable dataTable = new GMWDataSet.AnagOdpDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.AnagOdpDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "AnagOdp");
|
|
}
|
|
|
|
[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_CodCompany, string Original_ODP, string Original_CodArticolo, string Original_CodDisegno, string Original_Esponente, string Original_Magazzino, string Original_Ubicazione, System.DateTime Original_CreateDate, System.DateTime Original_ModDate) {
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_ODP == null)) {
|
|
throw new global::System.ArgumentNullException("Original_ODP");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ODP));
|
|
}
|
|
if ((Original_CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodArticolo));
|
|
}
|
|
if ((Original_CodDisegno == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodDisegno");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_CodDisegno));
|
|
}
|
|
if ((Original_Esponente == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Esponente");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Esponente));
|
|
}
|
|
if ((Original_Magazzino == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Magazzino");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Magazzino));
|
|
}
|
|
if ((Original_Ubicazione == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Ubicazione");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Ubicazione));
|
|
}
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_CreateDate));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_ModDate));
|
|
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 CodCompany, string ODP, string CodArticolo, string CodDisegno, string Esponente, string Magazzino, string Ubicazione, System.DateTime CreateDate, System.DateTime ModDate) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((ODP == null)) {
|
|
throw new global::System.ArgumentNullException("ODP");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ODP));
|
|
}
|
|
if ((CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodArticolo));
|
|
}
|
|
if ((CodDisegno == null)) {
|
|
throw new global::System.ArgumentNullException("CodDisegno");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodDisegno));
|
|
}
|
|
if ((Esponente == null)) {
|
|
throw new global::System.ArgumentNullException("Esponente");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Esponente));
|
|
}
|
|
if ((Magazzino == null)) {
|
|
throw new global::System.ArgumentNullException("Magazzino");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Magazzino));
|
|
}
|
|
if ((Ubicazione == null)) {
|
|
throw new global::System.ArgumentNullException("Ubicazione");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Ubicazione));
|
|
}
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(CreateDate));
|
|
this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ModDate));
|
|
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 CodCompany,
|
|
string ODP,
|
|
string CodArticolo,
|
|
string CodDisegno,
|
|
string Esponente,
|
|
string Magazzino,
|
|
string Ubicazione,
|
|
System.DateTime CreateDate,
|
|
System.DateTime ModDate,
|
|
string Original_CodCompany,
|
|
string Original_ODP,
|
|
string Original_CodArticolo,
|
|
string Original_CodDisegno,
|
|
string Original_Esponente,
|
|
string Original_Magazzino,
|
|
string Original_Ubicazione,
|
|
System.DateTime Original_CreateDate,
|
|
System.DateTime Original_ModDate) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((ODP == null)) {
|
|
throw new global::System.ArgumentNullException("ODP");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ODP));
|
|
}
|
|
if ((CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodArticolo));
|
|
}
|
|
if ((CodDisegno == null)) {
|
|
throw new global::System.ArgumentNullException("CodDisegno");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodDisegno));
|
|
}
|
|
if ((Esponente == null)) {
|
|
throw new global::System.ArgumentNullException("Esponente");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Esponente));
|
|
}
|
|
if ((Magazzino == null)) {
|
|
throw new global::System.ArgumentNullException("Magazzino");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Magazzino));
|
|
}
|
|
if ((Ubicazione == null)) {
|
|
throw new global::System.ArgumentNullException("Ubicazione");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Ubicazione));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(CreateDate));
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ModDate));
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_ODP == null)) {
|
|
throw new global::System.ArgumentNullException("Original_ODP");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ODP));
|
|
}
|
|
if ((Original_CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodArticolo));
|
|
}
|
|
if ((Original_CodDisegno == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodDisegno");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_CodDisegno));
|
|
}
|
|
if ((Original_Esponente == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Esponente");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Esponente));
|
|
}
|
|
if ((Original_Magazzino == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Magazzino");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Magazzino));
|
|
}
|
|
if ((Original_Ubicazione == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Ubicazione");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Ubicazione));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_CreateDate));
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_ModDate));
|
|
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 CodArticolo,
|
|
string CodDisegno,
|
|
string Esponente,
|
|
string Magazzino,
|
|
string Ubicazione,
|
|
System.DateTime CreateDate,
|
|
System.DateTime ModDate,
|
|
string Original_CodCompany,
|
|
string Original_ODP,
|
|
string Original_CodArticolo,
|
|
string Original_CodDisegno,
|
|
string Original_Esponente,
|
|
string Original_Magazzino,
|
|
string Original_Ubicazione,
|
|
System.DateTime Original_CreateDate,
|
|
System.DateTime Original_ModDate) {
|
|
return this.Update(Original_CodCompany, Original_ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_CodArticolo, Original_CodDisegno, Original_Esponente, Original_Magazzino, Original_Ubicazione, Original_CreateDate, Original_ModDate);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 AnagSitiTableAdapter : 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 AnagSitiTableAdapter() {
|
|
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 = "AnagSiti";
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("CodSito", "CodSito");
|
|
tableMapping.ColumnMappings.Add("DescrSito", "DescrSito");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagSiti] WHERE (([CodCompany] = @Original_CodCompany) AND ([C" +
|
|
"odSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL" +
|
|
") OR ([DescrSito] = @Original_DescrSito)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagSiti] ([CodCompany], [CodSito], [DescrSito]) VALUES (@CodC" +
|
|
"ompany, @CodSito, @DescrSito);\r\nSELECT CodCompany, CodSito, DescrSito FROM AnagS" +
|
|
"iti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagSiti] SET [CodCompany] = @CodCompany, [CodSito] = @CodSito, [DescrSito] = @DescrSito WHERE (([CodCompany] = @Original_CodCompany) AND ([CodSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL) OR ([DescrSito] = @Original_DescrSito)));
|
|
SELECT CodCompany, CodSito, DescrSito FROM AnagSiti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT CodCompany, CodSito, DescrSito FROM dbo.AnagSiti";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.AnagSitiDataTable 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 GMWDataSet.AnagSitiDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.AnagSitiDataTable dataTable = new GMWDataSet.AnagSitiDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.AnagSitiDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "AnagSiti");
|
|
}
|
|
|
|
[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_CodCompany, string Original_CodSito, string Original_DescrSito) {
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_CodSito == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodSito");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodSito));
|
|
}
|
|
if ((Original_DescrSito == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DescrSito));
|
|
}
|
|
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 CodCompany, string CodSito, string DescrSito) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((CodSito == null)) {
|
|
throw new global::System.ArgumentNullException("CodSito");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodSito));
|
|
}
|
|
if ((DescrSito == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DescrSito));
|
|
}
|
|
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 CodCompany, string CodSito, string DescrSito, string Original_CodCompany, string Original_CodSito, string Original_DescrSito) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((CodSito == null)) {
|
|
throw new global::System.ArgumentNullException("CodSito");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodSito));
|
|
}
|
|
if ((DescrSito == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescrSito));
|
|
}
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_CodSito == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodSito");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodSito));
|
|
}
|
|
if ((Original_DescrSito == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrSito));
|
|
}
|
|
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 DescrSito, string Original_CodCompany, string Original_CodSito, string Original_DescrSito) {
|
|
return this.Update(Original_CodCompany, Original_CodSito, DescrSito, Original_CodCompany, Original_CodSito, Original_DescrSito);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 AnagStatiTableAdapter : 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 AnagStatiTableAdapter() {
|
|
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 = "AnagStati";
|
|
tableMapping.ColumnMappings.Add("IdxStato", "IdxStato");
|
|
tableMapping.ColumnMappings.Add("DescrStato", "DescrStato");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagStati] WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsN" +
|
|
"ull_DescrStato = 1 AND [DescrStato] IS NULL) OR ([DescrStato] = @Original_DescrS" +
|
|
"tato)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagStati] ([IdxStato], [DescrStato]) VALUES (@IdxStato, @Desc" +
|
|
"rStato);\r\nSELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato" +
|
|
")";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagStati] SET [IdxStato] = @IdxStato, [DescrStato] = @DescrStato WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsNull_DescrStato = 1 AND [DescrStato] IS NULL) OR ([DescrStato] = @Original_DescrStato)));
|
|
SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT IdxStato, DescrStato FROM dbo.AnagStati";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.AnagStatiDataTable 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 GMWDataSet.AnagStatiDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.AnagStatiDataTable dataTable = new GMWDataSet.AnagStatiDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.AnagStatiDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "AnagStati");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(int Original_IdxStato, string Original_DescrStato) {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxStato));
|
|
if ((Original_DescrStato == 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_DescrStato));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(int IdxStato, string DescrStato) {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxStato));
|
|
if ((DescrStato == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrStato));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(int IdxStato, string DescrStato, int Original_IdxStato, string Original_DescrStato) {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxStato));
|
|
if ((DescrStato == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrStato));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdxStato));
|
|
if ((Original_DescrStato == 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_DescrStato));
|
|
}
|
|
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 DescrStato, int Original_IdxStato, string Original_DescrStato) {
|
|
return this.Update(Original_IdxStato, DescrStato, Original_IdxStato, Original_DescrStato);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 ContatoriUdcTableAdapter : 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 ContatoriUdcTableAdapter() {
|
|
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 = "ContatoriUdc";
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("Flusso", "Flusso");
|
|
tableMapping.ColumnMappings.Add("Anno", "Anno");
|
|
tableMapping.ColumnMappings.Add("LastIdx", "LastIdx");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ContatoriUdc] WHERE (([CodCompany] = @Original_CodCompany) AND" +
|
|
" ([Flusso] = @Original_Flusso) AND ([Anno] = @Original_Anno) AND ((@IsNull_LastI" +
|
|
"dx = 1 AND [LastIdx] IS NULL) OR ([LastIdx] = @Original_LastIdx)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Flusso", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Flusso", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ContatoriUdc] ([CodCompany], [Flusso], [Anno], [LastIdx]) VALUES (@CodCompany, @Flusso, @Anno, @LastIdx);
|
|
SELECT CodCompany, Flusso, Anno, LastIdx FROM ContatoriUdc WHERE (Anno = @Anno) AND (CodCompany = @CodCompany) AND (Flusso = @Flusso)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Flusso", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ContatoriUdc] SET [CodCompany] = @CodCompany, [Flusso] = @Flusso, [Anno] = @Anno, [LastIdx] = @LastIdx WHERE (([CodCompany] = @Original_CodCompany) AND ([Flusso] = @Original_Flusso) AND ([Anno] = @Original_Anno) AND ((@IsNull_LastIdx = 1 AND [LastIdx] IS NULL) OR ([LastIdx] = @Original_LastIdx)));
|
|
SELECT CodCompany, Flusso, Anno, LastIdx FROM ContatoriUdc WHERE (Anno = @Anno) AND (CodCompany = @CodCompany) AND (Flusso = @Flusso)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Flusso", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Flusso", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Flusso", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT CodCompany, Flusso, Anno, LastIdx FROM dbo.ContatoriUdc";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.ContatoriUdcDataTable 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 GMWDataSet.ContatoriUdcDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.ContatoriUdcDataTable dataTable = new GMWDataSet.ContatoriUdcDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.ContatoriUdcDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "ContatoriUdc");
|
|
}
|
|
|
|
[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_CodCompany, string Original_Flusso, string Original_Anno, global::System.Nullable<int> Original_LastIdx) {
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_Flusso == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Flusso");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Flusso));
|
|
}
|
|
if ((Original_Anno == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Anno");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Anno));
|
|
}
|
|
if ((Original_LastIdx.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_LastIdx.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(string CodCompany, string Flusso, string Anno, global::System.Nullable<int> LastIdx) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((Flusso == null)) {
|
|
throw new global::System.ArgumentNullException("Flusso");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Flusso));
|
|
}
|
|
if ((Anno == null)) {
|
|
throw new global::System.ArgumentNullException("Anno");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Anno));
|
|
}
|
|
if ((LastIdx.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((int)(LastIdx.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(string CodCompany, string Flusso, string Anno, global::System.Nullable<int> LastIdx, string Original_CodCompany, string Original_Flusso, string Original_Anno, global::System.Nullable<int> Original_LastIdx) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((Flusso == null)) {
|
|
throw new global::System.ArgumentNullException("Flusso");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Flusso));
|
|
}
|
|
if ((Anno == null)) {
|
|
throw new global::System.ArgumentNullException("Anno");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Anno));
|
|
}
|
|
if ((LastIdx.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(LastIdx.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_Flusso == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Flusso");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Flusso));
|
|
}
|
|
if ((Original_Anno == null)) {
|
|
throw new global::System.ArgumentNullException("Original_Anno");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Anno));
|
|
}
|
|
if ((Original_LastIdx.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_LastIdx.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(global::System.Nullable<int> LastIdx, string Original_CodCompany, string Original_Flusso, string Original_Anno, global::System.Nullable<int> Original_LastIdx) {
|
|
return this.Update(Original_CodCompany, Original_Flusso, Original_Anno, LastIdx, Original_CodCompany, Original_Flusso, Original_Anno, Original_LastIdx);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 Impianti2ArticoliTableAdapter : 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 Impianti2ArticoliTableAdapter() {
|
|
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 = "Impianti2Articoli";
|
|
tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
|
|
tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo");
|
|
tableMapping.ColumnMappings.Add("InizioProd", "InizioProd");
|
|
tableMapping.ColumnMappings.Add("FineProd", "FineProd");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Impianti2Articoli] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Impianti2Articoli] ([CodImpianto], [CodArticolo], [InizioProd], [FineProd]) VALUES (@CodImpianto, @CodArticolo, @InizioProd, @FineProd);
|
|
SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Impianti2Articoli] SET [CodImpianto] = @CodImpianto, [CodArticolo] = @CodArticolo, [InizioProd] = @InizioProd, [FineProd] = @FineProd WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)));
|
|
SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM dbo.Impianti2Articoli";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.Impianti2ArticoliDataTable 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 GMWDataSet.Impianti2ArticoliDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.Impianti2ArticoliDataTable dataTable = new GMWDataSet.Impianti2ArticoliDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.Impianti2ArticoliDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "Impianti2Articoli");
|
|
}
|
|
|
|
[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_CodImpianto, string Original_CodArticolo, System.DateTime Original_InizioProd, global::System.Nullable<global::System.DateTime> Original_FineProd) {
|
|
if ((Original_CodImpianto == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodImpianto");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImpianto));
|
|
}
|
|
if ((Original_CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodArticolo));
|
|
}
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_InizioProd));
|
|
if ((Original_FineProd.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_FineProd.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(string CodImpianto, string CodArticolo, System.DateTime InizioProd, global::System.Nullable<global::System.DateTime> FineProd) {
|
|
if ((CodImpianto == null)) {
|
|
throw new global::System.ArgumentNullException("CodImpianto");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImpianto));
|
|
}
|
|
if ((CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodArticolo));
|
|
}
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(InizioProd));
|
|
if ((FineProd.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(FineProd.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(string CodImpianto, string CodArticolo, System.DateTime InizioProd, global::System.Nullable<global::System.DateTime> FineProd, string Original_CodImpianto, string Original_CodArticolo, System.DateTime Original_InizioProd, global::System.Nullable<global::System.DateTime> Original_FineProd) {
|
|
if ((CodImpianto == null)) {
|
|
throw new global::System.ArgumentNullException("CodImpianto");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImpianto));
|
|
}
|
|
if ((CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodArticolo));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(InizioProd));
|
|
if ((FineProd.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(FineProd.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_CodImpianto == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodImpianto");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodImpianto));
|
|
}
|
|
if ((Original_CodArticolo == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodArticolo");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodArticolo));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_InizioProd));
|
|
if ((Original_FineProd.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_FineProd.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(global::System.Nullable<global::System.DateTime> FineProd, string Original_CodImpianto, string Original_CodArticolo, System.DateTime Original_InizioProd, global::System.Nullable<global::System.DateTime> Original_FineProd) {
|
|
return this.Update(Original_CodImpianto, Original_CodArticolo, Original_InizioProd, FineProd, Original_CodImpianto, Original_CodArticolo, Original_InizioProd, Original_FineProd);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 TabStatoOdpUdcTableAdapter : 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 TabStatoOdpUdcTableAdapter() {
|
|
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 = "TabStatoOdpUdc";
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("ODP", "ODP");
|
|
tableMapping.ColumnMappings.Add("UDC", "UDC");
|
|
tableMapping.ColumnMappings.Add("Tara", "Tara");
|
|
tableMapping.ColumnMappings.Add("IdxStato", "IdxStato");
|
|
tableMapping.ColumnMappings.Add("Qta", "Qta");
|
|
tableMapping.ColumnMappings.Add("CodImballo", "CodImballo");
|
|
tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
|
|
tableMapping.ColumnMappings.Add("ModDate", "ModDate");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CreateDate, @ModDate);
|
|
SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)));
|
|
SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", 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_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate" +
|
|
" FROM dbo.TabStatoOdpUdc";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.TabStatoOdpUdcDataTable 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 GMWDataSet.TabStatoOdpUdcDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
GMWDataSet.TabStatoOdpUdcDataTable dataTable = new GMWDataSet.TabStatoOdpUdcDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet.TabStatoOdpUdcDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(GMWDataSet dataSet) {
|
|
return this.Adapter.Update(dataSet, "TabStatoOdpUdc");
|
|
}
|
|
|
|
[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_CodCompany, string Original_ODP, string Original_UDC, global::System.Nullable<double> Original_Tara, global::System.Nullable<int> Original_IdxStato, global::System.Nullable<decimal> Original_Qta, string Original_CodImballo, global::System.Nullable<global::System.DateTime> Original_CreateDate, global::System.Nullable<global::System.DateTime> Original_ModDate) {
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_ODP == null)) {
|
|
throw new global::System.ArgumentNullException("Original_ODP");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ODP));
|
|
}
|
|
if ((Original_UDC == null)) {
|
|
throw new global::System.ArgumentNullException("Original_UDC");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UDC));
|
|
}
|
|
if ((Original_Tara.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Tara.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_IdxStato.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IdxStato.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_Qta.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Qta.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_CodImballo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_CodImballo));
|
|
}
|
|
if ((Original_CreateDate.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_CreateDate.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_ModDate.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_ModDate.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(string CodCompany, string ODP, string UDC, global::System.Nullable<double> Tara, global::System.Nullable<int> IdxStato, global::System.Nullable<decimal> Qta, string CodImballo, global::System.Nullable<global::System.DateTime> CreateDate, global::System.Nullable<global::System.DateTime> ModDate) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((ODP == null)) {
|
|
throw new global::System.ArgumentNullException("ODP");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ODP));
|
|
}
|
|
if ((UDC == null)) {
|
|
throw new global::System.ArgumentNullException("UDC");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UDC));
|
|
}
|
|
if ((Tara.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((double)(Tara.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((IdxStato.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IdxStato.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Qta.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(Qta.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((CodImballo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodImballo));
|
|
}
|
|
if ((CreateDate.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(CreateDate.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((ModDate.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ModDate.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string CodCompany,
|
|
string ODP,
|
|
string UDC,
|
|
global::System.Nullable<double> Tara,
|
|
global::System.Nullable<int> IdxStato,
|
|
global::System.Nullable<decimal> Qta,
|
|
string CodImballo,
|
|
global::System.Nullable<global::System.DateTime> CreateDate,
|
|
global::System.Nullable<global::System.DateTime> ModDate,
|
|
string Original_CodCompany,
|
|
string Original_ODP,
|
|
string Original_UDC,
|
|
global::System.Nullable<double> Original_Tara,
|
|
global::System.Nullable<int> Original_IdxStato,
|
|
global::System.Nullable<decimal> Original_Qta,
|
|
string Original_CodImballo,
|
|
global::System.Nullable<global::System.DateTime> Original_CreateDate,
|
|
global::System.Nullable<global::System.DateTime> Original_ModDate) {
|
|
if ((CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
|
|
}
|
|
if ((ODP == null)) {
|
|
throw new global::System.ArgumentNullException("ODP");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ODP));
|
|
}
|
|
if ((UDC == null)) {
|
|
throw new global::System.ArgumentNullException("UDC");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UDC));
|
|
}
|
|
if ((Tara.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(Tara.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((IdxStato.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdxStato.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Qta.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(Qta.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((CodImballo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodImballo));
|
|
}
|
|
if ((CreateDate.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(CreateDate.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((ModDate.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ModDate.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_CodCompany == null)) {
|
|
throw new global::System.ArgumentNullException("Original_CodCompany");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodCompany));
|
|
}
|
|
if ((Original_ODP == null)) {
|
|
throw new global::System.ArgumentNullException("Original_ODP");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ODP));
|
|
}
|
|
if ((Original_UDC == null)) {
|
|
throw new global::System.ArgumentNullException("Original_UDC");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_UDC));
|
|
}
|
|
if ((Original_Tara.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(Original_Tara.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_IdxStato.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdxStato.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_Qta.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((decimal)(Original_Qta.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_CodImballo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_CodImballo));
|
|
}
|
|
if ((Original_CreateDate.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_CreateDate.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_ModDate.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(Original_ModDate.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(global::System.Nullable<double> Tara, global::System.Nullable<int> IdxStato, global::System.Nullable<decimal> Qta, string CodImballo, global::System.Nullable<global::System.DateTime> CreateDate, global::System.Nullable<global::System.DateTime> ModDate, string Original_CodCompany, string Original_ODP, string Original_UDC, global::System.Nullable<double> Original_Tara, global::System.Nullable<int> Original_IdxStato, global::System.Nullable<decimal> Original_Qta, string Original_CodImballo, global::System.Nullable<global::System.DateTime> Original_CreateDate, global::System.Nullable<global::System.DateTime> Original_ModDate) {
|
|
return this.Update(Original_CodCompany, Original_ODP, Original_UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_UDC, Original_Tara, Original_IdxStato, Original_Qta, Original_CodImballo, Original_CreateDate, Original_ModDate);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 stp_getStatoByUdcTableAdapter : 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 stp_getStatoByUdcTableAdapter() {
|
|
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 = "stp_getStatoByUdc";
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("ODP", "ODP");
|
|
tableMapping.ColumnMappings.Add("UDC", "UDC");
|
|
tableMapping.ColumnMappings.Add("Tara", "Tara");
|
|
tableMapping.ColumnMappings.Add("IdxStato", "IdxStato");
|
|
tableMapping.ColumnMappings.Add("Qta", "Qta");
|
|
tableMapping.ColumnMappings.Add("CodImballo", "CodImballo");
|
|
tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
|
|
tableMapping.ColumnMappings.Add("ModDate", "ModDate");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::GMW_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "dbo.stp_getStatoByUdc";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.stp_getStatoByUdcDataTable dataTable, string UDC) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((UDC == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
|
}
|
|
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 GMWDataSet.stp_getStatoByUdcDataTable GetData(string UDC) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((UDC == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
|
}
|
|
GMWDataSet.stp_getStatoByUdcDataTable dataTable = new GMWDataSet.stp_getStatoByUdcDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 stp_insNewOdpUdcTableAdapter : 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 stp_insNewOdpUdcTableAdapter() {
|
|
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 = "stp_insNewOdpUdc";
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("ODP", "ODP");
|
|
tableMapping.ColumnMappings.Add("UDC", "UDC");
|
|
tableMapping.ColumnMappings.Add("Tara", "Tara");
|
|
tableMapping.ColumnMappings.Add("IdxStato", "IdxStato");
|
|
tableMapping.ColumnMappings.Add("Qta", "Qta");
|
|
tableMapping.ColumnMappings.Add("CodImballo", "CodImballo");
|
|
tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
|
|
tableMapping.ColumnMappings.Add("ModDate", "ModDate");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::GMW_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "dbo.stp_insNewOdpUdc";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.stp_insNewOdpUdcDataTable dataTable, string CodCompany, string CodSito, string Flusso, string Anno, string ODP, global::System.Nullable<double> Tara) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((CodCompany == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
|
|
}
|
|
if ((CodSito == null)) {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSito));
|
|
}
|
|
if ((Flusso == null)) {
|
|
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso));
|
|
}
|
|
if ((Anno == null)) {
|
|
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno));
|
|
}
|
|
if ((ODP == null)) {
|
|
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(ODP));
|
|
}
|
|
if ((Tara.HasValue == true)) {
|
|
this.Adapter.SelectCommand.Parameters[6].Value = ((double)(Tara.Value));
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
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 GMWDataSet.stp_insNewOdpUdcDataTable GetData(string CodCompany, string CodSito, string Flusso, string Anno, string ODP, global::System.Nullable<double> Tara) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((CodCompany == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
|
|
}
|
|
if ((CodSito == null)) {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSito));
|
|
}
|
|
if ((Flusso == null)) {
|
|
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso));
|
|
}
|
|
if ((Anno == null)) {
|
|
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno));
|
|
}
|
|
if ((ODP == null)) {
|
|
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(ODP));
|
|
}
|
|
if ((Tara.HasValue == true)) {
|
|
this.Adapter.SelectCommand.Parameters[6].Value = ((double)(Tara.Value));
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
GMWDataSet.stp_insNewOdpUdcDataTable dataTable = new GMWDataSet.stp_insNewOdpUdcDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 stp_updateByBilanciaTableAdapter : 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 stp_updateByBilanciaTableAdapter() {
|
|
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 = "stp_updateByBilancia";
|
|
tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
|
|
tableMapping.ColumnMappings.Add("ODP", "ODP");
|
|
tableMapping.ColumnMappings.Add("UDC", "UDC");
|
|
tableMapping.ColumnMappings.Add("Tara", "Tara");
|
|
tableMapping.ColumnMappings.Add("IdxStato", "IdxStato");
|
|
tableMapping.ColumnMappings.Add("Qta", "Qta");
|
|
tableMapping.ColumnMappings.Add("CodImballo", "CodImballo");
|
|
tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
|
|
tableMapping.ColumnMappings.Add("ModDate", "ModDate");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::GMW_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "dbo.stp_updateByBilancia";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.stp_updateByBilanciaDataTable dataTable, string CodCompany, string UDC, string CodArticolo, global::System.Nullable<int> qta) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((CodCompany == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
|
|
}
|
|
if ((UDC == null)) {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(UDC));
|
|
}
|
|
if ((CodArticolo == null)) {
|
|
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(CodArticolo));
|
|
}
|
|
if ((qta.HasValue == true)) {
|
|
this.Adapter.SelectCommand.Parameters[4].Value = ((int)(qta.Value));
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
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 GMWDataSet.stp_updateByBilanciaDataTable GetData(string CodCompany, string UDC, string CodArticolo, global::System.Nullable<int> qta) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((CodCompany == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
|
|
}
|
|
if ((UDC == null)) {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(UDC));
|
|
}
|
|
if ((CodArticolo == null)) {
|
|
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(CodArticolo));
|
|
}
|
|
if ((qta.HasValue == true)) {
|
|
this.Adapter.SelectCommand.Parameters[4].Value = ((int)(qta.Value));
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
GMWDataSet.stp_updateByBilanciaDataTable dataTable = new GMWDataSet.stp_updateByBilanciaDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 stp_prtCartByUDCTableAdapter : 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 stp_prtCartByUDCTableAdapter() {
|
|
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 = "stp_prtCartByUDC";
|
|
tableMapping.ColumnMappings.Add("UDC", "UDC");
|
|
tableMapping.ColumnMappings.Add("CodCS", "CodCS");
|
|
tableMapping.ColumnMappings.Add("codcliente", "codcliente");
|
|
tableMapping.ColumnMappings.Add("ragsociale", "ragsociale");
|
|
tableMapping.ColumnMappings.Add("particolare", "particolare");
|
|
tableMapping.ColumnMappings.Add("descparticolare", "descparticolare");
|
|
tableMapping.ColumnMappings.Add("disegnogrezzo", "disegnogrezzo");
|
|
tableMapping.ColumnMappings.Add("esponente", "esponente");
|
|
tableMapping.ColumnMappings.Add("codimpianto", "codimpianto");
|
|
tableMapping.ColumnMappings.Add("descimpianto", "descimpianto");
|
|
tableMapping.ColumnMappings.Add("codstampo", "codstampo");
|
|
tableMapping.ColumnMappings.Add("figura", "figura");
|
|
tableMapping.ColumnMappings.Add("datafus", "datafus");
|
|
tableMapping.ColumnMappings.Add("turnofus", "turnofus");
|
|
tableMapping.ColumnMappings.Add("codimballo", "codimballo");
|
|
tableMapping.ColumnMappings.Add("codsoggetto", "codsoggetto");
|
|
tableMapping.ColumnMappings.Add("numcont", "numcont");
|
|
tableMapping.ColumnMappings.Add("tara", "tara");
|
|
tableMapping.ColumnMappings.Add("qta", "qta");
|
|
tableMapping.ColumnMappings.Add("codstato", "codstato");
|
|
tableMapping.ColumnMappings.Add("idxposizione", "idxposizione");
|
|
tableMapping.ColumnMappings.Add("pesotot", "pesotot");
|
|
tableMapping.ColumnMappings.Add("pesocad", "pesocad");
|
|
tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
|
|
tableMapping.ColumnMappings.Add("ModDate", "ModDate");
|
|
tableMapping.ColumnMappings.Add("cognome", "cognome");
|
|
tableMapping.ColumnMappings.Add("nome", "nome");
|
|
tableMapping.ColumnMappings.Add("descstato", "descstato");
|
|
tableMapping.ColumnMappings.Add("descimballo", "descimballo");
|
|
tableMapping.ColumnMappings.Add("CodFamiglia", "CodFamiglia");
|
|
tableMapping.ColumnMappings.Add("DescFamiglia", "DescFamiglia");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::GMW_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "dbo.stp_prtCartByUDC";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.stp_prtCartByUDCDataTable dataTable, string UDC) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((UDC == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
|
}
|
|
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 GMWDataSet.stp_prtCartByUDCDataTable GetData(string UDC) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((UDC == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
|
}
|
|
GMWDataSet.stp_prtCartByUDCDataTable dataTable = new GMWDataSet.stp_prtCartByUDCDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 stp_prtCartMatPrimaByUDCTableAdapter : 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 stp_prtCartMatPrimaByUDCTableAdapter() {
|
|
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 = "stp_prtCartMatPrimaByUDC";
|
|
tableMapping.ColumnMappings.Add("nRapQual", "nRapQual");
|
|
tableMapping.ColumnMappings.Add("DataRapQual", "DataRapQual");
|
|
tableMapping.ColumnMappings.Add("ProgUDC", "ProgUDC");
|
|
tableMapping.ColumnMappings.Add("CodFor", "CodFor");
|
|
tableMapping.ColumnMappings.Add("DestTerz", "DestTerz");
|
|
tableMapping.ColumnMappings.Add("CodLega", "CodLega");
|
|
tableMapping.ColumnMappings.Add("DataPrelFus", "DataPrelFus");
|
|
tableMapping.ColumnMappings.Add("TurnoPrelFus", "TurnoPrelFus");
|
|
tableMapping.ColumnMappings.Add("Qta", "Qta");
|
|
tableMapping.ColumnMappings.Add("DestLega", "DestLega");
|
|
tableMapping.ColumnMappings.Add("LegaScaric", "LegaScaric");
|
|
tableMapping.ColumnMappings.Add("BenesQual", "BenesQual");
|
|
tableMapping.ColumnMappings.Add("UDC", "UDC");
|
|
tableMapping.ColumnMappings.Add("DescFornitore", "DescFornitore");
|
|
tableMapping.ColumnMappings.Add("DescFornitore2", "DescFornitore2");
|
|
tableMapping.ColumnMappings.Add("CodLega2", "CodLega2");
|
|
tableMapping.ColumnMappings.Add("DescLega", "DescLega");
|
|
tableMapping.ColumnMappings.Add("DescLega2", "DescLega2");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::GMW_Reports.Properties.Settings.Default.GMWConnectionString;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "dbo.stp_prtCartMatPrimaByUDC";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(GMWDataSet.stp_prtCartMatPrimaByUDCDataTable dataTable, string UDC) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((UDC == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
|
}
|
|
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 GMWDataSet.stp_prtCartMatPrimaByUDCDataTable GetData(string UDC) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((UDC == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
|
}
|
|
GMWDataSet.stp_prtCartMatPrimaByUDCDataTable dataTable = new GMWDataSet.stp_prtCartMatPrimaByUDCDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[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 QueriesTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.IDbCommand[] _commandCollection;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected global::System.Data.IDbCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.IDbCommand[2];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_Reports.Properties.Settings.Default.GMWConnectionString);
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "dbo.f_padLeft";
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandType = global::System.Data.CommandType.StoredProcedure;
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.ReturnValue, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@string", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@desired_length", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pad_character", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_Reports.Properties.Settings.Default.GMWConnectionString);
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandText = "dbo.staccaNewIdx";
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandType = global::System.Data.CommandType.StoredProcedure;
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual string f_padLeft(string _string, global::System.Nullable<int> desired_length, string pad_character) {
|
|
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[0]));
|
|
if ((_string == null)) {
|
|
command.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[1].Value = ((string)(_string));
|
|
}
|
|
if ((desired_length.HasValue == true)) {
|
|
command.Parameters[2].Value = ((int)(desired_length.Value));
|
|
}
|
|
else {
|
|
command.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((pad_character == null)) {
|
|
command.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[3].Value = ((string)(pad_character));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
try {
|
|
command.ExecuteNonQuery();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
if (((command.Parameters[0].Value == null)
|
|
|| (command.Parameters[0].Value.GetType() == typeof(global::System.DBNull)))) {
|
|
return null;
|
|
}
|
|
else {
|
|
return ((string)(command.Parameters[0].Value));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual global::System.Nullable<int> staccaNewIdx(string CodCompany, string Flusso, string Anno) {
|
|
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[1]));
|
|
if ((CodCompany == null)) {
|
|
command.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[1].Value = ((string)(CodCompany));
|
|
}
|
|
if ((Flusso == null)) {
|
|
command.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[2].Value = ((string)(Flusso));
|
|
}
|
|
if ((Anno == null)) {
|
|
command.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[3].Value = ((string)(Anno));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
try {
|
|
command.ExecuteNonQuery();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
if (((command.Parameters[0].Value == null)
|
|
|| (command.Parameters[0].Value.GetType() == typeof(global::System.DBNull)))) {
|
|
return new global::System.Nullable<int>();
|
|
}
|
|
else {
|
|
return new global::System.Nullable<int>(((int)(command.Parameters[0].Value)));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
|
///</summary>
|
|
[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.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
|
|
"esigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
|
|
public partial class TableAdapterManager : global::System.ComponentModel.Component {
|
|
|
|
private UpdateOrderOption _updateOrder;
|
|
|
|
private AnagArticoliTableAdapter _anagArticoliTableAdapter;
|
|
|
|
private AnagBilanceTableAdapter _anagBilanceTableAdapter;
|
|
|
|
private AnagCompanyTableAdapter _anagCompanyTableAdapter;
|
|
|
|
private AnagImpiantiTableAdapter _anagImpiantiTableAdapter;
|
|
|
|
private AnagOdpTableAdapter _anagOdpTableAdapter;
|
|
|
|
private AnagSitiTableAdapter _anagSitiTableAdapter;
|
|
|
|
private AnagStatiTableAdapter _anagStatiTableAdapter;
|
|
|
|
private ContatoriUdcTableAdapter _contatoriUdcTableAdapter;
|
|
|
|
private Impianti2ArticoliTableAdapter _impianti2ArticoliTableAdapter;
|
|
|
|
private TabStatoOdpUdcTableAdapter _tabStatoOdpUdcTableAdapter;
|
|
|
|
private bool _backupDataSetBeforeUpdate;
|
|
|
|
private global::System.Data.IDbConnection _connection;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public UpdateOrderOption UpdateOrder {
|
|
get {
|
|
return this._updateOrder;
|
|
}
|
|
set {
|
|
this._updateOrder = 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 AnagArticoliTableAdapter AnagArticoliTableAdapter {
|
|
get {
|
|
return this._anagArticoliTableAdapter;
|
|
}
|
|
set {
|
|
this._anagArticoliTableAdapter = 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 AnagBilanceTableAdapter AnagBilanceTableAdapter {
|
|
get {
|
|
return this._anagBilanceTableAdapter;
|
|
}
|
|
set {
|
|
this._anagBilanceTableAdapter = 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 AnagCompanyTableAdapter AnagCompanyTableAdapter {
|
|
get {
|
|
return this._anagCompanyTableAdapter;
|
|
}
|
|
set {
|
|
this._anagCompanyTableAdapter = 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 AnagImpiantiTableAdapter AnagImpiantiTableAdapter {
|
|
get {
|
|
return this._anagImpiantiTableAdapter;
|
|
}
|
|
set {
|
|
this._anagImpiantiTableAdapter = 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 AnagOdpTableAdapter AnagOdpTableAdapter {
|
|
get {
|
|
return this._anagOdpTableAdapter;
|
|
}
|
|
set {
|
|
this._anagOdpTableAdapter = 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 AnagSitiTableAdapter AnagSitiTableAdapter {
|
|
get {
|
|
return this._anagSitiTableAdapter;
|
|
}
|
|
set {
|
|
this._anagSitiTableAdapter = 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 AnagStatiTableAdapter AnagStatiTableAdapter {
|
|
get {
|
|
return this._anagStatiTableAdapter;
|
|
}
|
|
set {
|
|
this._anagStatiTableAdapter = 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 ContatoriUdcTableAdapter ContatoriUdcTableAdapter {
|
|
get {
|
|
return this._contatoriUdcTableAdapter;
|
|
}
|
|
set {
|
|
this._contatoriUdcTableAdapter = 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 Impianti2ArticoliTableAdapter Impianti2ArticoliTableAdapter {
|
|
get {
|
|
return this._impianti2ArticoliTableAdapter;
|
|
}
|
|
set {
|
|
this._impianti2ArticoliTableAdapter = 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 TabStatoOdpUdcTableAdapter TabStatoOdpUdcTableAdapter {
|
|
get {
|
|
return this._tabStatoOdpUdcTableAdapter;
|
|
}
|
|
set {
|
|
this._tabStatoOdpUdcTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public bool BackupDataSetBeforeUpdate {
|
|
get {
|
|
return this._backupDataSetBeforeUpdate;
|
|
}
|
|
set {
|
|
this._backupDataSetBeforeUpdate = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public global::System.Data.IDbConnection Connection {
|
|
get {
|
|
if ((this._connection != null)) {
|
|
return this._connection;
|
|
}
|
|
if (((this._anagArticoliTableAdapter != null)
|
|
&& (this._anagArticoliTableAdapter.Connection != null))) {
|
|
return this._anagArticoliTableAdapter.Connection;
|
|
}
|
|
if (((this._anagBilanceTableAdapter != null)
|
|
&& (this._anagBilanceTableAdapter.Connection != null))) {
|
|
return this._anagBilanceTableAdapter.Connection;
|
|
}
|
|
if (((this._anagCompanyTableAdapter != null)
|
|
&& (this._anagCompanyTableAdapter.Connection != null))) {
|
|
return this._anagCompanyTableAdapter.Connection;
|
|
}
|
|
if (((this._anagImpiantiTableAdapter != null)
|
|
&& (this._anagImpiantiTableAdapter.Connection != null))) {
|
|
return this._anagImpiantiTableAdapter.Connection;
|
|
}
|
|
if (((this._anagOdpTableAdapter != null)
|
|
&& (this._anagOdpTableAdapter.Connection != null))) {
|
|
return this._anagOdpTableAdapter.Connection;
|
|
}
|
|
if (((this._anagSitiTableAdapter != null)
|
|
&& (this._anagSitiTableAdapter.Connection != null))) {
|
|
return this._anagSitiTableAdapter.Connection;
|
|
}
|
|
if (((this._anagStatiTableAdapter != null)
|
|
&& (this._anagStatiTableAdapter.Connection != null))) {
|
|
return this._anagStatiTableAdapter.Connection;
|
|
}
|
|
if (((this._contatoriUdcTableAdapter != null)
|
|
&& (this._contatoriUdcTableAdapter.Connection != null))) {
|
|
return this._contatoriUdcTableAdapter.Connection;
|
|
}
|
|
if (((this._impianti2ArticoliTableAdapter != null)
|
|
&& (this._impianti2ArticoliTableAdapter.Connection != null))) {
|
|
return this._impianti2ArticoliTableAdapter.Connection;
|
|
}
|
|
if (((this._tabStatoOdpUdcTableAdapter != null)
|
|
&& (this._tabStatoOdpUdcTableAdapter.Connection != null))) {
|
|
return this._tabStatoOdpUdcTableAdapter.Connection;
|
|
}
|
|
return null;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int TableAdapterInstanceCount {
|
|
get {
|
|
int count = 0;
|
|
if ((this._anagArticoliTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._anagBilanceTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._anagCompanyTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._anagImpiantiTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._anagOdpTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._anagSitiTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._anagStatiTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._contatoriUdcTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._impianti2ArticoliTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._tabStatoOdpUdcTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
return count;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Update rows in top-down order.
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private int UpdateUpdatedRows(GMWDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
int result = 0;
|
|
if ((this._anagCompanyTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.AnagCompany.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._anagCompanyTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._anagSitiTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._anagSitiTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._anagOdpTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._anagOdpTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._anagStatiTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._anagStatiTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._anagArticoliTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._anagArticoliTableAdapter.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);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._anagImpiantiTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._contatoriUdcTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.ContatoriUdc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._contatoriUdcTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._anagBilanceTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._anagBilanceTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._tabStatoOdpUdcTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._tabStatoOdpUdcTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._impianti2ArticoliTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._impianti2ArticoliTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
///Insert rows in top-down order.
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private int UpdateInsertedRows(GMWDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
int result = 0;
|
|
if ((this._anagCompanyTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.AnagCompany.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._anagCompanyTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._anagSitiTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._anagSitiTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._anagOdpTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._anagOdpTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._anagStatiTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._anagStatiTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._anagArticoliTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._anagArticoliTableAdapter.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)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._anagImpiantiTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._contatoriUdcTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.ContatoriUdc.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._contatoriUdcTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._anagBilanceTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._anagBilanceTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._tabStatoOdpUdcTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._tabStatoOdpUdcTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._impianti2ArticoliTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._impianti2ArticoliTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
///Delete rows in bottom-up order.
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private int UpdateDeletedRows(GMWDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
|
int result = 0;
|
|
if ((this._impianti2ArticoliTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._impianti2ArticoliTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._tabStatoOdpUdcTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._tabStatoOdpUdcTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._anagBilanceTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._anagBilanceTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._contatoriUdcTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.ContatoriUdc.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._contatoriUdcTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._anagImpiantiTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.AnagImpianti.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._anagImpiantiTableAdapter.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)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._anagArticoliTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._anagStatiTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._anagStatiTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._anagOdpTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._anagOdpTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._anagSitiTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._anagSitiTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._anagCompanyTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.AnagCompany.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._anagCompanyTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
if (((updatedRows == null)
|
|
|| (updatedRows.Length < 1))) {
|
|
return updatedRows;
|
|
}
|
|
if (((allAddedRows == null)
|
|
|| (allAddedRows.Count < 1))) {
|
|
return updatedRows;
|
|
}
|
|
global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
|
|
global::System.Data.DataRow row = updatedRows[i];
|
|
if ((allAddedRows.Contains(row) == false)) {
|
|
realUpdatedRows.Add(row);
|
|
}
|
|
}
|
|
return realUpdatedRows.ToArray();
|
|
}
|
|
|
|
/// <summary>
|
|
///Update all changes to the dataset.
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public virtual int UpdateAll(GMWDataSet dataSet) {
|
|
if ((dataSet == null)) {
|
|
throw new global::System.ArgumentNullException("dataSet");
|
|
}
|
|
if ((dataSet.HasChanges() == false)) {
|
|
return 0;
|
|
}
|
|
if (((this._anagArticoliTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._anagArticoliTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
"tring.");
|
|
}
|
|
if (((this._anagBilanceTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._anagBilanceTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
"tring.");
|
|
}
|
|
if (((this._anagCompanyTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._anagCompanyTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
"tring.");
|
|
}
|
|
if (((this._anagImpiantiTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._anagImpiantiTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
"tring.");
|
|
}
|
|
if (((this._anagOdpTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._anagOdpTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
"tring.");
|
|
}
|
|
if (((this._anagSitiTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._anagSitiTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
"tring.");
|
|
}
|
|
if (((this._anagStatiTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._anagStatiTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
"tring.");
|
|
}
|
|
if (((this._contatoriUdcTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._contatoriUdcTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
"tring.");
|
|
}
|
|
if (((this._impianti2ArticoliTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._impianti2ArticoliTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
"tring.");
|
|
}
|
|
if (((this._tabStatoOdpUdcTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._tabStatoOdpUdcTableAdapter.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" +
|
|
"ger TableAdapter property to a valid TableAdapter instance.");
|
|
}
|
|
bool workConnOpened = false;
|
|
if (((workConnection.State & global::System.Data.ConnectionState.Broken)
|
|
== global::System.Data.ConnectionState.Broken)) {
|
|
workConnection.Close();
|
|
}
|
|
if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
|
|
workConnection.Open();
|
|
workConnOpened = true;
|
|
}
|
|
global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
|
|
if ((workTransaction == null)) {
|
|
throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
|
|
"ctions or the current state is not allowing the transaction to begin.");
|
|
}
|
|
global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
|
|
global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
|
|
int result = 0;
|
|
global::System.Data.DataSet backupDataSet = null;
|
|
if (this.BackupDataSetBeforeUpdate) {
|
|
backupDataSet = new global::System.Data.DataSet();
|
|
backupDataSet.Merge(dataSet);
|
|
}
|
|
try {
|
|
// ---- Prepare for update -----------
|
|
//
|
|
if ((this._anagArticoliTableAdapter != null)) {
|
|
revertConnections.Add(this._anagArticoliTableAdapter, this._anagArticoliTableAdapter.Connection);
|
|
this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._anagArticoliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._anagArticoliTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._anagBilanceTableAdapter != null)) {
|
|
revertConnections.Add(this._anagBilanceTableAdapter, this._anagBilanceTableAdapter.Connection);
|
|
this._anagBilanceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._anagBilanceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._anagBilanceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._anagBilanceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._anagBilanceTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._anagCompanyTableAdapter != null)) {
|
|
revertConnections.Add(this._anagCompanyTableAdapter, this._anagCompanyTableAdapter.Connection);
|
|
this._anagCompanyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._anagCompanyTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._anagCompanyTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._anagCompanyTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._anagCompanyTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._anagImpiantiTableAdapter != null)) {
|
|
revertConnections.Add(this._anagImpiantiTableAdapter, this._anagImpiantiTableAdapter.Connection);
|
|
this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._anagImpiantiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._anagImpiantiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._anagImpiantiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._anagImpiantiTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._anagOdpTableAdapter != null)) {
|
|
revertConnections.Add(this._anagOdpTableAdapter, this._anagOdpTableAdapter.Connection);
|
|
this._anagOdpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._anagOdpTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._anagOdpTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._anagOdpTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._anagOdpTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._anagSitiTableAdapter != null)) {
|
|
revertConnections.Add(this._anagSitiTableAdapter, this._anagSitiTableAdapter.Connection);
|
|
this._anagSitiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._anagSitiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._anagSitiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._anagSitiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._anagSitiTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._anagStatiTableAdapter != null)) {
|
|
revertConnections.Add(this._anagStatiTableAdapter, this._anagStatiTableAdapter.Connection);
|
|
this._anagStatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._anagStatiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._anagStatiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._anagStatiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._anagStatiTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._contatoriUdcTableAdapter != null)) {
|
|
revertConnections.Add(this._contatoriUdcTableAdapter, this._contatoriUdcTableAdapter.Connection);
|
|
this._contatoriUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._contatoriUdcTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._contatoriUdcTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._contatoriUdcTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._contatoriUdcTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._impianti2ArticoliTableAdapter != null)) {
|
|
revertConnections.Add(this._impianti2ArticoliTableAdapter, this._impianti2ArticoliTableAdapter.Connection);
|
|
this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._impianti2ArticoliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._impianti2ArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._impianti2ArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._impianti2ArticoliTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._tabStatoOdpUdcTableAdapter != null)) {
|
|
revertConnections.Add(this._tabStatoOdpUdcTableAdapter, this._tabStatoOdpUdcTableAdapter.Connection);
|
|
this._tabStatoOdpUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._tabStatoOdpUdcTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._tabStatoOdpUdcTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._tabStatoOdpUdcTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._tabStatoOdpUdcTableAdapter.Adapter);
|
|
}
|
|
}
|
|
//
|
|
//---- Perform updates -----------
|
|
//
|
|
if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
|
|
result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
|
result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
|
}
|
|
else {
|
|
result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
|
result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
|
}
|
|
result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
|
|
//
|
|
//---- Commit updates -----------
|
|
//
|
|
workTransaction.Commit();
|
|
if ((0 < allAddedRows.Count)) {
|
|
global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
|
allAddedRows.CopyTo(rows);
|
|
for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
|
global::System.Data.DataRow row = rows[i];
|
|
row.AcceptChanges();
|
|
}
|
|
}
|
|
if ((0 < allChangedRows.Count)) {
|
|
global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
|
|
allChangedRows.CopyTo(rows);
|
|
for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
|
global::System.Data.DataRow row = rows[i];
|
|
row.AcceptChanges();
|
|
}
|
|
}
|
|
}
|
|
catch (global::System.Exception ex) {
|
|
workTransaction.Rollback();
|
|
// ---- Restore the dataset -----------
|
|
if (this.BackupDataSetBeforeUpdate) {
|
|
global::System.Diagnostics.Debug.Assert((backupDataSet != null));
|
|
dataSet.Clear();
|
|
dataSet.Merge(backupDataSet);
|
|
}
|
|
else {
|
|
if ((0 < allAddedRows.Count)) {
|
|
global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
|
allAddedRows.CopyTo(rows);
|
|
for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
|
global::System.Data.DataRow row = rows[i];
|
|
row.AcceptChanges();
|
|
row.SetAdded();
|
|
}
|
|
}
|
|
}
|
|
throw ex;
|
|
}
|
|
finally {
|
|
if (workConnOpened) {
|
|
workConnection.Close();
|
|
}
|
|
if ((this._anagArticoliTableAdapter != null)) {
|
|
this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagArticoliTableAdapter]));
|
|
this._anagArticoliTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._anagBilanceTableAdapter != null)) {
|
|
this._anagBilanceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagBilanceTableAdapter]));
|
|
this._anagBilanceTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._anagCompanyTableAdapter != null)) {
|
|
this._anagCompanyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagCompanyTableAdapter]));
|
|
this._anagCompanyTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._anagImpiantiTableAdapter != null)) {
|
|
this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImpiantiTableAdapter]));
|
|
this._anagImpiantiTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._anagOdpTableAdapter != null)) {
|
|
this._anagOdpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagOdpTableAdapter]));
|
|
this._anagOdpTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._anagSitiTableAdapter != null)) {
|
|
this._anagSitiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagSitiTableAdapter]));
|
|
this._anagSitiTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._anagStatiTableAdapter != null)) {
|
|
this._anagStatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagStatiTableAdapter]));
|
|
this._anagStatiTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._contatoriUdcTableAdapter != null)) {
|
|
this._contatoriUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._contatoriUdcTableAdapter]));
|
|
this._contatoriUdcTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._impianti2ArticoliTableAdapter != null)) {
|
|
this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._impianti2ArticoliTableAdapter]));
|
|
this._impianti2ArticoliTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._tabStatoOdpUdcTableAdapter != null)) {
|
|
this._tabStatoOdpUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tabStatoOdpUdcTableAdapter]));
|
|
this._tabStatoOdpUdcTableAdapter.Transaction = null;
|
|
}
|
|
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
|
|
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
|
|
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
|
|
for (int i = 0; (i < adapters.Length); i = (i + 1)) {
|
|
global::System.Data.Common.DataAdapter adapter = adapters[i];
|
|
adapter.AcceptChangesDuringUpdate = true;
|
|
}
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
|
|
global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
|
|
if ((this._connection != null)) {
|
|
return true;
|
|
}
|
|
if (((this.Connection == null)
|
|
|| (inputConnection == null))) {
|
|
return true;
|
|
}
|
|
if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/// <summary>
|
|
///Update Order Option
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
public enum UpdateOrderOption {
|
|
|
|
InsertUpdateDelete = 0,
|
|
|
|
UpdateInsertDelete = 1,
|
|
}
|
|
|
|
/// <summary>
|
|
///Used to sort self-referenced table's rows
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
|
private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
|
|
|
|
private global::System.Data.DataRelation _relation;
|
|
|
|
private int _childFirst;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
|
|
this._relation = relation;
|
|
if (childFirst) {
|
|
this._childFirst = -1;
|
|
}
|
|
else {
|
|
this._childFirst = 1;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private bool IsChildAndParent(global::System.Data.DataRow child, global::System.Data.DataRow parent) {
|
|
global::System.Diagnostics.Debug.Assert((child != null));
|
|
global::System.Diagnostics.Debug.Assert((parent != null));
|
|
global::System.Data.DataRow newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
for (
|
|
; ((newParent != null)
|
|
&& ((object.ReferenceEquals(newParent, child) == false)
|
|
&& (object.ReferenceEquals(newParent, parent) == false)));
|
|
) {
|
|
newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
}
|
|
if ((newParent == null)) {
|
|
for (newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); ((newParent != null)
|
|
&& ((object.ReferenceEquals(newParent, child) == false)
|
|
&& (object.ReferenceEquals(newParent, parent) == false)));
|
|
) {
|
|
newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
|
}
|
|
}
|
|
if (object.ReferenceEquals(newParent, parent)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
|
|
if (object.ReferenceEquals(row1, row2)) {
|
|
return 0;
|
|
}
|
|
if ((row1 == null)) {
|
|
return -1;
|
|
}
|
|
if ((row2 == null)) {
|
|
return 1;
|
|
}
|
|
|
|
// Is row1 the child or grandchild of row2
|
|
if (this.IsChildAndParent(row1, row2)) {
|
|
return this._childFirst;
|
|
}
|
|
|
|
// Is row2 the child or grandchild of row1
|
|
if (this.IsChildAndParent(row2, row1)) {
|
|
return (-1 * this._childFirst);
|
|
}
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#pragma warning restore 1591 |