Compare commits
3 Commits
b21197ca67
...
99bfaf960b
| Author | SHA1 | Date |
|---|---|---|
|
|
99bfaf960b | |
|
|
3c479e1ad5 | |
|
|
120ed09738 |
|
|
@ -1,4 +1,5 @@
|
||||||
using Nop.Core;
|
using AyCode.Core.Interfaces;
|
||||||
|
using Nop.Core;
|
||||||
|
|
||||||
namespace Mango.Nop.Core.Dtos;
|
namespace Mango.Nop.Core.Dtos;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
using System.ComponentModel.Design;
|
||||||
|
using AyCode.Interfaces.Entities;
|
||||||
|
using AyCode.Interfaces.TimeStampInfo;
|
||||||
|
using LinqToDB.Mapping;
|
||||||
|
|
||||||
|
namespace Mango.Nop.Core.Entities;
|
||||||
|
|
||||||
|
public interface IMgStockTaking : IEntityInt, ITimeStampInfo
|
||||||
|
{
|
||||||
|
public DateTime StartDateTime { get; set; }
|
||||||
|
public bool IsClosed { get; set; }
|
||||||
|
|
||||||
|
public bool IsReadyForClose();
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract class MgStockTaking<TStockTakingItem> : MgEntityBase, IMgStockTaking where TStockTakingItem : class, IMgStockTakingItem
|
||||||
|
{
|
||||||
|
public DateTime StartDateTime { get; set; }
|
||||||
|
public bool IsClosed { get; set; }
|
||||||
|
|
||||||
|
public abstract bool IsReadyForClose();
|
||||||
|
|
||||||
|
[Association(ThisKey = nameof(Id), OtherKey = nameof(IMgStockTakingItem.StockTakingId), CanBeNull = true)]
|
||||||
|
public List<TStockTakingItem>? StockTakingItems { get; set; }
|
||||||
|
|
||||||
|
public int Creator { get; set; }
|
||||||
|
public DateTime Created { get; set; }
|
||||||
|
public DateTime Modified { get; set; }
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
using AyCode.Interfaces.Entities;
|
||||||
|
using AyCode.Interfaces.TimeStampInfo;
|
||||||
|
using LinqToDB;
|
||||||
|
using LinqToDB.Mapping;
|
||||||
|
using Mango.Nop.Core.Dtos;
|
||||||
|
using Mango.Nop.Core.Interfaces;
|
||||||
|
|
||||||
|
namespace Mango.Nop.Core.Entities;
|
||||||
|
|
||||||
|
public interface IMgStockTakingItem : IEntityInt, ITimeStampInfo
|
||||||
|
{
|
||||||
|
public int StockTakingId { get; set; }
|
||||||
|
public int ProductId { get; set; }
|
||||||
|
|
||||||
|
public bool IsMeasured { get; set; }
|
||||||
|
|
||||||
|
public int OriginalStockQuantity { get; set; }
|
||||||
|
public int MeasuredStockQuantity { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract class MgStockTakingItem<TStockTaking, TProduct> : MgEntityBase, IMgStockTakingItem
|
||||||
|
where TStockTaking : class, IMgStockTaking where TProduct : class, IMgProductDto
|
||||||
|
{
|
||||||
|
public int StockTakingId { get; set; }
|
||||||
|
public int ProductId { get; set; }
|
||||||
|
|
||||||
|
public bool IsMeasured { get; set; }
|
||||||
|
|
||||||
|
public int OriginalStockQuantity { get; set; }
|
||||||
|
public int MeasuredStockQuantity { get; set; }
|
||||||
|
|
||||||
|
[Association(ThisKey = nameof(StockTakingId), OtherKey = nameof(IMgStockTaking.Id), CanBeNull = true)]
|
||||||
|
public TStockTaking? StockTaking{ get; set; }
|
||||||
|
|
||||||
|
[Association(ThisKey = nameof(ProductId), OtherKey = nameof(IMgProductDto.Id), CanBeNull = true)]
|
||||||
|
public TProduct? Product { get; set; }
|
||||||
|
|
||||||
|
public DateTime Created { get; set; }
|
||||||
|
public DateTime Modified { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="linq2db" Version="5.4.1" />
|
<PackageReference Include="linq2db" Version="5.4.1" />
|
||||||
<PackageReference Include="MessagePack" Version="3.1.4" />
|
<PackageReference Include="MessagePack" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.10" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.11" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,15 @@ using Mango.Nop.Core.Interfaces;
|
||||||
|
|
||||||
namespace Mango.Nop.Core.Models;
|
namespace Mango.Nop.Core.Models;
|
||||||
|
|
||||||
public class MgLoginModelRequest(string email, string password) : IAcModelDtoBaseEmpty
|
public class MgLoginModelRequest : IAcModelDtoBaseEmpty
|
||||||
{
|
{
|
||||||
public string Email { get; set; } = email;
|
public MgLoginModelRequest(){}
|
||||||
public string Password { get; set; } = password;
|
public MgLoginModelRequest(string email, string password)
|
||||||
|
{
|
||||||
|
Email = email;
|
||||||
|
Password = password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Email { get; set; }
|
||||||
|
public string Password { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="MessagePack" Version="3.1.4" />
|
<PackageReference Include="MessagePack" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.10" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.11" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="MessagePack" Version="3.1.4" />
|
<PackageReference Include="MessagePack" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.10" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.11" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue