/**
|
* OA_CorporateClients.cs
|
*
|
* 功 能: N/A
|
* 类 名: OA_CorporateClients
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-2 14:27:43 N/A 初版
|
*
|
*
|
*
|
*
|
*
|
*
|
*/
|
|
using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
|
namespace CY.Model
|
{
|
/// <summary>
|
/// 印刷参数
|
/// </summary>
|
[Serializable]
|
public partial class OA_Fukuanshenqing : IAggregateRoot
|
{
|
|
public OA_Fukuanshenqing()
|
{
|
}
|
#region Model
|
/// <summary>
|
/// id
|
/// </summary>
|
public int Keyid { get; set; }
|
/// <summary>
|
/// FirmId
|
/// </summary>
|
public Guid FirmId { get; set; }
|
/// <summary>
|
/// 客户id
|
/// </summary>
|
public string SupplierId { get; set; }
|
|
/// <summary>
|
/// 客户id
|
/// </summary>
|
public string SupplierName { get; set; }
|
|
|
/// <summary>
|
/// 审核状态/未审核0,批准1,不批准2,已结束3
|
/// </summary>
|
public int? Fukuanshenqingstatus { get; set; }
|
/// <summary>
|
/// 审核状态/未审核0,批准1,不批准2,已结束3
|
/// </summary>
|
public int? ApprovalStatus { get; set; }
|
|
public decimal? Fukuanmoney { get; set; }
|
|
public decimal? Yishoumoney { get; set; }
|
|
|
public string Bank { get; set; }
|
|
public string Huming { get; set; }
|
|
public string AccountID { get; set; }
|
|
|
public int? Youwufapiao
|
{
|
get;
|
set;
|
}
|
|
|
public string YouwufapiaoName
|
{
|
get
|
{
|
if (Youwufapiao.HasValue && Youwufapiao.Value == 2)
|
{
|
return "已开票";
|
}
|
else
|
{
|
return "未开票";
|
}
|
}
|
}
|
|
public string Fukuanyongtu { get; set; }
|
|
public int? FukuanStatus { get; set; }
|
|
|
public string FukuanStatusName { get
|
{
|
if(FukuanStatus.HasValue && FukuanStatus.Value == 2)
|
{
|
return "已付款";
|
}
|
else
|
{
|
return "未付款";
|
}
|
}
|
}
|
/// <summary>
|
/// 说明
|
/// </summary>
|
public string remark { get; set; }
|
|
|
public string DindanId { get; set; }
|
|
|
|
/// <summary>
|
/// 创建人
|
/// </summary>
|
public string Creater
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
public DateTime? CreateTime
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 修改人
|
/// </summary>
|
public string Updater
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
get;
|
set;
|
}
|
|
|
|
#endregion Model
|
|
#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).Value : Keyid;
|
theValue = this.Keyid;
|
}
|
else if ("FirmId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId;
|
theValue = this.FirmId;
|
}
|
else if ("SupplierId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.SupplierId = isChange ? MyConvert.ConvertToString(value) : SupplierId;
|
theValue = this.SupplierId;
|
}
|
else if ("SupplierName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.SupplierName = isChange ? MyConvert.ConvertToString(value) : SupplierName;
|
theValue = this.SupplierName;
|
}
|
|
else if ("Fukuanshenqingstatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.Fukuanshenqingstatus = isChange ? MyConvert.ConvertToInt32(value) : Fukuanshenqingstatus;
|
theValue = this.Fukuanshenqingstatus;
|
}
|
|
|
|
|
|
|
|
else if ("Creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.Creater = isChange ? MyConvert.ConvertToString(value) : Creater;
|
theValue = this.Creater;
|
}
|
else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime;
|
theValue = this.CreateTime;
|
}
|
else if ("Updater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.Updater = isChange ? MyConvert.ConvertToString(value) : Updater;
|
theValue = this.Updater;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
|
else if ("ApprovalStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.ApprovalStatus = isChange ? MyConvert.ConvertToInt32(value) : ApprovalStatus;
|
theValue = this.ApprovalStatus;
|
}
|
else if ("Fukuanmoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.Fukuanmoney = isChange ? MyConvert.ConvertToDecimal(value) : Fukuanmoney;
|
theValue = this.Fukuanmoney;
|
}
|
else if ("Yishoumoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.Yishoumoney = isChange ? MyConvert.ConvertToDecimal(value) : Yishoumoney;
|
theValue = this.Yishoumoney;
|
}
|
else if ("Bank".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.Bank = isChange ? MyConvert.ConvertToString(value) : Bank;
|
theValue = this.Bank;
|
}
|
else if ("Huming".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28)
|
{
|
this.Huming = isChange ? MyConvert.ConvertToString(value) : Huming;
|
theValue = this.Huming;
|
}
|
|
else if ("AccountID".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
|
{
|
this.AccountID = isChange ? MyConvert.ConvertToString(value) : AccountID;
|
theValue = this.AccountID;
|
}
|
else if ("Youwufapiao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
|
{
|
this.Youwufapiao = isChange ? MyConvert.ConvertToInt32(value) : Youwufapiao;
|
theValue = this.Youwufapiao;
|
}
|
else if ("Fukuanyongtu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24)
|
{
|
this.Fukuanyongtu = isChange ? MyConvert.ConvertToString(value) : Fukuanyongtu;
|
theValue = this.Fukuanyongtu;
|
}
|
|
else if ("FukuanStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25)
|
{
|
this.FukuanStatus = isChange ? MyConvert.ConvertToInt32(value) : FukuanStatus;
|
theValue = this.FukuanStatus;
|
}
|
else if ("remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
|
{
|
this.remark = isChange ? MyConvert.ConvertToString(value) : remark;
|
theValue = this.remark;
|
}
|
else if ("DindanId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27)
|
{
|
this.DindanId = isChange ? MyConvert.ConvertToString(value) : DindanId;
|
theValue = this.DindanId;
|
}
|
|
|
return theValue;
|
}
|
|
#endregion
|
}
|
}
|