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

📄 totalroominfodata.cs

📁 一个基本的酒店管理系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
            
            internal void InitVars() {
                this.columnroomTotal = this.Columns["roomTotal"];
                this.columnkegong = this.Columns["kegong"];
                this.columnzhanyong = this.Columns["zhanyong"];
                this.columnyuding = this.Columns["yuding"];
                this.columntingyong = this.Columns["tingyong"];
                this.columnqingli = this.Columns["qingli"];
                this.columnxiaolv = this.Columns["xiaolv"];
            }
            
            private void InitClass() {
                this.columnroomTotal = new DataColumn("roomTotal", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnroomTotal);
                this.columnkegong = new DataColumn("kegong", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnkegong);
                this.columnzhanyong = new DataColumn("zhanyong", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnzhanyong);
                this.columnyuding = new DataColumn("yuding", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnyuding);
                this.columntingyong = new DataColumn("tingyong", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columntingyong);
                this.columnqingli = new DataColumn("qingli", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnqingli);
                this.columnxiaolv = new DataColumn("xiaolv", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnxiaolv);
            }
            
            public RoomTotalInfo_ViewRow NewRoomTotalInfo_ViewRow() {
                return ((RoomTotalInfo_ViewRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new RoomTotalInfo_ViewRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(RoomTotalInfo_ViewRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.RoomTotalInfo_ViewRowChanged != null)) {
                    this.RoomTotalInfo_ViewRowChanged(this, new RoomTotalInfo_ViewRowChangeEvent(((RoomTotalInfo_ViewRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.RoomTotalInfo_ViewRowChanging != null)) {
                    this.RoomTotalInfo_ViewRowChanging(this, new RoomTotalInfo_ViewRowChangeEvent(((RoomTotalInfo_ViewRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.RoomTotalInfo_ViewRowDeleted != null)) {
                    this.RoomTotalInfo_ViewRowDeleted(this, new RoomTotalInfo_ViewRowChangeEvent(((RoomTotalInfo_ViewRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.RoomTotalInfo_ViewRowDeleting != null)) {
                    this.RoomTotalInfo_ViewRowDeleting(this, new RoomTotalInfo_ViewRowChangeEvent(((RoomTotalInfo_ViewRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveRoomTotalInfo_ViewRow(RoomTotalInfo_ViewRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class RoomTotalInfo_ViewRow : DataRow {
            
            private RoomTotalInfo_ViewDataTable tableRoomTotalInfo_View;
            
            internal RoomTotalInfo_ViewRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableRoomTotalInfo_View = ((RoomTotalInfo_ViewDataTable)(this.Table));
            }
            
            public int roomTotal {
                get {
                    try {
                        return ((int)(this[this.tableRoomTotalInfo_View.roomTotalColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableRoomTotalInfo_View.roomTotalColumn] = value;
                }
            }
            
            public int kegong {
                get {
                    try {
                        return ((int)(this[this.tableRoomTotalInfo_View.kegongColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableRoomTotalInfo_View.kegongColumn] = value;
                }
            }
            
            public int zhanyong {
                get {
                    try {
                        return ((int)(this[this.tableRoomTotalInfo_View.zhanyongColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableRoomTotalInfo_View.zhanyongColumn] = value;
                }
            }
            
            public int yuding {
                get {
                    try {
                        return ((int)(this[this.tableRoomTotalInfo_View.yudingColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableRoomTotalInfo_View.yudingColumn] = value;
                }
            }
            
            public int tingyong {
                get {
                    try {
                        return ((int)(this[this.tableRoomTotalInfo_View.tingyongColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableRoomTotalInfo_View.tingyongColumn] = value;
                }
            }
            
            public int qingli {
                get {
                    try {
                        return ((int)(this[this.tableRoomTotalInfo_View.qingliColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableRoomTotalInfo_View.qingliColumn] = value;
                }
            }
            
            public string xiaolv {
                get {
                    try {
                        return ((string)(this[this.tableRoomTotalInfo_View.xiaolvColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableRoomTotalInfo_View.xiaolvColumn] = value;
                }
            }
            
            public bool IsroomTotalNull() {
                return this.IsNull(this.tableRoomTotalInfo_View.roomTotalColumn);
            }
            
            public void SetroomTotalNull() {
                this[this.tableRoomTotalInfo_View.roomTotalColumn] = System.Convert.DBNull;
            }
            
            public bool IskegongNull() {
                return this.IsNull(this.tableRoomTotalInfo_View.kegongColumn);
            }
            
            public void SetkegongNull() {
                this[this.tableRoomTotalInfo_View.kegongColumn] = System.Convert.DBNull;
            }
            
            public bool IszhanyongNull() {
                return this.IsNull(this.tableRoomTotalInfo_View.zhanyongColumn);
            }
            
            public void SetzhanyongNull() {
                this[this.tableRoomTotalInfo_View.zhanyongColumn] = System.Convert.DBNull;
            }
            
            public bool IsyudingNull() {
                return this.IsNull(this.tableRoomTotalInfo_View.yudingColumn);
            }
            
            public void SetyudingNull() {
                this[this.tableRoomTotalInfo_View.yudingColumn] = System.Convert.DBNull;
            }
            
            public bool IstingyongNull() {
                return this.IsNull(this.tableRoomTotalInfo_View.tingyongColumn);
            }
            
            public void SettingyongNull() {
                this[this.tableRoomTotalInfo_View.tingyongColumn] = System.Convert.DBNull;
            }
            
            public bool IsqingliNull() {
                return this.IsNull(this.tableRoomTotalInfo_View.qingliColumn);
            }
            
            public void SetqingliNull() {
                this[this.tableRoomTotalInfo_View.qingliColumn] = System.Convert.DBNull;
            }
            
            public bool IsxiaolvNull() {
                return this.IsNull(this.tableRoomTotalInfo_View.xiaolvColumn);
            }
            
            public void SetxiaolvNull() {
                this[this.tableRoomTotalInfo_View.xiaolvColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class RoomTotalInfo_ViewRowChangeEvent : EventArgs {
            
            private RoomTotalInfo_ViewRow eventRow;
            
            private DataRowAction eventAction;
            
            public RoomTotalInfo_ViewRowChangeEvent(RoomTotalInfo_ViewRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public RoomTotalInfo_ViewRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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