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

📄 datakaoqinset.cs

📁 独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 
💻 CS
📖 第 1 页 / 共 2 页
字号:
                rowKaHaoData_HistoryRow.ItemArray = new object[] {
                        null,
                        日期,
                        时间,
                        操作员,
                        状态};
                this.Rows.Add(rowKaHaoData_HistoryRow);
                return rowKaHaoData_HistoryRow;
            }
            
            public KaHaoData_HistoryRow FindBy编号(int 编号) {
                return ((KaHaoData_HistoryRow)(this.Rows.Find(new object[] {
                            编号})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                KaHaoData_HistoryDataTable cln = ((KaHaoData_HistoryDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new KaHaoData_HistoryDataTable();
            }
            
            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(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.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;
                this.column日期.AllowDBNull = false;
            }
            
            public KaHaoData_HistoryRow NewKaHaoData_HistoryRow() {
                return ((KaHaoData_HistoryRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new KaHaoData_HistoryRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(KaHaoData_HistoryRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.KaHaoData_HistoryRowChanged != null)) {
                    this.KaHaoData_HistoryRowChanged(this, new KaHaoData_HistoryRowChangeEvent(((KaHaoData_HistoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.KaHaoData_HistoryRowChanging != null)) {
                    this.KaHaoData_HistoryRowChanging(this, new KaHaoData_HistoryRowChangeEvent(((KaHaoData_HistoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.KaHaoData_HistoryRowDeleted != null)) {
                    this.KaHaoData_HistoryRowDeleted(this, new KaHaoData_HistoryRowChangeEvent(((KaHaoData_HistoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.KaHaoData_HistoryRowDeleting != null)) {
                    this.KaHaoData_HistoryRowDeleting(this, new KaHaoData_HistoryRowChangeEvent(((KaHaoData_HistoryRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveKaHaoData_HistoryRow(KaHaoData_HistoryRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class KaHaoData_HistoryRow : DataRow {
            
            private KaHaoData_HistoryDataTable tableKaHaoData_History;
            
            internal KaHaoData_HistoryRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableKaHaoData_History = ((KaHaoData_HistoryDataTable)(this.Table));
            }
            
            public int 编号 {
                get {
                    return ((int)(this[this.tableKaHaoData_History.编号Column]));
                }
                set {
                    this[this.tableKaHaoData_History.编号Column] = value;
                }
            }
            
            public string 日期 {
                get {
                    return ((string)(this[this.tableKaHaoData_History.日期Column]));
                }
                set {
                    this[this.tableKaHaoData_History.日期Column] = value;
                }
            }
            
            public string 时间 {
                get {
                    try {
                        return ((string)(this[this.tableKaHaoData_History.时间Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaHaoData_History.时间Column] = value;
                }
            }
            
            public string 操作员 {
                get {
                    try {
                        return ((string)(this[this.tableKaHaoData_History.操作员Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaHaoData_History.操作员Column] = value;
                }
            }
            
            public string 状态 {
                get {
                    try {
                        return ((string)(this[this.tableKaHaoData_History.状态Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaHaoData_History.状态Column] = value;
                }
            }
            
            public bool Is时间Null() {
                return this.IsNull(this.tableKaHaoData_History.时间Column);
            }
            
            public void Set时间Null() {
                this[this.tableKaHaoData_History.时间Column] = System.Convert.DBNull;
            }
            
            public bool Is操作员Null() {
                return this.IsNull(this.tableKaHaoData_History.操作员Column);
            }
            
            public void Set操作员Null() {
                this[this.tableKaHaoData_History.操作员Column] = System.Convert.DBNull;
            }
            
            public bool Is状态Null() {
                return this.IsNull(this.tableKaHaoData_History.状态Column);
            }
            
            public void Set状态Null() {
                this[this.tableKaHaoData_History.状态Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class KaHaoData_HistoryRowChangeEvent : EventArgs {
            
            private KaHaoData_HistoryRow eventRow;
            
            private DataRowAction eventAction;
            
            public KaHaoData_HistoryRowChangeEvent(KaHaoData_HistoryRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public KaHaoData_HistoryRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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