库位表重新生成,一些数据使用enum type status
加上数据权限zoneCode
This commit is contained in:
1 parent
b0a6dcc035
commit
b005422b01
25 files changed
+361
-541
No files matched your search
@@ -1,59 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HHWMS.Web.Models;
|
||||
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.LocationZoneId);
|
||||
[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.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.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.ZoneCode")]
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<Location>(x => x.ZoneCode);
|
||||
|
||||
[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()
|
||||
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>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user