delay.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <div>
  2. <div title="基本" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">标识:</td>
  6. <td class="editTableValue">text{$.id}</td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">创建时间:</td>
  10. <td class="editTableValue">text{$.createTime}</td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">类型:</td>
  14. <td class="editTableValue">text{$.type}</td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">名称:</td>
  18. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  19. </tr>
  20. <tr>
  21. <td class="editTableTitle">别名:</td>
  22. <td class="editTableValue"><input type="text" name="alias" value="text{$.alias}" class="editTableInput"/></td>
  23. </tr>
  24. <tr>
  25. <td class="editTableTitle">描述:</td>
  26. <td class="editTableValue"><textarea name="description" class="editTableTextarea">text{$.description}</textarea></td>
  27. </tr>
  28. <tr>
  29. <td class="editTableTitle">表单:</td>
  30. <td class="editTableValue">
  31. <div class="MWFFormSelect" name="form"></div></td>
  32. </tr>
  33. </table>
  34. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  35. <tr>
  36. <td class="editTableValue" colspan="2"><b>是否允许调度:</b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>是
  37. <input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>否</td>
  38. </tr>
  39. <tr>
  40. <td class="editTableValue" colspan="2"><b>允许调度到此活动:</b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>是
  41. <input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>否</td>
  42. </tr>
  43. </table>
  44. </div>
  45. <div title="定时" class="MWFTab">
  46. <div class="editTableHeadTitle">定时方式</div>
  47. <div style="padding: 10px; border-bottom: 1px solid #cccccc;">
  48. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}delayMinuteEditArea').setStyle('display', 'block'); $('text{$.id}delayUntilEditArea').setStyle('display', 'none');}" name="delayType" text{($.delayType=='minute')?'checked':''} type="radio" value="minute" checked/>延时指定的分钟后执行
  49. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}delayMinuteEditArea').setStyle('display', 'none'); $('text{$.id}delayUntilEditArea').setStyle('display', 'block');}"name="delayType" text{($.delayType=='until')?'checked':''} type="radio" value="until"/>指定一个时间点执行
  50. </div>
  51. <div id="text{$.id}delayMinuteEditArea" style="display: text{($.delayType=='minute')?'block':'none'}; margin-top: 5px;">
  52. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  53. <tr>
  54. <td class="editTableValue" colspan="2"><b>计算工作时间:</b>
  55. <input class="editTableRadio" name="workMinute" text{($.workMinute)?'checked':''} type="radio" value="true"/>是
  56. <input class="editTableRadio" name="workMinute" text{(!$.workMinute)?'checked':''} type="radio" value="false"/>否
  57. </td>
  58. </tr>
  59. <tr>
  60. <td class="editTableValue" style="width: 80px;"><b>指定分钟:</b></td>
  61. <td class="editTableValue"><input type="text" name="delayMinute" value="text{$.delayMinute}" class="editTableInput"/></td>
  62. </tr>
  63. </table>
  64. </div>
  65. <div id="text{$.id}delayUntilEditArea" style="display: text{($.delayType=='until')?'block':'none'}; margin-top: 5px;">
  66. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  67. <tr>
  68. <td class="editTableValue" style="width: 80px;"><b>指定时间:</b></td>
  69. <td class="editTableValue"><div class="MWFDateTime"><input class="editTableInput" readonly type="text" name="delayTime" value="text{$.delayTime}" /></div></td>
  70. </tr>
  71. </table>
  72. </div>
  73. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  74. <tr>
  75. <td class="editTableValue" style="width: 80px;"><b>指定数据路径:</b></td>
  76. <td class="editTableValue"><input type="text" name="delayDataPath" value="text{$.delayDataPath}" class="editTableInput"/></td>
  77. </tr>
  78. </table>
  79. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  80. <tr>
  81. <td class="editTableValue"><b>通过脚本指定</b></td>
  82. </tr>
  83. </table>
  84. <div class="MWFScript" name="delayScript"></div>
  85. <div class="MWFScriptText" name="delayScriptText"></div>
  86. </div>
  87. <div title="事件" class="MWFTab" data-o2-advanced="yes">
  88. <div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
  89. <div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeArriveScript || $.beforeArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
  90. <div style="margin-left: 20px; padding: 0px 5px;">工作到达前</div>
  91. </>
  92. <div style="display: none; overflow:hidden; border-left: 10px solid #EEEEEE; border-bottom: 10px solid #EEEEEE;">
  93. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  94. <tr>
  95. <td class="editTableTitle">文件收到前:</td>
  96. <td class="editTableValue">
  97. <div class="MWFScript" name="beforeArriveScript"></div>
  98. </td>
  99. </tr>
  100. </table>
  101. <div class="MWFScriptText" name="beforeArriveScriptText"></div><hr />
  102. </div>
  103. <div style="line-height: 20px; height: 46px; border-bottom: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC; background-color:#f6f6f6;">
  104. <div style="height: 46px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/down.png) no-repeat center center;"></div>
  105. <div style="margin-left: 20px; padding: 3px 10px; text-align: center; color: #666666;">执行Arrive操作<br/>活动属性设置</div>
  106. </div>
  107. <div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
  108. <div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.afterArriveScript || $.afterArriveScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
  109. <div style="margin-left: 20px; padding: 0px 5px;">文件收到后</div>
  110. </div>
  111. <div style="display: none; overflow:hidden; border-left: 10px solid #EEEEEE; border-bottom: 10px solid #EEEEEE;">
  112. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  113. <tr>
  114. <td class="editTableTitle">文件收到后:</td>
  115. <td class="editTableValue">
  116. <div class="MWFScript" name="afterArriveScript"></div>
  117. </td>
  118. </tr>
  119. </table>
  120. <div class="MWFScriptText" name="afterArriveScriptText"></div><hr />
  121. </div>
  122. <div style="line-height: 20px; height: 26px; border-bottom: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC">
  123. <div style="height: 26px; background: url(../x_component_process_ProcessDesigner/$Process/down16.png) no-repeat center center;"></div>
  124. </div>
  125. <div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
  126. <div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeExecuteScript || $.beforeExecuteScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
  127. <div style="margin-left: 20px; padding: 0px 5px;">活动执行前</div>
  128. </div>
  129. <div style="display: none; overflow:hidden; border-left: 10px solid #EEEEEE; border-bottom: 10px solid #EEEEEE;">
  130. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  131. <tr>
  132. <td class="editTableTitle">活动执行前:</td>
  133. <td class="editTableValue">
  134. <div class="MWFScript" name="beforeExecuteScript"></div>
  135. </td>
  136. </tr>
  137. </table>
  138. <div class="MWFScriptText" name="beforeExecuteScriptText"></div><hr />
  139. </div>
  140. <div style="line-height: 20px; height: 46px; border-bottom: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC; background-color:#f6f6f6;">
  141. <div style="height: 46px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/down.png) no-repeat center center;"></div>
  142. <div style="margin-left: 20px; padding: 3px 10px; text-align: center; color: #666666;">执行Execute操作<br/>执行自动活动任务</div>
  143. </div>
  144. <div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
  145. <div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.afterExecuteScript || $.afterExecuteScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
  146. <div style="margin-left: 20px; padding: 0px 5px;">活动执行后</div>
  147. </div>
  148. <div style="display: none; overflow:hidden; border-left: 10px solid #EEEEEE; border-bottom: 10px solid #EEEEEE;">
  149. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  150. <tr>
  151. <td class="editTableTitle">文件流转后:</td>
  152. <td class="editTableValue">
  153. <div class="MWFScript" name="afterExecuteScript"></div>
  154. </td>
  155. </tr>
  156. </table>
  157. <div class="MWFScriptText" name="afterExecuteScriptText"></div><hr />
  158. </div>
  159. <div style="line-height: 20px; height: 26px; border-bottom: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC">
  160. <div style="height: 26px; background: url(../x_component_process_ProcessDesigner/$Process/down16.png) no-repeat center center;"></div>
  161. </div>
  162. <div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
  163. <div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.beforeInquireScript || $.beforeInquireScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
  164. <div style="margin-left: 20px; padding: 0px 5px;">路由查询前</div>
  165. </div>
  166. <div style="display: none; overflow:hidden; border-left: 10px solid #EEEEEE; border-bottom: 10px solid #EEEEEE;">
  167. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  168. <tr>
  169. <td class="editTableTitle">路由查询前:</td>
  170. <td class="editTableValue">
  171. <div class="MWFScript" name="beforeInquireScript"></div>
  172. </td>
  173. </tr>
  174. </table>
  175. <div class="MWFScriptText" name="beforeInquireScriptText"></div><hr />
  176. </div>
  177. <div style="line-height: 20px; height: 46px; border-bottom: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC; background-color:#f6f6f6;">
  178. <div style="height: 46px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/down.png) no-repeat center center;"></div>
  179. <div style="margin-left: 20px; padding: 3px 10px; text-align: center; color: #666666;">执行Inquire操作<br/>查询到达下一个活动的路由</div>
  180. </div>
  181. <div onclick="var node = this.getNext(); if (node.getStyle('display')=='none'){node.setStyle('display', 'block');}else{node.setStyle('display', 'none');}" style="cursor: pointer; line-height: 28px; height: 30px; font-weight: bold; background-color: #EEEEEE;">
  182. <div style="height: 30px; width: 30px; float: left; background: url(../x_component_process_ProcessDesigner/$Process/text{($.afterInquireScript || $.afterInquireScriptText) ? "event_code" : "event"}.png) no-repeat center center;"></div>
  183. <div style="margin-left: 20px; padding: 0px 5px;">路由查询后</div>
  184. </div>
  185. <div style="display: none; overflow:hidden; border-left: 10px solid #EEEEEE; border-bottom: 10px solid #EEEEEE;">
  186. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  187. <tr>
  188. <td class="editTableTitle">路由查询后:</td>
  189. <td class="editTableValue">
  190. <div class="MWFScript" name="afterInquireScript"></div>
  191. </td>
  192. </tr>
  193. </table>
  194. <div class="MWFScriptText" name="afterInquireScriptText"></div><hr />
  195. </div>
  196. </div>
  197. </div>