using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;
using WMS.Web.Core.Dto.Inventory;
using WMS.Web.Domain.Entitys;
namespace WMS.Web.Domain.Mappers
{
///
/// 即时库存映射对象
///
public class InventoryMapper:Profile
{
public InventoryMapper()
{
//改箱映射
CreateMap();
//移箱映射
CreateMap();
CreateMap()
.ForMember(x => x.Id, ops => ops.Ignore())
.ForMember(x => x.Fid, ops => ops.Ignore());
//出入库回退上下架映射
CreateMap();
CreateMap()
.ForMember(x => x.SerialNumbers, ops => ops.Ignore());
//采购上架映射
CreateMap();
CreateMap();
//采购上架映射
CreateMap();
CreateMap();
//箱库存映射
CreateMap();
CreateMap();
//盘点
CreateMap();
CreateMap();
//物料收发明细-映射
CreateMap()
.ForMember(x => x.OrderType, ops => ops.MapFrom(x => x.OrderType))
.ForMember(x => x.Type, ops => ops.MapFrom(x => x.InventoryInOutType));
//即时库存明细-映射
CreateMap();
//箱库存详情-映射
CreateMap()
.ForMember(x=>x.Details,t=>t.Ignore());
CreateMap();
}
}
}