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

📄 removebrushid.cs

📁 独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 
💻 CS
📖 第 1 页 / 共 2 页
字号:
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                BrushFrameHistoryDataTable cln = ((BrushFrameHistoryDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new BrushFrameHistoryDataTable();
            }
            
            internal void InitVars() {
                this.column编号 = this.Columns["编号"];
                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(int), 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.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编号.AutoIncrement = true;
                this.column编号.AllowDBNull = false;
                this.column编号.ReadOnly = true;
                this.column编号.Unique = true;
            }
            
            public BrushFrameHistoryRow NewBrushFrameHistoryRow() {
                return ((BrushFrameHistoryRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new BrushFrameHistoryRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(BrushFrameHistoryRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.BrushFrameHistoryRowChanged != null)) {
                    this.BrushFrameHistoryRowChanged(this, new BrushFrameHistoryRowChangeEvent(((BrushFrameHistoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.BrushFrameHistoryRowChanging != null)) {
                    this.BrushFrameHistoryRowChanging(this, new BrushFrameHistoryRowChangeEvent(((BrushFrameHistoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.BrushFrameHistoryRowDeleted != null)) {
                    this.BrushFrameHistoryRowDeleted(this, new BrushFrameHistoryRowChangeEvent(((BrushFrameHistoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.BrushFrameHistoryRowDeleting != null)) {
                    this.BrushFrameHistoryRowDeleting(this, new BrushFrameHistoryRowChangeEvent(((BrushFrameHistoryRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveBrushFrameHistoryRow(BrushFrameHistoryRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class BrushFrameHistoryRow : DataRow {
            
            private BrushFrameHistoryDataTable tableBrushFrameHistory;
            
            internal BrushFrameHistoryRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableBrushFrameHistory = ((BrushFrameHistoryDataTable)(this.Table));
            }
            
            public int 编号 {
                get {
                    return ((int)(this[this.tableBrushFrameHistory.编号Column]));
                }
                set {
                    this[this.tableBrushFrameHistory.编号Column] = value;
                }
            }
            
            public System.DateTime 日期 {
                get {
                    try {
                        return ((System.DateTime)(this[this.tableBrushFrameHistory.日期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBrushFrameHistory.日期Column] = value;
                }
            }
            
            public string 时间 {
                get {
                    try {
                        return ((string)(this[this.tableBrushFrameHistory.时间Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBrushFrameHistory.时间Column] = value;
                }
            }
            
            public string 卡号 {
                get {
                    try {
                        return ((string)(this[this.tableBrushFrameHistory.卡号Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBrushFrameHistory.卡号Column] = value;
                }
            }
            
            public string 姓名 {
                get {
                    try {
                        return ((string)(this[this.tableBrushFrameHistory.姓名Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBrushFrameHistory.姓名Column] = value;
                }
            }
            
            public string 状态 {
                get {
                    try {
                        return ((string)(this[this.tableBrushFrameHistory.状态Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBrushFrameHistory.状态Column] = value;
                }
            }
            
            public bool Is日期Null() {
                return this.IsNull(this.tableBrushFrameHistory.日期Column);
            }
            
            public void Set日期Null() {
                this[this.tableBrushFrameHistory.日期Column] = System.Convert.DBNull;
            }
            
            public bool Is时间Null() {
                return this.IsNull(this.tableBrushFrameHistory.时间Column);
            }
            
            public void Set时间Null() {
                this[this.tableBrushFrameHistory.时间Column] = System.Convert.DBNull;
            }
            
            public bool Is卡号Null() {
                return this.IsNull(this.tableBrushFrameHistory.卡号Column);
            }
            
            public void Set卡号Null() {
                this[this.tableBrushFrameHistory.卡号Column] = System.Convert.DBNull;
            }
            
            public bool Is姓名Null() {
                return this.IsNull(this.tableBrushFrameHistory.姓名Column);
            }
            
            public void Set姓名Null() {
                this[this.tableBrushFrameHistory.姓名Column] = System.Convert.DBNull;
            }
            
            public bool Is状态Null() {
                return this.IsNull(this.tableBrushFrameHistory.状态Column);
            }
            
            public void Set状态Null() {
                this[this.tableBrushFrameHistory.状态Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class BrushFrameHistoryRowChangeEvent : EventArgs {
            
            private BrushFrameHistoryRow eventRow;
            
            private DataRowAction eventAction;
            
            public BrushFrameHistoryRowChangeEvent(BrushFrameHistoryRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public BrushFrameHistoryRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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