using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AutoMapper; using BO.BO; using Forks.EnterpriseServices.DataForm; using Forks.EnterpriseServices.DomainObjects2; using Newtonsoft.Json; namespace SegmentationWeight.Rpc.Dto { [Serializable] [MapToTable("SegmentationWeightRecord")] [DFClass] public class SegmentationWeightRecord: 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 string CardBarCode{ get; set; }//放产品的车的条码 public string BiaoShi { get; set; } public string ProductBatch { get; set; } public override string GetDtoJson() { var config = new MapperConfiguration(cfg => { cfg.CreateMap(); }); var mapper = config.CreateMapper(); var dto = mapper.Map(this); dto.Client_ID = this.ID; return JsonConvert.SerializeObject(dto); } } }