📄 order_data.cs
字号:
}
internal DataColumn QuantityColumn {
get {
return this.columnQuantity;
}
}
public T_ORDER_DETAILRow this[int index] {
get {
return ((T_ORDER_DETAILRow)(this.Rows[index]));
}
}
public event T_ORDER_DETAILRowChangeEventHandler T_ORDER_DETAILRowChanged;
public event T_ORDER_DETAILRowChangeEventHandler T_ORDER_DETAILRowChanging;
public event T_ORDER_DETAILRowChangeEventHandler T_ORDER_DETAILRowDeleted;
public event T_ORDER_DETAILRowChangeEventHandler T_ORDER_DETAILRowDeleting;
public void AddT_ORDER_DETAILRow(T_ORDER_DETAILRow row) {
this.Rows.Add(row);
}
public T_ORDER_DETAILRow AddT_ORDER_DETAILRow(System.UInt32 Order_id, string name, System.UInt32 Quantity) {
T_ORDER_DETAILRow rowT_ORDER_DETAILRow = ((T_ORDER_DETAILRow)(this.NewRow()));
rowT_ORDER_DETAILRow.ItemArray = new object[] {
Order_id,
name,
Quantity};
this.Rows.Add(rowT_ORDER_DETAILRow);
return rowT_ORDER_DETAILRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
T_ORDER_DETAILDataTable cln = ((T_ORDER_DETAILDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new T_ORDER_DETAILDataTable();
}
internal void InitVars() {
this.columnOrder_id = this.Columns["Order_id"];
this.columnname = this.Columns["name"];
this.columnQuantity = this.Columns["Quantity"];
}
private void InitClass() {
this.columnOrder_id = new DataColumn("Order_id", typeof(System.UInt32), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnOrder_id);
this.columnname = new DataColumn("name", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnname);
this.columnQuantity = new DataColumn("Quantity", typeof(System.UInt32), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnQuantity);
}
public T_ORDER_DETAILRow NewT_ORDER_DETAILRow() {
return ((T_ORDER_DETAILRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new T_ORDER_DETAILRow(builder);
}
protected override System.Type GetRowType() {
return typeof(T_ORDER_DETAILRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.T_ORDER_DETAILRowChanged != null)) {
this.T_ORDER_DETAILRowChanged(this, new T_ORDER_DETAILRowChangeEvent(((T_ORDER_DETAILRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.T_ORDER_DETAILRowChanging != null)) {
this.T_ORDER_DETAILRowChanging(this, new T_ORDER_DETAILRowChangeEvent(((T_ORDER_DETAILRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.T_ORDER_DETAILRowDeleted != null)) {
this.T_ORDER_DETAILRowDeleted(this, new T_ORDER_DETAILRowChangeEvent(((T_ORDER_DETAILRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.T_ORDER_DETAILRowDeleting != null)) {
this.T_ORDER_DETAILRowDeleting(this, new T_ORDER_DETAILRowChangeEvent(((T_ORDER_DETAILRow)(e.Row)), e.Action));
}
}
public void RemoveT_ORDER_DETAILRow(T_ORDER_DETAILRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class T_ORDER_DETAILRow : DataRow {
private T_ORDER_DETAILDataTable tableT_ORDER_DETAIL;
internal T_ORDER_DETAILRow(DataRowBuilder rb) :
base(rb) {
this.tableT_ORDER_DETAIL = ((T_ORDER_DETAILDataTable)(this.Table));
}
public System.UInt32 Order_id {
get {
try {
return ((System.UInt32)(this[this.tableT_ORDER_DETAIL.Order_idColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableT_ORDER_DETAIL.Order_idColumn] = value;
}
}
public string name {
get {
try {
return ((string)(this[this.tableT_ORDER_DETAIL.nameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableT_ORDER_DETAIL.nameColumn] = value;
}
}
public System.UInt32 Quantity {
get {
try {
return ((System.UInt32)(this[this.tableT_ORDER_DETAIL.QuantityColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableT_ORDER_DETAIL.QuantityColumn] = value;
}
}
public bool IsOrder_idNull() {
return this.IsNull(this.tableT_ORDER_DETAIL.Order_idColumn);
}
public void SetOrder_idNull() {
this[this.tableT_ORDER_DETAIL.Order_idColumn] = System.Convert.DBNull;
}
public bool IsnameNull() {
return this.IsNull(this.tableT_ORDER_DETAIL.nameColumn);
}
public void SetnameNull() {
this[this.tableT_ORDER_DETAIL.nameColumn] = System.Convert.DBNull;
}
public bool IsQuantityNull() {
return this.IsNull(this.tableT_ORDER_DETAIL.QuantityColumn);
}
public void SetQuantityNull() {
this[this.tableT_ORDER_DETAIL.QuantityColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class T_ORDER_DETAILRowChangeEvent : EventArgs {
private T_ORDER_DETAILRow eventRow;
private DataRowAction eventAction;
public T_ORDER_DETAILRowChangeEvent(T_ORDER_DETAILRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public T_ORDER_DETAILRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class T_BATCH_ORDERDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnBATCH_ORDER_id;
private DataColumn columnDate;
private DataColumn columnKind;
private DataColumn columnDepartment_id;
private DataColumn columnDepartment;
private DataColumn columnNum;
private DataColumn columnsend_dest;
private DataColumn columnReason;
private DataColumn columnManager_id;
private DataColumn columnManager_name;
private DataColumn columnEffect;
private DataColumn columnChecker_id;
private DataColumn columnChecker_name;
internal T_BATCH_ORDERDataTable() :
base("T_BATCH_ORDER") {
this.InitClass();
}
internal T_BATCH_ORDERDataTable(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 BATCH_ORDER_idColumn {
get {
return this.columnBATCH_ORDER_id;
}
}
internal DataColumn DateColumn {
get {
return this.columnDate;
}
}
internal DataColumn KindColumn {
get {
return this.columnKind;
}
}
internal DataColumn Department_idColumn {
get {
return this.columnDepartment_id;
}
}
internal DataColumn DepartmentColumn {
get {
return this.columnDepartment;
}
}
internal DataColumn NumColumn {
get {
return this.columnNum;
}
}
internal DataColumn send_destColumn {
get {
return this.columnsend_dest;
}
}
internal DataColumn ReasonColumn {
get {
return this.columnReason;
}
}
internal DataColumn Manager_idColumn {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -