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; namespace wtmProject.ViewModel._Admin.FrameworkUserVMs { public partial class FrameworkUserTemplateVM : BaseTemplateVM { [Display(Name = "_Admin.ITCode")] public ExcelPropety ITCode_Excel = ExcelPropety.CreateProperty(x => x.ITCode); [Display(Name = "_Admin.Name")] public ExcelPropety Name_Excel = ExcelPropety.CreateProperty(x => x.Name); [Display(Name = "_Admin.Password")] public ExcelPropety Password_Excel = ExcelPropety.CreateProperty(x => x.Password); [Display(Name = "_Admin.Gender")] public ExcelPropety Gender_Excel = ExcelPropety.CreateProperty(x => x.Gender); [Display(Name = "_Admin.Group")] public ExcelPropety Group_Excel = ExcelPropety.CreateProperty(x => x.GroupId); [Display(Name = "_Admin.CellPhone")] public ExcelPropety CellPhone_Excel = ExcelPropety.CreateProperty(x => x.CellPhone); [Display(Name = "_Admin.IsValid")] public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty(x => x.IsValid); protected override void InitVM() { Group_Excel.DataType = ColumnDataType.ComboBox; Group_Excel.ListItems = DC.Set().GetSelectListItems(Wtm, y => y.GroupName); } } public class FrameworkUserImportVM : BaseImportVM { } }