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; } } }