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

企业管理

开发平台:

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