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(x => x.ZoneId); [Display(Name = "Location.Code")] public ExcelPropety Code_Excel = ExcelPropety.CreateProperty(x => x.Code); [Display(Name = "Location.Type")] public ExcelPropety Type_Excel = ExcelPropety.CreateProperty(x => x.Type); [Display(Name = "Location.Status")] public ExcelPropety Status_Excel = ExcelPropety.CreateProperty(x => x.Status); [Display(Name = "Location.RoadWay")] public ExcelPropety RoadWay_Excel = ExcelPropety.CreateProperty(x => x.RoadWay); [Display(Name = "Location.Row")] public ExcelPropety Row_Excel = ExcelPropety.CreateProperty(x => x.Row); [Display(Name = "Location.Line")] public ExcelPropety Line_Excel = ExcelPropety.CreateProperty(x => x.Line); [Display(Name = "Location.Layer")] public ExcelPropety Layer_Excel = ExcelPropety.CreateProperty(x => x.Layer); [Display(Name = "Location.RowFlag")] public ExcelPropety RowFlag_Excel = ExcelPropety.CreateProperty(x => x.RowFlag); [Display(Name = "Location.ContainerCode")] public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty(x => x.ContainerCode); [Display(Name = "Location.IsStop")] public ExcelPropety IsStop_Excel = ExcelPropety.CreateProperty(x => x.IsStop); [Display(Name = "System.Length")] public ExcelPropety Length_Excel = ExcelPropety.CreateProperty(x => x.Length); [Display(Name = "System.Width")] public ExcelPropety Width_Excel = ExcelPropety.CreateProperty(x => x.Width); [Display(Name = "System.Height")] public ExcelPropety Height_Excel = ExcelPropety.CreateProperty(x => x.Height); [Display(Name = "Location.ContiguousCode")] public ExcelPropety ContiguousCode_Excel = ExcelPropety.CreateProperty(x => x.ContiguousCode); protected override void InitVM() { LocationZone_Excel.DataType = ColumnDataType.ComboBox; LocationZone_Excel.ListItems = DC.Set().GetSelectListItems(Wtm, y => y.Name); } } public class LocationImportVM : BaseImportVM { } }