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

📄 connectionaccessset.cs

📁 独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 
💻 CS
📖 第 1 页 / 共 2 页
字号:
            public month10Row Addmonth10Row(string amorpm, System.DateTime comedate, System.DateTime day, string name) {
                month10Row rowmonth10Row = ((month10Row)(this.NewRow()));
                rowmonth10Row.ItemArray = new object[] {
                        amorpm,
                        comedate,
                        day,
                        name};
                this.Rows.Add(rowmonth10Row);
                return rowmonth10Row;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                month10DataTable cln = ((month10DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new month10DataTable();
            }
            
            internal void InitVars() {
                this.columnamorpm = this.Columns["amorpm"];
                this.columncomedate = this.Columns["comedate"];
                this.columnday = this.Columns["day"];
                this.columnname = this.Columns["name"];
            }
            
            private void InitClass() {
                this.columnamorpm = new DataColumn("amorpm", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnamorpm);
                this.columncomedate = new DataColumn("comedate", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columncomedate);
                this.columnday = new DataColumn("day", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnday);
                this.columnname = new DataColumn("name", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnname);
            }
            
            public month10Row Newmonth10Row() {
                return ((month10Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new month10Row(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(month10Row);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.month10RowChanged != null)) {
                    this.month10RowChanged(this, new month10RowChangeEvent(((month10Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.month10RowChanging != null)) {
                    this.month10RowChanging(this, new month10RowChangeEvent(((month10Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.month10RowDeleted != null)) {
                    this.month10RowDeleted(this, new month10RowChangeEvent(((month10Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.month10RowDeleting != null)) {
                    this.month10RowDeleting(this, new month10RowChangeEvent(((month10Row)(e.Row)), e.Action));
                }
            }
            
            public void Removemonth10Row(month10Row row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class month10Row : DataRow {
            
            private month10DataTable tablemonth10;
            
            internal month10Row(DataRowBuilder rb) : 
                    base(rb) {
                this.tablemonth10 = ((month10DataTable)(this.Table));
            }
            
            public string amorpm {
                get {
                    try {
                        return ((string)(this[this.tablemonth10.amorpmColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablemonth10.amorpmColumn] = value;
                }
            }
            
            public System.DateTime comedate {
                get {
                    try {
                        return ((System.DateTime)(this[this.tablemonth10.comedateColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablemonth10.comedateColumn] = value;
                }
            }
            
            public System.DateTime day {
                get {
                    try {
                        return ((System.DateTime)(this[this.tablemonth10.dayColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablemonth10.dayColumn] = value;
                }
            }
            
            public string name {
                get {
                    try {
                        return ((string)(this[this.tablemonth10.nameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablemonth10.nameColumn] = value;
                }
            }
            
            public bool IsamorpmNull() {
                return this.IsNull(this.tablemonth10.amorpmColumn);
            }
            
            public void SetamorpmNull() {
                this[this.tablemonth10.amorpmColumn] = System.Convert.DBNull;
            }
            
            public bool IscomedateNull() {
                return this.IsNull(this.tablemonth10.comedateColumn);
            }
            
            public void SetcomedateNull() {
                this[this.tablemonth10.comedateColumn] = System.Convert.DBNull;
            }
            
            public bool IsdayNull() {
                return this.IsNull(this.tablemonth10.dayColumn);
            }
            
            public void SetdayNull() {
                this[this.tablemonth10.dayColumn] = System.Convert.DBNull;
            }
            
            public bool IsnameNull() {
                return this.IsNull(this.tablemonth10.nameColumn);
            }
            
            public void SetnameNull() {
                this[this.tablemonth10.nameColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class month10RowChangeEvent : EventArgs {
            
            private month10Row eventRow;
            
            private DataRowAction eventAction;
            
            public month10RowChangeEvent(month10Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public month10Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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