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.
29 lines
776 B
29 lines
776 B
using Infrastructure.Application;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IoT.Shared.Application.Models
|
|
{
|
|
[Display(Name = "用户角色")]
|
|
public class EditUserRoleModel : EditModel
|
|
{
|
|
//[Display(Name = "机构")]
|
|
//[ReadOnlyForEdit]
|
|
//[AjaxSelect("GetOrgan", "Ajax", "IoTCenter")]
|
|
//[Required]
|
|
//public Guid? OrganId { get; set; }
|
|
|
|
[Display(Name = "用户")]
|
|
[ReadOnlyForEdit]
|
|
[AjaxSelect("GetUser", "Ajax", "IoTCenter")]
|
|
[Required]
|
|
public Guid? UserId { get; set; }
|
|
|
|
[Display(Name = "角色")]
|
|
[ReadOnlyForEdit]
|
|
[AjaxSelect("GetRole", "Ajax", "IoTCenter")]
|
|
[Required]
|
|
public Guid? RoleId { get; set; }
|
|
}
|
|
}
|