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.
35 lines
1.1 KiB
35 lines
1.1 KiB
using Infrastructure.Application;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Platform.Application.Models
|
|
{
|
|
[Display(Name = "机构场景命令")]
|
|
public class EditIoTSceneIoTCommandModel : EditModel
|
|
{
|
|
[Display(Name = "机构")]
|
|
[SelectList(nameof(BuildingId), "GetBuilding")]
|
|
[ReadOnlyForEdit]
|
|
public Guid? OrganId { get; set; }
|
|
|
|
[Display(Name = "建筑")]
|
|
[SelectList(nameof(IoTGatewayId), "GetIoTGateway")]
|
|
[ReadOnlyForEdit]
|
|
public Guid? BuildingId { get; set; }
|
|
|
|
[Display(Name = "机构场景")]
|
|
[SelectList]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public Guid? IoTSceneId { get; set; }
|
|
|
|
[Display(Name = "网关")]
|
|
[SelectList]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public Guid? IoTGatewayId { get; set; }
|
|
|
|
[Display(Name = "命令")]
|
|
[SelectList]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public Guid? CommandId { get; set; }
|
|
}
|
|
} |