Files
GMW/GMW/GMW_data/DS_DataMatrix.Designer.cs
T
samuele 01db3fbedb Completata gestione gitterbox! con pagina fullscreen!!!
Aggiunto nuovo installer

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@362 365432ac-a1b5-4ffd-bb28-6d3099d32164
2011-05-06 13:27:36 +00:00

2966 lines
184 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4952
//
// 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_data {
/// <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("DS_DataMatrix")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
public partial class DS_DataMatrix : global::System.Data.DataSet {
private TranscodificaParticolariDataTable tableTranscodificaParticolari;
private ElencoDataMatrixDataTable tableElencoDataMatrix;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public DS_DataMatrix() {
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 DS_DataMatrix(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["TranscodificaParticolari"] != null)) {
base.Tables.Add(new TranscodificaParticolariDataTable(ds.Tables["TranscodificaParticolari"]));
}
if ((ds.Tables["ElencoDataMatrix"] != null)) {
base.Tables.Add(new ElencoDataMatrixDataTable(ds.Tables["ElencoDataMatrix"]));
}
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 TranscodificaParticolariDataTable TranscodificaParticolari {
get {
return this.tableTranscodificaParticolari;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public ElencoDataMatrixDataTable ElencoDataMatrix {
get {
return this.tableElencoDataMatrix;
}
}
[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() {
DS_DataMatrix cln = ((DS_DataMatrix)(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["TranscodificaParticolari"] != null)) {
base.Tables.Add(new TranscodificaParticolariDataTable(ds.Tables["TranscodificaParticolari"]));
}
if ((ds.Tables["ElencoDataMatrix"] != null)) {
base.Tables.Add(new ElencoDataMatrixDataTable(ds.Tables["ElencoDataMatrix"]));
}
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.tableTranscodificaParticolari = ((TranscodificaParticolariDataTable)(base.Tables["TranscodificaParticolari"]));
if ((initTable == true)) {
if ((this.tableTranscodificaParticolari != null)) {
this.tableTranscodificaParticolari.InitVars();
}
}
this.tableElencoDataMatrix = ((ElencoDataMatrixDataTable)(base.Tables["ElencoDataMatrix"]));
if ((initTable == true)) {
if ((this.tableElencoDataMatrix != null)) {
this.tableElencoDataMatrix.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.DataSetName = "DS_DataMatrix";
this.Prefix = "";
this.Namespace = "http://tempuri.org/DS_DataMatrix.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tableTranscodificaParticolari = new TranscodificaParticolariDataTable();
base.Tables.Add(this.tableTranscodificaParticolari);
this.tableElencoDataMatrix = new ElencoDataMatrixDataTable();
base.Tables.Add(this.tableElencoDataMatrix);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeTranscodificaParticolari() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeElencoDataMatrix() {
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) {
DS_DataMatrix ds = new DS_DataMatrix();
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 TranscodificaParticolariRowChangeEventHandler(object sender, TranscodificaParticolariRowChangeEvent e);
public delegate void ElencoDataMatrixRowChangeEventHandler(object sender, ElencoDataMatrixRowChangeEvent 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 TranscodificaParticolariDataTable : global::System.Data.TypedTableBase<TranscodificaParticolariRow> {
private global::System.Data.DataColumn columnNumDisegno;
private global::System.Data.DataColumn columnEsponenteDisegno;
private global::System.Data.DataColumn columnParticolare;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public TranscodificaParticolariDataTable() {
this.TableName = "TranscodificaParticolari";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal TranscodificaParticolariDataTable(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 TranscodificaParticolariDataTable(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 NumDisegnoColumn {
get {
return this.columnNumDisegno;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn EsponenteDisegnoColumn {
get {
return this.columnEsponenteDisegno;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn ParticolareColumn {
get {
return this.columnParticolare;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public TranscodificaParticolariRow this[int index] {
get {
return ((TranscodificaParticolariRow)(this.Rows[index]));
}
}
public event TranscodificaParticolariRowChangeEventHandler TranscodificaParticolariRowChanging;
public event TranscodificaParticolariRowChangeEventHandler TranscodificaParticolariRowChanged;
public event TranscodificaParticolariRowChangeEventHandler TranscodificaParticolariRowDeleting;
public event TranscodificaParticolariRowChangeEventHandler TranscodificaParticolariRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddTranscodificaParticolariRow(TranscodificaParticolariRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public TranscodificaParticolariRow AddTranscodificaParticolariRow(decimal NumDisegno, byte EsponenteDisegno, string Particolare) {
TranscodificaParticolariRow rowTranscodificaParticolariRow = ((TranscodificaParticolariRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
NumDisegno,
EsponenteDisegno,
Particolare};
rowTranscodificaParticolariRow.ItemArray = columnValuesArray;
this.Rows.Add(rowTranscodificaParticolariRow);
return rowTranscodificaParticolariRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public TranscodificaParticolariRow FindByNumDisegnoEsponenteDisegno(decimal NumDisegno, byte EsponenteDisegno) {
return ((TranscodificaParticolariRow)(this.Rows.Find(new object[] {
NumDisegno,
EsponenteDisegno})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override global::System.Data.DataTable Clone() {
TranscodificaParticolariDataTable cln = ((TranscodificaParticolariDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataTable CreateInstance() {
return new TranscodificaParticolariDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnNumDisegno = base.Columns["NumDisegno"];
this.columnEsponenteDisegno = base.Columns["EsponenteDisegno"];
this.columnParticolare = base.Columns["Particolare"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnNumDisegno = new global::System.Data.DataColumn("NumDisegno", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNumDisegno);
this.columnEsponenteDisegno = new global::System.Data.DataColumn("EsponenteDisegno", typeof(byte), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnEsponenteDisegno);
this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnParticolare);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnNumDisegno,
this.columnEsponenteDisegno}, true));
this.columnNumDisegno.AllowDBNull = false;
this.columnEsponenteDisegno.AllowDBNull = false;
this.columnParticolare.AllowDBNull = false;
this.columnParticolare.MaxLength = 15;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public TranscodificaParticolariRow NewTranscodificaParticolariRow() {
return ((TranscodificaParticolariRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new TranscodificaParticolariRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Type GetRowType() {
return typeof(TranscodificaParticolariRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.TranscodificaParticolariRowChanged != null)) {
this.TranscodificaParticolariRowChanged(this, new TranscodificaParticolariRowChangeEvent(((TranscodificaParticolariRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.TranscodificaParticolariRowChanging != null)) {
this.TranscodificaParticolariRowChanging(this, new TranscodificaParticolariRowChangeEvent(((TranscodificaParticolariRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.TranscodificaParticolariRowDeleted != null)) {
this.TranscodificaParticolariRowDeleted(this, new TranscodificaParticolariRowChangeEvent(((TranscodificaParticolariRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.TranscodificaParticolariRowDeleting != null)) {
this.TranscodificaParticolariRowDeleting(this, new TranscodificaParticolariRowChangeEvent(((TranscodificaParticolariRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveTranscodificaParticolariRow(TranscodificaParticolariRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
DS_DataMatrix ds = new DS_DataMatrix();
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 = "TranscodificaParticolariDataTable";
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 ElencoDataMatrixDataTable : global::System.Data.TypedTableBase<ElencoDataMatrixRow> {
private global::System.Data.DataColumn columnCodDataMatrix;
private global::System.Data.DataColumn columnCodGitterbox;
private global::System.Data.DataColumn columnNumConchiglia;
private global::System.Data.DataColumn columnNumDisegno;
private global::System.Data.DataColumn columnEsponenteDisegno;
private global::System.Data.DataColumn columnCodDifettoScarto;
private global::System.Data.DataColumn columnInizioPreparazione;
private global::System.Data.DataColumn columnFinePreparazione;
private global::System.Data.DataColumn columnInizioIniezione;
private global::System.Data.DataColumn columnFineIniezione;
private global::System.Data.DataColumn columnMagDestinazione;
private global::System.Data.DataColumn columnDataImport;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ElencoDataMatrixDataTable() {
this.TableName = "ElencoDataMatrix";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal ElencoDataMatrixDataTable(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 ElencoDataMatrixDataTable(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 CodDataMatrixColumn {
get {
return this.columnCodDataMatrix;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn CodGitterboxColumn {
get {
return this.columnCodGitterbox;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn NumConchigliaColumn {
get {
return this.columnNumConchiglia;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn NumDisegnoColumn {
get {
return this.columnNumDisegno;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn EsponenteDisegnoColumn {
get {
return this.columnEsponenteDisegno;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn CodDifettoScartoColumn {
get {
return this.columnCodDifettoScarto;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn InizioPreparazioneColumn {
get {
return this.columnInizioPreparazione;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn FinePreparazioneColumn {
get {
return this.columnFinePreparazione;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn InizioIniezioneColumn {
get {
return this.columnInizioIniezione;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn FineIniezioneColumn {
get {
return this.columnFineIniezione;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn MagDestinazioneColumn {
get {
return this.columnMagDestinazione;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn DataImportColumn {
get {
return this.columnDataImport;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ElencoDataMatrixRow this[int index] {
get {
return ((ElencoDataMatrixRow)(this.Rows[index]));
}
}
public event ElencoDataMatrixRowChangeEventHandler ElencoDataMatrixRowChanging;
public event ElencoDataMatrixRowChangeEventHandler ElencoDataMatrixRowChanged;
public event ElencoDataMatrixRowChangeEventHandler ElencoDataMatrixRowDeleting;
public event ElencoDataMatrixRowChangeEventHandler ElencoDataMatrixRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddElencoDataMatrixRow(ElencoDataMatrixRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ElencoDataMatrixRow AddElencoDataMatrixRow(decimal CodDataMatrix, string CodGitterbox, int NumConchiglia, decimal NumDisegno, byte EsponenteDisegno, string CodDifettoScarto, System.DateTime InizioPreparazione, System.DateTime FinePreparazione, System.DateTime InizioIniezione, System.DateTime FineIniezione, string MagDestinazione, System.DateTime DataImport) {
ElencoDataMatrixRow rowElencoDataMatrixRow = ((ElencoDataMatrixRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
CodDataMatrix,
CodGitterbox,
NumConchiglia,
NumDisegno,
EsponenteDisegno,
CodDifettoScarto,
InizioPreparazione,
FinePreparazione,
InizioIniezione,
FineIniezione,
MagDestinazione,
DataImport};
rowElencoDataMatrixRow.ItemArray = columnValuesArray;
this.Rows.Add(rowElencoDataMatrixRow);
return rowElencoDataMatrixRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ElencoDataMatrixRow FindByCodDataMatrix(decimal CodDataMatrix) {
return ((ElencoDataMatrixRow)(this.Rows.Find(new object[] {
CodDataMatrix})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override global::System.Data.DataTable Clone() {
ElencoDataMatrixDataTable cln = ((ElencoDataMatrixDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataTable CreateInstance() {
return new ElencoDataMatrixDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnCodDataMatrix = base.Columns["CodDataMatrix"];
this.columnCodGitterbox = base.Columns["CodGitterbox"];
this.columnNumConchiglia = base.Columns["NumConchiglia"];
this.columnNumDisegno = base.Columns["NumDisegno"];
this.columnEsponenteDisegno = base.Columns["EsponenteDisegno"];
this.columnCodDifettoScarto = base.Columns["CodDifettoScarto"];
this.columnInizioPreparazione = base.Columns["InizioPreparazione"];
this.columnFinePreparazione = base.Columns["FinePreparazione"];
this.columnInizioIniezione = base.Columns["InizioIniezione"];
this.columnFineIniezione = base.Columns["FineIniezione"];
this.columnMagDestinazione = base.Columns["MagDestinazione"];
this.columnDataImport = base.Columns["DataImport"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnCodDataMatrix = new global::System.Data.DataColumn("CodDataMatrix", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodDataMatrix);
this.columnCodGitterbox = new global::System.Data.DataColumn("CodGitterbox", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodGitterbox);
this.columnNumConchiglia = new global::System.Data.DataColumn("NumConchiglia", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNumConchiglia);
this.columnNumDisegno = new global::System.Data.DataColumn("NumDisegno", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNumDisegno);
this.columnEsponenteDisegno = new global::System.Data.DataColumn("EsponenteDisegno", typeof(byte), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnEsponenteDisegno);
this.columnCodDifettoScarto = new global::System.Data.DataColumn("CodDifettoScarto", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodDifettoScarto);
this.columnInizioPreparazione = new global::System.Data.DataColumn("InizioPreparazione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnInizioPreparazione);
this.columnFinePreparazione = new global::System.Data.DataColumn("FinePreparazione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFinePreparazione);
this.columnInizioIniezione = new global::System.Data.DataColumn("InizioIniezione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnInizioIniezione);
this.columnFineIniezione = new global::System.Data.DataColumn("FineIniezione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFineIniezione);
this.columnMagDestinazione = new global::System.Data.DataColumn("MagDestinazione", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnMagDestinazione);
this.columnDataImport = new global::System.Data.DataColumn("DataImport", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDataImport);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnCodDataMatrix}, true));
this.columnCodDataMatrix.AllowDBNull = false;
this.columnCodDataMatrix.Unique = true;
this.columnCodGitterbox.AllowDBNull = false;
this.columnCodGitterbox.MaxLength = 10;
this.columnCodDifettoScarto.MaxLength = 5;
this.columnMagDestinazione.MaxLength = 2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ElencoDataMatrixRow NewElencoDataMatrixRow() {
return ((ElencoDataMatrixRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new ElencoDataMatrixRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Type GetRowType() {
return typeof(ElencoDataMatrixRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ElencoDataMatrixRowChanged != null)) {
this.ElencoDataMatrixRowChanged(this, new ElencoDataMatrixRowChangeEvent(((ElencoDataMatrixRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ElencoDataMatrixRowChanging != null)) {
this.ElencoDataMatrixRowChanging(this, new ElencoDataMatrixRowChangeEvent(((ElencoDataMatrixRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ElencoDataMatrixRowDeleted != null)) {
this.ElencoDataMatrixRowDeleted(this, new ElencoDataMatrixRowChangeEvent(((ElencoDataMatrixRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ElencoDataMatrixRowDeleting != null)) {
this.ElencoDataMatrixRowDeleting(this, new ElencoDataMatrixRowChangeEvent(((ElencoDataMatrixRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveElencoDataMatrixRow(ElencoDataMatrixRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
DS_DataMatrix ds = new DS_DataMatrix();
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 = "ElencoDataMatrixDataTable";
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 TranscodificaParticolariRow : global::System.Data.DataRow {
private TranscodificaParticolariDataTable tableTranscodificaParticolari;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal TranscodificaParticolariRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableTranscodificaParticolari = ((TranscodificaParticolariDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public decimal NumDisegno {
get {
return ((decimal)(this[this.tableTranscodificaParticolari.NumDisegnoColumn]));
}
set {
this[this.tableTranscodificaParticolari.NumDisegnoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public byte EsponenteDisegno {
get {
return ((byte)(this[this.tableTranscodificaParticolari.EsponenteDisegnoColumn]));
}
set {
this[this.tableTranscodificaParticolari.EsponenteDisegnoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Particolare {
get {
return ((string)(this[this.tableTranscodificaParticolari.ParticolareColumn]));
}
set {
this[this.tableTranscodificaParticolari.ParticolareColumn] = value;
}
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class ElencoDataMatrixRow : global::System.Data.DataRow {
private ElencoDataMatrixDataTable tableElencoDataMatrix;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal ElencoDataMatrixRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableElencoDataMatrix = ((ElencoDataMatrixDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public decimal CodDataMatrix {
get {
return ((decimal)(this[this.tableElencoDataMatrix.CodDataMatrixColumn]));
}
set {
this[this.tableElencoDataMatrix.CodDataMatrixColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CodGitterbox {
get {
return ((string)(this[this.tableElencoDataMatrix.CodGitterboxColumn]));
}
set {
this[this.tableElencoDataMatrix.CodGitterboxColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int NumConchiglia {
get {
try {
return ((int)(this[this.tableElencoDataMatrix.NumConchigliaColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'NumConchiglia\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.NumConchigliaColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public decimal NumDisegno {
get {
try {
return ((decimal)(this[this.tableElencoDataMatrix.NumDisegnoColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'NumDisegno\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.NumDisegnoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public byte EsponenteDisegno {
get {
try {
return ((byte)(this[this.tableElencoDataMatrix.EsponenteDisegnoColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'EsponenteDisegno\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.EsponenteDisegnoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CodDifettoScarto {
get {
try {
return ((string)(this[this.tableElencoDataMatrix.CodDifettoScartoColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'CodDifettoScarto\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.CodDifettoScartoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.DateTime InizioPreparazione {
get {
try {
return ((global::System.DateTime)(this[this.tableElencoDataMatrix.InizioPreparazioneColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'InizioPreparazione\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.InizioPreparazioneColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.DateTime FinePreparazione {
get {
try {
return ((global::System.DateTime)(this[this.tableElencoDataMatrix.FinePreparazioneColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'FinePreparazione\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.FinePreparazioneColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.DateTime InizioIniezione {
get {
try {
return ((global::System.DateTime)(this[this.tableElencoDataMatrix.InizioIniezioneColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'InizioIniezione\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.InizioIniezioneColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.DateTime FineIniezione {
get {
try {
return ((global::System.DateTime)(this[this.tableElencoDataMatrix.FineIniezioneColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'FineIniezione\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.FineIniezioneColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string MagDestinazione {
get {
try {
return ((string)(this[this.tableElencoDataMatrix.MagDestinazioneColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'MagDestinazione\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.MagDestinazioneColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.DateTime DataImport {
get {
try {
return ((global::System.DateTime)(this[this.tableElencoDataMatrix.DataImportColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'DataImport\' in table \'ElencoDataMatrix\' is DBNull.", e);
}
}
set {
this[this.tableElencoDataMatrix.DataImportColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsNumConchigliaNull() {
return this.IsNull(this.tableElencoDataMatrix.NumConchigliaColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetNumConchigliaNull() {
this[this.tableElencoDataMatrix.NumConchigliaColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsNumDisegnoNull() {
return this.IsNull(this.tableElencoDataMatrix.NumDisegnoColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetNumDisegnoNull() {
this[this.tableElencoDataMatrix.NumDisegnoColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsEsponenteDisegnoNull() {
return this.IsNull(this.tableElencoDataMatrix.EsponenteDisegnoColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetEsponenteDisegnoNull() {
this[this.tableElencoDataMatrix.EsponenteDisegnoColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsCodDifettoScartoNull() {
return this.IsNull(this.tableElencoDataMatrix.CodDifettoScartoColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetCodDifettoScartoNull() {
this[this.tableElencoDataMatrix.CodDifettoScartoColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsInizioPreparazioneNull() {
return this.IsNull(this.tableElencoDataMatrix.InizioPreparazioneColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetInizioPreparazioneNull() {
this[this.tableElencoDataMatrix.InizioPreparazioneColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsFinePreparazioneNull() {
return this.IsNull(this.tableElencoDataMatrix.FinePreparazioneColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetFinePreparazioneNull() {
this[this.tableElencoDataMatrix.FinePreparazioneColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsInizioIniezioneNull() {
return this.IsNull(this.tableElencoDataMatrix.InizioIniezioneColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetInizioIniezioneNull() {
this[this.tableElencoDataMatrix.InizioIniezioneColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsFineIniezioneNull() {
return this.IsNull(this.tableElencoDataMatrix.FineIniezioneColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetFineIniezioneNull() {
this[this.tableElencoDataMatrix.FineIniezioneColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsMagDestinazioneNull() {
return this.IsNull(this.tableElencoDataMatrix.MagDestinazioneColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetMagDestinazioneNull() {
this[this.tableElencoDataMatrix.MagDestinazioneColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsDataImportNull() {
return this.IsNull(this.tableElencoDataMatrix.DataImportColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetDataImportNull() {
this[this.tableElencoDataMatrix.DataImportColumn] = 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 TranscodificaParticolariRowChangeEvent : global::System.EventArgs {
private TranscodificaParticolariRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public TranscodificaParticolariRowChangeEvent(TranscodificaParticolariRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public TranscodificaParticolariRow 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 ElencoDataMatrixRowChangeEvent : global::System.EventArgs {
private ElencoDataMatrixRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ElencoDataMatrixRowChangeEvent(ElencoDataMatrixRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ElencoDataMatrixRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace GMW_data.DS_DataMatrixTableAdapters {
/// <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 TranscodificaParticolariTableAdapter : 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 TranscodificaParticolariTableAdapter() {
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 = "TranscodificaParticolari";
tableMapping.ColumnMappings.Add("NumDisegno", "NumDisegno");
tableMapping.ColumnMappings.Add("EsponenteDisegno", "EsponenteDisegno");
tableMapping.ColumnMappings.Add("Particolare", "Particolare");
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].[TranscodificaParticolari] WHERE (([NumDisegno] = @Original_Num" +
"Disegno) AND ([EsponenteDisegno] = @Original_EsponenteDisegno) AND ([Particolare" +
"] = @Original_Particolare))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TranscodificaParticolari] ([NumDisegno], [EsponenteDisegno], [Particolare]) VALUES (@NumDisegno, @EsponenteDisegno, @Particolare);
SELECT NumDisegno, EsponenteDisegno, Particolare FROM TranscodificaParticolari WHERE (EsponenteDisegno = @EsponenteDisegno) AND (NumDisegno = @NumDisegno)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TranscodificaParticolari] SET [NumDisegno] = @NumDisegno, [EsponenteDisegno] = @EsponenteDisegno, [Particolare] = @Particolare WHERE (([NumDisegno] = @Original_NumDisegno) AND ([EsponenteDisegno] = @Original_EsponenteDisegno) AND ([Particolare] = @Original_Particolare));
SELECT NumDisegno, EsponenteDisegno, Particolare FROM TranscodificaParticolari WHERE (EsponenteDisegno = @EsponenteDisegno) AND (NumDisegno = @NumDisegno)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.SP_produzioneConnectionString;
}
[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 NumDisegno, EsponenteDisegno, Particolare FROM dbo.TranscodificaParticolar" +
"i";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(DS_DataMatrix.TranscodificaParticolariDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual DS_DataMatrix.TranscodificaParticolariDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
DS_DataMatrix.TranscodificaParticolariDataTable dataTable = new DS_DataMatrix.TranscodificaParticolariDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_DataMatrix.TranscodificaParticolariDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_DataMatrix dataSet) {
return this.Adapter.Update(dataSet, "TranscodificaParticolari");
}
[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(decimal Original_NumDisegno, byte Original_EsponenteDisegno, string Original_Particolare) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((decimal)(Original_NumDisegno));
this.Adapter.DeleteCommand.Parameters[1].Value = ((byte)(Original_EsponenteDisegno));
if ((Original_Particolare == null)) {
throw new global::System.ArgumentNullException("Original_Particolare");
}
else {
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Particolare));
}
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(decimal NumDisegno, byte EsponenteDisegno, string Particolare) {
this.Adapter.InsertCommand.Parameters[0].Value = ((decimal)(NumDisegno));
this.Adapter.InsertCommand.Parameters[1].Value = ((byte)(EsponenteDisegno));
if ((Particolare == null)) {
throw new global::System.ArgumentNullException("Particolare");
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Particolare));
}
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(decimal NumDisegno, byte EsponenteDisegno, string Particolare, decimal Original_NumDisegno, byte Original_EsponenteDisegno, string Original_Particolare) {
this.Adapter.UpdateCommand.Parameters[0].Value = ((decimal)(NumDisegno));
this.Adapter.UpdateCommand.Parameters[1].Value = ((byte)(EsponenteDisegno));
if ((Particolare == null)) {
throw new global::System.ArgumentNullException("Particolare");
}
else {
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Particolare));
}
this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Original_NumDisegno));
this.Adapter.UpdateCommand.Parameters[4].Value = ((byte)(Original_EsponenteDisegno));
if ((Original_Particolare == null)) {
throw new global::System.ArgumentNullException("Original_Particolare");
}
else {
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Particolare));
}
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 Particolare, decimal Original_NumDisegno, byte Original_EsponenteDisegno, string Original_Particolare) {
return this.Update(Original_NumDisegno, Original_EsponenteDisegno, Particolare, Original_NumDisegno, Original_EsponenteDisegno, Original_Particolare);
}
}
/// <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 ElencoDataMatrixTableAdapter : 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 ElencoDataMatrixTableAdapter() {
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 = "ElencoDataMatrix";
tableMapping.ColumnMappings.Add("CodDataMatrix", "CodDataMatrix");
tableMapping.ColumnMappings.Add("CodGitterbox", "CodGitterbox");
tableMapping.ColumnMappings.Add("NumConchiglia", "NumConchiglia");
tableMapping.ColumnMappings.Add("NumDisegno", "NumDisegno");
tableMapping.ColumnMappings.Add("EsponenteDisegno", "EsponenteDisegno");
tableMapping.ColumnMappings.Add("CodDifettoScarto", "CodDifettoScarto");
tableMapping.ColumnMappings.Add("InizioPreparazione", "InizioPreparazione");
tableMapping.ColumnMappings.Add("FinePreparazione", "FinePreparazione");
tableMapping.ColumnMappings.Add("InizioIniezione", "InizioIniezione");
tableMapping.ColumnMappings.Add("FineIniezione", "FineIniezione");
tableMapping.ColumnMappings.Add("MagDestinazione", "MagDestinazione");
tableMapping.ColumnMappings.Add("DataImport", "DataImport");
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].[ElencoDataMatrix] WHERE (([CodDataMatrix] = @Original_CodDataMatrix) AND ([CodGitterbox] = @Original_CodGitterbox) AND ((@IsNull_NumConchiglia = 1 AND [NumConchiglia] IS NULL) OR ([NumConchiglia] = @Original_NumConchiglia)) AND ((@IsNull_NumDisegno = 1 AND [NumDisegno] IS NULL) OR ([NumDisegno] = @Original_NumDisegno)) AND ((@IsNull_EsponenteDisegno = 1 AND [EsponenteDisegno] IS NULL) OR ([EsponenteDisegno] = @Original_EsponenteDisegno)) AND ((@IsNull_CodDifettoScarto = 1 AND [CodDifettoScarto] IS NULL) OR ([CodDifettoScarto] = @Original_CodDifettoScarto)) AND ((@IsNull_InizioPreparazione = 1 AND [InizioPreparazione] IS NULL) OR ([InizioPreparazione] = @Original_InizioPreparazione)) AND ((@IsNull_FinePreparazione = 1 AND [FinePreparazione] IS NULL) OR ([FinePreparazione] = @Original_FinePreparazione)) AND ((@IsNull_InizioIniezione = 1 AND [InizioIniezione] IS NULL) OR ([InizioIniezione] = @Original_InizioIniezione)) AND ((@IsNull_FineIniezione = 1 AND [FineIniezione] IS NULL) OR ([FineIniezione] = @Original_FineIniezione)) AND ((@IsNull_MagDestinazione = 1 AND [MagDestinazione] IS NULL) OR ([MagDestinazione] = @Original_MagDestinazione)) AND ((@IsNull_DataImport = 1 AND [DataImport] IS NULL) OR ([DataImport] = @Original_DataImport)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGitterbox", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGitterbox", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumDisegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EsponenteDisegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodDifettoScarto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDifettoScarto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDifettoScarto", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDifettoScarto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioPreparazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioPreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FinePreparazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FinePreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioIniezione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineIniezione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MagDestinazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MagDestinazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MagDestinazione", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MagDestinazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataImport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataImport", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataImport", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataImport", 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].[ElencoDataMatrix] ([CodDataMatrix], [CodGitterbox], [NumConchiglia], [NumDisegno], [EsponenteDisegno], [CodDifettoScarto], [InizioPreparazione], [FinePreparazione], [InizioIniezione], [FineIniezione], [MagDestinazione], [DataImport]) VALUES (@CodDataMatrix, @CodGitterbox, @NumConchiglia, @NumDisegno, @EsponenteDisegno, @CodDifettoScarto, @InizioPreparazione, @FinePreparazione, @InizioIniezione, @FineIniezione, @MagDestinazione, @DataImport);
SELECT CodDataMatrix, CodGitterbox, NumConchiglia, NumDisegno, EsponenteDisegno, CodDifettoScarto, InizioPreparazione, FinePreparazione, InizioIniezione, FineIniezione, MagDestinazione, DataImport FROM ElencoDataMatrix WHERE (CodDataMatrix = @CodDataMatrix)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGitterbox", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGitterbox", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDifettoScarto", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDifettoScarto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioPreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FinePreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MagDestinazione", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MagDestinazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataImport", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataImport", 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].[ElencoDataMatrix] SET [CodDataMatrix] = @CodDataMatrix, [CodGitterb" +
"ox] = @CodGitterbox, [NumConchiglia] = @NumConchiglia, [NumDisegno] = @NumDisegn" +
"o, [EsponenteDisegno] = @EsponenteDisegno, [CodDifettoScarto] = @CodDifettoScart" +
"o, [InizioPreparazione] = @InizioPreparazione, [FinePreparazione] = @FinePrepara" +
"zione, [InizioIniezione] = @InizioIniezione, [FineIniezione] = @FineIniezione, [" +
"MagDestinazione] = @MagDestinazione, [DataImport] = @DataImport WHERE (([CodData" +
"Matrix] = @Original_CodDataMatrix) AND ([CodGitterbox] = @Original_CodGitterbox)" +
" AND ((@IsNull_NumConchiglia = 1 AND [NumConchiglia] IS NULL) OR ([NumConchiglia" +
"] = @Original_NumConchiglia)) AND ((@IsNull_NumDisegno = 1 AND [NumDisegno] IS N" +
"ULL) OR ([NumDisegno] = @Original_NumDisegno)) AND ((@IsNull_EsponenteDisegno = " +
"1 AND [EsponenteDisegno] IS NULL) OR ([EsponenteDisegno] = @Original_EsponenteDi" +
"segno)) AND ((@IsNull_CodDifettoScarto = 1 AND [CodDifettoScarto] IS NULL) OR ([" +
"CodDifettoScarto] = @Original_CodDifettoScarto)) AND ((@IsNull_InizioPreparazion" +
"e = 1 AND [InizioPreparazione] IS NULL) OR ([InizioPreparazione] = @Original_Ini" +
"zioPreparazione)) AND ((@IsNull_FinePreparazione = 1 AND [FinePreparazione] IS N" +
"ULL) OR ([FinePreparazione] = @Original_FinePreparazione)) AND ((@IsNull_InizioI" +
"niezione = 1 AND [InizioIniezione] IS NULL) OR ([InizioIniezione] = @Original_In" +
"izioIniezione)) AND ((@IsNull_FineIniezione = 1 AND [FineIniezione] IS NULL) OR " +
"([FineIniezione] = @Original_FineIniezione)) AND ((@IsNull_MagDestinazione = 1 A" +
"ND [MagDestinazione] IS NULL) OR ([MagDestinazione] = @Original_MagDestinazione)" +
") AND ((@IsNull_DataImport = 1 AND [DataImport] IS NULL) OR ([DataImport] = @Ori" +
"ginal_DataImport)));\r\nSELECT CodDataMatrix, CodGitterbox, NumConchiglia, NumDise" +
"gno, EsponenteDisegno, CodDifettoScarto, InizioPreparazione, FinePreparazione, I" +
"nizioIniezione, FineIniezione, MagDestinazione, DataImport FROM ElencoDataMatrix" +
" WHERE (CodDataMatrix = @CodDataMatrix)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGitterbox", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGitterbox", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDifettoScarto", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDifettoScarto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioPreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FinePreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MagDestinazione", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MagDestinazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataImport", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataImport", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGitterbox", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGitterbox", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumDisegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EsponenteDisegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodDifettoScarto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDifettoScarto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDifettoScarto", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDifettoScarto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioPreparazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioPreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FinePreparazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FinePreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioIniezione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineIniezione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MagDestinazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MagDestinazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MagDestinazione", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MagDestinazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataImport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataImport", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataImport", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataImport", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT CodDataMatrix, CodGitterbox, NumConchiglia, NumDisegno, EsponenteDisegno, " +
"CodDifettoScarto, InizioPreparazione, FinePreparazione, InizioIniezione, FineIni" +
"ezione, MagDestinazione, DataImport FROM dbo.ElencoDataMatrix";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_EDM_getByCode";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDataMatrix", global::System.Data.SqlDbType.Decimal, 13, global::System.Data.ParameterDirection.Input, 23, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_EDM_getByGitterBox";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGitterbox", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "dbo.stp_EDM_spostaDataMtx";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDataMatrix", global::System.Data.SqlDbType.Decimal, 13, global::System.Data.ParameterDirection.Input, 23, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGitterbox", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = "dbo.stp_DtMtrx_import";
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[5].Connection = this.Connection;
this._commandCollection[5].CommandText = "dbo.stp_EDM_svuotaGitterbox";
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGitterbox", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(DS_DataMatrix.ElencoDataMatrixDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual DS_DataMatrix.ElencoDataMatrixDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
DS_DataMatrix.ElencoDataMatrixDataTable dataTable = new DS_DataMatrix.ElencoDataMatrixDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_DataMatrix.ElencoDataMatrixDataTable getByCode(global::System.Nullable<decimal> CodDataMatrix) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((CodDataMatrix.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((decimal)(CodDataMatrix.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
DS_DataMatrix.ElencoDataMatrixDataTable dataTable = new DS_DataMatrix.ElencoDataMatrixDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_DataMatrix.ElencoDataMatrixDataTable getByGitterbox(string CodGitterbox) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((CodGitterbox == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodGitterbox));
}
DS_DataMatrix.ElencoDataMatrixDataTable dataTable = new DS_DataMatrix.ElencoDataMatrixDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_DataMatrix.ElencoDataMatrixDataTable spostaInGitterbox(global::System.Nullable<decimal> CodDataMatrix, string CodGitterbox) {
this.Adapter.SelectCommand = this.CommandCollection[3];
if ((CodDataMatrix.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((decimal)(CodDataMatrix.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
if ((CodGitterbox == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodGitterbox));
}
DS_DataMatrix.ElencoDataMatrixDataTable dataTable = new DS_DataMatrix.ElencoDataMatrixDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_DataMatrix.ElencoDataMatrixDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_DataMatrix dataSet) {
return this.Adapter.Update(dataSet, "ElencoDataMatrix");
}
[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(decimal Original_CodDataMatrix, string Original_CodGitterbox, global::System.Nullable<int> Original_NumConchiglia, global::System.Nullable<decimal> Original_NumDisegno, global::System.Nullable<byte> Original_EsponenteDisegno, string Original_CodDifettoScarto, global::System.Nullable<global::System.DateTime> Original_InizioPreparazione, global::System.Nullable<global::System.DateTime> Original_FinePreparazione, global::System.Nullable<global::System.DateTime> Original_InizioIniezione, global::System.Nullable<global::System.DateTime> Original_FineIniezione, string Original_MagDestinazione, global::System.Nullable<global::System.DateTime> Original_DataImport) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((decimal)(Original_CodDataMatrix));
if ((Original_CodGitterbox == null)) {
throw new global::System.ArgumentNullException("Original_CodGitterbox");
}
else {
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodGitterbox));
}
if ((Original_NumConchiglia.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_NumConchiglia.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
}
if ((Original_NumDisegno.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[5].Value = ((decimal)(Original_NumDisegno.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
}
if ((Original_EsponenteDisegno.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[7].Value = ((byte)(Original_EsponenteDisegno.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
}
if ((Original_CodDifettoScarto == null)) {
this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_CodDifettoScarto));
}
if ((Original_InizioPreparazione.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[11].Value = ((System.DateTime)(Original_InizioPreparazione.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
}
if ((Original_FinePreparazione.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[13].Value = ((System.DateTime)(Original_FinePreparazione.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
}
if ((Original_InizioIniezione.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[15].Value = ((System.DateTime)(Original_InizioIniezione.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
}
if ((Original_FineIniezione.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[17].Value = ((System.DateTime)(Original_FineIniezione.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value;
}
if ((Original_MagDestinazione == null)) {
this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_MagDestinazione));
}
if ((Original_DataImport.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[21].Value = ((System.DateTime)(Original_DataImport.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[21].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(decimal CodDataMatrix, string CodGitterbox, global::System.Nullable<int> NumConchiglia, global::System.Nullable<decimal> NumDisegno, global::System.Nullable<byte> EsponenteDisegno, string CodDifettoScarto, global::System.Nullable<global::System.DateTime> InizioPreparazione, global::System.Nullable<global::System.DateTime> FinePreparazione, global::System.Nullable<global::System.DateTime> InizioIniezione, global::System.Nullable<global::System.DateTime> FineIniezione, string MagDestinazione, global::System.Nullable<global::System.DateTime> DataImport) {
this.Adapter.InsertCommand.Parameters[0].Value = ((decimal)(CodDataMatrix));
if ((CodGitterbox == null)) {
throw new global::System.ArgumentNullException("CodGitterbox");
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodGitterbox));
}
if ((NumConchiglia.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(NumConchiglia.Value));
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
if ((NumDisegno.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(NumDisegno.Value));
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
}
if ((EsponenteDisegno.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[4].Value = ((byte)(EsponenteDisegno.Value));
}
else {
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
}
if ((CodDifettoScarto == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodDifettoScarto));
}
if ((InizioPreparazione.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(InizioPreparazione.Value));
}
else {
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
}
if ((FinePreparazione.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(FinePreparazione.Value));
}
else {
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
}
if ((InizioIniezione.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(InizioIniezione.Value));
}
else {
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
}
if ((FineIniezione.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(FineIniezione.Value));
}
else {
this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
}
if ((MagDestinazione == null)) {
this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[10].Value = ((string)(MagDestinazione));
}
if ((DataImport.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[11].Value = ((System.DateTime)(DataImport.Value));
}
else {
this.Adapter.InsertCommand.Parameters[11].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(
decimal CodDataMatrix,
string CodGitterbox,
global::System.Nullable<int> NumConchiglia,
global::System.Nullable<decimal> NumDisegno,
global::System.Nullable<byte> EsponenteDisegno,
string CodDifettoScarto,
global::System.Nullable<global::System.DateTime> InizioPreparazione,
global::System.Nullable<global::System.DateTime> FinePreparazione,
global::System.Nullable<global::System.DateTime> InizioIniezione,
global::System.Nullable<global::System.DateTime> FineIniezione,
string MagDestinazione,
global::System.Nullable<global::System.DateTime> DataImport,
decimal Original_CodDataMatrix,
string Original_CodGitterbox,
global::System.Nullable<int> Original_NumConchiglia,
global::System.Nullable<decimal> Original_NumDisegno,
global::System.Nullable<byte> Original_EsponenteDisegno,
string Original_CodDifettoScarto,
global::System.Nullable<global::System.DateTime> Original_InizioPreparazione,
global::System.Nullable<global::System.DateTime> Original_FinePreparazione,
global::System.Nullable<global::System.DateTime> Original_InizioIniezione,
global::System.Nullable<global::System.DateTime> Original_FineIniezione,
string Original_MagDestinazione,
global::System.Nullable<global::System.DateTime> Original_DataImport) {
this.Adapter.UpdateCommand.Parameters[0].Value = ((decimal)(CodDataMatrix));
if ((CodGitterbox == null)) {
throw new global::System.ArgumentNullException("CodGitterbox");
}
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodGitterbox));
}
if ((NumConchiglia.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(NumConchiglia.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
}
if ((NumDisegno.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(NumDisegno.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
}
if ((EsponenteDisegno.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[4].Value = ((byte)(EsponenteDisegno.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
}
if ((CodDifettoScarto == null)) {
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodDifettoScarto));
}
if ((InizioPreparazione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(InizioPreparazione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
}
if ((FinePreparazione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(FinePreparazione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
}
if ((InizioIniezione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(InizioIniezione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
}
if ((FineIniezione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(FineIniezione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
}
if ((MagDestinazione == null)) {
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(MagDestinazione));
}
if ((DataImport.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(DataImport.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(Original_CodDataMatrix));
if ((Original_CodGitterbox == null)) {
throw new global::System.ArgumentNullException("Original_CodGitterbox");
}
else {
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_CodGitterbox));
}
if ((Original_NumConchiglia.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_NumConchiglia.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
}
if ((Original_NumDisegno.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[17].Value = ((decimal)(Original_NumDisegno.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
}
if ((Original_EsponenteDisegno.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[19].Value = ((byte)(Original_EsponenteDisegno.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
}
if ((Original_CodDifettoScarto == null)) {
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_CodDifettoScarto));
}
if ((Original_InizioPreparazione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(Original_InizioPreparazione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
}
if ((Original_FinePreparazione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[25].Value = ((System.DateTime)(Original_FinePreparazione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
}
if ((Original_InizioIniezione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_InizioIniezione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
}
if ((Original_FineIniezione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(Original_FineIniezione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
}
if ((Original_MagDestinazione == null)) {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_MagDestinazione));
}
if ((Original_DataImport.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[33].Value = ((System.DateTime)(Original_DataImport.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.UpdateCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.UpdateCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
string CodGitterbox,
global::System.Nullable<int> NumConchiglia,
global::System.Nullable<decimal> NumDisegno,
global::System.Nullable<byte> EsponenteDisegno,
string CodDifettoScarto,
global::System.Nullable<global::System.DateTime> InizioPreparazione,
global::System.Nullable<global::System.DateTime> FinePreparazione,
global::System.Nullable<global::System.DateTime> InizioIniezione,
global::System.Nullable<global::System.DateTime> FineIniezione,
string MagDestinazione,
global::System.Nullable<global::System.DateTime> DataImport,
decimal Original_CodDataMatrix,
string Original_CodGitterbox,
global::System.Nullable<int> Original_NumConchiglia,
global::System.Nullable<decimal> Original_NumDisegno,
global::System.Nullable<byte> Original_EsponenteDisegno,
string Original_CodDifettoScarto,
global::System.Nullable<global::System.DateTime> Original_InizioPreparazione,
global::System.Nullable<global::System.DateTime> Original_FinePreparazione,
global::System.Nullable<global::System.DateTime> Original_InizioIniezione,
global::System.Nullable<global::System.DateTime> Original_FineIniezione,
string Original_MagDestinazione,
global::System.Nullable<global::System.DateTime> Original_DataImport) {
return this.Update(Original_CodDataMatrix, CodGitterbox, NumConchiglia, NumDisegno, EsponenteDisegno, CodDifettoScarto, InizioPreparazione, FinePreparazione, InizioIniezione, FineIniezione, MagDestinazione, DataImport, Original_CodDataMatrix, Original_CodGitterbox, Original_NumConchiglia, Original_NumDisegno, Original_EsponenteDisegno, Original_CodDifettoScarto, Original_InizioPreparazione, Original_FinePreparazione, Original_InizioIniezione, Original_FineIniezione, Original_MagDestinazione, Original_DataImport);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_DtMtrx_import(string CodCS, global::System.Nullable<int> IdxPosizione) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(CodCS));
}
if ((IdxPosizione.HasValue == true)) {
command.Parameters[2].Value = ((int)(IdxPosizione.Value));
}
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
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();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int svuotaGitterbox(string CodGitterbox) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
if ((CodGitterbox == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(CodGitterbox));
}
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();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
}
/// <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 TranscodificaParticolariTableAdapter _transcodificaParticolariTableAdapter;
private ElencoDataMatrixTableAdapter _elencoDataMatrixTableAdapter;
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 TranscodificaParticolariTableAdapter TranscodificaParticolariTableAdapter {
get {
return this._transcodificaParticolariTableAdapter;
}
set {
this._transcodificaParticolariTableAdapter = 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 ElencoDataMatrixTableAdapter ElencoDataMatrixTableAdapter {
get {
return this._elencoDataMatrixTableAdapter;
}
set {
this._elencoDataMatrixTableAdapter = 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._transcodificaParticolariTableAdapter != null)
&& (this._transcodificaParticolariTableAdapter.Connection != null))) {
return this._transcodificaParticolariTableAdapter.Connection;
}
if (((this._elencoDataMatrixTableAdapter != null)
&& (this._elencoDataMatrixTableAdapter.Connection != null))) {
return this._elencoDataMatrixTableAdapter.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._transcodificaParticolariTableAdapter != null)) {
count = (count + 1);
}
if ((this._elencoDataMatrixTableAdapter != null)) {
count = (count + 1);
}
return count;
}
}
/// <summary>
///Update rows in top-down order.
///</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateUpdatedRows(DS_DataMatrix 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._elencoDataMatrixTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.ElencoDataMatrix.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._elencoDataMatrixTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._transcodificaParticolariTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.TranscodificaParticolari.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._transcodificaParticolariTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
return result;
}
/// <summary>
///Insert rows in top-down order.
///</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateInsertedRows(DS_DataMatrix dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
int result = 0;
if ((this._elencoDataMatrixTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.ElencoDataMatrix.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._elencoDataMatrixTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._transcodificaParticolariTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.TranscodificaParticolari.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._transcodificaParticolariTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
return result;
}
/// <summary>
///Delete rows in bottom-up order.
///</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateDeletedRows(DS_DataMatrix dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
int result = 0;
if ((this._transcodificaParticolariTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.TranscodificaParticolari.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._transcodificaParticolariTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._elencoDataMatrixTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.ElencoDataMatrix.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._elencoDataMatrixTableAdapter.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(DS_DataMatrix dataSet) {
if ((dataSet == null)) {
throw new global::System.ArgumentNullException("dataSet");
}
if ((dataSet.HasChanges() == false)) {
return 0;
}
if (((this._transcodificaParticolariTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._transcodificaParticolariTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
if (((this._elencoDataMatrixTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._elencoDataMatrixTableAdapter.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._transcodificaParticolariTableAdapter != null)) {
revertConnections.Add(this._transcodificaParticolariTableAdapter, this._transcodificaParticolariTableAdapter.Connection);
this._transcodificaParticolariTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
this._transcodificaParticolariTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
if (this._transcodificaParticolariTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._transcodificaParticolariTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._transcodificaParticolariTableAdapter.Adapter);
}
}
if ((this._elencoDataMatrixTableAdapter != null)) {
revertConnections.Add(this._elencoDataMatrixTableAdapter, this._elencoDataMatrixTableAdapter.Connection);
this._elencoDataMatrixTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
this._elencoDataMatrixTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
if (this._elencoDataMatrixTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._elencoDataMatrixTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._elencoDataMatrixTableAdapter.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._transcodificaParticolariTableAdapter != null)) {
this._transcodificaParticolariTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._transcodificaParticolariTableAdapter]));
this._transcodificaParticolariTableAdapter.Transaction = null;
}
if ((this._elencoDataMatrixTableAdapter != null)) {
this._elencoDataMatrixTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoDataMatrixTableAdapter]));
this._elencoDataMatrixTableAdapter.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