using System;
|
|
using AutoMapper;
|
|
using BO.BO;
|
|
using Forks.EnterpriseServices.DataForm;
|
|
using Forks.EnterpriseServices.DomainObjects2;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace SegmentationInStore.Rpc.Dto
|
|
{
|
|
[Serializable]
|
|
[MapToTable("SegmentationInStoreRecord")]
|
|
[DFClass]
|
|
public class SegmentationInStoreRecord : LocalSyncBase
|
|
{
|
|
public string BarCode { get; set; }
|
|
public long Goods_ID { get; set; }
|
|
public string Goods_Name { get; set; }
|
|
public string Goods_Spec { get; set; }
|
|
public decimal Weight { get; set; }
|
|
// public DateTime CreateTime { get; set; }
|
|
public long? Store_ID { get; set; }
|
|
public string Store_Name { get; set; }
|
|
public string ProductBatch { get; set; }
|
|
public string BiaoShi { get; set; }
|
|
public string CardBarCode { get; set; }//放产品的车的条码
|
|
|
|
public override string GetDtoJson()
|
|
{
|
|
var config = new MapperConfiguration(cfg => {
|
|
cfg.CreateMap<SegmentationInStoreRecord, SegmentationInStoreRecordDto>();
|
|
});
|
|
var mapper = config.CreateMapper();
|
|
var dto = mapper.Map<SegmentationInStoreRecordDto>(this);
|
|
dto.Client_ID = this.ID;
|
|
return JsonConvert.SerializeObject(dto);
|
|
}
|
|
}
|
|
}
|