|
@@ -38,6 +38,8 @@ namespace СУБД_Техносервис {
|
|
|
|
|
|
private TypeDefectDataTable tableTypeDefect;
|
|
|
|
|
|
+ private AllTypeDefectDataTable tableAllTypeDefect;
|
|
|
+
|
|
|
private global::System.Data.DataRelation relationFK_Employee_Role;
|
|
|
|
|
|
private global::System.Data.DataRelation relationFK_ExecutionRequest_Employee;
|
|
@@ -101,6 +103,9 @@ namespace СУБД_Техносервис {
|
|
|
if ((ds.Tables["TypeDefect"] != null)) {
|
|
|
base.Tables.Add(new TypeDefectDataTable(ds.Tables["TypeDefect"]));
|
|
|
}
|
|
|
+ if ((ds.Tables["AllTypeDefect"] != null)) {
|
|
|
+ base.Tables.Add(new AllTypeDefectDataTable(ds.Tables["AllTypeDefect"]));
|
|
|
+ }
|
|
|
this.DataSetName = ds.DataSetName;
|
|
|
this.Prefix = ds.Prefix;
|
|
|
this.Namespace = ds.Namespace;
|
|
@@ -189,6 +194,16 @@ namespace СУБД_Техносервис {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ [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 AllTypeDefectDataTable AllTypeDefect {
|
|
|
+ get {
|
|
|
+ return this.tableAllTypeDefect;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
[global::System.ComponentModel.BrowsableAttribute(true)]
|
|
@@ -277,6 +292,9 @@ namespace СУБД_Техносервис {
|
|
|
if ((ds.Tables["TypeDefect"] != null)) {
|
|
|
base.Tables.Add(new TypeDefectDataTable(ds.Tables["TypeDefect"]));
|
|
|
}
|
|
|
+ if ((ds.Tables["AllTypeDefect"] != null)) {
|
|
|
+ base.Tables.Add(new AllTypeDefectDataTable(ds.Tables["AllTypeDefect"]));
|
|
|
+ }
|
|
|
this.DataSetName = ds.DataSetName;
|
|
|
this.Prefix = ds.Prefix;
|
|
|
this.Namespace = ds.Namespace;
|
|
@@ -352,6 +370,12 @@ namespace СУБД_Техносервис {
|
|
|
this.tableTypeDefect.InitVars();
|
|
|
}
|
|
|
}
|
|
|
+ this.tableAllTypeDefect = ((AllTypeDefectDataTable)(base.Tables["AllTypeDefect"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableAllTypeDefect != null)) {
|
|
|
+ this.tableAllTypeDefect.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
this.relationFK_Employee_Role = this.Relations["FK_Employee_Role"];
|
|
|
this.relationFK_ExecutionRequest_Employee = this.Relations["FK_ExecutionRequest_Employee"];
|
|
|
this.relationFK_ExecutionRequest_Request = this.Relations["FK_ExecutionRequest_Request"];
|
|
@@ -383,6 +407,8 @@ namespace СУБД_Техносервис {
|
|
|
base.Tables.Add(this.tableStatus);
|
|
|
this.tableTypeDefect = new TypeDefectDataTable();
|
|
|
base.Tables.Add(this.tableTypeDefect);
|
|
|
+ this.tableAllTypeDefect = new AllTypeDefectDataTable();
|
|
|
+ base.Tables.Add(this.tableAllTypeDefect);
|
|
|
this.relationFK_Employee_Role = new global::System.Data.DataRelation("FK_Employee_Role", new global::System.Data.DataColumn[] {
|
|
|
this.tableRole.IdRoleColumn}, new global::System.Data.DataColumn[] {
|
|
|
this.tableEmployee.IdRoleColumn}, false);
|
|
@@ -455,6 +481,12 @@ namespace СУБД_Техносервис {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private bool ShouldSerializeAllTypeDefect() {
|
|
|
+ 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) {
|
|
@@ -531,6 +563,9 @@ namespace СУБД_Техносервис {
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
public delegate void TypeDefectRowChangeEventHandler(object sender, TypeDefectRowChangeEvent e);
|
|
|
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public delegate void AllTypeDefectRowChangeEventHandler(object sender, AllTypeDefectRowChangeEvent e);
|
|
|
+
|
|
|
/// <summary>
|
|
|
///Represents the strongly named DataTable class.
|
|
|
///</summary>
|
|
@@ -2737,6 +2772,256 @@ namespace СУБД_Техносервис {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ ///Represents the strongly named DataTable class.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Serializable()]
|
|
|
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
+ public partial class AllTypeDefectDataTable : global::System.Data.TypedTableBase<AllTypeDefectRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnTypeDefect;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public AllTypeDefectDataTable() {
|
|
|
+ this.TableName = "AllTypeDefect";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal AllTypeDefectDataTable(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 AllTypeDefectDataTable(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 TypeDefectColumn {
|
|
|
+ get {
|
|
|
+ return this.columnTypeDefect;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [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 AllTypeDefectRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((AllTypeDefectRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event AllTypeDefectRowChangeEventHandler AllTypeDefectRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void AddAllTypeDefectRow(AllTypeDefectRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public AllTypeDefectRow AddAllTypeDefectRow(string TypeDefect) {
|
|
|
+ AllTypeDefectRow rowAllTypeDefectRow = ((AllTypeDefectRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ TypeDefect};
|
|
|
+ rowAllTypeDefectRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowAllTypeDefectRow);
|
|
|
+ return rowAllTypeDefectRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ AllTypeDefectDataTable cln = ((AllTypeDefectDataTable)(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 AllTypeDefectDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnTypeDefect = base.Columns["TypeDefect"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnTypeDefect = new global::System.Data.DataColumn("TypeDefect", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnTypeDefect);
|
|
|
+ this.columnTypeDefect.ReadOnly = true;
|
|
|
+ this.columnTypeDefect.Caption = "Column1";
|
|
|
+ this.columnTypeDefect.MaxLength = 50;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public AllTypeDefectRow NewAllTypeDefectRow() {
|
|
|
+ return ((AllTypeDefectRow)(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 AllTypeDefectRow(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(AllTypeDefectRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [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.AllTypeDefectRowChanged != null)) {
|
|
|
+ this.AllTypeDefectRowChanged(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(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.AllTypeDefectRowChanging != null)) {
|
|
|
+ this.AllTypeDefectRowChanging(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(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.AllTypeDefectRowDeleted != null)) {
|
|
|
+ this.AllTypeDefectRowDeleted(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(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.AllTypeDefectRowDeleting != null)) {
|
|
|
+ this.AllTypeDefectRowDeleting(this, new AllTypeDefectRowChangeEvent(((AllTypeDefectRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void RemoveAllTypeDefectRow(AllTypeDefectRow 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();
|
|
|
+ TechServiceBAUDataSet ds = new TechServiceBAUDataSet();
|
|
|
+ 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 = "AllTypeDefectDataTable";
|
|
|
+ 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>
|
|
@@ -3745,6 +4030,49 @@ namespace СУБД_Техносервис {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class AllTypeDefectRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private AllTypeDefectDataTable tableAllTypeDefect;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal AllTypeDefectRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableAllTypeDefect = ((AllTypeDefectDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string TypeDefect {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableAllTypeDefect.TypeDefectColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("Значение для столбца \'TypeDefect\' в таблице \'AllTypeDefect\' равно DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableAllTypeDefect.TypeDefectColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsTypeDefectNull() {
|
|
|
+ return this.IsNull(this.tableAllTypeDefect.TypeDefectColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetTypeDefectNull() {
|
|
|
+ this[this.tableAllTypeDefect.TypeDefectColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
///Row event argument class
|
|
|
///</summary>
|
|
@@ -3982,6 +4310,40 @@ namespace СУБД_Техносервис {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Row event argument class
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public class AllTypeDefectRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private AllTypeDefectRow 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 AllTypeDefectRowChangeEvent(AllTypeDefectRow 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 AllTypeDefectRow 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 СУБД_Техносервис.TechServiceBAUDataSetTableAdapters {
|
|
@@ -6858,6 +7220,173 @@ SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, Da
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <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 AllTypeDefectTableAdapter : 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 AllTypeDefectTableAdapter() {
|
|
|
+ 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 = "AllTypeDefect";
|
|
|
+ tableMapping.ColumnMappings.Add("Column1", "TypeDefect");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ }
|
|
|
+
|
|
|
+ [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.TechServiceBAUConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [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 \'Все заявки\'\r\nunion all\r\nSelect Title\r\nFrom TypeDefect";
|
|
|
+ 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(TechServiceBAUDataSet.AllTypeDefectDataTable 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 TechServiceBAUDataSet.AllTypeDefectDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ TechServiceBAUDataSet.AllTypeDefectDataTable dataTable = new TechServiceBAUDataSet.AllTypeDefectDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
|
|
///</summary>
|