📄 dataset1.cs
字号:
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["订单编号"];
}
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(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(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;
this.column物料编号.AllowDBNull = false;
this.column订货数量.AllowDBNull = false;
this.column订单号.AllowDBNull = false;
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 {
return ((string)(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 System.Decimal 订货数量 {
get {
return ((System.Decimal)(this[this.table采购订单明细历史.订货数量Column]));
}
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 {
return ((string)(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 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;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -