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/IoT/IoT.Shared/Application/Models/EditSceneModel.cs

36 lines
1002 B

using Infrastructure.Application;
using Microsoft.AspNetCore.Mvc;
using System;
using System.ComponentModel.DataAnnotations;
namespace Application.Models
{
[Display(Name = "场景")]
public class EditSceneModel : EditModel
{
[Display(Name = "场景名称")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Name { get; set; }
[Display(Name = "Icon")]
public string Icon { get; set; }
[Display(Name = "启用定时")]
public bool Timed { get; set; }
[Display(Name = "定时表达式")]
public string Corn { get; set; }
[Display(Name = "标记")]
public string Tag { get; set; }
[DataType("SelectList")]
[Display(Name = "节点")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public Guid? NodeId { get; set; }
[HiddenInput(DisplayValue = false)]
[ScaffoldColumn(true)]
public string NodeNumber { get; set; }
}
}