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

📄 loadroominfodata.cs

📁 一个基本的酒店管理系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
            
            public view_newRoomTabRow Addview_newRoomTabRow(string TType, System.Single PriceByday, System.Single priceByhour, int IsTimeRoom, System.Single Tdeposit) {
                view_newRoomTabRow rowview_newRoomTabRow = ((view_newRoomTabRow)(this.NewRow()));
                rowview_newRoomTabRow.ItemArray = new object[] {
                        null,
                        TType,
                        PriceByday,
                        priceByhour,
                        IsTimeRoom,
                        Tdeposit};
                this.Rows.Add(rowview_newRoomTabRow);
                return rowview_newRoomTabRow;
            }
            
            public view_newRoomTabRow FindByTid(int Tid) {
                return ((view_newRoomTabRow)(this.Rows.Find(new object[] {
                            Tid})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                view_newRoomTabDataTable cln = ((view_newRoomTabDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new view_newRoomTabDataTable();
            }
            
            internal void InitVars() {
                this.columnTid = this.Columns["Tid"];
                this.columnTType = this.Columns["TType"];
                this.columnPriceByday = this.Columns["PriceByday"];
                this.columnpriceByhour = this.Columns["priceByhour"];
                this.columnIsTimeRoom = this.Columns["IsTimeRoom"];
                this.columnTdeposit = this.Columns["Tdeposit"];
            }
            
            private void InitClass() {
                this.columnTid = new DataColumn("Tid", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTid);
                this.columnTType = new DataColumn("TType", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTType);
                this.columnPriceByday = new DataColumn("PriceByday", typeof(System.Single), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPriceByday);
                this.columnpriceByhour = new DataColumn("priceByhour", typeof(System.Single), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpriceByhour);
                this.columnIsTimeRoom = new DataColumn("IsTimeRoom", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnIsTimeRoom);
                this.columnTdeposit = new DataColumn("Tdeposit", typeof(System.Single), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTdeposit);
                this.Constraints.Add(new UniqueConstraint("DocumentKey1", new DataColumn[] {
                                this.columnTid}, true));
                this.columnTid.AutoIncrement = true;
                this.columnTid.AllowDBNull = false;
                this.columnTid.ReadOnly = true;
                this.columnTid.Unique = true;
                this.columnTType.AllowDBNull = false;
                this.columnPriceByday.AllowDBNull = false;
                this.columnpriceByhour.AllowDBNull = false;
            }
            
            public view_newRoomTabRow Newview_newRoomTabRow() {
                return ((view_newRoomTabRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new view_newRoomTabRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(view_newRoomTabRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.view_newRoomTabRowChanged != null)) {
                    this.view_newRoomTabRowChanged(this, new view_newRoomTabRowChangeEvent(((view_newRoomTabRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.view_newRoomTabRowChanging != null)) {
                    this.view_newRoomTabRowChanging(this, new view_newRoomTabRowChangeEvent(((view_newRoomTabRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.view_newRoomTabRowDeleted != null)) {
                    this.view_newRoomTabRowDeleted(this, new view_newRoomTabRowChangeEvent(((view_newRoomTabRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.view_newRoomTabRowDeleting != null)) {
                    this.view_newRoomTabRowDeleting(this, new view_newRoomTabRowChangeEvent(((view_newRoomTabRow)(e.Row)), e.Action));
                }
            }
            
            public void Removeview_newRoomTabRow(view_newRoomTabRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class view_newRoomTabRow : DataRow {
            
            private view_newRoomTabDataTable tableview_newRoomTab;
            
            internal view_newRoomTabRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableview_newRoomTab = ((view_newRoomTabDataTable)(this.Table));
            }
            
            public int Tid {
                get {
                    return ((int)(this[this.tableview_newRoomTab.TidColumn]));
                }
                set {
                    this[this.tableview_newRoomTab.TidColumn] = value;
                }
            }
            
            public string TType {
                get {
                    return ((string)(this[this.tableview_newRoomTab.TTypeColumn]));
                }
                set {
                    this[this.tableview_newRoomTab.TTypeColumn] = value;
                }
            }
            
            public System.Single PriceByday {
                get {
                    return ((System.Single)(this[this.tableview_newRoomTab.PriceBydayColumn]));
                }
                set {
                    this[this.tableview_newRoomTab.PriceBydayColumn] = value;
                }
            }
            
            public System.Single priceByhour {
                get {
                    return ((System.Single)(this[this.tableview_newRoomTab.priceByhourColumn]));
                }
                set {
                    this[this.tableview_newRoomTab.priceByhourColumn] = value;
                }
            }
            
            public int IsTimeRoom {
                get {
                    try {
                        return ((int)(this[this.tableview_newRoomTab.IsTimeRoomColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableview_newRoomTab.IsTimeRoomColumn] = value;
                }
            }
            
            public System.Single Tdeposit {
                get {
                    try {
                        return ((System.Single)(this[this.tableview_newRoomTab.TdepositColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableview_newRoomTab.TdepositColumn] = value;
                }
            }
            
            public bool IsIsTimeRoomNull() {
                return this.IsNull(this.tableview_newRoomTab.IsTimeRoomColumn);
            }
            
            public void SetIsTimeRoomNull() {
                this[this.tableview_newRoomTab.IsTimeRoomColumn] = System.Convert.DBNull;
            }
            
            public bool IsTdepositNull() {
                return this.IsNull(this.tableview_newRoomTab.TdepositColumn);
            }
            
            public void SetTdepositNull() {
                this[this.tableview_newRoomTab.TdepositColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class view_newRoomTabRowChangeEvent : EventArgs {
            
            private view_newRoomTabRow eventRow;
            
            private DataRowAction eventAction;
            
            public view_newRoomTabRowChangeEvent(view_newRoomTabRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public view_newRoomTabRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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