using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 计划订单表
///
[Serializable]
public partial class CoreCmsPlanOrder : IAggregateRoot
{
public CoreCmsPlanOrder()
{
}
#region Model
///
/// 订单号
///
public Int32 id { get; set; }
///
/// 省Id
///
public System.Int32 shengId { get; set; }
///
/// 省
///
public System.String sheng { get; set; }
///
/// 市Id
///
public System.Int32 shiId { get; set; }
///
/// 市
///
public System.String shi { get; set; }
///
/// 区县Id
///
public System.Int32 quxianId { get; set; }
///
/// 区县名称
///
public System.String quxian { get; set; }
///
/// 片区
///
public System.String pianqu { get; set; }
///
/// 调整订单金额
///
public System.Decimal orderAmount { get; set; }
///
/// 订单状态
///
public System.Int32 status { get; set; }
///
/// 用户ID 关联mobile
///
public System.String userMobile { get; set; }
///
/// 学校
///
public System.String shipAddress { get; set; }
///
/// 联系人
///
public System.String shipName { get; set; }
///
/// 收货电话
///
public System.String shipMobile { get; set; }
///
/// 收货地址
///
public System.String shouhuoAddress { get; set; }
///
/// 计划订单金额
///
public System.Decimal oldOrderAmount { get; set; }
///
/// 可用余额
///
public System.Decimal keYongAmount { get; set; }
///
/// 状态说明
///
public string statusText { get; set; }
///
/// 已花费金额
///
public System.Decimal huaFeiAmount { get; set; }
///
/// 调整订单金额
///
public System.Decimal orderAmounts { get; set; }
///
/// 计划订单金额
///
public System.Decimal oldOrderAmounts { get; set; }
///
/// 可用余额
///
///
public System.Decimal keYongAmounts { get; set; }
///
/// 建立时间
///
public DateTime? createTime { get; set; }
///
/// 修改时间
///
public DateTime? upDataTime { get; set; }
///
/// 创建人
///
public string createBy { get; set; }
///
/// 修改人
///
public string upDataBy { get; set; }
///
/// 删除标志
///
public bool isdelete { get; set; } = false;
///
/// 订单id
///
public System.Int32? orderkeyid { get; set; }
///
/// 所属企业
///
public System.Guid? FirmId { get; set; }
///
/// 表格string
///
public string biaoge { get; set; }
#endregion Model
#region Visiter
///
/// 属性访问器
///
/// 属性名
/// 索引
/// 是否将指定属性设置为传入值
/// 需要赋予的值
/// 与名称对应的属性值
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 ("shengId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.shengId = isChange ? MyConvert.ConvertToInt32(value).Value : shengId;
theValue = this.shengId;
}
else if ("sheng".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.sheng = isChange ? MyConvert.ConvertToString(value) : sheng;
theValue = this.sheng;
}
else if ("shiId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.shiId = isChange ? MyConvert.ConvertToInt32(value).Value : shiId;
theValue = this.shiId;
}
else if ("shi".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.shi = isChange ? MyConvert.ConvertToString(value) : shi;
theValue = this.shi;
}
else if ("quxianId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.quxianId = isChange ? MyConvert.ConvertToInt32(value).Value : quxianId;
theValue = this.quxianId;
}
else if ("quxian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.quxian = isChange ? MyConvert.ConvertToString(value) : quxian;
theValue = this.quxian;
}
else if ("pianqu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.pianqu = isChange ? MyConvert.ConvertToString(value) : pianqu;
theValue = this.pianqu;
}
else if ("orderAmount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.orderAmount = isChange ? MyConvert.ConvertToDecimal(value).Value : orderAmount;
theValue = this.orderAmount;
}
else if ("status".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.status = isChange ? MyConvert.ConvertToInt32(value).Value : status;
theValue = this.status;
}
else if ("userMobile".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
{
this.userMobile = isChange ? MyConvert.ConvertToString(value) : userMobile;
theValue = this.userMobile;
}
else if ("shipAddress".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
{
this.shipAddress = isChange ? MyConvert.ConvertToString(value) : shipAddress;
theValue = this.shipAddress;
}
else if ("shipName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
{
this.shipName = isChange ? MyConvert.ConvertToString(value) : shipName;
theValue = this.shipName;
}
else if ("shipMobile".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
{
this.shipMobile = isChange ? MyConvert.ConvertToString(value) : shipMobile;
theValue = this.shipMobile;
}
else if ("shouhuoAddress".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
{
this.shouhuoAddress = isChange ? MyConvert.ConvertToString(value) : shouhuoAddress;
theValue = this.shouhuoAddress;
}
else if ("oldOrderAmount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
{
this.oldOrderAmount = isChange ? MyConvert.ConvertToDecimal(value).Value : oldOrderAmount;
theValue = this.oldOrderAmount;
}
else if ("keYongAmount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
{
this.keYongAmount = isChange ? MyConvert.ConvertToDecimal(value).Value : keYongAmount;
theValue = this.keYongAmount;
}
else if ("huaFeiAmount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
{
this.huaFeiAmount = isChange ? MyConvert.ConvertToDecimal(value).Value : huaFeiAmount;
theValue = this.huaFeiAmount;
}
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 ("orderkeyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
{
this.orderkeyid = isChange ? MyConvert.ConvertToInt32(value) : orderkeyid;
theValue = this.orderkeyid;
}
else if ("FirmId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
{
this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId;
theValue = this.FirmId;
}
return theValue;
}
#endregion
}
///
/// 计划订单
///
public class JiHuaOrder
{
///
/// 学校
///
public System.String shipAddress { get; set; }
///
/// 联系人
///
public System.String shipName { get; set; }
///
/// 联系电话
///
public System.String shipMobile { get; set; }
///
/// 收货地址
///
public System.String shouhuoAddress { get; set; }
///
/// quxian
///
public System.String shi { get; set; }
///
/// quxian
///
public System.String quxian { get; set; }
///
/// 片区
///
public System.String pianqu { get; set; }
///
/// 商品名称
///
public System.String name { get; set; }
///
/// 商品规格
///
public System.String specification { get; set; }
///
/// 货品价格单价
///
public System.Decimal price { get; set; }
///
/// 数量
///
public System.Int32 nums { get; set; }
}
}