123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835 |
- using System;
- using System.CodeDom.Compiler;
- using System.Collections;
- using System.ComponentModel;
- using System.ComponentModel.Design;
- using System.Data;
- using System.Diagnostics;
- using System.IO;
- using System.Runtime.Serialization;
- using System.Xml;
- using System.Xml.Schema;
- using System.Xml.Serialization;
- namespace SunRoxm.BizPeri.ReportDataSet.ReportDataSet
- {
- [Serializable]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [HelpKeyword("vs.data.DataSet")]
- [DesignerCategory("code")]
- [ToolboxItem(true)]
- [XmlRoot("dsFrmCustomerRegInfoSearch")]
- [XmlSchemaProvider("GetTypedDataSetSchema")]
- public class dsFrmCustomerRegInfoSearch : DataSet
- {
- public delegate void TotalRowChangeEventHandler(object sender, TotalRowChangeEvent e);
- [Serializable]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [XmlSchemaProvider("GetTypedTableSchema")]
- public class TotalDataTable : DataTable, IEnumerable
- {
- private DataColumn columnNo_CustomerReqProduct;
- private DataColumn columnName_CustomerReqProduct;
- private DataColumn columnQuantity_CustomerReqProduct;
- private DataColumn columnPrice_CustomerReqProduct;
- private DataColumn columnUnit_CustomerReqProduct;
- private DataColumn columnShortName_Customer;
- private DataColumn columnNo_CustomerReqInfo;
- private DataColumn columnCreateDate_CustomerReqInfo;
- private DataColumn columnComment_CustomerReqInfo;
- [DebuggerNonUserCode]
- public DataColumn No_CustomerReqProductColumn => columnNo_CustomerReqProduct;
- [DebuggerNonUserCode]
- public DataColumn Name_CustomerReqProductColumn => columnName_CustomerReqProduct;
- [DebuggerNonUserCode]
- public DataColumn Quantity_CustomerReqProductColumn => columnQuantity_CustomerReqProduct;
- [DebuggerNonUserCode]
- public DataColumn Price_CustomerReqProductColumn => columnPrice_CustomerReqProduct;
- [DebuggerNonUserCode]
- public DataColumn Unit_CustomerReqProductColumn => columnUnit_CustomerReqProduct;
- [DebuggerNonUserCode]
- public DataColumn ShortName_CustomerColumn => columnShortName_Customer;
- [DebuggerNonUserCode]
- public DataColumn No_CustomerReqInfoColumn => columnNo_CustomerReqInfo;
- [DebuggerNonUserCode]
- public DataColumn CreateDate_CustomerReqInfoColumn => columnCreateDate_CustomerReqInfo;
- [DebuggerNonUserCode]
- public DataColumn Comment_CustomerReqInfoColumn => columnComment_CustomerReqInfo;
- [DebuggerNonUserCode]
- [Browsable(false)]
- public int Count => base.Rows.Count;
- [DebuggerNonUserCode]
- public TotalRow this[int index] => (TotalRow)base.Rows[index];
- public event TotalRowChangeEventHandler TotalRowChanging;
- public event TotalRowChangeEventHandler TotalRowChanged;
- public event TotalRowChangeEventHandler TotalRowDeleting;
- public event TotalRowChangeEventHandler TotalRowDeleted;
- [DebuggerNonUserCode]
- public TotalDataTable()
- {
- base.TableName = "Total";
- BeginInit();
- InitClass();
- EndInit();
- }
- [DebuggerNonUserCode]
- internal TotalDataTable(DataTable table)
- {
- base.TableName = table.TableName;
- if (table.CaseSensitive != table.DataSet.CaseSensitive)
- {
- base.CaseSensitive = table.CaseSensitive;
- }
- if (table.Locale.ToString() != table.DataSet.Locale.ToString())
- {
- base.Locale = table.Locale;
- }
- if (table.Namespace != table.DataSet.Namespace)
- {
- base.Namespace = table.Namespace;
- }
- base.Prefix = table.Prefix;
- base.MinimumCapacity = table.MinimumCapacity;
- }
- [DebuggerNonUserCode]
- protected TotalDataTable(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- InitVars();
- }
- [DebuggerNonUserCode]
- public void AddTotalRow(TotalRow row)
- {
- base.Rows.Add(row);
- }
- [DebuggerNonUserCode]
- public TotalRow AddTotalRow(string No_CustomerReqProduct, string Name_CustomerReqProduct, decimal Quantity_CustomerReqProduct, decimal Price_CustomerReqProduct, string Unit_CustomerReqProduct, string ShortName_Customer, string No_CustomerReqInfo, DateTime CreateDate_CustomerReqInfo, string Comment_CustomerReqInfo)
- {
- TotalRow totalRow = (TotalRow)NewRow();
- totalRow.ItemArray = new object[9]
- {
- No_CustomerReqProduct,
- Name_CustomerReqProduct,
- Quantity_CustomerReqProduct,
- Price_CustomerReqProduct,
- Unit_CustomerReqProduct,
- ShortName_Customer,
- No_CustomerReqInfo,
- CreateDate_CustomerReqInfo,
- Comment_CustomerReqInfo
- };
- base.Rows.Add(totalRow);
- return totalRow;
- }
- [DebuggerNonUserCode]
- public virtual IEnumerator GetEnumerator()
- {
- return base.Rows.GetEnumerator();
- }
- [DebuggerNonUserCode]
- public override DataTable Clone()
- {
- TotalDataTable totalDataTable = (TotalDataTable)base.Clone();
- totalDataTable.InitVars();
- return totalDataTable;
- }
- [DebuggerNonUserCode]
- protected override DataTable CreateInstance()
- {
- return new TotalDataTable();
- }
- [DebuggerNonUserCode]
- internal void InitVars()
- {
- columnNo_CustomerReqProduct = base.Columns["No_CustomerReqProduct"];
- columnName_CustomerReqProduct = base.Columns["Name_CustomerReqProduct"];
- columnQuantity_CustomerReqProduct = base.Columns["Quantity_CustomerReqProduct"];
- columnPrice_CustomerReqProduct = base.Columns["Price_CustomerReqProduct"];
- columnUnit_CustomerReqProduct = base.Columns["Unit_CustomerReqProduct"];
- columnShortName_Customer = base.Columns["ShortName_Customer"];
- columnNo_CustomerReqInfo = base.Columns["No_CustomerReqInfo"];
- columnCreateDate_CustomerReqInfo = base.Columns["CreateDate_CustomerReqInfo"];
- columnComment_CustomerReqInfo = base.Columns["Comment_CustomerReqInfo"];
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- columnNo_CustomerReqProduct = new DataColumn("No_CustomerReqProduct", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnNo_CustomerReqProduct);
- columnName_CustomerReqProduct = new DataColumn("Name_CustomerReqProduct", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnName_CustomerReqProduct);
- columnQuantity_CustomerReqProduct = new DataColumn("Quantity_CustomerReqProduct", typeof(decimal), null, MappingType.Element);
- base.Columns.Add(columnQuantity_CustomerReqProduct);
- columnPrice_CustomerReqProduct = new DataColumn("Price_CustomerReqProduct", typeof(decimal), null, MappingType.Element);
- base.Columns.Add(columnPrice_CustomerReqProduct);
- columnUnit_CustomerReqProduct = new DataColumn("Unit_CustomerReqProduct", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnUnit_CustomerReqProduct);
- columnShortName_Customer = new DataColumn("ShortName_Customer", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnShortName_Customer);
- columnNo_CustomerReqInfo = new DataColumn("No_CustomerReqInfo", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnNo_CustomerReqInfo);
- columnCreateDate_CustomerReqInfo = new DataColumn("CreateDate_CustomerReqInfo", typeof(DateTime), null, MappingType.Element);
- base.Columns.Add(columnCreateDate_CustomerReqInfo);
- columnComment_CustomerReqInfo = new DataColumn("Comment_CustomerReqInfo", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnComment_CustomerReqInfo);
- }
- [DebuggerNonUserCode]
- public TotalRow NewTotalRow()
- {
- return (TotalRow)NewRow();
- }
- [DebuggerNonUserCode]
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
- {
- return new TotalRow(builder);
- }
- [DebuggerNonUserCode]
- protected override Type GetRowType()
- {
- return typeof(TotalRow);
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanged(DataRowChangeEventArgs e)
- {
- base.OnRowChanged(e);
- if (this.TotalRowChanged != null)
- {
- this.TotalRowChanged(this, new TotalRowChangeEvent((TotalRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanging(DataRowChangeEventArgs e)
- {
- base.OnRowChanging(e);
- if (this.TotalRowChanging != null)
- {
- this.TotalRowChanging(this, new TotalRowChangeEvent((TotalRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleted(DataRowChangeEventArgs e)
- {
- base.OnRowDeleted(e);
- if (this.TotalRowDeleted != null)
- {
- this.TotalRowDeleted(this, new TotalRowChangeEvent((TotalRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleting(DataRowChangeEventArgs e)
- {
- base.OnRowDeleting(e);
- if (this.TotalRowDeleting != null)
- {
- this.TotalRowDeleting(this, new TotalRowChangeEvent((TotalRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- public void RemoveTotalRow(TotalRow row)
- {
- base.Rows.Remove(row);
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
- {
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- dsFrmCustomerRegInfoSearch dsFrmCustomerRegInfoSearch = new dsFrmCustomerRegInfoSearch();
- xs.Add(dsFrmCustomerRegInfoSearch.GetSchemaSerializable());
- XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
- xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
- xmlSchemaAny.MinOccurs = 0m;
- xmlSchemaAny.MaxOccurs = decimal.MaxValue;
- xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
- xmlSchemaSequence.Items.Add(xmlSchemaAny);
- XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
- xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- xmlSchemaAny2.MinOccurs = 1m;
- xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
- xmlSchemaSequence.Items.Add(xmlSchemaAny2);
- XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
- xmlSchemaAttribute.Name = "namespace";
- xmlSchemaAttribute.FixedValue = dsFrmCustomerRegInfoSearch.Namespace;
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
- XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
- xmlSchemaAttribute2.Name = "tableTypeName";
- xmlSchemaAttribute2.FixedValue = "TotalDataTable";
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- return xmlSchemaComplexType;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class TotalRow : DataRow
- {
- private TotalDataTable tableTotal;
- [DebuggerNonUserCode]
- public string No_CustomerReqProduct
- {
- get
- {
- try
- {
- return (string)base[tableTotal.No_CustomerReqProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'No_CustomerReqProduct' in table 'Total' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableTotal.No_CustomerReqProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Name_CustomerReqProduct
- {
- get
- {
- try
- {
- return (string)base[tableTotal.Name_CustomerReqProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Name_CustomerReqProduct' in table 'Total' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableTotal.Name_CustomerReqProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public decimal Quantity_CustomerReqProduct
- {
- get
- {
- try
- {
- return (decimal)base[tableTotal.Quantity_CustomerReqProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Quantity_CustomerReqProduct' in table 'Total' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableTotal.Quantity_CustomerReqProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public decimal Price_CustomerReqProduct
- {
- get
- {
- try
- {
- return (decimal)base[tableTotal.Price_CustomerReqProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Price_CustomerReqProduct' in table 'Total' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableTotal.Price_CustomerReqProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Unit_CustomerReqProduct
- {
- get
- {
- try
- {
- return (string)base[tableTotal.Unit_CustomerReqProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Unit_CustomerReqProduct' in table 'Total' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableTotal.Unit_CustomerReqProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string ShortName_Customer
- {
- get
- {
- try
- {
- return (string)base[tableTotal.ShortName_CustomerColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'ShortName_Customer' in table 'Total' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableTotal.ShortName_CustomerColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string No_CustomerReqInfo
- {
- get
- {
- try
- {
- return (string)base[tableTotal.No_CustomerReqInfoColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'No_CustomerReqInfo' in table 'Total' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableTotal.No_CustomerReqInfoColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public DateTime CreateDate_CustomerReqInfo
- {
- get
- {
- try
- {
- return (DateTime)base[tableTotal.CreateDate_CustomerReqInfoColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'CreateDate_CustomerReqInfo' in table 'Total' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableTotal.CreateDate_CustomerReqInfoColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Comment_CustomerReqInfo
- {
- get
- {
- try
- {
- return (string)base[tableTotal.Comment_CustomerReqInfoColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Comment_CustomerReqInfo' in table 'Total' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableTotal.Comment_CustomerReqInfoColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- internal TotalRow(DataRowBuilder rb)
- : base(rb)
- {
- tableTotal = (TotalDataTable)base.Table;
- }
- [DebuggerNonUserCode]
- public bool IsNo_CustomerReqProductNull()
- {
- return IsNull(tableTotal.No_CustomerReqProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetNo_CustomerReqProductNull()
- {
- base[tableTotal.No_CustomerReqProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsName_CustomerReqProductNull()
- {
- return IsNull(tableTotal.Name_CustomerReqProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetName_CustomerReqProductNull()
- {
- base[tableTotal.Name_CustomerReqProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsQuantity_CustomerReqProductNull()
- {
- return IsNull(tableTotal.Quantity_CustomerReqProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetQuantity_CustomerReqProductNull()
- {
- base[tableTotal.Quantity_CustomerReqProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsPrice_CustomerReqProductNull()
- {
- return IsNull(tableTotal.Price_CustomerReqProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetPrice_CustomerReqProductNull()
- {
- base[tableTotal.Price_CustomerReqProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsUnit_CustomerReqProductNull()
- {
- return IsNull(tableTotal.Unit_CustomerReqProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetUnit_CustomerReqProductNull()
- {
- base[tableTotal.Unit_CustomerReqProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsShortName_CustomerNull()
- {
- return IsNull(tableTotal.ShortName_CustomerColumn);
- }
- [DebuggerNonUserCode]
- public void SetShortName_CustomerNull()
- {
- base[tableTotal.ShortName_CustomerColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsNo_CustomerReqInfoNull()
- {
- return IsNull(tableTotal.No_CustomerReqInfoColumn);
- }
- [DebuggerNonUserCode]
- public void SetNo_CustomerReqInfoNull()
- {
- base[tableTotal.No_CustomerReqInfoColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsCreateDate_CustomerReqInfoNull()
- {
- return IsNull(tableTotal.CreateDate_CustomerReqInfoColumn);
- }
- [DebuggerNonUserCode]
- public void SetCreateDate_CustomerReqInfoNull()
- {
- base[tableTotal.CreateDate_CustomerReqInfoColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsComment_CustomerReqInfoNull()
- {
- return IsNull(tableTotal.Comment_CustomerReqInfoColumn);
- }
- [DebuggerNonUserCode]
- public void SetComment_CustomerReqInfoNull()
- {
- base[tableTotal.Comment_CustomerReqInfoColumn] = Convert.DBNull;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class TotalRowChangeEvent : EventArgs
- {
- private TotalRow eventRow;
- private DataRowAction eventAction;
- [DebuggerNonUserCode]
- public TotalRow Row => eventRow;
- [DebuggerNonUserCode]
- public DataRowAction Action => eventAction;
- [DebuggerNonUserCode]
- public TotalRowChangeEvent(TotalRow row, DataRowAction action)
- {
- eventRow = row;
- eventAction = action;
- }
- }
- private TotalDataTable tableTotal;
- private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
- [Browsable(false)]
- [DebuggerNonUserCode]
- public TotalDataTable Total => tableTotal;
- [DebuggerNonUserCode]
- [Browsable(true)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
- public override SchemaSerializationMode SchemaSerializationMode
- {
- get
- {
- return _schemaSerializationMode;
- }
- set
- {
- _schemaSerializationMode = value;
- }
- }
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- [DebuggerNonUserCode]
- public new DataTableCollection Tables => base.Tables;
- [DebuggerNonUserCode]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public new DataRelationCollection Relations => base.Relations;
- [DebuggerNonUserCode]
- public dsFrmCustomerRegInfoSearch()
- {
- BeginInit();
- InitClass();
- CollectionChangeEventHandler value = SchemaChanged;
- base.Tables.CollectionChanged += value;
- base.Relations.CollectionChanged += value;
- EndInit();
- }
- [DebuggerNonUserCode]
- protected dsFrmCustomerRegInfoSearch(SerializationInfo info, StreamingContext context)
- : base(info, context, ConstructSchema: false)
- {
- if (IsBinarySerialized(info, context))
- {
- InitVars(initTable: false);
- CollectionChangeEventHandler value = SchemaChanged;
- Tables.CollectionChanged += value;
- Relations.CollectionChanged += value;
- return;
- }
- string s = (string)info.GetValue("XmlSchema", typeof(string));
- if (DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
- {
- DataSet dataSet = new DataSet();
- dataSet.ReadXmlSchema(new XmlTextReader(new StringReader(s)));
- if (dataSet.Tables["Total"] != null)
- {
- base.Tables.Add(new TotalDataTable(dataSet.Tables["Total"]));
- }
- base.DataSetName = dataSet.DataSetName;
- base.Prefix = dataSet.Prefix;
- base.Namespace = dataSet.Namespace;
- base.Locale = dataSet.Locale;
- base.CaseSensitive = dataSet.CaseSensitive;
- base.EnforceConstraints = dataSet.EnforceConstraints;
- Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
- InitVars();
- }
- else
- {
- ReadXmlSchema(new XmlTextReader(new StringReader(s)));
- }
- GetSerializationData(info, context);
- CollectionChangeEventHandler value2 = SchemaChanged;
- base.Tables.CollectionChanged += value2;
- Relations.CollectionChanged += value2;
- }
- [DebuggerNonUserCode]
- protected override void InitializeDerivedDataSet()
- {
- BeginInit();
- InitClass();
- EndInit();
- }
- [DebuggerNonUserCode]
- public override DataSet Clone()
- {
- dsFrmCustomerRegInfoSearch dsFrmCustomerRegInfoSearch = (dsFrmCustomerRegInfoSearch)base.Clone();
- dsFrmCustomerRegInfoSearch.InitVars();
- dsFrmCustomerRegInfoSearch.SchemaSerializationMode = SchemaSerializationMode;
- return dsFrmCustomerRegInfoSearch;
- }
- [DebuggerNonUserCode]
- protected override bool ShouldSerializeTables()
- {
- return false;
- }
- [DebuggerNonUserCode]
- protected override bool ShouldSerializeRelations()
- {
- return false;
- }
- [DebuggerNonUserCode]
- protected override void ReadXmlSerializable(XmlReader reader)
- {
- if (DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
- {
- Reset();
- DataSet dataSet = new DataSet();
- dataSet.ReadXml(reader);
- if (dataSet.Tables["Total"] != null)
- {
- base.Tables.Add(new TotalDataTable(dataSet.Tables["Total"]));
- }
- base.DataSetName = dataSet.DataSetName;
- base.Prefix = dataSet.Prefix;
- base.Namespace = dataSet.Namespace;
- base.Locale = dataSet.Locale;
- base.CaseSensitive = dataSet.CaseSensitive;
- base.EnforceConstraints = dataSet.EnforceConstraints;
- Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
- InitVars();
- }
- else
- {
- ReadXml(reader);
- InitVars();
- }
- }
- [DebuggerNonUserCode]
- protected override XmlSchema GetSchemaSerializable()
- {
- MemoryStream memoryStream = new MemoryStream();
- WriteXmlSchema(new XmlTextWriter(memoryStream, null));
- memoryStream.Position = 0L;
- return XmlSchema.Read(new XmlTextReader(memoryStream), null);
- }
- [DebuggerNonUserCode]
- internal void InitVars()
- {
- InitVars(initTable: true);
- }
- [DebuggerNonUserCode]
- internal void InitVars(bool initTable)
- {
- tableTotal = (TotalDataTable)base.Tables["Total"];
- if (initTable && tableTotal != null)
- {
- tableTotal.InitVars();
- }
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- base.DataSetName = "dsFrmCustomerRegInfoSearch";
- base.Prefix = "";
- base.Namespace = "http://tempuri.org/dsFrmCustomerRegInfoSearch.xsd";
- base.EnforceConstraints = true;
- SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
- tableTotal = new TotalDataTable();
- base.Tables.Add(tableTotal);
- }
- [DebuggerNonUserCode]
- private bool ShouldSerializeTotal()
- {
- return false;
- }
- [DebuggerNonUserCode]
- private void SchemaChanged(object sender, CollectionChangeEventArgs e)
- {
- if (e.Action == CollectionChangeAction.Remove)
- {
- InitVars();
- }
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
- {
- dsFrmCustomerRegInfoSearch dsFrmCustomerRegInfoSearch = new dsFrmCustomerRegInfoSearch();
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- xs.Add(dsFrmCustomerRegInfoSearch.GetSchemaSerializable());
- XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
- xmlSchemaAny.Namespace = dsFrmCustomerRegInfoSearch.Namespace;
- xmlSchemaSequence.Items.Add(xmlSchemaAny);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- return xmlSchemaComplexType;
- }
- }
- }
|