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 ProcessConfigVM : BaseCRUDVM { public List AllZones { get; set; } public List AllOutPorts { get; set; } public ProcessConfigVM() { } protected override void InitVM() { var vm = Wtm.CreateVM(); AllZones = new List { new ComboSelectListItem { Text = "区域1", Value = "Zone1" }, new ComboSelectListItem { Text = "区域2", Value = "Zone2" }, new ComboSelectListItem { Text = "区域3", Value = "Zone3" }, }; AllOutPorts = vm.AllOutPorts; } public override void DoAdd() { base.DoAdd(); } public override void DoEdit(bool updateAllFields = false) { base.DoEdit(updateAllFields); } public override void DoDelete() { base.DoDelete(); } } }