using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
|
namespace CY.Model
|
{
|
|
/// <summary>
|
/// 计划订单表
|
/// </summary>
|
[Serializable]
|
public partial class CoreCmsPlanOrderItem : IAggregateRoot
|
{
|
public CoreCmsPlanOrderItem()
|
{
|
}
|
|
#region Model
|
|
/// <summary>
|
/// 序号
|
/// </summary>
|
public System.Int32 id { get; set; }
|
/// <summary>
|
/// 订单ID 关联order.id
|
/// </summary>
|
public System.Int32 orderId { get; set; }
|
|
|
/// <summary>
|
/// 商品名称
|
/// </summary>
|
public System.String name { get; set; }
|
|
|
/// <summary>
|
/// 商品规格
|
/// </summary>
|
public System.String specification { get; set; }
|
|
|
/// <summary>
|
/// 货品价格单价
|
/// </summary>
|
|
public System.Decimal price { get; set; }
|
|
|
/// <summary>
|
/// 数量
|
/// </summary>
|
public System.Int32 nums { get; set; }
|
/// <summary>
|
/// 总价
|
/// </summary>
|
public System.Decimal amount { get; set; }
|
|
/// <summary>
|
/// 是否原始订单
|
/// </summary>
|
public bool isOld { get; set; } = false;
|
|
|
|
|
|
/// <summary>
|
/// 建立时间
|
/// </summary>
|
public DateTime? createTime { get; set; }
|
|
/// <summary>
|
/// 修改时间
|
/// </summary>
|
public DateTime? upDataTime { get; set; }
|
|
/// <summary>
|
/// 创建人
|
/// </summary>
|
public string createBy { get; set; }
|
|
/// <summary>
|
/// 修改人
|
/// </summary>
|
public string upDataBy { get; set; }
|
/// <summary>
|
/// 删除标志
|
/// </summary>
|
public bool isdelete { get; set; } = false;
|
|
/// <summary>
|
/// 封面
|
/// </summary>
|
public System.String fengmian { get; set; }
|
|
/// <summary>
|
/// 内页
|
/// </summary>
|
public System.String neiye { 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 ("id".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
|
{
|
this.id = isChange ? MyConvert.ConvertToInt32(value).Value : id;
|
theValue = this.id;
|
}
|
else if ("orderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.orderId = isChange ? MyConvert.ConvertToInt32(value).Value : orderId;
|
theValue = this.orderId;
|
}
|
else if ("name".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.name = isChange ? MyConvert.ConvertToString(value) : name;
|
theValue = this.name;
|
}
|
else if ("specification".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.specification = isChange ? MyConvert.ConvertToString(value) : specification;
|
theValue = this.specification;
|
}
|
|
else if ("price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.price = isChange ? MyConvert.ConvertToDecimal(value).Value : price;
|
theValue = this.price;
|
}
|
else if ("nums".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.nums = isChange ? MyConvert.ConvertToInt32(value).Value : nums;
|
theValue = this.nums;
|
}
|
else if ("amount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.amount = isChange ? MyConvert.ConvertToDecimal(value).Value : amount;
|
theValue = this.amount;
|
}
|
else if ("isOld".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.isOld = isChange ? MyConvert.ConvertToBoolean(value) : isOld;
|
theValue = this.isOld;
|
}
|
else if ("createTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.createTime = isChange ? MyConvert.ConvertToDateTime(value) : createTime;
|
theValue = this.createTime;
|
}
|
else if ("upDataTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.upDataTime = isChange ? MyConvert.ConvertToDateTime(value) : upDataTime;
|
theValue = this.upDataTime;
|
}
|
else if ("createBy".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.createBy = isChange ? MyConvert.ConvertToString(value) : createBy;
|
theValue = this.createBy;
|
}
|
else if ("upDataBy".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.upDataBy = isChange ? MyConvert.ConvertToString(value) : upDataBy;
|
theValue = this.upDataBy;
|
}
|
else if ("isdelete".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.isdelete = isChange ? MyConvert.ConvertToBoolean(value) : isdelete;
|
theValue = this.isdelete;
|
}
|
else if ("fengmian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
|
{
|
this.fengmian = isChange ? MyConvert.ConvertToString(value) : fengmian;
|
theValue = this.fengmian;
|
}
|
else if ("neiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
|
{
|
this.neiye = isChange ? MyConvert.ConvertToString(value) : neiye;
|
theValue = this.neiye;
|
}
|
|
return theValue;
|
}
|
|
#endregion
|
}
|
}
|