/**
|
* 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_DriverRecord : IAggregateRoot
|
{
|
|
public OA_DriverRecord()
|
{
|
}
|
#region Model
|
/// <summary>
|
/// id
|
/// </summary>
|
public Guid Id { get; set; }
|
|
/// <summary>
|
/// 里程表 公里
|
/// </summary>
|
public int Mileage { get; set; }
|
|
/// <summary>
|
/// 车况 暂时不要
|
/// </summary>
|
public string Condition { get; set; }
|
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string Remark { get; set; }
|
|
/// <summary>
|
/// 未装货情况
|
/// </summary>
|
public string EmptyCause { get; set; }
|
|
|
|
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
public DateTime CreatTime { get; set; }
|
|
|
/// <summary>
|
/// 创建人的memberId
|
/// </summary>
|
public Guid? CreaterID { get; set; }
|
|
|
/// <summary>
|
/// 车辆ID
|
/// </summary>
|
public int CarID { get; set; }
|
/// <summary>
|
/// 车辆名称
|
/// </summary>
|
public string CarName { get; set; }
|
|
/// <summary>
|
/// 创建人
|
/// </summary>
|
public string Creater { get; set; }
|
|
/// <summary>
|
/// 打卡类型,0 代表未知,1代表上班出车,2代表下班 3 代表草稿
|
/// </summary>
|
public int? ClockType
|
{
|
get;
|
set;
|
}
|
|
|
/// <summary>
|
/// 状态名称
|
/// </summary>
|
public string ClockTypeName
|
{
|
get
|
{
|
if (ClockType.HasValue)
|
{
|
if (ClockType.Value == 1)
|
{
|
return "上班";
|
}
|
else if (ClockType.Value == 2)
|
{
|
return "下班";
|
}
|
else if (ClockType.Value == 3)
|
{
|
return "草稿";
|
}
|
else
|
{
|
return "未知";
|
}
|
|
}
|
else
|
{
|
return "未知";
|
}
|
}
|
}
|
|
/// <summary>
|
/// 里程图片
|
/// </summary>
|
public string MileageImg
|
{
|
get;
|
set;
|
}
|
public string MileageImgName
|
{
|
get;
|
set;
|
}
|
|
public string CarConditionImg
|
{
|
get;
|
set;
|
}
|
|
public string ZhuangcheImg
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
/// 车况
|
/// </summary>
|
public string CarCondition
|
{
|
get;
|
set;
|
}
|
|
// 附件表 4是装货照片 5是车况
|
|
|
#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.ConvertToGuid(value) : Id;
|
theValue = this.Id;
|
}
|
else if ("Mileage".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.Mileage = isChange ? MyConvert.ConvertToInt32(value).Value : Mileage;
|
theValue = this.Mileage;
|
}
|
else if ("Condition".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.Condition = isChange ? MyConvert.ConvertToString(value) : Condition;
|
theValue = this.Condition;
|
}
|
else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
|
theValue = this.Remark;
|
}
|
|
else if ("EmptyCause".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.EmptyCause = isChange ? MyConvert.ConvertToString(value) : EmptyCause;
|
theValue = this.EmptyCause;
|
}
|
else if ("CreatTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.CreatTime = isChange ? MyConvert.ConvertToDateTime(value).Value : CreatTime;
|
theValue = this.CreatTime;
|
}
|
else if ("CreaterID".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.CreaterID = isChange ? MyConvert.ConvertToGuid(value) : CreaterID;
|
theValue = this.CreaterID;
|
}
|
else if ("CarID".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.CarID = isChange ? MyConvert.ConvertToInt32(value).Value : CarID;
|
theValue = this.CarID;
|
}
|
else if ("Creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.Creater = isChange ? MyConvert.ConvertToString(value) : Creater;
|
theValue = this.Creater;
|
}
|
else if ("ClockType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.ClockType = isChange ? MyConvert.ConvertToInt32(value) : ClockType;
|
theValue = this.ClockType;
|
}
|
else if ("MileageImg".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.MileageImg = isChange ? MyConvert.ConvertToString(value) : MileageImg;
|
theValue = this.MileageImg;
|
}
|
else if ("CarCondition".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.CarCondition = isChange ? MyConvert.ConvertToString(value) : CarCondition;
|
theValue = this.CarCondition;
|
}
|
else if ("CarName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.CarName = isChange ? MyConvert.ConvertToString(value) : CarName;
|
theValue = this.CarName;
|
}
|
|
|
|
return theValue;
|
}
|
|
#endregion
|
}
|
}
|