DataSet1.cs
上传用户:kuorong
上传日期:2013-04-03
资源大小:240k
文件大小:140k
源码类别:

酒店行业

开发平台:

Java

  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version: 1.1.4322.573
  5. //
  6. //     Changes to this file may cause incorrect behavior and will be lost if 
  7. //     the code is regenerated.
  8. // </autogenerated>
  9. //------------------------------------------------------------------------------
  10. namespace 酒店管理系统 {
  11.     using System;
  12.     using System.Data;
  13.     using System.Xml;
  14.     using System.Runtime.Serialization;
  15.     
  16.     
  17.     [Serializable()]
  18.     [System.ComponentModel.DesignerCategoryAttribute("code")]
  19.     [System.Diagnostics.DebuggerStepThrough()]
  20.     [System.ComponentModel.ToolboxItem(true)]
  21.     public class DataSet1 : DataSet {
  22.         
  23.         private 客房信息DataTable table客房信息;
  24.         
  25.         private 楼层信息DataTable table楼层信息;
  26.         
  27.         private 预定单DataTable table预定单;
  28.         
  29.         private 客房类型DataTable table客房类型;
  30.         
  31.         private 帐单明细DataTable table帐单明细;
  32.         
  33.         private 入住单DataTable table入住单;
  34.         
  35.         public DataSet1() {
  36.             this.InitClass();
  37.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  38.             this.Tables.CollectionChanged += schemaChangedHandler;
  39.             this.Relations.CollectionChanged += schemaChangedHandler;
  40.         }
  41.         
  42.         protected DataSet1(SerializationInfo info, StreamingContext context) {
  43.             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  44.             if ((strSchema != null)) {
  45.                 DataSet ds = new DataSet();
  46.                 ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
  47.                 if ((ds.Tables["客房信息"] != null)) {
  48.                     this.Tables.Add(new 客房信息DataTable(ds.Tables["客房信息"]));
  49.                 }
  50.                 if ((ds.Tables["楼层信息"] != null)) {
  51.                     this.Tables.Add(new 楼层信息DataTable(ds.Tables["楼层信息"]));
  52.                 }
  53.                 if ((ds.Tables["预定单"] != null)) {
  54.                     this.Tables.Add(new 预定单DataTable(ds.Tables["预定单"]));
  55.                 }
  56.                 if ((ds.Tables["客房类型"] != null)) {
  57.                     this.Tables.Add(new 客房类型DataTable(ds.Tables["客房类型"]));
  58.                 }
  59.                 if ((ds.Tables["帐单明细"] != null)) {
  60.                     this.Tables.Add(new 帐单明细DataTable(ds.Tables["帐单明细"]));
  61.                 }
  62.                 if ((ds.Tables["入住单"] != null)) {
  63.                     this.Tables.Add(new 入住单DataTable(ds.Tables["入住单"]));
  64.                 }
  65.                 this.DataSetName = ds.DataSetName;
  66.                 this.Prefix = ds.Prefix;
  67.                 this.Namespace = ds.Namespace;
  68.                 this.Locale = ds.Locale;
  69.                 this.CaseSensitive = ds.CaseSensitive;
  70.                 this.EnforceConstraints = ds.EnforceConstraints;
  71.                 this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  72.                 this.InitVars();
  73.             }
  74.             else {
  75.                 this.InitClass();
  76.             }
  77.             this.GetSerializationData(info, context);
  78.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  79.             this.Tables.CollectionChanged += schemaChangedHandler;
  80.             this.Relations.CollectionChanged += schemaChangedHandler;
  81.         }
  82.         
  83.         [System.ComponentModel.Browsable(false)]
  84.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  85.         public 客房信息DataTable 客房信息 {
  86.             get {
  87.                 return this.table客房信息;
  88.             }
  89.         }
  90.         
  91.         [System.ComponentModel.Browsable(false)]
  92.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  93.         public 楼层信息DataTable 楼层信息 {
  94.             get {
  95.                 return this.table楼层信息;
  96.             }
  97.         }
  98.         
  99.         [System.ComponentModel.Browsable(false)]
  100.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  101.         public 预定单DataTable 预定单 {
  102.             get {
  103.                 return this.table预定单;
  104.             }
  105.         }
  106.         
  107.         [System.ComponentModel.Browsable(false)]
  108.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  109.         public 客房类型DataTable 客房类型 {
  110.             get {
  111.                 return this.table客房类型;
  112.             }
  113.         }
  114.         
  115.         [System.ComponentModel.Browsable(false)]
  116.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  117.         public 帐单明细DataTable 帐单明细 {
  118.             get {
  119.                 return this.table帐单明细;
  120.             }
  121.         }
  122.         
  123.         [System.ComponentModel.Browsable(false)]
  124.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  125.         public 入住单DataTable 入住单 {
  126.             get {
  127.                 return this.table入住单;
  128.             }
  129.         }
  130.         
  131.         public override DataSet Clone() {
  132.             DataSet1 cln = ((DataSet1)(base.Clone()));
  133.             cln.InitVars();
  134.             return cln;
  135.         }
  136.         
  137.         protected override bool ShouldSerializeTables() {
  138.             return false;
  139.         }
  140.         
  141.         protected override bool ShouldSerializeRelations() {
  142.             return false;
  143.         }
  144.         
  145.         protected override void ReadXmlSerializable(XmlReader reader) {
  146.             this.Reset();
  147.             DataSet ds = new DataSet();
  148.             ds.ReadXml(reader);
  149.             if ((ds.Tables["客房信息"] != null)) {
  150.                 this.Tables.Add(new 客房信息DataTable(ds.Tables["客房信息"]));
  151.             }
  152.             if ((ds.Tables["楼层信息"] != null)) {
  153.                 this.Tables.Add(new 楼层信息DataTable(ds.Tables["楼层信息"]));
  154.             }
  155.             if ((ds.Tables["预定单"] != null)) {
  156.                 this.Tables.Add(new 预定单DataTable(ds.Tables["预定单"]));
  157.             }
  158.             if ((ds.Tables["客房类型"] != null)) {
  159.                 this.Tables.Add(new 客房类型DataTable(ds.Tables["客房类型"]));
  160.             }
  161.             if ((ds.Tables["帐单明细"] != null)) {
  162.                 this.Tables.Add(new 帐单明细DataTable(ds.Tables["帐单明细"]));
  163.             }
  164.             if ((ds.Tables["入住单"] != null)) {
  165.                 this.Tables.Add(new 入住单DataTable(ds.Tables["入住单"]));
  166.             }
  167.             this.DataSetName = ds.DataSetName;
  168.             this.Prefix = ds.Prefix;
  169.             this.Namespace = ds.Namespace;
  170.             this.Locale = ds.Locale;
  171.             this.CaseSensitive = ds.CaseSensitive;
  172.             this.EnforceConstraints = ds.EnforceConstraints;
  173.             this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  174.             this.InitVars();
  175.         }
  176.         
  177.         protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  178.             System.IO.MemoryStream stream = new System.IO.MemoryStream();
  179.             this.WriteXmlSchema(new XmlTextWriter(stream, null));
  180.             stream.Position = 0;
  181.             return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
  182.         }
  183.         
  184.         internal void InitVars() {
  185.             this.table客房信息 = ((客房信息DataTable)(this.Tables["客房信息"]));
  186.             if ((this.table客房信息 != null)) {
  187.                 this.table客房信息.InitVars();
  188.             }
  189.             this.table楼层信息 = ((楼层信息DataTable)(this.Tables["楼层信息"]));
  190.             if ((this.table楼层信息 != null)) {
  191.                 this.table楼层信息.InitVars();
  192.             }
  193.             this.table预定单 = ((预定单DataTable)(this.Tables["预定单"]));
  194.             if ((this.table预定单 != null)) {
  195.                 this.table预定单.InitVars();
  196.             }
  197.             this.table客房类型 = ((客房类型DataTable)(this.Tables["客房类型"]));
  198.             if ((this.table客房类型 != null)) {
  199.                 this.table客房类型.InitVars();
  200.             }
  201.             this.table帐单明细 = ((帐单明细DataTable)(this.Tables["帐单明细"]));
  202.             if ((this.table帐单明细 != null)) {
  203.                 this.table帐单明细.InitVars();
  204.             }
  205.             this.table入住单 = ((入住单DataTable)(this.Tables["入住单"]));
  206.             if ((this.table入住单 != null)) {
  207.                 this.table入住单.InitVars();
  208.             }
  209.         }
  210.         
  211.         private void InitClass() {
  212.             this.DataSetName = "DataSet1";
  213.             this.Prefix = "";
  214.             this.Namespace = "http://www.tempuri.org/DataSet1.xsd";
  215.             this.Locale = new System.Globalization.CultureInfo("zh-CN");
  216.             this.CaseSensitive = false;
  217.             this.EnforceConstraints = true;
  218.             this.table客房信息 = new 客房信息DataTable();
  219.             this.Tables.Add(this.table客房信息);
  220.             this.table楼层信息 = new 楼层信息DataTable();
  221.             this.Tables.Add(this.table楼层信息);
  222.             this.table预定单 = new 预定单DataTable();
  223.             this.Tables.Add(this.table预定单);
  224.             this.table客房类型 = new 客房类型DataTable();
  225.             this.Tables.Add(this.table客房类型);
  226.             this.table帐单明细 = new 帐单明细DataTable();
  227.             this.Tables.Add(this.table帐单明细);
  228.             this.table入住单 = new 入住单DataTable();
  229.             this.Tables.Add(this.table入住单);
  230.         }
  231.         
  232.         private bool ShouldSerialize客房信息() {
  233.             return false;
  234.         }
  235.         
  236.         private bool ShouldSerialize楼层信息() {
  237.             return false;
  238.         }
  239.         
  240.         private bool ShouldSerialize预定单() {
  241.             return false;
  242.         }
  243.         
  244.         private bool ShouldSerialize客房类型() {
  245.             return false;
  246.         }
  247.         
  248.         private bool ShouldSerialize帐单明细() {
  249.             return false;
  250.         }
  251.         
  252.         private bool ShouldSerialize入住单() {
  253.             return false;
  254.         }
  255.         
  256.         private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
  257.             if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
  258.                 this.InitVars();
  259.             }
  260.         }
  261.         
  262.         public delegate void 客房信息RowChangeEventHandler(object sender, 客房信息RowChangeEvent e);
  263.         
  264.         public delegate void 楼层信息RowChangeEventHandler(object sender, 楼层信息RowChangeEvent e);
  265.         
  266.         public delegate void 预定单RowChangeEventHandler(object sender, 预定单RowChangeEvent e);
  267.         
  268.         public delegate void 客房类型RowChangeEventHandler(object sender, 客房类型RowChangeEvent e);
  269.         
  270.         public delegate void 帐单明细RowChangeEventHandler(object sender, 帐单明细RowChangeEvent e);
  271.         
  272.         public delegate void 入住单RowChangeEventHandler(object sender, 入住单RowChangeEvent e);
  273.         
  274.         [System.Diagnostics.DebuggerStepThrough()]
  275.         public class 客房信息DataTable : DataTable, System.Collections.IEnumerable {
  276.             
  277.             private DataColumn column客房编号;
  278.             
  279.             private DataColumn column类型编号;
  280.             
  281.             private DataColumn column楼层编号;
  282.             
  283.             private DataColumn column额定人数;
  284.             
  285.             private DataColumn column床数;
  286.             
  287.             private DataColumn column客房描述;
  288.             
  289.             private DataColumn column备注;
  290.             
  291.             private DataColumn column状态;
  292.             
  293.             private DataColumn column是否可拼房;
  294.             
  295.             internal 客房信息DataTable() : 
  296.                     base("客房信息") {
  297.                 this.InitClass();
  298.             }
  299.             
  300.             internal 客房信息DataTable(DataTable table) : 
  301.                     base(table.TableName) {
  302.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  303.                     this.CaseSensitive = table.CaseSensitive;
  304.                 }
  305.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  306.                     this.Locale = table.Locale;
  307.                 }
  308.                 if ((table.Namespace != table.DataSet.Namespace)) {
  309.                     this.Namespace = table.Namespace;
  310.                 }
  311.                 this.Prefix = table.Prefix;
  312.                 this.MinimumCapacity = table.MinimumCapacity;
  313.                 this.DisplayExpression = table.DisplayExpression;
  314.             }
  315.             
  316.             [System.ComponentModel.Browsable(false)]
  317.             public int Count {
  318.                 get {
  319.                     return this.Rows.Count;
  320.                 }
  321.             }
  322.             
  323.             internal DataColumn 客房编号Column {
  324.                 get {
  325.                     return this.column客房编号;
  326.                 }
  327.             }
  328.             
  329.             internal DataColumn 类型编号Column {
  330.                 get {
  331.                     return this.column类型编号;
  332.                 }
  333.             }
  334.             
  335.             internal DataColumn 楼层编号Column {
  336.                 get {
  337.                     return this.column楼层编号;
  338.                 }
  339.             }
  340.             
  341.             internal DataColumn 额定人数Column {
  342.                 get {
  343.                     return this.column额定人数;
  344.                 }
  345.             }
  346.             
  347.             internal DataColumn 床数Column {
  348.                 get {
  349.                     return this.column床数;
  350.                 }
  351.             }
  352.             
  353.             internal DataColumn 客房描述Column {
  354.                 get {
  355.                     return this.column客房描述;
  356.                 }
  357.             }
  358.             
  359.             internal DataColumn 备注Column {
  360.                 get {
  361.                     return this.column备注;
  362.                 }
  363.             }
  364.             
  365.             internal DataColumn 状态Column {
  366.                 get {
  367.                     return this.column状态;
  368.                 }
  369.             }
  370.             
  371.             internal DataColumn 是否可拼房Column {
  372.                 get {
  373.                     return this.column是否可拼房;
  374.                 }
  375.             }
  376.             
  377.             public 客房信息Row this[int index] {
  378.                 get {
  379.                     return ((客房信息Row)(this.Rows[index]));
  380.                 }
  381.             }
  382.             
  383.             public event 客房信息RowChangeEventHandler 客房信息RowChanged;
  384.             
  385.             public event 客房信息RowChangeEventHandler 客房信息RowChanging;
  386.             
  387.             public event 客房信息RowChangeEventHandler 客房信息RowDeleted;
  388.             
  389.             public event 客房信息RowChangeEventHandler 客房信息RowDeleting;
  390.             
  391.             public void Add客房信息Row(客房信息Row row) {
  392.                 this.Rows.Add(row);
  393.             }
  394.             
  395.             public 客房信息Row Add客房信息Row(string 客房编号, string 类型编号, int 楼层编号, int 额定人数, int 床数, string 客房描述, string 备注, string 状态, bool 是否可拼房) {
  396.                 客房信息Row row客房信息Row = ((客房信息Row)(this.NewRow()));
  397.                 row客房信息Row.ItemArray = new object[] {
  398.                         客房编号,
  399.                         类型编号,
  400.                         楼层编号,
  401.                         额定人数,
  402.                         床数,
  403.                         客房描述,
  404.                         备注,
  405.                         状态,
  406.                         是否可拼房};
  407.                 this.Rows.Add(row客房信息Row);
  408.                 return row客房信息Row;
  409.             }
  410.             
  411.             public 客房信息Row FindBy客房编号(string 客房编号) {
  412.                 return ((客房信息Row)(this.Rows.Find(new object[] {
  413.                             客房编号})));
  414.             }
  415.             
  416.             public System.Collections.IEnumerator GetEnumerator() {
  417.                 return this.Rows.GetEnumerator();
  418.             }
  419.             
  420.             public override DataTable Clone() {
  421.                 客房信息DataTable cln = ((客房信息DataTable)(base.Clone()));
  422.                 cln.InitVars();
  423.                 return cln;
  424.             }
  425.             
  426.             protected override DataTable CreateInstance() {
  427.                 return new 客房信息DataTable();
  428.             }
  429.             
  430.             internal void InitVars() {
  431.                 this.column客房编号 = this.Columns["客房编号"];
  432.                 this.column类型编号 = this.Columns["类型编号"];
  433.                 this.column楼层编号 = this.Columns["楼层编号"];
  434.                 this.column额定人数 = this.Columns["额定人数"];
  435.                 this.column床数 = this.Columns["床数"];
  436.                 this.column客房描述 = this.Columns["客房描述"];
  437.                 this.column备注 = this.Columns["备注"];
  438.                 this.column状态 = this.Columns["状态"];
  439.                 this.column是否可拼房 = this.Columns["是否可拼房"];
  440.             }
  441.             
  442.             private void InitClass() {
  443.                 this.column客房编号 = new DataColumn("客房编号", typeof(string), null, System.Data.MappingType.Element);
  444.                 this.Columns.Add(this.column客房编号);
  445.                 this.column类型编号 = new DataColumn("类型编号", typeof(string), null, System.Data.MappingType.Element);
  446.                 this.Columns.Add(this.column类型编号);
  447.                 this.column楼层编号 = new DataColumn("楼层编号", typeof(int), null, System.Data.MappingType.Element);
  448.                 this.Columns.Add(this.column楼层编号);
  449.                 this.column额定人数 = new DataColumn("额定人数", typeof(int), null, System.Data.MappingType.Element);
  450.                 this.Columns.Add(this.column额定人数);
  451.                 this.column床数 = new DataColumn("床数", typeof(int), null, System.Data.MappingType.Element);
  452.                 this.Columns.Add(this.column床数);
  453.                 this.column客房描述 = new DataColumn("客房描述", typeof(string), null, System.Data.MappingType.Element);
  454.                 this.Columns.Add(this.column客房描述);
  455.                 this.column备注 = new DataColumn("备注", typeof(string), null, System.Data.MappingType.Element);
  456.                 this.Columns.Add(this.column备注);
  457.                 this.column状态 = new DataColumn("状态", typeof(string), null, System.Data.MappingType.Element);
  458.                 this.Columns.Add(this.column状态);
  459.                 this.column是否可拼房 = new DataColumn("是否可拼房", typeof(bool), null, System.Data.MappingType.Element);
  460.                 this.Columns.Add(this.column是否可拼房);
  461.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  462.                                 this.column客房编号}, true));
  463.                 this.column客房编号.AllowDBNull = false;
  464.                 this.column客房编号.Unique = true;
  465.                 this.column类型编号.AllowDBNull = false;
  466.                 this.column楼层编号.AllowDBNull = false;
  467.                 this.column是否可拼房.DefaultValue = false;
  468.             }
  469.             
  470.             public 客房信息Row New客房信息Row() {
  471.                 return ((客房信息Row)(this.NewRow()));
  472.             }
  473.             
  474.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  475.                 return new 客房信息Row(builder);
  476.             }
  477.             
  478.             protected override System.Type GetRowType() {
  479.                 return typeof(客房信息Row);
  480.             }
  481.             
  482.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  483.                 base.OnRowChanged(e);
  484.                 if ((this.客房信息RowChanged != null)) {
  485.                     this.客房信息RowChanged(this, new 客房信息RowChangeEvent(((客房信息Row)(e.Row)), e.Action));
  486.                 }
  487.             }
  488.             
  489.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  490.                 base.OnRowChanging(e);
  491.                 if ((this.客房信息RowChanging != null)) {
  492.                     this.客房信息RowChanging(this, new 客房信息RowChangeEvent(((客房信息Row)(e.Row)), e.Action));
  493.                 }
  494.             }
  495.             
  496.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  497.                 base.OnRowDeleted(e);
  498.                 if ((this.客房信息RowDeleted != null)) {
  499.                     this.客房信息RowDeleted(this, new 客房信息RowChangeEvent(((客房信息Row)(e.Row)), e.Action));
  500.                 }
  501.             }
  502.             
  503.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  504.                 base.OnRowDeleting(e);
  505.                 if ((this.客房信息RowDeleting != null)) {
  506.                     this.客房信息RowDeleting(this, new 客房信息RowChangeEvent(((客房信息Row)(e.Row)), e.Action));
  507.                 }
  508.             }
  509.             
  510.             public void Remove客房信息Row(客房信息Row row) {
  511.                 this.Rows.Remove(row);
  512.             }
  513.         }
  514.         
  515.         [System.Diagnostics.DebuggerStepThrough()]
  516.         public class 客房信息Row : DataRow {
  517.             
  518.             private 客房信息DataTable table客房信息;
  519.             
  520.             internal 客房信息Row(DataRowBuilder rb) : 
  521.                     base(rb) {
  522.                 this.table客房信息 = ((客房信息DataTable)(this.Table));
  523.             }
  524.             
  525.             public string 客房编号 {
  526.                 get {
  527.                     return ((string)(this[this.table客房信息.客房编号Column]));
  528.                 }
  529.                 set {
  530.                     this[this.table客房信息.客房编号Column] = value;
  531.                 }
  532.             }
  533.             
  534.             public string 类型编号 {
  535.                 get {
  536.                     return ((string)(this[this.table客房信息.类型编号Column]));
  537.                 }
  538.                 set {
  539.                     this[this.table客房信息.类型编号Column] = value;
  540.                 }
  541.             }
  542.             
  543.             public int 楼层编号 {
  544.                 get {
  545.                     return ((int)(this[this.table客房信息.楼层编号Column]));
  546.                 }
  547.                 set {
  548.                     this[this.table客房信息.楼层编号Column] = value;
  549.                 }
  550.             }
  551.             
  552.             public int 额定人数 {
  553.                 get {
  554.                     try {
  555.                         return ((int)(this[this.table客房信息.额定人数Column]));
  556.                     }
  557.                     catch (InvalidCastException e) {
  558.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  559.                     }
  560.                 }
  561.                 set {
  562.                     this[this.table客房信息.额定人数Column] = value;
  563.                 }
  564.             }
  565.             
  566.             public int 床数 {
  567.                 get {
  568.                     try {
  569.                         return ((int)(this[this.table客房信息.床数Column]));
  570.                     }
  571.                     catch (InvalidCastException e) {
  572.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  573.                     }
  574.                 }
  575.                 set {
  576.                     this[this.table客房信息.床数Column] = value;
  577.                 }
  578.             }
  579.             
  580.             public string 客房描述 {
  581.                 get {
  582.                     try {
  583.                         return ((string)(this[this.table客房信息.客房描述Column]));
  584.                     }
  585.                     catch (InvalidCastException e) {
  586.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  587.                     }
  588.                 }
  589.                 set {
  590.                     this[this.table客房信息.客房描述Column] = value;
  591.                 }
  592.             }
  593.             
  594.             public string 备注 {
  595.                 get {
  596.                     try {
  597.                         return ((string)(this[this.table客房信息.备注Column]));
  598.                     }
  599.                     catch (InvalidCastException e) {
  600.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  601.                     }
  602.                 }
  603.                 set {
  604.                     this[this.table客房信息.备注Column] = value;
  605.                 }
  606.             }
  607.             
  608.             public string 状态 {
  609.                 get {
  610.                     try {
  611.                         return ((string)(this[this.table客房信息.状态Column]));
  612.                     }
  613.                     catch (InvalidCastException e) {
  614.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  615.                     }
  616.                 }
  617.                 set {
  618.                     this[this.table客房信息.状态Column] = value;
  619.                 }
  620.             }
  621.             
  622.             public bool 是否可拼房 {
  623.                 get {
  624.                     try {
  625.                         return ((bool)(this[this.table客房信息.是否可拼房Column]));
  626.                     }
  627.                     catch (InvalidCastException e) {
  628.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  629.                     }
  630.                 }
  631.                 set {
  632.                     this[this.table客房信息.是否可拼房Column] = value;
  633.                 }
  634.             }
  635.             
  636.             public bool Is额定人数Null() {
  637.                 return this.IsNull(this.table客房信息.额定人数Column);
  638.             }
  639.             
  640.             public void Set额定人数Null() {
  641.                 this[this.table客房信息.额定人数Column] = System.Convert.DBNull;
  642.             }
  643.             
  644.             public bool Is床数Null() {
  645.                 return this.IsNull(this.table客房信息.床数Column);
  646.             }
  647.             
  648.             public void Set床数Null() {
  649.                 this[this.table客房信息.床数Column] = System.Convert.DBNull;
  650.             }
  651.             
  652.             public bool Is客房描述Null() {
  653.                 return this.IsNull(this.table客房信息.客房描述Column);
  654.             }
  655.             
  656.             public void Set客房描述Null() {
  657.                 this[this.table客房信息.客房描述Column] = System.Convert.DBNull;
  658.             }
  659.             
  660.             public bool Is备注Null() {
  661.                 return this.IsNull(this.table客房信息.备注Column);
  662.             }
  663.             
  664.             public void Set备注Null() {
  665.                 this[this.table客房信息.备注Column] = System.Convert.DBNull;
  666.             }
  667.             
  668.             public bool Is状态Null() {
  669.                 return this.IsNull(this.table客房信息.状态Column);
  670.             }
  671.             
  672.             public void Set状态Null() {
  673.                 this[this.table客房信息.状态Column] = System.Convert.DBNull;
  674.             }
  675.             
  676.             public bool Is是否可拼房Null() {
  677.                 return this.IsNull(this.table客房信息.是否可拼房Column);
  678.             }
  679.             
  680.             public void Set是否可拼房Null() {
  681.                 this[this.table客房信息.是否可拼房Column] = System.Convert.DBNull;
  682.             }
  683.         }
  684.         
  685.         [System.Diagnostics.DebuggerStepThrough()]
  686.         public class 客房信息RowChangeEvent : EventArgs {
  687.             
  688.             private 客房信息Row eventRow;
  689.             
  690.             private DataRowAction eventAction;
  691.             
  692.             public 客房信息RowChangeEvent(客房信息Row row, DataRowAction action) {
  693.                 this.eventRow = row;
  694.                 this.eventAction = action;
  695.             }
  696.             
  697.             public 客房信息Row Row {
  698.                 get {
  699.                     return this.eventRow;
  700.                 }
  701.             }
  702.             
  703.             public DataRowAction Action {
  704.                 get {
  705.                     return this.eventAction;
  706.                 }
  707.             }
  708.         }
  709.         
  710.         [System.Diagnostics.DebuggerStepThrough()]
  711.         public class 楼层信息DataTable : DataTable, System.Collections.IEnumerable {
  712.             
  713.             private DataColumn column楼层编号;
  714.             
  715.             private DataColumn column楼层名称;
  716.             
  717.             internal 楼层信息DataTable() : 
  718.                     base("楼层信息") {
  719.                 this.InitClass();
  720.             }
  721.             
  722.             internal 楼层信息DataTable(DataTable table) : 
  723.                     base(table.TableName) {
  724.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  725.                     this.CaseSensitive = table.CaseSensitive;
  726.                 }
  727.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  728.                     this.Locale = table.Locale;
  729.                 }
  730.                 if ((table.Namespace != table.DataSet.Namespace)) {
  731.                     this.Namespace = table.Namespace;
  732.                 }
  733.                 this.Prefix = table.Prefix;
  734.                 this.MinimumCapacity = table.MinimumCapacity;
  735.                 this.DisplayExpression = table.DisplayExpression;
  736.             }
  737.             
  738.             [System.ComponentModel.Browsable(false)]
  739.             public int Count {
  740.                 get {
  741.                     return this.Rows.Count;
  742.                 }
  743.             }
  744.             
  745.             internal DataColumn 楼层编号Column {
  746.                 get {
  747.                     return this.column楼层编号;
  748.                 }
  749.             }
  750.             
  751.             internal DataColumn 楼层名称Column {
  752.                 get {
  753.                     return this.column楼层名称;
  754.                 }
  755.             }
  756.             
  757.             public 楼层信息Row this[int index] {
  758.                 get {
  759.                     return ((楼层信息Row)(this.Rows[index]));
  760.                 }
  761.             }
  762.             
  763.             public event 楼层信息RowChangeEventHandler 楼层信息RowChanged;
  764.             
  765.             public event 楼层信息RowChangeEventHandler 楼层信息RowChanging;
  766.             
  767.             public event 楼层信息RowChangeEventHandler 楼层信息RowDeleted;
  768.             
  769.             public event 楼层信息RowChangeEventHandler 楼层信息RowDeleting;
  770.             
  771.             public void Add楼层信息Row(楼层信息Row row) {
  772.                 this.Rows.Add(row);
  773.             }
  774.             
  775.             public 楼层信息Row Add楼层信息Row(int 楼层编号, string 楼层名称) {
  776.                 楼层信息Row row楼层信息Row = ((楼层信息Row)(this.NewRow()));
  777.                 row楼层信息Row.ItemArray = new object[] {
  778.                         楼层编号,
  779.                         楼层名称};
  780.                 this.Rows.Add(row楼层信息Row);
  781.                 return row楼层信息Row;
  782.             }
  783.             
  784.             public 楼层信息Row FindBy楼层编号(int 楼层编号) {
  785.                 return ((楼层信息Row)(this.Rows.Find(new object[] {
  786.                             楼层编号})));
  787.             }
  788.             
  789.             public System.Collections.IEnumerator GetEnumerator() {
  790.                 return this.Rows.GetEnumerator();
  791.             }
  792.             
  793.             public override DataTable Clone() {
  794.                 楼层信息DataTable cln = ((楼层信息DataTable)(base.Clone()));
  795.                 cln.InitVars();
  796.                 return cln;
  797.             }
  798.             
  799.             protected override DataTable CreateInstance() {
  800.                 return new 楼层信息DataTable();
  801.             }
  802.             
  803.             internal void InitVars() {
  804.                 this.column楼层编号 = this.Columns["楼层编号"];
  805.                 this.column楼层名称 = this.Columns["楼层名称"];
  806.             }
  807.             
  808.             private void InitClass() {
  809.                 this.column楼层编号 = new DataColumn("楼层编号", typeof(int), null, System.Data.MappingType.Element);
  810.                 this.Columns.Add(this.column楼层编号);
  811.                 this.column楼层名称 = new DataColumn("楼层名称", typeof(string), null, System.Data.MappingType.Element);
  812.                 this.Columns.Add(this.column楼层名称);
  813.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  814.                                 this.column楼层编号}, true));
  815.                 this.column楼层编号.AllowDBNull = false;
  816.                 this.column楼层编号.Unique = true;
  817.             }
  818.             
  819.             public 楼层信息Row New楼层信息Row() {
  820.                 return ((楼层信息Row)(this.NewRow()));
  821.             }
  822.             
  823.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  824.                 return new 楼层信息Row(builder);
  825.             }
  826.             
  827.             protected override System.Type GetRowType() {
  828.                 return typeof(楼层信息Row);
  829.             }
  830.             
  831.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  832.                 base.OnRowChanged(e);
  833.                 if ((this.楼层信息RowChanged != null)) {
  834.                     this.楼层信息RowChanged(this, new 楼层信息RowChangeEvent(((楼层信息Row)(e.Row)), e.Action));
  835.                 }
  836.             }
  837.             
  838.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  839.                 base.OnRowChanging(e);
  840.                 if ((this.楼层信息RowChanging != null)) {
  841.                     this.楼层信息RowChanging(this, new 楼层信息RowChangeEvent(((楼层信息Row)(e.Row)), e.Action));
  842.                 }
  843.             }
  844.             
  845.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  846.                 base.OnRowDeleted(e);
  847.                 if ((this.楼层信息RowDeleted != null)) {
  848.                     this.楼层信息RowDeleted(this, new 楼层信息RowChangeEvent(((楼层信息Row)(e.Row)), e.Action));
  849.                 }
  850.             }
  851.             
  852.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  853.                 base.OnRowDeleting(e);
  854.                 if ((this.楼层信息RowDeleting != null)) {
  855.                     this.楼层信息RowDeleting(this, new 楼层信息RowChangeEvent(((楼层信息Row)(e.Row)), e.Action));
  856.                 }
  857.             }
  858.             
  859.             public void Remove楼层信息Row(楼层信息Row row) {
  860.                 this.Rows.Remove(row);
  861.             }
  862.         }
  863.         
  864.         [System.Diagnostics.DebuggerStepThrough()]
  865.         public class 楼层信息Row : DataRow {
  866.             
  867.             private 楼层信息DataTable table楼层信息;
  868.             
  869.             internal 楼层信息Row(DataRowBuilder rb) : 
  870.                     base(rb) {
  871.                 this.table楼层信息 = ((楼层信息DataTable)(this.Table));
  872.             }
  873.             
  874.             public int 楼层编号 {
  875.                 get {
  876.                     return ((int)(this[this.table楼层信息.楼层编号Column]));
  877.                 }
  878.                 set {
  879.                     this[this.table楼层信息.楼层编号Column] = value;
  880.                 }
  881.             }
  882.             
  883.             public string 楼层名称 {
  884.                 get {
  885.                     try {
  886.                         return ((string)(this[this.table楼层信息.楼层名称Column]));
  887.                     }
  888.                     catch (InvalidCastException e) {
  889.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  890.                     }
  891.                 }
  892.                 set {
  893.                     this[this.table楼层信息.楼层名称Column] = value;
  894.                 }
  895.             }
  896.             
  897.             public bool Is楼层名称Null() {
  898.                 return this.IsNull(this.table楼层信息.楼层名称Column);
  899.             }
  900.             
  901.             public void Set楼层名称Null() {
  902.                 this[this.table楼层信息.楼层名称Column] = System.Convert.DBNull;
  903.             }
  904.         }
  905.         
  906.         [System.Diagnostics.DebuggerStepThrough()]
  907.         public class 楼层信息RowChangeEvent : EventArgs {
  908.             
  909.             private 楼层信息Row eventRow;
  910.             
  911.             private DataRowAction eventAction;
  912.             
  913.             public 楼层信息RowChangeEvent(楼层信息Row row, DataRowAction action) {
  914.                 this.eventRow = row;
  915.                 this.eventAction = action;
  916.             }
  917.             
  918.             public 楼层信息Row Row {
  919.                 get {
  920.                     return this.eventRow;
  921.                 }
  922.             }
  923.             
  924.             public DataRowAction Action {
  925.                 get {
  926.                     return this.eventAction;
  927.                 }
  928.             }
  929.         }
  930.         
  931.         [System.Diagnostics.DebuggerStepThrough()]
  932.         public class 预定单DataTable : DataTable, System.Collections.IEnumerable {
  933.             
  934.             private DataColumn column预定单号;
  935.             
  936.             private DataColumn column会员编号;
  937.             
  938.             private DataColumn column客房类型;
  939.             
  940.             private DataColumn column抵店时间;
  941.             
  942.             private DataColumn column离店时间;
  943.             
  944.             private DataColumn column单据状态;
  945.             
  946.             private DataColumn column入住人数;
  947.             
  948.             private DataColumn column客房编号;
  949.             
  950.             private DataColumn column客房价格;
  951.             
  952.             private DataColumn column入住价格;
  953.             
  954.             private DataColumn column折扣;
  955.             
  956.             private DataColumn column折扣原因;
  957.             
  958.             private DataColumn column是否加床;
  959.             
  960.             private DataColumn column加床价格;
  961.             
  962.             private DataColumn column预收款;
  963.             
  964.             private DataColumn column预定人;
  965.             
  966.             private DataColumn column预定公司;
  967.             
  968.             private DataColumn column联系电话;
  969.             
  970.             private DataColumn column备注;
  971.             
  972.             private DataColumn column操作员;
  973.             
  974.             private DataColumn column业务员;
  975.             
  976.             internal 预定单DataTable() : 
  977.                     base("预定单") {
  978.                 this.InitClass();
  979.             }
  980.             
  981.             internal 预定单DataTable(DataTable table) : 
  982.                     base(table.TableName) {
  983.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  984.                     this.CaseSensitive = table.CaseSensitive;
  985.                 }
  986.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  987.                     this.Locale = table.Locale;
  988.                 }
  989.                 if ((table.Namespace != table.DataSet.Namespace)) {
  990.                     this.Namespace = table.Namespace;
  991.                 }
  992.                 this.Prefix = table.Prefix;
  993.                 this.MinimumCapacity = table.MinimumCapacity;
  994.                 this.DisplayExpression = table.DisplayExpression;
  995.             }
  996.             
  997.             [System.ComponentModel.Browsable(false)]
  998.             public int Count {
  999.                 get {
  1000.                     return this.Rows.Count;
  1001.                 }
  1002.             }
  1003.             
  1004.             internal DataColumn 预定单号Column {
  1005.                 get {
  1006.                     return this.column预定单号;
  1007.                 }
  1008.             }
  1009.             
  1010.             internal DataColumn 会员编号Column {
  1011.                 get {
  1012.                     return this.column会员编号;
  1013.                 }
  1014.             }
  1015.             
  1016.             internal DataColumn 客房类型Column {
  1017.                 get {
  1018.                     return this.column客房类型;
  1019.                 }
  1020.             }
  1021.             
  1022.             internal DataColumn 抵店时间Column {
  1023.                 get {
  1024.                     return this.column抵店时间;
  1025.                 }
  1026.             }
  1027.             
  1028.             internal DataColumn 离店时间Column {
  1029.                 get {
  1030.                     return this.column离店时间;
  1031.                 }
  1032.             }
  1033.             
  1034.             internal DataColumn 单据状态Column {
  1035.                 get {
  1036.                     return this.column单据状态;
  1037.                 }
  1038.             }
  1039.             
  1040.             internal DataColumn 入住人数Column {
  1041.                 get {
  1042.                     return this.column入住人数;
  1043.                 }
  1044.             }
  1045.             
  1046.             internal DataColumn 客房编号Column {
  1047.                 get {
  1048.                     return this.column客房编号;
  1049.                 }
  1050.             }
  1051.             
  1052.             internal DataColumn 客房价格Column {
  1053.                 get {
  1054.                     return this.column客房价格;
  1055.                 }
  1056.             }
  1057.             
  1058.             internal DataColumn 入住价格Column {
  1059.                 get {
  1060.                     return this.column入住价格;
  1061.                 }
  1062.             }
  1063.             
  1064.             internal DataColumn 折扣Column {
  1065.                 get {
  1066.                     return this.column折扣;
  1067.                 }
  1068.             }
  1069.             
  1070.             internal DataColumn 折扣原因Column {
  1071.                 get {
  1072.                     return this.column折扣原因;
  1073.                 }
  1074.             }
  1075.             
  1076.             internal DataColumn 是否加床Column {
  1077.                 get {
  1078.                     return this.column是否加床;
  1079.                 }
  1080.             }
  1081.             
  1082.             internal DataColumn 加床价格Column {
  1083.                 get {
  1084.                     return this.column加床价格;
  1085.                 }
  1086.             }
  1087.             
  1088.             internal DataColumn 预收款Column {
  1089.                 get {
  1090.                     return this.column预收款;
  1091.                 }
  1092.             }
  1093.             
  1094.             internal DataColumn 预定人Column {
  1095.                 get {
  1096.                     return this.column预定人;
  1097.                 }
  1098.             }
  1099.             
  1100.             internal DataColumn 预定公司Column {
  1101.                 get {
  1102.                     return this.column预定公司;
  1103.                 }
  1104.             }
  1105.             
  1106.             internal DataColumn 联系电话Column {
  1107.                 get {
  1108.                     return this.column联系电话;
  1109.                 }
  1110.             }
  1111.             
  1112.             internal DataColumn 备注Column {
  1113.                 get {
  1114.                     return this.column备注;
  1115.                 }
  1116.             }
  1117.             
  1118.             internal DataColumn 操作员Column {
  1119.                 get {
  1120.                     return this.column操作员;
  1121.                 }
  1122.             }
  1123.             
  1124.             internal DataColumn 业务员Column {
  1125.                 get {
  1126.                     return this.column业务员;
  1127.                 }
  1128.             }
  1129.             
  1130.             public 预定单Row this[int index] {
  1131.                 get {
  1132.                     return ((预定单Row)(this.Rows[index]));
  1133.                 }
  1134.             }
  1135.             
  1136.             public event 预定单RowChangeEventHandler 预定单RowChanged;
  1137.             
  1138.             public event 预定单RowChangeEventHandler 预定单RowChanging;
  1139.             
  1140.             public event 预定单RowChangeEventHandler 预定单RowDeleted;
  1141.             
  1142.             public event 预定单RowChangeEventHandler 预定单RowDeleting;
  1143.             
  1144.             public void Add预定单Row(预定单Row row) {
  1145.                 this.Rows.Add(row);
  1146.             }
  1147.             
  1148.             public 预定单Row Add预定单Row(
  1149.                         string 预定单号, 
  1150.                         int 会员编号, 
  1151.                         string 客房类型, 
  1152.                         System.DateTime 抵店时间, 
  1153.                         System.DateTime 离店时间, 
  1154.                         string 单据状态, 
  1155.                         int 入住人数, 
  1156.                         string 客房编号, 
  1157.                         System.Decimal 客房价格, 
  1158.                         System.Decimal 入住价格, 
  1159.                         System.Decimal 折扣, 
  1160.                         string 折扣原因, 
  1161.                         bool 是否加床, 
  1162.                         System.Decimal 加床价格, 
  1163.                         System.Decimal 预收款, 
  1164.                         string 预定人, 
  1165.                         string 预定公司, 
  1166.                         string 联系电话, 
  1167.                         string 备注, 
  1168.                         string 操作员, 
  1169.                         string 业务员) {
  1170.                 预定单Row row预定单Row = ((预定单Row)(this.NewRow()));
  1171.                 row预定单Row.ItemArray = new object[] {
  1172.                         预定单号,
  1173.                         会员编号,
  1174.                         客房类型,
  1175.                         抵店时间,
  1176.                         离店时间,
  1177.                         单据状态,
  1178.                         入住人数,
  1179.                         客房编号,
  1180.                         客房价格,
  1181.                         入住价格,
  1182.                         折扣,
  1183.                         折扣原因,
  1184.                         是否加床,
  1185.                         加床价格,
  1186.                         预收款,
  1187.                         预定人,
  1188.                         预定公司,
  1189.                         联系电话,
  1190.                         备注,
  1191.                         操作员,
  1192.                         业务员};
  1193.                 this.Rows.Add(row预定单Row);
  1194.                 return row预定单Row;
  1195.             }
  1196.             
  1197.             public 预定单Row FindBy预定单号(string 预定单号) {
  1198.                 return ((预定单Row)(this.Rows.Find(new object[] {
  1199.                             预定单号})));
  1200.             }
  1201.             
  1202.             public System.Collections.IEnumerator GetEnumerator() {
  1203.                 return this.Rows.GetEnumerator();
  1204.             }
  1205.             
  1206.             public override DataTable Clone() {
  1207.                 预定单DataTable cln = ((预定单DataTable)(base.Clone()));
  1208.                 cln.InitVars();
  1209.                 return cln;
  1210.             }
  1211.             
  1212.             protected override DataTable CreateInstance() {
  1213.                 return new 预定单DataTable();
  1214.             }
  1215.             
  1216.             internal void InitVars() {
  1217.                 this.column预定单号 = this.Columns["预定单号"];
  1218.                 this.column会员编号 = this.Columns["会员编号"];
  1219.                 this.column客房类型 = this.Columns["客房类型"];
  1220.                 this.column抵店时间 = this.Columns["抵店时间"];
  1221.                 this.column离店时间 = this.Columns["离店时间"];
  1222.                 this.column单据状态 = this.Columns["单据状态"];
  1223.                 this.column入住人数 = this.Columns["入住人数"];
  1224.                 this.column客房编号 = this.Columns["客房编号"];
  1225.                 this.column客房价格 = this.Columns["客房价格"];
  1226.                 this.column入住价格 = this.Columns["入住价格"];
  1227.                 this.column折扣 = this.Columns["折扣"];
  1228.                 this.column折扣原因 = this.Columns["折扣原因"];
  1229.                 this.column是否加床 = this.Columns["是否加床"];
  1230.                 this.column加床价格 = this.Columns["加床价格"];
  1231.                 this.column预收款 = this.Columns["预收款"];
  1232.                 this.column预定人 = this.Columns["预定人"];
  1233.                 this.column预定公司 = this.Columns["预定公司"];
  1234.                 this.column联系电话 = this.Columns["联系电话"];
  1235.                 this.column备注 = this.Columns["备注"];
  1236.                 this.column操作员 = this.Columns["操作员"];
  1237.                 this.column业务员 = this.Columns["业务员"];
  1238.             }
  1239.             
  1240.             private void InitClass() {
  1241.                 this.column预定单号 = new DataColumn("预定单号", typeof(string), null, System.Data.MappingType.Element);
  1242.                 this.Columns.Add(this.column预定单号);
  1243.                 this.column会员编号 = new DataColumn("会员编号", typeof(int), null, System.Data.MappingType.Element);
  1244.                 this.Columns.Add(this.column会员编号);
  1245.                 this.column客房类型 = new DataColumn("客房类型", typeof(string), null, System.Data.MappingType.Element);
  1246.                 this.Columns.Add(this.column客房类型);
  1247.                 this.column抵店时间 = new DataColumn("抵店时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  1248.                 this.Columns.Add(this.column抵店时间);
  1249.                 this.column离店时间 = new DataColumn("离店时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  1250.                 this.Columns.Add(this.column离店时间);
  1251.                 this.column单据状态 = new DataColumn("单据状态", typeof(string), null, System.Data.MappingType.Element);
  1252.                 this.Columns.Add(this.column单据状态);
  1253.                 this.column入住人数 = new DataColumn("入住人数", typeof(int), null, System.Data.MappingType.Element);
  1254.                 this.Columns.Add(this.column入住人数);
  1255.                 this.column客房编号 = new DataColumn("客房编号", typeof(string), null, System.Data.MappingType.Element);
  1256.                 this.Columns.Add(this.column客房编号);
  1257.                 this.column客房价格 = new DataColumn("客房价格", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1258.                 this.Columns.Add(this.column客房价格);
  1259.                 this.column入住价格 = new DataColumn("入住价格", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1260.                 this.Columns.Add(this.column入住价格);
  1261.                 this.column折扣 = new DataColumn("折扣", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1262.                 this.Columns.Add(this.column折扣);
  1263.                 this.column折扣原因 = new DataColumn("折扣原因", typeof(string), null, System.Data.MappingType.Element);
  1264.                 this.Columns.Add(this.column折扣原因);
  1265.                 this.column是否加床 = new DataColumn("是否加床", typeof(bool), null, System.Data.MappingType.Element);
  1266.                 this.Columns.Add(this.column是否加床);
  1267.                 this.column加床价格 = new DataColumn("加床价格", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1268.                 this.Columns.Add(this.column加床价格);
  1269.                 this.column预收款 = new DataColumn("预收款", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1270.                 this.Columns.Add(this.column预收款);
  1271.                 this.column预定人 = new DataColumn("预定人", typeof(string), null, System.Data.MappingType.Element);
  1272.                 this.Columns.Add(this.column预定人);
  1273.                 this.column预定公司 = new DataColumn("预定公司", typeof(string), null, System.Data.MappingType.Element);
  1274.                 this.Columns.Add(this.column预定公司);
  1275.                 this.column联系电话 = new DataColumn("联系电话", typeof(string), null, System.Data.MappingType.Element);
  1276.                 this.Columns.Add(this.column联系电话);
  1277.                 this.column备注 = new DataColumn("备注", typeof(string), null, System.Data.MappingType.Element);
  1278.                 this.Columns.Add(this.column备注);
  1279.                 this.column操作员 = new DataColumn("操作员", typeof(string), null, System.Data.MappingType.Element);
  1280.                 this.Columns.Add(this.column操作员);
  1281.                 this.column业务员 = new DataColumn("业务员", typeof(string), null, System.Data.MappingType.Element);
  1282.                 this.Columns.Add(this.column业务员);
  1283.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  1284.                                 this.column预定单号}, true));
  1285.                 this.column预定单号.AllowDBNull = false;
  1286.                 this.column预定单号.Unique = true;
  1287.                 this.column客房类型.AllowDBNull = false;
  1288.                 this.column抵店时间.AllowDBNull = false;
  1289.                 this.column是否加床.DefaultValue = false;
  1290.             }
  1291.             
  1292.             public 预定单Row New预定单Row() {
  1293.                 return ((预定单Row)(this.NewRow()));
  1294.             }
  1295.             
  1296.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  1297.                 return new 预定单Row(builder);
  1298.             }
  1299.             
  1300.             protected override System.Type GetRowType() {
  1301.                 return typeof(预定单Row);
  1302.             }
  1303.             
  1304.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  1305.                 base.OnRowChanged(e);
  1306.                 if ((this.预定单RowChanged != null)) {
  1307.                     this.预定单RowChanged(this, new 预定单RowChangeEvent(((预定单Row)(e.Row)), e.Action));
  1308.                 }
  1309.             }
  1310.             
  1311.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  1312.                 base.OnRowChanging(e);
  1313.                 if ((this.预定单RowChanging != null)) {
  1314.                     this.预定单RowChanging(this, new 预定单RowChangeEvent(((预定单Row)(e.Row)), e.Action));
  1315.                 }
  1316.             }
  1317.             
  1318.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  1319.                 base.OnRowDeleted(e);
  1320.                 if ((this.预定单RowDeleted != null)) {
  1321.                     this.预定单RowDeleted(this, new 预定单RowChangeEvent(((预定单Row)(e.Row)), e.Action));
  1322.                 }
  1323.             }
  1324.             
  1325.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  1326.                 base.OnRowDeleting(e);
  1327.                 if ((this.预定单RowDeleting != null)) {
  1328.                     this.预定单RowDeleting(this, new 预定单RowChangeEvent(((预定单Row)(e.Row)), e.Action));
  1329.                 }
  1330.             }
  1331.             
  1332.             public void Remove预定单Row(预定单Row row) {
  1333.                 this.Rows.Remove(row);
  1334.             }
  1335.         }
  1336.         
  1337.         [System.Diagnostics.DebuggerStepThrough()]
  1338.         public class 预定单Row : DataRow {
  1339.             
  1340.             private 预定单DataTable table预定单;
  1341.             
  1342.             internal 预定单Row(DataRowBuilder rb) : 
  1343.                     base(rb) {
  1344.                 this.table预定单 = ((预定单DataTable)(this.Table));
  1345.             }
  1346.             
  1347.             public string 预定单号 {
  1348.                 get {
  1349.                     return ((string)(this[this.table预定单.预定单号Column]));
  1350.                 }
  1351.                 set {
  1352.                     this[this.table预定单.预定单号Column] = value;
  1353.                 }
  1354.             }
  1355.             
  1356.             public int 会员编号 {
  1357.                 get {
  1358.                     try {
  1359.                         return ((int)(this[this.table预定单.会员编号Column]));
  1360.                     }
  1361.                     catch (InvalidCastException e) {
  1362.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1363.                     }
  1364.                 }
  1365.                 set {
  1366.                     this[this.table预定单.会员编号Column] = value;
  1367.                 }
  1368.             }
  1369.             
  1370.             public string 客房类型 {
  1371.                 get {
  1372.                     return ((string)(this[this.table预定单.客房类型Column]));
  1373.                 }
  1374.                 set {
  1375.                     this[this.table预定单.客房类型Column] = value;
  1376.                 }
  1377.             }
  1378.             
  1379.             public System.DateTime 抵店时间 {
  1380.                 get {
  1381.                     return ((System.DateTime)(this[this.table预定单.抵店时间Column]));
  1382.                 }
  1383.                 set {
  1384.                     this[this.table预定单.抵店时间Column] = value;
  1385.                 }
  1386.             }
  1387.             
  1388.             public System.DateTime 离店时间 {
  1389.                 get {
  1390.                     try {
  1391.                         return ((System.DateTime)(this[this.table预定单.离店时间Column]));
  1392.                     }
  1393.                     catch (InvalidCastException e) {
  1394.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1395.                     }
  1396.                 }
  1397.                 set {
  1398.                     this[this.table预定单.离店时间Column] = value;
  1399.                 }
  1400.             }
  1401.             
  1402.             public string 单据状态 {
  1403.                 get {
  1404.                     try {
  1405.                         return ((string)(this[this.table预定单.单据状态Column]));
  1406.                     }
  1407.                     catch (InvalidCastException e) {
  1408.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1409.                     }
  1410.                 }
  1411.                 set {
  1412.                     this[this.table预定单.单据状态Column] = value;
  1413.                 }
  1414.             }
  1415.             
  1416.             public int 入住人数 {
  1417.                 get {
  1418.                     try {
  1419.                         return ((int)(this[this.table预定单.入住人数Column]));
  1420.                     }
  1421.                     catch (InvalidCastException e) {
  1422.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1423.                     }
  1424.                 }
  1425.                 set {
  1426.                     this[this.table预定单.入住人数Column] = value;
  1427.                 }
  1428.             }
  1429.             
  1430.             public string 客房编号 {
  1431.                 get {
  1432.                     try {
  1433.                         return ((string)(this[this.table预定单.客房编号Column]));
  1434.                     }
  1435.                     catch (InvalidCastException e) {
  1436.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1437.                     }
  1438.                 }
  1439.                 set {
  1440.                     this[this.table预定单.客房编号Column] = value;
  1441.                 }
  1442.             }
  1443.             
  1444.             public System.Decimal 客房价格 {
  1445.                 get {
  1446.                     try {
  1447.                         return ((System.Decimal)(this[this.table预定单.客房价格Column]));
  1448.                     }
  1449.                     catch (InvalidCastException e) {
  1450.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1451.                     }
  1452.                 }
  1453.                 set {
  1454.                     this[this.table预定单.客房价格Column] = value;
  1455.                 }
  1456.             }
  1457.             
  1458.             public System.Decimal 入住价格 {
  1459.                 get {
  1460.                     try {
  1461.                         return ((System.Decimal)(this[this.table预定单.入住价格Column]));
  1462.                     }
  1463.                     catch (InvalidCastException e) {
  1464.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1465.                     }
  1466.                 }
  1467.                 set {
  1468.                     this[this.table预定单.入住价格Column] = value;
  1469.                 }
  1470.             }
  1471.             
  1472.             public System.Decimal 折扣 {
  1473.                 get {
  1474.                     try {
  1475.                         return ((System.Decimal)(this[this.table预定单.折扣Column]));
  1476.                     }
  1477.                     catch (InvalidCastException e) {
  1478.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1479.                     }
  1480.                 }
  1481.                 set {
  1482.                     this[this.table预定单.折扣Column] = value;
  1483.                 }
  1484.             }
  1485.             
  1486.             public string 折扣原因 {
  1487.                 get {
  1488.                     try {
  1489.                         return ((string)(this[this.table预定单.折扣原因Column]));
  1490.                     }
  1491.                     catch (InvalidCastException e) {
  1492.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1493.                     }
  1494.                 }
  1495.                 set {
  1496.                     this[this.table预定单.折扣原因Column] = value;
  1497.                 }
  1498.             }
  1499.             
  1500.             public bool 是否加床 {
  1501.                 get {
  1502.                     try {
  1503.                         return ((bool)(this[this.table预定单.是否加床Column]));
  1504.                     }
  1505.                     catch (InvalidCastException e) {
  1506.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1507.                     }
  1508.                 }
  1509.                 set {
  1510.                     this[this.table预定单.是否加床Column] = value;
  1511.                 }
  1512.             }
  1513.             
  1514.             public System.Decimal 加床价格 {
  1515.                 get {
  1516.                     try {
  1517.                         return ((System.Decimal)(this[this.table预定单.加床价格Column]));
  1518.                     }
  1519.                     catch (InvalidCastException e) {
  1520.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1521.                     }
  1522.                 }
  1523.                 set {
  1524.                     this[this.table预定单.加床价格Column] = value;
  1525.                 }
  1526.             }
  1527.             
  1528.             public System.Decimal 预收款 {
  1529.                 get {
  1530.                     try {
  1531.                         return ((System.Decimal)(this[this.table预定单.预收款Column]));
  1532.                     }
  1533.                     catch (InvalidCastException e) {
  1534.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1535.                     }
  1536.                 }
  1537.                 set {
  1538.                     this[this.table预定单.预收款Column] = value;
  1539.                 }
  1540.             }
  1541.             
  1542.             public string 预定人 {
  1543.                 get {
  1544.                     try {
  1545.                         return ((string)(this[this.table预定单.预定人Column]));
  1546.                     }
  1547.                     catch (InvalidCastException e) {
  1548.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1549.                     }
  1550.                 }
  1551.                 set {
  1552.                     this[this.table预定单.预定人Column] = value;
  1553.                 }
  1554.             }
  1555.             
  1556.             public string 预定公司 {
  1557.                 get {
  1558.                     try {
  1559.                         return ((string)(this[this.table预定单.预定公司Column]));
  1560.                     }
  1561.                     catch (InvalidCastException e) {
  1562.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1563.                     }
  1564.                 }
  1565.                 set {
  1566.                     this[this.table预定单.预定公司Column] = value;
  1567.                 }
  1568.             }
  1569.             
  1570.             public string 联系电话 {
  1571.                 get {
  1572.                     try {
  1573.                         return ((string)(this[this.table预定单.联系电话Column]));
  1574.                     }
  1575.                     catch (InvalidCastException e) {
  1576.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1577.                     }
  1578.                 }
  1579.                 set {
  1580.                     this[this.table预定单.联系电话Column] = value;
  1581.                 }
  1582.             }
  1583.             
  1584.             public string 备注 {
  1585.                 get {
  1586.                     try {
  1587.                         return ((string)(this[this.table预定单.备注Column]));
  1588.                     }
  1589.                     catch (InvalidCastException e) {
  1590.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1591.                     }
  1592.                 }
  1593.                 set {
  1594.                     this[this.table预定单.备注Column] = value;
  1595.                 }
  1596.             }
  1597.             
  1598.             public string 操作员 {
  1599.                 get {
  1600.                     try {
  1601.                         return ((string)(this[this.table预定单.操作员Column]));
  1602.                     }
  1603.                     catch (InvalidCastException e) {
  1604.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1605.                     }
  1606.                 }
  1607.                 set {
  1608.                     this[this.table预定单.操作员Column] = value;
  1609.                 }
  1610.             }
  1611.             
  1612.             public string 业务员 {
  1613.                 get {
  1614.                     try {
  1615.                         return ((string)(this[this.table预定单.业务员Column]));
  1616.                     }
  1617.                     catch (InvalidCastException e) {
  1618.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1619.                     }
  1620.                 }
  1621.                 set {
  1622.                     this[this.table预定单.业务员Column] = value;
  1623.                 }
  1624.             }
  1625.             
  1626.             public bool Is会员编号Null() {
  1627.                 return this.IsNull(this.table预定单.会员编号Column);
  1628.             }
  1629.             
  1630.             public void Set会员编号Null() {
  1631.                 this[this.table预定单.会员编号Column] = System.Convert.DBNull;
  1632.             }
  1633.             
  1634.             public bool Is离店时间Null() {
  1635.                 return this.IsNull(this.table预定单.离店时间Column);
  1636.             }
  1637.             
  1638.             public void Set离店时间Null() {
  1639.                 this[this.table预定单.离店时间Column] = System.Convert.DBNull;
  1640.             }
  1641.             
  1642.             public bool Is单据状态Null() {
  1643.                 return this.IsNull(this.table预定单.单据状态Column);
  1644.             }
  1645.             
  1646.             public void Set单据状态Null() {
  1647.                 this[this.table预定单.单据状态Column] = System.Convert.DBNull;
  1648.             }
  1649.             
  1650.             public bool Is入住人数Null() {
  1651.                 return this.IsNull(this.table预定单.入住人数Column);
  1652.             }
  1653.             
  1654.             public void Set入住人数Null() {
  1655.                 this[this.table预定单.入住人数Column] = System.Convert.DBNull;
  1656.             }
  1657.             
  1658.             public bool Is客房编号Null() {
  1659.                 return this.IsNull(this.table预定单.客房编号Column);
  1660.             }
  1661.             
  1662.             public void Set客房编号Null() {
  1663.                 this[this.table预定单.客房编号Column] = System.Convert.DBNull;
  1664.             }
  1665.             
  1666.             public bool Is客房价格Null() {
  1667.                 return this.IsNull(this.table预定单.客房价格Column);
  1668.             }
  1669.             
  1670.             public void Set客房价格Null() {
  1671.                 this[this.table预定单.客房价格Column] = System.Convert.DBNull;
  1672.             }
  1673.             
  1674.             public bool Is入住价格Null() {
  1675.                 return this.IsNull(this.table预定单.入住价格Column);
  1676.             }
  1677.             
  1678.             public void Set入住价格Null() {
  1679.                 this[this.table预定单.入住价格Column] = System.Convert.DBNull;
  1680.             }
  1681.             
  1682.             public bool Is折扣Null() {
  1683.                 return this.IsNull(this.table预定单.折扣Column);
  1684.             }
  1685.             
  1686.             public void Set折扣Null() {
  1687.                 this[this.table预定单.折扣Column] = System.Convert.DBNull;
  1688.             }
  1689.             
  1690.             public bool Is折扣原因Null() {
  1691.                 return this.IsNull(this.table预定单.折扣原因Column);
  1692.             }
  1693.             
  1694.             public void Set折扣原因Null() {
  1695.                 this[this.table预定单.折扣原因Column] = System.Convert.DBNull;
  1696.             }
  1697.             
  1698.             public bool Is是否加床Null() {
  1699.                 return this.IsNull(this.table预定单.是否加床Column);
  1700.             }
  1701.             
  1702.             public void Set是否加床Null() {
  1703.                 this[this.table预定单.是否加床Column] = System.Convert.DBNull;
  1704.             }
  1705.             
  1706.             public bool Is加床价格Null() {
  1707.                 return this.IsNull(this.table预定单.加床价格Column);
  1708.             }
  1709.             
  1710.             public void Set加床价格Null() {
  1711.                 this[this.table预定单.加床价格Column] = System.Convert.DBNull;
  1712.             }
  1713.             
  1714.             public bool Is预收款Null() {
  1715.                 return this.IsNull(this.table预定单.预收款Column);
  1716.             }
  1717.             
  1718.             public void Set预收款Null() {
  1719.                 this[this.table预定单.预收款Column] = System.Convert.DBNull;
  1720.             }
  1721.             
  1722.             public bool Is预定人Null() {
  1723.                 return this.IsNull(this.table预定单.预定人Column);
  1724.             }
  1725.             
  1726.             public void Set预定人Null() {
  1727.                 this[this.table预定单.预定人Column] = System.Convert.DBNull;
  1728.             }
  1729.