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

酒店行业

开发平台:

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 DataSet2 : DataSet {
  22.         
  23.         private 预定单DataTable table预定单;
  24.         
  25.         private 入住单DataTable table入住单;
  26.         
  27.         private 客房类型DataTable table客房类型;
  28.         
  29.         private 帐单明细DataTable table帐单明细;
  30.         
  31.         public DataSet2() {
  32.             this.InitClass();
  33.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  34.             this.Tables.CollectionChanged += schemaChangedHandler;
  35.             this.Relations.CollectionChanged += schemaChangedHandler;
  36.         }
  37.         
  38.         protected DataSet2(SerializationInfo info, StreamingContext context) {
  39.             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  40.             if ((strSchema != null)) {
  41.                 DataSet ds = new DataSet();
  42.                 ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
  43.                 if ((ds.Tables["预定单"] != null)) {
  44.                     this.Tables.Add(new 预定单DataTable(ds.Tables["预定单"]));
  45.                 }
  46.                 if ((ds.Tables["入住单"] != null)) {
  47.                     this.Tables.Add(new 入住单DataTable(ds.Tables["入住单"]));
  48.                 }
  49.                 if ((ds.Tables["客房类型"] != null)) {
  50.                     this.Tables.Add(new 客房类型DataTable(ds.Tables["客房类型"]));
  51.                 }
  52.                 if ((ds.Tables["帐单明细"] != null)) {
  53.                     this.Tables.Add(new 帐单明细DataTable(ds.Tables["帐单明细"]));
  54.                 }
  55.                 this.DataSetName = ds.DataSetName;
  56.                 this.Prefix = ds.Prefix;
  57.                 this.Namespace = ds.Namespace;
  58.                 this.Locale = ds.Locale;
  59.                 this.CaseSensitive = ds.CaseSensitive;
  60.                 this.EnforceConstraints = ds.EnforceConstraints;
  61.                 this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  62.                 this.InitVars();
  63.             }
  64.             else {
  65.                 this.InitClass();
  66.             }
  67.             this.GetSerializationData(info, context);
  68.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  69.             this.Tables.CollectionChanged += schemaChangedHandler;
  70.             this.Relations.CollectionChanged += schemaChangedHandler;
  71.         }
  72.         
  73.         [System.ComponentModel.Browsable(false)]
  74.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  75.         public 预定单DataTable 预定单 {
  76.             get {
  77.                 return this.table预定单;
  78.             }
  79.         }
  80.         
  81.         [System.ComponentModel.Browsable(false)]
  82.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  83.         public 入住单DataTable 入住单 {
  84.             get {
  85.                 return this.table入住单;
  86.             }
  87.         }
  88.         
  89.         [System.ComponentModel.Browsable(false)]
  90.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  91.         public 客房类型DataTable 客房类型 {
  92.             get {
  93.                 return this.table客房类型;
  94.             }
  95.         }
  96.         
  97.         [System.ComponentModel.Browsable(false)]
  98.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  99.         public 帐单明细DataTable 帐单明细 {
  100.             get {
  101.                 return this.table帐单明细;
  102.             }
  103.         }
  104.         
  105.         public override DataSet Clone() {
  106.             DataSet2 cln = ((DataSet2)(base.Clone()));
  107.             cln.InitVars();
  108.             return cln;
  109.         }
  110.         
  111.         protected override bool ShouldSerializeTables() {
  112.             return false;
  113.         }
  114.         
  115.         protected override bool ShouldSerializeRelations() {
  116.             return false;
  117.         }
  118.         
  119.         protected override void ReadXmlSerializable(XmlReader reader) {
  120.             this.Reset();
  121.             DataSet ds = new DataSet();
  122.             ds.ReadXml(reader);
  123.             if ((ds.Tables["预定单"] != null)) {
  124.                 this.Tables.Add(new 预定单DataTable(ds.Tables["预定单"]));
  125.             }
  126.             if ((ds.Tables["入住单"] != null)) {
  127.                 this.Tables.Add(new 入住单DataTable(ds.Tables["入住单"]));
  128.             }
  129.             if ((ds.Tables["客房类型"] != null)) {
  130.                 this.Tables.Add(new 客房类型DataTable(ds.Tables["客房类型"]));
  131.             }
  132.             if ((ds.Tables["帐单明细"] != null)) {
  133.                 this.Tables.Add(new 帐单明细DataTable(ds.Tables["帐单明细"]));
  134.             }
  135.             this.DataSetName = ds.DataSetName;
  136.             this.Prefix = ds.Prefix;
  137.             this.Namespace = ds.Namespace;
  138.             this.Locale = ds.Locale;
  139.             this.CaseSensitive = ds.CaseSensitive;
  140.             this.EnforceConstraints = ds.EnforceConstraints;
  141.             this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  142.             this.InitVars();
  143.         }
  144.         
  145.         protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  146.             System.IO.MemoryStream stream = new System.IO.MemoryStream();
  147.             this.WriteXmlSchema(new XmlTextWriter(stream, null));
  148.             stream.Position = 0;
  149.             return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
  150.         }
  151.         
  152.         internal void InitVars() {
  153.             this.table预定单 = ((预定单DataTable)(this.Tables["预定单"]));
  154.             if ((this.table预定单 != null)) {
  155.                 this.table预定单.InitVars();
  156.             }
  157.             this.table入住单 = ((入住单DataTable)(this.Tables["入住单"]));
  158.             if ((this.table入住单 != null)) {
  159.                 this.table入住单.InitVars();
  160.             }
  161.             this.table客房类型 = ((客房类型DataTable)(this.Tables["客房类型"]));
  162.             if ((this.table客房类型 != null)) {
  163.                 this.table客房类型.InitVars();
  164.             }
  165.             this.table帐单明细 = ((帐单明细DataTable)(this.Tables["帐单明细"]));
  166.             if ((this.table帐单明细 != null)) {
  167.                 this.table帐单明细.InitVars();
  168.             }
  169.         }
  170.         
  171.         private void InitClass() {
  172.             this.DataSetName = "DataSet2";
  173.             this.Prefix = "";
  174.             this.Namespace = "http://www.tempuri.org/DataSet2.xsd";
  175.             this.Locale = new System.Globalization.CultureInfo("zh-CN");
  176.             this.CaseSensitive = false;
  177.             this.EnforceConstraints = true;
  178.             this.table预定单 = new 预定单DataTable();
  179.             this.Tables.Add(this.table预定单);
  180.             this.table入住单 = new 入住单DataTable();
  181.             this.Tables.Add(this.table入住单);
  182.             this.table客房类型 = new 客房类型DataTable();
  183.             this.Tables.Add(this.table客房类型);
  184.             this.table帐单明细 = new 帐单明细DataTable();
  185.             this.Tables.Add(this.table帐单明细);
  186.         }
  187.         
  188.         private bool ShouldSerialize预定单() {
  189.             return false;
  190.         }
  191.         
  192.         private bool ShouldSerialize入住单() {
  193.             return false;
  194.         }
  195.         
  196.         private bool ShouldSerialize客房类型() {
  197.             return false;
  198.         }
  199.         
  200.         private bool ShouldSerialize帐单明细() {
  201.             return false;
  202.         }
  203.         
  204.         private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
  205.             if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
  206.                 this.InitVars();
  207.             }
  208.         }
  209.         
  210.         public delegate void 预定单RowChangeEventHandler(object sender, 预定单RowChangeEvent e);
  211.         
  212.         public delegate void 入住单RowChangeEventHandler(object sender, 入住单RowChangeEvent e);
  213.         
  214.         public delegate void 客房类型RowChangeEventHandler(object sender, 客房类型RowChangeEvent e);
  215.         
  216.         public delegate void 帐单明细RowChangeEventHandler(object sender, 帐单明细RowChangeEvent e);
  217.         
  218.         [System.Diagnostics.DebuggerStepThrough()]
  219.         public class 预定单DataTable : DataTable, System.Collections.IEnumerable {
  220.             
  221.             private DataColumn column预定单号;
  222.             
  223.             private DataColumn column会员编号;
  224.             
  225.             private DataColumn column客房类型;
  226.             
  227.             private DataColumn column抵店时间;
  228.             
  229.             private DataColumn column离店时间;
  230.             
  231.             private DataColumn column单据状态;
  232.             
  233.             private DataColumn column入住人数;
  234.             
  235.             private DataColumn column客房编号;
  236.             
  237.             private DataColumn column客房价格;
  238.             
  239.             private DataColumn column入住价格;
  240.             
  241.             private DataColumn column折扣;
  242.             
  243.             private DataColumn column折扣原因;
  244.             
  245.             private DataColumn column是否加床;
  246.             
  247.             private DataColumn column加床价格;
  248.             
  249.             private DataColumn column预收款;
  250.             
  251.             private DataColumn column预定人;
  252.             
  253.             private DataColumn column预定公司;
  254.             
  255.             private DataColumn column联系电话;
  256.             
  257.             private DataColumn column备注;
  258.             
  259.             private DataColumn column操作员;
  260.             
  261.             private DataColumn column业务员;
  262.             
  263.             internal 预定单DataTable() : 
  264.                     base("预定单") {
  265.                 this.InitClass();
  266.             }
  267.             
  268.             internal 预定单DataTable(DataTable table) : 
  269.                     base(table.TableName) {
  270.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  271.                     this.CaseSensitive = table.CaseSensitive;
  272.                 }
  273.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  274.                     this.Locale = table.Locale;
  275.                 }
  276.                 if ((table.Namespace != table.DataSet.Namespace)) {
  277.                     this.Namespace = table.Namespace;
  278.                 }
  279.                 this.Prefix = table.Prefix;
  280.                 this.MinimumCapacity = table.MinimumCapacity;
  281.                 this.DisplayExpression = table.DisplayExpression;
  282.             }
  283.             
  284.             [System.ComponentModel.Browsable(false)]
  285.             public int Count {
  286.                 get {
  287.                     return this.Rows.Count;
  288.                 }
  289.             }
  290.             
  291.             internal DataColumn 预定单号Column {
  292.                 get {
  293.                     return this.column预定单号;
  294.                 }
  295.             }
  296.             
  297.             internal DataColumn 会员编号Column {
  298.                 get {
  299.                     return this.column会员编号;
  300.                 }
  301.             }
  302.             
  303.             internal DataColumn 客房类型Column {
  304.                 get {
  305.                     return this.column客房类型;
  306.                 }
  307.             }
  308.             
  309.             internal DataColumn 抵店时间Column {
  310.                 get {
  311.                     return this.column抵店时间;
  312.                 }
  313.             }
  314.             
  315.             internal DataColumn 离店时间Column {
  316.                 get {
  317.                     return this.column离店时间;
  318.                 }
  319.             }
  320.             
  321.             internal DataColumn 单据状态Column {
  322.                 get {
  323.                     return this.column单据状态;
  324.                 }
  325.             }
  326.             
  327.             internal DataColumn 入住人数Column {
  328.                 get {
  329.                     return this.column入住人数;
  330.                 }
  331.             }
  332.             
  333.             internal DataColumn 客房编号Column {
  334.                 get {
  335.                     return this.column客房编号;
  336.                 }
  337.             }
  338.             
  339.             internal DataColumn 客房价格Column {
  340.                 get {
  341.                     return this.column客房价格;
  342.                 }
  343.             }
  344.             
  345.             internal DataColumn 入住价格Column {
  346.                 get {
  347.                     return this.column入住价格;
  348.                 }
  349.             }
  350.             
  351.             internal DataColumn 折扣Column {
  352.                 get {
  353.                     return this.column折扣;
  354.                 }
  355.             }
  356.             
  357.             internal DataColumn 折扣原因Column {
  358.                 get {
  359.                     return this.column折扣原因;
  360.                 }
  361.             }
  362.             
  363.             internal DataColumn 是否加床Column {
  364.                 get {
  365.                     return this.column是否加床;
  366.                 }
  367.             }
  368.             
  369.             internal DataColumn 加床价格Column {
  370.                 get {
  371.                     return this.column加床价格;
  372.                 }
  373.             }
  374.             
  375.             internal DataColumn 预收款Column {
  376.                 get {
  377.                     return this.column预收款;
  378.                 }
  379.             }
  380.             
  381.             internal DataColumn 预定人Column {
  382.                 get {
  383.                     return this.column预定人;
  384.                 }
  385.             }
  386.             
  387.             internal DataColumn 预定公司Column {
  388.                 get {
  389.                     return this.column预定公司;
  390.                 }
  391.             }
  392.             
  393.             internal DataColumn 联系电话Column {
  394.                 get {
  395.                     return this.column联系电话;
  396.                 }
  397.             }
  398.             
  399.             internal DataColumn 备注Column {
  400.                 get {
  401.                     return this.column备注;
  402.                 }
  403.             }
  404.             
  405.             internal DataColumn 操作员Column {
  406.                 get {
  407.                     return this.column操作员;
  408.                 }
  409.             }
  410.             
  411.             internal DataColumn 业务员Column {
  412.                 get {
  413.                     return this.column业务员;
  414.                 }
  415.             }
  416.             
  417.             public 预定单Row this[int index] {
  418.                 get {
  419.                     return ((预定单Row)(this.Rows[index]));
  420.                 }
  421.             }
  422.             
  423.             public event 预定单RowChangeEventHandler 预定单RowChanged;
  424.             
  425.             public event 预定单RowChangeEventHandler 预定单RowChanging;
  426.             
  427.             public event 预定单RowChangeEventHandler 预定单RowDeleted;
  428.             
  429.             public event 预定单RowChangeEventHandler 预定单RowDeleting;
  430.             
  431.             public void Add预定单Row(预定单Row row) {
  432.                 this.Rows.Add(row);
  433.             }
  434.             
  435.             public 预定单Row Add预定单Row(
  436.                         string 预定单号, 
  437.                         int 会员编号, 
  438.                         string 客房类型, 
  439.                         System.DateTime 抵店时间, 
  440.                         System.DateTime 离店时间, 
  441.                         string 单据状态, 
  442.                         int 入住人数, 
  443.                         string 客房编号, 
  444.                         System.Decimal 客房价格, 
  445.                         System.Decimal 入住价格, 
  446.                         System.Decimal 折扣, 
  447.                         string 折扣原因, 
  448.                         bool 是否加床, 
  449.                         System.Decimal 加床价格, 
  450.                         System.Decimal 预收款, 
  451.                         string 预定人, 
  452.                         string 预定公司, 
  453.                         string 联系电话, 
  454.                         string 备注, 
  455.                         string 操作员, 
  456.                         string 业务员) {
  457.                 预定单Row row预定单Row = ((预定单Row)(this.NewRow()));
  458.                 row预定单Row.ItemArray = new object[] {
  459.                         预定单号,
  460.                         会员编号,
  461.                         客房类型,
  462.                         抵店时间,
  463.                         离店时间,
  464.                         单据状态,
  465.                         入住人数,
  466.                         客房编号,
  467.                         客房价格,
  468.                         入住价格,
  469.                         折扣,
  470.                         折扣原因,
  471.                         是否加床,
  472.                         加床价格,
  473.                         预收款,
  474.                         预定人,
  475.                         预定公司,
  476.                         联系电话,
  477.                         备注,
  478.                         操作员,
  479.                         业务员};
  480.                 this.Rows.Add(row预定单Row);
  481.                 return row预定单Row;
  482.             }
  483.             
  484.             public 预定单Row FindBy预定单号(string 预定单号) {
  485.                 return ((预定单Row)(this.Rows.Find(new object[] {
  486.                             预定单号})));
  487.             }
  488.             
  489.             public System.Collections.IEnumerator GetEnumerator() {
  490.                 return this.Rows.GetEnumerator();
  491.             }
  492.             
  493.             public override DataTable Clone() {
  494.                 预定单DataTable cln = ((预定单DataTable)(base.Clone()));
  495.                 cln.InitVars();
  496.                 return cln;
  497.             }
  498.             
  499.             protected override DataTable CreateInstance() {
  500.                 return new 预定单DataTable();
  501.             }
  502.             
  503.             internal void InitVars() {
  504.                 this.column预定单号 = this.Columns["预定单号"];
  505.                 this.column会员编号 = this.Columns["会员编号"];
  506.                 this.column客房类型 = this.Columns["客房类型"];
  507.                 this.column抵店时间 = this.Columns["抵店时间"];
  508.                 this.column离店时间 = this.Columns["离店时间"];
  509.                 this.column单据状态 = this.Columns["单据状态"];
  510.                 this.column入住人数 = this.Columns["入住人数"];
  511.                 this.column客房编号 = this.Columns["客房编号"];
  512.                 this.column客房价格 = this.Columns["客房价格"];
  513.                 this.column入住价格 = this.Columns["入住价格"];
  514.                 this.column折扣 = this.Columns["折扣"];
  515.                 this.column折扣原因 = this.Columns["折扣原因"];
  516.                 this.column是否加床 = this.Columns["是否加床"];
  517.                 this.column加床价格 = this.Columns["加床价格"];
  518.                 this.column预收款 = this.Columns["预收款"];
  519.                 this.column预定人 = this.Columns["预定人"];
  520.                 this.column预定公司 = this.Columns["预定公司"];
  521.                 this.column联系电话 = this.Columns["联系电话"];
  522.                 this.column备注 = this.Columns["备注"];
  523.                 this.column操作员 = this.Columns["操作员"];
  524.                 this.column业务员 = this.Columns["业务员"];
  525.             }
  526.             
  527.             private void InitClass() {
  528.                 this.column预定单号 = new DataColumn("预定单号", typeof(string), null, System.Data.MappingType.Element);
  529.                 this.Columns.Add(this.column预定单号);
  530.                 this.column会员编号 = new DataColumn("会员编号", typeof(int), null, System.Data.MappingType.Element);
  531.                 this.Columns.Add(this.column会员编号);
  532.                 this.column客房类型 = new DataColumn("客房类型", typeof(string), null, System.Data.MappingType.Element);
  533.                 this.Columns.Add(this.column客房类型);
  534.                 this.column抵店时间 = new DataColumn("抵店时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  535.                 this.Columns.Add(this.column抵店时间);
  536.                 this.column离店时间 = new DataColumn("离店时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  537.                 this.Columns.Add(this.column离店时间);
  538.                 this.column单据状态 = new DataColumn("单据状态", typeof(string), null, System.Data.MappingType.Element);
  539.                 this.Columns.Add(this.column单据状态);
  540.                 this.column入住人数 = new DataColumn("入住人数", typeof(int), null, System.Data.MappingType.Element);
  541.                 this.Columns.Add(this.column入住人数);
  542.                 this.column客房编号 = new DataColumn("客房编号", typeof(string), null, System.Data.MappingType.Element);
  543.                 this.Columns.Add(this.column客房编号);
  544.                 this.column客房价格 = new DataColumn("客房价格", typeof(System.Decimal), null, System.Data.MappingType.Element);
  545.                 this.Columns.Add(this.column客房价格);
  546.                 this.column入住价格 = new DataColumn("入住价格", typeof(System.Decimal), null, System.Data.MappingType.Element);
  547.                 this.Columns.Add(this.column入住价格);
  548.                 this.column折扣 = new DataColumn("折扣", typeof(System.Decimal), null, System.Data.MappingType.Element);
  549.                 this.Columns.Add(this.column折扣);
  550.                 this.column折扣原因 = new DataColumn("折扣原因", typeof(string), null, System.Data.MappingType.Element);
  551.                 this.Columns.Add(this.column折扣原因);
  552.                 this.column是否加床 = new DataColumn("是否加床", typeof(bool), null, System.Data.MappingType.Element);
  553.                 this.Columns.Add(this.column是否加床);
  554.                 this.column加床价格 = new DataColumn("加床价格", typeof(System.Decimal), null, System.Data.MappingType.Element);
  555.                 this.Columns.Add(this.column加床价格);
  556.                 this.column预收款 = new DataColumn("预收款", typeof(System.Decimal), null, System.Data.MappingType.Element);
  557.                 this.Columns.Add(this.column预收款);
  558.                 this.column预定人 = new DataColumn("预定人", typeof(string), null, System.Data.MappingType.Element);
  559.                 this.Columns.Add(this.column预定人);
  560.                 this.column预定公司 = new DataColumn("预定公司", typeof(string), null, System.Data.MappingType.Element);
  561.                 this.Columns.Add(this.column预定公司);
  562.                 this.column联系电话 = new DataColumn("联系电话", typeof(string), null, System.Data.MappingType.Element);
  563.                 this.Columns.Add(this.column联系电话);
  564.                 this.column备注 = new DataColumn("备注", typeof(string), null, System.Data.MappingType.Element);
  565.                 this.Columns.Add(this.column备注);
  566.                 this.column操作员 = new DataColumn("操作员", typeof(string), null, System.Data.MappingType.Element);
  567.                 this.Columns.Add(this.column操作员);
  568.                 this.column业务员 = new DataColumn("业务员", typeof(string), null, System.Data.MappingType.Element);
  569.                 this.Columns.Add(this.column业务员);
  570.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  571.                                 this.column预定单号}, true));
  572.                 this.column预定单号.AllowDBNull = false;
  573.                 this.column预定单号.Unique = true;
  574.                 this.column客房类型.AllowDBNull = false;
  575.                 this.column抵店时间.AllowDBNull = false;
  576.                 this.column是否加床.DefaultValue = false;
  577.             }
  578.             
  579.             public 预定单Row New预定单Row() {
  580.                 return ((预定单Row)(this.NewRow()));
  581.             }
  582.             
  583.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  584.                 return new 预定单Row(builder);
  585.             }
  586.             
  587.             protected override System.Type GetRowType() {
  588.                 return typeof(预定单Row);
  589.             }
  590.             
  591.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  592.                 base.OnRowChanged(e);
  593.                 if ((this.预定单RowChanged != null)) {
  594.                     this.预定单RowChanged(this, new 预定单RowChangeEvent(((预定单Row)(e.Row)), e.Action));
  595.                 }
  596.             }
  597.             
  598.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  599.                 base.OnRowChanging(e);
  600.                 if ((this.预定单RowChanging != null)) {
  601.                     this.预定单RowChanging(this, new 预定单RowChangeEvent(((预定单Row)(e.Row)), e.Action));
  602.                 }
  603.             }
  604.             
  605.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  606.                 base.OnRowDeleted(e);
  607.                 if ((this.预定单RowDeleted != null)) {
  608.                     this.预定单RowDeleted(this, new 预定单RowChangeEvent(((预定单Row)(e.Row)), e.Action));
  609.                 }
  610.             }
  611.             
  612.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  613.                 base.OnRowDeleting(e);
  614.                 if ((this.预定单RowDeleting != null)) {
  615.                     this.预定单RowDeleting(this, new 预定单RowChangeEvent(((预定单Row)(e.Row)), e.Action));
  616.                 }
  617.             }
  618.             
  619.             public void Remove预定单Row(预定单Row row) {
  620.                 this.Rows.Remove(row);
  621.             }
  622.         }
  623.         
  624.         [System.Diagnostics.DebuggerStepThrough()]
  625.         public class 预定单Row : DataRow {
  626.             
  627.             private 预定单DataTable table预定单;
  628.             
  629.             internal 预定单Row(DataRowBuilder rb) : 
  630.                     base(rb) {
  631.                 this.table预定单 = ((预定单DataTable)(this.Table));
  632.             }
  633.             
  634.             public string 预定单号 {
  635.                 get {
  636.                     return ((string)(this[this.table预定单.预定单号Column]));
  637.                 }
  638.                 set {
  639.                     this[this.table预定单.预定单号Column] = value;
  640.                 }
  641.             }
  642.             
  643.             public int 会员编号 {
  644.                 get {
  645.                     try {
  646.                         return ((int)(this[this.table预定单.会员编号Column]));
  647.                     }
  648.                     catch (InvalidCastException e) {
  649.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  650.                     }
  651.                 }
  652.                 set {
  653.                     this[this.table预定单.会员编号Column] = value;
  654.                 }
  655.             }
  656.             
  657.             public string 客房类型 {
  658.                 get {
  659.                     return ((string)(this[this.table预定单.客房类型Column]));
  660.                 }
  661.                 set {
  662.                     this[this.table预定单.客房类型Column] = value;
  663.                 }
  664.             }
  665.             
  666.             public System.DateTime 抵店时间 {
  667.                 get {
  668.                     return ((System.DateTime)(this[this.table预定单.抵店时间Column]));
  669.                 }
  670.                 set {
  671.                     this[this.table预定单.抵店时间Column] = value;
  672.                 }
  673.             }
  674.             
  675.             public System.DateTime 离店时间 {
  676.                 get {
  677.                     try {
  678.                         return ((System.DateTime)(this[this.table预定单.离店时间Column]));
  679.                     }
  680.                     catch (InvalidCastException e) {
  681.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  682.                     }
  683.                 }
  684.                 set {
  685.                     this[this.table预定单.离店时间Column] = value;
  686.                 }
  687.             }
  688.             
  689.             public string 单据状态 {
  690.                 get {
  691.                     try {
  692.                         return ((string)(this[this.table预定单.单据状态Column]));
  693.                     }
  694.                     catch (InvalidCastException e) {
  695.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  696.                     }
  697.                 }
  698.                 set {
  699.                     this[this.table预定单.单据状态Column] = value;
  700.                 }
  701.             }
  702.             
  703.             public int 入住人数 {
  704.                 get {
  705.                     try {
  706.                         return ((int)(this[this.table预定单.入住人数Column]));
  707.                     }
  708.                     catch (InvalidCastException e) {
  709.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  710.                     }
  711.                 }
  712.                 set {
  713.                     this[this.table预定单.入住人数Column] = value;
  714.                 }
  715.             }
  716.             
  717.             public string 客房编号 {
  718.                 get {
  719.                     try {
  720.                         return ((string)(this[this.table预定单.客房编号Column]));
  721.                     }
  722.                     catch (InvalidCastException e) {
  723.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  724.                     }
  725.                 }
  726.                 set {
  727.                     this[this.table预定单.客房编号Column] = value;
  728.                 }
  729.             }
  730.             
  731.             public System.Decimal 客房价格 {
  732.                 get {
  733.                     try {
  734.                         return ((System.Decimal)(this[this.table预定单.客房价格Column]));
  735.                     }
  736.                     catch (InvalidCastException e) {
  737.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  738.                     }
  739.                 }
  740.                 set {
  741.                     this[this.table预定单.客房价格Column] = value;
  742.                 }
  743.             }
  744.             
  745.             public System.Decimal 入住价格 {
  746.                 get {
  747.                     try {
  748.                         return ((System.Decimal)(this[this.table预定单.入住价格Column]));
  749.                     }
  750.                     catch (InvalidCastException e) {
  751.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  752.                     }
  753.                 }
  754.                 set {
  755.                     this[this.table预定单.入住价格Column] = value;
  756.                 }
  757.             }
  758.             
  759.             public System.Decimal 折扣 {
  760.                 get {
  761.                     try {
  762.                         return ((System.Decimal)(this[this.table预定单.折扣Column]));
  763.                     }
  764.                     catch (InvalidCastException e) {
  765.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  766.                     }
  767.                 }
  768.                 set {
  769.                     this[this.table预定单.折扣Column] = value;
  770.                 }
  771.             }
  772.             
  773.             public string 折扣原因 {
  774.                 get {
  775.                     try {
  776.                         return ((string)(this[this.table预定单.折扣原因Column]));
  777.                     }
  778.                     catch (InvalidCastException e) {
  779.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  780.                     }
  781.                 }
  782.                 set {
  783.                     this[this.table预定单.折扣原因Column] = value;
  784.                 }
  785.             }
  786.             
  787.             public bool 是否加床 {
  788.                 get {
  789.                     try {
  790.                         return ((bool)(this[this.table预定单.是否加床Column]));
  791.                     }
  792.                     catch (InvalidCastException e) {
  793.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  794.                     }
  795.                 }
  796.                 set {
  797.                     this[this.table预定单.是否加床Column] = value;
  798.                 }
  799.             }
  800.             
  801.             public System.Decimal 加床价格 {
  802.                 get {
  803.                     try {
  804.                         return ((System.Decimal)(this[this.table预定单.加床价格Column]));
  805.                     }
  806.                     catch (InvalidCastException e) {
  807.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  808.                     }
  809.                 }
  810.                 set {
  811.                     this[this.table预定单.加床价格Column] = value;
  812.                 }
  813.             }
  814.             
  815.             public System.Decimal 预收款 {
  816.                 get {
  817.                     try {
  818.                         return ((System.Decimal)(this[this.table预定单.预收款Column]));
  819.                     }
  820.                     catch (InvalidCastException e) {
  821.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  822.                     }
  823.                 }
  824.                 set {
  825.                     this[this.table预定单.预收款Column] = value;
  826.                 }
  827.             }
  828.             
  829.             public string 预定人 {
  830.                 get {
  831.                     try {
  832.                         return ((string)(this[this.table预定单.预定人Column]));
  833.                     }
  834.                     catch (InvalidCastException e) {
  835.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  836.                     }
  837.                 }
  838.                 set {
  839.                     this[this.table预定单.预定人Column] = value;
  840.                 }
  841.             }
  842.             
  843.             public string 预定公司 {
  844.                 get {
  845.                     try {
  846.                         return ((string)(this[this.table预定单.预定公司Column]));
  847.                     }
  848.                     catch (InvalidCastException e) {
  849.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  850.                     }
  851.                 }
  852.                 set {
  853.                     this[this.table预定单.预定公司Column] = value;
  854.                 }
  855.             }
  856.             
  857.             public string 联系电话 {
  858.                 get {
  859.                     try {
  860.                         return ((string)(this[this.table预定单.联系电话Column]));
  861.                     }
  862.                     catch (InvalidCastException e) {
  863.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  864.                     }
  865.                 }
  866.                 set {
  867.                     this[this.table预定单.联系电话Column] = value;
  868.                 }
  869.             }
  870.             
  871.             public string 备注 {
  872.                 get {
  873.                     try {
  874.                         return ((string)(this[this.table预定单.备注Column]));
  875.                     }
  876.                     catch (InvalidCastException e) {
  877.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  878.                     }
  879.                 }
  880.                 set {
  881.                     this[this.table预定单.备注Column] = value;
  882.                 }
  883.             }
  884.             
  885.             public string 操作员 {
  886.                 get {
  887.                     try {
  888.                         return ((string)(this[this.table预定单.操作员Column]));
  889.                     }
  890.                     catch (InvalidCastException e) {
  891.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  892.                     }
  893.                 }
  894.                 set {
  895.                     this[this.table预定单.操作员Column] = value;
  896.                 }
  897.             }
  898.             
  899.             public string 业务员 {
  900.                 get {
  901.                     try {
  902.                         return ((string)(this[this.table预定单.业务员Column]));
  903.                     }
  904.                     catch (InvalidCastException e) {
  905.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  906.                     }
  907.                 }
  908.                 set {
  909.                     this[this.table预定单.业务员Column] = value;
  910.                 }
  911.             }
  912.             
  913.             public bool Is会员编号Null() {
  914.                 return this.IsNull(this.table预定单.会员编号Column);
  915.             }
  916.             
  917.             public void Set会员编号Null() {
  918.                 this[this.table预定单.会员编号Column] = System.Convert.DBNull;
  919.             }
  920.             
  921.             public bool Is离店时间Null() {
  922.                 return this.IsNull(this.table预定单.离店时间Column);
  923.             }
  924.             
  925.             public void Set离店时间Null() {
  926.                 this[this.table预定单.离店时间Column] = System.Convert.DBNull;
  927.             }
  928.             
  929.             public bool Is单据状态Null() {
  930.                 return this.IsNull(this.table预定单.单据状态Column);
  931.             }
  932.             
  933.             public void Set单据状态Null() {
  934.                 this[this.table预定单.单据状态Column] = System.Convert.DBNull;
  935.             }
  936.             
  937.             public bool Is入住人数Null() {
  938.                 return this.IsNull(this.table预定单.入住人数Column);
  939.             }
  940.             
  941.             public void Set入住人数Null() {
  942.                 this[this.table预定单.入住人数Column] = System.Convert.DBNull;
  943.             }
  944.             
  945.             public bool Is客房编号Null() {
  946.                 return this.IsNull(this.table预定单.客房编号Column);
  947.             }
  948.             
  949.             public void Set客房编号Null() {
  950.                 this[this.table预定单.客房编号Column] = System.Convert.DBNull;
  951.             }
  952.             
  953.             public bool Is客房价格Null() {
  954.                 return this.IsNull(this.table预定单.客房价格Column);
  955.             }
  956.             
  957.             public void Set客房价格Null() {
  958.                 this[this.table预定单.客房价格Column] = System.Convert.DBNull;
  959.             }
  960.             
  961.             public bool Is入住价格Null() {
  962.                 return this.IsNull(this.table预定单.入住价格Column);
  963.             }
  964.             
  965.             public void Set入住价格Null() {
  966.                 this[this.table预定单.入住价格Column] = System.Convert.DBNull;
  967.             }
  968.             
  969.             public bool Is折扣Null() {
  970.                 return this.IsNull(this.table预定单.折扣Column);
  971.             }
  972.             
  973.             public void Set折扣Null() {
  974.                 this[this.table预定单.折扣Column] = System.Convert.DBNull;
  975.             }
  976.             
  977.             public bool Is折扣原因Null() {
  978.                 return this.IsNull(this.table预定单.折扣原因Column);
  979.             }
  980.             
  981.             public void Set折扣原因Null() {
  982.                 this[this.table预定单.折扣原因Column] = System.Convert.DBNull;
  983.             }
  984.             
  985.             public bool Is是否加床Null() {
  986.                 return this.IsNull(this.table预定单.是否加床Column);
  987.             }
  988.             
  989.             public void Set是否加床Null() {
  990.                 this[this.table预定单.是否加床Column] = System.Convert.DBNull;
  991.             }
  992.             
  993.             public bool Is加床价格Null() {
  994.                 return this.IsNull(this.table预定单.加床价格Column);
  995.             }
  996.             
  997.             public void Set加床价格Null() {
  998.                 this[this.table预定单.加床价格Column] = System.Convert.DBNull;
  999.             }
  1000.             
  1001.             public bool Is预收款Null() {
  1002.                 return this.IsNull(this.table预定单.预收款Column);
  1003.             }
  1004.             
  1005.             public void Set预收款Null() {
  1006.                 this[this.table预定单.预收款Column] = System.Convert.DBNull;
  1007.             }
  1008.             
  1009.             public bool Is预定人Null() {
  1010.                 return this.IsNull(this.table预定单.预定人Column);
  1011.             }
  1012.             
  1013.             public void Set预定人Null() {
  1014.                 this[this.table预定单.预定人Column] = System.Convert.DBNull;
  1015.             }
  1016.             
  1017.             public bool Is预定公司Null() {
  1018.                 return this.IsNull(this.table预定单.预定公司Column);
  1019.             }
  1020.             
  1021.             public void Set预定公司Null() {
  1022.                 this[this.table预定单.预定公司Column] = System.Convert.DBNull;
  1023.             }
  1024.             
  1025.             public bool Is联系电话Null() {
  1026.                 return this.IsNull(this.table预定单.联系电话Column);
  1027.             }
  1028.             
  1029.             public void Set联系电话Null() {
  1030.                 this[this.table预定单.联系电话Column] = System.Convert.DBNull;
  1031.             }
  1032.             
  1033.             public bool Is备注Null() {
  1034.                 return this.IsNull(this.table预定单.备注Column);
  1035.             }
  1036.             
  1037.             public void Set备注Null() {
  1038.                 this[this.table预定单.备注Column] = System.Convert.DBNull;
  1039.             }
  1040.             
  1041.             public bool Is操作员Null() {
  1042.                 return this.IsNull(this.table预定单.操作员Column);
  1043.             }
  1044.             
  1045.             public void Set操作员Null() {
  1046.                 this[this.table预定单.操作员Column] = System.Convert.DBNull;
  1047.             }
  1048.             
  1049.             public bool Is业务员Null() {
  1050.                 return this.IsNull(this.table预定单.业务员Column);
  1051.             }
  1052.             
  1053.             public void Set业务员Null() {
  1054.                 this[this.table预定单.业务员Column] = System.Convert.DBNull;
  1055.             }
  1056.         }
  1057.         
  1058.         [System.Diagnostics.DebuggerStepThrough()]
  1059.         public class 预定单RowChangeEvent : EventArgs {
  1060.             
  1061.             private 预定单Row eventRow;
  1062.             
  1063.             private DataRowAction eventAction;
  1064.             
  1065.             public 预定单RowChangeEvent(预定单Row row, DataRowAction action) {
  1066.                 this.eventRow = row;
  1067.                 this.eventAction = action;
  1068.             }
  1069.             
  1070.             public 预定单Row Row {
  1071.                 get {
  1072.                     return this.eventRow;
  1073.                 }
  1074.             }
  1075.             
  1076.             public DataRowAction Action {
  1077.                 get {
  1078.                     return this.eventAction;
  1079.                 }
  1080.             }
  1081.         }
  1082.         
  1083.         [System.Diagnostics.DebuggerStepThrough()]
  1084.         public class 入住单DataTable : DataTable, System.Collections.IEnumerable {
  1085.             
  1086.             private DataColumn column入住单号;
  1087.             
  1088.             private DataColumn column预定单号;
  1089.             
  1090.             private DataColumn column会员编号;
  1091.             
  1092.             private DataColumn column客房类型;
  1093.             
  1094.             private DataColumn column抵店时间;
  1095.             
  1096.             private DataColumn column离店时间;
  1097.             
  1098.             private DataColumn column单据状态;
  1099.             
  1100.             private DataColumn column入住人数;
  1101.             
  1102.             private DataColumn column客房编号;
  1103.             
  1104.             private DataColumn column客房价格;
  1105.             
  1106.             private DataColumn column入住价格;
  1107.             
  1108.             private DataColumn column折扣;
  1109.             
  1110.             private DataColumn column折扣原因;
  1111.             
  1112.             private DataColumn column是否加床;
  1113.             
  1114.             private DataColumn column加床价格;
  1115.             
  1116.             private DataColumn column预收款;
  1117.             
  1118.             private DataColumn column预定人;
  1119.             
  1120.             private DataColumn column预定公司;
  1121.             
  1122.             private DataColumn column联系电话;
  1123.             
  1124.             private DataColumn column备注;
  1125.             
  1126.             private DataColumn column操作员;
  1127.             
  1128.             private DataColumn column业务员;
  1129.             
  1130.             private DataColumn column早餐;
  1131.             
  1132.             private DataColumn column叫醒;
  1133.             
  1134.             private DataColumn column保密;
  1135.             
  1136.             private DataColumn columnvip;
  1137.             
  1138.             private DataColumn column电话等级;
  1139.             
  1140.             private DataColumn column特要说明;
  1141.             
  1142.             private DataColumn column应收帐款;
  1143.             
  1144.             private DataColumn column是否结帐;
  1145.             
  1146.             private DataColumn column结帐金额;
  1147.             
  1148.             private DataColumn column结帐日期;
  1149.             
  1150.             private DataColumn column付款方式;
  1151.             
  1152.             internal 入住单DataTable() : 
  1153.                     base("入住单") {
  1154.                 this.InitClass();
  1155.             }
  1156.             
  1157.             internal 入住单DataTable(DataTable table) : 
  1158.                     base(table.TableName) {
  1159.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1160.                     this.CaseSensitive = table.CaseSensitive;
  1161.                 }
  1162.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1163.                     this.Locale = table.Locale;
  1164.                 }
  1165.                 if ((table.Namespace != table.DataSet.Namespace)) {
  1166.                     this.Namespace = table.Namespace;
  1167.                 }
  1168.                 this.Prefix = table.Prefix;
  1169.                 this.MinimumCapacity = table.MinimumCapacity;
  1170.                 this.DisplayExpression = table.DisplayExpression;
  1171.             }
  1172.             
  1173.             [System.ComponentModel.Browsable(false)]
  1174.             public int Count {
  1175.                 get {
  1176.                     return this.Rows.Count;
  1177.                 }
  1178.             }
  1179.             
  1180.             internal DataColumn 入住单号Column {
  1181.                 get {
  1182.                     return this.column入住单号;
  1183.                 }
  1184.             }
  1185.             
  1186.             internal DataColumn 预定单号Column {
  1187.                 get {
  1188.                     return this.column预定单号;
  1189.                 }
  1190.             }
  1191.             
  1192.             internal DataColumn 会员编号Column {
  1193.                 get {
  1194.                     return this.column会员编号;
  1195.                 }
  1196.             }
  1197.             
  1198.             internal DataColumn 客房类型Column {
  1199.                 get {
  1200.                     return this.column客房类型;
  1201.                 }
  1202.             }
  1203.             
  1204.             internal DataColumn 抵店时间Column {
  1205.                 get {
  1206.                     return this.column抵店时间;
  1207.                 }
  1208.             }
  1209.             
  1210.             internal DataColumn 离店时间Column {
  1211.                 get {
  1212.                     return this.column离店时间;
  1213.                 }
  1214.             }
  1215.             
  1216.             internal DataColumn 单据状态Column {
  1217.                 get {
  1218.                     return this.column单据状态;
  1219.                 }
  1220.             }
  1221.             
  1222.             internal DataColumn 入住人数Column {
  1223.                 get {
  1224.                     return this.column入住人数;
  1225.                 }
  1226.             }
  1227.             
  1228.             internal DataColumn 客房编号Column {
  1229.                 get {
  1230.                     return this.column客房编号;
  1231.                 }
  1232.             }
  1233.             
  1234.             internal DataColumn 客房价格Column {
  1235.                 get {
  1236.                     return this.column客房价格;
  1237.                 }
  1238.             }
  1239.             
  1240.             internal DataColumn 入住价格Column {
  1241.                 get {
  1242.                     return this.column入住价格;
  1243.                 }
  1244.             }
  1245.             
  1246.             internal DataColumn 折扣Column {
  1247.                 get {
  1248.                     return this.column折扣;
  1249.                 }
  1250.             }
  1251.             
  1252.             internal DataColumn 折扣原因Column {
  1253.                 get {
  1254.                     return this.column折扣原因;
  1255.                 }
  1256.             }
  1257.             
  1258.             internal DataColumn 是否加床Column {
  1259.                 get {
  1260.                     return this.column是否加床;
  1261.                 }
  1262.             }
  1263.             
  1264.             internal DataColumn 加床价格Column {
  1265.                 get {
  1266.                     return this.column加床价格;
  1267.                 }
  1268.             }
  1269.             
  1270.             internal DataColumn 预收款Column {
  1271.                 get {
  1272.                     return this.column预收款;
  1273.                 }
  1274.             }
  1275.             
  1276.             internal DataColumn 预定人Column {
  1277.                 get {
  1278.                     return this.column预定人;
  1279.                 }
  1280.             }
  1281.             
  1282.             internal DataColumn 预定公司Column {
  1283.                 get {
  1284.                     return this.column预定公司;
  1285.                 }
  1286.             }
  1287.             
  1288.             internal DataColumn 联系电话Column {
  1289.                 get {
  1290.                     return this.column联系电话;
  1291.                 }
  1292.             }
  1293.             
  1294.             internal DataColumn 备注Column {
  1295.                 get {
  1296.                     return this.column备注;
  1297.                 }
  1298.             }
  1299.             
  1300.             internal DataColumn 操作员Column {
  1301.                 get {
  1302.                     return this.column操作员;
  1303.                 }
  1304.             }
  1305.             
  1306.             internal DataColumn 业务员Column {
  1307.                 get {
  1308.                     return this.column业务员;
  1309.                 }
  1310.             }
  1311.             
  1312.             internal DataColumn 早餐Column {
  1313.                 get {
  1314.                     return this.column早餐;
  1315.                 }
  1316.             }
  1317.             
  1318.             internal DataColumn 叫醒Column {
  1319.                 get {
  1320.                     return this.column叫醒;
  1321.                 }
  1322.             }
  1323.             
  1324.             internal DataColumn 保密Column {
  1325.                 get {
  1326.                     return this.column保密;
  1327.                 }
  1328.             }
  1329.             
  1330.             internal DataColumn vipColumn {
  1331.                 get {
  1332.                     return this.columnvip;
  1333.                 }
  1334.             }
  1335.             
  1336.             internal DataColumn 电话等级Column {
  1337.                 get {
  1338.                     return this.column电话等级;
  1339.                 }
  1340.             }
  1341.             
  1342.             internal DataColumn 特要说明Column {
  1343.                 get {
  1344.                     return this.column特要说明;
  1345.                 }
  1346.             }
  1347.             
  1348.             internal DataColumn 应收帐款Column {
  1349.                 get {
  1350.                     return this.column应收帐款;
  1351.                 }
  1352.             }
  1353.             
  1354.             internal DataColumn 是否结帐Column {
  1355.                 get {
  1356.                     return this.column是否结帐;
  1357.                 }
  1358.             }
  1359.             
  1360.             internal DataColumn 结帐金额Column {
  1361.                 get {
  1362.                     return this.column结帐金额;
  1363.                 }
  1364.             }
  1365.             
  1366.             internal DataColumn 结帐日期Column {
  1367.                 get {
  1368.                     return this.column结帐日期;
  1369.                 }
  1370.             }
  1371.             
  1372.             internal DataColumn 付款方式Column {
  1373.                 get {
  1374.                     return this.column付款方式;
  1375.                 }
  1376.             }
  1377.             
  1378.             public 入住单Row this[int index] {
  1379.                 get {
  1380.                     return ((入住单Row)(this.Rows[index]));
  1381.                 }
  1382.             }
  1383.             
  1384.             public event 入住单RowChangeEventHandler 入住单RowChanged;
  1385.             
  1386.             public event 入住单RowChangeEventHandler 入住单RowChanging;
  1387.             
  1388.             public event 入住单RowChangeEventHandler 入住单RowDeleted;
  1389.             
  1390.             public event 入住单RowChangeEventHandler 入住单RowDeleting;
  1391.             
  1392.             public void Add入住单Row(入住单Row row) {
  1393.                 this.Rows.Add(row);
  1394.             }
  1395.             
  1396.             public 入住单Row Add入住单Row(
  1397.                         string 入住单号, 
  1398.                         string 预定单号, 
  1399.                         int 会员编号, 
  1400.                         string 客房类型, 
  1401.                         System.DateTime 抵店时间, 
  1402.                         System.DateTime 离店时间, 
  1403.                         string 单据状态, 
  1404.                         int 入住人数, 
  1405.                         string 客房编号, 
  1406.                         System.Decimal 客房价格, 
  1407.                         System.Decimal 入住价格, 
  1408.                         System.Decimal 折扣, 
  1409.                         string 折扣原因, 
  1410.                         bool 是否加床, 
  1411.                         System.Decimal 加床价格, 
  1412.                         System.Decimal 预收款, 
  1413.                         string 预定人, 
  1414.                         string 预定公司, 
  1415.                         string 联系电话, 
  1416.                         string 备注, 
  1417.                         string 操作员, 
  1418.                         string 业务员, 
  1419.                         bool 早餐, 
  1420.                         bool 叫醒, 
  1421.                         bool 保密, 
  1422.                         bool vip, 
  1423.                         string 电话等级, 
  1424.                         string 特要说明, 
  1425.                         System.Decimal 应收帐款, 
  1426.                         bool 是否结帐, 
  1427.                         System.Decimal 结帐金额, 
  1428.                         System.DateTime 结帐日期, 
  1429.                         string 付款方式) {
  1430.                 入住单Row row入住单Row = ((入住单Row)(this.NewRow()));
  1431.                 row入住单Row.ItemArray = new object[] {
  1432.                         入住单号,
  1433.                         预定单号,
  1434.                         会员编号,
  1435.                         客房类型,
  1436.                         抵店时间,
  1437.                         离店时间,
  1438.                         单据状态,
  1439.                         入住人数,
  1440.                         客房编号,
  1441.                         客房价格,
  1442.                         入住价格,
  1443.                         折扣,
  1444.                         折扣原因,
  1445.                         是否加床,
  1446.                         加床价格,
  1447.                         预收款,
  1448.                         预定人,
  1449.                         预定公司,
  1450.                         联系电话,
  1451.                         备注,
  1452.                         操作员,
  1453.                         业务员,
  1454.                         早餐,
  1455.                         叫醒,
  1456.                         保密,
  1457.                         vip,
  1458.                         电话等级,
  1459.                         特要说明,
  1460.                         应收帐款,
  1461.                         是否结帐,
  1462.                         结帐金额,
  1463.                         结帐日期,
  1464.                         付款方式};
  1465.                 this.Rows.Add(row入住单Row);
  1466.                 return row入住单Row;
  1467.             }
  1468.             
  1469.             public 入住单Row FindBy入住单号(string 入住单号) {
  1470.                 return ((入住单Row)(this.Rows.Find(new object[] {
  1471.                             入住单号})));
  1472.             }
  1473.             
  1474.             public System.Collections.IEnumerator GetEnumerator() {
  1475.                 return this.Rows.GetEnumerator();
  1476.             }
  1477.             
  1478.             public override DataTable Clone() {
  1479.                 入住单DataTable cln = ((入住单DataTable)(base.Clone()));
  1480.                 cln.InitVars();
  1481.                 return cln;
  1482.             }
  1483.             
  1484.             protected override DataTable CreateInstance() {
  1485.                 return new 入住单DataTable();
  1486.             }
  1487.             
  1488.             internal void InitVars() {
  1489.                 this.column入住单号 = this.Columns["入住单号"];
  1490.                 this.column预定单号 = this.Columns["预定单号"];
  1491.                 this.column会员编号 = this.Columns["会员编号"];
  1492.                 this.column客房类型 = this.Columns["客房类型"];
  1493.                 this.column抵店时间 = this.Columns["抵店时间"];
  1494.                 this.column离店时间 = this.Columns["离店时间"];
  1495.                 this.column单据状态 = this.Columns["单据状态"];
  1496.                 this.column入住人数 = this.Columns["入住人数"];
  1497.                 this.column客房编号 = this.Columns["客房编号"];
  1498.                 this.column客房价格 = this.Columns["客房价格"];
  1499.                 this.column入住价格 = this.Columns["入住价格"];
  1500.                 this.column折扣 = this.Columns["折扣"];
  1501.                 this.column折扣原因 = this.Columns["折扣原因"];
  1502.                 this.column是否加床 = this.Columns["是否加床"];
  1503.                 this.column加床价格 = this.Columns["加床价格"];
  1504.                 this.column预收款 = this.Columns["预收款"];
  1505.                 this.column预定人 = this.Columns["预定人"];
  1506.                 this.column预定公司 = this.Columns["预定公司"];
  1507.                 this.column联系电话 = this.Columns["联系电话"];
  1508.                 this.column备注 = this.Columns["备注"];
  1509.                 this.column操作员 = this.Columns["操作员"];
  1510.                 this.column业务员 = this.Columns["业务员"];
  1511.                 this.column早餐 = this.Columns["早餐"];
  1512.                 this.column叫醒 = this.Columns["叫醒"];
  1513.                 this.column保密 = this.Columns["保密"];
  1514.                 this.columnvip = this.Columns["vip"];
  1515.                 this.column电话等级 = this.Columns["电话等级"];
  1516.                 this.column特要说明 = this.Columns["特要说明"];
  1517.                 this.column应收帐款 = this.Columns["应收帐款"];
  1518.                 this.column是否结帐 = this.Columns["是否结帐"];
  1519.                 this.column结帐金额 = this.Columns["结帐金额"];
  1520.                 this.column结帐日期 = this.Columns["结帐日期"];
  1521.                 this.column付款方式 = this.Columns["付款方式"];
  1522.             }
  1523.             
  1524.             private void InitClass() {
  1525.                 this.column入住单号 = new DataColumn("入住单号", typeof(string), null, System.Data.MappingType.Element);
  1526.                 this.Columns.Add(this.column入住单号);
  1527.                 this.column预定单号 = new DataColumn("预定单号", typeof(string), null, System.Data.MappingType.Element);
  1528.                 this.Columns.Add(this.column预定单号);
  1529.                 this.column会员编号 = new DataColumn("会员编号", typeof(int), null, System.Data.MappingType.Element);
  1530.                 this.Columns.Add(this.column会员编号);
  1531.                 this.column客房类型 = new DataColumn("客房类型", typeof(string), null, System.Data.MappingType.Element);
  1532.                 this.Columns.Add(this.column客房类型);
  1533.                 this.column抵店时间 = new DataColumn("抵店时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  1534.                 this.Columns.Add(this.column抵店时间);
  1535.                 this.column离店时间 = new DataColumn("离店时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  1536.                 this.Columns.Add(this.column离店时间);
  1537.                 this.column单据状态 = new DataColumn("单据状态", typeof(string), null, System.Data.MappingType.Element);
  1538.                 this.Columns.Add(this.column单据状态);
  1539.                 this.column入住人数 = new DataColumn("入住人数", typeof(int), null, System.Data.MappingType.Element);
  1540.                 this.Columns.Add(this.column入住人数);
  1541.                 this.column客房编号 = new DataColumn("客房编号", typeof(string), null, System.Data.MappingType.Element);
  1542.                 this.Columns.Add(this.column客房编号);
  1543.                 this.column客房价格 = new DataColumn("客房价格", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1544.                 this.Columns.Add(this.column客房价格);
  1545.                 this.column入住价格 = new DataColumn("入住价格", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1546.                 this.Columns.Add(this.column入住价格);
  1547.                 this.column折扣 = new DataColumn("折扣", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1548.                 this.Columns.Add(this.column折扣);
  1549.                 this.column折扣原因 = new DataColumn("折扣原因", typeof(string), null, System.Data.MappingType.Element);
  1550.                 this.Columns.Add(this.column折扣原因);
  1551.                 this.column是否加床 = new DataColumn("是否加床", typeof(bool), null, System.Data.MappingType.Element);
  1552.                 this.Columns.Add(this.column是否加床);
  1553.                 this.column加床价格 = new DataColumn("加床价格", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1554.                 this.Columns.Add(this.column加床价格);
  1555.                 this.column预收款 = new DataColumn("预收款", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1556.                 this.Columns.Add(this.column预收款);
  1557.                 this.column预定人 = new DataColumn("预定人", typeof(string), null, System.Data.MappingType.Element);
  1558.                 this.Columns.Add(this.column预定人);
  1559.                 this.column预定公司 = new DataColumn("预定公司", typeof(string), null, System.Data.MappingType.Element);
  1560.                 this.Columns.Add(this.column预定公司);
  1561.                 this.column联系电话 = new DataColumn("联系电话", typeof(string), null, System.Data.MappingType.Element);
  1562.                 this.Columns.Add(this.column联系电话);
  1563.                 this.column备注 = new DataColumn("备注", typeof(string), null, System.Data.MappingType.Element);
  1564.                 this.Columns.Add(this.column备注);
  1565.                 this.column操作员 = new DataColumn("操作员", typeof(string), null, System.Data.MappingType.Element);
  1566.                 this.Columns.Add(this.column操作员);
  1567.                 this.column业务员 = new DataColumn("业务员", typeof(string), null, System.Data.MappingType.Element);
  1568.                 this.Columns.Add(this.column业务员);
  1569.                 this.column早餐 = new DataColumn("早餐", typeof(bool), null, System.Data.MappingType.Element);
  1570.                 this.Columns.Add(this.column早餐);
  1571.                 this.column叫醒 = new DataColumn("叫醒", typeof(bool), null, System.Data.MappingType.Element);
  1572.                 this.Columns.Add(this.column叫醒);
  1573.                 this.column保密 = new DataColumn("保密", typeof(bool), null, System.Data.MappingType.Element);
  1574.                 this.Columns.Add(this.column保密);
  1575.                 this.columnvip = new DataColumn("vip", typeof(bool), null, System.Data.MappingType.Element);
  1576.                 this.Columns.Add(this.columnvip);
  1577.                 this.column电话等级 = new DataColumn("电话等级", typeof(string), null, System.Data.MappingType.Element);
  1578.                 this.Columns.Add(this.column电话等级);
  1579.                 this.column特要说明 = new DataColumn("特要说明", typeof(string), null, System.Data.MappingType.Element);
  1580.                 this.Columns.Add(this.column特要说明);
  1581.                 this.column应收帐款 = new DataColumn("应收帐款", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1582.                 this.Columns.Add(this.column应收帐款);
  1583.                 this.column是否结帐 = new DataColumn("是否结帐", typeof(bool), null, System.Data.MappingType.Element);
  1584.                 this.Columns.Add(this.column是否结帐);
  1585.                 this.column结帐金额 = new DataColumn("结帐金额", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1586.                 this.Columns.Add(this.column结帐金额);
  1587.                 this.column结帐日期 = new DataColumn("结帐日期", typeof(System.DateTime), null, System.Data.MappingType.Element);
  1588.                 this.Columns.Add(this.column结帐日期);
  1589.                 this.column付款方式 = new DataColumn("付款方式", typeof(string), null, System.Data.MappingType.Element);
  1590.                 this.Columns.Add(this.column付款方式);
  1591.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  1592.                                 this.column入住单号}, true));
  1593.                 this.column入住单号.AllowDBNull = false;
  1594.                 this.column入住单号.Unique = true;
  1595.                 this.column是否加床.DefaultValue = false;
  1596.                 this.column早餐.DefaultValue = false;
  1597.                 this.column叫醒.DefaultValue = false;
  1598.                 this.column保密.DefaultValue = false;
  1599.                 this.columnvip.DefaultValue = false;
  1600.                 this.column是否结帐.DefaultValue = false;
  1601.             }
  1602.             
  1603.             public 入住单Row New入住单Row() {
  1604.                 return ((入住单Row)(this.NewRow()));
  1605.             }
  1606.             
  1607.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  1608.                 return new 入住单Row(builder);
  1609.             }
  1610.             
  1611.             protected override System.Type GetRowType() {
  1612.                 return typeof(入住单Row);
  1613.             }
  1614.             
  1615.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  1616.                 base.OnRowChanged(e);
  1617.                 if ((this.入住单RowChanged != null)) {
  1618.                     this.入住单RowChanged(this, new 入住单RowChangeEvent(((入住单Row)(e.Row)), e.Action));
  1619.                 }
  1620.             }
  1621.             
  1622.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  1623.                 base.OnRowChanging(e);
  1624.                 if ((this.入住单RowChanging != null)) {
  1625.                     this.入住单RowChanging(this, new 入住单RowChangeEvent(((入住单Row)(e.Row)), e.Action));
  1626.                 }
  1627.             }
  1628.             
  1629.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  1630.                 base.OnRowDeleted(e);
  1631.                 if ((this.入住单RowDeleted != null)) {
  1632.                     this.入住单RowDeleted(this, new 入住单RowChangeEvent(((入住单Row)(e.Row)), e.Action));
  1633.                 }
  1634.             }
  1635.             
  1636.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  1637.                 base.OnRowDeleting(e);
  1638.                 if ((this.入住单RowDeleting != null)) {
  1639.                     this.入住单RowDeleting(this, new 入住单RowChangeEvent(((入住单Row)(e.Row)), e.Action));
  1640.                 }
  1641.             }
  1642.             
  1643.             public void Remove入住单Row(入住单Row row) {
  1644.                 this.Rows.Remove(row);
  1645.             }
  1646.         }
  1647.         
  1648.         [System.Diagnostics.DebuggerStepThrough()]
  1649.         public class 入住单Row : DataRow {
  1650.             
  1651.             private 入住单DataTable table入住单;
  1652.             
  1653.             internal 入住单Row(DataRowBuilder rb) : 
  1654.                     base(rb) {
  1655.                 this.table入住单 = ((入住单DataTable)(this.Table));
  1656.             }
  1657.             
  1658.             public string 入住单号 {
  1659.                 get {
  1660.                     return ((string)(this[this.table入住单.入住单号Column]));
  1661.                 }
  1662.                 set {
  1663.                     this[this.table入住单.入住单号Column] = value;
  1664.                 }
  1665.             }
  1666.             
  1667.             public string 预定单号 {
  1668.                 get {
  1669.                     try {
  1670.                         return ((string)(this[this.table入住单.预定单号Column]));
  1671.                     }
  1672.                     catch (InvalidCastException e) {
  1673.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1674.                     }
  1675.                 }
  1676.                 set {
  1677.                     this[this.table入住单.预定单号Column] = value;
  1678.                 }
  1679.             }
  1680.             
  1681.             public int 会员编号 {
  1682.                 get {
  1683.                     try {
  1684.                         return ((int)(this[this.table入住单.会员编号Column]));
  1685.                     }
  1686.                     catch (InvalidCastException e) {
  1687.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1688.                     }
  1689.                 }
  1690.                 set {
  1691.                     this[this.table入住单.会员编号Column] = value;
  1692.                 }
  1693.             }
  1694.             
  1695.             public string 客房类型 {
  1696.                 get {
  1697.                     try {
  1698.                         return ((string)(this[this.table入住单.客房类型Column]));
  1699.                     }
  1700.                     catch (InvalidCastException e) {
  1701.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1702.                     }
  1703.                 }
  1704.                 set {
  1705.                     this[this.table入住单.客房类型Column] = value;
  1706.                 }
  1707.             }
  1708.             
  1709.             public System.DateTime 抵店时间 {
  1710.                 get {
  1711.                     try {
  1712.                         return ((System.DateTime)(this[this.table入住单.抵店时间Column]));
  1713.                     }
  1714.                     catch (InvalidCastException e) {
  1715.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1716.                     }
  1717.                 }
  1718.                 set {
  1719.                     this[this.table入住单.抵店时间Column] = value;
  1720.                 }
  1721.             }
  1722.             
  1723.             public System.DateTime 离店时间 {
  1724.                 get {
  1725.                     try {
  1726.                         return ((System.DateTime)(this[this.table入住单.离店时间Column]));
  1727.                     }
  1728.                     catch (InvalidCastException e) {
  1729.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1730.                     }
  1731.                 }
  1732.                 set {
  1733.                     this[this.table入住单.离店时间Column] = value;
  1734.                 }
  1735.             }
  1736.             
  1737.             public string 单据状态 {
  1738.                 get {
  1739.                     try {
  1740.                         return ((string)(this[this.table入住单.单据状态Column]));
  1741.                     }
  1742.                     catch (InvalidCastException e) {
  1743.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1744.                     }
  1745.                 }
  1746.                 set {
  1747.                     this[this.table入住单.单据状态Column] = value;
  1748.                 }
  1749.             }
  1750.             
  1751.             public int 入住人数 {
  1752.                 get {
  1753.                     try {
  1754.                         return ((int)(this[this.table入住单.入住人数Column]));
  1755.                     }
  1756.                     catch (InvalidCastException e) {
  1757.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1758.                     }
  1759.                 }
  1760.                 set {
  1761.                     this[this.table入住单.入住人数Column] = value;
  1762.                 }
  1763.             }
  1764.             
  1765.             public string 客房编号 {
  1766.                 get {
  1767.                     try {
  1768.                         return ((string)(this[this.table入住单.客房编号Column]));
  1769.                     }
  1770.                     catch (InvalidCastException e) {
  1771.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1772.                     }
  1773.                 }
  1774.                 set {
  1775.                     this[this.table入住单.客房编号Column] = value;
  1776.                 }
  1777.             }
  1778.             
  1779.             public System.Decimal 客房价格 {
  1780.                 get {
  1781.                     try {
  1782.                         return ((System.Decimal)(this[this.table入住单.客房价格Column]));
  1783.                     }
  1784.                     catch (InvalidCastException e) {
  1785.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1786.                     }
  1787.                 }
  1788.                 set {
  1789.                     this[this.table入住单.客房价格Column] = value;
  1790.                 }
  1791.             }
  1792.             
  1793.             public System.Decimal 入住价格 {
  1794.                 get {
  1795.                     try {
  1796.                         return ((System.Decimal)(this[this.table入住单.入住价格Column]));
  1797.                     }
  1798.                     catch (InvalidCastException e) {
  1799.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1800.                     }
  1801.                 }
  1802.                 set {
  1803.                     this[this.table入住单.入住价格Column] = value;
  1804.                 }
  1805.             }
  1806.             
  1807.             public System.Decimal 折扣 {
  1808.                 get {
  1809.                     try {
  1810.                         return ((System.Decimal)(this[this.table入住单.折扣Column]));
  1811.                     }
  1812.                     catch (InvalidCastException e) {
  1813.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1814.                     }
  1815.                 }
  1816.                 set {
  1817.                     this[this.table入住单.折扣Column] = value;
  1818.                 }
  1819.             }
  1820.             
  1821.             public string 折扣原因 {
  1822.                 get {
  1823.                     try {
  1824.                         return ((string)(this[this.table入住单.折扣原因Column]));
  1825.                     }
  1826.                     catch (InvalidCastException e) {
  1827.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1828.                     }
  1829.                 }
  1830.                 set {
  1831.                     this[this.table入住单.折扣原因Column] = value;
  1832.                 }
  1833.             }
  1834.             
  1835.             public bool 是否加床 {
  1836.                 get {
  1837.                     try {
  1838.                         return ((bool)(this[this.table入住单.是否加床Column]));
  1839.                     }
  1840.                     catch (InvalidCastException e) {
  1841.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1842.                     }
  1843.                 }
  1844.                 set {
  1845.                     this[this.table入住单.是否加床Column] = value;
  1846.                 }
  1847.             }
  1848.             
  1849.             public System.Decimal 加床价格 {
  1850.                 get {
  1851.                     try {
  1852.                         return ((System.Decimal)(this[this.table入住单.加床价格Column]));
  1853.                     }
  1854.                     catch (InvalidCastException e) {
  1855.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1856.                     }
  1857.                 }
  1858.                 set {
  1859.                     this[this.table入住单.加床价格Column] = value;
  1860.                 }
  1861.             }
  1862.             
  1863.             public System.Decimal 预收款 {
  1864.                 get {
  1865.                     try {
  1866.                         return ((System.Decimal)(this[this.table入住单.预收款Column]));
  1867.                     }
  1868.                     catch (InvalidCastException e) {
  1869.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1870.                     }
  1871.                 }
  1872.                 set {
  1873.                     this[this.table入住单.预收款Column] = value;
  1874.                 }
  1875.             }
  1876.             
  1877.             public string 预定人 {
  1878.                 get {
  1879.                     try {
  1880.                         return ((string)(this[this.table入住单.预定人Column]));
  1881.                     }
  1882.                     catch (InvalidCastException e) {
  1883.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1884.                     }
  1885.                 }
  1886.                 set {
  1887.                     this[this.table入住单.预定人Column] = value;
  1888.                 }
  1889.             }
  1890.             
  1891.             public string 预定公司 {
  1892.                 get {
  1893.                     try {
  1894.                         return ((string)(this[this.table入住单.预定公司Column]));
  1895.                     }
  1896.                     catch (InvalidCastException e) {
  1897.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1898.                     }
  1899.                 }
  1900.                 set {
  1901.                     this[this.table入住单.预定公司Column] = value;
  1902.                 }
  1903.             }
  1904.             
  1905.             public string 联系电话 {
  1906.                 get {
  1907.                     try {
  1908.                         return ((string)(this[this.table入住单.联系电话Column]));
  1909.                     }
  1910.                     catch (InvalidCastException e) {
  1911.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1912.                     }
  1913.                 }
  1914.                 set {
  1915.                     this[this.table入住单.联系电话Column] = value;
  1916.                 }
  1917.             }
  1918.             
  1919.             public string 备注 {
  1920.                 get {
  1921.                     try {
  1922.                         return ((string)(this[this.table入住单.备注Column]));
  1923.                     }
  1924.                     catch (InvalidCastException e) {
  1925.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1926.                     }
  1927.                 }
  1928.                 set {
  1929.                     this[this.table入住单.备注Column] = value;
  1930.                 }
  1931.             }
  1932.             
  1933.             public string 操作员 {
  1934.                 get {
  1935.                     try {
  1936.                         return ((string)(this[this.table入住单.操作员Column]));
  1937.                     }
  1938.                     catch (InvalidCastException e) {
  1939.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1940.                     }
  1941.                 }
  1942.                 set {
  1943.                     this[this.table入住单.操作员Column] = value;
  1944.                 }
  1945.             }
  1946.             
  1947.             public string 业务员 {
  1948.                 get {
  1949.                     try {
  1950.                         return ((string)(this[this.table入住单.业务员Column]));
  1951.                     }
  1952.                     catch (InvalidCastException e) {
  1953.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1954.                     }
  1955.                 }
  1956.                 set {
  1957.                     this[this.table入住单.业务员Column] = value;
  1958.                 }
  1959.             }
  1960.             
  1961.             public bool 早餐 {
  1962.                 get {
  1963.                     try {
  1964.                         return ((bool)(this[this.table入住单.早餐Column]));
  1965.                     }
  1966.                     catch (InvalidCastException e) {
  1967.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1968.                     }
  1969.                 }
  1970.                 set {
  1971.                     this[this.table入住单.早餐Column] = value;
  1972.                 }
  1973.             }
  1974.             
  1975.             public bool 叫醒 {
  1976.                 get {
  1977.                     try {
  1978.                         return ((bool)(this[this.table入住单.叫醒Column]));
  1979.                     }
  1980.                     catch (InvalidCastException e) {
  1981.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1982.                     }
  1983.                 }
  1984.                 set {
  1985.                     this[this.table入住单.叫醒Column] = value;
  1986.                 }
  1987.             }
  1988.             
  1989.             public bool 保密 {
  1990.                 get {
  1991.                     try {
  1992.                         return ((bool)(this[this.table入住单.保密Column]));
  1993.                     }
  1994.                     catch (InvalidCastException e) {
  1995.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1996.                     }
  1997.                 }
  1998.                 set {
  1999.                     this[this.table入住单.保密Column] = value;
  2000.                 }
  2001.             }
  2002.             
  2003.             public bool vip {
  2004.                 get {
  2005.                     try {
  2006.                         return ((bool)(this[this.table入住单.vipColumn]));
  2007.                     }
  2008.                     catch (InvalidCastException e) {
  2009.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2010.                     }
  2011.                 }
  2012.                 set {
  2013.                     this[this.table入住单.vipColumn] = value;
  2014.                 }
  2015.             }
  2016.             
  2017.             public string 电话等级 {
  2018.                 get {
  2019.                     try {
  2020.                         return ((string)(this[this.table入住单.电话等级Column]));
  2021.                     }
  2022.                     catch (InvalidCastException e) {
  2023.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2024.                     }
  2025.                 }
  2026.                 set {
  2027.                     this[this.table入住单.电话等级Column] = value;
  2028.                 }
  2029.             }
  2030.             
  2031.             public string 特要说明 {
  2032.                 get {
  2033.                     try {
  2034.                         return ((string)(this[this.table入住单.特要说明Column]));
  2035.                     }
  2036.                     catch (InvalidCastException e) {
  2037.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2038.                     }
  2039.                 }
  2040.                 set {
  2041.                     this[this.table入住单.特要说明Column] = value;
  2042.                 }
  2043.             }
  2044.             
  2045.             public System.Decimal 应收帐款 {
  2046.                 get {
  2047.                     try {
  2048.                         return ((System.Decimal)(this[this.table入住单.应收帐款Column]));
  2049.                     }
  2050.                     catch (InvalidCastException e) {
  2051.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2052.                     }
  2053.                 }
  2054.                 set {
  2055.                     this[this.table入住单.应收帐款Column] = value;
  2056.                 }
  2057.             }
  2058.             
  2059.             public bool 是否结帐 {
  2060.                 get {
  2061.                     try {
  2062.                         return ((bool)(this[this.table入住单.是否结帐Column]));
  2063.                     }
  2064.                     catch (InvalidCastException e) {
  2065.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2066.                     }
  2067.                 }
  2068.                 set {
  2069.                     this[this.table入住单.是否结帐Column] = value;
  2070.                 }
  2071.             }
  2072.             
  2073.             public System.Decimal 结帐金额 {
  2074.                 get {
  2075.                     try {
  2076.                         return ((System.Decimal)(this[this.table入住单.结帐金额Column]));
  2077.                     }
  2078.                     catch (InvalidCastException e) {
  2079.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2080.                     }
  2081.                 }
  2082.                 set {
  2083.                     this[this.table入住单.结帐金额Column] = value;
  2084.                 }
  2085.             }
  2086.             
  2087.             public System.DateTime 结帐日期 {
  2088.                 get {
  2089.                     try {
  2090.                         return ((System.DateTime)(this[this.table入住单.结帐日期Column]));
  2091.                     }
  2092.                     catch (InvalidCastException e) {
  2093.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2094.                     }
  2095.                 }
  2096.                 set {
  2097.                     this[this.table入住单.结帐日期Column] = value;
  2098.                 }
  2099.             }
  2100.             
  2101.             public string 付款方式 {
  2102.                 get {
  2103.                     try {
  2104.                         return ((string)(this[this.table入住单.付款方式Column]));
  2105.                     }
  2106.                     catch (InvalidCastException e) {
  2107.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2108.                     }
  2109.                 }
  2110.                 set {
  2111.                     this[this.table入住单.付款方式Column] = value;
  2112.                 }
  2113.             }
  2114.             
  2115.             public bool Is预定单号Null() {
  2116.                 return this.IsNull(this.table入住单.预定单号Column);
  2117.             }
  2118.             
  2119.             public void Set预定单号Null() {
  2120.                 this[this.table入住单.预定单号Column] = System.Convert.DBNull;
  2121.             }
  2122.             
  2123.             public bool Is会员编号Null() {
  2124.                 return this.IsNull(this.table入住单.会员编号Column);
  2125.             }
  2126.             
  2127.             public void Set会员编号Null() {
  2128.                 this[this.table入住单.会员编号Column] = System.Convert.DBNull;
  2129.             }
  2130.             
  2131.             public bool Is客房类型Null() {
  2132.                 return this.IsNull(this.table入住单.客房类型Column);
  2133.             }
  2134.             
  2135.             public void Set客房类型Null() {
  2136.                 this[this.table入住单.客房类型Column] = System.Convert.DBNull;
  2137.             }
  2138.             
  2139.             public bool Is抵店时间Null() {
  2140.                 return this.IsNull(this.table入住单.抵店时间Column);
  2141.             }
  2142.             
  2143.             public void Set抵店时间Null() {
  2144.                 this[this.table入住单.抵店时间Column] = System.Convert.DBNull;
  2145.             }
  2146.             
  2147.             public bool Is离店时间Null() {
  2148.                 return this.IsNull(this.table入住单.离店时间Column);
  2149.             }
  2150.             
  2151.             public void Set离店时间Null() {
  2152.                 this[this.table入住单.离店时间Column] = System.Convert.DBNull;
  2153.             }
  2154.             
  2155.             public bool Is单据状态Null() {
  2156.                 return this.IsNull(this.table入住单.单据状态Column);
  2157.             }
  2158.             
  2159.             public void Set单据状态Null() {
  2160.                 this[this.table入住单.单据状态Column] = System.Convert.DBNull;
  2161.             }
  2162.             
  2163.             public bool Is入住人数Null() {
  2164.                 return this.IsNull(this.table入住单.入住人数Column);
  2165.             }
  2166.             
  2167.             public void Set入住人数Null() {
  2168.                 this[this.table入住单.入住人数Column] = System.Convert.DBNull;
  2169.             }
  2170.             
  2171.             public bool Is客房编号Null() {
  2172.                 return this.IsNull(this.table入住单.客房编号Column);
  2173.             }
  2174.             
  2175.             public void Set客房编号Null() {
  2176.                 this[this.table入住单.客房编号Column] = System.Convert.DBNull;
  2177.             }
  2178.             
  2179.             public bool Is客房价格Null() {
  2180.                 return this.IsNull(this.table入住单.客房价格Column);
  2181.             }
  2182.             
  2183.             public void Set客房价格Null() {
  2184.                 this[this.table入住单.客房价格Column] = System.Convert.DBNull;
  2185.             }
  2186.             
  2187.             public bool Is入住价格Null() {
  2188.                 return this.IsNull(this.table入住单.入住价格Column);
  2189.             }
  2190.             
  2191.             public void Set入住价格Null() {
  2192.                 this[this.table入住单.入住价格Column] = System.Convert.DBNull;
  2193.             }
  2194.             
  2195.             public bool Is折扣Null() {
  2196.                 return this.IsNull(this.table入住单.折扣Column);
  2197.             }
  2198.             
  2199.             public void Set折扣Null() {
  2200.                 this[this.table入住单.折扣Column] = System.Convert.DBNull;
  2201.             }
  2202.             
  2203.             public bool Is折扣原因Null() {
  2204.                 return this.IsNull(this.table入住单.折扣原因Column);
  2205.             }
  2206.             
  2207.             public void Set折扣原因Null() {
  2208.                 this[this.table入住单.折扣原因Column] = System.Convert.DBNull;
  2209.             }
  2210.             
  2211.             public bool Is是否加床Null() {
  2212.                 return this.IsNull(this.table入住单.是否加床Column);
  2213.             }
  2214.             
  2215.             public void Set是否加床Null() {
  2216.                 this[this.table入住单.是否加床Column] = System.Convert.DBNull;
  2217.             }
  2218.             
  2219.             public bool Is加床价格Null() {
  2220.                 return this.IsNull(this.table入住单.加床价格Column);
  2221.             }
  2222.             
  2223.             public void Set加床价格Null() {
  2224.                 this[this.table入住单.加床价格Column] = System.Convert.DBNull;
  2225.             }
  2226.             
  2227.             public bool Is预收款Null() {
  2228.                 return this.IsNull(this.table入住单.预收款Column);
  2229.             }
  2230.             
  2231.             public void Set预收款Null() {
  2232.                 this[this.table入住单.预收款Column] = System.Convert.DBNull;
  2233.             }
  2234.             
  2235.             public bool Is预定人Null() {
  2236.                 return this.IsNull(this.table入住单.预定人Column);
  2237.             }
  2238.             
  2239.             public void Set预定人Null() {
  2240.                 this[this.table入住单.预定人Column] = System.Convert.DBNull;
  2241.             }
  2242.             
  2243.             public bool Is预定公司Null() {
  2244.                 return this.IsNull(this.table入住单.预定公司Column);
  2245.             }
  2246.             
  2247.             public void Set预定公司Null() {
  2248.                 this[this.table入住单.预定公司Column] = System.Convert.DBNull;
  2249.             }
  2250.             
  2251.             public bool Is联系电话Null() {
  2252.                 return this.IsNull(this.table入住单.联系电话Column);
  2253.             }
  2254.             
  2255.             public void Set联系电话Null() {
  2256.                 this[this.table入住单.联系电话Column] = System.Convert.DBNull;
  2257.             }
  2258.             
  2259.             public bool Is备注Null() {
  2260.                 return this.IsNull(this.table入住单.备注Column);
  2261.             }
  2262.             
  2263.             public void Set备注Null() {
  2264.                 this[this.table入住单.备注Column] = System.Convert.DBNull;
  2265.             }
  2266.             
  2267.             public bool Is操作员Null() {
  2268.                 return this.IsNull(this.table入住单.操作员Column);
  2269.             }
  2270.             
  2271.             public void Set操作员Null() {
  2272.                 this[this.table入住单.操作员Column] = System.Convert.DBNull;
  2273.             }
  2274.             
  2275.             public bool Is业务员Null() {
  2276.                 return this.IsNull(this.table入住单.业务员Column);
  2277.             }
  2278.             
  2279.             public void Set业务员Null() {
  2280.                 this[this.table入住单.业务员Column] = System.Convert.DBNull;
  2281.             }
  2282.             
  2283.             public bool Is早餐Null() {
  2284.                 return this.IsNull(this.table入住单.早餐Column);
  2285.             }
  2286.             
  2287.             public void Set早餐Null() {
  2288.                 this[this.table入住单.早餐Column] = System.Convert.DBNull;
  2289.             }
  2290.             
  2291.             public bool Is叫醒Null() {
  2292.                 return this.IsNull(this.table入住单.叫醒Column);
  2293.             }
  2294.             
  2295.             public void Set叫醒Null() {
  2296.                 this[this.table入住单.叫醒Column] = System.Convert.DBNull;
  2297.             }
  2298.             
  2299.             public bool Is保密Null() {
  2300.                 return this.IsNull(this.table入住单.保密Column);
  2301.             }
  2302.             
  2303.             public void Set保密Null() {
  2304.                 this[this.table入住单.保密Column] = System.Convert.DBNull;
  2305.             }
  2306.             
  2307.             public bool IsvipNull() {
  2308.                 return this.IsNull(this.table入住单.vipColumn);
  2309.             }
  2310.             
  2311.             public void SetvipNull() {
  2312.                 this[this.table入住单.vipColumn] = System.Convert.DBNull;
  2313.             }
  2314.             
  2315.             public bool Is电话等级Null() {
  2316.                 return this.IsNull(this.table入住单.电话等级Column);
  2317.             }
  2318.             
  2319.             public void Set电话等级Null() {
  2320.                 this[this.table入住单.电话等级Column] = System.Convert.DBNull;
  2321.             }
  2322.             
  2323.             public bool Is特要说明Null() {
  2324.                 return this.IsNull(this.table入住单.特要说明Column);
  2325.             }
  2326.             
  2327.             public void Set特要说明Null() {
  2328.                 this[this.table入住单.特要说明Column] = System.Convert.DBNull;
  2329.             }
  2330.             
  2331.             public bool Is应收帐款Null() {
  2332.                 return this.IsNull(this.table入住单.应收帐款Column);
  2333.             }
  2334.             
  2335.             public void Set应收帐款Null() {
  2336.                 this[this.table入住单.应收帐款Column] = System.Convert.DBNull;
  2337.             }
  2338.             
  2339.             public bool Is是否结帐Null() {
  2340.                 return this.IsNull(this.table入住单.是否结帐Column);
  2341.             }
  2342.             
  2343.             public void Set是否结帐Null() {
  2344.                 this[this.table入住单.是否结帐Column] = System.Convert.DBNull;
  2345.             }
  2346.             
  2347.             public bool Is结帐金额Null() {
  2348.                 return this.IsNull(this.table入住单.结帐金额Column);
  2349.             }
  2350.             
  2351.             public void Set结帐金额Null() {
  2352.                 this[this.table入住单.结帐金额Column] = System.Convert.DBNull;
  2353.             }
  2354.             
  2355.             public bool Is结帐日期Null() {
  2356.                 return this.IsNull(this.table入住单.结帐日期Column);
  2357.             }
  2358.             
  2359.             public void Set结帐日期Null() {
  2360.                 this[this.table入住单.结帐日期Column] = System.Convert.DBNull;
  2361.             }
  2362.             
  2363.             public bool Is付款方式Null() {
  2364.                 return this.IsNull(this.table入住单.付款方式Column);
  2365.             }
  2366.             
  2367.             public void Set付款方式Null() {
  2368.                 this[this.table入住单.付款方式Column] = System.Convert.DBNull;
  2369.             }
  2370.         }
  2371.         
  2372.         [System.Diagnostics.DebuggerStepThrough()]
  2373.         public class 入住单RowChangeEvent : EventArgs {
  2374.             
  2375.             private 入住单Row eventRow;
  2376.             
  2377.             private DataRowAction eventAction;
  2378.             
  2379.             public 入住单RowChangeEvent(入住单Row row, DataRowAction action) {
  2380.                 this.eventRow = row;
  2381.                 this.eventAction = action;
  2382.             }
  2383.             
  2384.             public 入住单Row Row {
  2385.                 get {
  2386.                     return this.eventRow;
  2387.                 }
  2388.             }
  2389.             
  2390.             public DataRowAction Action {
  2391.                 get {
  2392.                     return this.eventAction;
  2393.                 }
  2394.             }
  2395.         }
  2396.         
  2397.         [System.Diagnostics.DebuggerStepThrough()]
  2398.         public class 客房类型DataTable : DataTable, System.Collections.IEnumerable {
  2399.             
  2400.             private DataColumn column类型编号;
  2401.             
  2402.             private DataColumn column类型名称;
  2403.             
  2404.             internal 客房类型DataTable() : 
  2405.                     base("客房类型") {
  2406.                 this.InitClass();
  2407.             }
  2408.             
  2409.             internal 客房类型DataTable(DataTable table) : 
  2410.                     base(table.TableName) {
  2411.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2412.                     this.CaseSensitive = table.CaseSensitive;
  2413.                 }
  2414.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2415.                     this.Locale = table.Locale;
  2416.                 }
  2417.                 if ((table.Namespace != table.DataSet.Namespace)) {
  2418.                     this.Namespace = table.Namespace;
  2419.                 }
  2420.                 this.Prefix = table.Prefix;
  2421.                 this.MinimumCapacity = table.MinimumCapacity;
  2422.                 this.DisplayExpression = table.DisplayExpression;
  2423.             }
  2424.             
  2425.             [System.ComponentModel.Browsable(false)]
  2426.             public int Count {
  2427.                 get {
  2428.                     return this.Rows.Count;
  2429.                 }
  2430.             }
  2431.             
  2432.             internal DataColumn 类型编号Column {
  2433.                 get {
  2434.                     return this.column类型编号;
  2435.                 }
  2436.             }
  2437.             
  2438.             internal DataColumn 类型名称Column {
  2439.                 get {
  2440.                     return this.column类型名称;
  2441.                 }
  2442.             }
  2443.             
  2444.             public 客房类型Row this[int index] {
  2445.                 get {
  2446.                     return ((客房类型Row)(this.Rows[index]));
  2447.                 }
  2448.             }
  2449.             
  2450.             public event 客房类型RowChangeEventHandler 客房类型RowChanged;
  2451.             
  2452.             public event 客房类型RowChangeEventHandler 客房类型RowChanging;
  2453.             
  2454.             public event 客房类型RowChangeEventHandler 客房类型RowDeleted;
  2455.             
  2456.             public event 客房类型RowChangeEventHandler 客房类型RowDeleting;
  2457.             
  2458.             public void Add客房类型Row(客房类型Row row) {
  2459.                 this.Rows.Add(row);
  2460.             }
  2461.             
  2462.             public 客房类型Row Add客房类型Row(string 类型编号, string 类型名称) {
  2463.                 客房类型Row row客房类型Row = ((客房类型Row)(this.NewRow()));
  2464.                 row客房类型Row.ItemArray = new object[] {
  2465.                         类型编号,
  2466.                         类型名称};
  2467.                 this.Rows.Add(row客房类型Row);
  2468.                 return row客房类型Row;
  2469.             }
  2470.             
  2471.             public 客房类型Row FindBy类型编号(string 类型编号) {
  2472.                 return ((客房类型Row)(this.Rows.Find(new object[] {
  2473.                             类型编号})));
  2474.             }
  2475.             
  2476.             public System.Collections.IEnumerator GetEnumerator() {
  2477.                 return this.Rows.GetEnumerator();
  2478.             }
  2479.             
  2480.             public override DataTable Clone() {
  2481.                 客房类型DataTable cln = ((客房类型DataTable)(base.Clone()));
  2482.                 cln.InitVars();
  2483.                 return cln;
  2484.             }
  2485.             
  2486.             protected override DataTable CreateInstance() {
  2487.                 return new 客房类型DataTable();
  2488.             }
  2489.             
  2490.             internal void InitVars() {
  2491.                 this.column类型编号 = this.Columns["类型编号"];
  2492.                 this.column类型名称 = this.Columns["类型名称"];
  2493.             }
  2494.             
  2495.             private void InitClass() {
  2496.                 this.column类型编号 = new DataColumn("类型编号", typeof(string), null, System.Data.MappingType.Element);
  2497.                 this.Columns.Add(this.column类型编号);
  2498.                 this.column类型名称 = new DataColumn("类型名称", typeof(string), null, System.Data.MappingType.Element);
  2499.                 this.Columns.Add(this.column类型名称);
  2500.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  2501.                                 this.column类型编号}, true));
  2502.                 this.column类型编号.AllowDBNull = false;
  2503.                 this.column类型编号.Unique = true;
  2504.             }
  2505.             
  2506.             public 客房类型Row New客房类型Row() {
  2507.                 return ((客房类型Row)(this.NewRow()));
  2508.             }
  2509.             
  2510.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  2511.                 return new 客房类型Row(builder);
  2512.             }
  2513.             
  2514.             protected override System.Type GetRowType() {
  2515.                 return typeof(客房类型Row);
  2516.             }
  2517.             
  2518.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  2519.                 base.OnRowChanged(e);
  2520.                 if ((this.客房类型RowChanged != null)) {
  2521.                     this.客房类型RowChanged(this, new 客房类型RowChangeEvent(((客房类型Row)(e.Row)), e.Action));
  2522.                 }
  2523.             }
  2524.             
  2525.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  2526.                 base.OnRowChanging(e);
  2527.                 if ((this.客房类型RowChanging != null)) {
  2528.                     this.客房类型RowChanging(this, new 客房类型RowChangeEvent(((客房类型Row)(e.Row)), e.Action));
  2529.                 }
  2530.             }
  2531.             
  2532.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  2533.                 base.OnRowDeleted(e);
  2534.                 if ((this.客房类型RowDeleted != null)) {
  2535.                     this.客房类型RowDeleted(this, new 客房类型RowChangeEvent(((客房类型Row)(e.Row)), e.Action));
  2536.                 }
  2537.             }
  2538.             
  2539.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  2540.                 base.OnRowDeleting(e);
  2541.                 if ((this.客房类型RowDeleting != null)) {
  2542.                     this.客房类型RowDeleting(this, new 客房类型RowChangeEvent(((客房类型Row)(e.Row)), e.Action));
  2543.                 }
  2544.             }
  2545.             
  2546.             public void Remove客房类型Row(客房类型Row row) {
  2547.                 this.Rows.Remove(row);
  2548.             }
  2549.         }
  2550.         
  2551.         [System.Diagnostics.DebuggerStepThrough()]
  2552.         public class 客房类型Row : DataRow {
  2553.             
  2554.             private 客房类型DataTable table客房类型;
  2555.             
  2556.             internal 客房类型Row(DataRowBuilder rb) : 
  2557.                     base(rb) {
  2558.                 this.table客房类型 = ((客房类型DataTable)(this.Table));
  2559.             }
  2560.             
  2561.             public string 类型编号 {
  2562.                 get {
  2563.                     return ((string)(this[this.table客房类型.类型编号Column]));
  2564.                 }
  2565.                 set {
  2566.                     this[this.table客房类型.类型编号Column] = value;
  2567.                 }
  2568.             }
  2569.             
  2570.             public string 类型名称 {
  2571.                 get {
  2572.                     try {
  2573.                         return ((string)(this[this.table客房类型.类型名称Column]));
  2574.                     }
  2575.                     catch (InvalidCastException e) {
  2576.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2577.                     }
  2578.                 }
  2579.                 set {
  2580.                     this[this.table客房类型.类型名称Column] = value;
  2581.                 }
  2582.             }
  2583.             
  2584.             public bool Is类型名称Null() {
  2585.                 return this.IsNull(this.table客房类型.类型名称Column);
  2586.             }
  2587.             
  2588.             public void Set类型名称Null() {
  2589.                 this[this.table客房类型.类型名称Column] = System.Convert.DBNull;
  2590.             }
  2591.         }
  2592.         
  2593.         [System.Diagnostics.DebuggerStepThrough()]
  2594.         public class 客房类型RowChangeEvent : EventArgs {
  2595.             
  2596.             private 客房类型Row eventRow;
  2597.             
  2598.             private DataRowAction eventAction;
  2599.             
  2600.             public 客房类型RowChangeEvent(客房类型Row row, DataRowAction action) {
  2601.                 this.eventRow = row;
  2602.                 this.eventAction = action;
  2603.             }
  2604.             
  2605.             public 客房类型Row Row {
  2606.                 get {
  2607.                     return this.eventRow;
  2608.                 }
  2609.             }
  2610.             
  2611.             public DataRowAction Action {
  2612.                 get {
  2613.                     return this.eventAction;
  2614.                 }
  2615.             }
  2616.         }
  2617.         
  2618.         [System.Diagnostics.DebuggerStepThrough()]
  2619.         public class 帐单明细DataTable : DataTable, System.Collections.IEnumerable {
  2620.             
  2621.             private DataColumn column帐单编号;
  2622.             
  2623.             private DataColumn column入住单号;
  2624.             
  2625.             private DataColumn column消费内容;
  2626.             
  2627.             private DataColumn column消费金额;
  2628.             
  2629.             private DataColumn column消费时间;
  2630.             
  2631.             private DataColumn column备注;
  2632.             
  2633.             internal 帐单明细DataTable() : 
  2634.                     base("帐单明细") {
  2635.                 this.InitClass();
  2636.             }
  2637.             
  2638.             internal 帐单明细DataTable(DataTable table) : 
  2639.                     base(table.TableName) {
  2640.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2641.                     this.CaseSensitive = table.CaseSensitive;
  2642.                 }
  2643.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2644.                     this.Locale = table.Locale;
  2645.                 }
  2646.                 if ((table.Namespace != table.DataSet.Namespace)) {
  2647.                     this.Namespace = table.Namespace;
  2648.                 }
  2649.                 this.Prefix = table.Prefix;
  2650.                 this.MinimumCapacity = table.MinimumCapacity;
  2651.                 this.DisplayExpression = table.DisplayExpression;
  2652.             }
  2653.             
  2654.             [System.ComponentModel.Browsable(false)]
  2655.             public int Count {
  2656.                 get {
  2657.                     return this.Rows.Count;
  2658.                 }
  2659.             }
  2660.             
  2661.             internal DataColumn 帐单编号Column {
  2662.                 get {
  2663.                     return this.column帐单编号;
  2664.                 }
  2665.             }
  2666.             
  2667.             internal DataColumn 入住单号Column {
  2668.                 get {
  2669.                     return this.column入住单号;
  2670.                 }
  2671.             }
  2672.             
  2673.             internal DataColumn 消费内容Column {
  2674.                 get {
  2675.                     return this.column消费内容;
  2676.                 }
  2677.             }
  2678.             
  2679.             internal DataColumn 消费金额Column {
  2680.                 get {
  2681.                     return this.column消费金额;
  2682.                 }
  2683.             }
  2684.             
  2685.             internal DataColumn 消费时间Column {
  2686.                 get {
  2687.                     return this.column消费时间;
  2688.                 }
  2689.             }
  2690.             
  2691.             internal DataColumn 备注Column {
  2692.                 get {
  2693.                     return this.column备注;
  2694.                 }
  2695.             }
  2696.             
  2697.             public 帐单明细Row this[int index] {
  2698.                 get {
  2699.                     return ((帐单明细Row)(this.Rows[index]));
  2700.                 }
  2701.             }
  2702.             
  2703.             public event 帐单明细RowChangeEventHandler 帐单明细RowChanged;
  2704.             
  2705.             public event 帐单明细RowChangeEventHandler 帐单明细RowChanging;
  2706.             
  2707.             public event 帐单明细RowChangeEventHandler 帐单明细RowDeleted;
  2708.             
  2709.             public event 帐单明细RowChangeEventHandler 帐单明细RowDeleting;
  2710.             
  2711.             public void Add帐单明细Row(帐单明细Row row) {
  2712.                 this.Rows.Add(row);
  2713.             }
  2714.             
  2715.             public 帐单明细Row Add帐单明细Row(string 入住单号, string 消费内容, System.Decimal 消费金额, System.DateTime 消费时间, string 备注) {
  2716.                 帐单明细Row row帐单明细Row = ((帐单明细Row)(this.NewRow()));
  2717.                 row帐单明细Row.ItemArray = new object[] {
  2718.                         null,
  2719.                         入住单号,
  2720.                         消费内容,
  2721.                         消费金额,
  2722.                         消费时间,
  2723.                         备注};
  2724.                 this.Rows.Add(row帐单明细Row);
  2725.                 return row帐单明细Row;
  2726.             }
  2727.             
  2728.             public 帐单明细Row FindBy帐单编号(int 帐单编号) {
  2729.                 return ((帐单明细Row)(this.Rows.Find(new object[] {
  2730.                             帐单编号})));
  2731.             }
  2732.             
  2733.             public System.Collections.IEnumerator GetEnumerator() {
  2734.                 return this.Rows.GetEnumerator();
  2735.             }
  2736.             
  2737.             public override DataTable Clone() {
  2738.                 帐单明细DataTable cln = ((帐单明细DataTable)(base.Clone()));
  2739.                 cln.InitVars();
  2740.                 return cln;
  2741.             }
  2742.             
  2743.             protected override DataTable CreateInstance() {
  2744.                 return new 帐单明细DataTable();
  2745.             }
  2746.             
  2747.             internal void InitVars() {
  2748.                 this.column帐单编号 = this.Columns["帐单编号"];
  2749.                 this.column入住单号 = this.Columns["入住单号"];
  2750.                 this.column消费内容 = this.Columns["消费内容"];
  2751.                 this.column消费金额 = this.Columns["消费金额"];
  2752.                 this.column消费时间 = this.Columns["消费时间"];
  2753.                 this.column备注 = this.Columns["备注"];
  2754.             }
  2755.             
  2756.             private void InitClass() {
  2757.                 this.column帐单编号 = new DataColumn("帐单编号", typeof(int), null, System.Data.MappingType.Element);
  2758.                 this.Columns.Add(this.column帐单编号);
  2759.                 this.column入住单号 = new DataColumn("入住单号", typeof(string), null, System.Data.MappingType.Element);
  2760.                 this.Columns.Add(this.column入住单号);
  2761.                 this.column消费内容 = new DataColumn("消费内容", typeof(string), null, System.Data.MappingType.Element);
  2762.                 this.Columns.Add(this.column消费内容);
  2763.                 this.column消费金额 = new DataColumn("消费金额", typeof(System.Decimal), null, System.Data.MappingType.Element);
  2764.                 this.Columns.Add(this.column消费金额);
  2765.                 this.column消费时间 = new DataColumn("消费时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  2766.                 this.Columns.Add(this.column消费时间);
  2767.                 this.column备注 = new DataColumn("备注", typeof(string), null, System.Data.MappingType.Element);
  2768.                 this.Columns.Add(this.column备注);
  2769.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  2770.                                 this.column帐单编号}, true));
  2771.                 this.column帐单编号.AutoIncrement = true;
  2772.                 this.column帐单编号.AllowDBNull = false;
  2773.                 this.column帐单编号.ReadOnly = true;
  2774.                 this.column帐单编号.Unique = true;
  2775.                 this.column入住单号.AllowDBNull = false;
  2776.             }
  2777.             
  2778.             public 帐单明细Row New帐单明细Row() {
  2779.                 return ((帐单明细Row)(this.NewRow()));
  2780.             }
  2781.             
  2782.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  2783.                 return new 帐单明细Row(builder);
  2784.             }
  2785.             
  2786.             protected override System.Type GetRowType() {
  2787.                 return typeof(帐单明细Row);
  2788.             }
  2789.             
  2790.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  2791.                 base.OnRowChanged(e);
  2792.                 if ((this.帐单明细RowChanged != null)) {
  2793.                     this.帐单明细RowChanged(this, new 帐单明细RowChangeEvent(((帐单明细Row)(e.Row)), e.Action));
  2794.                 }
  2795.             }
  2796.             
  2797.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  2798.                 base.OnRowChanging(e);
  2799.                 if ((this.帐单明细RowChanging != null)) {
  2800.                     this.帐单明细RowChanging(this, new 帐单明细RowChangeEvent(((帐单明细Row)(e.Row)), e.Action));
  2801.                 }
  2802.             }
  2803.             
  2804.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  2805.                 base.OnRowDeleted(e);
  2806.                 if ((this.帐单明细RowDeleted != null)) {
  2807.                     this.帐单明细RowDeleted(this, new 帐单明细RowChangeEvent(((帐单明细Row)(e.Row)), e.Action));
  2808.                 }
  2809.             }
  2810.             
  2811.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  2812.                 base.OnRowDeleting(e);
  2813.                 if ((this.帐单明细RowDeleting != null)) {
  2814.                     this.帐单明细RowDeleting(this, new 帐单明细RowChangeEvent(((帐单明细Row)(e.Row)), e.Action));
  2815.                 }
  2816.             }
  2817.             
  2818.             public void Remove帐单明细Row(帐单明细Row row) {
  2819.                 this.Rows.Remove(row);
  2820.             }
  2821.         }
  2822.         
  2823.         [System.Diagnostics.DebuggerStepThrough()]
  2824.         public class 帐单明细Row : DataRow {
  2825.             
  2826.             private 帐单明细DataTable table帐单明细;
  2827.             
  2828.             internal 帐单明细Row(DataRowBuilder rb) : 
  2829.                     base(rb) {
  2830.                 this.table帐单明细 = ((帐单明细DataTable)(this.Table));
  2831.             }
  2832.             
  2833.             public int 帐单编号 {
  2834.                 get {
  2835.                     return ((int)(this[this.table帐单明细.帐单编号Column]));
  2836.                 }
  2837.                 set {
  2838.                     this[this.table帐单明细.帐单编号Column] = value;
  2839.                 }
  2840.             }
  2841.             
  2842.             public string 入住单号 {
  2843.                 get {
  2844.                     return ((string)(this[this.table帐单明细.入住单号Column]));
  2845.                 }
  2846.                 set {
  2847.                     this[this.table帐单明细.入住单号Column] = value;
  2848.                 }
  2849.             }
  2850.             
  2851.             public string 消费内容 {
  2852.                 get {
  2853.                     try {
  2854.                         return ((string)(this[this.table帐单明细.消费内容Column]));
  2855.                     }
  2856.                     catch (InvalidCastException e) {
  2857.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2858.                     }
  2859.                 }
  2860.                 set {
  2861.                     this[this.table帐单明细.消费内容Column] = value;
  2862.                 }
  2863.             }
  2864.             
  2865.             public System.Decimal 消费金额 {
  2866.                 get {
  2867.                     try {
  2868.                         return ((System.Decimal)(this[this.table帐单明细.消费金额Column]));
  2869.                     }
  2870.                     catch (InvalidCastException e) {
  2871.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2872.                     }
  2873.                 }
  2874.                 set {
  2875.                     this[this.table帐单明细.消费金额Column] = value;
  2876.                 }
  2877.             }
  2878.             
  2879.             public System.DateTime 消费时间 {
  2880.                 get {
  2881.                     try {
  2882.                         return ((System.DateTime)(this[this.table帐单明细.消费时间Column]));
  2883.                     }
  2884.                     catch (InvalidCastException e) {
  2885.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2886.                     }
  2887.                 }
  2888.                 set {
  2889.                     this[this.table帐单明细.消费时间Column] = value;
  2890.                 }
  2891.             }
  2892.             
  2893.             public string 备注 {
  2894.                 get {
  2895.                     try {
  2896.                         return ((string)(this[this.table帐单明细.备注Column]));
  2897.                     }
  2898.                     catch (InvalidCastException e) {
  2899.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  2900.                     }
  2901.                 }
  2902.                 set {
  2903.                     this[this.table帐单明细.备注Column] = value;
  2904.                 }
  2905.             }
  2906.             
  2907.             public bool Is消费内容Null() {
  2908.                 return this.IsNull(this.table帐单明细.消费内容Column);
  2909.             }
  2910.             
  2911.             public void Set消费内容Null() {
  2912.                 this[this.table帐单明细.消费内容Column] = System.Convert.DBNull;
  2913.             }
  2914.             
  2915.             public bool Is消费金额Null() {
  2916.                 return this.IsNull(this.table帐单明细.消费金额Column);
  2917.             }
  2918.             
  2919.             public void Set消费金额Null() {
  2920.                 this[this.table帐单明细.消费金额Column] = System.Convert.DBNull;
  2921.             }
  2922.             
  2923.             public bool Is消费时间Null() {
  2924.                 return this.IsNull(this.table帐单明细.消费时间Column);
  2925.             }
  2926.             
  2927.             public void Set消费时间Null() {
  2928.                 this[this.table帐单明细.消费时间Column] = System.Convert.DBNull;
  2929.             }
  2930.             
  2931.             public bool Is备注Null() {
  2932.                 return this.IsNull(this.table帐单明细.备注Column);
  2933.             }
  2934.             
  2935.             public void Set备注Null() {
  2936.                 this[this.table帐单明细.备注Column] = System.Convert.DBNull;
  2937.             }
  2938.         }
  2939.         
  2940.         [System.Diagnostics.DebuggerStepThrough()]
  2941.         public class 帐单明细RowChangeEvent : EventArgs {
  2942.             
  2943.             private 帐单明细Row eventRow;
  2944.             
  2945.             private DataRowAction eventAction;
  2946.             
  2947.             public 帐单明细RowChangeEvent(帐单明细Row row, DataRowAction action) {
  2948.                 this.eventRow = row;
  2949.                 this.eventAction = action;
  2950.             }
  2951.             
  2952.             public 帐单明细Row Row {
  2953.                 get {
  2954.                     return this.eventRow;
  2955.                 }
  2956.             }
  2957.             
  2958.             public DataRowAction Action {
  2959.                 get {
  2960.                     return this.eventAction;
  2961.                 }
  2962.             }
  2963.         }
  2964.     }
  2965. }