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

📄 dsstat.cs

📁 本书主要介绍了从基础开始建立Portal的快速应用开发过程(RAD)的方法。通过本书你可以了解到关于Oracle 9iAS Portal产品的主要特性、入口的开发和组织、网络开发和管理、实际的关系型数
💻 CS
📖 第 1 页 / 共 5 页
字号:
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new SarrListDataTable();
            }
            
            internal void InitVars() {
                this.columnItemName = this.Columns["ItemName"];
                this.columnType = this.Columns["Type"];
                this.columnMajor = this.Columns["Major"];
                this.columnEnroYear = this.Columns["EnroYear"];
            }
            
            private void InitClass() {
                this.columnItemName = new DataColumn("ItemName", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnItemName);
                this.columnType = new DataColumn("Type", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnType);
                this.columnMajor = new DataColumn("Major", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMajor);
                this.columnEnroYear = new DataColumn("EnroYear", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnEnroYear);
            }
            
            public SarrListRow NewSarrListRow() {
                return ((SarrListRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new SarrListRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(SarrListRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.SarrListRowChanged != null)) {
                    this.SarrListRowChanged(this, new SarrListRowChangeEvent(((SarrListRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.SarrListRowChanging != null)) {
                    this.SarrListRowChanging(this, new SarrListRowChangeEvent(((SarrListRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.SarrListRowDeleted != null)) {
                    this.SarrListRowDeleted(this, new SarrListRowChangeEvent(((SarrListRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.SarrListRowDeleting != null)) {
                    this.SarrListRowDeleting(this, new SarrListRowChangeEvent(((SarrListRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveSarrListRow(SarrListRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class SarrListRow : DataRow {
            
            private SarrListDataTable tableSarrList;
            
            internal SarrListRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableSarrList = ((SarrListDataTable)(this.Table));
            }
            
            public string ItemName {
                get {
                    try {
                        return ((string)(this[this.tableSarrList.ItemNameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableSarrList.ItemNameColumn] = value;
                }
            }
            
            public string Type {
                get {
                    try {
                        return ((string)(this[this.tableSarrList.TypeColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableSarrList.TypeColumn] = value;
                }
            }
            
            public string Major {
                get {
                    try {
                        return ((string)(this[this.tableSarrList.MajorColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableSarrList.MajorColumn] = value;
                }
            }
            
            public string EnroYear {
                get {
                    try {
                        return ((string)(this[this.tableSarrList.EnroYearColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableSarrList.EnroYearColumn] = value;
                }
            }
            
            public bool IsItemNameNull() {
                return this.IsNull(this.tableSarrList.ItemNameColumn);
            }
            
            public void SetItemNameNull() {
                this[this.tableSarrList.ItemNameColumn] = System.Convert.DBNull;
            }
            
            public bool IsTypeNull() {
                return this.IsNull(this.tableSarrList.TypeColumn);
            }
            
            public void SetTypeNull() {
                this[this.tableSarrList.TypeColumn] = System.Convert.DBNull;
            }
            
            public bool IsMajorNull() {
                return this.IsNull(this.tableSarrList.MajorColumn);
            }
            
            public void SetMajorNull() {
                this[this.tableSarrList.MajorColumn] = System.Convert.DBNull;
            }
            
            public bool IsEnroYearNull() {
                return this.IsNull(this.tableSarrList.EnroYearColumn);
            }
            
            public void SetEnroYearNull() {
                this[this.tableSarrList.EnroYearColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class SarrListRowChangeEvent : EventArgs {
            
            private SarrListRow eventRow;
            
            private DataRowAction eventAction;
            
            public SarrListRowChangeEvent(SarrListRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public SarrListRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class SOweFullInfoDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnStunumber;
            
            private DataColumn columnName;
            
            private DataColumn columnMoney;
            
            internal SOweFullInfoDataTable() : 
                    base("SOweFullInfo") {
                this.InitClass();
            }
            
            internal SOweFullInfoDataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn StunumberColumn {
                get {
                    return this.columnStunumber;
                }
            }
            
            internal DataColumn NameColumn {
                get {
                    return this.columnName;
                }
            }
            
            internal DataColumn MoneyColumn {
                get {
                    return this.columnMoney;
                }
            }
            
            public SOweFullInfoRow this[int index] {
                get {
                    return ((SOweFullInfoRow)(this.Rows[index]));
                }
            }
            
            public event SOweFullInfoRowChangeEventHandler SOweFullInfoRowChanged;
            
            public event SOweFullInfoRowChangeEventHandler SOweFullInfoRowChanging;
            
            public event SOweFullInfoRowChangeEventHandler SOweFullInfoRowDeleted;
            
            public event SOweFullInfoRowChangeEventHandler SOweFullInfoRowDeleting;
            
            public void AddSOweFullInfoRow(SOweFullInfoRow row) {
                this.Rows.Add(row);
            }
            
            public SOweFullInfoRow AddSOweFullInfoRow(string Stunumber, string Name, System.Double Money) {
                SOweFullInfoRow rowSOweFullInfoRow = ((SOweFullInfoRow)(this.NewRow()));
                rowSOweFullInfoRow.ItemArray = new object[] {
                        Stunumber,
                        Name,
                        Money};
                this.Rows.Add(rowSOweFullInfoRow);
                return rowSOweFullInfoRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                SOweFullInfoDataTable cln = ((SOweFullInfoDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new SOweFullInfoDataTable();
            }
            
            internal void InitVars() {
                this.columnStunumber = this.Columns["Stunumber"];
                this.columnName = this.Columns["Name"];
                this.columnMoney = this.Columns["Money"];
            }
            
            private void InitClass() {
                this.columnStunumber = new DataColumn("Stunumber", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStunumber);
                this.columnName = new DataColumn("Name", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnName);
                this.columnMoney = new DataColumn("Money", typeof(System.Double), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMoney);
            }
            
            public SOweFullInfoRow NewSOweFullInfoRow() {
                return ((SOweFullInfoRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new SOweFullInfoRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(SOweFullInfoRow);
            }
            

⌨️ 快捷键说明

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