📄 ff.cs
字号:
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
namespace shebeiguanli {
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 ff : DataSet {
private 设备折旧表DataTable table设备折旧表;
public ff() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected ff(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() {
ff cln = ((ff)(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 = "ff";
this.Prefix = "";
this.Namespace = "http://www.tempuri.org/ff.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折旧值;
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折旧值;
}
}
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 设备号, int 原值, int 折旧值) {
设备折旧表Row row设备折旧表Row = ((设备折旧表Row)(this.NewRow()));
row设备折旧表Row.ItemArray = new object[] {
设备号,
原值,
折旧值};
this.Rows.Add(row设备折旧表Row);
return row设备折旧表Row;
}
public 设备折旧表Row FindBy设备号(string 设备号) {
return ((设备折旧表Row)(this.Rows.Find(new object[] {
设备号})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
设备折旧表DataTable cln = ((设备折旧表DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new 设备折旧表DataTable();
}
internal void InitVars() {
this.column设备号 = this.Columns["设备号"];
this.column原值 = this.Columns["原值"];
this.column折旧值 = this.Columns["折旧值"];
}
private void InitClass() {
this.column设备号 = new DataColumn("设备号", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column设备号);
this.column原值 = new DataColumn("原值", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.column原值);
this.column折旧值 = new DataColumn("折旧值", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.column折旧值);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column设备号}, true));
this.column设备号.AllowDBNull = false;
this.column设备号.Unique = true;
this.column原值.AllowDBNull = false;
this.column折旧值.AllowDBNull = false;
}
public 设备折旧表Row New设备折旧表Row() {
return ((设备折旧表Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new 设备折旧表Row(builder);
}
protected override System.Type GetRowType() {
return typeof(设备折旧表Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.设备折旧表RowChanged != null)) {
this.设备折旧表RowChanged(this, new 设备折旧表RowChangeEvent(((设备折旧表Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.设备折旧表RowChanging != null)) {
this.设备折旧表RowChanging(this, new 设备折旧表RowChangeEvent(((设备折旧表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.设备折旧表RowDeleted != null)) {
this.设备折旧表RowDeleted(this, new 设备折旧表RowChangeEvent(((设备折旧表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.设备折旧表RowDeleting != null)) {
this.设备折旧表RowDeleting(this, new 设备折旧表RowChangeEvent(((设备折旧表Row)(e.Row)), e.Action));
}
}
public void Remove设备折旧表Row(设备折旧表Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 设备折旧表Row : DataRow {
private 设备折旧表DataTable table设备折旧表;
internal 设备折旧表Row(DataRowBuilder rb) :
base(rb) {
this.table设备折旧表 = ((设备折旧表DataTable)(this.Table));
}
public string 设备号 {
get {
return ((string)(this[this.table设备折旧表.设备号Column]));
}
set {
this[this.table设备折旧表.设备号Column] = value;
}
}
public int 原值 {
get {
return ((int)(this[this.table设备折旧表.原值Column]));
}
set {
this[this.table设备折旧表.原值Column] = value;
}
}
public int 折旧值 {
get {
return ((int)(this[this.table设备折旧表.折旧值Column]));
}
set {
this[this.table设备折旧表.折旧值Column] = value;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 设备折旧表RowChangeEvent : EventArgs {
private 设备折旧表Row eventRow;
private DataRowAction eventAction;
public 设备折旧表RowChangeEvent(设备折旧表Row row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public 设备折旧表Row Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -