123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712 |
- 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")]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [ToolboxItem(true)]
- [XmlSchemaProvider("GetTypedDataSetSchema")]
- [XmlRoot("dsFrmLog")]
- public class dsFrmLog : DataSet
- {
- public delegate void LogRecordRowChangeEventHandler(object sender, LogRecordRowChangeEvent e);
- [Serializable]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [XmlSchemaProvider("GetTypedTableSchema")]
- public class LogRecordDataTable : DataTable, IEnumerable
- {
- private DataColumn columnTime_LogRecord;
- private DataColumn columnLoginName_LogRecord;
- private DataColumn columnFormName_LogRecord;
- private DataColumn columnFormNo_LogRecord;
- private DataColumn columnOperation_LogRecord;
- private DataColumn columnResult_LogRecord;
- [DebuggerNonUserCode]
- public DataColumn Time_LogRecordColumn => columnTime_LogRecord;
- [DebuggerNonUserCode]
- public DataColumn LoginName_LogRecordColumn => columnLoginName_LogRecord;
- [DebuggerNonUserCode]
- public DataColumn FormName_LogRecordColumn => columnFormName_LogRecord;
- [DebuggerNonUserCode]
- public DataColumn FormNo_LogRecordColumn => columnFormNo_LogRecord;
- [DebuggerNonUserCode]
- public DataColumn Operation_LogRecordColumn => columnOperation_LogRecord;
- [DebuggerNonUserCode]
- public DataColumn Result_LogRecordColumn => columnResult_LogRecord;
- [Browsable(false)]
- [DebuggerNonUserCode]
- public int Count => base.Rows.Count;
- [DebuggerNonUserCode]
- public LogRecordRow this[int index] => (LogRecordRow)base.Rows[index];
- public event LogRecordRowChangeEventHandler LogRecordRowChanging;
- public event LogRecordRowChangeEventHandler LogRecordRowChanged;
- public event LogRecordRowChangeEventHandler LogRecordRowDeleting;
- public event LogRecordRowChangeEventHandler LogRecordRowDeleted;
- [DebuggerNonUserCode]
- public LogRecordDataTable()
- {
- base.TableName = "LogRecord";
- BeginInit();
- InitClass();
- EndInit();
- }
- [DebuggerNonUserCode]
- internal LogRecordDataTable(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 LogRecordDataTable(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- InitVars();
- }
- [DebuggerNonUserCode]
- public void AddLogRecordRow(LogRecordRow row)
- {
- base.Rows.Add(row);
- }
- [DebuggerNonUserCode]
- public LogRecordRow AddLogRecordRow(DateTime Time_LogRecord, string LoginName_LogRecord, string FormName_LogRecord, string FormNo_LogRecord, string Operation_LogRecord, string Result_LogRecord)
- {
- LogRecordRow logRecordRow = (LogRecordRow)NewRow();
- logRecordRow.ItemArray = new object[6]
- {
- Time_LogRecord,
- LoginName_LogRecord,
- FormName_LogRecord,
- FormNo_LogRecord,
- Operation_LogRecord,
- Result_LogRecord
- };
- base.Rows.Add(logRecordRow);
- return logRecordRow;
- }
- [DebuggerNonUserCode]
- public virtual IEnumerator GetEnumerator()
- {
- return base.Rows.GetEnumerator();
- }
- [DebuggerNonUserCode]
- public override DataTable Clone()
- {
- LogRecordDataTable logRecordDataTable = (LogRecordDataTable)base.Clone();
- logRecordDataTable.InitVars();
- return logRecordDataTable;
- }
- [DebuggerNonUserCode]
- protected override DataTable CreateInstance()
- {
- return new LogRecordDataTable();
- }
- [DebuggerNonUserCode]
- internal void InitVars()
- {
- columnTime_LogRecord = base.Columns["Time_LogRecord"];
- columnLoginName_LogRecord = base.Columns["LoginName_LogRecord"];
- columnFormName_LogRecord = base.Columns["FormName_LogRecord"];
- columnFormNo_LogRecord = base.Columns["FormNo_LogRecord"];
- columnOperation_LogRecord = base.Columns["Operation_LogRecord"];
- columnResult_LogRecord = base.Columns["Result_LogRecord"];
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- columnTime_LogRecord = new DataColumn("Time_LogRecord", typeof(DateTime), null, MappingType.Element);
- base.Columns.Add(columnTime_LogRecord);
- columnLoginName_LogRecord = new DataColumn("LoginName_LogRecord", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnLoginName_LogRecord);
- columnFormName_LogRecord = new DataColumn("FormName_LogRecord", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnFormName_LogRecord);
- columnFormNo_LogRecord = new DataColumn("FormNo_LogRecord", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnFormNo_LogRecord);
- columnOperation_LogRecord = new DataColumn("Operation_LogRecord", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnOperation_LogRecord);
- columnResult_LogRecord = new DataColumn("Result_LogRecord", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnResult_LogRecord);
- }
- [DebuggerNonUserCode]
- public LogRecordRow NewLogRecordRow()
- {
- return (LogRecordRow)NewRow();
- }
- [DebuggerNonUserCode]
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
- {
- return new LogRecordRow(builder);
- }
- [DebuggerNonUserCode]
- protected override Type GetRowType()
- {
- return typeof(LogRecordRow);
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanged(DataRowChangeEventArgs e)
- {
- base.OnRowChanged(e);
- if (this.LogRecordRowChanged != null)
- {
- this.LogRecordRowChanged(this, new LogRecordRowChangeEvent((LogRecordRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanging(DataRowChangeEventArgs e)
- {
- base.OnRowChanging(e);
- if (this.LogRecordRowChanging != null)
- {
- this.LogRecordRowChanging(this, new LogRecordRowChangeEvent((LogRecordRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleted(DataRowChangeEventArgs e)
- {
- base.OnRowDeleted(e);
- if (this.LogRecordRowDeleted != null)
- {
- this.LogRecordRowDeleted(this, new LogRecordRowChangeEvent((LogRecordRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleting(DataRowChangeEventArgs e)
- {
- base.OnRowDeleting(e);
- if (this.LogRecordRowDeleting != null)
- {
- this.LogRecordRowDeleting(this, new LogRecordRowChangeEvent((LogRecordRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- public void RemoveLogRecordRow(LogRecordRow row)
- {
- base.Rows.Remove(row);
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
- {
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- dsFrmLog dsFrmLog = new dsFrmLog();
- xs.Add(dsFrmLog.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 = dsFrmLog.Namespace;
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
- XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
- xmlSchemaAttribute2.Name = "tableTypeName";
- xmlSchemaAttribute2.FixedValue = "LogRecordDataTable";
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- return xmlSchemaComplexType;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class LogRecordRow : DataRow
- {
- private LogRecordDataTable tableLogRecord;
- [DebuggerNonUserCode]
- public DateTime Time_LogRecord
- {
- get
- {
- try
- {
- return (DateTime)base[tableLogRecord.Time_LogRecordColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Time_LogRecord' in table 'LogRecord' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableLogRecord.Time_LogRecordColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string LoginName_LogRecord
- {
- get
- {
- try
- {
- return (string)base[tableLogRecord.LoginName_LogRecordColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'LoginName_LogRecord' in table 'LogRecord' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableLogRecord.LoginName_LogRecordColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string FormName_LogRecord
- {
- get
- {
- try
- {
- return (string)base[tableLogRecord.FormName_LogRecordColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'FormName_LogRecord' in table 'LogRecord' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableLogRecord.FormName_LogRecordColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string FormNo_LogRecord
- {
- get
- {
- try
- {
- return (string)base[tableLogRecord.FormNo_LogRecordColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'FormNo_LogRecord' in table 'LogRecord' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableLogRecord.FormNo_LogRecordColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Operation_LogRecord
- {
- get
- {
- try
- {
- return (string)base[tableLogRecord.Operation_LogRecordColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Operation_LogRecord' in table 'LogRecord' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableLogRecord.Operation_LogRecordColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Result_LogRecord
- {
- get
- {
- try
- {
- return (string)base[tableLogRecord.Result_LogRecordColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Result_LogRecord' in table 'LogRecord' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableLogRecord.Result_LogRecordColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- internal LogRecordRow(DataRowBuilder rb)
- : base(rb)
- {
- tableLogRecord = (LogRecordDataTable)base.Table;
- }
- [DebuggerNonUserCode]
- public bool IsTime_LogRecordNull()
- {
- return IsNull(tableLogRecord.Time_LogRecordColumn);
- }
- [DebuggerNonUserCode]
- public void SetTime_LogRecordNull()
- {
- base[tableLogRecord.Time_LogRecordColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsLoginName_LogRecordNull()
- {
- return IsNull(tableLogRecord.LoginName_LogRecordColumn);
- }
- [DebuggerNonUserCode]
- public void SetLoginName_LogRecordNull()
- {
- base[tableLogRecord.LoginName_LogRecordColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsFormName_LogRecordNull()
- {
- return IsNull(tableLogRecord.FormName_LogRecordColumn);
- }
- [DebuggerNonUserCode]
- public void SetFormName_LogRecordNull()
- {
- base[tableLogRecord.FormName_LogRecordColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsFormNo_LogRecordNull()
- {
- return IsNull(tableLogRecord.FormNo_LogRecordColumn);
- }
- [DebuggerNonUserCode]
- public void SetFormNo_LogRecordNull()
- {
- base[tableLogRecord.FormNo_LogRecordColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsOperation_LogRecordNull()
- {
- return IsNull(tableLogRecord.Operation_LogRecordColumn);
- }
- [DebuggerNonUserCode]
- public void SetOperation_LogRecordNull()
- {
- base[tableLogRecord.Operation_LogRecordColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsResult_LogRecordNull()
- {
- return IsNull(tableLogRecord.Result_LogRecordColumn);
- }
- [DebuggerNonUserCode]
- public void SetResult_LogRecordNull()
- {
- base[tableLogRecord.Result_LogRecordColumn] = Convert.DBNull;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class LogRecordRowChangeEvent : EventArgs
- {
- private LogRecordRow eventRow;
- private DataRowAction eventAction;
- [DebuggerNonUserCode]
- public LogRecordRow Row => eventRow;
- [DebuggerNonUserCode]
- public DataRowAction Action => eventAction;
- [DebuggerNonUserCode]
- public LogRecordRowChangeEvent(LogRecordRow row, DataRowAction action)
- {
- eventRow = row;
- eventAction = action;
- }
- }
- private LogRecordDataTable tableLogRecord;
- private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
- [DebuggerNonUserCode]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
- [Browsable(false)]
- public LogRecordDataTable LogRecord => tableLogRecord;
- [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;
- [DebuggerNonUserCode]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public new DataRelationCollection Relations => base.Relations;
- [DebuggerNonUserCode]
- public dsFrmLog()
- {
- BeginInit();
- InitClass();
- CollectionChangeEventHandler value = SchemaChanged;
- base.Tables.CollectionChanged += value;
- base.Relations.CollectionChanged += value;
- EndInit();
- }
- [DebuggerNonUserCode]
- protected dsFrmLog(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["LogRecord"] != null)
- {
- base.Tables.Add(new LogRecordDataTable(dataSet.Tables["LogRecord"]));
- }
- 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()
- {
- dsFrmLog dsFrmLog = (dsFrmLog)base.Clone();
- dsFrmLog.InitVars();
- dsFrmLog.SchemaSerializationMode = SchemaSerializationMode;
- return dsFrmLog;
- }
- [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["LogRecord"] != null)
- {
- base.Tables.Add(new LogRecordDataTable(dataSet.Tables["LogRecord"]));
- }
- 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)
- {
- tableLogRecord = (LogRecordDataTable)base.Tables["LogRecord"];
- if (initTable && tableLogRecord != null)
- {
- tableLogRecord.InitVars();
- }
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- base.DataSetName = "dsFrmLog";
- base.Prefix = "";
- base.Namespace = "http://tempuri.org/dsFrmLog.xsd";
- base.EnforceConstraints = true;
- SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
- tableLogRecord = new LogRecordDataTable();
- base.Tables.Add(tableLogRecord);
- }
- [DebuggerNonUserCode]
- private bool ShouldSerializeLogRecord()
- {
- return false;
- }
- [DebuggerNonUserCode]
- private void SchemaChanged(object sender, CollectionChangeEventArgs e)
- {
- if (e.Action == CollectionChangeAction.Remove)
- {
- InitVars();
- }
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
- {
- dsFrmLog dsFrmLog = new dsFrmLog();
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- xs.Add(dsFrmLog.GetSchemaSerializable());
- XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
- xmlSchemaAny.Namespace = dsFrmLog.Namespace;
- xmlSchemaSequence.Items.Add(xmlSchemaAny);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- return xmlSchemaComplexType;
- }
- }
- }
|