屠宰场客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

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);
}
}
}