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/IoTCenter/Application/Models/EditGlobalSceneTimerModel.cs

28 lines
845 B

using Infrastructure.Application;
using Microsoft.AspNetCore.Mvc;
using System;
using System.ComponentModel.DataAnnotations;
namespace IoTCenter.Application.Models
{
[Display(Name = "平台定时器")]
public class EditGlobalSceneTimerModel : EditModel
{
[DataType("SelectList")]
[Display(Name = "平台场景")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public Guid SceneId { get; set; }
[Display(Name = "平台定时器名称")]
public string Name { get; set; }
[Display(Name = "定时器规则")]
[UIHint("Cron")]
[Remote("CronValid", "Ajax", "Admin")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Cron { get; set; }
[Display(Name = "禁用")]
public bool Disabled { get; set; }
}
}