⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataset1.cs

📁 制造业ERP系统搜集
💻 CS
📖 第 1 页 / 共 5 页
字号:
            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]));
   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -