|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using System;
using System.Collections.Generic;
using Infrastructure;
using WebRepository;
namespace WebApp
{
/// <summary>
/// 库存查询接口App
/// </summary>
public partial class IInventoryApp : ApiApp
{
public IInventoryApp(IUnitWork unitWork, IAuth auth, BaseDBContext context) : base(unitWork, auth, context)
{
}
|
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
}
try
{
Inventory inventory = new Inventory
{
WarehouseType = inventoryModel.WarehouseType,
LocationCode = inventoryModel.LocationCode,
ContainerCode = inventoryModel.ContainerCode,
MaterialCode = inventoryModel.MaterialCode,
Lot = inventoryModel.Lot,
Status = inventoryModel.Status,
Qty = null,
};
Response.Result = _unitWork.Find(EntityToExpression<Inventory>.GetExpressions(inventory)).MapToList<InventoryModel>();
}
catch (Exception ex)
{
Response.Code = 500;
Response.Status = false;
Response.Message = ex.Message;
}
|