You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
using Infrastructure.Application;
|
|
using Application.Domain.Entities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using UoN.ExpressiveAnnotations.NetCore.Attributes;
|
|
|
|
namespace Platform.Application.Models
|
|
{
|
|
[Display(Name = "机构用户")]
|
|
public class EditOrganUserModel : EditModel
|
|
{
|
|
[Display(Name = "机构")]
|
|
[SelectList]
|
|
[ReadOnlyForEdit]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public Guid? OrganId { get; set; }
|
|
|
|
[Display(Name = "用户")]
|
|
[ReadOnlyForEdit]
|
|
[SearchSelectList("GetUser", "Ajax")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public Guid? UserId { get; set; }
|
|
|
|
[Display(Name = "类型")]
|
|
[SelectList]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Type { get; set; }
|
|
|
|
[Display(Name = "默认机构")]
|
|
public bool? IsDefault { get; set; }
|
|
|
|
[Display(Name = "角色")]
|
|
[MultiSelectList]
|
|
public List<Guid> Roles { get; set; } = new List<Guid>();
|
|
}
|
|
}
|