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

📄 leavetableset.cs

📁 独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 
💻 CS
📖 第 1 页 / 共 2 页
字号:
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                Employee_LeaveTableDataTable cln = ((Employee_LeaveTableDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new Employee_LeaveTableDataTable();
            }
            
            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(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 Employee_LeaveTableRow NewEmployee_LeaveTableRow() {
                return ((Employee_LeaveTableRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new Employee_LeaveTableRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(Employee_LeaveTableRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.Employee_LeaveTableRowChanged != null)) {
                    this.Employee_LeaveTableRowChanged(this, new Employee_LeaveTableRowChangeEvent(((Employee_LeaveTableRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.Employee_LeaveTableRowChanging != null)) {
                    this.Employee_LeaveTableRowChanging(this, new Employee_LeaveTableRowChangeEvent(((Employee_LeaveTableRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.Employee_LeaveTableRowDeleted != null)) {
                    this.Employee_LeaveTableRowDeleted(this, new Employee_LeaveTableRowChangeEvent(((Employee_LeaveTableRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.Employee_LeaveTableRowDeleting != null)) {
                    this.Employee_LeaveTableRowDeleting(this, new Employee_LeaveTableRowChangeEvent(((Employee_LeaveTableRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveEmployee_LeaveTableRow(Employee_LeaveTableRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Employee_LeaveTableRow : DataRow {
            
            private Employee_LeaveTableDataTable tableEmployee_LeaveTable;
            
            internal Employee_LeaveTableRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableEmployee_LeaveTable = ((Employee_LeaveTableDataTable)(this.Table));
            }
            
            public int 编号 {
                get {
                    return ((int)(this[this.tableEmployee_LeaveTable.编号Column]));
                }
                set {
                    this[this.tableEmployee_LeaveTable.编号Column] = value;
                }
            }
            
            public string 职工名称 {
                get {
                    try {
                        return ((string)(this[this.tableEmployee_LeaveTable.职工名称Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmployee_LeaveTable.职工名称Column] = value;
                }
            }
            
            public string 日期 {
                get {
                    try {
                        return ((string)(this[this.tableEmployee_LeaveTable.日期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmployee_LeaveTable.日期Column] = value;
                }
            }
            
            public string 请假天数 {
                get {
                    try {
                        return ((string)(this[this.tableEmployee_LeaveTable.请假天数Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmployee_LeaveTable.请假天数Column] = value;
                }
            }
            
            public string 请假原因 {
                get {
                    try {
                        return ((string)(this[this.tableEmployee_LeaveTable.请假原因Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmployee_LeaveTable.请假原因Column] = value;
                }
            }
            
            public string 请假次数 {
                get {
                    try {
                        return ((string)(this[this.tableEmployee_LeaveTable.请假次数Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableEmployee_LeaveTable.请假次数Column] = value;
                }
            }
            
            public bool Is职工名称Null() {
                return this.IsNull(this.tableEmployee_LeaveTable.职工名称Column);
            }
            
            public void Set职工名称Null() {
                this[this.tableEmployee_LeaveTable.职工名称Column] = System.Convert.DBNull;
            }
            
            public bool Is日期Null() {
                return this.IsNull(this.tableEmployee_LeaveTable.日期Column);
            }
            
            public void Set日期Null() {
                this[this.tableEmployee_LeaveTable.日期Column] = System.Convert.DBNull;
            }
            
            public bool Is请假天数Null() {
                return this.IsNull(this.tableEmployee_LeaveTable.请假天数Column);
            }
            
            public void Set请假天数Null() {
                this[this.tableEmployee_LeaveTable.请假天数Column] = System.Convert.DBNull;
            }
            
            public bool Is请假原因Null() {
                return this.IsNull(this.tableEmployee_LeaveTable.请假原因Column);
            }
            
            public void Set请假原因Null() {
                this[this.tableEmployee_LeaveTable.请假原因Column] = System.Convert.DBNull;
            }
            
            public bool Is请假次数Null() {
                return this.IsNull(this.tableEmployee_LeaveTable.请假次数Column);
            }
            
            public void Set请假次数Null() {
                this[this.tableEmployee_LeaveTable.请假次数Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Employee_LeaveTableRowChangeEvent : EventArgs {
            
            private Employee_LeaveTableRow eventRow;
            
            private DataRowAction eventAction;
            
            public Employee_LeaveTableRowChangeEvent(Employee_LeaveTableRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public Employee_LeaveTableRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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