51 lines
1.3 KiB
C#
51 lines
1.3 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 ProcessConfigVM : BaseCRUDVM<ProcessConfig>
|
|
{
|
|
|
|
public List<ComboSelectListItem> AllZones { get; set; }
|
|
public List<ComboSelectListItem> AllOutPorts { get; set; }
|
|
|
|
public ProcessConfigVM()
|
|
{
|
|
}
|
|
|
|
protected override void InitVM()
|
|
{
|
|
var vm = Wtm.CreateVM<InventoryVM>();
|
|
AllZones = new List<ComboSelectListItem>
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|