|
@@ -0,0 +1,3835 @@
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+// <auto-generated>
|
|
|
+// Этот код создан программой.
|
|
|
+// Исполняемая версия:4.0.30319.42000
|
|
|
+//
|
|
|
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
|
|
+// повторной генерации кода.
|
|
|
+// </auto-generated>
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+
|
|
|
+#pragma warning disable 1591
|
|
|
+
|
|
|
+namespace OdintsovRP41 {
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents a strongly typed in-memory cache of data.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Serializable()]
|
|
|
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
+ [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
|
|
|
+ [global::System.Xml.Serialization.XmlRootAttribute("OdintsovRP41DataSet")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
|
|
|
+ public partial class OdintsovRP41DataSet : global::System.Data.DataSet {
|
|
|
+
|
|
|
+ private _2DataTable table2;
|
|
|
+
|
|
|
+ private manufactures_b_importDataTable tablemanufactures_b_import;
|
|
|
+
|
|
|
+ private product_b_import2DataTable tableproduct_b_import2;
|
|
|
+
|
|
|
+ private tovariDataTable tabletovari;
|
|
|
+
|
|
|
+ private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OdintsovRP41DataSet() {
|
|
|
+ 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()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected OdintsovRP41DataSet(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["2"] != null)) {
|
|
|
+ base.Tables.Add(new _2DataTable(ds.Tables["2"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["manufactures_b_import"] != null)) {
|
|
|
+ base.Tables.Add(new manufactures_b_importDataTable(ds.Tables["manufactures_b_import"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["product_b_import2"] != null)) {
|
|
|
+ base.Tables.Add(new product_b_import2DataTable(ds.Tables["product_b_import2"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["tovari"] != null)) {
|
|
|
+ base.Tables.Add(new tovariDataTable(ds.Tables["tovari"]));
|
|
|
+ }
|
|
|
+ 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public _2DataTable _2 {
|
|
|
+ get {
|
|
|
+ return this.table2;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public manufactures_b_importDataTable manufactures_b_import {
|
|
|
+ get {
|
|
|
+ return this.tablemanufactures_b_import;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public product_b_import2DataTable product_b_import2 {
|
|
|
+ get {
|
|
|
+ return this.tableproduct_b_import2;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public tovariDataTable tovari {
|
|
|
+ get {
|
|
|
+ return this.tabletovari;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
|
|
+ public new global::System.Data.DataRelationCollection Relations {
|
|
|
+ get {
|
|
|
+ return base.Relations;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void InitializeDerivedDataSet() {
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataSet Clone() {
|
|
|
+ OdintsovRP41DataSet cln = ((OdintsovRP41DataSet)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ cln.SchemaSerializationMode = this.SchemaSerializationMode;
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override bool ShouldSerializeTables() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override bool ShouldSerializeRelations() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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["2"] != null)) {
|
|
|
+ base.Tables.Add(new _2DataTable(ds.Tables["2"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["manufactures_b_import"] != null)) {
|
|
|
+ base.Tables.Add(new manufactures_b_importDataTable(ds.Tables["manufactures_b_import"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["product_b_import2"] != null)) {
|
|
|
+ base.Tables.Add(new product_b_import2DataTable(ds.Tables["product_b_import2"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["tovari"] != null)) {
|
|
|
+ base.Tables.Add(new tovariDataTable(ds.Tables["tovari"]));
|
|
|
+ }
|
|
|
+ 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()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.InitVars(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars(bool initTable) {
|
|
|
+ this.table2 = ((_2DataTable)(base.Tables["2"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.table2 != null)) {
|
|
|
+ this.table2.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tablemanufactures_b_import = ((manufactures_b_importDataTable)(base.Tables["manufactures_b_import"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tablemanufactures_b_import != null)) {
|
|
|
+ this.tablemanufactures_b_import.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tableproduct_b_import2 = ((product_b_import2DataTable)(base.Tables["product_b_import2"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableproduct_b_import2 != null)) {
|
|
|
+ this.tableproduct_b_import2.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tabletovari = ((tovariDataTable)(base.Tables["tovari"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tabletovari != null)) {
|
|
|
+ this.tabletovari.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.DataSetName = "OdintsovRP41DataSet";
|
|
|
+ this.Prefix = "";
|
|
|
+ this.Namespace = "http://tempuri.org/OdintsovRP41DataSet.xsd";
|
|
|
+ this.EnforceConstraints = true;
|
|
|
+ this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
+ this.table2 = new _2DataTable();
|
|
|
+ base.Tables.Add(this.table2);
|
|
|
+ this.tablemanufactures_b_import = new manufactures_b_importDataTable();
|
|
|
+ base.Tables.Add(this.tablemanufactures_b_import);
|
|
|
+ this.tableproduct_b_import2 = new product_b_import2DataTable();
|
|
|
+ base.Tables.Add(this.tableproduct_b_import2);
|
|
|
+ this.tabletovari = new tovariDataTable();
|
|
|
+ base.Tables.Add(this.tabletovari);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private bool ShouldSerialize_2() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private bool ShouldSerializemanufactures_b_import() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private bool ShouldSerializeproduct_b_import2() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private bool ShouldSerializetovari() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
|
|
+ if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ OdintsovRP41DataSet ds = new OdintsovRP41DataSet();
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public delegate void _2RowChangeEventHandler(object sender, _2RowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public delegate void manufactures_b_importRowChangeEventHandler(object sender, manufactures_b_importRowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public delegate void product_b_import2RowChangeEventHandler(object sender, product_b_import2RowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public delegate void tovariRowChangeEventHandler(object sender, tovariRowChangeEvent e);
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents the strongly named DataTable class.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Serializable()]
|
|
|
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
+ public partial class _2DataTable : global::System.Data.TypedTableBase<_2Row> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnid;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnНазвание_производителя;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnДата_начала_работы;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public _2DataTable() {
|
|
|
+ this.TableName = "2";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal _2DataTable(global::System.Data.DataTable table) {
|
|
|
+ this.TableName = table.TableName;
|
|
|
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
+ this.CaseSensitive = table.CaseSensitive;
|
|
|
+ }
|
|
|
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
+ this.Locale = table.Locale;
|
|
|
+ }
|
|
|
+ if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
+ this.Namespace = table.Namespace;
|
|
|
+ }
|
|
|
+ this.Prefix = table.Prefix;
|
|
|
+ this.MinimumCapacity = table.MinimumCapacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected _2DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
+ base(info, context) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn idColumn {
|
|
|
+ get {
|
|
|
+ return this.columnid;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn Название_производителяColumn {
|
|
|
+ get {
|
|
|
+ return this.columnНазвание_производителя;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn Дата_начала_работыColumn {
|
|
|
+ get {
|
|
|
+ return this.columnДата_начала_работы;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int Count {
|
|
|
+ get {
|
|
|
+ return this.Rows.Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public _2Row this[int index] {
|
|
|
+ get {
|
|
|
+ return ((_2Row)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event _2RowChangeEventHandler _2RowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event _2RowChangeEventHandler _2RowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event _2RowChangeEventHandler _2RowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event _2RowChangeEventHandler _2RowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void Add_2Row(_2Row row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public _2Row Add_2Row(int id, string Название_производителя, System.DateTime Дата_начала_работы) {
|
|
|
+ _2Row row_2Row = ((_2Row)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ id,
|
|
|
+ Название_производителя,
|
|
|
+ Дата_начала_работы};
|
|
|
+ row_2Row.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(row_2Row);
|
|
|
+ return row_2Row;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ _2DataTable cln = ((_2DataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new _2DataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnid = base.Columns["id"];
|
|
|
+ this.columnНазвание_производителя = base.Columns["Название производителя"];
|
|
|
+ this.columnДата_начала_работы = base.Columns["Дата начала работы"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnid);
|
|
|
+ this.columnНазвание_производителя = new global::System.Data.DataColumn("Название производителя", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnНазвание_производителя);
|
|
|
+ this.columnДата_начала_работы = new global::System.Data.DataColumn("Дата начала работы", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnДата_начала_работы);
|
|
|
+ this.columnНазвание_производителя.MaxLength = 150;
|
|
|
+ this.ExtendedProperties.Add("Generator_TableVarName", "table2");
|
|
|
+ this.ExtendedProperties.Add("Generator_UserTableName", "2");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public _2Row New_2Row() {
|
|
|
+ return ((_2Row)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new _2Row(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(_2Row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this._2RowChanged != null)) {
|
|
|
+ this._2RowChanged(this, new _2RowChangeEvent(((_2Row)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this._2RowChanging != null)) {
|
|
|
+ this._2RowChanging(this, new _2RowChangeEvent(((_2Row)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this._2RowDeleted != null)) {
|
|
|
+ this._2RowDeleted(this, new _2RowChangeEvent(((_2Row)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this._2RowDeleting != null)) {
|
|
|
+ this._2RowDeleting(this, new _2RowChangeEvent(((_2Row)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void Remove_2Row(_2Row row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ OdintsovRP41DataSet ds = new OdintsovRP41DataSet();
|
|
|
+ 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 = "_2DataTable";
|
|
|
+ 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.Serializable()]
|
|
|
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
+ public partial class manufactures_b_importDataTable : global::System.Data.TypedTableBase<manufactures_b_importRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnid;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnНазвание;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnДата_начала_работы;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public manufactures_b_importDataTable() {
|
|
|
+ this.TableName = "manufactures_b_import";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal manufactures_b_importDataTable(global::System.Data.DataTable table) {
|
|
|
+ this.TableName = table.TableName;
|
|
|
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
+ this.CaseSensitive = table.CaseSensitive;
|
|
|
+ }
|
|
|
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
+ this.Locale = table.Locale;
|
|
|
+ }
|
|
|
+ if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
+ this.Namespace = table.Namespace;
|
|
|
+ }
|
|
|
+ this.Prefix = table.Prefix;
|
|
|
+ this.MinimumCapacity = table.MinimumCapacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected manufactures_b_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
+ base(info, context) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn idColumn {
|
|
|
+ get {
|
|
|
+ return this.columnid;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn НазваниеColumn {
|
|
|
+ get {
|
|
|
+ return this.columnНазвание;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn Дата_начала_работыColumn {
|
|
|
+ get {
|
|
|
+ return this.columnДата_начала_работы;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int Count {
|
|
|
+ get {
|
|
|
+ return this.Rows.Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public manufactures_b_importRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((manufactures_b_importRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event manufactures_b_importRowChangeEventHandler manufactures_b_importRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event manufactures_b_importRowChangeEventHandler manufactures_b_importRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event manufactures_b_importRowChangeEventHandler manufactures_b_importRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event manufactures_b_importRowChangeEventHandler manufactures_b_importRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void Addmanufactures_b_importRow(manufactures_b_importRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public manufactures_b_importRow Addmanufactures_b_importRow(int id, string Название, System.DateTime Дата_начала_работы) {
|
|
|
+ manufactures_b_importRow rowmanufactures_b_importRow = ((manufactures_b_importRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ id,
|
|
|
+ Название,
|
|
|
+ Дата_начала_работы};
|
|
|
+ rowmanufactures_b_importRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowmanufactures_b_importRow);
|
|
|
+ return rowmanufactures_b_importRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ manufactures_b_importDataTable cln = ((manufactures_b_importDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new manufactures_b_importDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnid = base.Columns["id"];
|
|
|
+ this.columnНазвание = base.Columns["Название"];
|
|
|
+ this.columnДата_начала_работы = base.Columns["Дата начала работы"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnid);
|
|
|
+ this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnНазвание);
|
|
|
+ this.columnДата_начала_работы = new global::System.Data.DataColumn("Дата начала работы", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnДата_начала_работы);
|
|
|
+ this.columnНазвание.MaxLength = 150;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public manufactures_b_importRow Newmanufactures_b_importRow() {
|
|
|
+ return ((manufactures_b_importRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new manufactures_b_importRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(manufactures_b_importRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.manufactures_b_importRowChanged != null)) {
|
|
|
+ this.manufactures_b_importRowChanged(this, new manufactures_b_importRowChangeEvent(((manufactures_b_importRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.manufactures_b_importRowChanging != null)) {
|
|
|
+ this.manufactures_b_importRowChanging(this, new manufactures_b_importRowChangeEvent(((manufactures_b_importRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.manufactures_b_importRowDeleted != null)) {
|
|
|
+ this.manufactures_b_importRowDeleted(this, new manufactures_b_importRowChangeEvent(((manufactures_b_importRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.manufactures_b_importRowDeleting != null)) {
|
|
|
+ this.manufactures_b_importRowDeleting(this, new manufactures_b_importRowChangeEvent(((manufactures_b_importRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void Removemanufactures_b_importRow(manufactures_b_importRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ OdintsovRP41DataSet ds = new OdintsovRP41DataSet();
|
|
|
+ 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 = "manufactures_b_importDataTable";
|
|
|
+ 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.Serializable()]
|
|
|
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
+ public partial class product_b_import2DataTable : global::System.Data.TypedTableBase<product_b_import2Row> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnid;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnТовар;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnКоличество;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnДата;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public product_b_import2DataTable() {
|
|
|
+ this.TableName = "product_b_import2";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal product_b_import2DataTable(global::System.Data.DataTable table) {
|
|
|
+ this.TableName = table.TableName;
|
|
|
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
+ this.CaseSensitive = table.CaseSensitive;
|
|
|
+ }
|
|
|
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
+ this.Locale = table.Locale;
|
|
|
+ }
|
|
|
+ if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
+ this.Namespace = table.Namespace;
|
|
|
+ }
|
|
|
+ this.Prefix = table.Prefix;
|
|
|
+ this.MinimumCapacity = table.MinimumCapacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected product_b_import2DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
+ base(info, context) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn idColumn {
|
|
|
+ get {
|
|
|
+ return this.columnid;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn ТоварColumn {
|
|
|
+ get {
|
|
|
+ return this.columnТовар;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn КоличествоColumn {
|
|
|
+ get {
|
|
|
+ return this.columnКоличество;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn ДатаColumn {
|
|
|
+ get {
|
|
|
+ return this.columnДата;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int Count {
|
|
|
+ get {
|
|
|
+ return this.Rows.Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public product_b_import2Row this[int index] {
|
|
|
+ get {
|
|
|
+ return ((product_b_import2Row)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event product_b_import2RowChangeEventHandler product_b_import2RowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event product_b_import2RowChangeEventHandler product_b_import2RowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event product_b_import2RowChangeEventHandler product_b_import2RowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event product_b_import2RowChangeEventHandler product_b_import2RowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void Addproduct_b_import2Row(product_b_import2Row row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public product_b_import2Row Addproduct_b_import2Row(int id, string Товар, int Количество, System.DateTime Дата) {
|
|
|
+ product_b_import2Row rowproduct_b_import2Row = ((product_b_import2Row)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ id,
|
|
|
+ Товар,
|
|
|
+ Количество,
|
|
|
+ Дата};
|
|
|
+ rowproduct_b_import2Row.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowproduct_b_import2Row);
|
|
|
+ return rowproduct_b_import2Row;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ product_b_import2DataTable cln = ((product_b_import2DataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new product_b_import2DataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnid = base.Columns["id"];
|
|
|
+ this.columnТовар = base.Columns["Товар"];
|
|
|
+ this.columnКоличество = base.Columns["Количество"];
|
|
|
+ this.columnДата = base.Columns["Дата"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnid);
|
|
|
+ this.columnТовар = new global::System.Data.DataColumn("Товар", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnТовар);
|
|
|
+ this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnКоличество);
|
|
|
+ this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnДата);
|
|
|
+ this.columnТовар.MaxLength = 150;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public product_b_import2Row Newproduct_b_import2Row() {
|
|
|
+ return ((product_b_import2Row)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new product_b_import2Row(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(product_b_import2Row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.product_b_import2RowChanged != null)) {
|
|
|
+ this.product_b_import2RowChanged(this, new product_b_import2RowChangeEvent(((product_b_import2Row)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.product_b_import2RowChanging != null)) {
|
|
|
+ this.product_b_import2RowChanging(this, new product_b_import2RowChangeEvent(((product_b_import2Row)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.product_b_import2RowDeleted != null)) {
|
|
|
+ this.product_b_import2RowDeleted(this, new product_b_import2RowChangeEvent(((product_b_import2Row)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.product_b_import2RowDeleting != null)) {
|
|
|
+ this.product_b_import2RowDeleting(this, new product_b_import2RowChangeEvent(((product_b_import2Row)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void Removeproduct_b_import2Row(product_b_import2Row row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ OdintsovRP41DataSet ds = new OdintsovRP41DataSet();
|
|
|
+ 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 = "product_b_import2DataTable";
|
|
|
+ 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.Serializable()]
|
|
|
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
+ public partial class tovariDataTable : global::System.Data.TypedTableBase<tovariRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnid;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnНаименование;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnИзображение;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnПроизводитель;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnАктивен;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnЦена;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public tovariDataTable() {
|
|
|
+ this.TableName = "tovari";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal tovariDataTable(global::System.Data.DataTable table) {
|
|
|
+ this.TableName = table.TableName;
|
|
|
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
+ this.CaseSensitive = table.CaseSensitive;
|
|
|
+ }
|
|
|
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
+ this.Locale = table.Locale;
|
|
|
+ }
|
|
|
+ if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
+ this.Namespace = table.Namespace;
|
|
|
+ }
|
|
|
+ this.Prefix = table.Prefix;
|
|
|
+ this.MinimumCapacity = table.MinimumCapacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected tovariDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
+ base(info, context) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn idColumn {
|
|
|
+ get {
|
|
|
+ return this.columnid;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn НаименованиеColumn {
|
|
|
+ get {
|
|
|
+ return this.columnНаименование;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn ИзображениеColumn {
|
|
|
+ get {
|
|
|
+ return this.columnИзображение;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn ПроизводительColumn {
|
|
|
+ get {
|
|
|
+ return this.columnПроизводитель;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn АктивенColumn {
|
|
|
+ get {
|
|
|
+ return this.columnАктивен;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn ЦенаColumn {
|
|
|
+ get {
|
|
|
+ return this.columnЦена;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int Count {
|
|
|
+ get {
|
|
|
+ return this.Rows.Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public tovariRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((tovariRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event tovariRowChangeEventHandler tovariRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event tovariRowChangeEventHandler tovariRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event tovariRowChangeEventHandler tovariRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event tovariRowChangeEventHandler tovariRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void AddtovariRow(tovariRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public tovariRow AddtovariRow(int id, string Наименование, string Изображение, string Производитель, string Активен, string Цена) {
|
|
|
+ tovariRow rowtovariRow = ((tovariRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ id,
|
|
|
+ Наименование,
|
|
|
+ Изображение,
|
|
|
+ Производитель,
|
|
|
+ Активен,
|
|
|
+ Цена};
|
|
|
+ rowtovariRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowtovariRow);
|
|
|
+ return rowtovariRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ tovariDataTable cln = ((tovariDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new tovariDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnid = base.Columns["id"];
|
|
|
+ this.columnНаименование = base.Columns["Наименование"];
|
|
|
+ this.columnИзображение = base.Columns["Изображение"];
|
|
|
+ this.columnПроизводитель = base.Columns["Производитель"];
|
|
|
+ this.columnАктивен = base.Columns["Активен"];
|
|
|
+ this.columnЦена = base.Columns["Цена"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnid);
|
|
|
+ this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnНаименование);
|
|
|
+ this.columnИзображение = new global::System.Data.DataColumn("Изображение", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnИзображение);
|
|
|
+ this.columnПроизводитель = new global::System.Data.DataColumn("Производитель", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnПроизводитель);
|
|
|
+ this.columnАктивен = new global::System.Data.DataColumn("Активен", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnАктивен);
|
|
|
+ this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnЦена);
|
|
|
+ this.columnНаименование.MaxLength = 150;
|
|
|
+ this.columnИзображение.MaxLength = 150;
|
|
|
+ this.columnПроизводитель.MaxLength = 150;
|
|
|
+ this.columnАктивен.MaxLength = 150;
|
|
|
+ this.columnЦена.MaxLength = 150;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public tovariRow NewtovariRow() {
|
|
|
+ return ((tovariRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new tovariRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(tovariRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.tovariRowChanged != null)) {
|
|
|
+ this.tovariRowChanged(this, new tovariRowChangeEvent(((tovariRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.tovariRowChanging != null)) {
|
|
|
+ this.tovariRowChanging(this, new tovariRowChangeEvent(((tovariRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.tovariRowDeleted != null)) {
|
|
|
+ this.tovariRowDeleted(this, new tovariRowChangeEvent(((tovariRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.tovariRowDeleting != null)) {
|
|
|
+ this.tovariRowDeleting(this, new tovariRowChangeEvent(((tovariRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void RemovetovariRow(tovariRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ OdintsovRP41DataSet ds = new OdintsovRP41DataSet();
|
|
|
+ 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 = "tovariDataTable";
|
|
|
+ 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>
|
|
|
+ public partial class _2Row : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private _2DataTable table2;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal _2Row(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.table2 = ((_2DataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int id {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.table2.idColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'id\' в таблице \'2\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.table2.idColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Название_производителя {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.table2.Название_производителяColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Название производителя\' в таблице \'2\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.table2.Название_производителяColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public System.DateTime Дата_начала_работы {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((global::System.DateTime)(this[this.table2.Дата_начала_работыColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата начала работы\' в таблице \'2\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.table2.Дата_начала_работыColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsidNull() {
|
|
|
+ return this.IsNull(this.table2.idColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetidNull() {
|
|
|
+ this[this.table2.idColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsНазвание_производителяNull() {
|
|
|
+ return this.IsNull(this.table2.Название_производителяColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetНазвание_производителяNull() {
|
|
|
+ this[this.table2.Название_производителяColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsДата_начала_работыNull() {
|
|
|
+ return this.IsNull(this.table2.Дата_начала_работыColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetДата_начала_работыNull() {
|
|
|
+ this[this.table2.Дата_начала_работыColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class manufactures_b_importRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private manufactures_b_importDataTable tablemanufactures_b_import;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal manufactures_b_importRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tablemanufactures_b_import = ((manufactures_b_importDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int id {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tablemanufactures_b_import.idColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'id\' в таблице \'manufactures_b_import\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tablemanufactures_b_import.idColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Название {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tablemanufactures_b_import.НазваниеColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'manufactures_b_import\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tablemanufactures_b_import.НазваниеColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public System.DateTime Дата_начала_работы {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((global::System.DateTime)(this[this.tablemanufactures_b_import.Дата_начала_работыColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата начала работы\' в таблице \'manufactures_b_import\' равно" +
|
|
|
+ " DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tablemanufactures_b_import.Дата_начала_работыColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsidNull() {
|
|
|
+ return this.IsNull(this.tablemanufactures_b_import.idColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetidNull() {
|
|
|
+ this[this.tablemanufactures_b_import.idColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsНазваниеNull() {
|
|
|
+ return this.IsNull(this.tablemanufactures_b_import.НазваниеColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetНазваниеNull() {
|
|
|
+ this[this.tablemanufactures_b_import.НазваниеColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsДата_начала_работыNull() {
|
|
|
+ return this.IsNull(this.tablemanufactures_b_import.Дата_начала_работыColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetДата_начала_работыNull() {
|
|
|
+ this[this.tablemanufactures_b_import.Дата_начала_работыColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class product_b_import2Row : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private product_b_import2DataTable tableproduct_b_import2;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal product_b_import2Row(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableproduct_b_import2 = ((product_b_import2DataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int id {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableproduct_b_import2.idColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'id\' в таблице \'product_b_import2\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableproduct_b_import2.idColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Товар {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableproduct_b_import2.ТоварColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Товар\' в таблице \'product_b_import2\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableproduct_b_import2.ТоварColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int Количество {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableproduct_b_import2.КоличествоColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'product_b_import2\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableproduct_b_import2.КоличествоColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public System.DateTime Дата {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((global::System.DateTime)(this[this.tableproduct_b_import2.ДатаColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'product_b_import2\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableproduct_b_import2.ДатаColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsidNull() {
|
|
|
+ return this.IsNull(this.tableproduct_b_import2.idColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetidNull() {
|
|
|
+ this[this.tableproduct_b_import2.idColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsТоварNull() {
|
|
|
+ return this.IsNull(this.tableproduct_b_import2.ТоварColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetТоварNull() {
|
|
|
+ this[this.tableproduct_b_import2.ТоварColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsКоличествоNull() {
|
|
|
+ return this.IsNull(this.tableproduct_b_import2.КоличествоColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetКоличествоNull() {
|
|
|
+ this[this.tableproduct_b_import2.КоличествоColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsДатаNull() {
|
|
|
+ return this.IsNull(this.tableproduct_b_import2.ДатаColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetДатаNull() {
|
|
|
+ this[this.tableproduct_b_import2.ДатаColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class tovariRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private tovariDataTable tabletovari;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal tovariRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tabletovari = ((tovariDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int id {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tabletovari.idColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'id\' в таблице \'tovari\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tabletovari.idColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Наименование {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tabletovari.НаименованиеColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'tovari\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tabletovari.НаименованиеColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Изображение {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tabletovari.ИзображениеColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Изображение\' в таблице \'tovari\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tabletovari.ИзображениеColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Производитель {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tabletovari.ПроизводительColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Производитель\' в таблице \'tovari\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tabletovari.ПроизводительColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Активен {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tabletovari.АктивенColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Активен\' в таблице \'tovari\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tabletovari.АктивенColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Цена {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tabletovari.ЦенаColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'tovari\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tabletovari.ЦенаColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsidNull() {
|
|
|
+ return this.IsNull(this.tabletovari.idColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetidNull() {
|
|
|
+ this[this.tabletovari.idColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsНаименованиеNull() {
|
|
|
+ return this.IsNull(this.tabletovari.НаименованиеColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetНаименованиеNull() {
|
|
|
+ this[this.tabletovari.НаименованиеColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsИзображениеNull() {
|
|
|
+ return this.IsNull(this.tabletovari.ИзображениеColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetИзображениеNull() {
|
|
|
+ this[this.tabletovari.ИзображениеColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsПроизводительNull() {
|
|
|
+ return this.IsNull(this.tabletovari.ПроизводительColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetПроизводительNull() {
|
|
|
+ this[this.tabletovari.ПроизводительColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsАктивенNull() {
|
|
|
+ return this.IsNull(this.tabletovari.АктивенColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetАктивенNull() {
|
|
|
+ this[this.tabletovari.АктивенColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool IsЦенаNull() {
|
|
|
+ return this.IsNull(this.tabletovari.ЦенаColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void SetЦенаNull() {
|
|
|
+ this[this.tabletovari.ЦенаColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Row event argument class
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public class _2RowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private _2Row eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public _2RowChangeEvent(_2Row row, global::System.Data.DataRowAction action) {
|
|
|
+ this.eventRow = row;
|
|
|
+ this.eventAction = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public _2Row Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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", "16.0.0.0")]
|
|
|
+ public class manufactures_b_importRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private manufactures_b_importRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public manufactures_b_importRowChangeEvent(manufactures_b_importRow row, global::System.Data.DataRowAction action) {
|
|
|
+ this.eventRow = row;
|
|
|
+ this.eventAction = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public manufactures_b_importRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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", "16.0.0.0")]
|
|
|
+ public class product_b_import2RowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private product_b_import2Row eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public product_b_import2RowChangeEvent(product_b_import2Row row, global::System.Data.DataRowAction action) {
|
|
|
+ this.eventRow = row;
|
|
|
+ this.eventAction = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public product_b_import2Row Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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", "16.0.0.0")]
|
|
|
+ public class tovariRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private tovariRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public tovariRowChangeEvent(tovariRow row, global::System.Data.DataRowAction action) {
|
|
|
+ this.eventRow = row;
|
|
|
+ this.eventAction = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public tovariRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataRowAction Action {
|
|
|
+ get {
|
|
|
+ return this.eventAction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+namespace OdintsovRP41.OdintsovRP41DataSetTableAdapters {
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents the connection and commands used to retrieve and save data.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
+ [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
+ [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public partial class _2TableAdapter : global::System.ComponentModel.Component {
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
+
|
|
|
+ private bool _clearBeforeFill;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public _2TableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
+ get {
|
|
|
+ if ((this._adapter == null)) {
|
|
|
+ this.InitAdapter();
|
|
|
+ }
|
|
|
+ return this._adapter;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection == null)) {
|
|
|
+ this.InitConnection();
|
|
|
+ }
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ if ((this.Adapter.InsertCommand != null)) {
|
|
|
+ this.Adapter.InsertCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.DeleteCommand != null)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.UpdateCommand != null)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection = value;
|
|
|
+ }
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ if ((this.CommandCollection[i] != null)) {
|
|
|
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
+ get {
|
|
|
+ return this._transaction;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._transaction = value;
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ this.CommandCollection[i].Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.DeleteCommand != null))) {
|
|
|
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.InsertCommand != null))) {
|
|
|
+ this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.UpdateCommand != null))) {
|
|
|
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
+ get {
|
|
|
+ if ((this._commandCollection == null)) {
|
|
|
+ this.InitCommandCollection();
|
|
|
+ }
|
|
|
+ return this._commandCollection;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool ClearBeforeFill {
|
|
|
+ get {
|
|
|
+ return this._clearBeforeFill;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clearBeforeFill = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitAdapter() {
|
|
|
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
+ tableMapping.SourceTable = "Table";
|
|
|
+ tableMapping.DataSetTable = "2";
|
|
|
+ tableMapping.ColumnMappings.Add("id", "id");
|
|
|
+ tableMapping.ColumnMappings.Add("Название производителя", "Название производителя");
|
|
|
+ tableMapping.ColumnMappings.Add("Дата начала работы", "Дата начала работы");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[2] ([id], [Название производителя], [Дата начала работы]) VALU" +
|
|
|
+ "ES (@id, @Название_производителя, @Дата_начала_работы)";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название_производителя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название производителя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_начала_работы", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата начала работы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::OdintsovRP41.Properties.Settings.Default.OdintsovRP41ConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitCommandCollection() {
|
|
|
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._commandCollection[0].Connection = this.Connection;
|
|
|
+ this._commandCollection[0].CommandText = "SELECT id, [Название производителя], [Дата начала работы] FROM dbo.[2]";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
+ public virtual int Fill(OdintsovRP41DataSet._2DataTable dataTable) {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ if ((this.ClearBeforeFill == true)) {
|
|
|
+ dataTable.Clear();
|
|
|
+ }
|
|
|
+ int returnValue = this.Adapter.Fill(dataTable);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual OdintsovRP41DataSet._2DataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ OdintsovRP41DataSet._2DataTable dataTable = new OdintsovRP41DataSet._2DataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OdintsovRP41DataSet._2DataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OdintsovRP41DataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "2");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
+ dataRow});
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
+ return this.Adapter.Update(dataRows);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
+ public virtual int Insert(global::System.Nullable<int> id, string Название_производителя, global::System.Nullable<global::System.DateTime> Дата_начала_работы) {
|
|
|
+ if ((id.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Название_производителя == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название_производителя));
|
|
|
+ }
|
|
|
+ if ((Дата_начала_работы.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Дата_начала_работы.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].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();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents the connection and commands used to retrieve and save data.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
+ [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
+ [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public partial class manufactures_b_importTableAdapter : global::System.ComponentModel.Component {
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
+
|
|
|
+ private bool _clearBeforeFill;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public manufactures_b_importTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
+ get {
|
|
|
+ if ((this._adapter == null)) {
|
|
|
+ this.InitAdapter();
|
|
|
+ }
|
|
|
+ return this._adapter;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection == null)) {
|
|
|
+ this.InitConnection();
|
|
|
+ }
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ if ((this.Adapter.InsertCommand != null)) {
|
|
|
+ this.Adapter.InsertCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.DeleteCommand != null)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.UpdateCommand != null)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection = value;
|
|
|
+ }
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ if ((this.CommandCollection[i] != null)) {
|
|
|
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
+ get {
|
|
|
+ return this._transaction;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._transaction = value;
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ this.CommandCollection[i].Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.DeleteCommand != null))) {
|
|
|
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.InsertCommand != null))) {
|
|
|
+ this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.UpdateCommand != null))) {
|
|
|
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
+ get {
|
|
|
+ if ((this._commandCollection == null)) {
|
|
|
+ this.InitCommandCollection();
|
|
|
+ }
|
|
|
+ return this._commandCollection;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool ClearBeforeFill {
|
|
|
+ get {
|
|
|
+ return this._clearBeforeFill;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clearBeforeFill = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitAdapter() {
|
|
|
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
+ tableMapping.SourceTable = "Table";
|
|
|
+ tableMapping.DataSetTable = "manufactures_b_import";
|
|
|
+ tableMapping.ColumnMappings.Add("id", "id");
|
|
|
+ tableMapping.ColumnMappings.Add("Название", "Название");
|
|
|
+ tableMapping.ColumnMappings.Add("Дата начала работы", "Дата начала работы");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[manufactures_b_import] ([id], [Название], [Дата начала работы]" +
|
|
|
+ ") VALUES (@id, @Название, @Дата_начала_работы)";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_начала_работы", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата начала работы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::OdintsovRP41.Properties.Settings.Default.OdintsovRP41ConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitCommandCollection() {
|
|
|
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._commandCollection[0].Connection = this.Connection;
|
|
|
+ this._commandCollection[0].CommandText = "SELECT id, Название, [Дата начала работы] FROM dbo.manufactures_b_import";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
+ public virtual int Fill(OdintsovRP41DataSet.manufactures_b_importDataTable dataTable) {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ if ((this.ClearBeforeFill == true)) {
|
|
|
+ dataTable.Clear();
|
|
|
+ }
|
|
|
+ int returnValue = this.Adapter.Fill(dataTable);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual OdintsovRP41DataSet.manufactures_b_importDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ OdintsovRP41DataSet.manufactures_b_importDataTable dataTable = new OdintsovRP41DataSet.manufactures_b_importDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OdintsovRP41DataSet.manufactures_b_importDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OdintsovRP41DataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "manufactures_b_import");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
+ dataRow});
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
+ return this.Adapter.Update(dataRows);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
+ public virtual int Insert(global::System.Nullable<int> id, string Название, global::System.Nullable<global::System.DateTime> Дата_начала_работы) {
|
|
|
+ if ((id.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Название == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название));
|
|
|
+ }
|
|
|
+ if ((Дата_начала_работы.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Дата_начала_работы.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].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();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents the connection and commands used to retrieve and save data.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
+ [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
+ [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public partial class product_b_import2TableAdapter : global::System.ComponentModel.Component {
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
+
|
|
|
+ private bool _clearBeforeFill;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public product_b_import2TableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
+ get {
|
|
|
+ if ((this._adapter == null)) {
|
|
|
+ this.InitAdapter();
|
|
|
+ }
|
|
|
+ return this._adapter;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection == null)) {
|
|
|
+ this.InitConnection();
|
|
|
+ }
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ if ((this.Adapter.InsertCommand != null)) {
|
|
|
+ this.Adapter.InsertCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.DeleteCommand != null)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.UpdateCommand != null)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection = value;
|
|
|
+ }
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ if ((this.CommandCollection[i] != null)) {
|
|
|
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
+ get {
|
|
|
+ return this._transaction;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._transaction = value;
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ this.CommandCollection[i].Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.DeleteCommand != null))) {
|
|
|
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.InsertCommand != null))) {
|
|
|
+ this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.UpdateCommand != null))) {
|
|
|
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
+ get {
|
|
|
+ if ((this._commandCollection == null)) {
|
|
|
+ this.InitCommandCollection();
|
|
|
+ }
|
|
|
+ return this._commandCollection;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool ClearBeforeFill {
|
|
|
+ get {
|
|
|
+ return this._clearBeforeFill;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clearBeforeFill = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitAdapter() {
|
|
|
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
+ tableMapping.SourceTable = "Table";
|
|
|
+ tableMapping.DataSetTable = "product_b_import2";
|
|
|
+ tableMapping.ColumnMappings.Add("id", "id");
|
|
|
+ tableMapping.ColumnMappings.Add("Товар", "Товар");
|
|
|
+ tableMapping.ColumnMappings.Add("Количество", "Количество");
|
|
|
+ tableMapping.ColumnMappings.Add("Дата", "Дата");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[product_b_import2] ([id], [Товар], [Количество], [Дата]) VALUE" +
|
|
|
+ "S (@id, @Товар, @Количество, @Дата)";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Товар", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Товар", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::OdintsovRP41.Properties.Settings.Default.OdintsovRP41ConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitCommandCollection() {
|
|
|
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._commandCollection[0].Connection = this.Connection;
|
|
|
+ this._commandCollection[0].CommandText = "SELECT id, Товар, Количество, Дата FROM dbo.product_b_import2";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
+ public virtual int Fill(OdintsovRP41DataSet.product_b_import2DataTable dataTable) {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ if ((this.ClearBeforeFill == true)) {
|
|
|
+ dataTable.Clear();
|
|
|
+ }
|
|
|
+ int returnValue = this.Adapter.Fill(dataTable);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual OdintsovRP41DataSet.product_b_import2DataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ OdintsovRP41DataSet.product_b_import2DataTable dataTable = new OdintsovRP41DataSet.product_b_import2DataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OdintsovRP41DataSet.product_b_import2DataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OdintsovRP41DataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "product_b_import2");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
+ dataRow});
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
+ return this.Adapter.Update(dataRows);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
+ public virtual int Insert(global::System.Nullable<int> id, string Товар, global::System.Nullable<int> Количество, global::System.Nullable<global::System.DateTime> Дата) {
|
|
|
+ if ((id.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Товар == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Товар));
|
|
|
+ }
|
|
|
+ if ((Количество.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Количество.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Дата.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Дата.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents the connection and commands used to retrieve and save data.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
+ [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
+ [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public partial class tovariTableAdapter : global::System.ComponentModel.Component {
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
+
|
|
|
+ private bool _clearBeforeFill;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public tovariTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
+ get {
|
|
|
+ if ((this._adapter == null)) {
|
|
|
+ this.InitAdapter();
|
|
|
+ }
|
|
|
+ return this._adapter;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection == null)) {
|
|
|
+ this.InitConnection();
|
|
|
+ }
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ if ((this.Adapter.InsertCommand != null)) {
|
|
|
+ this.Adapter.InsertCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.DeleteCommand != null)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.UpdateCommand != null)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection = value;
|
|
|
+ }
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ if ((this.CommandCollection[i] != null)) {
|
|
|
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
+ get {
|
|
|
+ return this._transaction;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._transaction = value;
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ this.CommandCollection[i].Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.DeleteCommand != null))) {
|
|
|
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.InsertCommand != null))) {
|
|
|
+ this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.UpdateCommand != null))) {
|
|
|
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
+ get {
|
|
|
+ if ((this._commandCollection == null)) {
|
|
|
+ this.InitCommandCollection();
|
|
|
+ }
|
|
|
+ return this._commandCollection;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool ClearBeforeFill {
|
|
|
+ get {
|
|
|
+ return this._clearBeforeFill;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clearBeforeFill = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitAdapter() {
|
|
|
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
+ tableMapping.SourceTable = "Table";
|
|
|
+ tableMapping.DataSetTable = "tovari";
|
|
|
+ tableMapping.ColumnMappings.Add("id", "id");
|
|
|
+ tableMapping.ColumnMappings.Add("Наименование", "Наименование");
|
|
|
+ tableMapping.ColumnMappings.Add("Изображение", "Изображение");
|
|
|
+ tableMapping.ColumnMappings.Add("Производитель", "Производитель");
|
|
|
+ tableMapping.ColumnMappings.Add("Активен", "Активен");
|
|
|
+ tableMapping.ColumnMappings.Add("Цена", "Цена");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[tovari] ([id], [Наименование], [Изображение], [Производитель]," +
|
|
|
+ " [Активен], [Цена]) VALUES (@id, @Наименование, @Изображение, @Производитель, @А" +
|
|
|
+ "ктивен, @Цена)";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Активен", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::OdintsovRP41.Properties.Settings.Default.OdintsovRP41ConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitCommandCollection() {
|
|
|
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._commandCollection[0].Connection = this.Connection;
|
|
|
+ this._commandCollection[0].CommandText = "SELECT id, Наименование, Изображение, Производитель, Активен, Цена FROM dbo.tovar" +
|
|
|
+ "i";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
+ public virtual int Fill(OdintsovRP41DataSet.tovariDataTable dataTable) {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ if ((this.ClearBeforeFill == true)) {
|
|
|
+ dataTable.Clear();
|
|
|
+ }
|
|
|
+ int returnValue = this.Adapter.Fill(dataTable);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual OdintsovRP41DataSet.tovariDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ OdintsovRP41DataSet.tovariDataTable dataTable = new OdintsovRP41DataSet.tovariDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OdintsovRP41DataSet.tovariDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OdintsovRP41DataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "tovari");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
+ dataRow});
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
+ return this.Adapter.Update(dataRows);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
+ public virtual int Insert(global::System.Nullable<int> id, string Наименование, string Изображение, string Производитель, string Активен, string Цена) {
|
|
|
+ if ((id.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Наименование == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
|
|
|
+ }
|
|
|
+ if ((Изображение == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Изображение));
|
|
|
+ }
|
|
|
+ if ((Производитель == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Производитель));
|
|
|
+ }
|
|
|
+ if ((Активен == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Активен));
|
|
|
+ }
|
|
|
+ if ((Цена == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Цена));
|
|
|
+ }
|
|
|
+ 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();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
|
|
+ ///</summary>
|
|
|
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
+ [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
|
|
|
+ "esigner, Version=10.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 _2TableAdapter @__2TableAdapter;
|
|
|
+
|
|
|
+ private manufactures_b_importTableAdapter _manufactures_b_importTableAdapter;
|
|
|
+
|
|
|
+ private product_b_import2TableAdapter _product_b_import2TableAdapter;
|
|
|
+
|
|
|
+ private tovariTableAdapter _tovariTableAdapter;
|
|
|
+
|
|
|
+ private bool _backupDataSetBeforeUpdate;
|
|
|
+
|
|
|
+ private global::System.Data.IDbConnection _connection;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public UpdateOrderOption UpdateOrder {
|
|
|
+ get {
|
|
|
+ return this._updateOrder;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._updateOrder = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
+ "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
+ public _2TableAdapter _2TableAdapter {
|
|
|
+ get {
|
|
|
+ return this.@__2TableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.@__2TableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
+ "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
+ public manufactures_b_importTableAdapter manufactures_b_importTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._manufactures_b_importTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._manufactures_b_importTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
+ "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
+ public product_b_import2TableAdapter product_b_import2TableAdapter {
|
|
|
+ get {
|
|
|
+ return this._product_b_import2TableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._product_b_import2TableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
+ "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
+ public tovariTableAdapter tovariTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._tovariTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._tovariTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool BackupDataSetBeforeUpdate {
|
|
|
+ get {
|
|
|
+ return this._backupDataSetBeforeUpdate;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._backupDataSetBeforeUpdate = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public global::System.Data.IDbConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection != null)) {
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ if (((this.@__2TableAdapter != null)
|
|
|
+ && (this.@__2TableAdapter.Connection != null))) {
|
|
|
+ return this.@__2TableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._manufactures_b_importTableAdapter != null)
|
|
|
+ && (this._manufactures_b_importTableAdapter.Connection != null))) {
|
|
|
+ return this._manufactures_b_importTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._product_b_import2TableAdapter != null)
|
|
|
+ && (this._product_b_import2TableAdapter.Connection != null))) {
|
|
|
+ return this._product_b_import2TableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._tovariTableAdapter != null)
|
|
|
+ && (this._tovariTableAdapter.Connection != null))) {
|
|
|
+ return this._tovariTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int TableAdapterInstanceCount {
|
|
|
+ get {
|
|
|
+ int count = 0;
|
|
|
+ if ((this.@__2TableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._manufactures_b_importTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._product_b_import2TableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._tovariTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ return count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Update rows in top-down order.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private int UpdateUpdatedRows(OdintsovRP41DataSet 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.@__2TableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet._2.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this.@__2TableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._manufactures_b_importTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.manufactures_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._manufactures_b_importTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._product_b_import2TableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.product_b_import2.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._product_b_import2TableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._tovariTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.tovari.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._tovariTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Insert rows in top-down order.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private int UpdateInsertedRows(OdintsovRP41DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
|
+ int result = 0;
|
|
|
+ if ((this.@__2TableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet._2.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this.@__2TableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._manufactures_b_importTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.manufactures_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._manufactures_b_importTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._product_b_import2TableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.product_b_import2.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._product_b_import2TableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._tovariTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.tovari.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._tovariTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Delete rows in bottom-up order.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private int UpdateDeletedRows(OdintsovRP41DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
|
|
+ int result = 0;
|
|
|
+ if ((this._tovariTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.tovari.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._tovariTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._product_b_import2TableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.product_b_import2.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._product_b_import2TableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._manufactures_b_importTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.manufactures_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._manufactures_b_importTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this.@__2TableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet._2.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this.@__2TableAdapter.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()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public virtual int UpdateAll(OdintsovRP41DataSet dataSet) {
|
|
|
+ if ((dataSet == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("dataSet");
|
|
|
+ }
|
|
|
+ if ((dataSet.HasChanges() == false)) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ if (((this.@__2TableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this.@__2TableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
|
|
|
+ "r, должны использовать одинаковую строку подключения.");
|
|
|
+ }
|
|
|
+ if (((this._manufactures_b_importTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._manufactures_b_importTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
|
|
|
+ "r, должны использовать одинаковую строку подключения.");
|
|
|
+ }
|
|
|
+ if (((this._product_b_import2TableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._product_b_import2TableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
|
|
|
+ "r, должны использовать одинаковую строку подключения.");
|
|
|
+ }
|
|
|
+ if (((this._tovariTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._tovariTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
|
|
|
+ "r, должны использовать одинаковую строку подключения.");
|
|
|
+ }
|
|
|
+ global::System.Data.IDbConnection workConnection = this.Connection;
|
|
|
+ if ((workConnection == null)) {
|
|
|
+ throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
|
|
|
+ "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
|
|
|
+ }
|
|
|
+ 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("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
|
|
|
+ "и или текущее состояние не позволяет начать транзакцию.");
|
|
|
+ }
|
|
|
+ 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.@__2TableAdapter != null)) {
|
|
|
+ revertConnections.Add(this.@__2TableAdapter, this.@__2TableAdapter.Connection);
|
|
|
+ this.@__2TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this.@__2TableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this.@__2TableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this.@__2TableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this.@__2TableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._manufactures_b_importTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._manufactures_b_importTableAdapter, this._manufactures_b_importTableAdapter.Connection);
|
|
|
+ this._manufactures_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._manufactures_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._manufactures_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._manufactures_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._manufactures_b_importTableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._product_b_import2TableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._product_b_import2TableAdapter, this._product_b_import2TableAdapter.Connection);
|
|
|
+ this._product_b_import2TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._product_b_import2TableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._product_b_import2TableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._product_b_import2TableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._product_b_import2TableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._tovariTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._tovariTableAdapter, this._tovariTableAdapter.Connection);
|
|
|
+ this._tovariTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._tovariTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._tovariTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._tovariTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._tovariTableAdapter.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.@__2TableAdapter != null)) {
|
|
|
+ this.@__2TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this.@__2TableAdapter]));
|
|
|
+ this.@__2TableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._manufactures_b_importTableAdapter != null)) {
|
|
|
+ this._manufactures_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufactures_b_importTableAdapter]));
|
|
|
+ this._manufactures_b_importTableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._product_b_import2TableAdapter != null)) {
|
|
|
+ this._product_b_import2TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._product_b_import2TableAdapter]));
|
|
|
+ this._product_b_import2TableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._tovariTableAdapter != null)) {
|
|
|
+ this._tovariTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tovariTableAdapter]));
|
|
|
+ this._tovariTableAdapter.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()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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", "16.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", "16.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()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
|
|
|
+ global::System.Diagnostics.Debug.Assert((row != null));
|
|
|
+ global::System.Data.DataRow root = row;
|
|
|
+ distance = 0;
|
|
|
+
|
|
|
+ global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
|
|
|
+ traversedRows[row] = row;
|
|
|
+
|
|
|
+ global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
|
+ for (
|
|
|
+ ; ((parent != null)
|
|
|
+ && (traversedRows.ContainsKey(parent) == false));
|
|
|
+ ) {
|
|
|
+ distance = (distance + 1);
|
|
|
+ root = parent;
|
|
|
+ traversedRows[parent] = parent;
|
|
|
+ parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((distance == 0)) {
|
|
|
+ traversedRows.Clear();
|
|
|
+ traversedRows[row] = row;
|
|
|
+ parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
|
|
+ for (
|
|
|
+ ; ((parent != null)
|
|
|
+ && (traversedRows.ContainsKey(parent) == false));
|
|
|
+ ) {
|
|
|
+ distance = (distance + 1);
|
|
|
+ root = parent;
|
|
|
+ traversedRows[parent] = parent;
|
|
|
+ parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return root;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+
|
|
|
+ int distance1 = 0;
|
|
|
+ global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
|
|
|
+
|
|
|
+ int distance2 = 0;
|
|
|
+ global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
|
|
|
+
|
|
|
+ if (object.ReferenceEquals(root1, root2)) {
|
|
|
+ return (this._childFirst * distance1.CompareTo(distance2));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ global::System.Diagnostics.Debug.Assert(((root1.Table != null)
|
|
|
+ && (root2.Table != null)));
|
|
|
+ if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+#pragma warning restore 1591
|