59 lines
2.7 KiB
C#
59 lines
2.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using WalkingTec.Mvvm.Core;
|
|
using WalkingTec.Mvvm.Core.Extensions;
|
|
using HHWMS.Web.Models;
|
|
|
|
|
|
namespace HHWMS.Web
|
|
{
|
|
public partial class LocationTemplateVM : BaseTemplateVM
|
|
{
|
|
public ExcelPropety LocationZone_Excel = ExcelPropety.CreateProperty<Location>(x => x.ZoneId);
|
|
[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.RoadWay")]
|
|
public ExcelPropety RoadWay_Excel = ExcelPropety.CreateProperty<Location>(x => x.RoadWay);
|
|
[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.RowFlag")]
|
|
public ExcelPropety RowFlag_Excel = ExcelPropety.CreateProperty<Location>(x => x.RowFlag);
|
|
[Display(Name = "Location.ContainerCode")]
|
|
public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty<Location>(x => x.ContainerCode);
|
|
[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()
|
|
{
|
|
LocationZone_Excel.DataType = ColumnDataType.ComboBox;
|
|
LocationZone_Excel.ListItems = DC.Set<LocationZone>().GetSelectListItems(Wtm, y => y.Name);
|
|
}
|
|
|
|
}
|
|
|
|
public class LocationImportVM : BaseImportVM<LocationTemplateVM, Location>
|
|
{
|
|
|
|
}
|
|
|
|
}
|