?? dataset1.cs
字號:
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(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(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.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column編號}, true));
this.column編號.AllowDBNull = false;
this.column編號.Unique = 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 {
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.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 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 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;
}
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -