src/ZKEACMS/Rule/RuleItem.cs

(完整代码) 1KB

/* http://www.zkea.net/ 
 * Copyright (c) ZKEASOFT. All rights reserved. 
 * http://www.zkea.net/licenses */

using Easy.Constant;
using Easy.MetaData;
using Easy.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace ZKEACMS.Rule
{
    public class RuleItem: EditorEntity
    {
        public string Condition { get; set; }
        public string FunctionName { get; set; }
        public string Property { get; set; }
        public string Value { get; set; }
    }
    class RuleItemMetaData : ViewMetaData<RuleItem>
    {
        protected override void ViewConfigure()
        {
            ViewConfig(m => m.Title).AsHidden();
            ViewConfig(m => m.Description).AsHidden();
            ViewConfig(m => m.Status).AsHidden();
            ViewConfig(m => m.Condition).AsDropDownList().Order(1).DataSource(SourceType.Dictionary);
            ViewConfig(m => m.Property).AsDropDownList().Order(2).DataSource(SourceType.Dictionary);
            ViewConfig(m => m.FunctionName).AsDropDownList().Order(3).DataSource(SourceType.Dictionary);
            ViewConfig(m => m.Value).AsTextBox().Order(4).Required();
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。