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

📄 reckoning_calrecord.cs

📁 一个基本的酒店管理系统
💻 CS
字号:
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.573
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

namespace ConnectDBLibrary {
    using System;
    using System.Data;
    using System.Xml;
    using System.Runtime.Serialization;
    
    
    [Serializable()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Diagnostics.DebuggerStepThrough()]
    [System.ComponentModel.ToolboxItem(true)]
    public class Reckoning_Calrecord : DataSet {
        
        private view_calDataTable tableview_cal;
        
        public Reckoning_Calrecord() {
            this.InitClass();
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        protected Reckoning_Calrecord(SerializationInfo info, StreamingContext context) {
            string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
            if ((strSchema != null)) {
                DataSet ds = new DataSet();
                ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
                if ((ds.Tables["view_cal"] != null)) {
                    this.Tables.Add(new view_calDataTable(ds.Tables["view_cal"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.InitClass();
            }
            this.GetSerializationData(info, context);
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public view_calDataTable view_cal {
            get {
                return this.tableview_cal;
            }
        }
        
        public override DataSet Clone() {
            Reckoning_Calrecord cln = ((Reckoning_Calrecord)(base.Clone()));
            cln.InitVars();
            return cln;
        }
        
        protected override bool ShouldSerializeTables() {
            return false;
        }
        
        protected override bool ShouldSerializeRelations() {
            return false;
        }
        
        protected override void ReadXmlSerializable(XmlReader reader) {
            this.Reset();
            DataSet ds = new DataSet();
            ds.ReadXml(reader);
            if ((ds.Tables["view_cal"] != null)) {
                this.Tables.Add(new view_calDataTable(ds.Tables["view_cal"]));
            }
            this.DataSetName = ds.DataSetName;
            this.Prefix = ds.Prefix;
            this.Namespace = ds.Namespace;
            this.Locale = ds.Locale;
            this.CaseSensitive = ds.CaseSensitive;
            this.EnforceConstraints = ds.EnforceConstraints;
            this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
            this.InitVars();
        }
        
        protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
            System.IO.MemoryStream stream = new System.IO.MemoryStream();
            this.WriteXmlSchema(new XmlTextWriter(stream, null));
            stream.Position = 0;
            return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
        }
        
        internal void InitVars() {
            this.tableview_cal = ((view_calDataTable)(this.Tables["view_cal"]));
            if ((this.tableview_cal != null)) {
                this.tableview_cal.InitVars();
            }
        }
        
        private void InitClass() {
            this.DataSetName = "Reckoning_Calrecord";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/Reckoning_Calrecord.xsd";
            this.Locale = new System.Globalization.CultureInfo("zh-CN");
            this.CaseSensitive = false;
            this.EnforceConstraints = true;
            this.tableview_cal = new view_calDataTable();
            this.Tables.Add(this.tableview_cal);
        }
        
        private bool ShouldSerializeview_cal() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void view_calRowChangeEventHandler(object sender, view_calRowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class view_calDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columntotal;
            
            internal view_calDataTable() : 
                    base("view_cal") {
                this.InitClass();
            }
            
            internal view_calDataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn totalColumn {
                get {
                    return this.columntotal;
                }
            }
            
            public view_calRow this[int index] {
                get {
                    return ((view_calRow)(this.Rows[index]));
                }
            }
            
            public event view_calRowChangeEventHandler view_calRowChanged;
            
            public event view_calRowChangeEventHandler view_calRowChanging;
            
            public event view_calRowChangeEventHandler view_calRowDeleted;
            
            public event view_calRowChangeEventHandler view_calRowDeleting;
            
            public void Addview_calRow(view_calRow row) {
                this.Rows.Add(row);
            }
            
            public view_calRow Addview_calRow(int total) {
                view_calRow rowview_calRow = ((view_calRow)(this.NewRow()));
                rowview_calRow.ItemArray = new object[] {
                        total};
                this.Rows.Add(rowview_calRow);
                return rowview_calRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                view_calDataTable cln = ((view_calDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new view_calDataTable();
            }
            
            internal void InitVars() {
                this.columntotal = this.Columns["total"];
            }
            
            private void InitClass() {
                this.columntotal = new DataColumn("total", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columntotal);
            }
            
            public view_calRow Newview_calRow() {
                return ((view_calRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new view_calRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(view_calRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.view_calRowChanged != null)) {
                    this.view_calRowChanged(this, new view_calRowChangeEvent(((view_calRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.view_calRowChanging != null)) {
                    this.view_calRowChanging(this, new view_calRowChangeEvent(((view_calRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.view_calRowDeleted != null)) {
                    this.view_calRowDeleted(this, new view_calRowChangeEvent(((view_calRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.view_calRowDeleting != null)) {
                    this.view_calRowDeleting(this, new view_calRowChangeEvent(((view_calRow)(e.Row)), e.Action));
                }
            }
            
            public void Removeview_calRow(view_calRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class view_calRow : DataRow {
            
            private view_calDataTable tableview_cal;
            
            internal view_calRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableview_cal = ((view_calDataTable)(this.Table));
            }
            
            public int total {
                get {
                    try {
                        return ((int)(this[this.tableview_cal.totalColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableview_cal.totalColumn] = value;
                }
            }
            
            public bool IstotalNull() {
                return this.IsNull(this.tableview_cal.totalColumn);
            }
            
            public void SettotalNull() {
                this[this.tableview_cal.totalColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class view_calRowChangeEvent : EventArgs {
            
            private view_calRow eventRow;
            
            private DataRowAction eventAction;
            
            public view_calRowChangeEvent(view_calRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public view_calRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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