⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d.cs

📁 CSHARP下编写的数据库设备管理系统 SQL SERVER
💻 CS
📖 第 1 页 / 共 2 页
字号:
            public event 设备维修RowChangeEventHandler 设备维修RowDeleting;
            
            public void Add设备维修Row(设备维修Row row) {
                this.Rows.Add(row);
            }
            
            public 设备维修Row Add设备维修Row(string 设备号, string 维修员号, System.DateTime 维修日期, int 维修费用) {
                设备维修Row row设备维修Row = ((设备维修Row)(this.NewRow()));
                row设备维修Row.ItemArray = new object[] {
                        设备号,
                        维修员号,
                        维修日期,
                        维修费用};
                this.Rows.Add(row设备维修Row);
                return row设备维修Row;
            }
            
            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(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column维修费用);
                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 {
                    try {
                        return ((string)(this[this.table设备维修.维修员号Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table设备维修.维修员号Column] = value;
                }
            }
            
            public System.DateTime 维修日期 {
                get {
                    try {
                        return ((System.DateTime)(this[this.table设备维修.维修日期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table设备维修.维修日期Column] = value;
                }
            }
            
            public int 维修费用 {
                get {
                    try {
                        return ((int)(this[this.table设备维修.维修费用Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table设备维修.维修费用Column] = value;
                }
            }
            
            public bool Is维修员号Null() {
                return this.IsNull(this.table设备维修.维修员号Column);
            }
            
            public void Set维修员号Null() {
                this[this.table设备维修.维修员号Column] = System.Convert.DBNull;
            }
            
            public bool Is维修日期Null() {
                return this.IsNull(this.table设备维修.维修日期Column);
            }
            
            public void Set维修日期Null() {
                this[this.table设备维修.维修日期Column] = System.Convert.DBNull;
            }
            
            public bool Is维修费用Null() {
                return this.IsNull(this.table设备维修.维修费用Column);
            }
            
            public void Set维修费用Null() {
                this[this.table设备维修.维修费用Column] = System.Convert.DBNull;
            }
        }
        
        [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 + -