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

企业管理

开发平台:

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