ivr流程编辑器

IVRStringop.cs 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using HySoft.IVRFlowEditor.IVRControl;
  6. using HySoft.IVRFlowEditor.Model;
  7. namespace HySoft.IVRFlowEditor.IVRControlUtility
  8. {
  9. /// <summary>
  10. /// 字符串操作节点
  11. /// </summary>
  12. [IVRAttribute("CELL_STRINGOP", Model.IVRSerializerType.节点,1)]
  13. public class IVRStringop : IVRControlBase
  14. {
  15. public IVRStringop(string name)
  16. {
  17. this.Name = name;
  18. CtlProperty = new CtlIVRStringop(this);
  19. }
  20. /// <summary>
  21. /// :字符串操作方式,1去左右空格、2截取、3替换、4匹配、5合并。
  22. /// </summary>
  23. [IVRAttribute("OpType", Model.IVRSerializerType.元素,2)]
  24. public OpType OpType
  25. { get; set; }
  26. /// <summary>
  27. /// :待操作的字符串变量名。
  28. /// </summary>
  29. [IVRAttribute("OperateVar", Model.IVRSerializerType.元素,3)]
  30. public string OperateVar
  31. { get; set; }
  32. /// <summary>
  33. /// :存储操作结果的变量名。
  34. /// </summary>
  35. [IVRAttribute("ResultVar", Model.IVRSerializerType.元素,4)]
  36. public string ResultVar
  37. { get; set; }
  38. /// <summary>
  39. /// :存储被替换内容的变量名。
  40. /// </summary>
  41. [IVRAttribute("ReplaceVar", Model.IVRSerializerType.元素,5)]
  42. public string ReplaceVar
  43. { get; set; }
  44. /// <summary>
  45. /// :存储替换为内容的变量名。
  46. /// </summary>
  47. [IVRAttribute("RepAsVar", Model.IVRSerializerType.元素,6)]
  48. public string RepAsVar
  49. { get; set; }
  50. /// <summary>
  51. /// :存储匹配内容的变量名。
  52. /// </summary>
  53. [IVRAttribute("MatchVar", Model.IVRSerializerType.元素,7)]
  54. public string MatchVar
  55. { get; set; }
  56. /// <summary>
  57. /// :存储合并时追加字符串的变量名。
  58. /// </summary>
  59. [IVRAttribute("AppendVar", Model.IVRSerializerType.元素,8)]
  60. public string AppendVar
  61. { get; set; }
  62. /// <summary>
  63. /// :截取的开始位置。
  64. /// </summary>
  65. [IVRAttribute("InterceptIdx", Model.IVRSerializerType.元素,9)]
  66. public int InterceptIdx
  67. { get; set; }
  68. /// <summary>
  69. /// :截取长度。
  70. /// </summary>
  71. [IVRAttribute("InterceptLen", Model.IVRSerializerType.元素,10)]
  72. public int InterceptLen
  73. { get; set; }
  74. /// <summary>
  75. /// :操作结束后下一节点编号,对于进行字符匹配时该字段无效。
  76. /// </summary>
  77. [IVRAttribute("Next", Model.IVRSerializerType.元素,11, IsPosPoint = true)]
  78. public IVRControlBase Next
  79. { get; set; }
  80. /// <summary>
  81. /// :匹配为真时下一节点编号。
  82. /// </summary>
  83. [IVRAttribute("TruePos", Model.IVRSerializerType.元素,12, IsPosPoint = true)]
  84. public IVRControlBase TruePos
  85. { get; set; }
  86. /// <summary>
  87. /// :匹配为假时下一节点编号。
  88. /// </summary>
  89. [IVRAttribute("FalsePos", Model.IVRSerializerType.元素,13, IsPosPoint = true)]
  90. public IVRControlBase FalsePos
  91. { get; set; }
  92. }
  93. }