|
@@ -0,0 +1,7192 @@
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+// <auto-generated>
|
|
|
+// This code was generated by a tool.
|
|
|
+// Runtime Version:4.0.30319.42000
|
|
|
+//
|
|
|
+// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
+// the code is regenerated.
|
|
|
+// </auto-generated>
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+
|
|
|
+#pragma warning disable 1591
|
|
|
+
|
|
|
+namespace СУБД_Фабрика {
|
|
|
+
|
|
|
+
|
|
|
+ /// <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("SewingFactoryMURDataSet")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
|
|
|
+ public partial class SewingFactoryMURDataSet : global::System.Data.DataSet {
|
|
|
+
|
|
|
+ private ClothDataTable tableCloth;
|
|
|
+
|
|
|
+ private FurnituraDataTable tableFurnitura;
|
|
|
+
|
|
|
+ private IzdeliaDataTable tableIzdelia;
|
|
|
+
|
|
|
+ private OrdersDataTable tableOrders;
|
|
|
+
|
|
|
+ private RolesDataTable tableRoles;
|
|
|
+
|
|
|
+ private UsersDataTable tableUsers;
|
|
|
+
|
|
|
+ private global::System.Data.DataRelation relationFK_Orders_Cloth;
|
|
|
+
|
|
|
+ private global::System.Data.DataRelation relationFK_Orders_Furnitura;
|
|
|
+
|
|
|
+ private global::System.Data.DataRelation relationFK_Orders_Izdelia;
|
|
|
+
|
|
|
+ private global::System.Data.DataRelation relationFK_Orders_Users;
|
|
|
+
|
|
|
+ private global::System.Data.DataRelation relationFK_Orders_Users1;
|
|
|
+
|
|
|
+ private global::System.Data.DataRelation relationFK_Users_Roles;
|
|
|
+
|
|
|
+ private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public SewingFactoryMURDataSet() {
|
|
|
+ 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", "17.0.0.0")]
|
|
|
+ protected SewingFactoryMURDataSet(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["Cloth"] != null)) {
|
|
|
+ base.Tables.Add(new ClothDataTable(ds.Tables["Cloth"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Furnitura"] != null)) {
|
|
|
+ base.Tables.Add(new FurnituraDataTable(ds.Tables["Furnitura"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Izdelia"] != null)) {
|
|
|
+ base.Tables.Add(new IzdeliaDataTable(ds.Tables["Izdelia"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Orders"] != null)) {
|
|
|
+ base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Roles"] != null)) {
|
|
|
+ base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Users"] != null)) {
|
|
|
+ base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
|
|
|
+ }
|
|
|
+ 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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public ClothDataTable Cloth {
|
|
|
+ get {
|
|
|
+ return this.tableCloth;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public FurnituraDataTable Furnitura {
|
|
|
+ get {
|
|
|
+ return this.tableFurnitura;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public IzdeliaDataTable Izdelia {
|
|
|
+ get {
|
|
|
+ return this.tableIzdelia;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public OrdersDataTable Orders {
|
|
|
+ get {
|
|
|
+ return this.tableOrders;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public RolesDataTable Roles {
|
|
|
+ get {
|
|
|
+ return this.tableRoles;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public UsersDataTable Users {
|
|
|
+ get {
|
|
|
+ return this.tableUsers;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.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", "17.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", "17.0.0.0")]
|
|
|
+ public override global::System.Data.DataSet Clone() {
|
|
|
+ SewingFactoryMURDataSet cln = ((SewingFactoryMURDataSet)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ cln.SchemaSerializationMode = this.SchemaSerializationMode;
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override bool ShouldSerializeTables() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override bool ShouldSerializeRelations() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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["Cloth"] != null)) {
|
|
|
+ base.Tables.Add(new ClothDataTable(ds.Tables["Cloth"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Furnitura"] != null)) {
|
|
|
+ base.Tables.Add(new FurnituraDataTable(ds.Tables["Furnitura"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Izdelia"] != null)) {
|
|
|
+ base.Tables.Add(new IzdeliaDataTable(ds.Tables["Izdelia"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Orders"] != null)) {
|
|
|
+ base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Roles"] != null)) {
|
|
|
+ base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Users"] != null)) {
|
|
|
+ base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
|
|
|
+ }
|
|
|
+ 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", "17.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", "17.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.InitVars(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal void InitVars(bool initTable) {
|
|
|
+ this.tableCloth = ((ClothDataTable)(base.Tables["Cloth"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableCloth != null)) {
|
|
|
+ this.tableCloth.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tableFurnitura = ((FurnituraDataTable)(base.Tables["Furnitura"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableFurnitura != null)) {
|
|
|
+ this.tableFurnitura.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tableIzdelia = ((IzdeliaDataTable)(base.Tables["Izdelia"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableIzdelia != null)) {
|
|
|
+ this.tableIzdelia.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tableOrders = ((OrdersDataTable)(base.Tables["Orders"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableOrders != null)) {
|
|
|
+ this.tableOrders.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tableRoles = ((RolesDataTable)(base.Tables["Roles"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableRoles != null)) {
|
|
|
+ this.tableRoles.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableUsers != null)) {
|
|
|
+ this.tableUsers.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.relationFK_Orders_Cloth = this.Relations["FK_Orders_Cloth"];
|
|
|
+ this.relationFK_Orders_Furnitura = this.Relations["FK_Orders_Furnitura"];
|
|
|
+ this.relationFK_Orders_Izdelia = this.Relations["FK_Orders_Izdelia"];
|
|
|
+ this.relationFK_Orders_Users = this.Relations["FK_Orders_Users"];
|
|
|
+ this.relationFK_Orders_Users1 = this.Relations["FK_Orders_Users1"];
|
|
|
+ this.relationFK_Users_Roles = this.Relations["FK_Users_Roles"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.DataSetName = "SewingFactoryMURDataSet";
|
|
|
+ this.Prefix = "";
|
|
|
+ this.Namespace = "http://tempuri.org/SewingFactoryMURDataSet.xsd";
|
|
|
+ this.EnforceConstraints = true;
|
|
|
+ this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
+ this.tableCloth = new ClothDataTable();
|
|
|
+ base.Tables.Add(this.tableCloth);
|
|
|
+ this.tableFurnitura = new FurnituraDataTable();
|
|
|
+ base.Tables.Add(this.tableFurnitura);
|
|
|
+ this.tableIzdelia = new IzdeliaDataTable();
|
|
|
+ base.Tables.Add(this.tableIzdelia);
|
|
|
+ this.tableOrders = new OrdersDataTable();
|
|
|
+ base.Tables.Add(this.tableOrders);
|
|
|
+ this.tableRoles = new RolesDataTable();
|
|
|
+ base.Tables.Add(this.tableRoles);
|
|
|
+ this.tableUsers = new UsersDataTable();
|
|
|
+ base.Tables.Add(this.tableUsers);
|
|
|
+ this.relationFK_Orders_Cloth = new global::System.Data.DataRelation("FK_Orders_Cloth", new global::System.Data.DataColumn[] {
|
|
|
+ this.tableCloth.IDClothColumn}, new global::System.Data.DataColumn[] {
|
|
|
+ this.tableOrders.IDClothColumn}, false);
|
|
|
+ this.Relations.Add(this.relationFK_Orders_Cloth);
|
|
|
+ this.relationFK_Orders_Furnitura = new global::System.Data.DataRelation("FK_Orders_Furnitura", new global::System.Data.DataColumn[] {
|
|
|
+ this.tableFurnitura.idfurColumn}, new global::System.Data.DataColumn[] {
|
|
|
+ this.tableOrders.IDFurColumn}, false);
|
|
|
+ this.Relations.Add(this.relationFK_Orders_Furnitura);
|
|
|
+ this.relationFK_Orders_Izdelia = new global::System.Data.DataRelation("FK_Orders_Izdelia", new global::System.Data.DataColumn[] {
|
|
|
+ this.tableIzdelia.IDIzdColumn}, new global::System.Data.DataColumn[] {
|
|
|
+ this.tableOrders.IDIzdColumn}, false);
|
|
|
+ this.Relations.Add(this.relationFK_Orders_Izdelia);
|
|
|
+ this.relationFK_Orders_Users = new global::System.Data.DataRelation("FK_Orders_Users", new global::System.Data.DataColumn[] {
|
|
|
+ this.tableUsers.IDUserColumn}, new global::System.Data.DataColumn[] {
|
|
|
+ this.tableOrders.IDZakColumn}, false);
|
|
|
+ this.Relations.Add(this.relationFK_Orders_Users);
|
|
|
+ this.relationFK_Orders_Users1 = new global::System.Data.DataRelation("FK_Orders_Users1", new global::System.Data.DataColumn[] {
|
|
|
+ this.tableUsers.IDUserColumn}, new global::System.Data.DataColumn[] {
|
|
|
+ this.tableOrders.IDMenColumn}, false);
|
|
|
+ this.Relations.Add(this.relationFK_Orders_Users1);
|
|
|
+ this.relationFK_Users_Roles = new global::System.Data.DataRelation("FK_Users_Roles", new global::System.Data.DataColumn[] {
|
|
|
+ this.tableRoles.IDRoleColumn}, new global::System.Data.DataColumn[] {
|
|
|
+ this.tableUsers.RoleColumn}, false);
|
|
|
+ this.Relations.Add(this.relationFK_Users_Roles);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private bool ShouldSerializeCloth() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private bool ShouldSerializeFurnitura() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private bool ShouldSerializeIzdelia() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private bool ShouldSerializeOrders() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private bool ShouldSerializeRoles() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private bool ShouldSerializeUsers() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ SewingFactoryMURDataSet ds = new SewingFactoryMURDataSet();
|
|
|
+ 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", "17.0.0.0")]
|
|
|
+ public delegate void ClothRowChangeEventHandler(object sender, ClothRowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public delegate void FurnituraRowChangeEventHandler(object sender, FurnituraRowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public delegate void IzdeliaRowChangeEventHandler(object sender, IzdeliaRowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public delegate void OrdersRowChangeEventHandler(object sender, OrdersRowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public delegate void RolesRowChangeEventHandler(object sender, RolesRowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents the strongly named DataTable class.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Serializable()]
|
|
|
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
+ public partial class ClothDataTable : global::System.Data.TypedTableBase<ClothRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDCloth;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnTitle;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnColor;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnWidth;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnLength;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnComment;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnPhoto;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public ClothDataTable() {
|
|
|
+ this.TableName = "Cloth";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal ClothDataTable(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", "17.0.0.0")]
|
|
|
+ protected ClothDataTable(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", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDClothColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDCloth;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn TitleColumn {
|
|
|
+ get {
|
|
|
+ return this.columnTitle;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn ColorColumn {
|
|
|
+ get {
|
|
|
+ return this.columnColor;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn WidthColumn {
|
|
|
+ get {
|
|
|
+ return this.columnWidth;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn LengthColumn {
|
|
|
+ get {
|
|
|
+ return this.columnLength;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn CommentColumn {
|
|
|
+ get {
|
|
|
+ return this.columnComment;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn PhotoColumn {
|
|
|
+ get {
|
|
|
+ return this.columnPhoto;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public ClothRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((ClothRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event ClothRowChangeEventHandler ClothRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event ClothRowChangeEventHandler ClothRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event ClothRowChangeEventHandler ClothRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event ClothRowChangeEventHandler ClothRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void AddClothRow(ClothRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public ClothRow AddClothRow(string Title, string Color, int Width, int Length, string Comment, string Photo) {
|
|
|
+ ClothRow rowClothRow = ((ClothRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ Title,
|
|
|
+ Color,
|
|
|
+ Width,
|
|
|
+ Length,
|
|
|
+ Comment,
|
|
|
+ Photo};
|
|
|
+ rowClothRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowClothRow);
|
|
|
+ return rowClothRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public ClothRow FindByIDCloth(int IDCloth) {
|
|
|
+ return ((ClothRow)(this.Rows.Find(new object[] {
|
|
|
+ IDCloth})));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ ClothDataTable cln = ((ClothDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new ClothDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnIDCloth = base.Columns["IDCloth"];
|
|
|
+ this.columnTitle = base.Columns["Title"];
|
|
|
+ this.columnColor = base.Columns["Color"];
|
|
|
+ this.columnWidth = base.Columns["Width"];
|
|
|
+ this.columnLength = base.Columns["Length"];
|
|
|
+ this.columnComment = base.Columns["Comment"];
|
|
|
+ this.columnPhoto = base.Columns["Photo"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnIDCloth = new global::System.Data.DataColumn("IDCloth", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDCloth);
|
|
|
+ this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnTitle);
|
|
|
+ this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnColor);
|
|
|
+ this.columnWidth = new global::System.Data.DataColumn("Width", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnWidth);
|
|
|
+ this.columnLength = new global::System.Data.DataColumn("Length", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnLength);
|
|
|
+ this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnComment);
|
|
|
+ this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnPhoto);
|
|
|
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
+ this.columnIDCloth}, true));
|
|
|
+ this.columnIDCloth.AutoIncrement = true;
|
|
|
+ this.columnIDCloth.AutoIncrementSeed = -1;
|
|
|
+ this.columnIDCloth.AutoIncrementStep = -1;
|
|
|
+ this.columnIDCloth.AllowDBNull = false;
|
|
|
+ this.columnIDCloth.ReadOnly = true;
|
|
|
+ this.columnIDCloth.Unique = true;
|
|
|
+ this.columnTitle.MaxLength = 50;
|
|
|
+ this.columnColor.MaxLength = 50;
|
|
|
+ this.columnComment.MaxLength = 50;
|
|
|
+ this.columnPhoto.MaxLength = 50;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public ClothRow NewClothRow() {
|
|
|
+ return ((ClothRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new ClothRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(ClothRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.ClothRowChanged != null)) {
|
|
|
+ this.ClothRowChanged(this, new ClothRowChangeEvent(((ClothRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.ClothRowChanging != null)) {
|
|
|
+ this.ClothRowChanging(this, new ClothRowChangeEvent(((ClothRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.ClothRowDeleted != null)) {
|
|
|
+ this.ClothRowDeleted(this, new ClothRowChangeEvent(((ClothRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.ClothRowDeleting != null)) {
|
|
|
+ this.ClothRowDeleting(this, new ClothRowChangeEvent(((ClothRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void RemoveClothRow(ClothRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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();
|
|
|
+ SewingFactoryMURDataSet ds = new SewingFactoryMURDataSet();
|
|
|
+ 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 = "ClothDataTable";
|
|
|
+ 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 FurnituraDataTable : global::System.Data.TypedTableBase<FurnituraRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnidfur;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnnamefur;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnphoto;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columncountfur;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public FurnituraDataTable() {
|
|
|
+ this.TableName = "Furnitura";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal FurnituraDataTable(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", "17.0.0.0")]
|
|
|
+ protected FurnituraDataTable(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", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn idfurColumn {
|
|
|
+ get {
|
|
|
+ return this.columnidfur;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn namefurColumn {
|
|
|
+ get {
|
|
|
+ return this.columnnamefur;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn photoColumn {
|
|
|
+ get {
|
|
|
+ return this.columnphoto;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn countfurColumn {
|
|
|
+ get {
|
|
|
+ return this.columncountfur;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public FurnituraRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((FurnituraRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event FurnituraRowChangeEventHandler FurnituraRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event FurnituraRowChangeEventHandler FurnituraRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event FurnituraRowChangeEventHandler FurnituraRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event FurnituraRowChangeEventHandler FurnituraRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void AddFurnituraRow(FurnituraRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public FurnituraRow AddFurnituraRow(string namefur, string photo, int countfur) {
|
|
|
+ FurnituraRow rowFurnituraRow = ((FurnituraRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ namefur,
|
|
|
+ photo,
|
|
|
+ countfur};
|
|
|
+ rowFurnituraRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowFurnituraRow);
|
|
|
+ return rowFurnituraRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public FurnituraRow FindByidfur(int idfur) {
|
|
|
+ return ((FurnituraRow)(this.Rows.Find(new object[] {
|
|
|
+ idfur})));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ FurnituraDataTable cln = ((FurnituraDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new FurnituraDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnidfur = base.Columns["idfur"];
|
|
|
+ this.columnnamefur = base.Columns["namefur"];
|
|
|
+ this.columnphoto = base.Columns["photo"];
|
|
|
+ this.columncountfur = base.Columns["countfur"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnidfur = new global::System.Data.DataColumn("idfur", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnidfur);
|
|
|
+ this.columnnamefur = new global::System.Data.DataColumn("namefur", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnnamefur);
|
|
|
+ this.columnphoto = new global::System.Data.DataColumn("photo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnphoto);
|
|
|
+ this.columncountfur = new global::System.Data.DataColumn("countfur", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columncountfur);
|
|
|
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
+ this.columnidfur}, true));
|
|
|
+ this.columnidfur.AutoIncrement = true;
|
|
|
+ this.columnidfur.AutoIncrementSeed = -1;
|
|
|
+ this.columnidfur.AutoIncrementStep = -1;
|
|
|
+ this.columnidfur.AllowDBNull = false;
|
|
|
+ this.columnidfur.ReadOnly = true;
|
|
|
+ this.columnidfur.Unique = true;
|
|
|
+ this.columnnamefur.MaxLength = 50;
|
|
|
+ this.columnphoto.MaxLength = 50;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public FurnituraRow NewFurnituraRow() {
|
|
|
+ return ((FurnituraRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new FurnituraRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(FurnituraRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.FurnituraRowChanged != null)) {
|
|
|
+ this.FurnituraRowChanged(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.FurnituraRowChanging != null)) {
|
|
|
+ this.FurnituraRowChanging(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.FurnituraRowDeleted != null)) {
|
|
|
+ this.FurnituraRowDeleted(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.FurnituraRowDeleting != null)) {
|
|
|
+ this.FurnituraRowDeleting(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void RemoveFurnituraRow(FurnituraRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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();
|
|
|
+ SewingFactoryMURDataSet ds = new SewingFactoryMURDataSet();
|
|
|
+ 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 = "FurnituraDataTable";
|
|
|
+ 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 IzdeliaDataTable : global::System.Data.TypedTableBase<IzdeliaRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDIzd;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnTitle;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnLenght;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnWidth;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public IzdeliaDataTable() {
|
|
|
+ this.TableName = "Izdelia";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal IzdeliaDataTable(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", "17.0.0.0")]
|
|
|
+ protected IzdeliaDataTable(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", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDIzdColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDIzd;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn TitleColumn {
|
|
|
+ get {
|
|
|
+ return this.columnTitle;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn LenghtColumn {
|
|
|
+ get {
|
|
|
+ return this.columnLenght;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn WidthColumn {
|
|
|
+ get {
|
|
|
+ return this.columnWidth;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public IzdeliaRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((IzdeliaRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event IzdeliaRowChangeEventHandler IzdeliaRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event IzdeliaRowChangeEventHandler IzdeliaRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event IzdeliaRowChangeEventHandler IzdeliaRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event IzdeliaRowChangeEventHandler IzdeliaRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void AddIzdeliaRow(IzdeliaRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public IzdeliaRow AddIzdeliaRow(string Title, int Lenght, int Width) {
|
|
|
+ IzdeliaRow rowIzdeliaRow = ((IzdeliaRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ Title,
|
|
|
+ Lenght,
|
|
|
+ Width};
|
|
|
+ rowIzdeliaRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowIzdeliaRow);
|
|
|
+ return rowIzdeliaRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public IzdeliaRow FindByIDIzd(int IDIzd) {
|
|
|
+ return ((IzdeliaRow)(this.Rows.Find(new object[] {
|
|
|
+ IDIzd})));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ IzdeliaDataTable cln = ((IzdeliaDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new IzdeliaDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnIDIzd = base.Columns["IDIzd"];
|
|
|
+ this.columnTitle = base.Columns["Title"];
|
|
|
+ this.columnLenght = base.Columns["Lenght"];
|
|
|
+ this.columnWidth = base.Columns["Width"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnIDIzd = new global::System.Data.DataColumn("IDIzd", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDIzd);
|
|
|
+ this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnTitle);
|
|
|
+ this.columnLenght = new global::System.Data.DataColumn("Lenght", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnLenght);
|
|
|
+ this.columnWidth = new global::System.Data.DataColumn("Width", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnWidth);
|
|
|
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
+ this.columnIDIzd}, true));
|
|
|
+ this.columnIDIzd.AutoIncrement = true;
|
|
|
+ this.columnIDIzd.AutoIncrementSeed = -1;
|
|
|
+ this.columnIDIzd.AutoIncrementStep = -1;
|
|
|
+ this.columnIDIzd.AllowDBNull = false;
|
|
|
+ this.columnIDIzd.ReadOnly = true;
|
|
|
+ this.columnIDIzd.Unique = true;
|
|
|
+ this.columnTitle.MaxLength = 50;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public IzdeliaRow NewIzdeliaRow() {
|
|
|
+ return ((IzdeliaRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new IzdeliaRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(IzdeliaRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.IzdeliaRowChanged != null)) {
|
|
|
+ this.IzdeliaRowChanged(this, new IzdeliaRowChangeEvent(((IzdeliaRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.IzdeliaRowChanging != null)) {
|
|
|
+ this.IzdeliaRowChanging(this, new IzdeliaRowChangeEvent(((IzdeliaRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.IzdeliaRowDeleted != null)) {
|
|
|
+ this.IzdeliaRowDeleted(this, new IzdeliaRowChangeEvent(((IzdeliaRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.IzdeliaRowDeleting != null)) {
|
|
|
+ this.IzdeliaRowDeleting(this, new IzdeliaRowChangeEvent(((IzdeliaRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void RemoveIzdeliaRow(IzdeliaRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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();
|
|
|
+ SewingFactoryMURDataSet ds = new SewingFactoryMURDataSet();
|
|
|
+ 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 = "IzdeliaDataTable";
|
|
|
+ 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 OrdersDataTable : global::System.Data.TypedTableBase<OrdersRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDOrder;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDIzd;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDZak;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDMen;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDCloth;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDFur;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnCountFur;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnCountIzd;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersDataTable() {
|
|
|
+ this.TableName = "Orders";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal OrdersDataTable(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", "17.0.0.0")]
|
|
|
+ protected OrdersDataTable(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", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDOrderColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDOrder;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDIzdColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDIzd;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDZakColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDZak;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDMenColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDMen;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDClothColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDCloth;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDFurColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDFur;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn CountFurColumn {
|
|
|
+ get {
|
|
|
+ return this.columnCountFur;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn CountIzdColumn {
|
|
|
+ get {
|
|
|
+ return this.columnCountIzd;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public OrdersRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((OrdersRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event OrdersRowChangeEventHandler OrdersRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event OrdersRowChangeEventHandler OrdersRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event OrdersRowChangeEventHandler OrdersRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event OrdersRowChangeEventHandler OrdersRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void AddOrdersRow(OrdersRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersRow AddOrdersRow(IzdeliaRow parentIzdeliaRowByFK_Orders_Izdelia, UsersRow parentUsersRowByFK_Orders_Users, UsersRow parentUsersRowByFK_Orders_Users1, ClothRow parentClothRowByFK_Orders_Cloth, FurnituraRow parentFurnituraRowByFK_Orders_Furnitura, int CountFur, int CountIzd) {
|
|
|
+ OrdersRow rowOrdersRow = ((OrdersRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ null,
|
|
|
+ null,
|
|
|
+ null,
|
|
|
+ null,
|
|
|
+ null,
|
|
|
+ CountFur,
|
|
|
+ CountIzd};
|
|
|
+ if ((parentIzdeliaRowByFK_Orders_Izdelia != null)) {
|
|
|
+ columnValuesArray[1] = parentIzdeliaRowByFK_Orders_Izdelia[0];
|
|
|
+ }
|
|
|
+ if ((parentUsersRowByFK_Orders_Users != null)) {
|
|
|
+ columnValuesArray[2] = parentUsersRowByFK_Orders_Users[0];
|
|
|
+ }
|
|
|
+ if ((parentUsersRowByFK_Orders_Users1 != null)) {
|
|
|
+ columnValuesArray[3] = parentUsersRowByFK_Orders_Users1[0];
|
|
|
+ }
|
|
|
+ if ((parentClothRowByFK_Orders_Cloth != null)) {
|
|
|
+ columnValuesArray[4] = parentClothRowByFK_Orders_Cloth[0];
|
|
|
+ }
|
|
|
+ if ((parentFurnituraRowByFK_Orders_Furnitura != null)) {
|
|
|
+ columnValuesArray[5] = parentFurnituraRowByFK_Orders_Furnitura[0];
|
|
|
+ }
|
|
|
+ rowOrdersRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowOrdersRow);
|
|
|
+ return rowOrdersRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersRow FindByIDOrder(int IDOrder) {
|
|
|
+ return ((OrdersRow)(this.Rows.Find(new object[] {
|
|
|
+ IDOrder})));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ OrdersDataTable cln = ((OrdersDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new OrdersDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnIDOrder = base.Columns["IDOrder"];
|
|
|
+ this.columnIDIzd = base.Columns["IDIzd"];
|
|
|
+ this.columnIDZak = base.Columns["IDZak"];
|
|
|
+ this.columnIDMen = base.Columns["IDMen"];
|
|
|
+ this.columnIDCloth = base.Columns["IDCloth"];
|
|
|
+ this.columnIDFur = base.Columns["IDFur"];
|
|
|
+ this.columnCountFur = base.Columns["CountFur"];
|
|
|
+ this.columnCountIzd = base.Columns["CountIzd"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnIDOrder = new global::System.Data.DataColumn("IDOrder", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDOrder);
|
|
|
+ this.columnIDIzd = new global::System.Data.DataColumn("IDIzd", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDIzd);
|
|
|
+ this.columnIDZak = new global::System.Data.DataColumn("IDZak", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDZak);
|
|
|
+ this.columnIDMen = new global::System.Data.DataColumn("IDMen", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDMen);
|
|
|
+ this.columnIDCloth = new global::System.Data.DataColumn("IDCloth", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDCloth);
|
|
|
+ this.columnIDFur = new global::System.Data.DataColumn("IDFur", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDFur);
|
|
|
+ this.columnCountFur = new global::System.Data.DataColumn("CountFur", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnCountFur);
|
|
|
+ this.columnCountIzd = new global::System.Data.DataColumn("CountIzd", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnCountIzd);
|
|
|
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
+ this.columnIDOrder}, true));
|
|
|
+ this.columnIDOrder.AutoIncrement = true;
|
|
|
+ this.columnIDOrder.AutoIncrementSeed = -1;
|
|
|
+ this.columnIDOrder.AutoIncrementStep = -1;
|
|
|
+ this.columnIDOrder.AllowDBNull = false;
|
|
|
+ this.columnIDOrder.ReadOnly = true;
|
|
|
+ this.columnIDOrder.Unique = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersRow NewOrdersRow() {
|
|
|
+ return ((OrdersRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new OrdersRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(OrdersRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.OrdersRowChanged != null)) {
|
|
|
+ this.OrdersRowChanged(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.OrdersRowChanging != null)) {
|
|
|
+ this.OrdersRowChanging(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.OrdersRowDeleted != null)) {
|
|
|
+ this.OrdersRowDeleted(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.OrdersRowDeleting != null)) {
|
|
|
+ this.OrdersRowDeleting(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void RemoveOrdersRow(OrdersRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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();
|
|
|
+ SewingFactoryMURDataSet ds = new SewingFactoryMURDataSet();
|
|
|
+ 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 = "OrdersDataTable";
|
|
|
+ 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 RolesDataTable : global::System.Data.TypedTableBase<RolesRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDRole;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnRole;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public RolesDataTable() {
|
|
|
+ this.TableName = "Roles";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal RolesDataTable(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", "17.0.0.0")]
|
|
|
+ protected RolesDataTable(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", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDRoleColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDRole;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn RoleColumn {
|
|
|
+ get {
|
|
|
+ return this.columnRole;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public RolesRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((RolesRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event RolesRowChangeEventHandler RolesRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event RolesRowChangeEventHandler RolesRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event RolesRowChangeEventHandler RolesRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event RolesRowChangeEventHandler RolesRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void AddRolesRow(RolesRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public RolesRow AddRolesRow(string Role) {
|
|
|
+ RolesRow rowRolesRow = ((RolesRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ Role};
|
|
|
+ rowRolesRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowRolesRow);
|
|
|
+ return rowRolesRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public RolesRow FindByIDRole(int IDRole) {
|
|
|
+ return ((RolesRow)(this.Rows.Find(new object[] {
|
|
|
+ IDRole})));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ RolesDataTable cln = ((RolesDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new RolesDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnIDRole = base.Columns["IDRole"];
|
|
|
+ this.columnRole = base.Columns["Role"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnIDRole = new global::System.Data.DataColumn("IDRole", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDRole);
|
|
|
+ this.columnRole = new global::System.Data.DataColumn("Role", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnRole);
|
|
|
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
+ this.columnIDRole}, true));
|
|
|
+ this.columnIDRole.AutoIncrement = true;
|
|
|
+ this.columnIDRole.AutoIncrementSeed = -1;
|
|
|
+ this.columnIDRole.AutoIncrementStep = -1;
|
|
|
+ this.columnIDRole.AllowDBNull = false;
|
|
|
+ this.columnIDRole.ReadOnly = true;
|
|
|
+ this.columnIDRole.Unique = true;
|
|
|
+ this.columnRole.MaxLength = 50;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public RolesRow NewRolesRow() {
|
|
|
+ return ((RolesRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new RolesRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(RolesRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.RolesRowChanged != null)) {
|
|
|
+ this.RolesRowChanged(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.RolesRowChanging != null)) {
|
|
|
+ this.RolesRowChanging(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.RolesRowDeleted != null)) {
|
|
|
+ this.RolesRowDeleted(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.RolesRowDeleting != null)) {
|
|
|
+ this.RolesRowDeleting(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void RemoveRolesRow(RolesRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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();
|
|
|
+ SewingFactoryMURDataSet ds = new SewingFactoryMURDataSet();
|
|
|
+ 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 = "RolesDataTable";
|
|
|
+ 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 UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnIDUser;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnLogin;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnPass;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnRole;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnFam;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnName;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnOtch;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnPhone;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public UsersDataTable() {
|
|
|
+ this.TableName = "Users";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal UsersDataTable(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", "17.0.0.0")]
|
|
|
+ protected UsersDataTable(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", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn IDUserColumn {
|
|
|
+ get {
|
|
|
+ return this.columnIDUser;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn LoginColumn {
|
|
|
+ get {
|
|
|
+ return this.columnLogin;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn PassColumn {
|
|
|
+ get {
|
|
|
+ return this.columnPass;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn RoleColumn {
|
|
|
+ get {
|
|
|
+ return this.columnRole;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn FamColumn {
|
|
|
+ get {
|
|
|
+ return this.columnFam;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn NameColumn {
|
|
|
+ get {
|
|
|
+ return this.columnName;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn OtchColumn {
|
|
|
+ get {
|
|
|
+ return this.columnOtch;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn PhoneColumn {
|
|
|
+ get {
|
|
|
+ return this.columnPhone;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public UsersRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((UsersRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event UsersRowChangeEventHandler UsersRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event UsersRowChangeEventHandler UsersRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event UsersRowChangeEventHandler UsersRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event UsersRowChangeEventHandler UsersRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void AddUsersRow(UsersRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public UsersRow AddUsersRow(string Login, string Pass, RolesRow parentRolesRowByFK_Users_Roles, string Fam, string Name, string Otch, string Phone) {
|
|
|
+ UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ Login,
|
|
|
+ Pass,
|
|
|
+ null,
|
|
|
+ Fam,
|
|
|
+ Name,
|
|
|
+ Otch,
|
|
|
+ Phone};
|
|
|
+ if ((parentRolesRowByFK_Users_Roles != null)) {
|
|
|
+ columnValuesArray[3] = parentRolesRowByFK_Users_Roles[0];
|
|
|
+ }
|
|
|
+ rowUsersRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowUsersRow);
|
|
|
+ return rowUsersRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public UsersRow FindByIDUser(int IDUser) {
|
|
|
+ return ((UsersRow)(this.Rows.Find(new object[] {
|
|
|
+ IDUser})));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ UsersDataTable cln = ((UsersDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new UsersDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnIDUser = base.Columns["IDUser"];
|
|
|
+ this.columnLogin = base.Columns["Login"];
|
|
|
+ this.columnPass = base.Columns["Pass"];
|
|
|
+ this.columnRole = base.Columns["Role"];
|
|
|
+ this.columnFam = base.Columns["Fam"];
|
|
|
+ this.columnName = base.Columns["Name"];
|
|
|
+ this.columnOtch = base.Columns["Otch"];
|
|
|
+ this.columnPhone = base.Columns["Phone"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnIDUser = new global::System.Data.DataColumn("IDUser", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnIDUser);
|
|
|
+ this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnLogin);
|
|
|
+ this.columnPass = new global::System.Data.DataColumn("Pass", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnPass);
|
|
|
+ this.columnRole = new global::System.Data.DataColumn("Role", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnRole);
|
|
|
+ this.columnFam = new global::System.Data.DataColumn("Fam", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnFam);
|
|
|
+ this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnName);
|
|
|
+ this.columnOtch = new global::System.Data.DataColumn("Otch", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnOtch);
|
|
|
+ this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnPhone);
|
|
|
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
+ this.columnIDUser}, true));
|
|
|
+ this.columnIDUser.AutoIncrement = true;
|
|
|
+ this.columnIDUser.AutoIncrementSeed = -1;
|
|
|
+ this.columnIDUser.AutoIncrementStep = -1;
|
|
|
+ this.columnIDUser.AllowDBNull = false;
|
|
|
+ this.columnIDUser.ReadOnly = true;
|
|
|
+ this.columnIDUser.Unique = true;
|
|
|
+ this.columnLogin.MaxLength = 50;
|
|
|
+ this.columnPass.MaxLength = 50;
|
|
|
+ this.columnFam.MaxLength = 50;
|
|
|
+ this.columnName.MaxLength = 50;
|
|
|
+ this.columnOtch.MaxLength = 50;
|
|
|
+ this.columnPhone.MaxLength = 50;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public UsersRow NewUsersRow() {
|
|
|
+ return ((UsersRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new UsersRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(UsersRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.UsersRowChanged != null)) {
|
|
|
+ this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.UsersRowChanging != null)) {
|
|
|
+ this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.UsersRowDeleted != null)) {
|
|
|
+ this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.UsersRowDeleting != null)) {
|
|
|
+ this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void RemoveUsersRow(UsersRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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();
|
|
|
+ SewingFactoryMURDataSet ds = new SewingFactoryMURDataSet();
|
|
|
+ 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 = "UsersDataTable";
|
|
|
+ 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 ClothRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private ClothDataTable tableCloth;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal ClothRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableCloth = ((ClothDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDCloth {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tableCloth.IDClothColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableCloth.IDClothColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Title {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableCloth.TitleColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Title\' in table \'Cloth\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableCloth.TitleColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Color {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableCloth.ColorColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Color\' in table \'Cloth\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableCloth.ColorColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int Width {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableCloth.WidthColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Width\' in table \'Cloth\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableCloth.WidthColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int Length {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableCloth.LengthColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Length\' in table \'Cloth\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableCloth.LengthColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Comment {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableCloth.CommentColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Comment\' in table \'Cloth\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableCloth.CommentColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Photo {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableCloth.PhotoColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Photo\' in table \'Cloth\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableCloth.PhotoColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsTitleNull() {
|
|
|
+ return this.IsNull(this.tableCloth.TitleColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetTitleNull() {
|
|
|
+ this[this.tableCloth.TitleColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsColorNull() {
|
|
|
+ return this.IsNull(this.tableCloth.ColorColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetColorNull() {
|
|
|
+ this[this.tableCloth.ColorColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsWidthNull() {
|
|
|
+ return this.IsNull(this.tableCloth.WidthColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetWidthNull() {
|
|
|
+ this[this.tableCloth.WidthColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsLengthNull() {
|
|
|
+ return this.IsNull(this.tableCloth.LengthColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetLengthNull() {
|
|
|
+ this[this.tableCloth.LengthColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsCommentNull() {
|
|
|
+ return this.IsNull(this.tableCloth.CommentColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetCommentNull() {
|
|
|
+ this[this.tableCloth.CommentColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsPhotoNull() {
|
|
|
+ return this.IsNull(this.tableCloth.PhotoColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetPhotoNull() {
|
|
|
+ this[this.tableCloth.PhotoColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersRow[] GetOrdersRows() {
|
|
|
+ if ((this.Table.ChildRelations["FK_Orders_Cloth"] == null)) {
|
|
|
+ return new OrdersRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Cloth"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class FurnituraRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private FurnituraDataTable tableFurnitura;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal FurnituraRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableFurnitura = ((FurnituraDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int idfur {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tableFurnitura.idfurColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableFurnitura.idfurColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string namefur {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableFurnitura.namefurColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'namefur\' in table \'Furnitura\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableFurnitura.namefurColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string photo {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableFurnitura.photoColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'photo\' in table \'Furnitura\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableFurnitura.photoColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int countfur {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableFurnitura.countfurColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'countfur\' in table \'Furnitura\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableFurnitura.countfurColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsnamefurNull() {
|
|
|
+ return this.IsNull(this.tableFurnitura.namefurColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetnamefurNull() {
|
|
|
+ this[this.tableFurnitura.namefurColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsphotoNull() {
|
|
|
+ return this.IsNull(this.tableFurnitura.photoColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetphotoNull() {
|
|
|
+ this[this.tableFurnitura.photoColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IscountfurNull() {
|
|
|
+ return this.IsNull(this.tableFurnitura.countfurColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetcountfurNull() {
|
|
|
+ this[this.tableFurnitura.countfurColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersRow[] GetOrdersRows() {
|
|
|
+ if ((this.Table.ChildRelations["FK_Orders_Furnitura"] == null)) {
|
|
|
+ return new OrdersRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Furnitura"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class IzdeliaRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private IzdeliaDataTable tableIzdelia;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal IzdeliaRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableIzdelia = ((IzdeliaDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDIzd {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tableIzdelia.IDIzdColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableIzdelia.IDIzdColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Title {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableIzdelia.TitleColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Title\' in table \'Izdelia\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableIzdelia.TitleColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int Lenght {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableIzdelia.LenghtColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Lenght\' in table \'Izdelia\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableIzdelia.LenghtColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int Width {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableIzdelia.WidthColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Width\' in table \'Izdelia\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableIzdelia.WidthColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsTitleNull() {
|
|
|
+ return this.IsNull(this.tableIzdelia.TitleColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetTitleNull() {
|
|
|
+ this[this.tableIzdelia.TitleColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsLenghtNull() {
|
|
|
+ return this.IsNull(this.tableIzdelia.LenghtColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetLenghtNull() {
|
|
|
+ this[this.tableIzdelia.LenghtColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsWidthNull() {
|
|
|
+ return this.IsNull(this.tableIzdelia.WidthColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetWidthNull() {
|
|
|
+ this[this.tableIzdelia.WidthColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersRow[] GetOrdersRows() {
|
|
|
+ if ((this.Table.ChildRelations["FK_Orders_Izdelia"] == null)) {
|
|
|
+ return new OrdersRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Izdelia"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class OrdersRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private OrdersDataTable tableOrders;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal OrdersRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableOrders = ((OrdersDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDOrder {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tableOrders.IDOrderColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrders.IDOrderColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDIzd {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableOrders.IDIzdColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'IDIzd\' in table \'Orders\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrders.IDIzdColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDZak {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableOrders.IDZakColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'IDZak\' in table \'Orders\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrders.IDZakColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDMen {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableOrders.IDMenColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'IDMen\' in table \'Orders\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrders.IDMenColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDCloth {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableOrders.IDClothColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'IDCloth\' in table \'Orders\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrders.IDClothColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDFur {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableOrders.IDFurColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'IDFur\' in table \'Orders\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrders.IDFurColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int CountFur {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableOrders.CountFurColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'CountFur\' in table \'Orders\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrders.CountFurColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int CountIzd {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableOrders.CountIzdColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'CountIzd\' in table \'Orders\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrders.CountIzdColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public ClothRow ClothRow {
|
|
|
+ get {
|
|
|
+ return ((ClothRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Cloth"])));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Cloth"]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public FurnituraRow FurnituraRow {
|
|
|
+ get {
|
|
|
+ return ((FurnituraRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Furnitura"])));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Furnitura"]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public IzdeliaRow IzdeliaRow {
|
|
|
+ get {
|
|
|
+ return ((IzdeliaRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Izdelia"])));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Izdelia"]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public UsersRow UsersRowByFK_Orders_Users {
|
|
|
+ get {
|
|
|
+ return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Users"])));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Users"]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public UsersRow UsersRowByFK_Orders_Users1 {
|
|
|
+ get {
|
|
|
+ return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Users1"])));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Users1"]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsIDIzdNull() {
|
|
|
+ return this.IsNull(this.tableOrders.IDIzdColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetIDIzdNull() {
|
|
|
+ this[this.tableOrders.IDIzdColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsIDZakNull() {
|
|
|
+ return this.IsNull(this.tableOrders.IDZakColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetIDZakNull() {
|
|
|
+ this[this.tableOrders.IDZakColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsIDMenNull() {
|
|
|
+ return this.IsNull(this.tableOrders.IDMenColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetIDMenNull() {
|
|
|
+ this[this.tableOrders.IDMenColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsIDClothNull() {
|
|
|
+ return this.IsNull(this.tableOrders.IDClothColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetIDClothNull() {
|
|
|
+ this[this.tableOrders.IDClothColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsIDFurNull() {
|
|
|
+ return this.IsNull(this.tableOrders.IDFurColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetIDFurNull() {
|
|
|
+ this[this.tableOrders.IDFurColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsCountFurNull() {
|
|
|
+ return this.IsNull(this.tableOrders.CountFurColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetCountFurNull() {
|
|
|
+ this[this.tableOrders.CountFurColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsCountIzdNull() {
|
|
|
+ return this.IsNull(this.tableOrders.CountIzdColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetCountIzdNull() {
|
|
|
+ this[this.tableOrders.CountIzdColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class RolesRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private RolesDataTable tableRoles;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal RolesRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableRoles = ((RolesDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDRole {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tableRoles.IDRoleColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableRoles.IDRoleColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Role {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableRoles.RoleColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Role\' in table \'Roles\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableRoles.RoleColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsRoleNull() {
|
|
|
+ return this.IsNull(this.tableRoles.RoleColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetRoleNull() {
|
|
|
+ this[this.tableRoles.RoleColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public UsersRow[] GetUsersRows() {
|
|
|
+ if ((this.Table.ChildRelations["FK_Users_Roles"] == null)) {
|
|
|
+ return new UsersRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_Roles"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class UsersRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private UsersDataTable tableUsers;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal UsersRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableUsers = ((UsersDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int IDUser {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tableUsers.IDUserColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableUsers.IDUserColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Login {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableUsers.LoginColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Users\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableUsers.LoginColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Pass {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableUsers.PassColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Pass\' in table \'Users\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableUsers.PassColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int Role {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableUsers.RoleColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Role\' in table \'Users\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableUsers.RoleColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Fam {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableUsers.FamColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Fam\' in table \'Users\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableUsers.FamColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Name {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableUsers.NameColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Users\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableUsers.NameColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Otch {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableUsers.OtchColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Otch\' in table \'Users\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableUsers.OtchColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Phone {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableUsers.PhoneColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Phone\' in table \'Users\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableUsers.PhoneColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public RolesRow RolesRow {
|
|
|
+ get {
|
|
|
+ return ((RolesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_Roles"])));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Users_Roles"]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsLoginNull() {
|
|
|
+ return this.IsNull(this.tableUsers.LoginColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetLoginNull() {
|
|
|
+ this[this.tableUsers.LoginColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsPassNull() {
|
|
|
+ return this.IsNull(this.tableUsers.PassColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetPassNull() {
|
|
|
+ this[this.tableUsers.PassColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsRoleNull() {
|
|
|
+ return this.IsNull(this.tableUsers.RoleColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetRoleNull() {
|
|
|
+ this[this.tableUsers.RoleColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsFamNull() {
|
|
|
+ return this.IsNull(this.tableUsers.FamColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetFamNull() {
|
|
|
+ this[this.tableUsers.FamColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsNameNull() {
|
|
|
+ return this.IsNull(this.tableUsers.NameColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetNameNull() {
|
|
|
+ this[this.tableUsers.NameColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsOtchNull() {
|
|
|
+ return this.IsNull(this.tableUsers.OtchColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetOtchNull() {
|
|
|
+ this[this.tableUsers.OtchColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsPhoneNull() {
|
|
|
+ return this.IsNull(this.tableUsers.PhoneColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetPhoneNull() {
|
|
|
+ this[this.tableUsers.PhoneColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersRow[] GetOrdersRowsByFK_Orders_Users() {
|
|
|
+ if ((this.Table.ChildRelations["FK_Orders_Users"] == null)) {
|
|
|
+ return new OrdersRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersRow[] GetOrdersRowsByFK_Orders_Users1() {
|
|
|
+ if ((this.Table.ChildRelations["FK_Orders_Users1"] == null)) {
|
|
|
+ return new OrdersRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users1"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Row event argument class
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public class ClothRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private ClothRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public ClothRowChangeEvent(ClothRow 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", "17.0.0.0")]
|
|
|
+ public ClothRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public class FurnituraRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private FurnituraRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public FurnituraRowChangeEvent(FurnituraRow 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", "17.0.0.0")]
|
|
|
+ public FurnituraRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public class IzdeliaRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private IzdeliaRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public IzdeliaRowChangeEvent(IzdeliaRow 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", "17.0.0.0")]
|
|
|
+ public IzdeliaRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public class OrdersRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private OrdersRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public OrdersRowChangeEvent(OrdersRow 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", "17.0.0.0")]
|
|
|
+ public OrdersRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public class RolesRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private RolesRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public RolesRowChangeEvent(RolesRow 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", "17.0.0.0")]
|
|
|
+ public RolesRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ public class UsersRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private UsersRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public UsersRowChangeEvent(UsersRow 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", "17.0.0.0")]
|
|
|
+ public UsersRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataRowAction Action {
|
|
|
+ get {
|
|
|
+ return this.eventAction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+namespace СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters {
|
|
|
+
|
|
|
+
|
|
|
+ /// <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 ClothTableAdapter : 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", "17.0.0.0")]
|
|
|
+ public ClothTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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 = "Cloth";
|
|
|
+ tableMapping.ColumnMappings.Add("IDCloth", "IDCloth");
|
|
|
+ tableMapping.ColumnMappings.Add("Title", "Title");
|
|
|
+ tableMapping.ColumnMappings.Add("Color", "Color");
|
|
|
+ tableMapping.ColumnMappings.Add("Width", "Width");
|
|
|
+ tableMapping.ColumnMappings.Add("Length", "Length");
|
|
|
+ tableMapping.ColumnMappings.Add("Comment", "Comment");
|
|
|
+ tableMapping.ColumnMappings.Add("Photo", "Photo");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Cloth] WHERE (([IDCloth] = @Original_IDCloth) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Color = 1 AND [Color] IS NULL) OR ([Color] = @Original_Color)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)) AND ((@IsNull_Length = 1 AND [Length] IS NULL) OR ([Length] = @Original_Length)) AND ((@IsNull_Comment = 1 AND [Comment] IS NULL) OR ([Comment] = @Original_Comment)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)))";
|
|
|
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCloth", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Comment", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Cloth] ([Title], [Color], [Width], [Length], [Comment], [Photo" +
|
|
|
+ "]) VALUES (@Title, @Color, @Width, @Length, @Comment, @Photo);\r\nSELECT IDCloth, " +
|
|
|
+ "Title, Color, Width, Length, Comment, Photo FROM Cloth WHERE (IDCloth = SCOPE_ID" +
|
|
|
+ "ENTITY())";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Cloth] SET [Title] = @Title, [Color] = @Color, [Width] = @Width, [Length] = @Length, [Comment] = @Comment, [Photo] = @Photo WHERE (([IDCloth] = @Original_IDCloth) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Color = 1 AND [Color] IS NULL) OR ([Color] = @Original_Color)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)) AND ((@IsNull_Length = 1 AND [Length] IS NULL) OR ([Length] = @Original_Length)) AND ((@IsNull_Comment = 1 AND [Comment] IS NULL) OR ([Comment] = @Original_Comment)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)));
|
|
|
+SELECT IDCloth, Title, Color, Width, Length, Comment, Photo FROM Cloth WHERE (IDCloth = @IDCloth)";
|
|
|
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCloth", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Length", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Comment", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDCloth", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDCloth", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::СУБД_Фабрика.Properties.Settings.Default.SewingFactoryMURConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 IDCloth, Title, Color, Width, Length, Comment, Photo FROM dbo.Cloth";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(SewingFactoryMURDataSet.ClothDataTable 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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual SewingFactoryMURDataSet.ClothDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ SewingFactoryMURDataSet.ClothDataTable dataTable = new SewingFactoryMURDataSet.ClothDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet.ClothDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "Cloth");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
+ public virtual int Delete(int Original_IDCloth, string Original_Title, string Original_Color, global::System.Nullable<int> Original_Width, global::System.Nullable<int> Original_Length, string Original_Comment, string Original_Photo) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDCloth));
|
|
|
+ if ((Original_Title == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
|
|
|
+ }
|
|
|
+ if ((Original_Color == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Color));
|
|
|
+ }
|
|
|
+ if ((Original_Width.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Width.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_Length.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Length.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_Comment == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Comment));
|
|
|
+ }
|
|
|
+ if ((Original_Photo == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Photo));
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(string Title, string Color, global::System.Nullable<int> Width, global::System.Nullable<int> Length, string Comment, string Photo) {
|
|
|
+ if ((Title == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
|
|
|
+ }
|
|
|
+ if ((Color == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
|
|
|
+ }
|
|
|
+ if ((Width.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Width.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Length.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Length.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Comment == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Comment));
|
|
|
+ }
|
|
|
+ if ((Photo == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Photo));
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(string Title, string Color, global::System.Nullable<int> Width, global::System.Nullable<int> Length, string Comment, string Photo, int Original_IDCloth, string Original_Title, string Original_Color, global::System.Nullable<int> Original_Width, global::System.Nullable<int> Original_Length, string Original_Comment, string Original_Photo, int IDCloth) {
|
|
|
+ if ((Title == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
|
|
|
+ }
|
|
|
+ if ((Color == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
|
|
|
+ }
|
|
|
+ if ((Width.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Width.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Length.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Length.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Comment == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Comment));
|
|
|
+ }
|
|
|
+ if ((Photo == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Photo));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDCloth));
|
|
|
+ if ((Original_Title == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Title));
|
|
|
+ }
|
|
|
+ if ((Original_Color == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Color));
|
|
|
+ }
|
|
|
+ if ((Original_Width.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Width.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_Length.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Length.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_Comment == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Comment));
|
|
|
+ }
|
|
|
+ if ((Original_Photo == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Photo));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(IDCloth));
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(string Title, string Color, global::System.Nullable<int> Width, global::System.Nullable<int> Length, string Comment, string Photo, int Original_IDCloth, string Original_Title, string Original_Color, global::System.Nullable<int> Original_Width, global::System.Nullable<int> Original_Length, string Original_Comment, string Original_Photo) {
|
|
|
+ return this.Update(Title, Color, Width, Length, Comment, Photo, Original_IDCloth, Original_Title, Original_Color, Original_Width, Original_Length, Original_Comment, Original_Photo, Original_IDCloth);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 FurnituraTableAdapter : 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", "17.0.0.0")]
|
|
|
+ public FurnituraTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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 = "Furnitura";
|
|
|
+ tableMapping.ColumnMappings.Add("idfur", "idfur");
|
|
|
+ tableMapping.ColumnMappings.Add("namefur", "namefur");
|
|
|
+ tableMapping.ColumnMappings.Add("photo", "photo");
|
|
|
+ tableMapping.ColumnMappings.Add("countfur", "countfur");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Furnitura] WHERE (([idfur] = @Original_idfur) AND ((@IsNull_namefur = 1 AND [namefur] IS NULL) OR ([namefur] = @Original_namefur)) AND ((@IsNull_photo = 1 AND [photo] IS NULL) OR ([photo] = @Original_photo)) AND ((@IsNull_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)))";
|
|
|
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_namefur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Furnitura] ([namefur], [photo], [countfur]) VALUES (@namefur, " +
|
|
|
+ "@photo, @countfur);\r\nSELECT idfur, namefur, photo, countfur FROM Furnitura WHERE" +
|
|
|
+ " (idfur = SCOPE_IDENTITY())";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Furnitura] SET [namefur] = @namefur, [photo] = @photo, [countfur] = @countfur WHERE (([idfur] = @Original_idfur) AND ((@IsNull_namefur = 1 AND [namefur] IS NULL) OR ([namefur] = @Original_namefur)) AND ((@IsNull_photo = 1 AND [photo] IS NULL) OR ([photo] = @Original_photo)) AND ((@IsNull_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)));
|
|
|
+SELECT idfur, namefur, photo, countfur FROM Furnitura WHERE (idfur = @idfur)";
|
|
|
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_namefur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idfur", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idfur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::СУБД_Фабрика.Properties.Settings.Default.SewingFactoryMURConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 idfur, namefur, photo, countfur FROM dbo.Furnitura";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(SewingFactoryMURDataSet.FurnituraDataTable 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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual SewingFactoryMURDataSet.FurnituraDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ SewingFactoryMURDataSet.FurnituraDataTable dataTable = new SewingFactoryMURDataSet.FurnituraDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet.FurnituraDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "Furnitura");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
+ public virtual int Delete(int Original_idfur, string Original_namefur, string Original_photo, global::System.Nullable<int> Original_countfur) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idfur));
|
|
|
+ if ((Original_namefur == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_namefur));
|
|
|
+ }
|
|
|
+ if ((Original_photo == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_photo));
|
|
|
+ }
|
|
|
+ if ((Original_countfur.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_countfur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(string namefur, string photo, global::System.Nullable<int> countfur) {
|
|
|
+ if ((namefur == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(namefur));
|
|
|
+ }
|
|
|
+ if ((photo == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(photo));
|
|
|
+ }
|
|
|
+ if ((countfur.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(countfur.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();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(string namefur, string photo, global::System.Nullable<int> countfur, int Original_idfur, string Original_namefur, string Original_photo, global::System.Nullable<int> Original_countfur, int idfur) {
|
|
|
+ if ((namefur == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(namefur));
|
|
|
+ }
|
|
|
+ if ((photo == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(photo));
|
|
|
+ }
|
|
|
+ if ((countfur.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(countfur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idfur));
|
|
|
+ if ((Original_namefur == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_namefur));
|
|
|
+ }
|
|
|
+ if ((Original_photo == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_photo));
|
|
|
+ }
|
|
|
+ if ((Original_countfur.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_countfur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(idfur));
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(string namefur, string photo, global::System.Nullable<int> countfur, int Original_idfur, string Original_namefur, string Original_photo, global::System.Nullable<int> Original_countfur) {
|
|
|
+ return this.Update(namefur, photo, countfur, Original_idfur, Original_namefur, Original_photo, Original_countfur, Original_idfur);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 IzdeliaTableAdapter : 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", "17.0.0.0")]
|
|
|
+ public IzdeliaTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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 = "Izdelia";
|
|
|
+ tableMapping.ColumnMappings.Add("IDIzd", "IDIzd");
|
|
|
+ tableMapping.ColumnMappings.Add("Title", "Title");
|
|
|
+ tableMapping.ColumnMappings.Add("Lenght", "Lenght");
|
|
|
+ tableMapping.ColumnMappings.Add("Width", "Width");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Izdelia] WHERE (([IDIzd] = @Original_IDIzd) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Lenght = 1 AND [Lenght] IS NULL) OR ([Lenght] = @Original_Lenght)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)))";
|
|
|
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDIzd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Izdelia] ([Title], [Lenght], [Width]) VALUES (@Title, @Lenght," +
|
|
|
+ " @Width);\r\nSELECT IDIzd, Title, Lenght, Width FROM Izdelia WHERE (IDIzd = SCOPE_" +
|
|
|
+ "IDENTITY())";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Izdelia] SET [Title] = @Title, [Lenght] = @Lenght, [Width] = @Width WHERE (([IDIzd] = @Original_IDIzd) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Lenght = 1 AND [Lenght] IS NULL) OR ([Lenght] = @Original_Lenght)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)));
|
|
|
+SELECT IDIzd, Title, Lenght, Width FROM Izdelia WHERE (IDIzd = @IDIzd)";
|
|
|
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDIzd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDIzd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDIzd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::СУБД_Фабрика.Properties.Settings.Default.SewingFactoryMURConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 IDIzd, Title, Lenght, Width FROM dbo.Izdelia";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(SewingFactoryMURDataSet.IzdeliaDataTable 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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual SewingFactoryMURDataSet.IzdeliaDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ SewingFactoryMURDataSet.IzdeliaDataTable dataTable = new SewingFactoryMURDataSet.IzdeliaDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet.IzdeliaDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "Izdelia");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
+ public virtual int Delete(int Original_IDIzd, string Original_Title, global::System.Nullable<int> Original_Lenght, global::System.Nullable<int> Original_Width) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDIzd));
|
|
|
+ if ((Original_Title == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
|
|
|
+ }
|
|
|
+ if ((Original_Lenght.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Lenght.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_Width.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Width.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(string Title, global::System.Nullable<int> Lenght, global::System.Nullable<int> Width) {
|
|
|
+ if ((Title == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
|
|
|
+ }
|
|
|
+ if ((Lenght.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Lenght.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Width.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Width.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();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(string Title, global::System.Nullable<int> Lenght, global::System.Nullable<int> Width, int Original_IDIzd, string Original_Title, global::System.Nullable<int> Original_Lenght, global::System.Nullable<int> Original_Width, int IDIzd) {
|
|
|
+ if ((Title == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
|
|
|
+ }
|
|
|
+ if ((Lenght.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Lenght.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Width.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Width.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IDIzd));
|
|
|
+ if ((Original_Title == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Title));
|
|
|
+ }
|
|
|
+ if ((Original_Lenght.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Lenght.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_Width.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Width.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(IDIzd));
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(string Title, global::System.Nullable<int> Lenght, global::System.Nullable<int> Width, int Original_IDIzd, string Original_Title, global::System.Nullable<int> Original_Lenght, global::System.Nullable<int> Original_Width) {
|
|
|
+ return this.Update(Title, Lenght, Width, Original_IDIzd, Original_Title, Original_Lenght, Original_Width, Original_IDIzd);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 OrdersTableAdapter : 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", "17.0.0.0")]
|
|
|
+ public OrdersTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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 = "Orders";
|
|
|
+ tableMapping.ColumnMappings.Add("IDOrder", "IDOrder");
|
|
|
+ tableMapping.ColumnMappings.Add("IDIzd", "IDIzd");
|
|
|
+ tableMapping.ColumnMappings.Add("IDZak", "IDZak");
|
|
|
+ tableMapping.ColumnMappings.Add("IDMen", "IDMen");
|
|
|
+ tableMapping.ColumnMappings.Add("IDCloth", "IDCloth");
|
|
|
+ tableMapping.ColumnMappings.Add("IDFur", "IDFur");
|
|
|
+ tableMapping.ColumnMappings.Add("CountFur", "CountFur");
|
|
|
+ tableMapping.ColumnMappings.Add("CountIzd", "CountIzd");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Orders] WHERE (([IDOrder] = @Original_IDOrder) AND ((@IsNull_IDIzd = 1 AND [IDIzd] IS NULL) OR ([IDIzd] = @Original_IDIzd)) AND ((@IsNull_IDZak = 1 AND [IDZak] IS NULL) OR ([IDZak] = @Original_IDZak)) AND ((@IsNull_IDMen = 1 AND [IDMen] IS NULL) OR ([IDMen] = @Original_IDMen)) AND ((@IsNull_IDCloth = 1 AND [IDCloth] IS NULL) OR ([IDCloth] = @Original_IDCloth)) AND ((@IsNull_IDFur = 1 AND [IDFur] IS NULL) OR ([IDFur] = @Original_IDFur)) AND ((@IsNull_CountFur = 1 AND [CountFur] IS NULL) OR ([CountFur] = @Original_CountFur)) AND ((@IsNull_CountIzd = 1 AND [CountIzd] IS NULL) OR ([CountIzd] = @Original_CountIzd)))";
|
|
|
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDIzd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDIzd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDZak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDZak", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDZak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDZak", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDMen", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDMen", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDMen", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDMen", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCloth", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCloth", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDFur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDFur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Orders] ([IDIzd], [IDZak], [IDMen], [IDCloth], [IDFur], [CountFur], [CountIzd]) VALUES (@IDIzd, @IDZak, @IDMen, @IDCloth, @IDFur, @CountFur, @CountIzd);
|
|
|
+SELECT IDOrder, IDIzd, IDZak, IDMen, IDCloth, IDFur, CountFur, CountIzd FROM Orders WHERE (IDOrder = SCOPE_IDENTITY())";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDIzd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDZak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDZak", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDMen", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDMen", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCloth", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDFur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Orders] SET [IDIzd] = @IDIzd, [IDZak] = @IDZak, [IDMen] = @IDMen, [IDCloth] = @IDCloth, [IDFur] = @IDFur, [CountFur] = @CountFur, [CountIzd] = @CountIzd WHERE (([IDOrder] = @Original_IDOrder) AND ((@IsNull_IDIzd = 1 AND [IDIzd] IS NULL) OR ([IDIzd] = @Original_IDIzd)) AND ((@IsNull_IDZak = 1 AND [IDZak] IS NULL) OR ([IDZak] = @Original_IDZak)) AND ((@IsNull_IDMen = 1 AND [IDMen] IS NULL) OR ([IDMen] = @Original_IDMen)) AND ((@IsNull_IDCloth = 1 AND [IDCloth] IS NULL) OR ([IDCloth] = @Original_IDCloth)) AND ((@IsNull_IDFur = 1 AND [IDFur] IS NULL) OR ([IDFur] = @Original_IDFur)) AND ((@IsNull_CountFur = 1 AND [CountFur] IS NULL) OR ([CountFur] = @Original_CountFur)) AND ((@IsNull_CountIzd = 1 AND [CountIzd] IS NULL) OR ([CountIzd] = @Original_CountIzd)));
|
|
|
+SELECT IDOrder, IDIzd, IDZak, IDMen, IDCloth, IDFur, CountFur, CountIzd FROM Orders WHERE (IDOrder = @IDOrder)";
|
|
|
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDIzd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDZak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDZak", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDMen", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDMen", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCloth", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDFur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDIzd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDIzd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDZak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDZak", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDZak", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDZak", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDMen", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDMen", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDMen", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDMen", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCloth", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCloth", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDFur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDFur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountFur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountIzd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDOrder", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDOrder", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::СУБД_Фабрика.Properties.Settings.Default.SewingFactoryMURConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 IDOrder, IDIzd, IDZak, IDMen, IDCloth, IDFur, CountFur, CountIzd FROM dbo." +
|
|
|
+ "Orders";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(SewingFactoryMURDataSet.OrdersDataTable 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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual SewingFactoryMURDataSet.OrdersDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ SewingFactoryMURDataSet.OrdersDataTable dataTable = new SewingFactoryMURDataSet.OrdersDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet.OrdersDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "Orders");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
+ public virtual int Delete(int Original_IDOrder, global::System.Nullable<int> Original_IDIzd, global::System.Nullable<int> Original_IDZak, global::System.Nullable<int> Original_IDMen, global::System.Nullable<int> Original_IDCloth, global::System.Nullable<int> Original_IDFur, global::System.Nullable<int> Original_CountFur, global::System.Nullable<int> Original_CountIzd) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDOrder));
|
|
|
+ if ((Original_IDIzd.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IDIzd.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_IDZak.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IDZak.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_IDMen.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IDMen.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_IDCloth.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_IDCloth.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_IDFur.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_IDFur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_CountFur.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_CountFur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_CountIzd.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_CountIzd.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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> IDIzd, global::System.Nullable<int> IDZak, global::System.Nullable<int> IDMen, global::System.Nullable<int> IDCloth, global::System.Nullable<int> IDFur, global::System.Nullable<int> CountFur, global::System.Nullable<int> CountIzd) {
|
|
|
+ if ((IDIzd.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDIzd.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((IDZak.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IDZak.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((IDMen.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IDMen.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((IDCloth.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(IDCloth.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((IDFur.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IDFur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((CountFur.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[5].Value = ((int)(CountFur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((CountIzd.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[6].Value = ((int)(CountIzd.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(
|
|
|
+ global::System.Nullable<int> IDIzd,
|
|
|
+ global::System.Nullable<int> IDZak,
|
|
|
+ global::System.Nullable<int> IDMen,
|
|
|
+ global::System.Nullable<int> IDCloth,
|
|
|
+ global::System.Nullable<int> IDFur,
|
|
|
+ global::System.Nullable<int> CountFur,
|
|
|
+ global::System.Nullable<int> CountIzd,
|
|
|
+ int Original_IDOrder,
|
|
|
+ global::System.Nullable<int> Original_IDIzd,
|
|
|
+ global::System.Nullable<int> Original_IDZak,
|
|
|
+ global::System.Nullable<int> Original_IDMen,
|
|
|
+ global::System.Nullable<int> Original_IDCloth,
|
|
|
+ global::System.Nullable<int> Original_IDFur,
|
|
|
+ global::System.Nullable<int> Original_CountFur,
|
|
|
+ global::System.Nullable<int> Original_CountIzd,
|
|
|
+ int IDOrder) {
|
|
|
+ if ((IDIzd.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDIzd.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((IDZak.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IDZak.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((IDMen.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IDMen.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((IDCloth.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IDCloth.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((IDFur.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDFur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((CountFur.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(CountFur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((CountIzd.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(CountIzd.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IDOrder));
|
|
|
+ if ((Original_IDIzd.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IDIzd.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_IDZak.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_IDZak.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_IDMen.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_IDMen.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_IDCloth.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IDCloth.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_IDFur.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_IDFur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_CountFur.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_CountFur.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_CountIzd.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_CountIzd.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(IDOrder));
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(global::System.Nullable<int> IDIzd, global::System.Nullable<int> IDZak, global::System.Nullable<int> IDMen, global::System.Nullable<int> IDCloth, global::System.Nullable<int> IDFur, global::System.Nullable<int> CountFur, global::System.Nullable<int> CountIzd, int Original_IDOrder, global::System.Nullable<int> Original_IDIzd, global::System.Nullable<int> Original_IDZak, global::System.Nullable<int> Original_IDMen, global::System.Nullable<int> Original_IDCloth, global::System.Nullable<int> Original_IDFur, global::System.Nullable<int> Original_CountFur, global::System.Nullable<int> Original_CountIzd) {
|
|
|
+ return this.Update(IDIzd, IDZak, IDMen, IDCloth, IDFur, CountFur, CountIzd, Original_IDOrder, Original_IDIzd, Original_IDZak, Original_IDMen, Original_IDCloth, Original_IDFur, Original_CountFur, Original_CountIzd, Original_IDOrder);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 RolesTableAdapter : 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", "17.0.0.0")]
|
|
|
+ public RolesTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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 = "Roles";
|
|
|
+ tableMapping.ColumnMappings.Add("IDRole", "IDRole");
|
|
|
+ tableMapping.ColumnMappings.Add("Role", "Role");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Roles] WHERE (([IDRole] = @Original_IDRole) AND ((@IsNull_Role" +
|
|
|
+ " = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)))";
|
|
|
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Role", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Roles] ([Role]) VALUES (@Role);\r\nSELECT IDRole, Role FROM Role" +
|
|
|
+ "s WHERE (IDRole = SCOPE_IDENTITY())";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Role", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
+ this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Roles] SET [Role] = @Role WHERE (([IDRole] = @Original_IDRole) AND " +
|
|
|
+ "((@IsNull_Role = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)));\r\nSELECT I" +
|
|
|
+ "DRole, Role FROM Roles WHERE (IDRole = @IDRole)";
|
|
|
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Role", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Role", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDRole", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::СУБД_Фабрика.Properties.Settings.Default.SewingFactoryMURConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 IDRole, Role FROM dbo.Roles";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(SewingFactoryMURDataSet.RolesDataTable 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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual SewingFactoryMURDataSet.RolesDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ SewingFactoryMURDataSet.RolesDataTable dataTable = new SewingFactoryMURDataSet.RolesDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet.RolesDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "Roles");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
+ public virtual int Delete(int Original_IDRole, string Original_Role) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDRole));
|
|
|
+ if ((Original_Role == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Role));
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(string Role) {
|
|
|
+ if ((Role == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Role));
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(string Role, int Original_IDRole, string Original_Role, int IDRole) {
|
|
|
+ if ((Role == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Role));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDRole));
|
|
|
+ if ((Original_Role == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Role));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDRole));
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(string Role, int Original_IDRole, string Original_Role) {
|
|
|
+ return this.Update(Role, Original_IDRole, Original_Role, Original_IDRole);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 UsersTableAdapter : 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", "17.0.0.0")]
|
|
|
+ public UsersTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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 = "Users";
|
|
|
+ tableMapping.ColumnMappings.Add("IDUser", "IDUser");
|
|
|
+ tableMapping.ColumnMappings.Add("Login", "Login");
|
|
|
+ tableMapping.ColumnMappings.Add("Pass", "Pass");
|
|
|
+ tableMapping.ColumnMappings.Add("Role", "Role");
|
|
|
+ tableMapping.ColumnMappings.Add("Fam", "Fam");
|
|
|
+ tableMapping.ColumnMappings.Add("Name", "Name");
|
|
|
+ tableMapping.ColumnMappings.Add("Otch", "Otch");
|
|
|
+ tableMapping.ColumnMappings.Add("Phone", "Phone");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Users] WHERE (([IDUser] = @Original_IDUser) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Pass = 1 AND [Pass] IS NULL) OR ([Pass] = @Original_Pass)) AND ((@IsNull_Role = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)) AND ((@IsNull_Fam = 1 AND [Fam] IS NULL) OR ([Fam] = @Original_Fam)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otch = 1 AND [Otch] IS NULL) OR ([Otch] = @Original_Otch)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)))";
|
|
|
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Pass", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fam", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fam", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fam", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Otch", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Users] ([Login], [Pass], [Role], [Fam], [Name], [Otch], [Phone" +
|
|
|
+ "]) VALUES (@Login, @Pass, @Role, @Fam, @Name, @Otch, @Phone);\r\nSELECT IDUser, Lo" +
|
|
|
+ "gin, Pass, Role, Fam, Name, Otch, Phone FROM Users WHERE (IDUser = SCOPE_IDENTIT" +
|
|
|
+ "Y())";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fam", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Users] SET [Login] = @Login, [Pass] = @Pass, [Role] = @Role, [Fam] = @Fam, [Name] = @Name, [Otch] = @Otch, [Phone] = @Phone WHERE (([IDUser] = @Original_IDUser) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Pass = 1 AND [Pass] IS NULL) OR ([Pass] = @Original_Pass)) AND ((@IsNull_Role = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)) AND ((@IsNull_Fam = 1 AND [Fam] IS NULL) OR ([Fam] = @Original_Fam)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otch = 1 AND [Otch] IS NULL) OR ([Otch] = @Original_Otch)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)));
|
|
|
+SELECT IDUser, Login, Pass, Role, Fam, Name, Otch, Phone FROM Users WHERE (IDUser = @IDUser)";
|
|
|
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fam", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDUser", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUser", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Pass", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fam", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fam", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fam", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Otch", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDUser", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDUser", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::СУБД_Фабрика.Properties.Settings.Default.SewingFactoryMURConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 IDUser, Login, Pass, Role, Fam, Name, Otch, Phone FROM dbo.Users";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(SewingFactoryMURDataSet.UsersDataTable 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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual SewingFactoryMURDataSet.UsersDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ SewingFactoryMURDataSet.UsersDataTable dataTable = new SewingFactoryMURDataSet.UsersDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet.UsersDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(SewingFactoryMURDataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "Users");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
+ public virtual int Delete(int Original_IDUser, string Original_Login, string Original_Pass, global::System.Nullable<int> Original_Role, string Original_Fam, string Original_Name, string Original_Otch, string Original_Phone) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDUser));
|
|
|
+ if ((Original_Login == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Login));
|
|
|
+ }
|
|
|
+ if ((Original_Pass == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Pass));
|
|
|
+ }
|
|
|
+ if ((Original_Role.HasValue == true)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Role.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_Fam == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Fam));
|
|
|
+ }
|
|
|
+ if ((Original_Name == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Name));
|
|
|
+ }
|
|
|
+ if ((Original_Otch == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Otch));
|
|
|
+ }
|
|
|
+ if ((Original_Phone == null)) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Phone));
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(string Login, string Pass, global::System.Nullable<int> Role, string Fam, string Name, string Otch, string Phone) {
|
|
|
+ if ((Login == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Login));
|
|
|
+ }
|
|
|
+ if ((Pass == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Pass));
|
|
|
+ }
|
|
|
+ if ((Role.HasValue == true)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Role.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Fam == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Fam));
|
|
|
+ }
|
|
|
+ if ((Name == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Name));
|
|
|
+ }
|
|
|
+ if ((Otch == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Otch));
|
|
|
+ }
|
|
|
+ if ((Phone == null)) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
|
|
|
+ }
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.InsertCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(
|
|
|
+ string Login,
|
|
|
+ string Pass,
|
|
|
+ global::System.Nullable<int> Role,
|
|
|
+ string Fam,
|
|
|
+ string Name,
|
|
|
+ string Otch,
|
|
|
+ string Phone,
|
|
|
+ int Original_IDUser,
|
|
|
+ string Original_Login,
|
|
|
+ string Original_Pass,
|
|
|
+ global::System.Nullable<int> Original_Role,
|
|
|
+ string Original_Fam,
|
|
|
+ string Original_Name,
|
|
|
+ string Original_Otch,
|
|
|
+ string Original_Phone,
|
|
|
+ int IDUser) {
|
|
|
+ if ((Login == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Login));
|
|
|
+ }
|
|
|
+ if ((Pass == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Pass));
|
|
|
+ }
|
|
|
+ if ((Role.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Role.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Fam == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Fam));
|
|
|
+ }
|
|
|
+ if ((Name == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Name));
|
|
|
+ }
|
|
|
+ if ((Otch == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Otch));
|
|
|
+ }
|
|
|
+ if ((Phone == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IDUser));
|
|
|
+ if ((Original_Login == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Login));
|
|
|
+ }
|
|
|
+ if ((Original_Pass == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Pass));
|
|
|
+ }
|
|
|
+ if ((Original_Role.HasValue == true)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Role.Value));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ if ((Original_Fam == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Fam));
|
|
|
+ }
|
|
|
+ if ((Original_Name == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Name));
|
|
|
+ }
|
|
|
+ if ((Original_Otch == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Otch));
|
|
|
+ }
|
|
|
+ if ((Original_Phone == null)) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Phone));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(IDUser));
|
|
|
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
+ != global::System.Data.ConnectionState.Open)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Open();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
+ public virtual int Update(string Login, string Pass, global::System.Nullable<int> Role, string Fam, string Name, string Otch, string Phone, int Original_IDUser, string Original_Login, string Original_Pass, global::System.Nullable<int> Original_Role, string Original_Fam, string Original_Name, string Original_Otch, string Original_Phone) {
|
|
|
+ return this.Update(Login, Pass, Role, Fam, Name, Otch, Phone, Original_IDUser, Original_Login, Original_Pass, Original_Role, Original_Fam, Original_Name, Original_Otch, Original_Phone, Original_IDUser);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 ClothTableAdapter _clothTableAdapter;
|
|
|
+
|
|
|
+ private FurnituraTableAdapter _furnituraTableAdapter;
|
|
|
+
|
|
|
+ private IzdeliaTableAdapter _izdeliaTableAdapter;
|
|
|
+
|
|
|
+ private OrdersTableAdapter _ordersTableAdapter;
|
|
|
+
|
|
|
+ private RolesTableAdapter _rolesTableAdapter;
|
|
|
+
|
|
|
+ private UsersTableAdapter _usersTableAdapter;
|
|
|
+
|
|
|
+ private bool _backupDataSetBeforeUpdate;
|
|
|
+
|
|
|
+ private global::System.Data.IDbConnection _connection;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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 ClothTableAdapter ClothTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._clothTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clothTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 FurnituraTableAdapter FurnituraTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._furnituraTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._furnituraTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 IzdeliaTableAdapter IzdeliaTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._izdeliaTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._izdeliaTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 OrdersTableAdapter OrdersTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._ordersTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._ordersTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 RolesTableAdapter RolesTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._rolesTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._rolesTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 UsersTableAdapter UsersTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._usersTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._usersTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public global::System.Data.IDbConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection != null)) {
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ if (((this._clothTableAdapter != null)
|
|
|
+ && (this._clothTableAdapter.Connection != null))) {
|
|
|
+ return this._clothTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._furnituraTableAdapter != null)
|
|
|
+ && (this._furnituraTableAdapter.Connection != null))) {
|
|
|
+ return this._furnituraTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._izdeliaTableAdapter != null)
|
|
|
+ && (this._izdeliaTableAdapter.Connection != null))) {
|
|
|
+ return this._izdeliaTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._ordersTableAdapter != null)
|
|
|
+ && (this._ordersTableAdapter.Connection != null))) {
|
|
|
+ return this._ordersTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._rolesTableAdapter != null)
|
|
|
+ && (this._rolesTableAdapter.Connection != null))) {
|
|
|
+ return this._rolesTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._usersTableAdapter != null)
|
|
|
+ && (this._usersTableAdapter.Connection != null))) {
|
|
|
+ return this._usersTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int TableAdapterInstanceCount {
|
|
|
+ get {
|
|
|
+ int count = 0;
|
|
|
+ if ((this._clothTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._furnituraTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._izdeliaTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._ordersTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._rolesTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._usersTableAdapter != 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", "17.0.0.0")]
|
|
|
+ private int UpdateUpdatedRows(SewingFactoryMURDataSet 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._rolesTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._rolesTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._clothTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.Cloth.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._clothTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._furnituraTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._furnituraTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._izdeliaTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.Izdelia.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._izdeliaTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._usersTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._usersTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._ordersTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._ordersTableAdapter.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", "17.0.0.0")]
|
|
|
+ private int UpdateInsertedRows(SewingFactoryMURDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
|
+ int result = 0;
|
|
|
+ if ((this._rolesTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._rolesTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._clothTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.Cloth.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._clothTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._furnituraTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._furnituraTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._izdeliaTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.Izdelia.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._izdeliaTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._usersTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._usersTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._ordersTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._ordersTableAdapter.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", "17.0.0.0")]
|
|
|
+ private int UpdateDeletedRows(SewingFactoryMURDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
|
|
+ int result = 0;
|
|
|
+ if ((this._ordersTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._ordersTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._usersTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._usersTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._izdeliaTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.Izdelia.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._izdeliaTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._furnituraTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._furnituraTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._clothTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.Cloth.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._clothTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._rolesTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._rolesTableAdapter.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", "17.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", "17.0.0.0")]
|
|
|
+ public virtual int UpdateAll(SewingFactoryMURDataSet dataSet) {
|
|
|
+ if ((dataSet == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("dataSet");
|
|
|
+ }
|
|
|
+ if ((dataSet.HasChanges() == false)) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ if (((this._clothTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._clothTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
+ "tring.");
|
|
|
+ }
|
|
|
+ if (((this._furnituraTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._furnituraTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
+ "tring.");
|
|
|
+ }
|
|
|
+ if (((this._izdeliaTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._izdeliaTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
+ "tring.");
|
|
|
+ }
|
|
|
+ if (((this._ordersTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._ordersTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
+ "tring.");
|
|
|
+ }
|
|
|
+ if (((this._rolesTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._rolesTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
+ "tring.");
|
|
|
+ }
|
|
|
+ if (((this._usersTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
+ "tring.");
|
|
|
+ }
|
|
|
+ global::System.Data.IDbConnection workConnection = this.Connection;
|
|
|
+ if ((workConnection == null)) {
|
|
|
+ throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
|
|
|
+ "ger TableAdapter property to a valid TableAdapter instance.");
|
|
|
+ }
|
|
|
+ bool workConnOpened = false;
|
|
|
+ if (((workConnection.State & global::System.Data.ConnectionState.Broken)
|
|
|
+ == global::System.Data.ConnectionState.Broken)) {
|
|
|
+ workConnection.Close();
|
|
|
+ }
|
|
|
+ if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ workConnection.Open();
|
|
|
+ workConnOpened = true;
|
|
|
+ }
|
|
|
+ global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
|
|
|
+ if ((workTransaction == null)) {
|
|
|
+ throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
|
|
|
+ "ctions or the current state is not allowing the transaction to begin.");
|
|
|
+ }
|
|
|
+ global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
|
+ global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
|
+ global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
|
|
|
+ global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
|
|
|
+ int result = 0;
|
|
|
+ global::System.Data.DataSet backupDataSet = null;
|
|
|
+ if (this.BackupDataSetBeforeUpdate) {
|
|
|
+ backupDataSet = new global::System.Data.DataSet();
|
|
|
+ backupDataSet.Merge(dataSet);
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ // ---- Prepare for update -----------
|
|
|
+ //
|
|
|
+ if ((this._clothTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._clothTableAdapter, this._clothTableAdapter.Connection);
|
|
|
+ this._clothTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._clothTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._clothTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._clothTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._clothTableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._furnituraTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._furnituraTableAdapter, this._furnituraTableAdapter.Connection);
|
|
|
+ this._furnituraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._furnituraTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._furnituraTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._furnituraTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._furnituraTableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._izdeliaTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._izdeliaTableAdapter, this._izdeliaTableAdapter.Connection);
|
|
|
+ this._izdeliaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._izdeliaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._izdeliaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._izdeliaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._izdeliaTableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._ordersTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._ordersTableAdapter, this._ordersTableAdapter.Connection);
|
|
|
+ this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._ordersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._ordersTableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._rolesTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._rolesTableAdapter, this._rolesTableAdapter.Connection);
|
|
|
+ this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._rolesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._rolesTableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._usersTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
|
|
|
+ this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.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._clothTableAdapter != null)) {
|
|
|
+ this._clothTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clothTableAdapter]));
|
|
|
+ this._clothTableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._furnituraTableAdapter != null)) {
|
|
|
+ this._furnituraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._furnituraTableAdapter]));
|
|
|
+ this._furnituraTableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._izdeliaTableAdapter != null)) {
|
|
|
+ this._izdeliaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._izdeliaTableAdapter]));
|
|
|
+ this._izdeliaTableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._ordersTableAdapter != null)) {
|
|
|
+ this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ordersTableAdapter]));
|
|
|
+ this._ordersTableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._rolesTableAdapter != null)) {
|
|
|
+ this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rolesTableAdapter]));
|
|
|
+ this._rolesTableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._usersTableAdapter != null)) {
|
|
|
+ this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
|
|
|
+ this._usersTableAdapter.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", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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
|