|
@@ -0,0 +1,3861 @@
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+// <auto-generated>
|
|
|
+// Этот код создан программой.
|
|
|
+// Исполняемая версия:4.0.30319.42000
|
|
|
+//
|
|
|
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
|
|
+// повторной генерации кода.
|
|
|
+// </auto-generated>
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+
|
|
|
+#pragma warning disable 1591
|
|
|
+
|
|
|
+namespace OrganizationsBase {
|
|
|
+
|
|
|
+
|
|
|
+ /// <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("OrganizationsBaseDataSet")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
|
|
|
+ public partial class OrganizationsBaseDataSet : global::System.Data.DataSet {
|
|
|
+
|
|
|
+ private OrganizationsDataTable tableOrganizations;
|
|
|
+
|
|
|
+ private PracticeLeadsDataTable tablePracticeLeads;
|
|
|
+
|
|
|
+ private SpecialtiesDataTable tableSpecialties;
|
|
|
+
|
|
|
+ private ВыводСпециальностьОрганизацияРуководительDataTable tableВыводСпециальностьОрганизацияРуководитель;
|
|
|
+
|
|
|
+ private global::System.Data.DataRelation relationFK_Organizations_Specialties;
|
|
|
+
|
|
|
+ private global::System.Data.DataRelation relationFK_PracticeLeads_Organizations;
|
|
|
+
|
|
|
+ private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsBaseDataSet() {
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
|
+ base.Tables.CollectionChanged += schemaChangedHandler;
|
|
|
+ base.Relations.CollectionChanged += schemaChangedHandler;
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected OrganizationsBaseDataSet(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["Organizations"] != null)) {
|
|
|
+ base.Tables.Add(new OrganizationsDataTable(ds.Tables["Organizations"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["PracticeLeads"] != null)) {
|
|
|
+ base.Tables.Add(new PracticeLeadsDataTable(ds.Tables["PracticeLeads"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Specialties"] != null)) {
|
|
|
+ base.Tables.Add(new SpecialtiesDataTable(ds.Tables["Specialties"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["ВыводСпециальностьОрганизацияРуководитель"] != null)) {
|
|
|
+ base.Tables.Add(new ВыводСпециальностьОрганизацияРуководительDataTable(ds.Tables["ВыводСпециальностьОрганизацияРуководитель"]));
|
|
|
+ }
|
|
|
+ this.DataSetName = ds.DataSetName;
|
|
|
+ this.Prefix = ds.Prefix;
|
|
|
+ this.Namespace = ds.Namespace;
|
|
|
+ this.Locale = ds.Locale;
|
|
|
+ this.CaseSensitive = ds.CaseSensitive;
|
|
|
+ this.EnforceConstraints = ds.EnforceConstraints;
|
|
|
+ this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
|
|
+ }
|
|
|
+ this.GetSerializationData(info, context);
|
|
|
+ global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
|
+ base.Tables.CollectionChanged += schemaChangedHandler;
|
|
|
+ this.Relations.CollectionChanged += schemaChangedHandler;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public OrganizationsDataTable Organizations {
|
|
|
+ get {
|
|
|
+ return this.tableOrganizations;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public PracticeLeadsDataTable PracticeLeads {
|
|
|
+ get {
|
|
|
+ return this.tablePracticeLeads;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public SpecialtiesDataTable Specialties {
|
|
|
+ get {
|
|
|
+ return this.tableSpecialties;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public ВыводСпециальностьОрганизацияРуководительDataTable ВыводСпециальностьОрганизацияРуководитель {
|
|
|
+ get {
|
|
|
+ return this.tableВыводСпециальностьОрганизацияРуководитель;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.BrowsableAttribute(true)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
|
|
|
+ public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
|
|
|
+ get {
|
|
|
+ return this._schemaSerializationMode;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._schemaSerializationMode = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
|
|
+ public new global::System.Data.DataTableCollection Tables {
|
|
|
+ get {
|
|
|
+ return base.Tables;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
|
|
+ public new global::System.Data.DataRelationCollection Relations {
|
|
|
+ get {
|
|
|
+ return base.Relations;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void InitializeDerivedDataSet() {
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataSet Clone() {
|
|
|
+ OrganizationsBaseDataSet cln = ((OrganizationsBaseDataSet)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ cln.SchemaSerializationMode = this.SchemaSerializationMode;
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override bool ShouldSerializeTables() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override bool ShouldSerializeRelations() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
|
|
|
+ if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
|
|
+ this.Reset();
|
|
|
+ global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
|
|
+ ds.ReadXml(reader);
|
|
|
+ if ((ds.Tables["Organizations"] != null)) {
|
|
|
+ base.Tables.Add(new OrganizationsDataTable(ds.Tables["Organizations"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["PracticeLeads"] != null)) {
|
|
|
+ base.Tables.Add(new PracticeLeadsDataTable(ds.Tables["PracticeLeads"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["Specialties"] != null)) {
|
|
|
+ base.Tables.Add(new SpecialtiesDataTable(ds.Tables["Specialties"]));
|
|
|
+ }
|
|
|
+ if ((ds.Tables["ВыводСпециальностьОрганизацияРуководитель"] != null)) {
|
|
|
+ base.Tables.Add(new ВыводСпециальностьОрганизацияРуководительDataTable(ds.Tables["ВыводСпециальностьОрганизацияРуководитель"]));
|
|
|
+ }
|
|
|
+ this.DataSetName = ds.DataSetName;
|
|
|
+ this.Prefix = ds.Prefix;
|
|
|
+ this.Namespace = ds.Namespace;
|
|
|
+ this.Locale = ds.Locale;
|
|
|
+ this.CaseSensitive = ds.CaseSensitive;
|
|
|
+ this.EnforceConstraints = ds.EnforceConstraints;
|
|
|
+ this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.ReadXml(reader);
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
|
|
|
+ global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
|
|
|
+ this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
|
|
|
+ stream.Position = 0;
|
|
|
+ return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.InitVars(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars(bool initTable) {
|
|
|
+ this.tableOrganizations = ((OrganizationsDataTable)(base.Tables["Organizations"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableOrganizations != null)) {
|
|
|
+ this.tableOrganizations.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tablePracticeLeads = ((PracticeLeadsDataTable)(base.Tables["PracticeLeads"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tablePracticeLeads != null)) {
|
|
|
+ this.tablePracticeLeads.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tableSpecialties = ((SpecialtiesDataTable)(base.Tables["Specialties"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableSpecialties != null)) {
|
|
|
+ this.tableSpecialties.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tableВыводСпециальностьОрганизацияРуководитель = ((ВыводСпециальностьОрганизацияРуководительDataTable)(base.Tables["ВыводСпециальностьОрганизацияРуководитель"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableВыводСпециальностьОрганизацияРуководитель != null)) {
|
|
|
+ this.tableВыводСпециальностьОрганизацияРуководитель.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.relationFK_Organizations_Specialties = this.Relations["FK_Organizations_Specialties"];
|
|
|
+ this.relationFK_PracticeLeads_Organizations = this.Relations["FK_PracticeLeads_Organizations"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.DataSetName = "OrganizationsBaseDataSet";
|
|
|
+ this.Prefix = "";
|
|
|
+ this.Namespace = "http://tempuri.org/OrganizationsBaseDataSet1.xsd";
|
|
|
+ this.EnforceConstraints = true;
|
|
|
+ this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
+ this.tableOrganizations = new OrganizationsDataTable();
|
|
|
+ base.Tables.Add(this.tableOrganizations);
|
|
|
+ this.tablePracticeLeads = new PracticeLeadsDataTable();
|
|
|
+ base.Tables.Add(this.tablePracticeLeads);
|
|
|
+ this.tableSpecialties = new SpecialtiesDataTable();
|
|
|
+ base.Tables.Add(this.tableSpecialties);
|
|
|
+ this.tableВыводСпециальностьОрганизацияРуководитель = new ВыводСпециальностьОрганизацияРуководительDataTable();
|
|
|
+ base.Tables.Add(this.tableВыводСпециальностьОрганизацияРуководитель);
|
|
|
+ this.relationFK_Organizations_Specialties = new global::System.Data.DataRelation("FK_Organizations_Specialties", new global::System.Data.DataColumn[] {
|
|
|
+ this.tableSpecialties.SpecialtyIDColumn}, new global::System.Data.DataColumn[] {
|
|
|
+ this.tableOrganizations.SpecialtyIDColumn}, false);
|
|
|
+ this.Relations.Add(this.relationFK_Organizations_Specialties);
|
|
|
+ this.relationFK_PracticeLeads_Organizations = new global::System.Data.DataRelation("FK_PracticeLeads_Organizations", new global::System.Data.DataColumn[] {
|
|
|
+ this.tableOrganizations.OrganizationIDColumn}, new global::System.Data.DataColumn[] {
|
|
|
+ this.tablePracticeLeads.PracticeLeadIDColumn}, false);
|
|
|
+ this.Relations.Add(this.relationFK_PracticeLeads_Organizations);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private bool ShouldSerializeOrganizations() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private bool ShouldSerializePracticeLeads() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private bool ShouldSerializeSpecialties() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private bool ShouldSerializeВыводСпециальностьОрганизацияРуководитель() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
|
|
+ if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ OrganizationsBaseDataSet ds = new OrganizationsBaseDataSet();
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
+ any.Namespace = ds.Namespace;
|
|
|
+ sequence.Items.Add(any);
|
|
|
+ type.Particle = sequence;
|
|
|
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
|
+ if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
|
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
|
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
|
+ try {
|
|
|
+ global::System.Xml.Schema.XmlSchema schema = null;
|
|
|
+ dsSchema.Write(s1);
|
|
|
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
|
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
|
+ s2.SetLength(0);
|
|
|
+ schema.Write(s2);
|
|
|
+ if ((s1.Length == s2.Length)) {
|
|
|
+ s1.Position = 0;
|
|
|
+ s2.Position = 0;
|
|
|
+ for (; ((s1.Position != s1.Length)
|
|
|
+ && (s1.ReadByte() == s2.ReadByte())); ) {
|
|
|
+ ;
|
|
|
+ }
|
|
|
+ if ((s1.Position == s1.Length)) {
|
|
|
+ return type;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ finally {
|
|
|
+ if ((s1 != null)) {
|
|
|
+ s1.Close();
|
|
|
+ }
|
|
|
+ if ((s2 != null)) {
|
|
|
+ s2.Close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ xs.Add(dsSchema);
|
|
|
+ return type;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public delegate void OrganizationsRowChangeEventHandler(object sender, OrganizationsRowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public delegate void PracticeLeadsRowChangeEventHandler(object sender, PracticeLeadsRowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public delegate void SpecialtiesRowChangeEventHandler(object sender, SpecialtiesRowChangeEvent e);
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public delegate void ВыводСпециальностьОрганизацияРуководительRowChangeEventHandler(object sender, ВыводСпециальностьОрганизацияРуководительRowChangeEvent e);
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents the strongly named DataTable class.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Serializable()]
|
|
|
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
+ public partial class OrganizationsDataTable : global::System.Data.TypedTableBase<OrganizationsRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnOrganizationID;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnSpecialtyID;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnTitle;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnLegalAddress;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnActualAddress;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnPhone;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columneMail;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnDirector;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsDataTable() {
|
|
|
+ this.TableName = "Organizations";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal OrganizationsDataTable(global::System.Data.DataTable table) {
|
|
|
+ this.TableName = table.TableName;
|
|
|
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
+ this.CaseSensitive = table.CaseSensitive;
|
|
|
+ }
|
|
|
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
+ this.Locale = table.Locale;
|
|
|
+ }
|
|
|
+ if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
+ this.Namespace = table.Namespace;
|
|
|
+ }
|
|
|
+ this.Prefix = table.Prefix;
|
|
|
+ this.MinimumCapacity = table.MinimumCapacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected OrganizationsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
+ base(info, context) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn OrganizationIDColumn {
|
|
|
+ get {
|
|
|
+ return this.columnOrganizationID;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn SpecialtyIDColumn {
|
|
|
+ get {
|
|
|
+ return this.columnSpecialtyID;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn LegalAddressColumn {
|
|
|
+ get {
|
|
|
+ return this.columnLegalAddress;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn ActualAddressColumn {
|
|
|
+ get {
|
|
|
+ return this.columnActualAddress;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn eMailColumn {
|
|
|
+ get {
|
|
|
+ return this.columneMail;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn DirectorColumn {
|
|
|
+ get {
|
|
|
+ return this.columnDirector;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int Count {
|
|
|
+ get {
|
|
|
+ return this.Rows.Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((OrganizationsRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event OrganizationsRowChangeEventHandler OrganizationsRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event OrganizationsRowChangeEventHandler OrganizationsRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event OrganizationsRowChangeEventHandler OrganizationsRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event OrganizationsRowChangeEventHandler OrganizationsRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void AddOrganizationsRow(OrganizationsRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsRow AddOrganizationsRow(SpecialtiesRow parentSpecialtiesRowByFK_Organizations_Specialties, string Title, string LegalAddress, string ActualAddress, string Phone, string eMail, string Director) {
|
|
|
+ OrganizationsRow rowOrganizationsRow = ((OrganizationsRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ null,
|
|
|
+ Title,
|
|
|
+ LegalAddress,
|
|
|
+ ActualAddress,
|
|
|
+ Phone,
|
|
|
+ eMail,
|
|
|
+ Director};
|
|
|
+ if ((parentSpecialtiesRowByFK_Organizations_Specialties != null)) {
|
|
|
+ columnValuesArray[1] = parentSpecialtiesRowByFK_Organizations_Specialties[0];
|
|
|
+ }
|
|
|
+ rowOrganizationsRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowOrganizationsRow);
|
|
|
+ return rowOrganizationsRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsRow FindByOrganizationID(int OrganizationID) {
|
|
|
+ return ((OrganizationsRow)(this.Rows.Find(new object[] {
|
|
|
+ OrganizationID})));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ OrganizationsDataTable cln = ((OrganizationsDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new OrganizationsDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnOrganizationID = base.Columns["OrganizationID"];
|
|
|
+ this.columnSpecialtyID = base.Columns["SpecialtyID"];
|
|
|
+ this.columnTitle = base.Columns["Title"];
|
|
|
+ this.columnLegalAddress = base.Columns["LegalAddress"];
|
|
|
+ this.columnActualAddress = base.Columns["ActualAddress"];
|
|
|
+ this.columnPhone = base.Columns["Phone"];
|
|
|
+ this.columneMail = base.Columns["eMail"];
|
|
|
+ this.columnDirector = base.Columns["Director"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnOrganizationID = new global::System.Data.DataColumn("OrganizationID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnOrganizationID);
|
|
|
+ this.columnSpecialtyID = new global::System.Data.DataColumn("SpecialtyID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnSpecialtyID);
|
|
|
+ this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnTitle);
|
|
|
+ this.columnLegalAddress = new global::System.Data.DataColumn("LegalAddress", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnLegalAddress);
|
|
|
+ this.columnActualAddress = new global::System.Data.DataColumn("ActualAddress", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnActualAddress);
|
|
|
+ this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnPhone);
|
|
|
+ this.columneMail = new global::System.Data.DataColumn("eMail", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columneMail);
|
|
|
+ this.columnDirector = new global::System.Data.DataColumn("Director", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnDirector);
|
|
|
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
+ this.columnOrganizationID}, true));
|
|
|
+ this.columnOrganizationID.AutoIncrement = true;
|
|
|
+ this.columnOrganizationID.AutoIncrementSeed = -1;
|
|
|
+ this.columnOrganizationID.AutoIncrementStep = -1;
|
|
|
+ this.columnOrganizationID.AllowDBNull = false;
|
|
|
+ this.columnOrganizationID.ReadOnly = true;
|
|
|
+ this.columnOrganizationID.Unique = true;
|
|
|
+ this.columnSpecialtyID.AllowDBNull = false;
|
|
|
+ this.columnTitle.AllowDBNull = false;
|
|
|
+ this.columnTitle.MaxLength = 300;
|
|
|
+ this.columnLegalAddress.AllowDBNull = false;
|
|
|
+ this.columnLegalAddress.MaxLength = 2147483647;
|
|
|
+ this.columnActualAddress.AllowDBNull = false;
|
|
|
+ this.columnActualAddress.MaxLength = 2147483647;
|
|
|
+ this.columnPhone.AllowDBNull = false;
|
|
|
+ this.columnPhone.MaxLength = 15;
|
|
|
+ this.columneMail.AllowDBNull = false;
|
|
|
+ this.columneMail.MaxLength = 128;
|
|
|
+ this.columnDirector.AllowDBNull = false;
|
|
|
+ this.columnDirector.MaxLength = 50;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsRow NewOrganizationsRow() {
|
|
|
+ return ((OrganizationsRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new OrganizationsRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(OrganizationsRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.OrganizationsRowChanged != null)) {
|
|
|
+ this.OrganizationsRowChanged(this, new OrganizationsRowChangeEvent(((OrganizationsRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.OrganizationsRowChanging != null)) {
|
|
|
+ this.OrganizationsRowChanging(this, new OrganizationsRowChangeEvent(((OrganizationsRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.OrganizationsRowDeleted != null)) {
|
|
|
+ this.OrganizationsRowDeleted(this, new OrganizationsRowChangeEvent(((OrganizationsRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.OrganizationsRowDeleting != null)) {
|
|
|
+ this.OrganizationsRowDeleting(this, new OrganizationsRowChangeEvent(((OrganizationsRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void RemoveOrganizationsRow(OrganizationsRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ OrganizationsBaseDataSet ds = new OrganizationsBaseDataSet();
|
|
|
+ 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 = "OrganizationsDataTable";
|
|
|
+ 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 PracticeLeadsDataTable : global::System.Data.TypedTableBase<PracticeLeadsRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnPracticeLeadID;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnOrganizationID;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnName;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public PracticeLeadsDataTable() {
|
|
|
+ this.TableName = "PracticeLeads";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal PracticeLeadsDataTable(global::System.Data.DataTable table) {
|
|
|
+ this.TableName = table.TableName;
|
|
|
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
+ this.CaseSensitive = table.CaseSensitive;
|
|
|
+ }
|
|
|
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
+ this.Locale = table.Locale;
|
|
|
+ }
|
|
|
+ if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
+ this.Namespace = table.Namespace;
|
|
|
+ }
|
|
|
+ this.Prefix = table.Prefix;
|
|
|
+ this.MinimumCapacity = table.MinimumCapacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected PracticeLeadsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
+ base(info, context) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn PracticeLeadIDColumn {
|
|
|
+ get {
|
|
|
+ return this.columnPracticeLeadID;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn OrganizationIDColumn {
|
|
|
+ get {
|
|
|
+ return this.columnOrganizationID;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int Count {
|
|
|
+ get {
|
|
|
+ return this.Rows.Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public PracticeLeadsRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((PracticeLeadsRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event PracticeLeadsRowChangeEventHandler PracticeLeadsRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event PracticeLeadsRowChangeEventHandler PracticeLeadsRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event PracticeLeadsRowChangeEventHandler PracticeLeadsRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event PracticeLeadsRowChangeEventHandler PracticeLeadsRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void AddPracticeLeadsRow(PracticeLeadsRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public PracticeLeadsRow AddPracticeLeadsRow(int OrganizationID, string Name) {
|
|
|
+ PracticeLeadsRow rowPracticeLeadsRow = ((PracticeLeadsRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ OrganizationID,
|
|
|
+ Name};
|
|
|
+ rowPracticeLeadsRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowPracticeLeadsRow);
|
|
|
+ return rowPracticeLeadsRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public PracticeLeadsRow FindByPracticeLeadID(int PracticeLeadID) {
|
|
|
+ return ((PracticeLeadsRow)(this.Rows.Find(new object[] {
|
|
|
+ PracticeLeadID})));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ PracticeLeadsDataTable cln = ((PracticeLeadsDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new PracticeLeadsDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnPracticeLeadID = base.Columns["PracticeLeadID"];
|
|
|
+ this.columnOrganizationID = base.Columns["OrganizationID"];
|
|
|
+ this.columnName = base.Columns["Name"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnPracticeLeadID = new global::System.Data.DataColumn("PracticeLeadID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnPracticeLeadID);
|
|
|
+ this.columnOrganizationID = new global::System.Data.DataColumn("OrganizationID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnOrganizationID);
|
|
|
+ this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnName);
|
|
|
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
+ this.columnPracticeLeadID}, true));
|
|
|
+ this.columnPracticeLeadID.AutoIncrement = true;
|
|
|
+ this.columnPracticeLeadID.AutoIncrementSeed = -1;
|
|
|
+ this.columnPracticeLeadID.AutoIncrementStep = -1;
|
|
|
+ this.columnPracticeLeadID.AllowDBNull = false;
|
|
|
+ this.columnPracticeLeadID.ReadOnly = true;
|
|
|
+ this.columnPracticeLeadID.Unique = true;
|
|
|
+ this.columnOrganizationID.AllowDBNull = false;
|
|
|
+ this.columnName.AllowDBNull = false;
|
|
|
+ this.columnName.MaxLength = 10;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public PracticeLeadsRow NewPracticeLeadsRow() {
|
|
|
+ return ((PracticeLeadsRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new PracticeLeadsRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(PracticeLeadsRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.PracticeLeadsRowChanged != null)) {
|
|
|
+ this.PracticeLeadsRowChanged(this, new PracticeLeadsRowChangeEvent(((PracticeLeadsRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.PracticeLeadsRowChanging != null)) {
|
|
|
+ this.PracticeLeadsRowChanging(this, new PracticeLeadsRowChangeEvent(((PracticeLeadsRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.PracticeLeadsRowDeleted != null)) {
|
|
|
+ this.PracticeLeadsRowDeleted(this, new PracticeLeadsRowChangeEvent(((PracticeLeadsRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.PracticeLeadsRowDeleting != null)) {
|
|
|
+ this.PracticeLeadsRowDeleting(this, new PracticeLeadsRowChangeEvent(((PracticeLeadsRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void RemovePracticeLeadsRow(PracticeLeadsRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ OrganizationsBaseDataSet ds = new OrganizationsBaseDataSet();
|
|
|
+ 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 = "PracticeLeadsDataTable";
|
|
|
+ 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 SpecialtiesDataTable : global::System.Data.TypedTableBase<SpecialtiesRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnSpecialtyID;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnTitle;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public SpecialtiesDataTable() {
|
|
|
+ this.TableName = "Specialties";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal SpecialtiesDataTable(global::System.Data.DataTable table) {
|
|
|
+ this.TableName = table.TableName;
|
|
|
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
+ this.CaseSensitive = table.CaseSensitive;
|
|
|
+ }
|
|
|
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
+ this.Locale = table.Locale;
|
|
|
+ }
|
|
|
+ if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
+ this.Namespace = table.Namespace;
|
|
|
+ }
|
|
|
+ this.Prefix = table.Prefix;
|
|
|
+ this.MinimumCapacity = table.MinimumCapacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected SpecialtiesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
+ base(info, context) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn SpecialtyIDColumn {
|
|
|
+ get {
|
|
|
+ return this.columnSpecialtyID;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int Count {
|
|
|
+ get {
|
|
|
+ return this.Rows.Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public SpecialtiesRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((SpecialtiesRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event SpecialtiesRowChangeEventHandler SpecialtiesRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event SpecialtiesRowChangeEventHandler SpecialtiesRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event SpecialtiesRowChangeEventHandler SpecialtiesRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event SpecialtiesRowChangeEventHandler SpecialtiesRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void AddSpecialtiesRow(SpecialtiesRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public SpecialtiesRow AddSpecialtiesRow(string Title) {
|
|
|
+ SpecialtiesRow rowSpecialtiesRow = ((SpecialtiesRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ Title};
|
|
|
+ rowSpecialtiesRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowSpecialtiesRow);
|
|
|
+ return rowSpecialtiesRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public SpecialtiesRow FindBySpecialtyID(int SpecialtyID) {
|
|
|
+ return ((SpecialtiesRow)(this.Rows.Find(new object[] {
|
|
|
+ SpecialtyID})));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ SpecialtiesDataTable cln = ((SpecialtiesDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new SpecialtiesDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnSpecialtyID = base.Columns["SpecialtyID"];
|
|
|
+ this.columnTitle = base.Columns["Title"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnSpecialtyID = new global::System.Data.DataColumn("SpecialtyID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnSpecialtyID);
|
|
|
+ this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnTitle);
|
|
|
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
+ this.columnSpecialtyID}, true));
|
|
|
+ this.columnSpecialtyID.AutoIncrement = true;
|
|
|
+ this.columnSpecialtyID.AutoIncrementSeed = -1;
|
|
|
+ this.columnSpecialtyID.AutoIncrementStep = -1;
|
|
|
+ this.columnSpecialtyID.AllowDBNull = false;
|
|
|
+ this.columnSpecialtyID.ReadOnly = true;
|
|
|
+ this.columnSpecialtyID.Unique = true;
|
|
|
+ this.columnTitle.AllowDBNull = false;
|
|
|
+ this.columnTitle.MaxLength = 100;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public SpecialtiesRow NewSpecialtiesRow() {
|
|
|
+ return ((SpecialtiesRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new SpecialtiesRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(SpecialtiesRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.SpecialtiesRowChanged != null)) {
|
|
|
+ this.SpecialtiesRowChanged(this, new SpecialtiesRowChangeEvent(((SpecialtiesRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.SpecialtiesRowChanging != null)) {
|
|
|
+ this.SpecialtiesRowChanging(this, new SpecialtiesRowChangeEvent(((SpecialtiesRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.SpecialtiesRowDeleted != null)) {
|
|
|
+ this.SpecialtiesRowDeleted(this, new SpecialtiesRowChangeEvent(((SpecialtiesRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.SpecialtiesRowDeleting != null)) {
|
|
|
+ this.SpecialtiesRowDeleting(this, new SpecialtiesRowChangeEvent(((SpecialtiesRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void RemoveSpecialtiesRow(SpecialtiesRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ OrganizationsBaseDataSet ds = new OrganizationsBaseDataSet();
|
|
|
+ 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 = "SpecialtiesDataTable";
|
|
|
+ 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 ВыводСпециальностьОрганизацияРуководительDataTable : global::System.Data.TypedTableBase<ВыводСпециальностьОрганизацияРуководительRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnCпециальность;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnОрганизация;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnРуководитель_от_организации;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public ВыводСпециальностьОрганизацияРуководительDataTable() {
|
|
|
+ this.TableName = "ВыводСпециальностьОрганизацияРуководитель";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal ВыводСпециальностьОрганизацияРуководительDataTable(global::System.Data.DataTable table) {
|
|
|
+ this.TableName = table.TableName;
|
|
|
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
+ this.CaseSensitive = table.CaseSensitive;
|
|
|
+ }
|
|
|
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
+ this.Locale = table.Locale;
|
|
|
+ }
|
|
|
+ if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
+ this.Namespace = table.Namespace;
|
|
|
+ }
|
|
|
+ this.Prefix = table.Prefix;
|
|
|
+ this.MinimumCapacity = table.MinimumCapacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected ВыводСпециальностьОрганизацияРуководительDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
+ base(info, context) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn CпециальностьColumn {
|
|
|
+ get {
|
|
|
+ return this.columnCпециальность;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn ОрганизацияColumn {
|
|
|
+ get {
|
|
|
+ return this.columnОрганизация;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn Руководитель_от_организацииColumn {
|
|
|
+ get {
|
|
|
+ return this.columnРуководитель_от_организации;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int Count {
|
|
|
+ get {
|
|
|
+ return this.Rows.Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public ВыводСпециальностьОрганизацияРуководительRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((ВыводСпециальностьОрганизацияРуководительRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event ВыводСпециальностьОрганизацияРуководительRowChangeEventHandler ВыводСпециальностьОрганизацияРуководительRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event ВыводСпециальностьОрганизацияРуководительRowChangeEventHandler ВыводСпециальностьОрганизацияРуководительRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event ВыводСпециальностьОрганизацияРуководительRowChangeEventHandler ВыводСпециальностьОрганизацияРуководительRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public event ВыводСпециальностьОрганизацияРуководительRowChangeEventHandler ВыводСпециальностьОрганизацияРуководительRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void AddВыводСпециальностьОрганизацияРуководительRow(ВыводСпециальностьОрганизацияРуководительRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public ВыводСпециальностьОрганизацияРуководительRow AddВыводСпециальностьОрганизацияРуководительRow(string Cпециальность, string Организация, string Руководитель_от_организации) {
|
|
|
+ ВыводСпециальностьОрганизацияРуководительRow rowВыводСпециальностьОрганизацияРуководительRow = ((ВыводСпециальностьОрганизацияРуководительRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ Cпециальность,
|
|
|
+ Организация,
|
|
|
+ Руководитель_от_организации};
|
|
|
+ rowВыводСпециальностьОрганизацияРуководительRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowВыводСпециальностьОрганизацияРуководительRow);
|
|
|
+ return rowВыводСпециальностьОрганизацияРуководительRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ ВыводСпециальностьОрганизацияРуководительDataTable cln = ((ВыводСпециальностьОрганизацияРуководительDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new ВыводСпециальностьОрганизацияРуководительDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnCпециальность = base.Columns["Cпециальность"];
|
|
|
+ this.columnОрганизация = base.Columns["Организация"];
|
|
|
+ this.columnРуководитель_от_организации = base.Columns["Руководитель от организации"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnCпециальность = new global::System.Data.DataColumn("Cпециальность", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnCпециальность);
|
|
|
+ this.columnОрганизация = new global::System.Data.DataColumn("Организация", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnОрганизация);
|
|
|
+ this.columnРуководитель_от_организации = new global::System.Data.DataColumn("Руководитель от организации", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnРуководитель_от_организации);
|
|
|
+ this.columnCпециальность.AllowDBNull = false;
|
|
|
+ this.columnCпециальность.MaxLength = 100;
|
|
|
+ this.columnОрганизация.AllowDBNull = false;
|
|
|
+ this.columnОрганизация.MaxLength = 300;
|
|
|
+ this.columnРуководитель_от_организации.AllowDBNull = false;
|
|
|
+ this.columnРуководитель_от_организации.MaxLength = 10;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public ВыводСпециальностьОрганизацияРуководительRow NewВыводСпециальностьОрганизацияРуководительRow() {
|
|
|
+ return ((ВыводСпециальностьОрганизацияРуководительRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new ВыводСпециальностьОрганизацияРуководительRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(ВыводСпециальностьОрганизацияРуководительRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.ВыводСпециальностьОрганизацияРуководительRowChanged != null)) {
|
|
|
+ this.ВыводСпециальностьОрганизацияРуководительRowChanged(this, new ВыводСпециальностьОрганизацияРуководительRowChangeEvent(((ВыводСпециальностьОрганизацияРуководительRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.ВыводСпециальностьОрганизацияРуководительRowChanging != null)) {
|
|
|
+ this.ВыводСпециальностьОрганизацияРуководительRowChanging(this, new ВыводСпециальностьОрганизацияРуководительRowChangeEvent(((ВыводСпециальностьОрганизацияРуководительRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.ВыводСпециальностьОрганизацияРуководительRowDeleted != null)) {
|
|
|
+ this.ВыводСпециальностьОрганизацияРуководительRowDeleted(this, new ВыводСпециальностьОрганизацияРуководительRowChangeEvent(((ВыводСпециальностьОрганизацияРуководительRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.ВыводСпециальностьОрганизацияРуководительRowDeleting != null)) {
|
|
|
+ this.ВыводСпециальностьОрганизацияРуководительRowDeleting(this, new ВыводСпециальностьОрганизацияРуководительRowChangeEvent(((ВыводСпециальностьОрганизацияРуководительRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public void RemoveВыводСпециальностьОрганизацияРуководительRow(ВыводСпециальностьОрганизацияРуководительRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ OrganizationsBaseDataSet ds = new OrganizationsBaseDataSet();
|
|
|
+ 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 = "ВыводСпециальностьОрганизацияРуководительDataTable";
|
|
|
+ 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 OrganizationsRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private OrganizationsDataTable tableOrganizations;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal OrganizationsRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableOrganizations = ((OrganizationsDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int OrganizationID {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tableOrganizations.OrganizationIDColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrganizations.OrganizationIDColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int SpecialtyID {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tableOrganizations.SpecialtyIDColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrganizations.SpecialtyIDColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Title {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableOrganizations.TitleColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrganizations.TitleColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string LegalAddress {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableOrganizations.LegalAddressColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrganizations.LegalAddressColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string ActualAddress {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableOrganizations.ActualAddressColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrganizations.ActualAddressColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Phone {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableOrganizations.PhoneColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrganizations.PhoneColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string eMail {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableOrganizations.eMailColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrganizations.eMailColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Director {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableOrganizations.DirectorColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableOrganizations.DirectorColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public SpecialtiesRow SpecialtiesRow {
|
|
|
+ get {
|
|
|
+ return ((SpecialtiesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Organizations_Specialties"])));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Organizations_Specialties"]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public PracticeLeadsRow[] GetPracticeLeadsRows() {
|
|
|
+ if ((this.Table.ChildRelations["FK_PracticeLeads_Organizations"] == null)) {
|
|
|
+ return new PracticeLeadsRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((PracticeLeadsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PracticeLeads_Organizations"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class PracticeLeadsRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private PracticeLeadsDataTable tablePracticeLeads;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal PracticeLeadsRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tablePracticeLeads = ((PracticeLeadsDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int PracticeLeadID {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tablePracticeLeads.PracticeLeadIDColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tablePracticeLeads.PracticeLeadIDColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int OrganizationID {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tablePracticeLeads.OrganizationIDColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tablePracticeLeads.OrganizationIDColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Name {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tablePracticeLeads.NameColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tablePracticeLeads.NameColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsRow OrganizationsRow {
|
|
|
+ get {
|
|
|
+ return ((OrganizationsRow)(this.GetParentRow(this.Table.ParentRelations["FK_PracticeLeads_Organizations"])));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.SetParentRow(value, this.Table.ParentRelations["FK_PracticeLeads_Organizations"]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class SpecialtiesRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private SpecialtiesDataTable tableSpecialties;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal SpecialtiesRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableSpecialties = ((SpecialtiesDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int SpecialtyID {
|
|
|
+ get {
|
|
|
+ return ((int)(this[this.tableSpecialties.SpecialtyIDColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableSpecialties.SpecialtyIDColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Title {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableSpecialties.TitleColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableSpecialties.TitleColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsRow[] GetOrganizationsRows() {
|
|
|
+ if ((this.Table.ChildRelations["FK_Organizations_Specialties"] == null)) {
|
|
|
+ return new OrganizationsRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((OrganizationsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Organizations_Specialties"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class ВыводСпециальностьОрганизацияРуководительRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private ВыводСпециальностьОрганизацияРуководительDataTable tableВыводСпециальностьОрганизацияРуководитель;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal ВыводСпециальностьОрганизацияРуководительRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableВыводСпециальностьОрганизацияРуководитель = ((ВыводСпециальностьОрганизацияРуководительDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Cпециальность {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableВыводСпециальностьОрганизацияРуководитель.CпециальностьColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableВыводСпециальностьОрганизацияРуководитель.CпециальностьColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Организация {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableВыводСпециальностьОрганизацияРуководитель.ОрганизацияColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableВыводСпециальностьОрганизацияРуководитель.ОрганизацияColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public string Руководитель_от_организации {
|
|
|
+ get {
|
|
|
+ return ((string)(this[this.tableВыводСпециальностьОрганизацияРуководитель.Руководитель_от_организацииColumn]));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableВыводСпециальностьОрганизацияРуководитель.Руководитель_от_организацииColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Row event argument class
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public class OrganizationsRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private OrganizationsRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsRowChangeEvent(OrganizationsRow row, global::System.Data.DataRowAction action) {
|
|
|
+ this.eventRow = row;
|
|
|
+ this.eventAction = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataRowAction Action {
|
|
|
+ get {
|
|
|
+ return this.eventAction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Row event argument class
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public class PracticeLeadsRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private PracticeLeadsRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public PracticeLeadsRowChangeEvent(PracticeLeadsRow row, global::System.Data.DataRowAction action) {
|
|
|
+ this.eventRow = row;
|
|
|
+ this.eventAction = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public PracticeLeadsRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataRowAction Action {
|
|
|
+ get {
|
|
|
+ return this.eventAction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Row event argument class
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public class SpecialtiesRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private SpecialtiesRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public SpecialtiesRowChangeEvent(SpecialtiesRow row, global::System.Data.DataRowAction action) {
|
|
|
+ this.eventRow = row;
|
|
|
+ this.eventAction = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public SpecialtiesRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataRowAction Action {
|
|
|
+ get {
|
|
|
+ return this.eventAction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Row event argument class
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public class ВыводСпециальностьОрганизацияРуководительRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private ВыводСпециальностьОрганизацияРуководительRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public ВыводСпециальностьОрганизацияРуководительRowChangeEvent(ВыводСпециальностьОрганизацияРуководительRow row, global::System.Data.DataRowAction action) {
|
|
|
+ this.eventRow = row;
|
|
|
+ this.eventAction = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public ВыводСпециальностьОрганизацияРуководительRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public global::System.Data.DataRowAction Action {
|
|
|
+ get {
|
|
|
+ return this.eventAction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+namespace OrganizationsBase.OrganizationsBaseDataSetTableAdapters {
|
|
|
+
|
|
|
+
|
|
|
+ /// <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 OrganizationsTableAdapter : global::System.ComponentModel.Component {
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
+
|
|
|
+ private bool _clearBeforeFill;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public OrganizationsTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
+ get {
|
|
|
+ if ((this._adapter == null)) {
|
|
|
+ this.InitAdapter();
|
|
|
+ }
|
|
|
+ return this._adapter;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection == null)) {
|
|
|
+ this.InitConnection();
|
|
|
+ }
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ if ((this.Adapter.InsertCommand != null)) {
|
|
|
+ this.Adapter.InsertCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.DeleteCommand != null)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.UpdateCommand != null)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection = value;
|
|
|
+ }
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ if ((this.CommandCollection[i] != null)) {
|
|
|
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
+ get {
|
|
|
+ return this._transaction;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._transaction = value;
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ this.CommandCollection[i].Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.DeleteCommand != null))) {
|
|
|
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.InsertCommand != null))) {
|
|
|
+ this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.UpdateCommand != null))) {
|
|
|
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
+ get {
|
|
|
+ if ((this._commandCollection == null)) {
|
|
|
+ this.InitCommandCollection();
|
|
|
+ }
|
|
|
+ return this._commandCollection;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool ClearBeforeFill {
|
|
|
+ get {
|
|
|
+ return this._clearBeforeFill;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clearBeforeFill = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitAdapter() {
|
|
|
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
+ tableMapping.SourceTable = "Table";
|
|
|
+ tableMapping.DataSetTable = "Organizations";
|
|
|
+ tableMapping.ColumnMappings.Add("OrganizationID", "OrganizationID");
|
|
|
+ tableMapping.ColumnMappings.Add("SpecialtyID", "SpecialtyID");
|
|
|
+ tableMapping.ColumnMappings.Add("Title", "Title");
|
|
|
+ tableMapping.ColumnMappings.Add("LegalAddress", "LegalAddress");
|
|
|
+ tableMapping.ColumnMappings.Add("ActualAddress", "ActualAddress");
|
|
|
+ tableMapping.ColumnMappings.Add("Phone", "Phone");
|
|
|
+ tableMapping.ColumnMappings.Add("eMail", "eMail");
|
|
|
+ tableMapping.ColumnMappings.Add("Director", "Director");
|
|
|
+ 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].[Organizations] WHERE (([OrganizationID] = @Original_OrganizationID) AND ([SpecialtyID] = @Original_SpecialtyID) AND ([Title] = @Original_Title) AND ([Phone] = @Original_Phone) AND ([eMail] = @Original_eMail) AND ([Director] = @Original_Director))";
|
|
|
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrganizationID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SpecialtyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyID", global::System.Data.DataRowVersion.Original, false, 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("@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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_eMail", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "eMail", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Director", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Director", 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].[Organizations] ([SpecialtyID], [Title], [LegalAddress], [ActualAddress], [Phone], [eMail], [Director]) VALUES (@SpecialtyID, @Title, @LegalAddress, @ActualAddress, @Phone, @eMail, @Director);
|
|
|
+SELECT OrganizationID, SpecialtyID, Title, LegalAddress, ActualAddress, Phone, eMail, Director FROM Organizations WHERE (OrganizationID = SCOPE_IDENTITY())";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SpecialtyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ 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("@LegalAddress", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LegalAddress", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ActualAddress", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ActualAddress", 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.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eMail", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "eMail", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Director", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Director", 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].[Organizations] SET [SpecialtyID] = @SpecialtyID, [Title] = @Title, [LegalAddress] = @LegalAddress, [ActualAddress] = @ActualAddress, [Phone] = @Phone, [eMail] = @eMail, [Director] = @Director WHERE (([OrganizationID] = @Original_OrganizationID) AND ([SpecialtyID] = @Original_SpecialtyID) AND ([Title] = @Original_Title) AND ([Phone] = @Original_Phone) AND ([eMail] = @Original_eMail) AND ([Director] = @Original_Director));
|
|
|
+SELECT OrganizationID, SpecialtyID, Title, LegalAddress, ActualAddress, Phone, eMail, Director FROM Organizations WHERE (OrganizationID = @OrganizationID)";
|
|
|
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SpecialtyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ 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("@LegalAddress", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LegalAddress", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ActualAddress", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ActualAddress", 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("@eMail", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "eMail", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Director", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Director", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrganizationID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SpecialtyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyID", global::System.Data.DataRowVersion.Original, false, 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("@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("@Original_eMail", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "eMail", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Director", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Director", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrganizationID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::OrganizationsBase.Properties.Settings.Default.OrganizationsBaseConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitCommandCollection() {
|
|
|
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._commandCollection[0].Connection = this.Connection;
|
|
|
+ this._commandCollection[0].CommandText = "SELECT OrganizationID, SpecialtyID, Title, LegalAddress, ActualAddress, Phone, eM" +
|
|
|
+ "ail, Director FROM dbo.Organizations";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
+ public virtual int Fill(OrganizationsBaseDataSet.OrganizationsDataTable dataTable) {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ if ((this.ClearBeforeFill == true)) {
|
|
|
+ dataTable.Clear();
|
|
|
+ }
|
|
|
+ int returnValue = this.Adapter.Fill(dataTable);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual OrganizationsBaseDataSet.OrganizationsDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ OrganizationsBaseDataSet.OrganizationsDataTable dataTable = new OrganizationsBaseDataSet.OrganizationsDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OrganizationsBaseDataSet.OrganizationsDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OrganizationsBaseDataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "Organizations");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
+ dataRow});
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
+ return this.Adapter.Update(dataRows);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
+ public virtual int Delete(int Original_OrganizationID, int Original_SpecialtyID, string Original_Title, string Original_Phone, string Original_eMail, string Original_Director) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrganizationID));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_SpecialtyID));
|
|
|
+ if ((Original_Title == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Title");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
|
|
|
+ }
|
|
|
+ if ((Original_Phone == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Phone");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Phone));
|
|
|
+ }
|
|
|
+ if ((Original_eMail == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_eMail");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_eMail));
|
|
|
+ }
|
|
|
+ if ((Original_Director == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Director");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Director));
|
|
|
+ }
|
|
|
+ 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", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
+ public virtual int Insert(int SpecialtyID, string Title, string LegalAddress, string ActualAddress, string Phone, string eMail, string Director) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(SpecialtyID));
|
|
|
+ if ((Title == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Title");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Title));
|
|
|
+ }
|
|
|
+ if ((LegalAddress == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("LegalAddress");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(LegalAddress));
|
|
|
+ }
|
|
|
+ if ((ActualAddress == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("ActualAddress");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ActualAddress));
|
|
|
+ }
|
|
|
+ if ((Phone == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Phone");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Phone));
|
|
|
+ }
|
|
|
+ if ((eMail == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("eMail");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(eMail));
|
|
|
+ }
|
|
|
+ if ((Director == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Director");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Director));
|
|
|
+ }
|
|
|
+ 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", "16.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(int SpecialtyID, string Title, string LegalAddress, string ActualAddress, string Phone, string eMail, string Director, int Original_OrganizationID, int Original_SpecialtyID, string Original_Title, string Original_Phone, string Original_eMail, string Original_Director, int OrganizationID) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(SpecialtyID));
|
|
|
+ if ((Title == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Title");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Title));
|
|
|
+ }
|
|
|
+ if ((LegalAddress == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("LegalAddress");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(LegalAddress));
|
|
|
+ }
|
|
|
+ if ((ActualAddress == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("ActualAddress");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ActualAddress));
|
|
|
+ }
|
|
|
+ if ((Phone == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Phone");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Phone));
|
|
|
+ }
|
|
|
+ if ((eMail == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("eMail");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(eMail));
|
|
|
+ }
|
|
|
+ if ((Director == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Director");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Director));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_OrganizationID));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_SpecialtyID));
|
|
|
+ if ((Original_Title == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Title");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Title));
|
|
|
+ }
|
|
|
+ if ((Original_Phone == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Phone");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Phone));
|
|
|
+ }
|
|
|
+ if ((Original_eMail == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_eMail");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_eMail));
|
|
|
+ }
|
|
|
+ if ((Original_Director == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Director");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Director));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(OrganizationID));
|
|
|
+ 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", "16.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(int SpecialtyID, string Title, string LegalAddress, string ActualAddress, string Phone, string eMail, string Director, int Original_OrganizationID, int Original_SpecialtyID, string Original_Title, string Original_Phone, string Original_eMail, string Original_Director) {
|
|
|
+ return this.Update(SpecialtyID, Title, LegalAddress, ActualAddress, Phone, eMail, Director, Original_OrganizationID, Original_SpecialtyID, Original_Title, Original_Phone, Original_eMail, Original_Director, Original_OrganizationID);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 PracticeLeadsTableAdapter : global::System.ComponentModel.Component {
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
+
|
|
|
+ private bool _clearBeforeFill;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public PracticeLeadsTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
+ get {
|
|
|
+ if ((this._adapter == null)) {
|
|
|
+ this.InitAdapter();
|
|
|
+ }
|
|
|
+ return this._adapter;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection == null)) {
|
|
|
+ this.InitConnection();
|
|
|
+ }
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ if ((this.Adapter.InsertCommand != null)) {
|
|
|
+ this.Adapter.InsertCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.DeleteCommand != null)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.UpdateCommand != null)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection = value;
|
|
|
+ }
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ if ((this.CommandCollection[i] != null)) {
|
|
|
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
+ get {
|
|
|
+ return this._transaction;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._transaction = value;
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ this.CommandCollection[i].Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.DeleteCommand != null))) {
|
|
|
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.InsertCommand != null))) {
|
|
|
+ this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.UpdateCommand != null))) {
|
|
|
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
+ get {
|
|
|
+ if ((this._commandCollection == null)) {
|
|
|
+ this.InitCommandCollection();
|
|
|
+ }
|
|
|
+ return this._commandCollection;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool ClearBeforeFill {
|
|
|
+ get {
|
|
|
+ return this._clearBeforeFill;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clearBeforeFill = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitAdapter() {
|
|
|
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
+ tableMapping.SourceTable = "Table";
|
|
|
+ tableMapping.DataSetTable = "PracticeLeads";
|
|
|
+ tableMapping.ColumnMappings.Add("PracticeLeadID", "PracticeLeadID");
|
|
|
+ tableMapping.ColumnMappings.Add("OrganizationID", "OrganizationID");
|
|
|
+ tableMapping.ColumnMappings.Add("Name", "Name");
|
|
|
+ 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].[PracticeLeads] WHERE (([PracticeLeadID] = @Original_PracticeLe" +
|
|
|
+ "adID) AND ([OrganizationID] = @Original_OrganizationID) AND ([Name] = @Original_" +
|
|
|
+ "Name))";
|
|
|
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PracticeLeadID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PracticeLeadID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrganizationID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", 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].[PracticeLeads] ([OrganizationID], [Name]) VALUES (@Organizatio" +
|
|
|
+ "nID, @Name);\r\nSELECT PracticeLeadID, OrganizationID, Name FROM PracticeLeads WHE" +
|
|
|
+ "RE (PracticeLeadID = SCOPE_IDENTITY())";
|
|
|
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrganizationID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", 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].[PracticeLeads] SET [OrganizationID] = @OrganizationID, [Name] = @Name WHERE (([PracticeLeadID] = @Original_PracticeLeadID) AND ([OrganizationID] = @Original_OrganizationID) AND ([Name] = @Original_Name));
|
|
|
+SELECT PracticeLeadID, OrganizationID, Name FROM PracticeLeads WHERE (PracticeLeadID = @PracticeLeadID)";
|
|
|
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrganizationID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NChar, 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("@Original_PracticeLeadID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PracticeLeadID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrganizationID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NChar, 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("@PracticeLeadID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "PracticeLeadID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::OrganizationsBase.Properties.Settings.Default.OrganizationsBaseConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitCommandCollection() {
|
|
|
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._commandCollection[0].Connection = this.Connection;
|
|
|
+ this._commandCollection[0].CommandText = "SELECT PracticeLeadID, OrganizationID, Name FROM dbo.PracticeLeads";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
+ public virtual int Fill(OrganizationsBaseDataSet.PracticeLeadsDataTable dataTable) {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ if ((this.ClearBeforeFill == true)) {
|
|
|
+ dataTable.Clear();
|
|
|
+ }
|
|
|
+ int returnValue = this.Adapter.Fill(dataTable);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual OrganizationsBaseDataSet.PracticeLeadsDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ OrganizationsBaseDataSet.PracticeLeadsDataTable dataTable = new OrganizationsBaseDataSet.PracticeLeadsDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OrganizationsBaseDataSet.PracticeLeadsDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OrganizationsBaseDataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "PracticeLeads");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
+ dataRow});
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
+ return this.Adapter.Update(dataRows);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
+ public virtual int Delete(int Original_PracticeLeadID, int Original_OrganizationID, string Original_Name) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_PracticeLeadID));
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_OrganizationID));
|
|
|
+ if ((Original_Name == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Name");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
|
|
|
+ }
|
|
|
+ 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", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
+ public virtual int Insert(int OrganizationID, string Name) {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(OrganizationID));
|
|
|
+ if ((Name == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Name");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
|
|
|
+ }
|
|
|
+ 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", "16.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(int OrganizationID, string Name, int Original_PracticeLeadID, int Original_OrganizationID, string Original_Name, int PracticeLeadID) {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(OrganizationID));
|
|
|
+ if ((Name == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Name");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_PracticeLeadID));
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_OrganizationID));
|
|
|
+ if ((Original_Name == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Name");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(PracticeLeadID));
|
|
|
+ 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", "16.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(int OrganizationID, string Name, int Original_PracticeLeadID, int Original_OrganizationID, string Original_Name) {
|
|
|
+ return this.Update(OrganizationID, Name, Original_PracticeLeadID, Original_OrganizationID, Original_Name, Original_PracticeLeadID);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 SpecialtiesTableAdapter : global::System.ComponentModel.Component {
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
+
|
|
|
+ private bool _clearBeforeFill;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public SpecialtiesTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
+ get {
|
|
|
+ if ((this._adapter == null)) {
|
|
|
+ this.InitAdapter();
|
|
|
+ }
|
|
|
+ return this._adapter;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection == null)) {
|
|
|
+ this.InitConnection();
|
|
|
+ }
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ if ((this.Adapter.InsertCommand != null)) {
|
|
|
+ this.Adapter.InsertCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.DeleteCommand != null)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.UpdateCommand != null)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection = value;
|
|
|
+ }
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ if ((this.CommandCollection[i] != null)) {
|
|
|
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
+ get {
|
|
|
+ return this._transaction;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._transaction = value;
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ this.CommandCollection[i].Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.DeleteCommand != null))) {
|
|
|
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.InsertCommand != null))) {
|
|
|
+ this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.UpdateCommand != null))) {
|
|
|
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
+ get {
|
|
|
+ if ((this._commandCollection == null)) {
|
|
|
+ this.InitCommandCollection();
|
|
|
+ }
|
|
|
+ return this._commandCollection;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool ClearBeforeFill {
|
|
|
+ get {
|
|
|
+ return this._clearBeforeFill;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clearBeforeFill = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitAdapter() {
|
|
|
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
+ tableMapping.SourceTable = "Table";
|
|
|
+ tableMapping.DataSetTable = "Specialties";
|
|
|
+ tableMapping.ColumnMappings.Add("SpecialtyID", "SpecialtyID");
|
|
|
+ tableMapping.ColumnMappings.Add("Title", "Title");
|
|
|
+ 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].[Specialties] WHERE (([SpecialtyID] = @Original_SpecialtyID) AN" +
|
|
|
+ "D ([Title] = @Original_Title))";
|
|
|
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SpecialtyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyID", global::System.Data.DataRowVersion.Original, false, 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.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Specialties] ([Title]) VALUES (@Title);\r\nSELECT SpecialtyID, T" +
|
|
|
+ "itle FROM Specialties WHERE (SpecialtyID = 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.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
+ this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Specialties] SET [Title] = @Title WHERE (([SpecialtyID] = @Original" +
|
|
|
+ "_SpecialtyID) AND ([Title] = @Original_Title));\r\nSELECT SpecialtyID, Title FROM " +
|
|
|
+ "Specialties WHERE (SpecialtyID = @SpecialtyID)";
|
|
|
+ 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("@Original_SpecialtyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyID", global::System.Data.DataRowVersion.Original, false, 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("@SpecialtyID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::OrganizationsBase.Properties.Settings.Default.OrganizationsBaseConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitCommandCollection() {
|
|
|
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._commandCollection[0].Connection = this.Connection;
|
|
|
+ this._commandCollection[0].CommandText = "SELECT SpecialtyID, Title FROM dbo.Specialties";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
+ public virtual int Fill(OrganizationsBaseDataSet.SpecialtiesDataTable dataTable) {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ if ((this.ClearBeforeFill == true)) {
|
|
|
+ dataTable.Clear();
|
|
|
+ }
|
|
|
+ int returnValue = this.Adapter.Fill(dataTable);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual OrganizationsBaseDataSet.SpecialtiesDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ OrganizationsBaseDataSet.SpecialtiesDataTable dataTable = new OrganizationsBaseDataSet.SpecialtiesDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OrganizationsBaseDataSet.SpecialtiesDataTable dataTable) {
|
|
|
+ return this.Adapter.Update(dataTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(OrganizationsBaseDataSet dataSet) {
|
|
|
+ return this.Adapter.Update(dataSet, "Specialties");
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
+ dataRow});
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
+ return this.Adapter.Update(dataRows);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
+ public virtual int Delete(int Original_SpecialtyID, string Original_Title) {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_SpecialtyID));
|
|
|
+ if ((Original_Title == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Title");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
|
|
|
+ }
|
|
|
+ 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", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
+ public virtual int Insert(string Title) {
|
|
|
+ if ((Title == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Title");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
|
|
|
+ }
|
|
|
+ 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", "16.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, int Original_SpecialtyID, string Original_Title, int SpecialtyID) {
|
|
|
+ if ((Title == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Title");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_SpecialtyID));
|
|
|
+ if ((Original_Title == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("Original_Title");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Title));
|
|
|
+ }
|
|
|
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(SpecialtyID));
|
|
|
+ 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", "16.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, int Original_SpecialtyID, string Original_Title) {
|
|
|
+ return this.Update(Title, Original_SpecialtyID, Original_Title, Original_SpecialtyID);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 ВыводСпециальностьОрганизацияРуководительTableAdapter : global::System.ComponentModel.Component {
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
+
|
|
|
+ private bool _clearBeforeFill;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public ВыводСпециальностьОрганизацияРуководительTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
+ get {
|
|
|
+ if ((this._adapter == null)) {
|
|
|
+ this.InitAdapter();
|
|
|
+ }
|
|
|
+ return this._adapter;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection == null)) {
|
|
|
+ this.InitConnection();
|
|
|
+ }
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ if ((this.Adapter.InsertCommand != null)) {
|
|
|
+ this.Adapter.InsertCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.DeleteCommand != null)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.UpdateCommand != null)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection = value;
|
|
|
+ }
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ if ((this.CommandCollection[i] != null)) {
|
|
|
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
+ get {
|
|
|
+ return this._transaction;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._transaction = value;
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ this.CommandCollection[i].Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.DeleteCommand != null))) {
|
|
|
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.InsertCommand != null))) {
|
|
|
+ this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.UpdateCommand != null))) {
|
|
|
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
+ get {
|
|
|
+ if ((this._commandCollection == null)) {
|
|
|
+ this.InitCommandCollection();
|
|
|
+ }
|
|
|
+ return this._commandCollection;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool ClearBeforeFill {
|
|
|
+ get {
|
|
|
+ return this._clearBeforeFill;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clearBeforeFill = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitAdapter() {
|
|
|
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
+ tableMapping.SourceTable = "Table";
|
|
|
+ tableMapping.DataSetTable = "ВыводСпециальностьОрганизацияРуководитель";
|
|
|
+ tableMapping.ColumnMappings.Add("Cпециальность", "Cпециальность");
|
|
|
+ tableMapping.ColumnMappings.Add("Организация", "Организация");
|
|
|
+ tableMapping.ColumnMappings.Add("Руководитель от организации", "Руководитель от организации");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::OrganizationsBase.Properties.Settings.Default.OrganizationsBaseConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private void InitCommandCollection() {
|
|
|
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._commandCollection[0].Connection = this.Connection;
|
|
|
+ this._commandCollection[0].CommandText = "SELECT Cпециальность, Организация, [Руководитель от организации] FROM dbo.ВыводСп" +
|
|
|
+ "ециальностьОрганизацияРуководитель";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
+ public virtual int Fill(OrganizationsBaseDataSet.ВыводСпециальностьОрганизацияРуководительDataTable dataTable) {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ if ((this.ClearBeforeFill == true)) {
|
|
|
+ dataTable.Clear();
|
|
|
+ }
|
|
|
+ int returnValue = this.Adapter.Fill(dataTable);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual OrganizationsBaseDataSet.ВыводСпециальностьОрганизацияРуководительDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ OrganizationsBaseDataSet.ВыводСпециальностьОрганизацияРуководительDataTable dataTable = new OrganizationsBaseDataSet.ВыводСпециальностьОрганизацияРуководительDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 OrganizationsTableAdapter _organizationsTableAdapter;
|
|
|
+
|
|
|
+ private PracticeLeadsTableAdapter _practiceLeadsTableAdapter;
|
|
|
+
|
|
|
+ private SpecialtiesTableAdapter _specialtiesTableAdapter;
|
|
|
+
|
|
|
+ private bool _backupDataSetBeforeUpdate;
|
|
|
+
|
|
|
+ private global::System.Data.IDbConnection _connection;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public UpdateOrderOption UpdateOrder {
|
|
|
+ get {
|
|
|
+ return this._updateOrder;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._updateOrder = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
+ "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
+ public OrganizationsTableAdapter OrganizationsTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._organizationsTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._organizationsTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
+ "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
+ public PracticeLeadsTableAdapter PracticeLeadsTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._practiceLeadsTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._practiceLeadsTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
+ "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
+ public SpecialtiesTableAdapter SpecialtiesTableAdapter {
|
|
|
+ get {
|
|
|
+ return this._specialtiesTableAdapter;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._specialtiesTableAdapter = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public bool BackupDataSetBeforeUpdate {
|
|
|
+ get {
|
|
|
+ return this._backupDataSetBeforeUpdate;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._backupDataSetBeforeUpdate = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public global::System.Data.IDbConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection != null)) {
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ if (((this._organizationsTableAdapter != null)
|
|
|
+ && (this._organizationsTableAdapter.Connection != null))) {
|
|
|
+ return this._organizationsTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._practiceLeadsTableAdapter != null)
|
|
|
+ && (this._practiceLeadsTableAdapter.Connection != null))) {
|
|
|
+ return this._practiceLeadsTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ if (((this._specialtiesTableAdapter != null)
|
|
|
+ && (this._specialtiesTableAdapter.Connection != null))) {
|
|
|
+ return this._specialtiesTableAdapter.Connection;
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int TableAdapterInstanceCount {
|
|
|
+ get {
|
|
|
+ int count = 0;
|
|
|
+ if ((this._organizationsTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._practiceLeadsTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ if ((this._specialtiesTableAdapter != null)) {
|
|
|
+ count = (count + 1);
|
|
|
+ }
|
|
|
+ return count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Update rows in top-down order.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private int UpdateUpdatedRows(OrganizationsBaseDataSet 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._specialtiesTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.Specialties.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._specialtiesTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._organizationsTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.Organizations.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._organizationsTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._practiceLeadsTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] updatedRows = dataSet.PracticeLeads.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
+ if (((updatedRows != null)
|
|
|
+ && (0 < updatedRows.Length))) {
|
|
|
+ result = (result + this._practiceLeadsTableAdapter.Update(updatedRows));
|
|
|
+ allChangedRows.AddRange(updatedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Insert rows in top-down order.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private int UpdateInsertedRows(OrganizationsBaseDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
|
+ int result = 0;
|
|
|
+ if ((this._specialtiesTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.Specialties.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._specialtiesTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._organizationsTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.Organizations.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._organizationsTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._practiceLeadsTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] addedRows = dataSet.PracticeLeads.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
+ if (((addedRows != null)
|
|
|
+ && (0 < addedRows.Length))) {
|
|
|
+ result = (result + this._practiceLeadsTableAdapter.Update(addedRows));
|
|
|
+ allAddedRows.AddRange(addedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Delete rows in bottom-up order.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private int UpdateDeletedRows(OrganizationsBaseDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
|
|
+ int result = 0;
|
|
|
+ if ((this._practiceLeadsTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.PracticeLeads.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._practiceLeadsTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._organizationsTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.Organizations.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._organizationsTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._specialtiesTableAdapter != null)) {
|
|
|
+ global::System.Data.DataRow[] deletedRows = dataSet.Specialties.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
+ if (((deletedRows != null)
|
|
|
+ && (0 < deletedRows.Length))) {
|
|
|
+ result = (result + this._specialtiesTableAdapter.Update(deletedRows));
|
|
|
+ allChangedRows.AddRange(deletedRows);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
|
+ if (((updatedRows == null)
|
|
|
+ || (updatedRows.Length < 1))) {
|
|
|
+ return updatedRows;
|
|
|
+ }
|
|
|
+ if (((allAddedRows == null)
|
|
|
+ || (allAddedRows.Count < 1))) {
|
|
|
+ return updatedRows;
|
|
|
+ }
|
|
|
+ global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
|
+ for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
|
|
|
+ global::System.Data.DataRow row = updatedRows[i];
|
|
|
+ if ((allAddedRows.Contains(row) == false)) {
|
|
|
+ realUpdatedRows.Add(row);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return realUpdatedRows.ToArray();
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Update all changes to the dataset.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public virtual int UpdateAll(OrganizationsBaseDataSet dataSet) {
|
|
|
+ if ((dataSet == null)) {
|
|
|
+ throw new global::System.ArgumentNullException("dataSet");
|
|
|
+ }
|
|
|
+ if ((dataSet.HasChanges() == false)) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ if (((this._organizationsTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._organizationsTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
|
|
|
+ "r, должны использовать одинаковую строку подключения.");
|
|
|
+ }
|
|
|
+ if (((this._practiceLeadsTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._practiceLeadsTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
|
|
|
+ "r, должны использовать одинаковую строку подключения.");
|
|
|
+ }
|
|
|
+ if (((this._specialtiesTableAdapter != null)
|
|
|
+ && (this.MatchTableAdapterConnection(this._specialtiesTableAdapter.Connection) == false))) {
|
|
|
+ throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
|
|
|
+ "r, должны использовать одинаковую строку подключения.");
|
|
|
+ }
|
|
|
+ global::System.Data.IDbConnection workConnection = this.Connection;
|
|
|
+ if ((workConnection == null)) {
|
|
|
+ throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
|
|
|
+ "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
|
|
|
+ }
|
|
|
+ bool workConnOpened = false;
|
|
|
+ if (((workConnection.State & global::System.Data.ConnectionState.Broken)
|
|
|
+ == global::System.Data.ConnectionState.Broken)) {
|
|
|
+ workConnection.Close();
|
|
|
+ }
|
|
|
+ if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
|
|
|
+ workConnection.Open();
|
|
|
+ workConnOpened = true;
|
|
|
+ }
|
|
|
+ global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
|
|
|
+ if ((workTransaction == null)) {
|
|
|
+ throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
|
|
|
+ "и или текущее состояние не позволяет начать транзакцию.");
|
|
|
+ }
|
|
|
+ global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
|
+ global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
|
+ global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
|
|
|
+ global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
|
|
|
+ int result = 0;
|
|
|
+ global::System.Data.DataSet backupDataSet = null;
|
|
|
+ if (this.BackupDataSetBeforeUpdate) {
|
|
|
+ backupDataSet = new global::System.Data.DataSet();
|
|
|
+ backupDataSet.Merge(dataSet);
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ // ---- Prepare for update -----------
|
|
|
+ //
|
|
|
+ if ((this._organizationsTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._organizationsTableAdapter, this._organizationsTableAdapter.Connection);
|
|
|
+ this._organizationsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._organizationsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._organizationsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._organizationsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._organizationsTableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._practiceLeadsTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._practiceLeadsTableAdapter, this._practiceLeadsTableAdapter.Connection);
|
|
|
+ this._practiceLeadsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._practiceLeadsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._practiceLeadsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._practiceLeadsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._practiceLeadsTableAdapter.Adapter);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this._specialtiesTableAdapter != null)) {
|
|
|
+ revertConnections.Add(this._specialtiesTableAdapter, this._specialtiesTableAdapter.Connection);
|
|
|
+ this._specialtiesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
+ this._specialtiesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
+ if (this._specialtiesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
+ this._specialtiesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.Add(this._specialtiesTableAdapter.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._organizationsTableAdapter != null)) {
|
|
|
+ this._organizationsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._organizationsTableAdapter]));
|
|
|
+ this._organizationsTableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._practiceLeadsTableAdapter != null)) {
|
|
|
+ this._practiceLeadsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._practiceLeadsTableAdapter]));
|
|
|
+ this._practiceLeadsTableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((this._specialtiesTableAdapter != null)) {
|
|
|
+ this._specialtiesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._specialtiesTableAdapter]));
|
|
|
+ this._specialtiesTableAdapter.Transaction = null;
|
|
|
+ }
|
|
|
+ if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
|
|
|
+ global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
|
|
|
+ adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
|
|
|
+ for (int i = 0; (i < adapters.Length); i = (i + 1)) {
|
|
|
+ global::System.Data.Common.DataAdapter adapter = adapters[i];
|
|
|
+ adapter.AcceptChangesDuringUpdate = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
|
|
|
+ global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
|
|
|
+ if ((this._connection != null)) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (((this.Connection == null)
|
|
|
+ || (inputConnection == null))) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Update Order Option
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public enum UpdateOrderOption {
|
|
|
+
|
|
|
+ InsertUpdateDelete = 0,
|
|
|
+
|
|
|
+ UpdateInsertDelete = 1,
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Used to sort self-referenced table's rows
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataRelation _relation;
|
|
|
+
|
|
|
+ private int _childFirst;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
|
|
|
+ this._relation = relation;
|
|
|
+ if (childFirst) {
|
|
|
+ this._childFirst = -1;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this._childFirst = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
|
|
|
+ global::System.Diagnostics.Debug.Assert((row != null));
|
|
|
+ global::System.Data.DataRow root = row;
|
|
|
+ distance = 0;
|
|
|
+
|
|
|
+ global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
|
|
|
+ traversedRows[row] = row;
|
|
|
+
|
|
|
+ global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
|
+ for (
|
|
|
+ ; ((parent != null)
|
|
|
+ && (traversedRows.ContainsKey(parent) == false));
|
|
|
+ ) {
|
|
|
+ distance = (distance + 1);
|
|
|
+ root = parent;
|
|
|
+ traversedRows[parent] = parent;
|
|
|
+ parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((distance == 0)) {
|
|
|
+ traversedRows.Clear();
|
|
|
+ traversedRows[row] = row;
|
|
|
+ parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
|
|
+ for (
|
|
|
+ ; ((parent != null)
|
|
|
+ && (traversedRows.ContainsKey(parent) == false));
|
|
|
+ ) {
|
|
|
+ distance = (distance + 1);
|
|
|
+ root = parent;
|
|
|
+ traversedRows[parent] = parent;
|
|
|
+ parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return root;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
|
+ public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
|
|
|
+ if (object.ReferenceEquals(row1, row2)) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ if ((row1 == null)) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+ if ((row2 == null)) {
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ int distance1 = 0;
|
|
|
+ global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
|
|
|
+
|
|
|
+ int distance2 = 0;
|
|
|
+ global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
|
|
|
+
|
|
|
+ if (object.ReferenceEquals(root1, root2)) {
|
|
|
+ return (this._childFirst * distance1.CompareTo(distance2));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ global::System.Diagnostics.Debug.Assert(((root1.Table != null)
|
|
|
+ && (root2.Table != null)));
|
|
|
+ if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+#pragma warning restore 1591
|