Files
WMS/HHWMS.Web/Areas/Inventory/ViewModels/InventoryVMs/InventoryVM.cs
T
zhougf b12ed2d5e5 任务添加zoneid
添加物料打印
添加物料工序
添加库存出库
修改状态返回接口
wcs请求添加 重量和入口
2025-07-09 01:11:10 +08:00

57 lines
1.8 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HHWMS.Web.Models;
namespace HHWMS.Web
{
public partial class InventoryVM : BaseCRUDVM<Inventory>
{
public List<ComboSelectListItem> AllZones { get; set; }
public List<ComboSelectListItem> AllOutPorts { get; set; }
[Display(Name = "Location.OutPort", Description = "拣货口")]
public string OutPort { get; set; }
public InventoryVM()
{
SetInclude(x => x.Zone);
}
protected override void InitVM()
{
AllZones = DC.Set<LocationZone>().GetSelectListItems(Wtm, y => y.Name);
AllOutPorts = new List<ComboSelectListItem>
{
new ComboSelectListItem { Text = "拣货口1", Value = "EnterExit_P2001" },
new ComboSelectListItem { Text = "拣货口2", Value = "EnterExit_P2003" },
new ComboSelectListItem { Text = "拣货口3", Value = "EnterExit_P2005" },
new ComboSelectListItem { Text = "拣货口4", Value = "EnterExit_P2007" },
new ComboSelectListItem { Text = "拣货口5", Value = "EnterExit_P2009" },
new ComboSelectListItem { Text = "拣货口6", Value = "EnterExit_P2011" },
new ComboSelectListItem { Text = "拣货口7", Value = "EnterExit_P2013" }
};
}
public override void DoAdd()
{
base.DoAdd();
}
public override void DoEdit(bool updateAllFields = false)
{
base.DoEdit(updateAllFields);
}
public override void DoDelete()
{
base.DoDelete();
}
}
}