/**
|
* 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_CorporateClientsPrint : IAggregateRoot
|
{
|
|
public OA_CorporateClientsPrint()
|
{
|
}
|
#region Model
|
/// <summary>
|
/// id
|
/// </summary>
|
public int Keyid { get; set; }
|
/// <summary>
|
/// 客户id
|
/// </summary>
|
public Guid CorporateClientsid { get; set; }
|
|
|
/// <summary>
|
/// 业务经办人
|
/// </summary>
|
public string BusinessManagers { get; set; }
|
|
/// <summary>
|
/// 手机
|
/// </summary>
|
public string ManagersMobile
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
/// 微信
|
/// </summary>
|
public string ManagersQQ
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
/// 人物性格
|
/// </summary>
|
public string Xinge
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 印件名称
|
/// </summary>
|
public string DocumentName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 单价
|
/// </summary>
|
public decimal? UnitPrice
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 总价
|
/// </summary>
|
public decimal SumPrice
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 送货要求
|
/// </summary>
|
public string Deliveryrequirements
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
/// 创建人
|
/// </summary>
|
public Guid? Creater
|
{
|
get;
|
set;
|
}
|
public string CreaterName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
public DateTime? CreateTime
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 修改人
|
/// </summary>
|
public Guid? Updater
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
///打印参数
|
/// </summary>
|
public string PrintParameter
|
{
|
get;
|
set;
|
}
|
public string PrintDemand
|
{
|
get;
|
set;
|
}
|
public int Printshuliang
|
{
|
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 ("BusinessManagers".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.BusinessManagers = isChange ? MyConvert.ConvertToString(value) : BusinessManagers;
|
theValue = this.BusinessManagers;
|
}
|
else if ("ManagersMobile".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.ManagersMobile = isChange ? MyConvert.ConvertToString(value) : ManagersMobile;
|
theValue = this.ManagersMobile;
|
}
|
else if ("ManagersQQ".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.ManagersQQ = isChange ? MyConvert.ConvertToString(value) : ManagersQQ;
|
theValue = this.ManagersQQ;
|
}
|
|
else if ("Xinge".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.Xinge = isChange ? MyConvert.ConvertToString(value) : Xinge;
|
theValue = this.Xinge;
|
}
|
else if ("DocumentName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.DocumentName = isChange ? MyConvert.ConvertToString(value) : DocumentName;
|
theValue = this.DocumentName;
|
}
|
else if ("UnitPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.UnitPrice = isChange ? MyConvert.ConvertToDecimal(value) : UnitPrice;
|
theValue = this.UnitPrice;
|
}
|
else if ("SumPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.SumPrice = isChange ? MyConvert.ConvertToDecimal(value).Value : SumPrice;
|
theValue = this.SumPrice;
|
}
|
else if ("Deliveryrequirements".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.Deliveryrequirements = isChange ? MyConvert.ConvertToString(value) : Deliveryrequirements;
|
theValue = this.Deliveryrequirements;
|
}
|
|
|
else if ("Creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.Creater = isChange ? MyConvert.ConvertToGuid(value) : Creater;
|
theValue = this.Creater;
|
}
|
else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime;
|
theValue = this.CreateTime;
|
}
|
else if ("Updater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.Updater = isChange ? MyConvert.ConvertToGuid(value) : Updater;
|
theValue = this.Updater;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("CorporateClientsid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.CorporateClientsid = isChange ? MyConvert.ConvertToGuid(value) : CorporateClientsid;
|
theValue = this.CorporateClientsid;
|
}
|
else if ("PrintParameter".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.PrintParameter = isChange ? MyConvert.ConvertToString(value) : PrintParameter;
|
theValue = this.PrintParameter;
|
}
|
|
|
|
return theValue;
|
}
|
|
#endregion
|
}
|
}
|