71 lines
2.0 KiB
C#
71 lines
2.0 KiB
C#
using AyCode.Interfaces.Entities;
|
|
using LinqToDB.Mapping;
|
|
using Mango.Nop.Core.Entities;
|
|
using Mango.Nop.Core.Interfaces;
|
|
using Nop.Core.Domain.Catalog;
|
|
using Nop.Core.Domain.Common;
|
|
using Nop.Core.Domain.Orders;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Mango.Nop.Core.Dtos
|
|
{
|
|
public interface IMgTStockQuantityHistoryDto<TProductDto> : IEntityInt, IMgStockQuantityHistory where TProductDto : IMgProductDto
|
|
{
|
|
public TProductDto ProductDto { get; set; }
|
|
}
|
|
|
|
public abstract class MgStockQuantityHistoryDto<TProductDto> : MgEntityBase, IModelDtoBase<StockQuantityHistory>,
|
|
IMgTStockQuantityHistoryDto<TProductDto> where TProductDto : IMgProductDto
|
|
{
|
|
public int ProductId { get; set; }
|
|
public int QuantityAdjustment { get; set; }
|
|
|
|
public int StockQuantity { get; set; }
|
|
|
|
public string Message { get; set; }
|
|
|
|
public int? CombinationId { get; set; }
|
|
|
|
public int? WarehouseId { get; set; }
|
|
|
|
public DateTime CreatedOnUtc { get; set; }
|
|
|
|
[Association(ThisKey = nameof(ProductId), OtherKey = nameof(IMgProductDto.Id), CanBeNull = false)]
|
|
public TProductDto ProductDto { get; set; }
|
|
|
|
public void CopyDtoValuesToEntity(Order entity)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void CopyDtoValuesToEntity(StockQuantityHistory entity)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void CopyEntityValuesToDto(Order entity)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void CopyEntityValuesToDto(StockQuantityHistory entity)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Order CreateMainEntity()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
StockQuantityHistory IModelDtoBase<StockQuantityHistory>.CreateMainEntity()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|