34 lines
920 B
C#
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; }
|
|||
|
}
|
|||
|
}
|