📄 order.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
namespace HardwareDistributor.Business
{
public class Order
{
private int _orderId;
private int _customerId;
private string _customerName;
private DateTime _deliveryDate;
private string _orderState;
public Order() { }
public Order(int orderId, int customerId, string customerName,
DateTime deliveryDate, string orderState)
{
this._orderId = orderId;
this._customerId = customerId;
this._customerName = customerName;
this._deliveryDate = deliveryDate;
this._orderState = orderState;
}
/// <summary>
/// Unique Order Id
/// </summary>
public int OrderId
{
get
{
return _orderId;
}
set
{
_orderId = value;
}
}
/// <summary>
/// Unique Customer Id
/// </summary>
public int CustomerId
{
get
{
return _customerId;
}
set
{
_customerId = value;
}
}
/// <summary>
/// Customer's company name
/// </summary>
public string CustomerName
{
get
{
return _customerName;
}
set
{
_customerName = value;
}
}
/// <summary>
/// Date the order will be delivered
/// </summary>
public DateTime DeliveryDate
{
get
{
return _deliveryDate;
}
set
{
_deliveryDate = value;
}
}
/// <summary>
/// Current state of the order as it
/// moves through the production process
/// </summary>
public string OrderState
{
get
{
return _orderState;
}
set
{
_orderState = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -