/**
|
*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_Kaipiaonew : IAggregateRoot
|
{
|
#region Model
|
/// <summary>
|
/// Keyid
|
/// </summary>
|
public int Keyid { get; set; }
|
/// <summary>
|
/// FirmId
|
/// </summary>
|
public Guid FirmId { get; set; }
|
/// <summary>
|
/// 客户id
|
/// </summary>
|
public Guid BuyerId { get; set; }
|
/// <summary>
|
/// 客户id
|
/// </summary>
|
public string BuyerName { get; set; }
|
|
public int? BusinessManagerId { get; set; }
|
|
public string BusinessManager { get; set; }
|
|
/// <summary>
|
/// 说明
|
/// </summary>
|
public string remark { get; set; }
|
/// <summary>
|
/// 创建人
|
/// </summary>
|
public string Creater
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
public DateTime? CreateTime
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
public string CreateTimeName
|
{
|
get {
|
if (CreateTime.HasValue)
|
{
|
return CreateTime.Value.ToString("yyyy-MM-dd");
|
}
|
else
|
{
|
return "";
|
}
|
|
}
|
|
}
|
/// <summary>
|
/// 修改人
|
/// </summary>
|
public string Updater
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
get;
|
set;
|
}
|
|
public string SellerOrderId
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
/// 数量
|
/// </summary>
|
public int shuliang
|
{
|
get
|
{
|
if (!string.IsNullOrEmpty(SellerOrderId))
|
{
|
return SellerOrderId.Trim(',').Split(',').Length;
|
}
|
else
|
{
|
return 0;
|
}
|
|
}
|
|
}
|
|
|
/// <summary>
|
/// 逾期天数
|
/// </summary>
|
public int yuqi
|
{
|
get
|
{
|
if (CreateTime.HasValue)
|
{
|
var sss = DateTime.Now;
|
if (sss.Year == CreateTime.Value.Year && sss.Month == CreateTime.Value.Month)
|
{
|
return 0;
|
}
|
else
|
{
|
var dateTime = CreateTime.Value.AddMonths(1);
|
DateTime date1 = new DateTime(dateTime.Year, dateTime.Month, 1);
|
|
TimeSpan diff = sss.Subtract(date1);
|
return diff.Days;
|
}
|
|
}
|
else
|
{
|
return 0;
|
}
|
|
}
|
|
}
|
|
|
public string Fapiaohaoma { get; set; }
|
public string Kaipiaoshuoming { get; set; }
|
|
public decimal? Jine { get; set; }
|
|
|
public int? Kaipiaoshenqing
|
{
|
get;
|
set;
|
}
|
|
public string KaipiaoshenqingName { get; set; }
|
|
|
public string Nashuirenshibiehao { get; set; }
|
|
public string dizhidianhua { get; set; }
|
|
public string Kaihuhang { get; set; }
|
|
public decimal? Shoukuanjine { get; set; }
|
public DateTime? ShoukuanTime
|
{
|
get;
|
set;
|
}
|
|
public string ShoukuanCreater
|
{
|
get;
|
set;
|
}
|
|
|
|
public int? Chexiaozhuangtai { get; set; }
|
public DateTime? ChexiaoTime
|
{
|
get;
|
set;
|
}
|
|
public string ChexiaoCreater
|
{
|
get;
|
set;
|
}
|
|
|
|
|
public int? Kehuqianshou
|
{
|
get;
|
set;
|
}
|
public string KehuqianshouName { get; set; }
|
|
public string Qianshoutupian { get; set; }
|
public DateTime? KehuqianshouTime { get; set; }
|
|
public string KehuqianshouCreater
|
{
|
get;
|
set;
|
}
|
|
public DateTime? KaipiaoquerenTime { get; set; }
|
|
public string KaipiaoquerenCreater
|
{
|
get;
|
set;
|
}
|
|
|
|
public DateTime? CuishouTime { get; set; }
|
|
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
public string CuishouTimeName
|
{
|
get
|
{
|
if (CuishouTime.HasValue)
|
{
|
return CuishouTime.Value.ToString("MM-dd HH:mm");
|
}
|
else
|
{
|
return "";
|
}
|
|
}
|
|
}
|
|
public string CuishouCreater
|
{
|
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 ("BuyerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.BuyerId = isChange ? MyConvert.ConvertToGuid(value) : BuyerId;
|
theValue = this.BuyerId;
|
}
|
else if ("BuyerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.BuyerName = isChange ? MyConvert.ConvertToString(value) : BuyerName;
|
theValue = this.BuyerName;
|
}
|
|
else if ("BusinessManagerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.BusinessManagerId = isChange ? MyConvert.ConvertToInt32(value) : BusinessManagerId;
|
theValue = this.BusinessManagerId;
|
}
|
else if ("BusinessManager".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.BusinessManager = isChange ? MyConvert.ConvertToString(value) : BusinessManager;
|
theValue = this.BusinessManager;
|
}
|
else if ("Kaipiaoshenqing".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.Kaipiaoshenqing = isChange ? MyConvert.ConvertToInt32(value) : Kaipiaoshenqing;
|
theValue = this.Kaipiaoshenqing;
|
}
|
else if ("KaipiaoshenqingName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.KaipiaoshenqingName = isChange ? MyConvert.ConvertToString(value) : KaipiaoshenqingName;
|
theValue = this.KaipiaoshenqingName;
|
}
|
else if ("Kehuqianshou".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.Kehuqianshou = isChange ? MyConvert.ConvertToInt32(value) : Kehuqianshou;
|
theValue = this.Kehuqianshou;
|
}
|
else if ("KehuqianshouName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.KehuqianshouName = isChange ? MyConvert.ConvertToString(value) : KehuqianshouName;
|
theValue = this.KehuqianshouName;
|
}
|
else if ("KehuqianshouTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.KehuqianshouTime = isChange ? MyConvert.ConvertToDateTime(value) : KehuqianshouTime;
|
theValue = this.KehuqianshouTime;
|
}
|
else if ("KehuqianshouCreater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.KehuqianshouCreater = isChange ? MyConvert.ConvertToString(value) : KehuqianshouCreater;
|
theValue = this.KehuqianshouCreater;
|
}
|
else if ("KaipiaoquerenTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.KaipiaoquerenTime = isChange ? MyConvert.ConvertToDateTime(value) : KaipiaoquerenTime;
|
theValue = this.KaipiaoquerenTime;
|
}
|
else if ("KaipiaoquerenCreater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.KaipiaoquerenCreater = isChange ? MyConvert.ConvertToString(value) : KaipiaoquerenCreater;
|
theValue = this.KaipiaoquerenCreater;
|
}
|
|
|
|
|
|
|
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 ("SellerOrderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.SellerOrderId = isChange ? MyConvert.ConvertToString(value) : SellerOrderId;
|
theValue = this.SellerOrderId;
|
}
|
else if ("remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.remark = isChange ? MyConvert.ConvertToString(value) : remark;
|
theValue = this.remark;
|
}
|
else if ("Fapiaohaoma".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
|
{
|
this.Fapiaohaoma = isChange ? MyConvert.ConvertToString(value) : Fapiaohaoma;
|
theValue = this.Fapiaohaoma;
|
}
|
else if ("Jine".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
|
{
|
this.Jine = isChange ? MyConvert.ConvertToDecimal(value) : Jine;
|
theValue = this.Jine;
|
}
|
else if ("Nashuirenshibiehao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24)
|
{
|
this.Nashuirenshibiehao = isChange ? MyConvert.ConvertToString(value) : Nashuirenshibiehao;
|
theValue = this.Nashuirenshibiehao;
|
}
|
else if ("dizhidianhua".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25)
|
{
|
this.dizhidianhua = isChange ? MyConvert.ConvertToString(value) : dizhidianhua;
|
theValue = this.dizhidianhua;
|
}
|
else if ("Kaihuhang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
|
{
|
this.Kaihuhang = isChange ? MyConvert.ConvertToString(value) : Kaihuhang;
|
theValue = this.Kaihuhang;
|
}
|
else if ("Shoukuanjine".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27)
|
{
|
this.Shoukuanjine = isChange ? MyConvert.ConvertToDecimal(value) : Shoukuanjine;
|
theValue = this.Shoukuanjine;
|
}
|
else if ("ShoukuanTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28)
|
{
|
this.ShoukuanTime = isChange ? MyConvert.ConvertToDateTime(value) : ShoukuanTime;
|
theValue = this.ShoukuanTime;
|
}
|
else if ("ShoukuanCreater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 29)
|
{
|
this.ShoukuanCreater = isChange ? MyConvert.ConvertToString(value) : ShoukuanCreater;
|
theValue = this.ShoukuanCreater;
|
}
|
else if ("Chexiaozhuangtai".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30)
|
{
|
this.Chexiaozhuangtai = isChange ? MyConvert.ConvertToInt32(value) : Chexiaozhuangtai;
|
theValue = this.Chexiaozhuangtai;
|
}
|
else if ("ChexiaoTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31)
|
{
|
this.ChexiaoTime = isChange ? MyConvert.ConvertToDateTime(value) : ChexiaoTime;
|
theValue = this.ChexiaoTime;
|
}
|
else if ("ChexiaoCreater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 32)
|
{
|
this.ChexiaoCreater = isChange ? MyConvert.ConvertToString(value) : ChexiaoCreater;
|
theValue = this.ChexiaoCreater;
|
}
|
else if ("Qianshoutupian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 33)
|
{
|
this.Qianshoutupian = isChange ? MyConvert.ConvertToString(value) : Qianshoutupian;
|
theValue = this.Qianshoutupian;
|
}
|
else if ("Kaipiaoshuoming".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 34)
|
{
|
this.Kaipiaoshuoming = isChange ? MyConvert.ConvertToString(value) : Kaipiaoshuoming;
|
theValue = this.Kaipiaoshuoming;
|
}
|
else if ("CuishouTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 35)
|
{
|
this.CuishouTime = isChange ? MyConvert.ConvertToDateTime(value) : CuishouTime;
|
theValue = this.CuishouTime;
|
}
|
else if ("CuishouCreater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 35)
|
{
|
this.CuishouCreater = isChange ? MyConvert.ConvertToString(value) : CuishouCreater;
|
theValue = this.CuishouCreater;
|
}
|
|
|
return theValue;
|
}
|
|
#endregion
|
}
|
}
|