📄 ddd.cs
字号:
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 种类名, 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(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.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 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;
}
}
}
[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 + -