using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Forks.EnterpriseServices.DataForm;
|
|
using Forks.EnterpriseServices.DomainObjects2;
|
|
|
|
namespace SegmentationInStore.Rpc.Dto
|
|
{
|
|
|
|
[Serializable]
|
|
[MapToTable("SegmentationInStoreExceptionRecord")]
|
|
[DFClass]
|
|
[KeyField("ID", KeyGenType.identity)]
|
|
public class SegmentationInStoreExceptionRecord
|
|
{
|
|
|
|
public SegmentationInStoreExceptionRecord(string barcode, string error)
|
|
{
|
|
BarCode = barcode;
|
|
ExceptionStr = error;
|
|
}
|
|
|
|
public long ID { get; set; }
|
|
|
|
|
|
protected DateTime mCreateTime = DateTime.Now;
|
|
/// <summary>
|
|
/// 每条记录都要记录创建时间
|
|
/// </summary>
|
|
public DateTime CreateTime
|
|
{
|
|
get { return mCreateTime; }
|
|
set { mCreateTime = value; }
|
|
}
|
|
|
|
[DbColumn(Length = 1000)]
|
|
public string BarCode { get; set; }
|
|
|
|
[DbColumn(Length = 4000)]
|
|
public string ExceptionStr { get; set; }
|
|
|
|
|
|
public override string ToString()
|
|
{
|
|
return BarCode + " " + ExceptionStr;
|
|
}
|
|
}
|
|
}
|