12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325 |
- 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")]
- [ToolboxItem(true)]
- [XmlRoot("dsUIFrmCustomerAccountStatistics")]
- [DesignerCategory("code")]
- [XmlSchemaProvider("GetTypedDataSetSchema")]
- public class dsUIFrmCustomerAccountStatistics : DataSet
- {
- public delegate void UIRowChangeEventHandler(object sender, UIRowChangeEvent e);
- public delegate void FrmCustomerAccountStatisticsRowChangeEventHandler(object sender, FrmCustomerAccountStatisticsRowChangeEvent e);
- [Serializable]
- [XmlSchemaProvider("GetTypedTableSchema")]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class UIDataTable : DataTable, IEnumerable
- {
- private DataColumn columnStartDate;
- private DataColumn columnEndDate;
- private DataColumn columnStartNo_Customer;
- private DataColumn columnEndNo_Customer;
- [DebuggerNonUserCode]
- public DataColumn StartDateColumn => columnStartDate;
- [DebuggerNonUserCode]
- public DataColumn EndDateColumn => columnEndDate;
- [DebuggerNonUserCode]
- public DataColumn StartNo_CustomerColumn => columnStartNo_Customer;
- [DebuggerNonUserCode]
- public DataColumn EndNo_CustomerColumn => columnEndNo_Customer;
- [DebuggerNonUserCode]
- [Browsable(false)]
- public int Count => base.Rows.Count;
- [DebuggerNonUserCode]
- public UIRow this[int index] => (UIRow)base.Rows[index];
- public event UIRowChangeEventHandler UIRowChanging;
- public event UIRowChangeEventHandler UIRowChanged;
- public event UIRowChangeEventHandler UIRowDeleting;
- public event UIRowChangeEventHandler UIRowDeleted;
- [DebuggerNonUserCode]
- public UIDataTable()
- {
- base.TableName = "UI";
- BeginInit();
- InitClass();
- EndInit();
- }
- [DebuggerNonUserCode]
- internal UIDataTable(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 UIDataTable(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- InitVars();
- }
- [DebuggerNonUserCode]
- public void AddUIRow(UIRow row)
- {
- base.Rows.Add(row);
- }
- [DebuggerNonUserCode]
- public UIRow AddUIRow(DateTime StartDate, DateTime EndDate, string StartNo_Customer, string EndNo_Customer)
- {
- UIRow uIRow = (UIRow)NewRow();
- object[] array2 = uIRow.ItemArray = new object[4]
- {
- StartDate,
- EndDate,
- StartNo_Customer,
- EndNo_Customer
- };
- base.Rows.Add(uIRow);
- return uIRow;
- }
- [DebuggerNonUserCode]
- public virtual IEnumerator GetEnumerator()
- {
- return base.Rows.GetEnumerator();
- }
- [DebuggerNonUserCode]
- public override DataTable Clone()
- {
- UIDataTable uIDataTable = (UIDataTable)base.Clone();
- uIDataTable.InitVars();
- return uIDataTable;
- }
- [DebuggerNonUserCode]
- protected override DataTable CreateInstance()
- {
- return new UIDataTable();
- }
- [DebuggerNonUserCode]
- internal void InitVars()
- {
- columnStartDate = base.Columns["StartDate"];
- columnEndDate = base.Columns["EndDate"];
- columnStartNo_Customer = base.Columns["StartNo_Customer"];
- columnEndNo_Customer = base.Columns["EndNo_Customer"];
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- columnStartDate = new DataColumn("StartDate", typeof(DateTime), null, MappingType.Element);
- base.Columns.Add(columnStartDate);
- columnEndDate = new DataColumn("EndDate", typeof(DateTime), null, MappingType.Element);
- base.Columns.Add(columnEndDate);
- columnStartNo_Customer = new DataColumn("StartNo_Customer", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnStartNo_Customer);
- columnEndNo_Customer = new DataColumn("EndNo_Customer", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnEndNo_Customer);
- }
- [DebuggerNonUserCode]
- public UIRow NewUIRow()
- {
- return (UIRow)NewRow();
- }
- [DebuggerNonUserCode]
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
- {
- return new UIRow(builder);
- }
- [DebuggerNonUserCode]
- protected override Type GetRowType()
- {
- return typeof(UIRow);
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanged(DataRowChangeEventArgs e)
- {
- base.OnRowChanged(e);
- if (this.UIRowChanged != null)
- {
- this.UIRowChanged(this, new UIRowChangeEvent((UIRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanging(DataRowChangeEventArgs e)
- {
- base.OnRowChanging(e);
- if (this.UIRowChanging != null)
- {
- this.UIRowChanging(this, new UIRowChangeEvent((UIRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleted(DataRowChangeEventArgs e)
- {
- base.OnRowDeleted(e);
- if (this.UIRowDeleted != null)
- {
- this.UIRowDeleted(this, new UIRowChangeEvent((UIRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleting(DataRowChangeEventArgs e)
- {
- base.OnRowDeleting(e);
- if (this.UIRowDeleting != null)
- {
- this.UIRowDeleting(this, new UIRowChangeEvent((UIRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- public void RemoveUIRow(UIRow row)
- {
- base.Rows.Remove(row);
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
- {
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- dsUIFrmCustomerAccountStatistics dsUIFrmCustomerAccountStatistics = new dsUIFrmCustomerAccountStatistics();
- 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 = dsUIFrmCustomerAccountStatistics.Namespace;
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
- XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
- xmlSchemaAttribute2.Name = "tableTypeName";
- xmlSchemaAttribute2.FixedValue = "UIDataTable";
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- XmlSchema schemaSerializable = dsUIFrmCustomerAccountStatistics.GetSchemaSerializable();
- if (xs.Contains(schemaSerializable.TargetNamespace))
- {
- MemoryStream memoryStream = new MemoryStream();
- MemoryStream memoryStream2 = new MemoryStream();
- try
- {
- XmlSchema xmlSchema = null;
- schemaSerializable.Write(memoryStream);
- IEnumerator enumerator = xs.Schemas(schemaSerializable.TargetNamespace).GetEnumerator();
- while (enumerator.MoveNext())
- {
- xmlSchema = (XmlSchema)enumerator.Current;
- memoryStream2.SetLength(0L);
- xmlSchema.Write(memoryStream2);
- if (memoryStream.Length == memoryStream2.Length)
- {
- memoryStream.Position = 0L;
- memoryStream2.Position = 0L;
- while (memoryStream.Position != memoryStream.Length && memoryStream.ReadByte() == memoryStream2.ReadByte())
- {
- }
- if (memoryStream.Position == memoryStream.Length)
- {
- return xmlSchemaComplexType;
- }
- }
- }
- }
- finally
- {
- memoryStream?.Close();
- memoryStream2?.Close();
- }
- }
- xs.Add(schemaSerializable);
- return xmlSchemaComplexType;
- }
- }
- [Serializable]
- [XmlSchemaProvider("GetTypedTableSchema")]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class FrmCustomerAccountStatisticsDataTable : DataTable, IEnumerable
- {
- private DataColumn columnNo_Customer;
- private DataColumn columnShortName_Customer;
- private DataColumn columnBillType;
- private DataColumn columnBillNo;
- private DataColumn columnBillDate;
- private DataColumn columnPrePayMoney;
- private DataColumn columnToGetMoney;
- private DataColumn columnBalance;
- [DebuggerNonUserCode]
- public DataColumn No_CustomerColumn => columnNo_Customer;
- [DebuggerNonUserCode]
- public DataColumn ShortName_CustomerColumn => columnShortName_Customer;
- [DebuggerNonUserCode]
- public DataColumn BillTypeColumn => columnBillType;
- [DebuggerNonUserCode]
- public DataColumn BillNoColumn => columnBillNo;
- [DebuggerNonUserCode]
- public DataColumn BillDateColumn => columnBillDate;
- [DebuggerNonUserCode]
- public DataColumn PrePayMoneyColumn => columnPrePayMoney;
- [DebuggerNonUserCode]
- public DataColumn ToGetMoneyColumn => columnToGetMoney;
- [DebuggerNonUserCode]
- public DataColumn BalanceColumn => columnBalance;
- [DebuggerNonUserCode]
- [Browsable(false)]
- public int Count => base.Rows.Count;
- [DebuggerNonUserCode]
- public FrmCustomerAccountStatisticsRow this[int index] => (FrmCustomerAccountStatisticsRow)base.Rows[index];
- public event FrmCustomerAccountStatisticsRowChangeEventHandler FrmCustomerAccountStatisticsRowChanging;
- public event FrmCustomerAccountStatisticsRowChangeEventHandler FrmCustomerAccountStatisticsRowChanged;
- public event FrmCustomerAccountStatisticsRowChangeEventHandler FrmCustomerAccountStatisticsRowDeleting;
- public event FrmCustomerAccountStatisticsRowChangeEventHandler FrmCustomerAccountStatisticsRowDeleted;
- [DebuggerNonUserCode]
- public FrmCustomerAccountStatisticsDataTable()
- {
- base.TableName = "FrmCustomerAccountStatistics";
- BeginInit();
- InitClass();
- EndInit();
- }
- [DebuggerNonUserCode]
- internal FrmCustomerAccountStatisticsDataTable(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 FrmCustomerAccountStatisticsDataTable(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- InitVars();
- }
- [DebuggerNonUserCode]
- public void AddFrmCustomerAccountStatisticsRow(FrmCustomerAccountStatisticsRow row)
- {
- base.Rows.Add(row);
- }
- [DebuggerNonUserCode]
- public FrmCustomerAccountStatisticsRow AddFrmCustomerAccountStatisticsRow(string No_Customer, string ShortName_Customer, string BillType, string BillNo, DateTime BillDate, decimal PrePayMoney, decimal ToGetMoney, decimal Balance)
- {
- FrmCustomerAccountStatisticsRow frmCustomerAccountStatisticsRow = (FrmCustomerAccountStatisticsRow)NewRow();
- object[] array2 = frmCustomerAccountStatisticsRow.ItemArray = new object[8]
- {
- No_Customer,
- ShortName_Customer,
- BillType,
- BillNo,
- BillDate,
- PrePayMoney,
- ToGetMoney,
- Balance
- };
- base.Rows.Add(frmCustomerAccountStatisticsRow);
- return frmCustomerAccountStatisticsRow;
- }
- [DebuggerNonUserCode]
- public virtual IEnumerator GetEnumerator()
- {
- return base.Rows.GetEnumerator();
- }
- [DebuggerNonUserCode]
- public override DataTable Clone()
- {
- FrmCustomerAccountStatisticsDataTable frmCustomerAccountStatisticsDataTable = (FrmCustomerAccountStatisticsDataTable)base.Clone();
- frmCustomerAccountStatisticsDataTable.InitVars();
- return frmCustomerAccountStatisticsDataTable;
- }
- [DebuggerNonUserCode]
- protected override DataTable CreateInstance()
- {
- return new FrmCustomerAccountStatisticsDataTable();
- }
- [DebuggerNonUserCode]
- internal void InitVars()
- {
- columnNo_Customer = base.Columns["No_Customer"];
- columnShortName_Customer = base.Columns["ShortName_Customer"];
- columnBillType = base.Columns["BillType"];
- columnBillNo = base.Columns["BillNo"];
- columnBillDate = base.Columns["BillDate"];
- columnPrePayMoney = base.Columns["PrePayMoney"];
- columnToGetMoney = base.Columns["ToGetMoney"];
- columnBalance = base.Columns["Balance"];
- }
- [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);
- columnBillType = new DataColumn("BillType", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnBillType);
- columnBillNo = new DataColumn("BillNo", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnBillNo);
- columnBillDate = new DataColumn("BillDate", typeof(DateTime), null, MappingType.Element);
- base.Columns.Add(columnBillDate);
- columnPrePayMoney = new DataColumn("PrePayMoney", typeof(decimal), null, MappingType.Element);
- base.Columns.Add(columnPrePayMoney);
- columnToGetMoney = new DataColumn("ToGetMoney", typeof(decimal), null, MappingType.Element);
- base.Columns.Add(columnToGetMoney);
- columnBalance = new DataColumn("Balance", typeof(decimal), null, MappingType.Element);
- base.Columns.Add(columnBalance);
- }
- [DebuggerNonUserCode]
- public FrmCustomerAccountStatisticsRow NewFrmCustomerAccountStatisticsRow()
- {
- return (FrmCustomerAccountStatisticsRow)NewRow();
- }
- [DebuggerNonUserCode]
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
- {
- return new FrmCustomerAccountStatisticsRow(builder);
- }
- [DebuggerNonUserCode]
- protected override Type GetRowType()
- {
- return typeof(FrmCustomerAccountStatisticsRow);
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanged(DataRowChangeEventArgs e)
- {
- base.OnRowChanged(e);
- if (this.FrmCustomerAccountStatisticsRowChanged != null)
- {
- this.FrmCustomerAccountStatisticsRowChanged(this, new FrmCustomerAccountStatisticsRowChangeEvent((FrmCustomerAccountStatisticsRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanging(DataRowChangeEventArgs e)
- {
- base.OnRowChanging(e);
- if (this.FrmCustomerAccountStatisticsRowChanging != null)
- {
- this.FrmCustomerAccountStatisticsRowChanging(this, new FrmCustomerAccountStatisticsRowChangeEvent((FrmCustomerAccountStatisticsRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleted(DataRowChangeEventArgs e)
- {
- base.OnRowDeleted(e);
- if (this.FrmCustomerAccountStatisticsRowDeleted != null)
- {
- this.FrmCustomerAccountStatisticsRowDeleted(this, new FrmCustomerAccountStatisticsRowChangeEvent((FrmCustomerAccountStatisticsRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleting(DataRowChangeEventArgs e)
- {
- base.OnRowDeleting(e);
- if (this.FrmCustomerAccountStatisticsRowDeleting != null)
- {
- this.FrmCustomerAccountStatisticsRowDeleting(this, new FrmCustomerAccountStatisticsRowChangeEvent((FrmCustomerAccountStatisticsRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- public void RemoveFrmCustomerAccountStatisticsRow(FrmCustomerAccountStatisticsRow row)
- {
- base.Rows.Remove(row);
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
- {
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- dsUIFrmCustomerAccountStatistics dsUIFrmCustomerAccountStatistics = new dsUIFrmCustomerAccountStatistics();
- 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 = dsUIFrmCustomerAccountStatistics.Namespace;
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
- XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
- xmlSchemaAttribute2.Name = "tableTypeName";
- xmlSchemaAttribute2.FixedValue = "FrmCustomerAccountStatisticsDataTable";
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- XmlSchema schemaSerializable = dsUIFrmCustomerAccountStatistics.GetSchemaSerializable();
- if (xs.Contains(schemaSerializable.TargetNamespace))
- {
- MemoryStream memoryStream = new MemoryStream();
- MemoryStream memoryStream2 = new MemoryStream();
- try
- {
- XmlSchema xmlSchema = null;
- schemaSerializable.Write(memoryStream);
- IEnumerator enumerator = xs.Schemas(schemaSerializable.TargetNamespace).GetEnumerator();
- while (enumerator.MoveNext())
- {
- xmlSchema = (XmlSchema)enumerator.Current;
- memoryStream2.SetLength(0L);
- xmlSchema.Write(memoryStream2);
- if (memoryStream.Length == memoryStream2.Length)
- {
- memoryStream.Position = 0L;
- memoryStream2.Position = 0L;
- while (memoryStream.Position != memoryStream.Length && memoryStream.ReadByte() == memoryStream2.ReadByte())
- {
- }
- if (memoryStream.Position == memoryStream.Length)
- {
- return xmlSchemaComplexType;
- }
- }
- }
- }
- finally
- {
- memoryStream?.Close();
- memoryStream2?.Close();
- }
- }
- xs.Add(schemaSerializable);
- return xmlSchemaComplexType;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class UIRow : DataRow
- {
- private UIDataTable tableUI;
- [DebuggerNonUserCode]
- public DateTime StartDate
- {
- get
- {
- try
- {
- return (DateTime)base[tableUI.StartDateColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'StartDate' in table 'UI' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableUI.StartDateColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public DateTime EndDate
- {
- get
- {
- try
- {
- return (DateTime)base[tableUI.EndDateColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'EndDate' in table 'UI' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableUI.EndDateColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string StartNo_Customer
- {
- get
- {
- try
- {
- return (string)base[tableUI.StartNo_CustomerColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'StartNo_Customer' in table 'UI' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableUI.StartNo_CustomerColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string EndNo_Customer
- {
- get
- {
- try
- {
- return (string)base[tableUI.EndNo_CustomerColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'EndNo_Customer' in table 'UI' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableUI.EndNo_CustomerColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- internal UIRow(DataRowBuilder rb)
- : base(rb)
- {
- tableUI = (UIDataTable)base.Table;
- }
- [DebuggerNonUserCode]
- public bool IsStartDateNull()
- {
- return IsNull(tableUI.StartDateColumn);
- }
- [DebuggerNonUserCode]
- public void SetStartDateNull()
- {
- base[tableUI.StartDateColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsEndDateNull()
- {
- return IsNull(tableUI.EndDateColumn);
- }
- [DebuggerNonUserCode]
- public void SetEndDateNull()
- {
- base[tableUI.EndDateColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsStartNo_CustomerNull()
- {
- return IsNull(tableUI.StartNo_CustomerColumn);
- }
- [DebuggerNonUserCode]
- public void SetStartNo_CustomerNull()
- {
- base[tableUI.StartNo_CustomerColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsEndNo_CustomerNull()
- {
- return IsNull(tableUI.EndNo_CustomerColumn);
- }
- [DebuggerNonUserCode]
- public void SetEndNo_CustomerNull()
- {
- base[tableUI.EndNo_CustomerColumn] = Convert.DBNull;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class FrmCustomerAccountStatisticsRow : DataRow
- {
- private FrmCustomerAccountStatisticsDataTable tableFrmCustomerAccountStatistics;
- [DebuggerNonUserCode]
- public string No_Customer
- {
- get
- {
- try
- {
- return (string)base[tableFrmCustomerAccountStatistics.No_CustomerColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'No_Customer' in table 'FrmCustomerAccountStatistics' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableFrmCustomerAccountStatistics.No_CustomerColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string ShortName_Customer
- {
- get
- {
- try
- {
- return (string)base[tableFrmCustomerAccountStatistics.ShortName_CustomerColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'ShortName_Customer' in table 'FrmCustomerAccountStatistics' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableFrmCustomerAccountStatistics.ShortName_CustomerColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string BillType
- {
- get
- {
- try
- {
- return (string)base[tableFrmCustomerAccountStatistics.BillTypeColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'BillType' in table 'FrmCustomerAccountStatistics' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableFrmCustomerAccountStatistics.BillTypeColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string BillNo
- {
- get
- {
- try
- {
- return (string)base[tableFrmCustomerAccountStatistics.BillNoColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'BillNo' in table 'FrmCustomerAccountStatistics' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableFrmCustomerAccountStatistics.BillNoColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public DateTime BillDate
- {
- get
- {
- try
- {
- return (DateTime)base[tableFrmCustomerAccountStatistics.BillDateColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'BillDate' in table 'FrmCustomerAccountStatistics' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableFrmCustomerAccountStatistics.BillDateColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public decimal PrePayMoney
- {
- get
- {
- try
- {
- return (decimal)base[tableFrmCustomerAccountStatistics.PrePayMoneyColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'PrePayMoney' in table 'FrmCustomerAccountStatistics' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableFrmCustomerAccountStatistics.PrePayMoneyColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public decimal ToGetMoney
- {
- get
- {
- try
- {
- return (decimal)base[tableFrmCustomerAccountStatistics.ToGetMoneyColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'ToGetMoney' in table 'FrmCustomerAccountStatistics' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableFrmCustomerAccountStatistics.ToGetMoneyColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public decimal Balance
- {
- get
- {
- try
- {
- return (decimal)base[tableFrmCustomerAccountStatistics.BalanceColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Balance' in table 'FrmCustomerAccountStatistics' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableFrmCustomerAccountStatistics.BalanceColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- internal FrmCustomerAccountStatisticsRow(DataRowBuilder rb)
- : base(rb)
- {
- tableFrmCustomerAccountStatistics = (FrmCustomerAccountStatisticsDataTable)base.Table;
- }
- [DebuggerNonUserCode]
- public bool IsNo_CustomerNull()
- {
- return IsNull(tableFrmCustomerAccountStatistics.No_CustomerColumn);
- }
- [DebuggerNonUserCode]
- public void SetNo_CustomerNull()
- {
- base[tableFrmCustomerAccountStatistics.No_CustomerColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsShortName_CustomerNull()
- {
- return IsNull(tableFrmCustomerAccountStatistics.ShortName_CustomerColumn);
- }
- [DebuggerNonUserCode]
- public void SetShortName_CustomerNull()
- {
- base[tableFrmCustomerAccountStatistics.ShortName_CustomerColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsBillTypeNull()
- {
- return IsNull(tableFrmCustomerAccountStatistics.BillTypeColumn);
- }
- [DebuggerNonUserCode]
- public void SetBillTypeNull()
- {
- base[tableFrmCustomerAccountStatistics.BillTypeColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsBillNoNull()
- {
- return IsNull(tableFrmCustomerAccountStatistics.BillNoColumn);
- }
- [DebuggerNonUserCode]
- public void SetBillNoNull()
- {
- base[tableFrmCustomerAccountStatistics.BillNoColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsBillDateNull()
- {
- return IsNull(tableFrmCustomerAccountStatistics.BillDateColumn);
- }
- [DebuggerNonUserCode]
- public void SetBillDateNull()
- {
- base[tableFrmCustomerAccountStatistics.BillDateColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsPrePayMoneyNull()
- {
- return IsNull(tableFrmCustomerAccountStatistics.PrePayMoneyColumn);
- }
- [DebuggerNonUserCode]
- public void SetPrePayMoneyNull()
- {
- base[tableFrmCustomerAccountStatistics.PrePayMoneyColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsToGetMoneyNull()
- {
- return IsNull(tableFrmCustomerAccountStatistics.ToGetMoneyColumn);
- }
- [DebuggerNonUserCode]
- public void SetToGetMoneyNull()
- {
- base[tableFrmCustomerAccountStatistics.ToGetMoneyColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsBalanceNull()
- {
- return IsNull(tableFrmCustomerAccountStatistics.BalanceColumn);
- }
- [DebuggerNonUserCode]
- public void SetBalanceNull()
- {
- base[tableFrmCustomerAccountStatistics.BalanceColumn] = Convert.DBNull;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class UIRowChangeEvent : EventArgs
- {
- private UIRow eventRow;
- private DataRowAction eventAction;
- [DebuggerNonUserCode]
- public UIRow Row => eventRow;
- [DebuggerNonUserCode]
- public DataRowAction Action => eventAction;
- [DebuggerNonUserCode]
- public UIRowChangeEvent(UIRow row, DataRowAction action)
- {
- eventRow = row;
- eventAction = action;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class FrmCustomerAccountStatisticsRowChangeEvent : EventArgs
- {
- private FrmCustomerAccountStatisticsRow eventRow;
- private DataRowAction eventAction;
- [DebuggerNonUserCode]
- public FrmCustomerAccountStatisticsRow Row => eventRow;
- [DebuggerNonUserCode]
- public DataRowAction Action => eventAction;
- [DebuggerNonUserCode]
- public FrmCustomerAccountStatisticsRowChangeEvent(FrmCustomerAccountStatisticsRow row, DataRowAction action)
- {
- eventRow = row;
- eventAction = action;
- }
- }
- private UIDataTable tableUI;
- private FrmCustomerAccountStatisticsDataTable tableFrmCustomerAccountStatistics;
- private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
- [DebuggerNonUserCode]
- public UIDataTable UI => tableUI;
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
- [DebuggerNonUserCode]
- [Browsable(false)]
- public FrmCustomerAccountStatisticsDataTable FrmCustomerAccountStatistics => tableFrmCustomerAccountStatistics;
- [Browsable(true)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
- [DebuggerNonUserCode]
- 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 dsUIFrmCustomerAccountStatistics()
- {
- BeginInit();
- InitClass();
- CollectionChangeEventHandler value = SchemaChanged;
- base.Tables.CollectionChanged += value;
- base.Relations.CollectionChanged += value;
- EndInit();
- }
- [DebuggerNonUserCode]
- protected dsUIFrmCustomerAccountStatistics(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["UI"] != null)
- {
- base.Tables.Add(new UIDataTable(dataSet.Tables["UI"]));
- }
- if (dataSet.Tables["FrmCustomerAccountStatistics"] != null)
- {
- base.Tables.Add(new FrmCustomerAccountStatisticsDataTable(dataSet.Tables["FrmCustomerAccountStatistics"]));
- }
- 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()
- {
- dsUIFrmCustomerAccountStatistics dsUIFrmCustomerAccountStatistics = (dsUIFrmCustomerAccountStatistics)base.Clone();
- dsUIFrmCustomerAccountStatistics.InitVars();
- dsUIFrmCustomerAccountStatistics.SchemaSerializationMode = SchemaSerializationMode;
- return dsUIFrmCustomerAccountStatistics;
- }
- [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["UI"] != null)
- {
- base.Tables.Add(new UIDataTable(dataSet.Tables["UI"]));
- }
- if (dataSet.Tables["FrmCustomerAccountStatistics"] != null)
- {
- base.Tables.Add(new FrmCustomerAccountStatisticsDataTable(dataSet.Tables["FrmCustomerAccountStatistics"]));
- }
- 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)
- {
- tableUI = (UIDataTable)base.Tables["UI"];
- if (initTable && tableUI != null)
- {
- tableUI.InitVars();
- }
- tableFrmCustomerAccountStatistics = (FrmCustomerAccountStatisticsDataTable)base.Tables["FrmCustomerAccountStatistics"];
- if (initTable && tableFrmCustomerAccountStatistics != null)
- {
- tableFrmCustomerAccountStatistics.InitVars();
- }
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- base.DataSetName = "dsUIFrmCustomerAccountStatistics";
- base.Prefix = "";
- base.Namespace = "http://tempuri.org/dsUIFrmCustomerAccountStatistics.xsd";
- base.EnforceConstraints = true;
- SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
- tableUI = new UIDataTable();
- base.Tables.Add(tableUI);
- tableFrmCustomerAccountStatistics = new FrmCustomerAccountStatisticsDataTable();
- base.Tables.Add(tableFrmCustomerAccountStatistics);
- }
- [DebuggerNonUserCode]
- private bool ShouldSerializeUI()
- {
- return false;
- }
- [DebuggerNonUserCode]
- private bool ShouldSerializeFrmCustomerAccountStatistics()
- {
- return false;
- }
- [DebuggerNonUserCode]
- private void SchemaChanged(object sender, CollectionChangeEventArgs e)
- {
- if (e.Action == CollectionChangeAction.Remove)
- {
- InitVars();
- }
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
- {
- dsUIFrmCustomerAccountStatistics dsUIFrmCustomerAccountStatistics = new dsUIFrmCustomerAccountStatistics();
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
- xmlSchemaAny.Namespace = dsUIFrmCustomerAccountStatistics.Namespace;
- xmlSchemaSequence.Items.Add(xmlSchemaAny);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- XmlSchema schemaSerializable = dsUIFrmCustomerAccountStatistics.GetSchemaSerializable();
- if (xs.Contains(schemaSerializable.TargetNamespace))
- {
- MemoryStream memoryStream = new MemoryStream();
- MemoryStream memoryStream2 = new MemoryStream();
- try
- {
- XmlSchema xmlSchema = null;
- schemaSerializable.Write(memoryStream);
- IEnumerator enumerator = xs.Schemas(schemaSerializable.TargetNamespace).GetEnumerator();
- while (enumerator.MoveNext())
- {
- xmlSchema = (XmlSchema)enumerator.Current;
- memoryStream2.SetLength(0L);
- xmlSchema.Write(memoryStream2);
- if (memoryStream.Length == memoryStream2.Length)
- {
- memoryStream.Position = 0L;
- memoryStream2.Position = 0L;
- while (memoryStream.Position != memoryStream.Length && memoryStream.ReadByte() == memoryStream2.ReadByte())
- {
- }
- if (memoryStream.Position == memoryStream.Length)
- {
- return xmlSchemaComplexType;
- }
- }
- }
- }
- finally
- {
- memoryStream?.Close();
- memoryStream2?.Close();
- }
- }
- xs.Add(schemaSerializable);
- return xmlSchemaComplexType;
- }
- }
- }
|