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

📄 consumeinfodata.cs

📁 一个基本的酒店管理系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                ConsumeInfo_valueDataTable cln = ((ConsumeInfo_valueDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new ConsumeInfo_valueDataTable();
            }
            
            internal void InitVars() {
                this.columnNid = this.Columns["Nid"];
                this.columnSnumber = this.Columns["Snumber"];
                this.columnSdatetime = this.Columns["Sdatetime"];
                this.columnCtype = this.Columns["Ctype"];
                this.columnWname = this.Columns["Wname"];
                this.columnWprice = this.Columns["Wprice"];
                this.columnWchar = this.Columns["Wchar"];
                this.columnTotal = this.Columns["Total"];
                this.columnAname = this.Columns["Aname"];
            }
            
            private void InitClass() {
                this.columnNid = new DataColumn("Nid", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnNid);
                this.columnSnumber = new DataColumn("Snumber", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSnumber);
                this.columnSdatetime = new DataColumn("Sdatetime", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSdatetime);
                this.columnCtype = new DataColumn("Ctype", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCtype);
                this.columnWname = new DataColumn("Wname", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnWname);
                this.columnWprice = new DataColumn("Wprice", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnWprice);
                this.columnWchar = new DataColumn("Wchar", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnWchar);
                this.columnTotal = new DataColumn("Total", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTotal);
                this.columnAname = new DataColumn("Aname", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAname);
                this.columnNid.AllowDBNull = false;
                this.columnSdatetime.AllowDBNull = false;
                this.columnCtype.AllowDBNull = false;
                this.columnWname.AllowDBNull = false;
                this.columnWchar.AllowDBNull = false;
            }
            
            public ConsumeInfo_valueRow NewConsumeInfo_valueRow() {
                return ((ConsumeInfo_valueRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new ConsumeInfo_valueRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(ConsumeInfo_valueRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.ConsumeInfo_valueRowChanged != null)) {
                    this.ConsumeInfo_valueRowChanged(this, new ConsumeInfo_valueRowChangeEvent(((ConsumeInfo_valueRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.ConsumeInfo_valueRowChanging != null)) {
                    this.ConsumeInfo_valueRowChanging(this, new ConsumeInfo_valueRowChangeEvent(((ConsumeInfo_valueRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.ConsumeInfo_valueRowDeleted != null)) {
                    this.ConsumeInfo_valueRowDeleted(this, new ConsumeInfo_valueRowChangeEvent(((ConsumeInfo_valueRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.ConsumeInfo_valueRowDeleting != null)) {
                    this.ConsumeInfo_valueRowDeleting(this, new ConsumeInfo_valueRowChangeEvent(((ConsumeInfo_valueRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveConsumeInfo_valueRow(ConsumeInfo_valueRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ConsumeInfo_valueRow : DataRow {
            
            private ConsumeInfo_valueDataTable tableConsumeInfo_value;
            
            internal ConsumeInfo_valueRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableConsumeInfo_value = ((ConsumeInfo_valueDataTable)(this.Table));
            }
            
            public string Nid {
                get {
                    return ((string)(this[this.tableConsumeInfo_value.NidColumn]));
                }
                set {
                    this[this.tableConsumeInfo_value.NidColumn] = value;
                }
            }
            
            public string Snumber {
                get {
                    try {
                        return ((string)(this[this.tableConsumeInfo_value.SnumberColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableConsumeInfo_value.SnumberColumn] = value;
                }
            }
            
            public System.DateTime Sdatetime {
                get {
                    return ((System.DateTime)(this[this.tableConsumeInfo_value.SdatetimeColumn]));
                }
                set {
                    this[this.tableConsumeInfo_value.SdatetimeColumn] = value;
                }
            }
            
            public string Ctype {
                get {
                    return ((string)(this[this.tableConsumeInfo_value.CtypeColumn]));
                }
                set {
                    this[this.tableConsumeInfo_value.CtypeColumn] = value;
                }
            }
            
            public string Wname {
                get {
                    return ((string)(this[this.tableConsumeInfo_value.WnameColumn]));
                }
                set {
                    this[this.tableConsumeInfo_value.WnameColumn] = value;
                }
            }
            
            public string Wprice {
                get {
                    try {
                        return ((string)(this[this.tableConsumeInfo_value.WpriceColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableConsumeInfo_value.WpriceColumn] = value;
                }
            }
            
            public string Wchar {
                get {
                    return ((string)(this[this.tableConsumeInfo_value.WcharColumn]));
                }
                set {
                    this[this.tableConsumeInfo_value.WcharColumn] = value;
                }
            }
            
            public string Total {
                get {
                    try {
                        return ((string)(this[this.tableConsumeInfo_value.TotalColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableConsumeInfo_value.TotalColumn] = value;
                }
            }
            
            public string Aname {
                get {
                    try {
                        return ((string)(this[this.tableConsumeInfo_value.AnameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableConsumeInfo_value.AnameColumn] = value;
                }
            }
            
            public bool IsSnumberNull() {
                return this.IsNull(this.tableConsumeInfo_value.SnumberColumn);
            }
            
            public void SetSnumberNull() {
                this[this.tableConsumeInfo_value.SnumberColumn] = System.Convert.DBNull;
            }
            
            public bool IsWpriceNull() {
                return this.IsNull(this.tableConsumeInfo_value.WpriceColumn);
            }
            
            public void SetWpriceNull() {
                this[this.tableConsumeInfo_value.WpriceColumn] = System.Convert.DBNull;
            }
            
            public bool IsTotalNull() {
                return this.IsNull(this.tableConsumeInfo_value.TotalColumn);
            }
            
            public void SetTotalNull() {
                this[this.tableConsumeInfo_value.TotalColumn] = System.Convert.DBNull;
            }
            
            public bool IsAnameNull() {
                return this.IsNull(this.tableConsumeInfo_value.AnameColumn);
            }
            
            public void SetAnameNull() {
                this[this.tableConsumeInfo_value.AnameColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ConsumeInfo_valueRowChangeEvent : EventArgs {
            
            private ConsumeInfo_valueRow eventRow;
            
            private DataRowAction eventAction;
            
            public ConsumeInfo_valueRowChangeEvent(ConsumeInfo_valueRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public ConsumeInfo_valueRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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