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

📄 roominfodata.cs

📁 一个基本的酒店管理系统
💻 CS
📖 第 1 页 / 共 3 页
字号:
                    return this.columntotalMoney;
                }
            }
            
            internal DataColumn ndatetimeColumn {
                get {
                    return this.columnndatetime;
                }
            }
            
            internal DataColumn leaveTimeColumn {
                get {
                    return this.columnleaveTime;
                }
            }
            
            internal DataColumn UseTimeColumn {
                get {
                    return this.columnUseTime;
                }
            }
            
            internal DataColumn RemarkColumn {
                get {
                    return this.columnRemark;
                }
            }
            
            public RoomInfo_valueRow this[int index] {
                get {
                    return ((RoomInfo_valueRow)(this.Rows[index]));
                }
            }
            
            public event RoomInfo_valueRowChangeEventHandler RoomInfo_valueRowChanged;
            
            public event RoomInfo_valueRowChangeEventHandler RoomInfo_valueRowChanging;
            
            public event RoomInfo_valueRowChangeEventHandler RoomInfo_valueRowDeleted;
            
            public event RoomInfo_valueRowChangeEventHandler RoomInfo_valueRowDeleting;
            
            public void AddRoomInfo_valueRow(RoomInfo_valueRow row) {
                this.Rows.Add(row);
            }
            
            public RoomInfo_valueRow AddRoomInfo_valueRow(
                        string Rid, 
                        string stateType, 
                        string roomtel, 
                        string ingroup, 
                        string ttype, 
                        string Aname, 
                        string Uname, 
                        string OderPrice, 
                        string WorkPrice, 
                        string NdepositMoney, 
                        string RoomMoney, 
                        string totalMoney, 
                        System.DateTime ndatetime, 
                        System.DateTime leaveTime, 
                        string UseTime, 
                        string Remark) {
                RoomInfo_valueRow rowRoomInfo_valueRow = ((RoomInfo_valueRow)(this.NewRow()));
                rowRoomInfo_valueRow.ItemArray = new object[] {
                        Rid,
                        stateType,
                        roomtel,
                        ingroup,
                        ttype,
                        Aname,
                        Uname,
                        OderPrice,
                        WorkPrice,
                        NdepositMoney,
                        RoomMoney,
                        totalMoney,
                        ndatetime,
                        leaveTime,
                        UseTime,
                        Remark};
                this.Rows.Add(rowRoomInfo_valueRow);
                return rowRoomInfo_valueRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                RoomInfo_valueDataTable cln = ((RoomInfo_valueDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new RoomInfo_valueDataTable();
            }
            
            internal void InitVars() {
                this.columnRid = this.Columns["Rid"];
                this.columnstateType = this.Columns["stateType"];
                this.columnroomtel = this.Columns["roomtel"];
                this.columningroup = this.Columns["ingroup"];
                this.columnttype = this.Columns["ttype"];
                this.columnAname = this.Columns["Aname"];
                this.columnUname = this.Columns["Uname"];
                this.columnOderPrice = this.Columns["OderPrice"];
                this.columnWorkPrice = this.Columns["WorkPrice"];
                this.columnNdepositMoney = this.Columns["NdepositMoney"];
                this.columnRoomMoney = this.Columns["RoomMoney"];
                this.columntotalMoney = this.Columns["totalMoney"];
                this.columnndatetime = this.Columns["ndatetime"];
                this.columnleaveTime = this.Columns["leaveTime"];
                this.columnUseTime = this.Columns["UseTime"];
                this.columnRemark = this.Columns["Remark"];
            }
            
            private void InitClass() {
                this.columnRid = new DataColumn("Rid", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRid);
                this.columnstateType = new DataColumn("stateType", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnstateType);
                this.columnroomtel = new DataColumn("roomtel", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnroomtel);
                this.columningroup = new DataColumn("ingroup", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columningroup);
                this.columnttype = new DataColumn("ttype", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnttype);
                this.columnAname = new DataColumn("Aname", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAname);
                this.columnUname = new DataColumn("Uname", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnUname);
                this.columnOderPrice = new DataColumn("OderPrice", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnOderPrice);
                this.columnWorkPrice = new DataColumn("WorkPrice", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnWorkPrice);
                this.columnNdepositMoney = new DataColumn("NdepositMoney", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnNdepositMoney);
                this.columnRoomMoney = new DataColumn("RoomMoney", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRoomMoney);
                this.columntotalMoney = new DataColumn("totalMoney", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columntotalMoney);
                this.columnndatetime = new DataColumn("ndatetime", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnndatetime);
                this.columnleaveTime = new DataColumn("leaveTime", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnleaveTime);
                this.columnUseTime = new DataColumn("UseTime", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnUseTime);
                this.columnRemark = new DataColumn("Remark", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRemark);
                this.columnRid.AllowDBNull = false;
                this.columnstateType.AllowDBNull = false;
                this.columnroomtel.AllowDBNull = false;
                this.columningroup.AllowDBNull = false;
                this.columnttype.AllowDBNull = false;
            }
            
            public RoomInfo_valueRow NewRoomInfo_valueRow() {
                return ((RoomInfo_valueRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new RoomInfo_valueRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(RoomInfo_valueRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.RoomInfo_valueRowChanged != null)) {
                    this.RoomInfo_valueRowChanged(this, new RoomInfo_valueRowChangeEvent(((RoomInfo_valueRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.RoomInfo_valueRowChanging != null)) {
                    this.RoomInfo_valueRowChanging(this, new RoomInfo_valueRowChangeEvent(((RoomInfo_valueRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.RoomInfo_valueRowDeleted != null)) {
                    this.RoomInfo_valueRowDeleted(this, new RoomInfo_valueRowChangeEvent(((RoomInfo_valueRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.RoomInfo_valueRowDeleting != null)) {
                    this.RoomInfo_valueRowDeleting(this, new RoomInfo_valueRowChangeEvent(((RoomInfo_valueRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveRoomInfo_valueRow(RoomInfo_valueRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class RoomInfo_valueRow : DataRow {
            
            private RoomInfo_valueDataTable tableRoomInfo_value;
            
            internal RoomInfo_valueRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableRoomInfo_value = ((RoomInfo_valueDataTable)(this.Table));
            }
            
            public string Rid {
                get {
                    return ((string)(this[this.tableRoomInfo_value.RidColumn]));
                }
                set {
                    this[this.tableRoomInfo_value.RidColumn] = value;
                }
            }
            
            public string stateType {
                get {
                    return ((string)(this[this.tableRoomInfo_value.stateTypeColumn]));
                }
                set {
                    this[this.tableRoomInfo_value.stateTypeColumn] = value;
                }
            }
            
            public string roomtel {
                get {
                    return ((string)(this[this.tableRoomInfo_value.roomtelColumn]));
                }
                set {
                    this[this.tableRoomInfo_value.roomtelColumn] = value;
                }
            }
            
            public string ingroup {
                get {
                    return ((string)(this[this.tableRoomInfo_value.ingroupColumn]));
                }
                set {
                    this[this.tableRoomInfo_value.ingroupColumn] = value;
                }
            }
            
            public string ttype {
                get {
                    return ((string)(this[this.tableRoomInfo_value.ttypeColumn]));
                }
                set {
                    this[this.tableRoomInfo_value.ttypeColumn] = value;
                }
            }
            
            public string Aname {
                get {
                    try {
                        return ((string)(this[this.tableRoomInfo_value.AnameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);

⌨️ 快捷键说明

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