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] [HelpKeyword("vs.data.DataSet")] [DesignerCategory("code")] [XmlSchemaProvider("GetTypedDataSetSchema")] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [XmlRoot("dsFrmPayableAccount")] [ToolboxItem(true)] public class dsFrmPayableAccount : DataSet { public delegate void TotalRowChangeEventHandler(object sender, TotalRowChangeEvent e); public delegate void AppendInfoRowChangeEventHandler(object sender, AppendInfoRowChangeEvent e); [Serializable] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [XmlSchemaProvider("GetTypedTableSchema")] public class TotalDataTable : DataTable, IEnumerable { private DataColumn columnNo_Supplier; private DataColumn columnShortName_Supplier; private DataColumn columnNo_Invoice; private DataColumn columnInvoiceDate_PurchaseInvoice; private DataColumn columnInvioceAmount; private DataColumn columnSubtractAmount; private DataColumn columnToPay; [DebuggerNonUserCode] public DataColumn No_SupplierColumn => columnNo_Supplier; [DebuggerNonUserCode] public DataColumn ShortName_SupplierColumn => columnShortName_Supplier; [DebuggerNonUserCode] public DataColumn No_InvoiceColumn => columnNo_Invoice; [DebuggerNonUserCode] public DataColumn InvoiceDate_PurchaseInvoiceColumn => columnInvoiceDate_PurchaseInvoice; [DebuggerNonUserCode] public DataColumn InvioceAmountColumn => columnInvioceAmount; [DebuggerNonUserCode] public DataColumn SubtractAmountColumn => columnSubtractAmount; [DebuggerNonUserCode] public DataColumn ToPayColumn => columnToPay; [Browsable(false)] [DebuggerNonUserCode] 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_Supplier, string ShortName_Supplier, string No_Invoice, DateTime InvoiceDate_PurchaseInvoice, decimal InvioceAmount, decimal SubtractAmount, decimal ToPay) { TotalRow totalRow = (TotalRow)NewRow(); totalRow.ItemArray = new object[7] { No_Supplier, ShortName_Supplier, No_Invoice, InvoiceDate_PurchaseInvoice, InvioceAmount, SubtractAmount, ToPay }; 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_Supplier = base.Columns["No_Supplier"]; columnShortName_Supplier = base.Columns["ShortName_Supplier"]; columnNo_Invoice = base.Columns["No_Invoice"]; columnInvoiceDate_PurchaseInvoice = base.Columns["InvoiceDate_PurchaseInvoice"]; columnInvioceAmount = base.Columns["InvioceAmount"]; columnSubtractAmount = base.Columns["SubtractAmount"]; columnToPay = base.Columns["ToPay"]; } [DebuggerNonUserCode] private void InitClass() { columnNo_Supplier = new DataColumn("No_Supplier", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_Supplier); columnShortName_Supplier = new DataColumn("ShortName_Supplier", typeof(string), null, MappingType.Element); base.Columns.Add(columnShortName_Supplier); columnNo_Invoice = new DataColumn("No_Invoice", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_Invoice); columnInvoiceDate_PurchaseInvoice = new DataColumn("InvoiceDate_PurchaseInvoice", typeof(DateTime), null, MappingType.Element); base.Columns.Add(columnInvoiceDate_PurchaseInvoice); columnInvioceAmount = new DataColumn("InvioceAmount", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnInvioceAmount); columnSubtractAmount = new DataColumn("SubtractAmount", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnSubtractAmount); columnToPay = new DataColumn("ToPay", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnToPay); } [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(); dsFrmPayableAccount dsFrmPayableAccount = new dsFrmPayableAccount(); xs.Add(dsFrmPayableAccount.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 = dsFrmPayableAccount.Namespace; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute); XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute(); xmlSchemaAttribute2.Name = "tableTypeName"; xmlSchemaAttribute2.FixedValue = "TotalDataTable"; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } [Serializable] [XmlSchemaProvider("GetTypedTableSchema")] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class AppendInfoDataTable : DataTable, IEnumerable { private DataColumn columnCurrentCompany; private DataColumn columnCurrentUser; [DebuggerNonUserCode] public DataColumn CurrentCompanyColumn => columnCurrentCompany; [DebuggerNonUserCode] public DataColumn CurrentUserColumn => columnCurrentUser; [Browsable(false)] [DebuggerNonUserCode] public int Count => base.Rows.Count; [DebuggerNonUserCode] public AppendInfoRow this[int index] => (AppendInfoRow)base.Rows[index]; public event AppendInfoRowChangeEventHandler AppendInfoRowChanging; public event AppendInfoRowChangeEventHandler AppendInfoRowChanged; public event AppendInfoRowChangeEventHandler AppendInfoRowDeleting; public event AppendInfoRowChangeEventHandler AppendInfoRowDeleted; [DebuggerNonUserCode] public AppendInfoDataTable() { base.TableName = "AppendInfo"; BeginInit(); InitClass(); EndInit(); } [DebuggerNonUserCode] internal AppendInfoDataTable(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 AppendInfoDataTable(SerializationInfo info, StreamingContext context) : base(info, context) { InitVars(); } [DebuggerNonUserCode] public void AddAppendInfoRow(AppendInfoRow row) { base.Rows.Add(row); } [DebuggerNonUserCode] public AppendInfoRow AddAppendInfoRow(string CurrentCompany, string CurrentUser) { AppendInfoRow appendInfoRow = (AppendInfoRow)NewRow(); appendInfoRow.ItemArray = new object[2] { CurrentCompany, CurrentUser }; base.Rows.Add(appendInfoRow); return appendInfoRow; } [DebuggerNonUserCode] public virtual IEnumerator GetEnumerator() { return base.Rows.GetEnumerator(); } [DebuggerNonUserCode] public override DataTable Clone() { AppendInfoDataTable appendInfoDataTable = (AppendInfoDataTable)base.Clone(); appendInfoDataTable.InitVars(); return appendInfoDataTable; } [DebuggerNonUserCode] protected override DataTable CreateInstance() { return new AppendInfoDataTable(); } [DebuggerNonUserCode] internal void InitVars() { columnCurrentCompany = base.Columns["CurrentCompany"]; columnCurrentUser = base.Columns["CurrentUser"]; } [DebuggerNonUserCode] private void InitClass() { columnCurrentCompany = new DataColumn("CurrentCompany", typeof(string), null, MappingType.Element); base.Columns.Add(columnCurrentCompany); columnCurrentUser = new DataColumn("CurrentUser", typeof(string), null, MappingType.Element); base.Columns.Add(columnCurrentUser); } [DebuggerNonUserCode] public AppendInfoRow NewAppendInfoRow() { return (AppendInfoRow)NewRow(); } [DebuggerNonUserCode] protected override DataRow NewRowFromBuilder(DataRowBuilder builder) { return new AppendInfoRow(builder); } [DebuggerNonUserCode] protected override Type GetRowType() { return typeof(AppendInfoRow); } [DebuggerNonUserCode] protected override void OnRowChanged(DataRowChangeEventArgs e) { base.OnRowChanged(e); if (this.AppendInfoRowChanged != null) { this.AppendInfoRowChanged(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowChanging(DataRowChangeEventArgs e) { base.OnRowChanging(e); if (this.AppendInfoRowChanging != null) { this.AppendInfoRowChanging(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleted(DataRowChangeEventArgs e) { base.OnRowDeleted(e); if (this.AppendInfoRowDeleted != null) { this.AppendInfoRowDeleted(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleting(DataRowChangeEventArgs e) { base.OnRowDeleting(e); if (this.AppendInfoRowDeleting != null) { this.AppendInfoRowDeleting(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action)); } } [DebuggerNonUserCode] public void RemoveAppendInfoRow(AppendInfoRow row) { base.Rows.Remove(row); } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs) { XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); dsFrmPayableAccount dsFrmPayableAccount = new dsFrmPayableAccount(); xs.Add(dsFrmPayableAccount.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 = dsFrmPayableAccount.Namespace; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute); XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute(); xmlSchemaAttribute2.Name = "tableTypeName"; xmlSchemaAttribute2.FixedValue = "AppendInfoDataTable"; 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_Supplier { get { try { return (string)base[tableTotal.No_SupplierColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_Supplier' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.No_SupplierColumn] = value; } } [DebuggerNonUserCode] public string ShortName_Supplier { get { try { return (string)base[tableTotal.ShortName_SupplierColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'ShortName_Supplier' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.ShortName_SupplierColumn] = value; } } [DebuggerNonUserCode] public string No_Invoice { get { try { return (string)base[tableTotal.No_InvoiceColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_Invoice' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.No_InvoiceColumn] = value; } } [DebuggerNonUserCode] public DateTime InvoiceDate_PurchaseInvoice { get { try { return (DateTime)base[tableTotal.InvoiceDate_PurchaseInvoiceColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'InvoiceDate_PurchaseInvoice' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.InvoiceDate_PurchaseInvoiceColumn] = value; } } [DebuggerNonUserCode] public decimal InvioceAmount { get { try { return (decimal)base[tableTotal.InvioceAmountColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'InvioceAmount' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.InvioceAmountColumn] = value; } } [DebuggerNonUserCode] public decimal SubtractAmount { get { try { return (decimal)base[tableTotal.SubtractAmountColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'SubtractAmount' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.SubtractAmountColumn] = value; } } [DebuggerNonUserCode] public decimal ToPay { get { try { return (decimal)base[tableTotal.ToPayColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'ToPay' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.ToPayColumn] = value; } } [DebuggerNonUserCode] internal TotalRow(DataRowBuilder rb) : base(rb) { tableTotal = (TotalDataTable)base.Table; } [DebuggerNonUserCode] public bool IsNo_SupplierNull() { return IsNull(tableTotal.No_SupplierColumn); } [DebuggerNonUserCode] public void SetNo_SupplierNull() { base[tableTotal.No_SupplierColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsShortName_SupplierNull() { return IsNull(tableTotal.ShortName_SupplierColumn); } [DebuggerNonUserCode] public void SetShortName_SupplierNull() { base[tableTotal.ShortName_SupplierColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsNo_InvoiceNull() { return IsNull(tableTotal.No_InvoiceColumn); } [DebuggerNonUserCode] public void SetNo_InvoiceNull() { base[tableTotal.No_InvoiceColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsInvoiceDate_PurchaseInvoiceNull() { return IsNull(tableTotal.InvoiceDate_PurchaseInvoiceColumn); } [DebuggerNonUserCode] public void SetInvoiceDate_PurchaseInvoiceNull() { base[tableTotal.InvoiceDate_PurchaseInvoiceColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsInvioceAmountNull() { return IsNull(tableTotal.InvioceAmountColumn); } [DebuggerNonUserCode] public void SetInvioceAmountNull() { base[tableTotal.InvioceAmountColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsSubtractAmountNull() { return IsNull(tableTotal.SubtractAmountColumn); } [DebuggerNonUserCode] public void SetSubtractAmountNull() { base[tableTotal.SubtractAmountColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsToPayNull() { return IsNull(tableTotal.ToPayColumn); } [DebuggerNonUserCode] public void SetToPayNull() { base[tableTotal.ToPayColumn] = Convert.DBNull; } } [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class AppendInfoRow : DataRow { private AppendInfoDataTable tableAppendInfo; [DebuggerNonUserCode] public string CurrentCompany { get { try { return (string)base[tableAppendInfo.CurrentCompanyColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'CurrentCompany' in table 'AppendInfo' is DBNull.", innerException); } } set { base[tableAppendInfo.CurrentCompanyColumn] = value; } } [DebuggerNonUserCode] public string CurrentUser { get { try { return (string)base[tableAppendInfo.CurrentUserColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'CurrentUser' in table 'AppendInfo' is DBNull.", innerException); } } set { base[tableAppendInfo.CurrentUserColumn] = value; } } [DebuggerNonUserCode] internal AppendInfoRow(DataRowBuilder rb) : base(rb) { tableAppendInfo = (AppendInfoDataTable)base.Table; } [DebuggerNonUserCode] public bool IsCurrentCompanyNull() { return IsNull(tableAppendInfo.CurrentCompanyColumn); } [DebuggerNonUserCode] public void SetCurrentCompanyNull() { base[tableAppendInfo.CurrentCompanyColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsCurrentUserNull() { return IsNull(tableAppendInfo.CurrentUserColumn); } [DebuggerNonUserCode] public void SetCurrentUserNull() { base[tableAppendInfo.CurrentUserColumn] = 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; } } [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class AppendInfoRowChangeEvent : EventArgs { private AppendInfoRow eventRow; private DataRowAction eventAction; [DebuggerNonUserCode] public AppendInfoRow Row => eventRow; [DebuggerNonUserCode] public DataRowAction Action => eventAction; [DebuggerNonUserCode] public AppendInfoRowChangeEvent(AppendInfoRow row, DataRowAction action) { eventRow = row; eventAction = action; } } private TotalDataTable tableTotal; private AppendInfoDataTable tableAppendInfo; private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema; [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [DebuggerNonUserCode] [Browsable(false)] public TotalDataTable Total => tableTotal; [Browsable(false)] [DebuggerNonUserCode] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public AppendInfoDataTable AppendInfo => tableAppendInfo; [Browsable(true)] [DebuggerNonUserCode] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] public override SchemaSerializationMode SchemaSerializationMode { get { return _schemaSerializationMode; } set { _schemaSerializationMode = value; } } [DebuggerNonUserCode] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public new DataTableCollection Tables => base.Tables; [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [DebuggerNonUserCode] public new DataRelationCollection Relations => base.Relations; [DebuggerNonUserCode] public dsFrmPayableAccount() { BeginInit(); InitClass(); CollectionChangeEventHandler value = SchemaChanged; base.Tables.CollectionChanged += value; base.Relations.CollectionChanged += value; EndInit(); } [DebuggerNonUserCode] protected dsFrmPayableAccount(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"])); } if (dataSet.Tables["AppendInfo"] != null) { base.Tables.Add(new AppendInfoDataTable(dataSet.Tables["AppendInfo"])); } 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() { dsFrmPayableAccount dsFrmPayableAccount = (dsFrmPayableAccount)base.Clone(); dsFrmPayableAccount.InitVars(); dsFrmPayableAccount.SchemaSerializationMode = SchemaSerializationMode; return dsFrmPayableAccount; } [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"])); } if (dataSet.Tables["AppendInfo"] != null) { base.Tables.Add(new AppendInfoDataTable(dataSet.Tables["AppendInfo"])); } 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(); } tableAppendInfo = (AppendInfoDataTable)base.Tables["AppendInfo"]; if (initTable && tableAppendInfo != null) { tableAppendInfo.InitVars(); } } [DebuggerNonUserCode] private void InitClass() { base.DataSetName = "dsFrmPayableAccount"; base.Prefix = ""; base.Namespace = "http://tempuri.org/dsFrmPayableAccount.xsd"; base.EnforceConstraints = true; SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; tableTotal = new TotalDataTable(); base.Tables.Add(tableTotal); tableAppendInfo = new AppendInfoDataTable(); base.Tables.Add(tableAppendInfo); } [DebuggerNonUserCode] private bool ShouldSerializeTotal() { return false; } [DebuggerNonUserCode] private bool ShouldSerializeAppendInfo() { return false; } [DebuggerNonUserCode] private void SchemaChanged(object sender, CollectionChangeEventArgs e) { if (e.Action == CollectionChangeAction.Remove) { InitVars(); } } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs) { dsFrmPayableAccount dsFrmPayableAccount = new dsFrmPayableAccount(); XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); xs.Add(dsFrmPayableAccount.GetSchemaSerializable()); XmlSchemaAny xmlSchemaAny = new XmlSchemaAny(); xmlSchemaAny.Namespace = dsFrmPayableAccount.Namespace; xmlSchemaSequence.Items.Add(xmlSchemaAny); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } }