DataSet1.cs
资源名称:VCSDB.rar [点击查看]
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:107k
源码类别:
企业管理
开发平台:
C#
- //------------------------------------------------------------------------------
- // <autogenerated>
- // This code was generated by a tool.
- // Runtime Version: 1.1.4322.573
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </autogenerated>
- //------------------------------------------------------------------------------
- namespace 财务管理系统 {
- using System;
- using System.Data;
- using System.Xml;
- using System.Runtime.Serialization;
- [Serializable()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- [System.Diagnostics.DebuggerStepThrough()]
- [System.ComponentModel.ToolboxItem(true)]
- public class DataSet1 : DataSet {
- private 科目表DataTable table科目表;
- private 本期汇总账簿DataTable table本期汇总账簿;
- private 本期明细账簿DataTable table本期明细账簿;
- private 凭证表DataTable table凭证表;
- private 分录表DataTable table分录表;
- public DataSet1() {
- this.InitClass();
- System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- this.Tables.CollectionChanged += schemaChangedHandler;
- this.Relations.CollectionChanged += schemaChangedHandler;
- }
- protected DataSet1(SerializationInfo info, StreamingContext context) {
- string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
- if ((strSchema != null)) {
- DataSet ds = new DataSet();
- ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
- if ((ds.Tables["科目表"] != null)) {
- this.Tables.Add(new 科目表DataTable(ds.Tables["科目表"]));
- }
- if ((ds.Tables["本期汇总账簿"] != null)) {
- this.Tables.Add(new 本期汇总账簿DataTable(ds.Tables["本期汇总账簿"]));
- }
- if ((ds.Tables["本期明细账簿"] != null)) {
- this.Tables.Add(new 本期明细账簿DataTable(ds.Tables["本期明细账簿"]));
- }
- if ((ds.Tables["凭证表"] != null)) {
- this.Tables.Add(new 凭证表DataTable(ds.Tables["凭证表"]));
- }
- if ((ds.Tables["分录表"] != null)) {
- this.Tables.Add(new 分录表DataTable(ds.Tables["分录表"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- else {
- this.InitClass();
- }
- this.GetSerializationData(info, context);
- System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- this.Tables.CollectionChanged += schemaChangedHandler;
- this.Relations.CollectionChanged += schemaChangedHandler;
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 科目表DataTable 科目表 {
- get {
- return this.table科目表;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 本期汇总账簿DataTable 本期汇总账簿 {
- get {
- return this.table本期汇总账簿;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 本期明细账簿DataTable 本期明细账簿 {
- get {
- return this.table本期明细账簿;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 凭证表DataTable 凭证表 {
- get {
- return this.table凭证表;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 分录表DataTable 分录表 {
- get {
- return this.table分录表;
- }
- }
- public override DataSet Clone() {
- DataSet1 cln = ((DataSet1)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override bool ShouldSerializeTables() {
- return false;
- }
- protected override bool ShouldSerializeRelations() {
- return false;
- }
- protected override void ReadXmlSerializable(XmlReader reader) {
- this.Reset();
- DataSet ds = new DataSet();
- ds.ReadXml(reader);
- if ((ds.Tables["科目表"] != null)) {
- this.Tables.Add(new 科目表DataTable(ds.Tables["科目表"]));
- }
- if ((ds.Tables["本期汇总账簿"] != null)) {
- this.Tables.Add(new 本期汇总账簿DataTable(ds.Tables["本期汇总账簿"]));
- }
- if ((ds.Tables["本期明细账簿"] != null)) {
- this.Tables.Add(new 本期明细账簿DataTable(ds.Tables["本期明细账簿"]));
- }
- if ((ds.Tables["凭证表"] != null)) {
- this.Tables.Add(new 凭证表DataTable(ds.Tables["凭证表"]));
- }
- if ((ds.Tables["分录表"] != null)) {
- this.Tables.Add(new 分录表DataTable(ds.Tables["分录表"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
- System.IO.MemoryStream stream = new System.IO.MemoryStream();
- this.WriteXmlSchema(new XmlTextWriter(stream, null));
- stream.Position = 0;
- return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
- }
- internal void InitVars() {
- this.table科目表 = ((科目表DataTable)(this.Tables["科目表"]));
- if ((this.table科目表 != null)) {
- this.table科目表.InitVars();
- }
- this.table本期汇总账簿 = ((本期汇总账簿DataTable)(this.Tables["本期汇总账簿"]));
- if ((this.table本期汇总账簿 != null)) {
- this.table本期汇总账簿.InitVars();
- }
- this.table本期明细账簿 = ((本期明细账簿DataTable)(this.Tables["本期明细账簿"]));
- if ((this.table本期明细账簿 != null)) {
- this.table本期明细账簿.InitVars();
- }
- this.table凭证表 = ((凭证表DataTable)(this.Tables["凭证表"]));
- if ((this.table凭证表 != null)) {
- this.table凭证表.InitVars();
- }
- this.table分录表 = ((分录表DataTable)(this.Tables["分录表"]));
- if ((this.table分录表 != null)) {
- this.table分录表.InitVars();
- }
- }
- private void InitClass() {
- this.DataSetName = "DataSet1";
- this.Prefix = "";
- this.Namespace = "http://www.tempuri.org/DataSet1.xsd";
- this.Locale = new System.Globalization.CultureInfo("zh-CN");
- this.CaseSensitive = false;
- this.EnforceConstraints = true;
- this.table科目表 = new 科目表DataTable();
- this.Tables.Add(this.table科目表);
- this.table本期汇总账簿 = new 本期汇总账簿DataTable();
- this.Tables.Add(this.table本期汇总账簿);
- this.table本期明细账簿 = new 本期明细账簿DataTable();
- this.Tables.Add(this.table本期明细账簿);
- this.table凭证表 = new 凭证表DataTable();
- this.Tables.Add(this.table凭证表);
- this.table分录表 = new 分录表DataTable();
- this.Tables.Add(this.table分录表);
- }
- private bool ShouldSerialize科目表() {
- return false;
- }
- private bool ShouldSerialize本期汇总账簿() {
- return false;
- }
- private bool ShouldSerialize本期明细账簿() {
- return false;
- }
- private bool ShouldSerialize凭证表() {
- return false;
- }
- private bool ShouldSerialize分录表() {
- return false;
- }
- private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
- if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
- this.InitVars();
- }
- }
- public delegate void 科目表RowChangeEventHandler(object sender, 科目表RowChangeEvent e);
- public delegate void 本期汇总账簿RowChangeEventHandler(object sender, 本期汇总账簿RowChangeEvent e);
- public delegate void 本期明细账簿RowChangeEventHandler(object sender, 本期明细账簿RowChangeEvent e);
- public delegate void 凭证表RowChangeEventHandler(object sender, 凭证表RowChangeEvent e);
- public delegate void 分录表RowChangeEventHandler(object sender, 分录表RowChangeEvent e);
- [System.Diagnostics.DebuggerStepThrough()]
- public class 科目表DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column科目代码;
- private DataColumn column科目名称;
- private DataColumn column助记码;
- private DataColumn column科目类别;
- private DataColumn column是否存货科目;
- private DataColumn column余额方向;
- private DataColumn column数量单位;
- internal 科目表DataTable() :
- base("科目表") {
- this.InitClass();
- }
- internal 科目表DataTable(DataTable table) :
- base(table.TableName) {
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- this.DisplayExpression = table.DisplayExpression;
- }
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- internal DataColumn 科目代码Column {
- get {
- return this.column科目代码;
- }
- }
- internal DataColumn 科目名称Column {
- get {
- return this.column科目名称;
- }
- }
- internal DataColumn 助记码Column {
- get {
- return this.column助记码;
- }
- }
- internal DataColumn 科目类别Column {
- get {
- return this.column科目类别;
- }
- }
- internal DataColumn 是否存货科目Column {
- get {
- return this.column是否存货科目;
- }
- }
- internal DataColumn 余额方向Column {
- get {
- return this.column余额方向;
- }
- }
- internal DataColumn 数量单位Column {
- get {
- return this.column数量单位;
- }
- }
- public 科目表Row this[int index] {
- get {
- return ((科目表Row)(this.Rows[index]));
- }
- }
- public event 科目表RowChangeEventHandler 科目表RowChanged;
- public event 科目表RowChangeEventHandler 科目表RowChanging;
- public event 科目表RowChangeEventHandler 科目表RowDeleted;
- public event 科目表RowChangeEventHandler 科目表RowDeleting;
- public void Add科目表Row(科目表Row row) {
- this.Rows.Add(row);
- }
- public 科目表Row Add科目表Row(string 科目代码, string 科目名称, string 助记码, string 科目类别, string 是否存货科目, string 余额方向, string 数量单位) {
- 科目表Row row科目表Row = ((科目表Row)(this.NewRow()));
- row科目表Row.ItemArray = new object[] {
- 科目代码,
- 科目名称,
- 助记码,
- 科目类别,
- 是否存货科目,
- 余额方向,
- 数量单位};
- this.Rows.Add(row科目表Row);
- return row科目表Row;
- }
- public 科目表Row FindBy科目代码(string 科目代码) {
- return ((科目表Row)(this.Rows.Find(new object[] {
- 科目代码})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 科目表DataTable cln = ((科目表DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 科目表DataTable();
- }
- internal void InitVars() {
- this.column科目代码 = this.Columns["科目代码"];
- this.column科目名称 = this.Columns["科目名称"];
- this.column助记码 = this.Columns["助记码"];
- this.column科目类别 = this.Columns["科目类别"];
- this.column是否存货科目 = this.Columns["是否存货科目"];
- this.column余额方向 = this.Columns["余额方向"];
- this.column数量单位 = this.Columns["数量单位"];
- }
- private void InitClass() {
- this.column科目代码 = new DataColumn("科目代码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column科目代码);
- this.column科目名称 = new DataColumn("科目名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column科目名称);
- this.column助记码 = new DataColumn("助记码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column助记码);
- this.column科目类别 = new DataColumn("科目类别", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column科目类别);
- this.column是否存货科目 = new DataColumn("是否存货科目", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column是否存货科目);
- this.column余额方向 = new DataColumn("余额方向", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column余额方向);
- this.column数量单位 = new DataColumn("数量单位", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column数量单位);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column科目代码}, true));
- this.column科目代码.AllowDBNull = false;
- this.column科目代码.Unique = true;
- }
- public 科目表Row New科目表Row() {
- return ((科目表Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 科目表Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(科目表Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.科目表RowChanged != null)) {
- this.科目表RowChanged(this, new 科目表RowChangeEvent(((科目表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.科目表RowChanging != null)) {
- this.科目表RowChanging(this, new 科目表RowChangeEvent(((科目表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.科目表RowDeleted != null)) {
- this.科目表RowDeleted(this, new 科目表RowChangeEvent(((科目表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.科目表RowDeleting != null)) {
- this.科目表RowDeleting(this, new 科目表RowChangeEvent(((科目表Row)(e.Row)), e.Action));
- }
- }
- public void Remove科目表Row(科目表Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 科目表Row : DataRow {
- private 科目表DataTable table科目表;
- internal 科目表Row(DataRowBuilder rb) :
- base(rb) {
- this.table科目表 = ((科目表DataTable)(this.Table));
- }
- public string 科目代码 {
- get {
- return ((string)(this[this.table科目表.科目代码Column]));
- }
- set {
- this[this.table科目表.科目代码Column] = value;
- }
- }
- public string 科目名称 {
- get {
- try {
- return ((string)(this[this.table科目表.科目名称Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table科目表.科目名称Column] = value;
- }
- }
- public string 助记码 {
- get {
- try {
- return ((string)(this[this.table科目表.助记码Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table科目表.助记码Column] = value;
- }
- }
- public string 科目类别 {
- get {
- try {
- return ((string)(this[this.table科目表.科目类别Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table科目表.科目类别Column] = value;
- }
- }
- public string 是否存货科目 {
- get {
- try {
- return ((string)(this[this.table科目表.是否存货科目Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table科目表.是否存货科目Column] = value;
- }
- }
- public string 余额方向 {
- get {
- try {
- return ((string)(this[this.table科目表.余额方向Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table科目表.余额方向Column] = value;
- }
- }
- public string 数量单位 {
- get {
- try {
- return ((string)(this[this.table科目表.数量单位Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table科目表.数量单位Column] = value;
- }
- }
- public bool Is科目名称Null() {
- return this.IsNull(this.table科目表.科目名称Column);
- }
- public void Set科目名称Null() {
- this[this.table科目表.科目名称Column] = System.Convert.DBNull;
- }
- public bool Is助记码Null() {
- return this.IsNull(this.table科目表.助记码Column);
- }
- public void Set助记码Null() {
- this[this.table科目表.助记码Column] = System.Convert.DBNull;
- }
- public bool Is科目类别Null() {
- return this.IsNull(this.table科目表.科目类别Column);
- }
- public void Set科目类别Null() {
- this[this.table科目表.科目类别Column] = System.Convert.DBNull;
- }
- public bool Is是否存货科目Null() {
- return this.IsNull(this.table科目表.是否存货科目Column);
- }
- public void Set是否存货科目Null() {
- this[this.table科目表.是否存货科目Column] = System.Convert.DBNull;
- }
- public bool Is余额方向Null() {
- return this.IsNull(this.table科目表.余额方向Column);
- }
- public void Set余额方向Null() {
- this[this.table科目表.余额方向Column] = System.Convert.DBNull;
- }
- public bool Is数量单位Null() {
- return this.IsNull(this.table科目表.数量单位Column);
- }
- public void Set数量单位Null() {
- this[this.table科目表.数量单位Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 科目表RowChangeEvent : EventArgs {
- private 科目表Row eventRow;
- private DataRowAction eventAction;
- public 科目表RowChangeEvent(科目表Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 科目表Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 本期汇总账簿DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column科目名称;
- private DataColumn column科目代码;
- private DataColumn column会计期间;
- private DataColumn column期初余额;
- private DataColumn column本期借方合计;
- private DataColumn column本期贷方合计;
- private DataColumn column本年借方累计;
- private DataColumn column本年贷方累计;
- private DataColumn column余额;
- private DataColumn column余额方向;
- internal 本期汇总账簿DataTable() :
- base("本期汇总账簿") {
- this.InitClass();
- }
- internal 本期汇总账簿DataTable(DataTable table) :
- base(table.TableName) {
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- this.DisplayExpression = table.DisplayExpression;
- }
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- internal DataColumn 科目名称Column {
- get {
- return this.column科目名称;
- }
- }
- internal DataColumn 科目代码Column {
- get {
- return this.column科目代码;
- }
- }
- internal DataColumn 会计期间Column {
- get {
- return this.column会计期间;
- }
- }
- internal DataColumn 期初余额Column {
- get {
- return this.column期初余额;
- }
- }
- internal DataColumn 本期借方合计Column {
- get {
- return this.column本期借方合计;
- }
- }
- internal DataColumn 本期贷方合计Column {
- get {
- return this.column本期贷方合计;
- }
- }
- internal DataColumn 本年借方累计Column {
- get {
- return this.column本年借方累计;
- }
- }
- internal DataColumn 本年贷方累计Column {
- get {
- return this.column本年贷方累计;
- }
- }
- internal DataColumn 余额Column {
- get {
- return this.column余额;
- }
- }
- internal DataColumn 余额方向Column {
- get {
- return this.column余额方向;
- }
- }
- public 本期汇总账簿Row this[int index] {
- get {
- return ((本期汇总账簿Row)(this.Rows[index]));
- }
- }
- public event 本期汇总账簿RowChangeEventHandler 本期汇总账簿RowChanged;
- public event 本期汇总账簿RowChangeEventHandler 本期汇总账簿RowChanging;
- public event 本期汇总账簿RowChangeEventHandler 本期汇总账簿RowDeleted;
- public event 本期汇总账簿RowChangeEventHandler 本期汇总账簿RowDeleting;
- public void Add本期汇总账簿Row(本期汇总账簿Row row) {
- this.Rows.Add(row);
- }
- public 本期汇总账簿Row Add本期汇总账簿Row(string 科目名称, string 科目代码, int 会计期间, System.Decimal 期初余额, System.Decimal 本期借方合计, System.Decimal 本期贷方合计, System.Decimal 本年借方累计, System.Decimal 本年贷方累计, System.Decimal 余额, string 余额方向) {
- 本期汇总账簿Row row本期汇总账簿Row = ((本期汇总账簿Row)(this.NewRow()));
- row本期汇总账簿Row.ItemArray = new object[] {
- 科目名称,
- 科目代码,
- 会计期间,
- 期初余额,
- 本期借方合计,
- 本期贷方合计,
- 本年借方累计,
- 本年贷方累计,
- 余额,
- 余额方向};
- this.Rows.Add(row本期汇总账簿Row);
- return row本期汇总账簿Row;
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 本期汇总账簿DataTable cln = ((本期汇总账簿DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 本期汇总账簿DataTable();
- }
- internal void InitVars() {
- this.column科目名称 = this.Columns["科目名称"];
- this.column科目代码 = this.Columns["科目代码"];
- this.column会计期间 = this.Columns["会计期间"];
- this.column期初余额 = this.Columns["期初余额"];
- this.column本期借方合计 = this.Columns["本期借方合计"];
- this.column本期贷方合计 = this.Columns["本期贷方合计"];
- this.column本年借方累计 = this.Columns["本年借方累计"];
- this.column本年贷方累计 = this.Columns["本年贷方累计"];
- this.column余额 = this.Columns["余额"];
- this.column余额方向 = this.Columns["余额方向"];
- }
- private void InitClass() {
- this.column科目名称 = new DataColumn("科目名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column科目名称);
- this.column科目代码 = new DataColumn("科目代码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column科目代码);
- this.column会计期间 = new DataColumn("会计期间", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column会计期间);
- this.column期初余额 = new DataColumn("期初余额", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column期初余额);
- this.column本期借方合计 = new DataColumn("本期借方合计", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column本期借方合计);
- this.column本期贷方合计 = new DataColumn("本期贷方合计", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column本期贷方合计);
- this.column本年借方累计 = new DataColumn("本年借方累计", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column本年借方累计);
- this.column本年贷方累计 = new DataColumn("本年贷方累计", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column本年贷方累计);
- this.column余额 = new DataColumn("余额", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column余额);
- this.column余额方向 = new DataColumn("余额方向", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column余额方向);
- this.column科目代码.AllowDBNull = false;
- }
- public 本期汇总账簿Row New本期汇总账簿Row() {
- return ((本期汇总账簿Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 本期汇总账簿Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(本期汇总账簿Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.本期汇总账簿RowChanged != null)) {
- this.本期汇总账簿RowChanged(this, new 本期汇总账簿RowChangeEvent(((本期汇总账簿Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.本期汇总账簿RowChanging != null)) {
- this.本期汇总账簿RowChanging(this, new 本期汇总账簿RowChangeEvent(((本期汇总账簿Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.本期汇总账簿RowDeleted != null)) {
- this.本期汇总账簿RowDeleted(this, new 本期汇总账簿RowChangeEvent(((本期汇总账簿Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.本期汇总账簿RowDeleting != null)) {
- this.本期汇总账簿RowDeleting(this, new 本期汇总账簿RowChangeEvent(((本期汇总账簿Row)(e.Row)), e.Action));
- }
- }
- public void Remove本期汇总账簿Row(本期汇总账簿Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 本期汇总账簿Row : DataRow {
- private 本期汇总账簿DataTable table本期汇总账簿;
- internal 本期汇总账簿Row(DataRowBuilder rb) :
- base(rb) {
- this.table本期汇总账簿 = ((本期汇总账簿DataTable)(this.Table));
- }
- public string 科目名称 {
- get {
- try {
- return ((string)(this[this.table本期汇总账簿.科目名称Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期汇总账簿.科目名称Column] = value;
- }
- }
- public string 科目代码 {
- get {
- return ((string)(this[this.table本期汇总账簿.科目代码Column]));
- }
- set {
- this[this.table本期汇总账簿.科目代码Column] = value;
- }
- }
- public int 会计期间 {
- get {
- try {
- return ((int)(this[this.table本期汇总账簿.会计期间Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期汇总账簿.会计期间Column] = value;
- }
- }
- public System.Decimal 期初余额 {
- get {
- try {
- return ((System.Decimal)(this[this.table本期汇总账簿.期初余额Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期汇总账簿.期初余额Column] = value;
- }
- }
- public System.Decimal 本期借方合计 {
- get {
- try {
- return ((System.Decimal)(this[this.table本期汇总账簿.本期借方合计Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期汇总账簿.本期借方合计Column] = value;
- }
- }
- public System.Decimal 本期贷方合计 {
- get {
- try {
- return ((System.Decimal)(this[this.table本期汇总账簿.本期贷方合计Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期汇总账簿.本期贷方合计Column] = value;
- }
- }
- public System.Decimal 本年借方累计 {
- get {
- try {
- return ((System.Decimal)(this[this.table本期汇总账簿.本年借方累计Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期汇总账簿.本年借方累计Column] = value;
- }
- }
- public System.Decimal 本年贷方累计 {
- get {
- try {
- return ((System.Decimal)(this[this.table本期汇总账簿.本年贷方累计Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期汇总账簿.本年贷方累计Column] = value;
- }
- }
- public System.Decimal 余额 {
- get {
- try {
- return ((System.Decimal)(this[this.table本期汇总账簿.余额Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期汇总账簿.余额Column] = value;
- }
- }
- public string 余额方向 {
- get {
- try {
- return ((string)(this[this.table本期汇总账簿.余额方向Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期汇总账簿.余额方向Column] = value;
- }
- }
- public bool Is科目名称Null() {
- return this.IsNull(this.table本期汇总账簿.科目名称Column);
- }
- public void Set科目名称Null() {
- this[this.table本期汇总账簿.科目名称Column] = System.Convert.DBNull;
- }
- public bool Is会计期间Null() {
- return this.IsNull(this.table本期汇总账簿.会计期间Column);
- }
- public void Set会计期间Null() {
- this[this.table本期汇总账簿.会计期间Column] = System.Convert.DBNull;
- }
- public bool Is期初余额Null() {
- return this.IsNull(this.table本期汇总账簿.期初余额Column);
- }
- public void Set期初余额Null() {
- this[this.table本期汇总账簿.期初余额Column] = System.Convert.DBNull;
- }
- public bool Is本期借方合计Null() {
- return this.IsNull(this.table本期汇总账簿.本期借方合计Column);
- }
- public void Set本期借方合计Null() {
- this[this.table本期汇总账簿.本期借方合计Column] = System.Convert.DBNull;
- }
- public bool Is本期贷方合计Null() {
- return this.IsNull(this.table本期汇总账簿.本期贷方合计Column);
- }
- public void Set本期贷方合计Null() {
- this[this.table本期汇总账簿.本期贷方合计Column] = System.Convert.DBNull;
- }
- public bool Is本年借方累计Null() {
- return this.IsNull(this.table本期汇总账簿.本年借方累计Column);
- }
- public void Set本年借方累计Null() {
- this[this.table本期汇总账簿.本年借方累计Column] = System.Convert.DBNull;
- }
- public bool Is本年贷方累计Null() {
- return this.IsNull(this.table本期汇总账簿.本年贷方累计Column);
- }
- public void Set本年贷方累计Null() {
- this[this.table本期汇总账簿.本年贷方累计Column] = System.Convert.DBNull;
- }
- public bool Is余额Null() {
- return this.IsNull(this.table本期汇总账簿.余额Column);
- }
- public void Set余额Null() {
- this[this.table本期汇总账簿.余额Column] = System.Convert.DBNull;
- }
- public bool Is余额方向Null() {
- return this.IsNull(this.table本期汇总账簿.余额方向Column);
- }
- public void Set余额方向Null() {
- this[this.table本期汇总账簿.余额方向Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 本期汇总账簿RowChangeEvent : EventArgs {
- private 本期汇总账簿Row eventRow;
- private DataRowAction eventAction;
- public 本期汇总账簿RowChangeEvent(本期汇总账簿Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 本期汇总账簿Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 本期明细账簿DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column科目名称;
- private DataColumn column会计期间;
- private DataColumn column凭证字号;
- private DataColumn column凭证编号;
- private DataColumn column科目代码;
- private DataColumn column借方;
- private DataColumn column贷方;
- private DataColumn column余额方向;
- private DataColumn column余额;
- internal 本期明细账簿DataTable() :
- base("本期明细账簿") {
- this.InitClass();
- }
- internal 本期明细账簿DataTable(DataTable table) :
- base(table.TableName) {
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- this.DisplayExpression = table.DisplayExpression;
- }
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- internal DataColumn 科目名称Column {
- get {
- return this.column科目名称;
- }
- }
- internal DataColumn 会计期间Column {
- get {
- return this.column会计期间;
- }
- }
- internal DataColumn 凭证字号Column {
- get {
- return this.column凭证字号;
- }
- }
- internal DataColumn 凭证编号Column {
- get {
- return this.column凭证编号;
- }
- }
- internal DataColumn 科目代码Column {
- get {
- return this.column科目代码;
- }
- }
- internal DataColumn 借方Column {
- get {
- return this.column借方;
- }
- }
- internal DataColumn 贷方Column {
- get {
- return this.column贷方;
- }
- }
- internal DataColumn 余额方向Column {
- get {
- return this.column余额方向;
- }
- }
- internal DataColumn 余额Column {
- get {
- return this.column余额;
- }
- }
- public 本期明细账簿Row this[int index] {
- get {
- return ((本期明细账簿Row)(this.Rows[index]));
- }
- }
- public event 本期明细账簿RowChangeEventHandler 本期明细账簿RowChanged;
- public event 本期明细账簿RowChangeEventHandler 本期明细账簿RowChanging;
- public event 本期明细账簿RowChangeEventHandler 本期明细账簿RowDeleted;
- public event 本期明细账簿RowChangeEventHandler 本期明细账簿RowDeleting;
- public void Add本期明细账簿Row(本期明细账簿Row row) {
- this.Rows.Add(row);
- }
- public 本期明细账簿Row Add本期明细账簿Row(string 科目名称, int 会计期间, string 凭证字号, string 凭证编号, string 科目代码, System.Decimal 借方, System.Decimal 贷方, string 余额方向, System.Decimal 余额) {
- 本期明细账簿Row row本期明细账簿Row = ((本期明细账簿Row)(this.NewRow()));
- row本期明细账簿Row.ItemArray = new object[] {
- 科目名称,
- 会计期间,
- 凭证字号,
- 凭证编号,
- 科目代码,
- 借方,
- 贷方,
- 余额方向,
- 余额};
- this.Rows.Add(row本期明细账簿Row);
- return row本期明细账簿Row;
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 本期明细账簿DataTable cln = ((本期明细账簿DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 本期明细账簿DataTable();
- }
- internal void InitVars() {
- this.column科目名称 = this.Columns["科目名称"];
- this.column会计期间 = this.Columns["会计期间"];
- this.column凭证字号 = this.Columns["凭证字号"];
- this.column凭证编号 = this.Columns["凭证编号"];
- this.column科目代码 = this.Columns["科目代码"];
- this.column借方 = this.Columns["借方"];
- this.column贷方 = this.Columns["贷方"];
- this.column余额方向 = this.Columns["余额方向"];
- this.column余额 = this.Columns["余额"];
- }
- private void InitClass() {
- this.column科目名称 = new DataColumn("科目名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column科目名称);
- this.column会计期间 = new DataColumn("会计期间", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column会计期间);
- this.column凭证字号 = new DataColumn("凭证字号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column凭证字号);
- this.column凭证编号 = new DataColumn("凭证编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column凭证编号);
- this.column科目代码 = new DataColumn("科目代码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column科目代码);
- this.column借方 = new DataColumn("借方", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column借方);
- this.column贷方 = new DataColumn("贷方", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column贷方);
- this.column余额方向 = new DataColumn("余额方向", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column余额方向);
- this.column余额 = new DataColumn("余额", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column余额);
- }
- public 本期明细账簿Row New本期明细账簿Row() {
- return ((本期明细账簿Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 本期明细账簿Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(本期明细账簿Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.本期明细账簿RowChanged != null)) {
- this.本期明细账簿RowChanged(this, new 本期明细账簿RowChangeEvent(((本期明细账簿Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.本期明细账簿RowChanging != null)) {
- this.本期明细账簿RowChanging(this, new 本期明细账簿RowChangeEvent(((本期明细账簿Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.本期明细账簿RowDeleted != null)) {
- this.本期明细账簿RowDeleted(this, new 本期明细账簿RowChangeEvent(((本期明细账簿Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.本期明细账簿RowDeleting != null)) {
- this.本期明细账簿RowDeleting(this, new 本期明细账簿RowChangeEvent(((本期明细账簿Row)(e.Row)), e.Action));
- }
- }
- public void Remove本期明细账簿Row(本期明细账簿Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 本期明细账簿Row : DataRow {
- private 本期明细账簿DataTable table本期明细账簿;
- internal 本期明细账簿Row(DataRowBuilder rb) :
- base(rb) {
- this.table本期明细账簿 = ((本期明细账簿DataTable)(this.Table));
- }
- public string 科目名称 {
- get {
- try {
- return ((string)(this[this.table本期明细账簿.科目名称Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期明细账簿.科目名称Column] = value;
- }
- }
- public int 会计期间 {
- get {
- try {
- return ((int)(this[this.table本期明细账簿.会计期间Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期明细账簿.会计期间Column] = value;
- }
- }
- public string 凭证字号 {
- get {
- try {
- return ((string)(this[this.table本期明细账簿.凭证字号Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期明细账簿.凭证字号Column] = value;
- }
- }
- public string 凭证编号 {
- get {
- try {
- return ((string)(this[this.table本期明细账簿.凭证编号Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期明细账簿.凭证编号Column] = value;
- }
- }
- public string 科目代码 {
- get {
- try {
- return ((string)(this[this.table本期明细账簿.科目代码Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期明细账簿.科目代码Column] = value;
- }
- }
- public System.Decimal 借方 {
- get {
- try {
- return ((System.Decimal)(this[this.table本期明细账簿.借方Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期明细账簿.借方Column] = value;
- }
- }
- public System.Decimal 贷方 {
- get {
- try {
- return ((System.Decimal)(this[this.table本期明细账簿.贷方Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期明细账簿.贷方Column] = value;
- }
- }
- public string 余额方向 {
- get {
- try {
- return ((string)(this[this.table本期明细账簿.余额方向Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期明细账簿.余额方向Column] = value;
- }
- }
- public System.Decimal 余额 {
- get {
- try {
- return ((System.Decimal)(this[this.table本期明细账簿.余额Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table本期明细账簿.余额Column] = value;
- }
- }
- public bool Is科目名称Null() {
- return this.IsNull(this.table本期明细账簿.科目名称Column);
- }
- public void Set科目名称Null() {
- this[this.table本期明细账簿.科目名称Column] = System.Convert.DBNull;
- }
- public bool Is会计期间Null() {
- return this.IsNull(this.table本期明细账簿.会计期间Column);
- }
- public void Set会计期间Null() {
- this[this.table本期明细账簿.会计期间Column] = System.Convert.DBNull;
- }
- public bool Is凭证字号Null() {
- return this.IsNull(this.table本期明细账簿.凭证字号Column);
- }
- public void Set凭证字号Null() {
- this[this.table本期明细账簿.凭证字号Column] = System.Convert.DBNull;
- }
- public bool Is凭证编号Null() {
- return this.IsNull(this.table本期明细账簿.凭证编号Column);
- }
- public void Set凭证编号Null() {
- this[this.table本期明细账簿.凭证编号Column] = System.Convert.DBNull;
- }
- public bool Is科目代码Null() {
- return this.IsNull(this.table本期明细账簿.科目代码Column);
- }
- public void Set科目代码Null() {
- this[this.table本期明细账簿.科目代码Column] = System.Convert.DBNull;
- }
- public bool Is借方Null() {
- return this.IsNull(this.table本期明细账簿.借方Column);
- }
- public void Set借方Null() {
- this[this.table本期明细账簿.借方Column] = System.Convert.DBNull;
- }
- public bool Is贷方Null() {
- return this.IsNull(this.table本期明细账簿.贷方Column);
- }
- public void Set贷方Null() {
- this[this.table本期明细账簿.贷方Column] = System.Convert.DBNull;
- }
- public bool Is余额方向Null() {
- return this.IsNull(this.table本期明细账簿.余额方向Column);
- }
- public void Set余额方向Null() {
- this[this.table本期明细账簿.余额方向Column] = System.Convert.DBNull;
- }
- public bool Is余额Null() {
- return this.IsNull(this.table本期明细账簿.余额Column);
- }
- public void Set余额Null() {
- this[this.table本期明细账簿.余额Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 本期明细账簿RowChangeEvent : EventArgs {
- private 本期明细账簿Row eventRow;
- private DataRowAction eventAction;
- public 本期明细账簿RowChangeEvent(本期明细账簿Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 本期明细账簿Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 凭证表DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column凭证编号;
- private DataColumn column会计期间;
- private DataColumn column凭证字号;
- private DataColumn column日期;
- private DataColumn column附单据;
- private DataColumn column制单;
- private DataColumn column借方合计;
- private DataColumn column贷方合计;
- private DataColumn column过账状态;
- private DataColumn column凭证状态;
- internal 凭证表DataTable() :
- base("凭证表") {
- this.InitClass();
- }
- internal 凭证表DataTable(DataTable table) :
- base(table.TableName) {
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- this.DisplayExpression = table.DisplayExpression;
- }
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- internal DataColumn 凭证编号Column {
- get {
- return this.column凭证编号;
- }
- }
- internal DataColumn 会计期间Column {
- get {
- return this.column会计期间;
- }
- }
- internal DataColumn 凭证字号Column {
- get {
- return this.column凭证字号;
- }
- }
- internal DataColumn 日期Column {
- get {
- return this.column日期;
- }
- }
- internal DataColumn 附单据Column {
- get {
- return this.column附单据;
- }
- }
- internal DataColumn 制单Column {
- get {
- return this.column制单;
- }
- }
- internal DataColumn 借方合计Column {
- get {
- return this.column借方合计;
- }
- }
- internal DataColumn 贷方合计Column {
- get {
- return this.column贷方合计;
- }
- }
- internal DataColumn 过账状态Column {
- get {
- return this.column过账状态;
- }
- }
- internal DataColumn 凭证状态Column {
- get {
- return this.column凭证状态;
- }
- }
- public 凭证表Row this[int index] {
- get {
- return ((凭证表Row)(this.Rows[index]));
- }
- }
- public event 凭证表RowChangeEventHandler 凭证表RowChanged;
- public event 凭证表RowChangeEventHandler 凭证表RowChanging;
- public event 凭证表RowChangeEventHandler 凭证表RowDeleted;
- public event 凭证表RowChangeEventHandler 凭证表RowDeleting;
- public void Add凭证表Row(凭证表Row row) {
- this.Rows.Add(row);
- }
- public 凭证表Row Add凭证表Row(string 凭证编号, int 会计期间, string 凭证字号, System.DateTime 日期, int 附单据, string 制单, System.Decimal 借方合计, System.Decimal 贷方合计, string 过账状态, string 凭证状态) {
- 凭证表Row row凭证表Row = ((凭证表Row)(this.NewRow()));
- row凭证表Row.ItemArray = new object[] {
- 凭证编号,
- 会计期间,
- 凭证字号,
- 日期,
- 附单据,
- 制单,
- 借方合计,
- 贷方合计,
- 过账状态,
- 凭证状态};
- this.Rows.Add(row凭证表Row);
- return row凭证表Row;
- }
- public 凭证表Row FindBy凭证编号(string 凭证编号) {
- return ((凭证表Row)(this.Rows.Find(new object[] {
- 凭证编号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 凭证表DataTable cln = ((凭证表DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 凭证表DataTable();
- }
- internal void InitVars() {
- this.column凭证编号 = this.Columns["凭证编号"];
- this.column会计期间 = this.Columns["会计期间"];
- this.column凭证字号 = this.Columns["凭证字号"];
- this.column日期 = this.Columns["日期"];
- this.column附单据 = this.Columns["附单据"];
- this.column制单 = this.Columns["制单"];
- this.column借方合计 = this.Columns["借方合计"];
- this.column贷方合计 = this.Columns["贷方合计"];
- this.column过账状态 = this.Columns["过账状态"];
- this.column凭证状态 = this.Columns["凭证状态"];
- }
- private void InitClass() {
- this.column凭证编号 = new DataColumn("凭证编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column凭证编号);
- this.column会计期间 = new DataColumn("会计期间", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column会计期间);
- this.column凭证字号 = new DataColumn("凭证字号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column凭证字号);
- this.column日期 = new DataColumn("日期", typeof(System.DateTime), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column日期);
- this.column附单据 = new DataColumn("附单据", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column附单据);
- this.column制单 = new DataColumn("制单", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column制单);
- this.column借方合计 = new DataColumn("借方合计", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column借方合计);
- this.column贷方合计 = new DataColumn("贷方合计", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column贷方合计);
- this.column过账状态 = new DataColumn("过账状态", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column过账状态);
- this.column凭证状态 = new DataColumn("凭证状态", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column凭证状态);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column凭证编号}, true));
- this.column凭证编号.AllowDBNull = false;
- this.column凭证编号.Unique = true;
- }
- public 凭证表Row New凭证表Row() {
- return ((凭证表Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 凭证表Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(凭证表Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.凭证表RowChanged != null)) {
- this.凭证表RowChanged(this, new 凭证表RowChangeEvent(((凭证表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.凭证表RowChanging != null)) {
- this.凭证表RowChanging(this, new 凭证表RowChangeEvent(((凭证表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.凭证表RowDeleted != null)) {
- this.凭证表RowDeleted(this, new 凭证表RowChangeEvent(((凭证表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.凭证表RowDeleting != null)) {
- this.凭证表RowDeleting(this, new 凭证表RowChangeEvent(((凭证表Row)(e.Row)), e.Action));
- }
- }
- public void Remove凭证表Row(凭证表Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 凭证表Row : DataRow {
- private 凭证表DataTable table凭证表;
- internal 凭证表Row(DataRowBuilder rb) :
- base(rb) {
- this.table凭证表 = ((凭证表DataTable)(this.Table));
- }
- public string 凭证编号 {
- get {
- return ((string)(this[this.table凭证表.凭证编号Column]));
- }
- set {
- this[this.table凭证表.凭证编号Column] = value;
- }
- }
- public int 会计期间 {
- get {
- try {
- return ((int)(this[this.table凭证表.会计期间Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table凭证表.会计期间Column] = value;
- }
- }
- public string 凭证字号 {
- get {
- try {
- return ((string)(this[this.table凭证表.凭证字号Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table凭证表.凭证字号Column] = value;
- }
- }
- public System.DateTime 日期 {
- get {
- try {
- return ((System.DateTime)(this[this.table凭证表.日期Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table凭证表.日期Column] = value;
- }
- }
- public int 附单据 {
- get {
- try {
- return ((int)(this[this.table凭证表.附单据Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table凭证表.附单据Column] = value;
- }
- }
- public string 制单 {
- get {
- try {
- return ((string)(this[this.table凭证表.制单Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table凭证表.制单Column] = value;
- }
- }
- public System.Decimal 借方合计 {
- get {
- try {
- return ((System.Decimal)(this[this.table凭证表.借方合计Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table凭证表.借方合计Column] = value;
- }
- }
- public System.Decimal 贷方合计 {
- get {
- try {
- return ((System.Decimal)(this[this.table凭证表.贷方合计Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table凭证表.贷方合计Column] = value;
- }
- }
- public string 过账状态 {
- get {
- try {
- return ((string)(this[this.table凭证表.过账状态Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table凭证表.过账状态Column] = value;
- }
- }
- public string 凭证状态 {
- get {
- try {
- return ((string)(this[this.table凭证表.凭证状态Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table凭证表.凭证状态Column] = value;
- }
- }
- public bool Is会计期间Null() {
- return this.IsNull(this.table凭证表.会计期间Column);
- }
- public void Set会计期间Null() {
- this[this.table凭证表.会计期间Column] = System.Convert.DBNull;
- }
- public bool Is凭证字号Null() {
- return this.IsNull(this.table凭证表.凭证字号Column);
- }
- public void Set凭证字号Null() {
- this[this.table凭证表.凭证字号Column] = System.Convert.DBNull;
- }
- public bool Is日期Null() {
- return this.IsNull(this.table凭证表.日期Column);
- }
- public void Set日期Null() {
- this[this.table凭证表.日期Column] = System.Convert.DBNull;
- }
- public bool Is附单据Null() {
- return this.IsNull(this.table凭证表.附单据Column);
- }
- public void Set附单据Null() {
- this[this.table凭证表.附单据Column] = System.Convert.DBNull;
- }
- public bool Is制单Null() {
- return this.IsNull(this.table凭证表.制单Column);
- }
- public void Set制单Null() {
- this[this.table凭证表.制单Column] = System.Convert.DBNull;
- }
- public bool Is借方合计Null() {
- return this.IsNull(this.table凭证表.借方合计Column);
- }
- public void Set借方合计Null() {
- this[this.table凭证表.借方合计Column] = System.Convert.DBNull;
- }
- public bool Is贷方合计Null() {
- return this.IsNull(this.table凭证表.贷方合计Column);
- }
- public void Set贷方合计Null() {
- this[this.table凭证表.贷方合计Column] = System.Convert.DBNull;
- }
- public bool Is过账状态Null() {
- return this.IsNull(this.table凭证表.过账状态Column);
- }
- public void Set过账状态Null() {
- this[this.table凭证表.过账状态Column] = System.Convert.DBNull;
- }
- public bool Is凭证状态Null() {
- return this.IsNull(this.table凭证表.凭证状态Column);
- }
- public void Set凭证状态Null() {
- this[this.table凭证表.凭证状态Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 凭证表RowChangeEvent : EventArgs {
- private 凭证表Row eventRow;
- private DataRowAction eventAction;
- public 凭证表RowChangeEvent(凭证表Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 凭证表Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 分录表DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column科目名称;
- private DataColumn column编号;
- private DataColumn column凭证编号;
- private DataColumn column摘要;
- private DataColumn column科目代码;
- private DataColumn column借方;
- private DataColumn column贷方;
- private DataColumn column数量;
- private DataColumn column单价;
- private DataColumn column结算方式;
- private DataColumn column结算号;
- private DataColumn column结算日期;
- internal 分录表DataTable() :
- base("分录表") {
- this.InitClass();
- }
- internal 分录表DataTable(DataTable table) :
- base(table.TableName) {
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- this.DisplayExpression = table.DisplayExpression;
- }
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- internal DataColumn 科目名称Column {
- get {
- return this.column科目名称;
- }
- }
- internal DataColumn 编号Column {
- get {
- return this.column编号;
- }
- }
- internal DataColumn 凭证编号Column {
- get {
- return this.column凭证编号;
- }
- }
- internal DataColumn 摘要Column {
- get {
- return this.column摘要;
- }
- }
- internal DataColumn 科目代码Column {
- get {
- return this.column科目代码;
- }
- }
- internal DataColumn 借方Column {
- get {
- return this.column借方;
- }
- }
- internal DataColumn 贷方Column {
- get {
- return this.column贷方;
- }
- }
- internal DataColumn 数量Column {
- get {
- return this.column数量;
- }
- }
- internal DataColumn 单价Column {
- get {
- return this.column单价;
- }
- }
- internal DataColumn 结算方式Column {
- get {
- return this.column结算方式;
- }
- }
- internal DataColumn 结算号Column {
- get {
- return this.column结算号;
- }
- }
- internal DataColumn 结算日期Column {
- get {
- return this.column结算日期;
- }
- }
- public 分录表Row this[int index] {
- get {
- return ((分录表Row)(this.Rows[index]));
- }
- }
- public event 分录表RowChangeEventHandler 分录表RowChanged;
- public event 分录表RowChangeEventHandler 分录表RowChanging;
- public event 分录表RowChangeEventHandler 分录表RowDeleted;
- public event 分录表RowChangeEventHandler 分录表RowDeleting;
- public void Add分录表Row(分录表Row row) {
- this.Rows.Add(row);
- }
- public 分录表Row Add分录表Row(string 科目名称, string 凭证编号, string 摘要, string 科目代码, System.Decimal 借方, System.Decimal 贷方, int 数量, System.Decimal 单价, string 结算方式, int 结算号, System.DateTime 结算日期) {
- 分录表Row row分录表Row = ((分录表Row)(this.NewRow()));
- row分录表Row.ItemArray = new object[] {
- 科目名称,
- null,
- 凭证编号,
- 摘要,
- 科目代码,
- 借方,
- 贷方,
- 数量,
- 单价,
- 结算方式,
- 结算号,
- 结算日期};
- this.Rows.Add(row分录表Row);
- return row分录表Row;
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 分录表DataTable cln = ((分录表DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 分录表DataTable();
- }
- internal void InitVars() {
- this.column科目名称 = this.Columns["科目名称"];
- this.column编号 = this.Columns["编号"];
- this.column凭证编号 = this.Columns["凭证编号"];
- this.column摘要 = this.Columns["摘要"];
- this.column科目代码 = this.Columns["科目代码"];
- this.column借方 = this.Columns["借方"];
- this.column贷方 = this.Columns["贷方"];
- this.column数量 = this.Columns["数量"];
- this.column单价 = this.Columns["单价"];
- this.column结算方式 = this.Columns["结算方式"];
- this.column结算号 = this.Columns["结算号"];
- this.column结算日期 = this.Columns["结算日期"];
- }
- private void InitClass() {
- this.column科目名称 = new DataColumn("科目名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column科目名称);
- this.column编号 = new DataColumn("编号", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column编号);
- this.column凭证编号 = new DataColumn("凭证编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column凭证编号);
- this.column摘要 = new DataColumn("摘要", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column摘要);
- this.column科目代码 = new DataColumn("科目代码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column科目代码);
- this.column借方 = new DataColumn("借方", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column借方);
- this.column贷方 = new DataColumn("贷方", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column贷方);
- this.column数量 = new DataColumn("数量", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column数量);
- this.column单价 = new DataColumn("单价", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column单价);
- this.column结算方式 = new DataColumn("结算方式", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column结算方式);
- this.column结算号 = new DataColumn("结算号", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column结算号);
- this.column结算日期 = new DataColumn("结算日期", typeof(System.DateTime), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column结算日期);
- this.column编号.AutoIncrement = true;
- this.column编号.AllowDBNull = false;
- this.column编号.ReadOnly = true;
- this.column凭证编号.AllowDBNull = false;
- }
- public 分录表Row New分录表Row() {
- return ((分录表Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 分录表Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(分录表Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.分录表RowChanged != null)) {
- this.分录表RowChanged(this, new 分录表RowChangeEvent(((分录表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.分录表RowChanging != null)) {
- this.分录表RowChanging(this, new 分录表RowChangeEvent(((分录表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.分录表RowDeleted != null)) {
- this.分录表RowDeleted(this, new 分录表RowChangeEvent(((分录表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.分录表RowDeleting != null)) {
- this.分录表RowDeleting(this, new 分录表RowChangeEvent(((分录表Row)(e.Row)), e.Action));
- }
- }
- public void Remove分录表Row(分录表Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 分录表Row : DataRow {
- private 分录表DataTable table分录表;
- internal 分录表Row(DataRowBuilder rb) :
- base(rb) {
- this.table分录表 = ((分录表DataTable)(this.Table));
- }
- public string 科目名称 {
- get {
- try {
- return ((string)(this[this.table分录表.科目名称Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.科目名称Column] = value;
- }
- }
- public int 编号 {
- get {
- return ((int)(this[this.table分录表.编号Column]));
- }
- set {
- this[this.table分录表.编号Column] = value;
- }
- }
- public string 凭证编号 {
- get {
- return ((string)(this[this.table分录表.凭证编号Column]));
- }
- set {
- this[this.table分录表.凭证编号Column] = value;
- }
- }
- public string 摘要 {
- get {
- try {
- return ((string)(this[this.table分录表.摘要Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.摘要Column] = value;
- }
- }
- public string 科目代码 {
- get {
- try {
- return ((string)(this[this.table分录表.科目代码Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.科目代码Column] = value;
- }
- }
- public System.Decimal 借方 {
- get {
- try {
- return ((System.Decimal)(this[this.table分录表.借方Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.借方Column] = value;
- }
- }
- public System.Decimal 贷方 {
- get {
- try {
- return ((System.Decimal)(this[this.table分录表.贷方Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.贷方Column] = value;
- }
- }
- public int 数量 {
- get {
- try {
- return ((int)(this[this.table分录表.数量Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.数量Column] = value;
- }
- }
- public System.Decimal 单价 {
- get {
- try {
- return ((System.Decimal)(this[this.table分录表.单价Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.单价Column] = value;
- }
- }
- public string 结算方式 {
- get {
- try {
- return ((string)(this[this.table分录表.结算方式Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.结算方式Column] = value;
- }
- }
- public int 结算号 {
- get {
- try {
- return ((int)(this[this.table分录表.结算号Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.结算号Column] = value;
- }
- }
- public System.DateTime 结算日期 {
- get {
- try {
- return ((System.DateTime)(this[this.table分录表.结算日期Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table分录表.结算日期Column] = value;
- }
- }
- public bool Is科目名称Null() {
- return this.IsNull(this.table分录表.科目名称Column);
- }
- public void Set科目名称Null() {
- this[this.table分录表.科目名称Column] = System.Convert.DBNull;
- }
- public bool Is摘要Null() {
- return this.IsNull(this.table分录表.摘要Column);
- }
- public void Set摘要Null() {
- this[this.table分录表.摘要Column] = System.Convert.DBNull;
- }
- public bool Is科目代码Null() {
- return this.IsNull(this.table分录表.科目代码Column);
- }
- public void Set科目代码Null() {
- this[this.table分录表.科目代码Column] = System.Convert.DBNull;
- }
- public bool Is借方Null() {
- return this.IsNull(this.table分录表.借方Column);
- }
- public void Set借方Null() {
- this[this.table分录表.借方Column] = System.Convert.DBNull;
- }
- public bool Is贷方Null() {
- return this.IsNull(this.table分录表.贷方Column);
- }
- public void Set贷方Null() {
- this[this.table分录表.贷方Column] = System.Convert.DBNull;
- }
- public bool Is数量Null() {
- return this.IsNull(this.table分录表.数量Column);
- }
- public void Set数量Null() {
- this[this.table分录表.数量Column] = System.Convert.DBNull;
- }
- public bool Is单价Null() {
- return this.IsNull(this.table分录表.单价Column);
- }
- public void Set单价Null() {
- this[this.table分录表.单价Column] = System.Convert.DBNull;
- }
- public bool Is结算方式Null() {
- return this.IsNull(this.table分录表.结算方式Column);
- }
- public void Set结算方式Null() {
- this[this.table分录表.结算方式Column] = System.Convert.DBNull;
- }
- public bool Is结算号Null() {
- return this.IsNull(this.table分录表.结算号Column);
- }
- public void Set结算号Null() {
- this[this.table分录表.结算号Column] = System.Convert.DBNull;
- }
- public bool Is结算日期Null() {
- return this.IsNull(this.table分录表.结算日期Column);
- }
- public void Set结算日期Null() {
- this[this.table分录表.结算日期Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 分录表RowChangeEvent : EventArgs {
- private 分录表Row eventRow;
- private DataRowAction eventAction;
- public 分录表RowChangeEvent(分录表Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 分录表Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- }
- }