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