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

📄 accountdata.cs

📁 会员管理系统
💻 CS
📖 第 1 页 / 共 3 页
字号:
            }
            
            internal DataColumn PayTypeColumn {
                get {
                    return this.columnPayType;
                }
            }
            
            internal DataColumn CalTypeColumn {
                get {
                    return this.columnCalType;
                }
            }
            
            internal DataColumn BalanceChgNumColumn {
                get {
                    return this.columnBalanceChgNum;
                }
            }
            
            internal DataColumn RemarkColumn {
                get {
                    return this.columnRemark;
                }
            }
            
            public AccountHistoryInfoRow this[int index] {
                get {
                    return ((AccountHistoryInfoRow)(this.Rows[index]));
                }
            }
            
            public event AccountHistoryInfoRowChangeEventHandler AccountHistoryInfoRowChanged;
            
            public event AccountHistoryInfoRowChangeEventHandler AccountHistoryInfoRowChanging;
            
            public event AccountHistoryInfoRowChangeEventHandler AccountHistoryInfoRowDeleted;
            
            public event AccountHistoryInfoRowChangeEventHandler AccountHistoryInfoRowDeleting;
            
            public void AddAccountHistoryInfoRow(AccountHistoryInfoRow row) {
                this.Rows.Add(row);
            }
            
            public AccountHistoryInfoRow AddAccountHistoryInfoRow(string AccountID, string BalanceChgType, System.DateTime BalanceChgDate, string PayType, string CalType, System.Decimal BalanceChgNum, string Remark) {
                AccountHistoryInfoRow rowAccountHistoryInfoRow = ((AccountHistoryInfoRow)(this.NewRow()));
                rowAccountHistoryInfoRow.ItemArray = new object[] {
                        AccountID,
                        BalanceChgType,
                        BalanceChgDate,
                        PayType,
                        CalType,
                        BalanceChgNum,
                        Remark};
                this.Rows.Add(rowAccountHistoryInfoRow);
                return rowAccountHistoryInfoRow;
            }
            
            public AccountHistoryInfoRow FindByAccountIDBalanceChgTypeBalanceChgDate(string AccountID, string BalanceChgType, System.DateTime BalanceChgDate) {
                return ((AccountHistoryInfoRow)(this.Rows.Find(new object[] {
                            AccountID,
                            BalanceChgType,
                            BalanceChgDate})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                AccountHistoryInfoDataTable cln = ((AccountHistoryInfoDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new AccountHistoryInfoDataTable();
            }
            
            internal void InitVars() {
                this.columnAccountID = this.Columns["AccountID"];
                this.columnBalanceChgType = this.Columns["BalanceChgType"];
                this.columnBalanceChgDate = this.Columns["BalanceChgDate"];
                this.columnPayType = this.Columns["PayType"];
                this.columnCalType = this.Columns["CalType"];
                this.columnBalanceChgNum = this.Columns["BalanceChgNum"];
                this.columnRemark = this.Columns["Remark"];
            }
            
            private void InitClass() {
                this.columnAccountID = new DataColumn("AccountID", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAccountID);
                this.columnBalanceChgType = new DataColumn("BalanceChgType", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBalanceChgType);
                this.columnBalanceChgDate = new DataColumn("BalanceChgDate", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBalanceChgDate);
                this.columnPayType = new DataColumn("PayType", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPayType);
                this.columnCalType = new DataColumn("CalType", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCalType);
                this.columnBalanceChgNum = new DataColumn("BalanceChgNum", typeof(System.Decimal), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBalanceChgNum);
                this.columnRemark = new DataColumn("Remark", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRemark);
                this.Constraints.Add(new UniqueConstraint("AccountDataKey1", new DataColumn[] {
                                this.columnAccountID,
                                this.columnBalanceChgType,
                                this.columnBalanceChgDate}, true));
                this.columnAccountID.AllowDBNull = false;
                this.columnBalanceChgType.AllowDBNull = false;
                this.columnBalanceChgDate.AllowDBNull = false;
                this.columnPayType.AllowDBNull = false;
                this.columnCalType.AllowDBNull = false;
            }
            
            public AccountHistoryInfoRow NewAccountHistoryInfoRow() {
                return ((AccountHistoryInfoRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new AccountHistoryInfoRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(AccountHistoryInfoRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.AccountHistoryInfoRowChanged != null)) {
                    this.AccountHistoryInfoRowChanged(this, new AccountHistoryInfoRowChangeEvent(((AccountHistoryInfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.AccountHistoryInfoRowChanging != null)) {
                    this.AccountHistoryInfoRowChanging(this, new AccountHistoryInfoRowChangeEvent(((AccountHistoryInfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.AccountHistoryInfoRowDeleted != null)) {
                    this.AccountHistoryInfoRowDeleted(this, new AccountHistoryInfoRowChangeEvent(((AccountHistoryInfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.AccountHistoryInfoRowDeleting != null)) {
                    this.AccountHistoryInfoRowDeleting(this, new AccountHistoryInfoRowChangeEvent(((AccountHistoryInfoRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveAccountHistoryInfoRow(AccountHistoryInfoRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class AccountHistoryInfoRow : DataRow {
            
            private AccountHistoryInfoDataTable tableAccountHistoryInfo;
            
            internal AccountHistoryInfoRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableAccountHistoryInfo = ((AccountHistoryInfoDataTable)(this.Table));
            }
            
            public string AccountID {
                get {
                    return ((string)(this[this.tableAccountHistoryInfo.AccountIDColumn]));
                }
                set {
                    this[this.tableAccountHistoryInfo.AccountIDColumn] = value;
                }
            }
            
            public string BalanceChgType {
                get {
                    return ((string)(this[this.tableAccountHistoryInfo.BalanceChgTypeColumn]));
                }
                set {
                    this[this.tableAccountHistoryInfo.BalanceChgTypeColumn] = value;
                }
            }
            
            public System.DateTime BalanceChgDate {
                get {
                    return ((System.DateTime)(this[this.tableAccountHistoryInfo.BalanceChgDateColumn]));
                }
                set {
                    this[this.tableAccountHistoryInfo.BalanceChgDateColumn] = value;
                }
            }
            
            public string PayType {
                get {
                    return ((string)(this[this.tableAccountHistoryInfo.PayTypeColumn]));
                }
                set {
                    this[this.tableAccountHistoryInfo.PayTypeColumn] = value;
                }
            }
            
            public string CalType {
                get {
                    return ((string)(this[this.tableAccountHistoryInfo.CalTypeColumn]));
                }
                set {
                    this[this.tableAccountHistoryInfo.CalTypeColumn] = value;
                }
            }
            
            public System.Decimal BalanceChgNum {
                get {
                    try {
                        return ((System.Decimal)(this[this.tableAccountHistoryInfo.BalanceChgNumColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tableAccountHistoryInfo.BalanceChgNumColumn] = value;
                }
            }
            
            public string Remark {
                get {
                    try {
                        return ((string)(this[this.tableAccountHistoryInfo.RemarkColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tableAccountHistoryInfo.RemarkColumn] = value;
                }
            }
            
            public bool IsBalanceChgNumNull() {
                return this.IsNull(this.tableAccountHistoryInfo.BalanceChgNumColumn);
            }
            
            public void SetBalanceChgNumNull() {
                this[this.tableAccountHistoryInfo.BalanceChgNumColumn] = System.Convert.DBNull;
            }
            
            public bool IsRemarkNull() {
                return this.IsNull(this.tableAccountHistoryInfo.RemarkColumn);
            }
            
            public void SetRemarkNull() {
                this[this.tableAccountHistoryInfo.RemarkColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class AccountHistoryInfoRowChangeEvent : EventArgs {
            
            private AccountHistoryInfoRow eventRow;
            
            private DataRowAction eventAction;
            
            public AccountHistoryInfoRowChangeEvent(AccountHistoryInfoRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public AccountHistoryInfoRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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