/**
|
* LF_OrderFileExtend.cs
|
*
|
* 功 能: 订单文件扩展类
|
* 类 名: LF_OrderFile
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-6-17 15:00 吴崎均 初版
|
*
|
*
|
*
|
*
|
*
|
*
|
*/
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using CY.Infrastructure.Domain;
|
using CY.Model;
|
using CY.Infrastructure.Common;
|
|
namespace CY.Model
|
{
|
/// <summary>
|
/// 扩展部分
|
/// </summary>
|
public partial class LF_OrderFile
|
{
|
#region ExtendProperties
|
|
|
|
//private EC_MemberBasic _uploader = null;
|
|
///// <summary>
|
///// 上传人
|
///// </summary>
|
//public EC_MemberBasic Uploader
|
//{
|
// get
|
// {
|
// _uploader = null == _uploader ? new EC_MemberBasic() : _uploader;
|
// return _uploader;
|
// }
|
// set { _uploader = value; }
|
//}
|
|
//private EC_MemberBasic _seller = null;
|
|
///// <summary>
|
///// 卖家
|
///// </summary>
|
//public EC_MemberBasic Seller
|
//{
|
// get
|
// {
|
// _seller = null == _seller ? new EC_MemberBasic() : _seller;
|
// return _seller;
|
// }
|
// set { _seller = value; }
|
//}
|
|
//private Sys_Dictionary _statetype = null;
|
///// <summary>
|
///// 状态类型
|
///// </summary>
|
//public Sys_Dictionary StateType
|
//{
|
// get
|
// {
|
// _statetype = null == _statetype ? new Sys_Dictionary() : _statetype;
|
// return _statetype;
|
// }
|
// set { _statetype = value; }
|
//}
|
/// <summary>
|
/// 订单编号
|
/// </summary>
|
public string Ordernumber
|
{
|
set;
|
get;
|
}
|
|
/// <summary>
|
/// 卖家名称
|
/// </summary>
|
public string SellerName
|
{
|
set;
|
get;
|
}
|
|
#endregion
|
|
#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 ("OrderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
|
{
|
this.OrderId = isChange ? MyConvert.ConvertToInt32(value) : OrderId;
|
theValue = this.OrderId;
|
}
|
else if ("SellerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.SellerId = isChange ? MyConvert.ConvertToGuid(value) : this.SellerId;
|
theValue = this.SellerId;
|
}
|
else if ("UploaderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.UploaderId = isChange ? MyConvert.ConvertToGuid(value) : UploaderId;
|
theValue = this.UploaderId;
|
}
|
else if ("FileState".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.FileState = isChange ? MyConvert.ConvertToInt32(value) : FileState;
|
theValue = this.FileState;
|
}
|
else if ("FileName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.FileName = isChange ? MyConvert.ConvertToString(value) : FileName;
|
theValue = this.FileName;
|
}
|
else if ("FilePath".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.FilePath = isChange ? MyConvert.ConvertToString(value) : FilePath;
|
theValue = this.FilePath;
|
}
|
else if ("FileType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.FileType = isChange ? MyConvert.ConvertToString(value) : FileType;
|
theValue = this.FileType;
|
}
|
else if ("FileSize".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.FileSize = isChange ? MyConvert.ConvertToDecimal(value) : FileSize;
|
theValue = this.FileSize;
|
}
|
//else if ("ClientPath".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
//{
|
// this.ClientPath = isChange ? MyConvert.ConvertToString(value) : ClientPath;
|
// theValue = this.ClientPath;
|
//}
|
else if ("UploadTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.UploadTime = isChange ? MyConvert.ConvertToDateTime(value) : UploadTime;
|
theValue = this.UploadTime;
|
}
|
//else if ("ImpactTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
//{
|
// this.ImpactTime = isChange ? MyConvert.ConvertToDateTime(value) : ImpactTime;
|
// theValue = this.ImpactTime;
|
//}
|
else if ("Ordernumber".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.Ordernumber = isChange ? MyConvert.ConvertToString(value) : Ordernumber;
|
theValue = this.Ordernumber;
|
}
|
else if ("SellerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.SellerName = isChange ? MyConvert.ConvertToString(value) : SellerName;
|
theValue = this.SellerName;
|
}
|
|
|
|
#region 扩展属性处理
|
|
|
//else if ("StateTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30)
|
//{
|
// this.StateType.Name = isChange ? MyConvert.ConvertToString(value) : this.StateType.Name;
|
// theValue = this.StateType.Name;
|
//}
|
//else if ("SellerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31)
|
//{
|
// this.Seller.Name = isChange ? MyConvert.ConvertToString(value) : this.Seller.Name;
|
// theValue = this.Seller.Name;
|
//}
|
//else if ("UploaderName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 32)
|
//{
|
// this.Uploader.Name = isChange ? MyConvert.ConvertToString(value) : this.Uploader.Name;
|
// theValue = this.Uploader.Name;
|
//}
|
#endregion
|
|
return theValue;
|
}
|
#endregion
|
}
|
}
|