40 lines
1.4 KiB
C#
40 lines
1.4 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 wtmProject.Model;
|
|
|
|
|
|
namespace wtmProject.ViewModel._Admin.WTM_CUSTOMVMs
|
|
{
|
|
public partial class WTM_CUSTOMTemplateVM : BaseTemplateVM
|
|
{
|
|
[Display(Name = "_Admin.CustomAllName")]
|
|
public ExcelPropety CustomAllName_Excel = ExcelPropety.CreateProperty<WTM_CUSTOM>(x => x.CustomAllName);
|
|
[Display(Name = "_Admin.CustomShortName")]
|
|
public ExcelPropety CustomShortName_Excel = ExcelPropety.CreateProperty<WTM_CUSTOM>(x => x.CustomShortName);
|
|
[Display(Name = "_Admin.ParentUnit")]
|
|
public ExcelPropety ParentUnit_Excel = ExcelPropety.CreateProperty<WTM_CUSTOM>(x => x.ParentUnit);
|
|
[Display(Name = "_Admin.Area")]
|
|
public ExcelPropety Area_Excel = ExcelPropety.CreateProperty<WTM_CUSTOM>(x => x.AreaId);
|
|
[Display(Name = "_Admin.EnterprisesType")]
|
|
public ExcelPropety EnterprisesType_Excel = ExcelPropety.CreateProperty<WTM_CUSTOM>(x => x.EnterprisesType);
|
|
|
|
protected override void InitVM()
|
|
{
|
|
Area_Excel.DataType = ColumnDataType.ComboBox;
|
|
Area_Excel.ListItems = DC.Set<WTM_AREA>().GetSelectListItems(Wtm, y => y.AreaName);
|
|
}
|
|
|
|
}
|
|
|
|
public class WTM_CUSTOMImportVM : BaseImportVM<WTM_CUSTOMTemplateVM, WTM_CUSTOM>
|
|
{
|
|
|
|
}
|
|
|
|
}
|