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 MaterialRequisition.Model
|
|
{
|
|
[Serializable]
|
|
[MapToTable("MaterialRequisitionRecord")]
|
|
public class MaterialRequisitionRecord : LocalSyncBase
|
|
{
|
|
[NonDmoProperty]
|
|
public int Index { get; set; }
|
|
|
|
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 override string GetDtoJson()
|
|
{
|
|
var config = new MapperConfiguration(cfg => {
|
|
cfg.CreateMap<MaterialRequisitionRecord, MaterialRequisitionRecordDto>();
|
|
});
|
|
var mapper = config.CreateMapper();
|
|
var dto = mapper.Map<MaterialRequisitionRecordDto>(this);
|
|
dto.Client_ID = this.ID;
|
|
return JsonConvert.SerializeObject(dto);
|
|
}
|
|
|
|
}
|
|
}
|