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.
34 lines
1.0 KiB
34 lines
1.0 KiB
using Infrastructure.Application;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Platform.Application.Models
|
|
{
|
|
[Display(Name = "平台定时器")]
|
|
public class EditOrganSceneTimerModel : EditModel
|
|
{
|
|
[Display(Name = "机构")]
|
|
[SelectList]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public Guid? OrganId { get; set; }
|
|
|
|
[Display(Name = "机构场景")]
|
|
[SelectList]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public Guid? OrganSceneId { get; set; }
|
|
|
|
[Display(Name = "定时器名称")]
|
|
[MaxLength(24, ErrorMessage = "{0}最大长度为{1}")]
|
|
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; }
|
|
}
|
|
} |