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

📄 b.cs

📁 CSHARP下编写的数据库设备管理系统 SQL SERVER
💻 CS
📖 第 1 页 / 共 2 页
字号:
                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 负责人, string 电话, string 办公室) {
                部门表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["负责人"];
                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(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.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;
                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 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;
                }
            }
        }
        
        [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 + -