| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using HySoft.IVRFlowEditor.Model;
- using HySoft.IVRFlowEditor.IVRControl;
- namespace HySoft.IVRFlowEditor.IVRControlUtility
- {
- /// <summary>
- /// 分支节点
- /// </summary>
- [IVRAttribute("CELL_BRANCH", Model.IVRSerializerType.节点,2)]
- public class IVRBranch : IVRControlBase
- {
- public IVRBranch(string name)
- {
- this.Name = name;
- base.CtlProperty = new CtlIVRBranch(this);
- Branch = new List<IVRBranchVar>();
- }
- /// <summary>
- /// :参与比较的变量。
- /// </summary>
- [IVRAttribute("Var", Model.IVRSerializerType.元素,2)]
- public string Var
- { get; set; }
- /// <summary>
- /// :默认执行的下一节点编号。
- /// </summary>
- [IVRAttribute("DefaultPos", Model.IVRSerializerType.元素,3, IsPosPoint = true)]
- public IVRControlBase DefaultPos
- { get; set; }
- /// <Branch Value="1" Pos="1" />:罗列出所有与Var字段变量的值匹配时要跳转的 节点编号。例:当Var字段变量为“1”时跳转到 节点1。
- [IVRAttribute("Branch", Model.IVRSerializerType.节点,4)]
- public List<IVRBranchVar> Branch
- { get; set; }
- }
- [IVRAttribute("Branch", Model.IVRSerializerType.节点,1)]
- public class IVRBranchVar
- {
- public IVRBranchVar()
- { Control = new CtlIVRBranchVar(this); }
- [IVRAttribute("Value", Model.IVRSerializerType.元素,2)]
- public string Value
- { get; set; }
- [IVRAttribute("Pos", Model.IVRSerializerType.元素,1)]
- public string Pos
- { get; set; }
- public CtlIVRBranchVar Control
- { get; set; }
- }
- }
|