using System.ComponentModel.DataAnnotations; using HHWMS.Web.Models; using WalkingTec.Mvvm.Core; using WalkingTec.Mvvm.Core.Extensions; namespace HHWMS.Web { public partial class ReceiptDetailTemplateVM : BaseTemplateVM { public ExcelPropety ReceiptHeader_Excel = ExcelPropety.CreateProperty(x => x.ReceiptHeaderId); [Display(Name = "Task.ZoneCode")] public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty(x => x.ZoneCode); [Display(Name = "Inventory.MaterialCode")] public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty(x => x.MaterialCode); [Display(Name = "Inventory.MaterialType")] public ExcelPropety MaterialType_Excel = ExcelPropety.CreateProperty(x => x.MaterialType); [Display(Name = "Inventory.MaterialName")] public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty(x => x.MaterialName); [Display(Name = "Inventory.MaterialSpec")] public ExcelPropety MaterialSpec_Excel = ExcelPropety.CreateProperty(x => x.MaterialSpec); [Display(Name = "Inventory.MaterialUnit")] public ExcelPropety MaterialUnit_Excel = ExcelPropety.CreateProperty(x => x.MaterialUnit); [Display(Name = "Inventory.Batch")] public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty(x => x.Batch); [Display(Name = "Inventory.Lot")] public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty(x => x.Lot); [Display(Name = "Inventory.ManufactureDate")] public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty(x => x.ManufactureDate); [Display(Name = "Inventory.ExpirationDate")] public ExcelPropety ExpirationDate_Excel = ExcelPropety.CreateProperty(x => x.ExpirationDate); [Display(Name = "Inventory.CompanyCode")] public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty(x => x.CompanyCode); [Display(Name = "Inventory.SupplierCode")] public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty(x => x.SupplierCode); [Display(Name = "Receipt.CompletedQty")] public ExcelPropety CompletedQty_Excel = ExcelPropety.CreateProperty(x => x.CompletedQty); [Display(Name = "Inventory.Qty")] public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty(x => x.Qty); [Display(Name = "Inventory.Status")] public ExcelPropety InventoryStatus_Excel = ExcelPropety.CreateProperty(x => x.InventoryStatus); [Display(Name = "Receipt.Status")] public ExcelPropety Status_Excel = ExcelPropety.CreateProperty(x => x.Status); protected override void InitVM() { ReceiptHeader_Excel.DataType = ColumnDataType.ComboBox; ReceiptHeader_Excel.ListItems = DC.Set().GetSelectListItems(Wtm, y => y.Code); } } public class ReceiptDetailImportVM : BaseImportVM { } }