📄 dataset1.cs
字号:
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 数量 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -