/**
* Pay_CashApplyRecord.cs
*
* 功 能: N/A
* 类 名: Pay_CashApplyRecord
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-4-2 14:28:13 N/A 初版
*
*
*
*
*
*
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 提现记录
///
[Serializable]
public partial class Pay_CashApplyRecord : IAggregateRoot
{
public Pay_CashApplyRecord()
{ }
#region Model
private int? _keyid;
private decimal? _money;
private DateTime? _createtime;
private int? _payid;
private string _targetbankname;
private string _cashtype;
private string _targetbanknum;
private string _cardholder;
private string _operator;
private string _remark;
///
/// 数据编号
///
public int? Keyid
{
set { _keyid = value; }
get { return _keyid; }
}
///
/// 操作金额
///
public decimal? Money
{
set { _money = value; }
get { return _money; }
}
///
/// 记录日期
///
public DateTime? CreateTime
{
set { _createtime = value; }
get { return _createtime; }
}
///
/// 提现账户
///
public int? Payid
{
set { _payid = value; }
get { return _payid; }
}
///
/// 提现银行
///
public string TargetBankName
{
set { _targetbankname = value; }
get { return _targetbankname; }
}
///
/// 提现类型
///
public string CashType
{
set
{
_cashtype = value;
}
get
{
return _cashtype;
}
}
///
/// 目标银行卡号
///
public string TargetBankNum
{
set { _targetbanknum = value; }
get { return _targetbanknum; }
}
///
/// 开户人
///
public string Cardholder
{
set { _cardholder = value; }
get { return _cardholder; }
}
///
/// 操作人
///
public string Operator
{
set { _operator = value; }
get { return _operator; }
}
///
/// 备注
///
public string Remark
{
set { _remark = value; }
get { return _remark; }
}
#endregion Model
#region Visiter
///
/// 属性访问器
///
/// 属性名
/// 索引
/// 是否将指定属性设置为传入值
/// 需要赋予的值
/// 与名称对应的属性值
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 ("Money".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.Money = isChange ? MyConvert.ConvertToDecimal(value) : Money;
theValue = this.Money;
}
else if ("CreateTime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime;
theValue = this.CreateTime;
}
else if ("Payid".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.Payid = isChange ? MyConvert.ConvertToInt32(value) : Payid;
theValue = this.Payid;
}
else if ("TargetBankName".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.TargetBankName = isChange ? MyConvert.ConvertToString(value) : TargetBankName;
theValue = this.TargetBankName;
}
else if ("CashType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.CashType = isChange ? MyConvert.ConvertToString(value) : CashType;
theValue = this.CashType;
}
else if ("TargetBankNum".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.TargetBankNum = isChange ? MyConvert.ConvertToString(value) : TargetBankNum;
theValue = this.TargetBankNum;
}
else if ("Cardholder".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.Cardholder = isChange ? MyConvert.ConvertToString(value) : Cardholder;
theValue = this.Cardholder;
}
else if ("Operator".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
theValue = this.Operator;
}
else if ("Remark".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
theValue = this.Remark;
}
return theValue;
}
#endregion
}
}