| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- 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_CALCULATE", Model.IVRSerializerType.节点,1)]
- public class IVRCalculate : IVRControlBase
- {
- public IVRCalculate(string name)
- {
- this.Name = name;
- CtlProperty = new CtlIVRCalculate(this);
- }
- /// <summary>
- /// Data1字段类型,1为值、2为变量。
- /// </summary>
- [IVRAttribute("Data1Type", Model.IVRSerializerType.元素,2)]
- public NumberType Data1Type
- { get; set; }
- /// <summary>
- /// :Data2字段类型,1为值、2为变量。
- /// </summary>
- [IVRAttribute("Data2Type", Model.IVRSerializerType.元素,3)]
- public NumberType Data2Type
- { get; set; }
- /// <summary>
- /// :数据1的值,取值方式由Data1Type字段解释。
- /// </summary>
- [IVRAttribute("Data1", Model.IVRSerializerType.元素,4)]
- public string Data1
- { get; set; }
- /// <summary>
- /// :数据2的值,取值方式由Data2Type字段解释。
- /// </summary>
- [IVRAttribute("Data2", Model.IVRSerializerType.元素,5)]
- public string Data2
- { get; set; }
- /// <summary>
- /// :运算类型,1加法、2减法、3乘法、4除法。
- /// </summary>
- [IVRAttribute("CalcuType", Model.IVRSerializerType.元素,6)]
- public CalcuType CalcuType
- { get; set; }
- /// <summary>
- /// e:结果类型,1整数、2浮点数。
- /// </summary>
- [IVRAttribute("ResultType", Model.IVRSerializerType.元素,7)]
- public ResultType ResultType
- { get; set; }
- /// <summary>
- /// 存储结果的变量名。
- /// </summary>
- [IVRAttribute("ResultVar", Model.IVRSerializerType.元素,8)]
- public string ResultVar
- { get; set; }
- /// <summary>
- /// :下一结点编号。
- /// </summary>
- [IVRAttribute("Next", Model.IVRSerializerType.元素, 9, IsPosPoint = true)]
- public IVRControlBase Next
- { get; set; }
- }
- }
|