narsil/Tanshu.Accounts.Contracts/Data Contracts/RequirementDisplayBO.cs
2010-03-02 23:26:21 +05:30

34 lines
920 B
C#

using System;
using System.Runtime.Serialization;
namespace Tanshu.Accounts.Contracts
{
[DataContract]
public class RequirementDisplayBO : RequirementBO
{
[DataMember]
public string Product { get; set; }
[DataMember]
public string Ledger { get; set; }
[DataMember]
public string StatusDisplay
{
get
{
if (base.Status == 0)
return "Pending";
else if (base.Status == 1)
return "Ordered";
else if (base.Status == 2)
return "Cancelled";
else if (base.Status == 3)
return "Fulfilled";
else
throw new ArgumentException("Status message is invalid");
}
}
[DataMember]
public decimal OrderTotal { get; set; }
}
}