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

📄 emp_brushidset.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(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编号.AutoIncrement = true;
                this.column编号.AllowDBNull = false;
                this.column编号.ReadOnly = true;
                this.column编号.Unique = true;
            }
            
            public Emp_BrushIDRow NewEmp_BrushIDRow() {
                return ((Emp_BrushIDRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new Emp_BrushIDRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(Emp_BrushIDRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.Emp_BrushIDRowChanged != null)) {
                    this.Emp_BrushIDRowChanged(this, new Emp_BrushIDRowChangeEvent(((Emp_BrushIDRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.Emp_BrushIDRowChanging != null)) {
                    this.Emp_BrushIDRowChanging(this, new Emp_BrushIDRowChangeEvent(((Emp_BrushIDRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.Emp_BrushIDRowDeleted != null)) {
                    this.Emp_BrushIDRowDeleted(this, new Emp_BrushIDRowChangeEvent(((Emp_BrushIDRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.Emp_BrushIDRowDeleting != null)) {
                    this.Emp_BrushIDRowDeleting(this, new Emp_BrushIDRowChangeEvent(((Emp_BrushIDRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveEmp_BrushIDRow(Emp_BrushIDRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Emp_BrushIDRow : DataRow {
            
            private Emp_BrushIDDataTable tableEmp_BrushID;
            
            internal Emp_BrushIDRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableEmp_BrushID = ((Emp_BrushIDDataTable)(this.Table));
            }
            
            public int 编号 {
                get {
                    return ((int)(this[this.tableEmp_BrushID.编号Column]));
                }
                set {
                    this[this.tableEmp_BrushID.编号Column] = value;
                }
            }
            
            public string 日期 {
                get {
                    try {
                        return ((string)(this[this.tableEmp_BrushID.日期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmp_BrushID.日期Column] = value;
                }
            }
            
            public string 职工名称 {
                get {
                    try {
                        return ((string)(this[this.tableEmp_BrushID.职工名称Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmp_BrushID.职工名称Column] = value;
                }
            }
            
            public string 上午上班 {
                get {
                    try {
                        return ((string)(this[this.tableEmp_BrushID.上午上班Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmp_BrushID.上午上班Column] = value;
                }
            }
            
            public string 上午下班 {
                get {
                    try {
                        return ((string)(this[this.tableEmp_BrushID.上午下班Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmp_BrushID.上午下班Column] = value;
                }
            }
            
            public string 下午上班 {
                get {
                    try {
                        return ((string)(this[this.tableEmp_BrushID.下午上班Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmp_BrushID.下午上班Column] = value;
                }
            }
            
            public string 下午下班 {
                get {
                    try {
                        return ((string)(this[this.tableEmp_BrushID.下午下班Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmp_BrushID.下午下班Column] = value;
                }
            }
            
            public string 状态 {
                get {
                    try {
                        return ((string)(this[this.tableEmp_BrushID.状态Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmp_BrushID.状态Column] = value;
                }
            }
            
            public bool Is日期Null() {
                return this.IsNull(this.tableEmp_BrushID.日期Column);
            }
            
            public void Set日期Null() {
                this[this.tableEmp_BrushID.日期Column] = System.Convert.DBNull;
            }
            
            public bool Is职工名称Null() {
                return this.IsNull(this.tableEmp_BrushID.职工名称Column);
            }
            
            public void Set职工名称Null() {
                this[this.tableEmp_BrushID.职工名称Column] = System.Convert.DBNull;
            }
            
            public bool Is上午上班Null() {
                return this.IsNull(this.tableEmp_BrushID.上午上班Column);
            }
            
            public void Set上午上班Null() {
                this[this.tableEmp_BrushID.上午上班Column] = System.Convert.DBNull;
            }
            
            public bool Is上午下班Null() {
                return this.IsNull(this.tableEmp_BrushID.上午下班Column);
            }
            
            public void Set上午下班Null() {
                this[this.tableEmp_BrushID.上午下班Column] = System.Convert.DBNull;
            }
            
            public bool Is下午上班Null() {
                return this.IsNull(this.tableEmp_BrushID.下午上班Column);
            }
            
            public void Set下午上班Null() {
                this[this.tableEmp_BrushID.下午上班Column] = System.Convert.DBNull;
            }
            
            public bool Is下午下班Null() {
                return this.IsNull(this.tableEmp_BrushID.下午下班Column);
            }
            
            public void Set下午下班Null() {
                this[this.tableEmp_BrushID.下午下班Column] = System.Convert.DBNull;
            }
            
            public bool Is状态Null() {
                return this.IsNull(this.tableEmp_BrushID.状态Column);
            }
            
            public void Set状态Null() {
                this[this.tableEmp_BrushID.状态Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Emp_BrushIDRowChangeEvent : EventArgs {
            
            private Emp_BrushIDRow eventRow;
            
            private DataRowAction eventAction;
            
            public Emp_BrushIDRowChangeEvent(Emp_BrushIDRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public Emp_BrushIDRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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