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] [XmlRoot("dsFrmReceivables")] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [XmlSchemaProvider("GetTypedDataSetSchema")] [HelpKeyword("vs.data.DataSet")] [DesignerCategory("code")] [ToolboxItem(true)] public class dsFrmReceivables : 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_Customer; private DataColumn columnShortName_Customer; private DataColumn columnNo_SaleInvoice; private DataColumn columnNo_Invoice; private DataColumn columnInvoiceDate_SaleInvoice; private DataColumn columnPayDate_SaleInvoice; private DataColumn columnAmount_SaleInvoice; private DataColumn columnStrikedMoney; private DataColumn columnReceivableMoney; [DebuggerNonUserCode] public DataColumn No_CustomerColumn => columnNo_Customer; [DebuggerNonUserCode] public DataColumn ShortName_CustomerColumn => columnShortName_Customer; [DebuggerNonUserCode] public DataColumn No_SaleInvoiceColumn => columnNo_SaleInvoice; [DebuggerNonUserCode] public DataColumn No_InvoiceColumn => columnNo_Invoice; [DebuggerNonUserCode] public DataColumn InvoiceDate_SaleInvoiceColumn => columnInvoiceDate_SaleInvoice; [DebuggerNonUserCode] public DataColumn PayDate_SaleInvoiceColumn => columnPayDate_SaleInvoice; [DebuggerNonUserCode] public DataColumn Amount_SaleInvoiceColumn => columnAmount_SaleInvoice; [DebuggerNonUserCode] public DataColumn StrikedMoneyColumn => columnStrikedMoney; [DebuggerNonUserCode] public DataColumn ReceivableMoneyColumn => columnReceivableMoney; [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_Customer, string ShortName_Customer, string No_SaleInvoice, string No_Invoice, DateTime InvoiceDate_SaleInvoice, DateTime PayDate_SaleInvoice, decimal Amount_SaleInvoice, decimal StrikedMoney, decimal ReceivableMoney) { TotalRow totalRow = (TotalRow)NewRow(); totalRow.ItemArray = new object[9] { No_Customer, ShortName_Customer, No_SaleInvoice, No_Invoice, InvoiceDate_SaleInvoice, PayDate_SaleInvoice, Amount_SaleInvoice, StrikedMoney, ReceivableMoney }; 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_Customer = base.Columns["No_Customer"]; columnShortName_Customer = base.Columns["ShortName_Customer"]; columnNo_SaleInvoice = base.Columns["No_SaleInvoice"]; columnNo_Invoice = base.Columns["No_Invoice"]; columnInvoiceDate_SaleInvoice = base.Columns["InvoiceDate_SaleInvoice"]; columnPayDate_SaleInvoice = base.Columns["PayDate_SaleInvoice"]; columnAmount_SaleInvoice = base.Columns["Amount_SaleInvoice"]; columnStrikedMoney = base.Columns["StrikedMoney"]; columnReceivableMoney = base.Columns["ReceivableMoney"]; } [DebuggerNonUserCode] private void InitClass() { columnNo_Customer = new DataColumn("No_Customer", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_Customer); columnShortName_Customer = new DataColumn("ShortName_Customer", typeof(string), null, MappingType.Element); base.Columns.Add(columnShortName_Customer); columnNo_SaleInvoice = new DataColumn("No_SaleInvoice", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_SaleInvoice); columnNo_Invoice = new DataColumn("No_Invoice", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_Invoice); columnInvoiceDate_SaleInvoice = new DataColumn("InvoiceDate_SaleInvoice", typeof(DateTime), null, MappingType.Element); base.Columns.Add(columnInvoiceDate_SaleInvoice); columnPayDate_SaleInvoice = new DataColumn("PayDate_SaleInvoice", typeof(DateTime), null, MappingType.Element); base.Columns.Add(columnPayDate_SaleInvoice); columnAmount_SaleInvoice = new DataColumn("Amount_SaleInvoice", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnAmount_SaleInvoice); columnStrikedMoney = new DataColumn("StrikedMoney", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnStrikedMoney); columnReceivableMoney = new DataColumn("ReceivableMoney", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnReceivableMoney); } [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(); dsFrmReceivables dsFrmReceivables = new dsFrmReceivables(); xs.Add(dsFrmReceivables.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 = dsFrmReceivables.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] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [XmlSchemaProvider("GetTypedTableSchema")] public class AppendInfoDataTable : DataTable, IEnumerable { private DataColumn columnCurrentCompany; private DataColumn columnCurrentUser; [DebuggerNonUserCode] public DataColumn CurrentCompanyColumn => columnCurrentCompany; [DebuggerNonUserCode] public DataColumn CurrentUserColumn => columnCurrentUser; [DebuggerNonUserCode] [Browsable(false)] 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(); dsFrmReceivables dsFrmReceivables = new dsFrmReceivables(); xs.Add(dsFrmReceivables.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 = dsFrmReceivables.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_Customer { get { try { return (string)base[tableTotal.No_CustomerColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_Customer' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.No_CustomerColumn] = 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_SaleInvoice { get { try { return (string)base[tableTotal.No_SaleInvoiceColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_SaleInvoice' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.No_SaleInvoiceColumn] = 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_SaleInvoice { get { try { return (DateTime)base[tableTotal.InvoiceDate_SaleInvoiceColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'InvoiceDate_SaleInvoice' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.InvoiceDate_SaleInvoiceColumn] = value; } } [DebuggerNonUserCode] public DateTime PayDate_SaleInvoice { get { try { return (DateTime)base[tableTotal.PayDate_SaleInvoiceColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'PayDate_SaleInvoice' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.PayDate_SaleInvoiceColumn] = value; } } [DebuggerNonUserCode] public decimal Amount_SaleInvoice { get { try { return (decimal)base[tableTotal.Amount_SaleInvoiceColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Amount_SaleInvoice' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.Amount_SaleInvoiceColumn] = value; } } [DebuggerNonUserCode] public decimal StrikedMoney { get { try { return (decimal)base[tableTotal.StrikedMoneyColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'StrikedMoney' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.StrikedMoneyColumn] = value; } } [DebuggerNonUserCode] public decimal ReceivableMoney { get { try { return (decimal)base[tableTotal.ReceivableMoneyColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'ReceivableMoney' in table 'Total' is DBNull.", innerException); } } set { base[tableTotal.ReceivableMoneyColumn] = value; } } [DebuggerNonUserCode] internal TotalRow(DataRowBuilder rb) : base(rb) { tableTotal = (TotalDataTable)base.Table; } [DebuggerNonUserCode] public bool IsNo_CustomerNull() { return IsNull(tableTotal.No_CustomerColumn); } [DebuggerNonUserCode] public void SetNo_CustomerNull() { base[tableTotal.No_CustomerColumn] = 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_SaleInvoiceNull() { return IsNull(tableTotal.No_SaleInvoiceColumn); } [DebuggerNonUserCode] public void SetNo_SaleInvoiceNull() { base[tableTotal.No_SaleInvoiceColumn] = 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_SaleInvoiceNull() { return IsNull(tableTotal.InvoiceDate_SaleInvoiceColumn); } [DebuggerNonUserCode] public void SetInvoiceDate_SaleInvoiceNull() { base[tableTotal.InvoiceDate_SaleInvoiceColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsPayDate_SaleInvoiceNull() { return IsNull(tableTotal.PayDate_SaleInvoiceColumn); } [DebuggerNonUserCode] public void SetPayDate_SaleInvoiceNull() { base[tableTotal.PayDate_SaleInvoiceColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsAmount_SaleInvoiceNull() { return IsNull(tableTotal.Amount_SaleInvoiceColumn); } [DebuggerNonUserCode] public void SetAmount_SaleInvoiceNull() { base[tableTotal.Amount_SaleInvoiceColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsStrikedMoneyNull() { return IsNull(tableTotal.StrikedMoneyColumn); } [DebuggerNonUserCode] public void SetStrikedMoneyNull() { base[tableTotal.StrikedMoneyColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsReceivableMoneyNull() { return IsNull(tableTotal.ReceivableMoneyColumn); } [DebuggerNonUserCode] public void SetReceivableMoneyNull() { base[tableTotal.ReceivableMoneyColumn] = 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; [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [DebuggerNonUserCode] public TotalDataTable Total => tableTotal; [DebuggerNonUserCode] [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public AppendInfoDataTable AppendInfo => tableAppendInfo; [Browsable(true)] [DebuggerNonUserCode] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] public override SchemaSerializationMode SchemaSerializationMode { get { return _schemaSerializationMode; } set { _schemaSerializationMode = value; } } [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [DebuggerNonUserCode] public new DataTableCollection Tables => base.Tables; [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [DebuggerNonUserCode] public new DataRelationCollection Relations => base.Relations; [DebuggerNonUserCode] public dsFrmReceivables() { BeginInit(); InitClass(); CollectionChangeEventHandler value = SchemaChanged; base.Tables.CollectionChanged += value; base.Relations.CollectionChanged += value; EndInit(); } [DebuggerNonUserCode] protected dsFrmReceivables(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() { dsFrmReceivables dsFrmReceivables = (dsFrmReceivables)base.Clone(); dsFrmReceivables.InitVars(); dsFrmReceivables.SchemaSerializationMode = SchemaSerializationMode; return dsFrmReceivables; } [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 = "dsFrmReceivables"; base.Prefix = ""; base.Namespace = "http://tempuri.org/dsFrmReceivables.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) { dsFrmReceivables dsFrmReceivables = new dsFrmReceivables(); XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); xs.Add(dsFrmReceivables.GetSchemaSerializable()); XmlSchemaAny xmlSchemaAny = new XmlSchemaAny(); xmlSchemaAny.Namespace = dsFrmReceivables.Namespace; xmlSchemaSequence.Items.Add(xmlSchemaAny); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } }