| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using PropertyGridLib.Attributes;
- using PropertyGridLib.Controls;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing.Design;
- using TeamAAS.FlowEngine.FormulaData;
- using Plugins.Standard.Core;
- namespace Plugins.Standard.Models
- {
- /// <summary>
- /// 条件判断配置模型
- /// </summary>
- [System.Serializable]
- public class IfConditionModel : TeamAAS.FlowEditor.Plugins.BasePluginModel
- {
- [DisplayName("1、数据集合"), Category("属性"), Description("分支模块数据集")]
- [FormulaEditor(typeof(PluginDataProvider))]
- public List<IFModel> IFModels { get; set; } = new List<IFModel>();
- public IfConditionModel()
- {
- }
- }
- [Serializable]
- public class IFModel
- {
- [DisplayName("1.条件"), Category("属性"), Description("满足该条件时执行模块")]
- [FormulaEditor(typeof(PluginDataProvider))]
- public FormulaBound<bool> DisplayIndex
- {
- get; set;
- }=new FormulaBound<bool>();
- [DisplayName("2.条件取反"), Category("属性"), Description("最终结果取反")]
- public bool IsNegate
- {
- get; set;
- } = false;
- [DisplayName("3.执行模块"), Category("属性"), Description("执行模块")]
- [TypeConverter(typeof(NextToolConverter))]
- public string ToolName { get; set; }
- public override string ToString()
- {
- return "Run:";
- }
- }
- }
|