枚举接口
This commit is contained in:
@@ -53,39 +53,39 @@ namespace WMS.Web.Api.Controllers
|
|||||||
EnumStatusResponse response = new EnumStatusResponse();
|
EnumStatusResponse response = new EnumStatusResponse();
|
||||||
foreach (OutStockType enumv in Enum.GetValues(typeof(OutStockType)))
|
foreach (OutStockType enumv in Enum.GetValues(typeof(OutStockType)))
|
||||||
{
|
{
|
||||||
response.OutStockType.Add(enumv.ToString(), enumv.GetRemark());
|
response.OutStockType.Add((int)enumv, enumv.GetRemark());
|
||||||
}
|
}
|
||||||
foreach (MoveBoxType enumv in Enum.GetValues(typeof(MoveBoxType)))
|
foreach (MoveBoxType enumv in Enum.GetValues(typeof(MoveBoxType)))
|
||||||
{
|
{
|
||||||
response.MoveBoxType.Add(enumv.ToString(), enumv.GetRemark());
|
response.MoveBoxType.Add((int)enumv, enumv.GetRemark());
|
||||||
}
|
}
|
||||||
foreach (TakeStockType enumv in Enum.GetValues(typeof(TakeStockType)))
|
foreach (TakeStockType enumv in Enum.GetValues(typeof(TakeStockType)))
|
||||||
{
|
{
|
||||||
response.TakeStockType.Add(enumv.ToString(), enumv.GetRemark());
|
response.TakeStockType.Add((int)enumv, enumv.GetRemark());
|
||||||
}
|
}
|
||||||
foreach (InstockType enumv in Enum.GetValues(typeof(InstockType)))
|
foreach (InstockType enumv in Enum.GetValues(typeof(InstockType)))
|
||||||
{
|
{
|
||||||
response.InstockType.Add(enumv.ToString(), enumv.GetRemark());
|
response.InstockType.Add((int)enumv, enumv.GetRemark());
|
||||||
}
|
}
|
||||||
foreach (InstockStatus enumv in Enum.GetValues(typeof(InstockStatus)))
|
foreach (InstockStatus enumv in Enum.GetValues(typeof(InstockStatus)))
|
||||||
{
|
{
|
||||||
response.InstockStatus.Add(enumv.ToString(), enumv.GetRemark());
|
response.InstockStatus.Add((int)enumv, enumv.GetRemark());
|
||||||
}
|
}
|
||||||
foreach (BackRecordType enumv in Enum.GetValues(typeof(BackRecordType)))
|
foreach (BackRecordType enumv in Enum.GetValues(typeof(BackRecordType)))
|
||||||
{
|
{
|
||||||
response.BackRecordType.Add(enumv.ToString(), enumv.GetRemark());
|
response.BackRecordType.Add((int)enumv, enumv.GetRemark());
|
||||||
}
|
}
|
||||||
foreach (InventoryInOutType enumv in Enum.GetValues(typeof(InventoryInOutType)))
|
foreach (InventoryInOutType enumv in Enum.GetValues(typeof(InventoryInOutType)))
|
||||||
{
|
{
|
||||||
response.InventoryInOutType.Add(enumv.ToString(), enumv.GetRemark());
|
response.InventoryInOutType.Add((int)enumv, enumv.GetRemark());
|
||||||
}
|
}
|
||||||
foreach (OrderType enumv in Enum.GetValues(typeof(OrderType)))
|
foreach (OrderType enumv in Enum.GetValues(typeof(OrderType)))
|
||||||
{
|
{
|
||||||
response.OrderType.Add(enumv.ToString(), enumv.GetRemark());
|
response.OrderType.Add((int)enumv, enumv.GetRemark());
|
||||||
}
|
}
|
||||||
foreach (ShelfMethod enumv in Enum.GetValues(typeof(ShelfMethod)))
|
foreach (ShelfMethod enumv in Enum.GetValues(typeof(ShelfMethod)))
|
||||||
{
|
{
|
||||||
response.ShelfMethod.Add(enumv.ToString(), enumv.GetRemark());
|
response.ShelfMethod.Add((int)enumv, enumv.GetRemark());
|
||||||
}
|
}
|
||||||
|
|
||||||
//2
|
//2
|
||||||
|
|||||||
@@ -13,39 +13,39 @@ namespace WMS.Web.Core.Dto
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 出库单类型
|
/// 出库单类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string> OutStockType { get; set; } = new Dictionary<string, string>();
|
public Dictionary<int, string> OutStockType { get; set; } = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 移库单类型
|
/// 移库单类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string> MoveBoxType { get; set; } = new Dictionary<string, string>();
|
public Dictionary<int, string> MoveBoxType { get; set; } = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 盘点结果类型
|
/// 盘点结果类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string> TakeStockType { get; set; } = new Dictionary<string, string>();
|
public Dictionary<int, string> TakeStockType { get; set; } = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 入库单类型
|
/// 入库单类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string> InstockType { get; set; } = new Dictionary<string, string>();
|
public Dictionary<int, string> InstockType { get; set; } = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 入库状态
|
/// 入库状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string> InstockStatus { get; set; } = new Dictionary<string, string>();
|
public Dictionary<int, string> InstockStatus { get; set; } = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 类型:1为入库回退下架,2为出库回退上架
|
/// 类型:1为入库回退下架,2为出库回退上架
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string> BackRecordType { get; set; } = new Dictionary<string, string>();
|
public Dictionary<int, string> BackRecordType { get; set; } = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 类型:1为入库,2为出库
|
/// 类型:1为入库,2为出库
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string> InventoryInOutType { get; set; } = new Dictionary<string, string>();
|
public Dictionary<int, string> InventoryInOutType { get; set; } = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 单据类型
|
/// 单据类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string> OrderType { get; set; } = new Dictionary<string, string>();
|
public Dictionary<int, string> OrderType { get; set; } = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 非采购上架方式
|
/// 非采购上架方式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string> ShelfMethod { get; set; } = new Dictionary<string, string>();
|
public Dictionary<int, string> ShelfMethod { get; set; } = new Dictionary<int, string>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user