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

酒店行业

开发平台:

Java

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