41 lines
1.6 KiB
C#
41 lines
1.6 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 TaskDetailHistoryTemplateVM : BaseTemplateVM
|
|
{
|
|
public ExcelPropety TaskHeader_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.TaskHeaderId);
|
|
[Display(Name = "Inventory.UniqueCode")]
|
|
public ExcelPropety UniqueCode_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.UniqueCode);
|
|
[Display(Name = "Task.ContainerCode")]
|
|
public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.ContainerCode);
|
|
[Display(Name = "Task.FromLocation")]
|
|
public ExcelPropety FromLocation_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.FromLocation);
|
|
[Display(Name = "Task.ToLocation")]
|
|
public ExcelPropety ToLocation_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.ToLocation);
|
|
[Display(Name = "TaskDetail.Status")]
|
|
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.Status);
|
|
|
|
protected override void InitVM()
|
|
{
|
|
TaskHeader_Excel.DataType = ColumnDataType.ComboBox;
|
|
TaskHeader_Excel.ListItems = DC.Set<TaskHeaderHistory>().GetSelectListItems(Wtm, y => y.TaskNo);
|
|
}
|
|
|
|
}
|
|
|
|
public class TaskDetailHistoryImportVM : BaseImportVM<TaskDetailHistoryTemplateVM, TaskDetailHistory>
|
|
{
|
|
|
|
}
|
|
|
|
}
|