1
This commit is contained in:
@@ -147,14 +147,12 @@ namespace Tnb.WarehouseMgr
|
|||||||
[HttpGet]
|
[HttpGet]
|
||||||
public async Task<dynamic?> GetInOutStockCodesById([FromQuery] InOutStockDetailQuery input)
|
public async Task<dynamic?> GetInOutStockCodesById([FromQuery] InOutStockDetailQuery input)
|
||||||
{
|
{
|
||||||
dynamic? result = null;
|
|
||||||
var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID);
|
|
||||||
|
|
||||||
async Task<dynamic?> _fetchInOutStockCodesById<TEntity, TOut, TStockCode>(string billDId)
|
async Task<dynamic?> _fetchInOutStockCodesById<TEntity, TOut, TStockCode>(string billDId)
|
||||||
where TEntity : BaseEntity<string>, new()
|
where TEntity : BaseEntity<string>, new()
|
||||||
where TOut : IInOutStockDetail<TStockCode>, new()
|
where TOut : IInOutStockDetail<TStockCode>, new()
|
||||||
where TStockCode : BaseEntity<string>, IInOutStockCode, new()
|
where TStockCode : BaseEntity<string>, IInOutStockCode, new()
|
||||||
{
|
{
|
||||||
|
var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID);
|
||||||
var data = await _db.Queryable<TEntity>()
|
var data = await _db.Queryable<TEntity>()
|
||||||
.Where(a => a.id == billDId)
|
.Where(a => a.id == billDId)
|
||||||
.Select(a => new TOut
|
.Select(a => new TOut
|
||||||
@@ -166,6 +164,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dynamic? result = null;
|
||||||
switch (input.inoutStockType)
|
switch (input.inoutStockType)
|
||||||
{
|
{
|
||||||
case EnumInOutStockType.In:
|
case EnumInOutStockType.In:
|
||||||
|
|||||||
Reference in New Issue
Block a user