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("dsFrmPrimaryAttendance")] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [HelpKeyword("vs.data.DataSet")] [DesignerCategory("code")] [ToolboxItem(true)] [XmlSchemaProvider("GetTypedDataSetSchema")] public class dsFrmPrimaryAttendance : DataSet { public delegate void AttendanceRecordListRowChangeEventHandler(object sender, AttendanceRecordListRowChangeEvent e); [Serializable] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [XmlSchemaProvider("GetTypedTableSchema")] public class AttendanceRecordListDataTable : DataTable, IEnumerable { private DataColumn columnName_Employee; private DataColumn columnDate_AttendanceRecord; [DebuggerNonUserCode] public DataColumn Name_EmployeeColumn => columnName_Employee; [DebuggerNonUserCode] public DataColumn Date_AttendanceRecordColumn => columnDate_AttendanceRecord; [Browsable(false)] [DebuggerNonUserCode] public int Count => base.Rows.Count; [DebuggerNonUserCode] public AttendanceRecordListRow this[int index] => (AttendanceRecordListRow)base.Rows[index]; public event AttendanceRecordListRowChangeEventHandler AttendanceRecordListRowChanging; public event AttendanceRecordListRowChangeEventHandler AttendanceRecordListRowChanged; public event AttendanceRecordListRowChangeEventHandler AttendanceRecordListRowDeleting; public event AttendanceRecordListRowChangeEventHandler AttendanceRecordListRowDeleted; [DebuggerNonUserCode] public AttendanceRecordListDataTable() { base.TableName = "AttendanceRecordList"; BeginInit(); InitClass(); EndInit(); } [DebuggerNonUserCode] internal AttendanceRecordListDataTable(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 AttendanceRecordListDataTable(SerializationInfo info, StreamingContext context) : base(info, context) { InitVars(); } [DebuggerNonUserCode] public void AddAttendanceRecordListRow(AttendanceRecordListRow row) { base.Rows.Add(row); } [DebuggerNonUserCode] public AttendanceRecordListRow AddAttendanceRecordListRow(string Name_Employee, DateTime Date_AttendanceRecord) { AttendanceRecordListRow attendanceRecordListRow = (AttendanceRecordListRow)NewRow(); object[] array2 = attendanceRecordListRow.ItemArray = new object[2] { Name_Employee, Date_AttendanceRecord }; base.Rows.Add(attendanceRecordListRow); return attendanceRecordListRow; } [DebuggerNonUserCode] public virtual IEnumerator GetEnumerator() { return base.Rows.GetEnumerator(); } [DebuggerNonUserCode] public override DataTable Clone() { AttendanceRecordListDataTable attendanceRecordListDataTable = (AttendanceRecordListDataTable)base.Clone(); attendanceRecordListDataTable.InitVars(); return attendanceRecordListDataTable; } [DebuggerNonUserCode] protected override DataTable CreateInstance() { return new AttendanceRecordListDataTable(); } [DebuggerNonUserCode] internal void InitVars() { columnName_Employee = base.Columns["Name_Employee"]; columnDate_AttendanceRecord = base.Columns["Date_AttendanceRecord"]; } [DebuggerNonUserCode] private void InitClass() { columnName_Employee = new DataColumn("Name_Employee", typeof(string), null, MappingType.Element); base.Columns.Add(columnName_Employee); columnDate_AttendanceRecord = new DataColumn("Date_AttendanceRecord", typeof(DateTime), null, MappingType.Element); base.Columns.Add(columnDate_AttendanceRecord); } [DebuggerNonUserCode] public AttendanceRecordListRow NewAttendanceRecordListRow() { return (AttendanceRecordListRow)NewRow(); } [DebuggerNonUserCode] protected override DataRow NewRowFromBuilder(DataRowBuilder builder) { return new AttendanceRecordListRow(builder); } [DebuggerNonUserCode] protected override Type GetRowType() { return typeof(AttendanceRecordListRow); } [DebuggerNonUserCode] protected override void OnRowChanged(DataRowChangeEventArgs e) { base.OnRowChanged(e); if (this.AttendanceRecordListRowChanged != null) { this.AttendanceRecordListRowChanged(this, new AttendanceRecordListRowChangeEvent((AttendanceRecordListRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowChanging(DataRowChangeEventArgs e) { base.OnRowChanging(e); if (this.AttendanceRecordListRowChanging != null) { this.AttendanceRecordListRowChanging(this, new AttendanceRecordListRowChangeEvent((AttendanceRecordListRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleted(DataRowChangeEventArgs e) { base.OnRowDeleted(e); if (this.AttendanceRecordListRowDeleted != null) { this.AttendanceRecordListRowDeleted(this, new AttendanceRecordListRowChangeEvent((AttendanceRecordListRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleting(DataRowChangeEventArgs e) { base.OnRowDeleting(e); if (this.AttendanceRecordListRowDeleting != null) { this.AttendanceRecordListRowDeleting(this, new AttendanceRecordListRowChangeEvent((AttendanceRecordListRow)e.Row, e.Action)); } } [DebuggerNonUserCode] public void RemoveAttendanceRecordListRow(AttendanceRecordListRow row) { base.Rows.Remove(row); } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs) { XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); dsFrmPrimaryAttendance dsFrmPrimaryAttendance = new dsFrmPrimaryAttendance(); 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 = dsFrmPrimaryAttendance.Namespace; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute); XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute(); xmlSchemaAttribute2.Name = "tableTypeName"; xmlSchemaAttribute2.FixedValue = "AttendanceRecordListDataTable"; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2); xmlSchemaComplexType.Particle = xmlSchemaSequence; XmlSchema schemaSerializable = dsFrmPrimaryAttendance.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 AttendanceRecordListRow : DataRow { private AttendanceRecordListDataTable tableAttendanceRecordList; [DebuggerNonUserCode] public string Name_Employee { get { try { return (string)base[tableAttendanceRecordList.Name_EmployeeColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Name_Employee' in table 'AttendanceRecordList' is DBNull.", innerException); } } set { base[tableAttendanceRecordList.Name_EmployeeColumn] = value; } } [DebuggerNonUserCode] public DateTime Date_AttendanceRecord { get { try { return (DateTime)base[tableAttendanceRecordList.Date_AttendanceRecordColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Date_AttendanceRecord' in table 'AttendanceRecordList' is DBNull.", innerException); } } set { base[tableAttendanceRecordList.Date_AttendanceRecordColumn] = value; } } [DebuggerNonUserCode] internal AttendanceRecordListRow(DataRowBuilder rb) : base(rb) { tableAttendanceRecordList = (AttendanceRecordListDataTable)base.Table; } [DebuggerNonUserCode] public bool IsName_EmployeeNull() { return IsNull(tableAttendanceRecordList.Name_EmployeeColumn); } [DebuggerNonUserCode] public void SetName_EmployeeNull() { base[tableAttendanceRecordList.Name_EmployeeColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsDate_AttendanceRecordNull() { return IsNull(tableAttendanceRecordList.Date_AttendanceRecordColumn); } [DebuggerNonUserCode] public void SetDate_AttendanceRecordNull() { base[tableAttendanceRecordList.Date_AttendanceRecordColumn] = Convert.DBNull; } } [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class AttendanceRecordListRowChangeEvent : EventArgs { private AttendanceRecordListRow eventRow; private DataRowAction eventAction; [DebuggerNonUserCode] public AttendanceRecordListRow Row => eventRow; [DebuggerNonUserCode] public DataRowAction Action => eventAction; [DebuggerNonUserCode] public AttendanceRecordListRowChangeEvent(AttendanceRecordListRow row, DataRowAction action) { eventRow = row; eventAction = action; } } private AttendanceRecordListDataTable tableAttendanceRecordList; private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema; [DebuggerNonUserCode] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [Browsable(false)] public AttendanceRecordListDataTable AttendanceRecordList => tableAttendanceRecordList; [DebuggerNonUserCode] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] [Browsable(true)] 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 dsFrmPrimaryAttendance() { BeginInit(); InitClass(); CollectionChangeEventHandler value = SchemaChanged; base.Tables.CollectionChanged += value; base.Relations.CollectionChanged += value; EndInit(); } [DebuggerNonUserCode] protected dsFrmPrimaryAttendance(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["AttendanceRecordList"] != null) { base.Tables.Add(new AttendanceRecordListDataTable(dataSet.Tables["AttendanceRecordList"])); } 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() { dsFrmPrimaryAttendance dsFrmPrimaryAttendance = (dsFrmPrimaryAttendance)base.Clone(); dsFrmPrimaryAttendance.InitVars(); dsFrmPrimaryAttendance.SchemaSerializationMode = SchemaSerializationMode; return dsFrmPrimaryAttendance; } [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["AttendanceRecordList"] != null) { base.Tables.Add(new AttendanceRecordListDataTable(dataSet.Tables["AttendanceRecordList"])); } 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) { tableAttendanceRecordList = (AttendanceRecordListDataTable)base.Tables["AttendanceRecordList"]; if (initTable && tableAttendanceRecordList != null) { tableAttendanceRecordList.InitVars(); } } [DebuggerNonUserCode] private void InitClass() { base.DataSetName = "dsFrmPrimaryAttendance"; base.Prefix = ""; base.Namespace = "http://tempuri.org/dsFrmPrimaryAttendance.xsd"; base.EnforceConstraints = true; SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; tableAttendanceRecordList = new AttendanceRecordListDataTable(); base.Tables.Add(tableAttendanceRecordList); } [DebuggerNonUserCode] private bool ShouldSerializeAttendanceRecordList() { return false; } [DebuggerNonUserCode] private void SchemaChanged(object sender, CollectionChangeEventArgs e) { if (e.Action == CollectionChangeAction.Remove) { InitVars(); } } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs) { dsFrmPrimaryAttendance dsFrmPrimaryAttendance = new dsFrmPrimaryAttendance(); XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); XmlSchemaAny xmlSchemaAny = new XmlSchemaAny(); xmlSchemaAny.Namespace = dsFrmPrimaryAttendance.Namespace; xmlSchemaSequence.Items.Add(xmlSchemaAny); xmlSchemaComplexType.Particle = xmlSchemaSequence; XmlSchema schemaSerializable = dsFrmPrimaryAttendance.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; } } }