📄 dd.cs
字号:
}
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 维护周期, int 费用) {
维护表Row row维护表Row = ((维护表Row)(this.NewRow()));
row维护表Row.ItemArray = new object[] {
设备号,
维护人员,
维护周期,
费用};
this.Rows.Add(row维护表Row);
return row维护表Row;
}
public 维护表Row FindBy设备号维护人员(string 设备号, 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["维护周期"];
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(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设备号,
this.column维护人员}, true));
this.column设备号.AllowDBNull = false;
this.column维护人员.AllowDBNull = false;
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 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 + -