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

企业管理

开发平台:

C#

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