/**
|
* Pay_TradingSingleExtend.cs
|
*
|
* 功 能: 支付平台交易单实体扩展类
|
* 类 名: Pay_TradingSingle
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-2 14:28:20 N/A 初版
|
* V0.02 2013-4-23 14:02:20 吴崎均 增加扩展属性并修改Visiter迁移到扩展此类,删除Visiter中交易类型编号对应部分
|
*
|
*
|
*
|
*
|
*
|
*/
|
using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
/// 支付平台交易单扩展类
|
/// </summary>
|
public partial class Pay_TradingSingle
|
{
|
#region ExtendProperties
|
|
private Sys_Dictionary _tradingstate;
|
|
/// <summary>
|
/// 交易状态
|
/// </summary>
|
public Sys_Dictionary TradingState
|
{
|
set { _tradingstate = null == _tradingstate ? new Sys_Dictionary() : _tradingstate; }
|
get { return _tradingstate; }
|
}
|
|
#endregion
|
|
#region Visiter
|
|
/// <summary>
|
/// 属性访问器
|
/// </summary>
|
/// <param name="name">属性名</param>
|
/// <param name="index">索引</param>
|
/// <param name="isChange">是否将指定属性设置为传入值</param>
|
/// <param name="value">需要赋予的值</param>
|
/// <returns>与名称对应的属性值</returns>
|
public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
|
{
|
object theValue = null;
|
|
if ("Keyid".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 1)
|
{
|
this.Keyid = isChange ? MyConvert.ConvertToInt32(value) : Keyid;
|
theValue = this.Keyid;
|
}
|
else if ("OrderId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.OrderId = isChange ? MyConvert.ConvertToInt32(value) : OrderId;
|
theValue = this.OrderId;
|
}
|
else if ("PayeeId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.PayeeId = isChange ? MyConvert.ConvertToGuid(value) : PayeeId;
|
theValue = this.PayeeId;
|
}
|
else if ("PayerId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.PayerId = isChange ? MyConvert.ConvertToGuid(value) : PayerId;
|
theValue = this.PayerId;
|
}
|
else if ("TradingTypeId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
//this.TradingTypeId = isChange ? MyConvert.ConvertToInt32(value) : TradingTypeId;
|
//theValue = this.TradingTypeId;
|
}
|
else if ("TradingStateId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.TradingStateId = isChange ? MyConvert.ConvertToInt32(value) : TradingStateId;
|
theValue = this.TradingStateId;
|
}
|
else if ("TradingMoney".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.TradingMoney = isChange ? MyConvert.ConvertToDecimal(value) : TradingMoney;
|
theValue = this.TradingMoney;
|
}
|
else if ("PayableMoney".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.PayableMoney = isChange ? MyConvert.ConvertToDecimal(value) : PayableMoney;
|
theValue = this.PayableMoney;
|
}
|
else if ("PaterName".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.PayerName = isChange ? MyConvert.ConvertToString(value) : PayerName;
|
theValue = this.PayerName;
|
}
|
else if ("PayeeName".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.PayeeName = isChange ? MyConvert.ConvertToString(value) : PayeeName;
|
theValue = this.PayeeName;
|
}
|
else if ("Remark".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
|
theValue = this.Remark;
|
}
|
else if ("CreateOn".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.CreateOn = isChange ? MyConvert.ConvertToDateTime(value) : CreateOn;
|
theValue = this.CreateOn;
|
}
|
else if ("LastUpdateOn".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.LastUpdateOn = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateOn;
|
theValue = this.LastUpdateOn;
|
}
|
else if ("PayedMoney".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.PayedMoney = isChange ? MyConvert.ConvertToDecimal(value) : PayedMoney;
|
theValue = this.PayedMoney;
|
}
|
else if ("OnlineMoney".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.OnlineMoney = isChange ? MyConvert.ConvertToDecimal(value) : OnlineMoney;
|
theValue = this.OnlineMoney;
|
}
|
else if ("UsedCredit".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.UsedCredit = isChange ? MyConvert.ConvertToDecimal(value) : UsedCredit;
|
theValue = this.UsedCredit;
|
}
|
else if ("LineMoney".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.LineMoney = isChange ? MyConvert.ConvertToDecimal(value) : LineMoney;
|
theValue = this.LineMoney;
|
}
|
|
return theValue;
|
}
|
#endregion
|
}
|
}
|