Files
8357WMS/HHWMS.Web/Areas/Configs/ViewModels/LocationVMs/LocationImportVM.cs
T
2023-07-25 19:20:18 +08:00

60 lines
2.3 KiB
C#

using System.ComponentModel.DataAnnotations;
using HHWMS.Web.Models;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class LocationTemplateVM : BaseTemplateVM
{
[Display(Name = "Location.Code")]
public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<Location>(x => x.Code);
[Display(Name = "Location.Type")]
public ExcelPropety Type_Excel = ExcelPropety.CreateProperty<Location>(x => x.Type);
[Display(Name = "Location.Status")]
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<Location>(x => x.Status);
[Display(Name = "Location.Row")]
public ExcelPropety Row_Excel = ExcelPropety.CreateProperty<Location>(x => x.Row);
[Display(Name = "Location.Line")]
public ExcelPropety Line_Excel = ExcelPropety.CreateProperty<Location>(x => x.Line);
[Display(Name = "Location.Layer")]
public ExcelPropety Layer_Excel = ExcelPropety.CreateProperty<Location>(x => x.Layer);
[Display(Name = "Location.RoadWay")]
public ExcelPropety RoadWay_Excel = ExcelPropety.CreateProperty<Location>(x => x.RoadWay);
[Display(Name = "Location.ContainerCode")]
public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty<Location>(x => x.ContainerCode);
[Display(Name = "Location.ZoneCode")]
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<Location>(x => x.ZoneCode);
[Display(Name = "Location.IsStop")]
public ExcelPropety IsStop_Excel = ExcelPropety.CreateProperty<Location>(x => x.IsStop);
[Display(Name = "System.Length")]
public ExcelPropety Length_Excel = ExcelPropety.CreateProperty<Location>(x => x.Length);
[Display(Name = "System.Width")]
public ExcelPropety Width_Excel = ExcelPropety.CreateProperty<Location>(x => x.Width);
[Display(Name = "System.Height")]
public ExcelPropety Height_Excel = ExcelPropety.CreateProperty<Location>(x => x.Height);
[Display(Name = "Location.ContiguousCode")]
public ExcelPropety ContiguousCode_Excel = ExcelPropety.CreateProperty<Location>(x => x.ContiguousCode);
protected override void InitVM()
{
}
}
public class LocationImportVM : BaseImportVM<LocationTemplateVM, Location>
{
}
}