📄 c.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 员工号, System.DateTime 维修日期, 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 员工号) {
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(System.DateTime), 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.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 System.DateTime 维修日期 {
get {
return ((System.DateTime)(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;
}
}
}
[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 + -