52 lines
2.2 KiB
C#
52 lines
2.2 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 TaskHeaderTemplateVM : BaseTemplateVM
|
|
{
|
|
[Display(Name = "Task.ZoneCode")]
|
|
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.ZoneCode);
|
|
[Display(Name = "Task.TaskNo")]
|
|
public ExcelPropety TaskNo_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.TaskNo);
|
|
[Display(Name = "Task.TaskType")]
|
|
public ExcelPropety TaskType_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.TaskType);
|
|
[Display(Name = "Task.FromLocation")]
|
|
public ExcelPropety FromLocation_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.FromLocation);
|
|
[Display(Name = "Task.ToLocation")]
|
|
public ExcelPropety ToLocation_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.ToLocation);
|
|
[Display(Name = "Task.Station")]
|
|
public ExcelPropety Station_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.Station);
|
|
[Display(Name = "Task.ContainerCode")]
|
|
public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.ContainerCode);
|
|
[Display(Name = "Task.RoadWay")]
|
|
public ExcelPropety RoadWay_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.RoadWay);
|
|
[Display(Name = "Task.Priority")]
|
|
public ExcelPropety Priority_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.Priority);
|
|
[Display(Name = "Task.Status")]
|
|
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.Status);
|
|
[Display(Name = "Task.ErrorMsg")]
|
|
public ExcelPropety ErrorMsg_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.ErrorMsg);
|
|
[Display(Name = "Task.CreateTime")]
|
|
public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.CreateTime);
|
|
|
|
protected override void InitVM()
|
|
{
|
|
}
|
|
|
|
}
|
|
|
|
public class TaskHeaderImportVM : BaseImportVM<TaskHeaderTemplateVM, TaskHeader>
|
|
{
|
|
|
|
}
|
|
|
|
}
|