dataset2.cs
来自「ASP.NET的一些开发实例,有论坛管理系统等」· CS 代码 · 共 550 行 · 第 1/2 页
CS
550 行
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.0.3705.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
namespace WorkGroupService.task {
using System;
using System.Data;
using System.Xml;
using System.Runtime.Serialization;
[Serializable()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Diagnostics.DebuggerStepThrough()]
[System.ComponentModel.ToolboxItem(true)]
public class DataSet2 : DataSet {
private 工作记录表DataTable table工作记录表;
public DataSet2() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected DataSet2(SerializationInfo info, StreamingContext context) {
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((strSchema != null)) {
DataSet ds = new DataSet();
ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
if ((ds.Tables["工作记录表"] != null)) {
this.Tables.Add(new 工作记录表DataTable(ds.Tables["工作记录表"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.InitClass();
}
this.GetSerializationData(info, context);
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public 工作记录表DataTable 工作记录表 {
get {
return this.table工作记录表;
}
}
public override DataSet Clone() {
DataSet2 cln = ((DataSet2)(base.Clone()));
cln.InitVars();
return cln;
}
protected override bool ShouldSerializeTables() {
return false;
}
protected override bool ShouldSerializeRelations() {
return false;
}
protected override void ReadXmlSerializable(XmlReader reader) {
this.Reset();
DataSet ds = new DataSet();
ds.ReadXml(reader);
if ((ds.Tables["工作记录表"] != null)) {
this.Tables.Add(new 工作记录表DataTable(ds.Tables["工作记录表"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
this.InitVars();
}
protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
System.IO.MemoryStream stream = new System.IO.MemoryStream();
this.WriteXmlSchema(new XmlTextWriter(stream, null));
stream.Position = 0;
return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
}
internal void InitVars() {
this.table工作记录表 = ((工作记录表DataTable)(this.Tables["工作记录表"]));
if ((this.table工作记录表 != null)) {
this.table工作记录表.InitVars();
}
}
private void InitClass() {
this.DataSetName = "DataSet2";
this.Prefix = "";
this.Namespace = "http://www.tempuri.org/DataSet2.xsd";
this.Locale = new System.Globalization.CultureInfo("zh-CN");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.table工作记录表 = new 工作记录表DataTable();
this.Tables.Add(this.table工作记录表);
}
private bool ShouldSerialize工作记录表() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void 工作记录表RowChangeEventHandler(object sender, 工作记录表RowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class 工作记录表DataTable : DataTable, System.Collections.IEnumerable {
private DataColumn column任务编号;
private DataColumn column执行人;
private DataColumn column任务内容;
private DataColumn column填写时间;
private DataColumn column发布人;
private DataColumn column发布人是否浏览;
private DataColumn column发布人填写时间;
private DataColumn column发布人填写内容;
private DataColumn column执行人是否浏览;
internal 工作记录表DataTable() :
base("工作记录表") {
this.InitClass();
}
internal 工作记录表DataTable(DataTable table) :
base(table.TableName) {
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
this.DisplayExpression = table.DisplayExpression;
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
internal DataColumn 任务编号Column {
get {
return this.column任务编号;
}
}
internal DataColumn 执行人Column {
get {
return this.column执行人;
}
}
internal DataColumn 任务内容Column {
get {
return this.column任务内容;
}
}
internal DataColumn 填写时间Column {
get {
return this.column填写时间;
}
}
internal DataColumn 发布人Column {
get {
return this.column发布人;
}
}
internal DataColumn 发布人是否浏览Column {
get {
return this.column发布人是否浏览;
}
}
internal DataColumn 发布人填写时间Column {
get {
return this.column发布人填写时间;
}
}
internal DataColumn 发布人填写内容Column {
get {
return this.column发布人填写内容;
}
}
internal DataColumn 执行人是否浏览Column {
get {
return this.column执行人是否浏览;
}
}
public 工作记录表Row this[int index] {
get {
return ((工作记录表Row)(this.Rows[index]));
}
}
public event 工作记录表RowChangeEventHandler 工作记录表RowChanged;
public event 工作记录表RowChangeEventHandler 工作记录表RowChanging;
public event 工作记录表RowChangeEventHandler 工作记录表RowDeleted;
public event 工作记录表RowChangeEventHandler 工作记录表RowDeleting;
public void Add工作记录表Row(工作记录表Row row) {
this.Rows.Add(row);
}
public 工作记录表Row Add工作记录表Row(string 任务编号, string 执行人, string 任务内容, System.DateTime 填写时间, string 发布人, string 发布人是否浏览, System.DateTime 发布人填写时间, string 发布人填写内容, string 执行人是否浏览) {
工作记录表Row row工作记录表Row = ((工作记录表Row)(this.NewRow()));
row工作记录表Row.ItemArray = new object[] {
任务编号,
执行人,
任务内容,
填写时间,
发布人,
发布人是否浏览,
发布人填写时间,
发布人填写内容,
执行人是否浏览};
this.Rows.Add(row工作记录表Row);
return row工作记录表Row;
}
public 工作记录表Row FindBy任务编号执行人填写时间(string 任务编号, string 执行人, System.DateTime 填写时间) {
return ((工作记录表Row)(this.Rows.Find(new object[] {
任务编号,
执行人,
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?