|
@@ -48,6 +48,8 @@ namespace СУБД_Альфапол {
|
|
|
|
|
|
private TypeForFilterDataTable tableTypeForFilter;
|
|
|
|
|
|
+ private HistorySaleDataTable tableHistorySale;
|
|
|
+
|
|
|
private global::System.Data.DataRelation relationFK_Partner_City;
|
|
|
|
|
|
private global::System.Data.DataRelation relationFK_Partner_IndexPartner;
|
|
@@ -64,6 +66,8 @@ namespace СУБД_Альфапол {
|
|
|
|
|
|
private global::System.Data.DataRelation relationFK_Products_TypeProduct;
|
|
|
|
|
|
+ private global::System.Data.DataRelation relationFK_ProductPartner_Partner1;
|
|
|
+
|
|
|
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
@@ -128,6 +132,9 @@ namespace СУБД_Альфапол {
|
|
|
if ((ds.Tables["TypeForFilter"] != null)) {
|
|
|
base.Tables.Add(new TypeForFilterDataTable(ds.Tables["TypeForFilter"]));
|
|
|
}
|
|
|
+ if ((ds.Tables["HistorySale"] != null)) {
|
|
|
+ base.Tables.Add(new HistorySaleDataTable(ds.Tables["HistorySale"]));
|
|
|
+ }
|
|
|
this.DataSetName = ds.DataSetName;
|
|
|
this.Prefix = ds.Prefix;
|
|
|
this.Namespace = ds.Namespace;
|
|
@@ -266,6 +273,16 @@ namespace СУБД_Альфапол {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
+ public HistorySaleDataTable HistorySale {
|
|
|
+ get {
|
|
|
+ return this.tableHistorySale;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
[global::System.ComponentModel.BrowsableAttribute(true)]
|
|
@@ -369,6 +386,9 @@ namespace СУБД_Альфапол {
|
|
|
if ((ds.Tables["TypeForFilter"] != null)) {
|
|
|
base.Tables.Add(new TypeForFilterDataTable(ds.Tables["TypeForFilter"]));
|
|
|
}
|
|
|
+ if ((ds.Tables["HistorySale"] != null)) {
|
|
|
+ base.Tables.Add(new HistorySaleDataTable(ds.Tables["HistorySale"]));
|
|
|
+ }
|
|
|
this.DataSetName = ds.DataSetName;
|
|
|
this.Prefix = ds.Prefix;
|
|
|
this.Namespace = ds.Namespace;
|
|
@@ -474,6 +494,12 @@ namespace СУБД_Альфапол {
|
|
|
this.tableTypeForFilter.InitVars();
|
|
|
}
|
|
|
}
|
|
|
+ this.tableHistorySale = ((HistorySaleDataTable)(base.Tables["HistorySale"]));
|
|
|
+ if ((initTable == true)) {
|
|
|
+ if ((this.tableHistorySale != null)) {
|
|
|
+ this.tableHistorySale.InitVars();
|
|
|
+ }
|
|
|
+ }
|
|
|
this.relationFK_Partner_City = this.Relations["FK_Partner_City"];
|
|
|
this.relationFK_Partner_IndexPartner = this.Relations["FK_Partner_IndexPartner"];
|
|
|
this.relationFK_Partner_Region = this.Relations["FK_Partner_Region"];
|
|
@@ -482,6 +508,7 @@ namespace СУБД_Альфапол {
|
|
|
this.relationFK_ProductPartner_Partner = this.Relations["FK_ProductPartner_Partner"];
|
|
|
this.relationFK_ProductPartner_Products = this.Relations["FK_ProductPartner_Products"];
|
|
|
this.relationFK_Products_TypeProduct = this.Relations["FK_Products_TypeProduct"];
|
|
|
+ this.relationFK_ProductPartner_Partner1 = this.Relations["FK_ProductPartner_Partner1"];
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
@@ -516,6 +543,8 @@ namespace СУБД_Альфапол {
|
|
|
base.Tables.Add(this.tableTypeProduct);
|
|
|
this.tableTypeForFilter = new TypeForFilterDataTable();
|
|
|
base.Tables.Add(this.tableTypeForFilter);
|
|
|
+ this.tableHistorySale = new HistorySaleDataTable();
|
|
|
+ base.Tables.Add(this.tableHistorySale);
|
|
|
this.relationFK_Partner_City = new global::System.Data.DataRelation("FK_Partner_City", new global::System.Data.DataColumn[] {
|
|
|
this.tableCity.idCityColumn}, new global::System.Data.DataColumn[] {
|
|
|
this.tablePartner.idCityColumn}, false);
|
|
@@ -548,6 +577,10 @@ namespace СУБД_Альфапол {
|
|
|
this.tableTypeProduct.idTypeProductColumn}, new global::System.Data.DataColumn[] {
|
|
|
this.tableProducts.idTypeProductColumn}, false);
|
|
|
this.Relations.Add(this.relationFK_Products_TypeProduct);
|
|
|
+ this.relationFK_ProductPartner_Partner1 = new global::System.Data.DataRelation("FK_ProductPartner_Partner1", new global::System.Data.DataColumn[] {
|
|
|
+ this.tablePartner.idPartnerColumn}, new global::System.Data.DataColumn[] {
|
|
|
+ this.tableHistorySale.idPartnerColumn}, false);
|
|
|
+ this.Relations.Add(this.relationFK_ProductPartner_Partner1);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
@@ -622,6 +655,12 @@ namespace СУБД_Альфапол {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private bool ShouldSerializeHistorySale() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
|
@@ -713,6 +752,9 @@ namespace СУБД_Альфапол {
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
public delegate void TypeForFilterRowChangeEventHandler(object sender, TypeForFilterRowChangeEvent e);
|
|
|
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public delegate void HistorySaleRowChangeEventHandler(object sender, HistorySaleRowChangeEvent e);
|
|
|
+
|
|
|
/// <summary>
|
|
|
///Represents the strongly named DataTable class.
|
|
|
///</summary>
|
|
@@ -4398,6 +4440,299 @@ namespace СУБД_Альфапол {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ ///Represents the strongly named DataTable class.
|
|
|
+ ///</summary>
|
|
|
+ [global::System.Serializable()]
|
|
|
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
+ public partial class HistorySaleDataTable : global::System.Data.TypedTableBase<HistorySaleRow> {
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnidPartner;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnNameProduct;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnCountProduct;
|
|
|
+
|
|
|
+ private global::System.Data.DataColumn columnDateSale;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public HistorySaleDataTable() {
|
|
|
+ this.TableName = "HistorySale";
|
|
|
+ this.BeginInit();
|
|
|
+ this.InitClass();
|
|
|
+ this.EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal HistorySaleDataTable(global::System.Data.DataTable table) {
|
|
|
+ this.TableName = table.TableName;
|
|
|
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
+ this.CaseSensitive = table.CaseSensitive;
|
|
|
+ }
|
|
|
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
+ this.Locale = table.Locale;
|
|
|
+ }
|
|
|
+ if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
+ this.Namespace = table.Namespace;
|
|
|
+ }
|
|
|
+ this.Prefix = table.Prefix;
|
|
|
+ this.MinimumCapacity = table.MinimumCapacity;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected HistorySaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
+ base(info, context) {
|
|
|
+ this.InitVars();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn idPartnerColumn {
|
|
|
+ get {
|
|
|
+ return this.columnidPartner;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn NameProductColumn {
|
|
|
+ get {
|
|
|
+ return this.columnNameProduct;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn CountProductColumn {
|
|
|
+ get {
|
|
|
+ return this.columnCountProduct;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataColumn DateSaleColumn {
|
|
|
+ get {
|
|
|
+ return this.columnDateSale;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Browsable(false)]
|
|
|
+ public int Count {
|
|
|
+ get {
|
|
|
+ return this.Rows.Count;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public HistorySaleRow this[int index] {
|
|
|
+ get {
|
|
|
+ return ((HistorySaleRow)(this.Rows[index]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event HistorySaleRowChangeEventHandler HistorySaleRowChanging;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event HistorySaleRowChangeEventHandler HistorySaleRowChanged;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event HistorySaleRowChangeEventHandler HistorySaleRowDeleting;
|
|
|
+
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public event HistorySaleRowChangeEventHandler HistorySaleRowDeleted;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void AddHistorySaleRow(HistorySaleRow row) {
|
|
|
+ this.Rows.Add(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public HistorySaleRow AddHistorySaleRow(PartnerRow parentPartnerRowByFK_ProductPartner_Partner1, string NameProduct, int CountProduct, System.DateTime DateSale) {
|
|
|
+ HistorySaleRow rowHistorySaleRow = ((HistorySaleRow)(this.NewRow()));
|
|
|
+ object[] columnValuesArray = new object[] {
|
|
|
+ null,
|
|
|
+ NameProduct,
|
|
|
+ CountProduct,
|
|
|
+ DateSale};
|
|
|
+ if ((parentPartnerRowByFK_ProductPartner_Partner1 != null)) {
|
|
|
+ columnValuesArray[0] = parentPartnerRowByFK_ProductPartner_Partner1[0];
|
|
|
+ }
|
|
|
+ rowHistorySaleRow.ItemArray = columnValuesArray;
|
|
|
+ this.Rows.Add(rowHistorySaleRow);
|
|
|
+ return rowHistorySaleRow;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public override global::System.Data.DataTable Clone() {
|
|
|
+ HistorySaleDataTable cln = ((HistorySaleDataTable)(base.Clone()));
|
|
|
+ cln.InitVars();
|
|
|
+ return cln;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataTable CreateInstance() {
|
|
|
+ return new HistorySaleDataTable();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal void InitVars() {
|
|
|
+ this.columnidPartner = base.Columns["idPartner"];
|
|
|
+ this.columnNameProduct = base.Columns["NameProduct"];
|
|
|
+ this.columnCountProduct = base.Columns["CountProduct"];
|
|
|
+ this.columnDateSale = base.Columns["DateSale"];
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitClass() {
|
|
|
+ this.columnidPartner = new global::System.Data.DataColumn("idPartner", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnidPartner);
|
|
|
+ this.columnNameProduct = new global::System.Data.DataColumn("NameProduct", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnNameProduct);
|
|
|
+ this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnCountProduct);
|
|
|
+ this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
|
+ base.Columns.Add(this.columnDateSale);
|
|
|
+ this.columnNameProduct.MaxLength = 2147483647;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public HistorySaleRow NewHistorySaleRow() {
|
|
|
+ return ((HistorySaleRow)(this.NewRow()));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
+ return new HistorySaleRow(builder);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override global::System.Type GetRowType() {
|
|
|
+ return typeof(HistorySaleRow);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanged(e);
|
|
|
+ if ((this.HistorySaleRowChanged != null)) {
|
|
|
+ this.HistorySaleRowChanged(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowChanging(e);
|
|
|
+ if ((this.HistorySaleRowChanging != null)) {
|
|
|
+ this.HistorySaleRowChanging(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleted(e);
|
|
|
+ if ((this.HistorySaleRowDeleted != null)) {
|
|
|
+ this.HistorySaleRowDeleted(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
+ base.OnRowDeleting(e);
|
|
|
+ if ((this.HistorySaleRowDeleting != null)) {
|
|
|
+ this.HistorySaleRowDeleting(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void RemoveHistorySaleRow(HistorySaleRow row) {
|
|
|
+ this.Rows.Remove(row);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
+ dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
|
|
|
+ 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 = "HistorySaleDataTable";
|
|
|
+ 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>
|
|
@@ -5204,6 +5539,17 @@ namespace СУБД_Альфапол {
|
|
|
return ((ProductPartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Partner"])));
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public HistorySaleRow[] GetHistorySaleRows() {
|
|
|
+ if ((this.Table.ChildRelations["FK_ProductPartner_Partner1"] == null)) {
|
|
|
+ return new HistorySaleRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((HistorySaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Partner1"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -5833,109 +6179,247 @@ namespace СУБД_Альфапол {
|
|
|
public string TypeProduct {
|
|
|
get {
|
|
|
try {
|
|
|
- return ((string)(this[this.tableTypeProduct.TypeProductColumn]));
|
|
|
+ return ((string)(this[this.tableTypeProduct.TypeProductColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'TypeProduct\' in table \'TypeProduct\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableTypeProduct.TypeProductColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public double Coefficient {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((double)(this[this.tableTypeProduct.CoefficientColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Coefficient\' in table \'TypeProduct\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableTypeProduct.CoefficientColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsTypeProductNull() {
|
|
|
+ return this.IsNull(this.tableTypeProduct.TypeProductColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetTypeProductNull() {
|
|
|
+ this[this.tableTypeProduct.TypeProductColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsCoefficientNull() {
|
|
|
+ return this.IsNull(this.tableTypeProduct.CoefficientColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetCoefficientNull() {
|
|
|
+ this[this.tableTypeProduct.CoefficientColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public ProductsRow[] GetProductsRows() {
|
|
|
+ if ((this.Table.ChildRelations["FK_Products_TypeProduct"] == null)) {
|
|
|
+ return new ProductsRow[0];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ((ProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Products_TypeProduct"])));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class TypeForFilterRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private TypeForFilterDataTable tableTypeForFilter;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal TypeForFilterRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableTypeForFilter = ((TypeForFilterDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string Type {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableTypeForFilter.TypeColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'Type\' in table \'TypeForFilter\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableTypeForFilter.TypeColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool IsTypeNull() {
|
|
|
+ return this.IsNull(this.tableTypeForFilter.TypeColumn);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public void SetTypeNull() {
|
|
|
+ this[this.tableTypeForFilter.TypeColumn] = global::System.Convert.DBNull;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Represents strongly named DataRow class.
|
|
|
+ ///</summary>
|
|
|
+ public partial class HistorySaleRow : global::System.Data.DataRow {
|
|
|
+
|
|
|
+ private HistorySaleDataTable tableHistorySale;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal HistorySaleRow(global::System.Data.DataRowBuilder rb) :
|
|
|
+ base(rb) {
|
|
|
+ this.tableHistorySale = ((HistorySaleDataTable)(this.Table));
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int idPartner {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableHistorySale.idPartnerColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'idPartner\' in table \'HistorySale\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableHistorySale.idPartnerColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public string NameProduct {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((string)(this[this.tableHistorySale.NameProductColumn]));
|
|
|
+ }
|
|
|
+ catch (global::System.InvalidCastException e) {
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'NameProduct\' in table \'HistorySale\' is DBNull.", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this[this.tableHistorySale.NameProductColumn] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public int CountProduct {
|
|
|
+ get {
|
|
|
+ try {
|
|
|
+ return ((int)(this[this.tableHistorySale.CountProductColumn]));
|
|
|
}
|
|
|
catch (global::System.InvalidCastException e) {
|
|
|
- throw new global::System.Data.StrongTypingException("The value for column \'TypeProduct\' in table \'TypeProduct\' is DBNull.", e);
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'HistorySale\' is DBNull.", e);
|
|
|
}
|
|
|
}
|
|
|
set {
|
|
|
- this[this.tableTypeProduct.TypeProductColumn] = value;
|
|
|
+ this[this.tableHistorySale.CountProductColumn] = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public double Coefficient {
|
|
|
+ public System.DateTime DateSale {
|
|
|
get {
|
|
|
try {
|
|
|
- return ((double)(this[this.tableTypeProduct.CoefficientColumn]));
|
|
|
+ return ((global::System.DateTime)(this[this.tableHistorySale.DateSaleColumn]));
|
|
|
}
|
|
|
catch (global::System.InvalidCastException e) {
|
|
|
- throw new global::System.Data.StrongTypingException("The value for column \'Coefficient\' in table \'TypeProduct\' is DBNull.", e);
|
|
|
+ throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'HistorySale\' is DBNull.", e);
|
|
|
}
|
|
|
}
|
|
|
set {
|
|
|
- this[this.tableTypeProduct.CoefficientColumn] = value;
|
|
|
+ this[this.tableHistorySale.DateSaleColumn] = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool IsTypeProductNull() {
|
|
|
- return this.IsNull(this.tableTypeProduct.TypeProductColumn);
|
|
|
+ public PartnerRow PartnerRow {
|
|
|
+ get {
|
|
|
+ return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPartner_Partner1"])));
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPartner_Partner1"]);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void SetTypeProductNull() {
|
|
|
- this[this.tableTypeProduct.TypeProductColumn] = global::System.Convert.DBNull;
|
|
|
+ public bool IsidPartnerNull() {
|
|
|
+ return this.IsNull(this.tableHistorySale.idPartnerColumn);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool IsCoefficientNull() {
|
|
|
- return this.IsNull(this.tableTypeProduct.CoefficientColumn);
|
|
|
+ public void SetidPartnerNull() {
|
|
|
+ this[this.tableHistorySale.idPartnerColumn] = global::System.Convert.DBNull;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void SetCoefficientNull() {
|
|
|
- this[this.tableTypeProduct.CoefficientColumn] = global::System.Convert.DBNull;
|
|
|
+ public bool IsNameProductNull() {
|
|
|
+ return this.IsNull(this.tableHistorySale.NameProductColumn);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public ProductsRow[] GetProductsRows() {
|
|
|
- if ((this.Table.ChildRelations["FK_Products_TypeProduct"] == null)) {
|
|
|
- return new ProductsRow[0];
|
|
|
- }
|
|
|
- else {
|
|
|
- return ((ProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Products_TypeProduct"])));
|
|
|
- }
|
|
|
+ public void SetNameProductNull() {
|
|
|
+ this[this.tableHistorySale.NameProductColumn] = global::System.Convert.DBNull;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents strongly named DataRow class.
|
|
|
- ///</summary>
|
|
|
- public partial class TypeForFilterRow : global::System.Data.DataRow {
|
|
|
-
|
|
|
- private TypeForFilterDataTable tableTypeForFilter;
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal TypeForFilterRow(global::System.Data.DataRowBuilder rb) :
|
|
|
- base(rb) {
|
|
|
- this.tableTypeForFilter = ((TypeForFilterDataTable)(this.Table));
|
|
|
+ public bool IsCountProductNull() {
|
|
|
+ return this.IsNull(this.tableHistorySale.CountProductColumn);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Type {
|
|
|
- get {
|
|
|
- try {
|
|
|
- return ((string)(this[this.tableTypeForFilter.TypeColumn]));
|
|
|
- }
|
|
|
- catch (global::System.InvalidCastException e) {
|
|
|
- throw new global::System.Data.StrongTypingException("The value for column \'Type\' in table \'TypeForFilter\' is DBNull.", e);
|
|
|
- }
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableTypeForFilter.TypeColumn] = value;
|
|
|
- }
|
|
|
+ public void SetCountProductNull() {
|
|
|
+ this[this.tableHistorySale.CountProductColumn] = global::System.Convert.DBNull;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool IsTypeNull() {
|
|
|
- return this.IsNull(this.tableTypeForFilter.TypeColumn);
|
|
|
+ public bool IsDateSaleNull() {
|
|
|
+ return this.IsNull(this.tableHistorySale.DateSaleColumn);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void SetTypeNull() {
|
|
|
- this[this.tableTypeForFilter.TypeColumn] = global::System.Convert.DBNull;
|
|
|
+ public void SetDateSaleNull() {
|
|
|
+ this[this.tableHistorySale.DateSaleColumn] = global::System.Convert.DBNull;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -6346,6 +6830,40 @@ namespace СУБД_Альфапол {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///Row event argument class
|
|
|
+ ///</summary>
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public class HistorySaleRowChangeEvent : global::System.EventArgs {
|
|
|
+
|
|
|
+ private HistorySaleRow eventRow;
|
|
|
+
|
|
|
+ private global::System.Data.DataRowAction eventAction;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public HistorySaleRowChangeEvent(HistorySaleRow row, global::System.Data.DataRowAction action) {
|
|
|
+ this.eventRow = row;
|
|
|
+ this.eventAction = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public HistorySaleRow Row {
|
|
|
+ get {
|
|
|
+ return this.eventRow;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public global::System.Data.DataRowAction Action {
|
|
|
+ get {
|
|
|
+ return this.eventAction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
namespace СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters {
|
|
@@ -11045,6 +11563,179 @@ SELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProduct WHERE (idTypePro
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <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 HistorySaleTableAdapter : global::System.ComponentModel.Component {
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
+
|
|
|
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
+
|
|
|
+ private bool _clearBeforeFill;
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public HistorySaleTableAdapter() {
|
|
|
+ this.ClearBeforeFill = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
+ get {
|
|
|
+ if ((this._adapter == null)) {
|
|
|
+ this.InitAdapter();
|
|
|
+ }
|
|
|
+ return this._adapter;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
+ get {
|
|
|
+ if ((this._connection == null)) {
|
|
|
+ this.InitConnection();
|
|
|
+ }
|
|
|
+ return this._connection;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._connection = value;
|
|
|
+ if ((this.Adapter.InsertCommand != null)) {
|
|
|
+ this.Adapter.InsertCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.DeleteCommand != null)) {
|
|
|
+ this.Adapter.DeleteCommand.Connection = value;
|
|
|
+ }
|
|
|
+ if ((this.Adapter.UpdateCommand != null)) {
|
|
|
+ this.Adapter.UpdateCommand.Connection = value;
|
|
|
+ }
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ if ((this.CommandCollection[i] != null)) {
|
|
|
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
+ get {
|
|
|
+ return this._transaction;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._transaction = value;
|
|
|
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
+ this.CommandCollection[i].Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.DeleteCommand != null))) {
|
|
|
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.InsertCommand != null))) {
|
|
|
+ this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ if (((this.Adapter != null)
|
|
|
+ && (this.Adapter.UpdateCommand != null))) {
|
|
|
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
+ get {
|
|
|
+ if ((this._commandCollection == null)) {
|
|
|
+ this.InitCommandCollection();
|
|
|
+ }
|
|
|
+ return this._commandCollection;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ public bool ClearBeforeFill {
|
|
|
+ get {
|
|
|
+ return this._clearBeforeFill;
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ this._clearBeforeFill = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitAdapter() {
|
|
|
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
+ tableMapping.SourceTable = "Table";
|
|
|
+ tableMapping.DataSetTable = "HistorySale";
|
|
|
+ tableMapping.ColumnMappings.Add("idPartner", "idPartner");
|
|
|
+ tableMapping.ColumnMappings.Add("NameProduct", "NameProduct");
|
|
|
+ tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
|
|
|
+ tableMapping.ColumnMappings.Add("DateSale", "DateSale");
|
|
|
+ this._adapter.TableMappings.Add(tableMapping);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitConnection() {
|
|
|
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
+ this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ private void InitCommandCollection() {
|
|
|
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
+ this._commandCollection[0].Connection = this.Connection;
|
|
|
+ this._commandCollection[0].CommandText = "SELECT ProductPartner.idPartner, Products.NameProduct, ProductPartner.Coun" +
|
|
|
+ "tProduct, ProductPartner.DateSale\r\nFROM ProductPartner INNER JOIN\r\n " +
|
|
|
+ " Products ON ProductPartner.idProduct = Products.idProduct" +
|
|
|
+ "";
|
|
|
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
+ public virtual int Fill(dbAlphapolAGDataSet.HistorySaleDataTable dataTable) {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ if ((this.ClearBeforeFill == true)) {
|
|
|
+ dataTable.Clear();
|
|
|
+ }
|
|
|
+ int returnValue = this.Adapter.Fill(dataTable);
|
|
|
+ return returnValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
+ public virtual dbAlphapolAGDataSet.HistorySaleDataTable GetData() {
|
|
|
+ this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
+ dbAlphapolAGDataSet.HistorySaleDataTable dataTable = new dbAlphapolAGDataSet.HistorySaleDataTable();
|
|
|
+ this.Adapter.Fill(dataTable);
|
|
|
+ return dataTable;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
|
|
///</summary>
|