Behavior_62122.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Pms.EventLibrary.TaskEventArgs;
  7. using Pms.EventLibrary.TaskEvent;
  8. using System.Windows.Forms;
  9. namespace Pms.UserEvent.StepBookEvent
  10. {
  11. /// <summary>
  12. /// 只是示例 可以删除
  13. /// </summary>
  14. public class Behavior_62122: BaseStepBookEvent
  15. {
  16. public Behavior_62122() : base(62122)
  17. {
  18. }
  19. /// <summary>
  20. /// 创建 步骤簿时 处理此行为码时触发
  21. /// </summary>
  22. /// <param name="sender"></param>
  23. /// <param name="e"></param>
  24. protected override void StepBookCreate(object sender, P_StepBookCreateEventArgs e)
  25. {
  26. //if (MessageBox.Show("是否创建成功!", "触发步骤创建事件", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) != DialogResult.OK)
  27. //{
  28. // e.IsSuccess = false;
  29. //}
  30. //else
  31. //{
  32. // e.IsSuccess = true;
  33. //}
  34. }
  35. /// <summary>
  36. /// 步骤簿 开始执行时触发
  37. /// </summary>
  38. /// <param name="sender"></param>
  39. /// <param name="e"></param>
  40. protected override void StepBookStarted(object sender, P_StepBookExecuteEventArgs e)
  41. {
  42. //if (MessageBox.Show("是否开始成功!", "触发步骤开始事件", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) != DialogResult.OK)
  43. //{
  44. // e.IsSuccessed = false;
  45. //}
  46. //else
  47. //{
  48. // e.IsSuccessed = true;
  49. //}
  50. }
  51. /// <summary>
  52. /// 步骤簿 执行中 触发
  53. /// </summary>
  54. /// <param name="sender"></param>
  55. /// <param name="e"></param>
  56. protected override void StepBookExecuting(object sender, P_StepBookExecuteEventArgs e)
  57. {
  58. //if (MessageBox.Show("是否执行成功!", "触发步骤执行中事件", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) != DialogResult.OK)
  59. //{
  60. // e.IsSuccessed = false;
  61. //}
  62. //else
  63. //{
  64. // e.IsSuccessed = true;
  65. //}
  66. }
  67. /// <summary>
  68. /// 步骤簿 执行结束触发
  69. /// </summary>
  70. /// <param name="sender"></param>
  71. /// <param name="e"></param>
  72. protected override void StepBookEnd(object sender, P_StepBookExecuteEventArgs e)
  73. {
  74. //if (MessageBox.Show("是否结束成功!", "触发步骤结束事件", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) != DialogResult.OK)
  75. //{
  76. // e.IsSuccessed = false;
  77. //}
  78. //else
  79. //{
  80. // e.IsSuccessed = true;
  81. //}
  82. }
  83. }
  84. }