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

📄 dataset11.cs

📁 图书馆管理系统源代码
💻 CS
📖 第 1 页 / 共 3 页
字号:
            public event 职员奖励表RowChangeEventHandler 职员奖励表RowDeleting;
            
            public void Add职员奖励表Row(职员奖励表Row row) {
                this.Rows.Add(row);
            }
            
            public 职员奖励表Row Add职员奖励表Row(string 职员编号, string 奖励类型, System.Double 奖励金额, string 是否计入工资, string 奖励原因, string 部门意见, int 奖励日期) {
                职员奖励表Row row职员奖励表Row = ((职员奖励表Row)(this.NewRow()));
                row职员奖励表Row.ItemArray = new object[] {
                        null,
                        职员编号,
                        奖励类型,
                        奖励金额,
                        是否计入工资,
                        奖励原因,
                        部门意见,
                        奖励日期};
                this.Rows.Add(row职员奖励表Row);
                return row职员奖励表Row;
            }
            
            public 职员奖励表Row FindBy序号(int 序号) {
                return ((职员奖励表Row)(this.Rows.Find(new object[] {
                            序号})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                职员奖励表DataTable cln = ((职员奖励表DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new 职员奖励表DataTable();
            }
            
            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["奖励原因"];
                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(System.Double), 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(int), 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 职员奖励表Row New职员奖励表Row() {
                return ((职员奖励表Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new 职员奖励表Row(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(职员奖励表Row);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.职员奖励表RowChanged != null)) {
                    this.职员奖励表RowChanged(this, new 职员奖励表RowChangeEvent(((职员奖励表Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.职员奖励表RowChanging != null)) {
                    this.职员奖励表RowChanging(this, new 职员奖励表RowChangeEvent(((职员奖励表Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.职员奖励表RowDeleted != null)) {
                    this.职员奖励表RowDeleted(this, new 职员奖励表RowChangeEvent(((职员奖励表Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.职员奖励表RowDeleting != null)) {
                    this.职员奖励表RowDeleting(this, new 职员奖励表RowChangeEvent(((职员奖励表Row)(e.Row)), e.Action));
                }
            }
            
            public void Remove职员奖励表Row(职员奖励表Row row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 职员奖励表Row : DataRow {
            
            private 职员奖励表DataTable table职员奖励表;
            
            internal 职员奖励表Row(DataRowBuilder rb) : 
                    base(rb) {
                this.table职员奖励表 = ((职员奖励表DataTable)(this.Table));
            }
            
            public int 序号 {
                get {
                    return ((int)(this[this.table职员奖励表.序号Column]));
                }
                set {
                    this[this.table职员奖励表.序号Column] = value;
                }
            }
            
            public string 职员编号 {
                get {
                    return ((string)(this[this.table职员奖励表.职员编号Column]));
                }
                set {
                    this[this.table职员奖励表.职员编号Column] = value;
                }
            }
            
            public string 奖励类型 {
                get {
                    try {
                        return ((string)(this[this.table职员奖励表.奖励类型Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table职员奖励表.奖励类型Column] = value;
                }
            }
            
            public System.Double 奖励金额 {
                get {
                    try {
                        return ((System.Double)(this[this.table职员奖励表.奖励金额Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table职员奖励表.奖励金额Column] = value;
                }
            }
            
            public string 是否计入工资 {
                get {
                    try {
                        return ((string)(this[this.table职员奖励表.是否计入工资Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table职员奖励表.是否计入工资Column] = value;
                }
            }
            
            public string 奖励原因 {
                get {
                    try {
                        return ((string)(this[this.table职员奖励表.奖励原因Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table职员奖励表.奖励原因Column] = value;
                }
            }
            
            public string 部门意见 {
                get {
                    try {
                        return ((string)(this[this.table职员奖励表.部门意见Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table职员奖励表.部门意见Column] = value;
                }
            }
            
            public int 奖励日期 {
                get {
                    try {
                        return ((int)(this[this.table职员奖励表.奖励日期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table职员奖励表.奖励日期Column] = value;
                }
            }
            
            public bool Is奖励类型Null() {
                return this.IsNull(this.table职员奖励表.奖励类型Column);
            }
            
            public void Set奖励类型Null() {
                this[this.table职员奖励表.奖励类型Column] = System.Convert.DBNull;
            }
            
            public bool Is奖励金额Null() {
                return this.IsNull(this.table职员奖励表.奖励金额Column);
            }
            
            public void Set奖励金额Null() {
                this[this.table职员奖励表.奖励金额Column] = System.Convert.DBNull;
            }
            
            public bool Is是否计入工资Null() {
                return this.IsNull(this.table职员奖励表.是否计入工资Column);
            }
            
            public void Set是否计入工资Null() {
                this[this.table职员奖励表.是否计入工资Column] = System.Convert.DBNull;
            }
            
            public bool Is奖励原因Null() {
                return this.IsNull(this.table职员奖励表.奖励原因Column);
            }
            
            public void Set奖励原因Null() {
                this[this.table职员奖励表.奖励原因Column] = System.Convert.DBNull;
            }
            
            public bool Is部门意见Null() {
                return this.IsNull(this.table职员奖励表.部门意见Column);
            }
            
            public void Set部门意见Null() {
                this[this.table职员奖励表.部门意见Column] = System.Convert.DBNull;
            }
            
            public bool Is奖励日期Null() {
                return this.IsNull(this.table职员奖励表.奖励日期Column);
            }
            
            public void Set奖励日期Null() {
                this[this.table职员奖励表.奖励日期Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 职员奖励表RowChangeEvent : EventArgs {
            
            private 职员奖励表Row eventRow;
            
            private DataRowAction eventAction;
            
            public 职员奖励表RowChangeEvent(职员奖励表Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public 职员奖励表Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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