DataSet2.cs
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:73k
源码类别:

企业管理

开发平台:

C#

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