ivr流程编辑器

IVRCalculate.cs 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using HySoft.IVRFlowEditor.Model;
  6. using HySoft.IVRFlowEditor.IVRControl;
  7. namespace HySoft.IVRFlowEditor.IVRControlUtility
  8. {
  9. /// <summary>
  10. /// 算数运算
  11. /// </summary>
  12. [IVRAttribute("CELL_CALCULATE", Model.IVRSerializerType.节点,1)]
  13. public class IVRCalculate : IVRControlBase
  14. {
  15. public IVRCalculate(string name)
  16. {
  17. this.Name = name;
  18. CtlProperty = new CtlIVRCalculate(this);
  19. }
  20. /// <summary>
  21. /// Data1字段类型,1为值、2为变量。
  22. /// </summary>
  23. [IVRAttribute("Data1Type", Model.IVRSerializerType.元素,2)]
  24. public NumberType Data1Type
  25. { get; set; }
  26. /// <summary>
  27. /// :Data2字段类型,1为值、2为变量。
  28. /// </summary>
  29. [IVRAttribute("Data2Type", Model.IVRSerializerType.元素,3)]
  30. public NumberType Data2Type
  31. { get; set; }
  32. /// <summary>
  33. /// :数据1的值,取值方式由Data1Type字段解释。
  34. /// </summary>
  35. [IVRAttribute("Data1", Model.IVRSerializerType.元素,4)]
  36. public string Data1
  37. { get; set; }
  38. /// <summary>
  39. /// :数据2的值,取值方式由Data2Type字段解释。
  40. /// </summary>
  41. [IVRAttribute("Data2", Model.IVRSerializerType.元素,5)]
  42. public string Data2
  43. { get; set; }
  44. /// <summary>
  45. /// :运算类型,1加法、2减法、3乘法、4除法。
  46. /// </summary>
  47. [IVRAttribute("CalcuType", Model.IVRSerializerType.元素,6)]
  48. public CalcuType CalcuType
  49. { get; set; }
  50. /// <summary>
  51. /// e:结果类型,1整数、2浮点数。
  52. /// </summary>
  53. [IVRAttribute("ResultType", Model.IVRSerializerType.元素,7)]
  54. public ResultType ResultType
  55. { get; set; }
  56. /// <summary>
  57. /// 存储结果的变量名。
  58. /// </summary>
  59. [IVRAttribute("ResultVar", Model.IVRSerializerType.元素,8)]
  60. public string ResultVar
  61. { get; set; }
  62. /// <summary>
  63. /// :下一结点编号。
  64. /// </summary>
  65. [IVRAttribute("Next", Model.IVRSerializerType.元素, 9, IsPosPoint = true)]
  66. public IVRControlBase Next
  67. { get; set; }
  68. }
  69. }