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.
iot/projects/Platform/Application/Models/EditIoTSceneIoTCommandModel.cs

38 lines
1.3 KiB

using Infrastructure.Application;
using Platform.Areas.IoTCenter.Controllers;
using System;
using System.ComponentModel.DataAnnotations;
namespace Platform.Application.Models
{
[Display(Name = "机构场景命令")]
public class EditIoTSceneIoTCommandModel : EditModel
{
[Display(Name = "机构")]
[SelectList(nameof(IoTSceneBuildingId), nameof(AjaxController.GetBuilding))]
[ReadOnlyForEdit]
public Guid? OrganId { get; set; }
[Display(Name = "场景建筑")]
[SelectList(nameof(IoTSceneId), nameof(AjaxController.GetIoTScene))]
[ReadOnlyForEdit]
public Guid? IoTSceneBuildingId { get; set; }
[Display(Name = "场景")]
[SelectList(nameof(DeviceBuildingId), nameof(AjaxController.GetBuildingByScene))]
[Required(ErrorMessage = nameof(RequiredAttribute))]
[ReadOnlyForEdit]
public Guid? IoTSceneId { get; set; }
[Display(Name = "设备建筑")]
[SelectList(nameof(IoTCommandId), nameof(AjaxController.GetIoTCommand))]
[ReadOnlyForEdit]
public Guid? DeviceBuildingId { get; set; }
[Display(Name = "命令")]
[SelectList]
[Required(ErrorMessage = nameof(RequiredAttribute))]
[ReadOnlyForEdit]
public Guid? IoTCommandId { get; set; }
}
}