system_popedomset.cs

来自「独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 」· CS 代码 · 共 359 行 · 第 1/2 页

CS
359
字号
            
            public System_PopedomTableRow this[int index] {
                get {
                    return ((System_PopedomTableRow)(this.Rows[index]));
                }
            }
            
            public event System_PopedomTableRowChangeEventHandler System_PopedomTableRowChanged;
            
            public event System_PopedomTableRowChangeEventHandler System_PopedomTableRowChanging;
            
            public event System_PopedomTableRowChangeEventHandler System_PopedomTableRowDeleted;
            
            public event System_PopedomTableRowChangeEventHandler System_PopedomTableRowDeleting;
            
            public void AddSystem_PopedomTableRow(System_PopedomTableRow row) {
                this.Rows.Add(row);
            }
            
            public System_PopedomTableRow AddSystem_PopedomTableRow(string 权限名称) {
                System_PopedomTableRow rowSystem_PopedomTableRow = ((System_PopedomTableRow)(this.NewRow()));
                rowSystem_PopedomTableRow.ItemArray = new object[] {
                        null,
                        权限名称};
                this.Rows.Add(rowSystem_PopedomTableRow);
                return rowSystem_PopedomTableRow;
            }
            
            public System_PopedomTableRow FindBy编号(int 编号) {
                return ((System_PopedomTableRow)(this.Rows.Find(new object[] {
                            编号})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                System_PopedomTableDataTable cln = ((System_PopedomTableDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new System_PopedomTableDataTable();
            }
            
            internal void InitVars() {
                this.column编号 = this.Columns["编号"];
                this.column权限名称 = this.Columns["权限名称"];
            }
            
            private void InitClass() {
                this.column编号 = new DataColumn("编号", typeof(int), 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编号.AutoIncrement = true;
                this.column编号.AllowDBNull = false;
                this.column编号.ReadOnly = true;
                this.column编号.Unique = true;
            }
            
            public System_PopedomTableRow NewSystem_PopedomTableRow() {
                return ((System_PopedomTableRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new System_PopedomTableRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(System_PopedomTableRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.System_PopedomTableRowChanged != null)) {
                    this.System_PopedomTableRowChanged(this, new System_PopedomTableRowChangeEvent(((System_PopedomTableRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.System_PopedomTableRowChanging != null)) {
                    this.System_PopedomTableRowChanging(this, new System_PopedomTableRowChangeEvent(((System_PopedomTableRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.System_PopedomTableRowDeleted != null)) {
                    this.System_PopedomTableRowDeleted(this, new System_PopedomTableRowChangeEvent(((System_PopedomTableRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.System_PopedomTableRowDeleting != null)) {
                    this.System_PopedomTableRowDeleting(this, new System_PopedomTableRowChangeEvent(((System_PopedomTableRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveSystem_PopedomTableRow(System_PopedomTableRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class System_PopedomTableRow : DataRow {
            
            private System_PopedomTableDataTable tableSystem_PopedomTable;
            
            internal System_PopedomTableRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableSystem_PopedomTable = ((System_PopedomTableDataTable)(this.Table));
            }
            
            public int 编号 {
                get {
                    return ((int)(this[this.tableSystem_PopedomTable.编号Column]));
                }
                set {
                    this[this.tableSystem_PopedomTable.编号Column] = value;
                }
            }
            
            public string 权限名称 {
                get {
                    try {
                        return ((string)(this[this.tableSystem_PopedomTable.权限名称Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableSystem_PopedomTable.权限名称Column] = value;
                }
            }
            
            public bool Is权限名称Null() {
                return this.IsNull(this.tableSystem_PopedomTable.权限名称Column);
            }
            
            public void Set权限名称Null() {
                this[this.tableSystem_PopedomTable.权限名称Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class System_PopedomTableRowChangeEvent : EventArgs {
            
            private System_PopedomTableRow eventRow;
            
            private DataRowAction eventAction;
            
            public System_PopedomTableRowChangeEvent(System_PopedomTableRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public System_PopedomTableRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?