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

📄 kaoqinmanagerset.cs

📁 独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 
💻 CS
📖 第 1 页 / 共 2 页
字号:
                this.column编号 = this.Columns["编号"];
                this.column日期 = this.Columns["日期"];
                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(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(int), 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未到人数 = new DataColumn("未到人数", typeof(int), 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状态 = 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 KaoQinManager_HistoryRow NewKaoQinManager_HistoryRow() {
                return ((KaoQinManager_HistoryRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new KaoQinManager_HistoryRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(KaoQinManager_HistoryRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.KaoQinManager_HistoryRowChanged != null)) {
                    this.KaoQinManager_HistoryRowChanged(this, new KaoQinManager_HistoryRowChangeEvent(((KaoQinManager_HistoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.KaoQinManager_HistoryRowChanging != null)) {
                    this.KaoQinManager_HistoryRowChanging(this, new KaoQinManager_HistoryRowChangeEvent(((KaoQinManager_HistoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.KaoQinManager_HistoryRowDeleted != null)) {
                    this.KaoQinManager_HistoryRowDeleted(this, new KaoQinManager_HistoryRowChangeEvent(((KaoQinManager_HistoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.KaoQinManager_HistoryRowDeleting != null)) {
                    this.KaoQinManager_HistoryRowDeleting(this, new KaoQinManager_HistoryRowChangeEvent(((KaoQinManager_HistoryRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveKaoQinManager_HistoryRow(KaoQinManager_HistoryRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class KaoQinManager_HistoryRow : DataRow {
            
            private KaoQinManager_HistoryDataTable tableKaoQinManager_History;
            
            internal KaoQinManager_HistoryRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableKaoQinManager_History = ((KaoQinManager_HistoryDataTable)(this.Table));
            }
            
            public int 编号 {
                get {
                    return ((int)(this[this.tableKaoQinManager_History.编号Column]));
                }
                set {
                    this[this.tableKaoQinManager_History.编号Column] = value;
                }
            }
            
            public string 日期 {
                get {
                    try {
                        return ((string)(this[this.tableKaoQinManager_History.日期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaoQinManager_History.日期Column] = value;
                }
            }
            
            public string 时间 {
                get {
                    try {
                        return ((string)(this[this.tableKaoQinManager_History.时间Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaoQinManager_History.时间Column] = value;
                }
            }
            
            public int 早退人数 {
                get {
                    try {
                        return ((int)(this[this.tableKaoQinManager_History.早退人数Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaoQinManager_History.早退人数Column] = value;
                }
            }
            
            public int 迟到人数 {
                get {
                    try {
                        return ((int)(this[this.tableKaoQinManager_History.迟到人数Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaoQinManager_History.迟到人数Column] = value;
                }
            }
            
            public int 未到人数 {
                get {
                    try {
                        return ((int)(this[this.tableKaoQinManager_History.未到人数Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaoQinManager_History.未到人数Column] = value;
                }
            }
            
            public int 请假人数 {
                get {
                    try {
                        return ((int)(this[this.tableKaoQinManager_History.请假人数Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaoQinManager_History.请假人数Column] = value;
                }
            }
            
            public string 状态 {
                get {
                    try {
                        return ((string)(this[this.tableKaoQinManager_History.状态Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableKaoQinManager_History.状态Column] = value;
                }
            }
            
            public bool Is日期Null() {
                return this.IsNull(this.tableKaoQinManager_History.日期Column);
            }
            
            public void Set日期Null() {
                this[this.tableKaoQinManager_History.日期Column] = System.Convert.DBNull;
            }
            
            public bool Is时间Null() {
                return this.IsNull(this.tableKaoQinManager_History.时间Column);
            }
            
            public void Set时间Null() {
                this[this.tableKaoQinManager_History.时间Column] = System.Convert.DBNull;
            }
            
            public bool Is早退人数Null() {
                return this.IsNull(this.tableKaoQinManager_History.早退人数Column);
            }
            
            public void Set早退人数Null() {
                this[this.tableKaoQinManager_History.早退人数Column] = System.Convert.DBNull;
            }
            
            public bool Is迟到人数Null() {
                return this.IsNull(this.tableKaoQinManager_History.迟到人数Column);
            }
            
            public void Set迟到人数Null() {
                this[this.tableKaoQinManager_History.迟到人数Column] = System.Convert.DBNull;
            }
            
            public bool Is未到人数Null() {
                return this.IsNull(this.tableKaoQinManager_History.未到人数Column);
            }
            
            public void Set未到人数Null() {
                this[this.tableKaoQinManager_History.未到人数Column] = System.Convert.DBNull;
            }
            
            public bool Is请假人数Null() {
                return this.IsNull(this.tableKaoQinManager_History.请假人数Column);
            }
            
            public void Set请假人数Null() {
                this[this.tableKaoQinManager_History.请假人数Column] = System.Convert.DBNull;
            }
            
            public bool Is状态Null() {
                return this.IsNull(this.tableKaoQinManager_History.状态Column);
            }
            
            public void Set状态Null() {
                this[this.tableKaoQinManager_History.状态Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class KaoQinManager_HistoryRowChangeEvent : EventArgs {
            
            private KaoQinManager_HistoryRow eventRow;
            
            private DataRowAction eventAction;
            
            public KaoQinManager_HistoryRowChangeEvent(KaoQinManager_HistoryRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public KaoQinManager_HistoryRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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