|
using System;
namespace TargetProcess.DaoTraining.TransferObjects
{
public class Order
{
private int _orderID;
private Decimal _freight;
private string _shipName;
private string _shipAddress;
private string _shipCountry;
private Priority _priority;
private bool _isRushOrder;
private DateTime? _supplyDate;
public Order()
{
}
public Order(Decimal freight,
string shipName, string shipAddress, string shipCountry, Priority priority, bool isRushOrder, DateTime? supplyDate)
{
_freight = freight;
_shipName = shipName;
_shipAddress = shipAddress;
_shipCountry = shipCountry;
_priority = priority;
_isRushOrder = isRushOrder;
_supplyDate = supplyDate;
}
public Order(int orderID, Decimal freight,
string shipName, string shipAddress,
string shipCountry, Priority priority, bool isRushOrder,DateTime? supplyDate)
:
this(freight, shipName, shipAddress, shipCountry, priority, isRushOrder, supplyDate)
{
_orderID = orderID;
}
public Priority Priority
{
get { return _priority; }
set { _priority = value; }
}
public int OrderID
{
set { _orderID = value; }
get { return _orderID; }
}
public Decimal Freight
{
set { _freight = value; }
get { return _freight; }
}
public string ShipName
{
set { _shipName = value; }
get { return _shipName; }
}
public string ShipAddress
{
set { _shipAddress = value; }
get { return _shipAddress; }
}
public string ShipCountry
{
set { _shipCountry = value; }
get { return _shipCountry; }
}
public bool IsRushOrder
{
get { return _isRushOrder; }
set { _isRushOrder = value; }
}
public DateTime? SupplyDate
{
get { return _supplyDate; }
set { _supplyDate = value; }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Andrew Golik is a software professional working in Minsk, Belarus.
He enjoys design infrastructures based on object oriented paradigm. His programming experience includes ASP, ASP.NET, .NET, COM, JAVA, PHP, DHTML, AJAX, blah blah blah....
Andrew Golik's Blog