1
0

rekonConfig_createReconAction.jsp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doCreateReconAction(){
  5. var x = window.confirm("<bean:message key="confirm.create"/>")
  6. if (x) {
  7. document.forms.reconAction.action.value="create_reconProcess_ok";
  8. document.forms.reconAction.post.value = "true";
  9. document.forms.reconAction.submit();
  10. }
  11. }
  12. function doLoadChannelprocess() {
  13. //var form = document.forms.reconAction;
  14. //var channel = form.channelFk.value;
  15. //alert(channel);
  16. //loadOneValueAJAX("rekonConfig.do?action=generateChannelReconProcessTree&clear=true&channelFk=" +channel+ "&ts=" +new Date().getTime(), "reconProcess_div");
  17. var form = document.forms.reconAction;
  18. var channelFk = form.channelFk.value;
  19. alert(channelFk);
  20. document.forms.reconAction.action.value="search_channelProcess";
  21. document.forms.reconAction.clear.value="true";
  22. document.forms.reconAction.submit();
  23. doDisable(document.forms.reconAction, "button");
  24. }
  25. function doSearch(){
  26. document.forms.reconAction.action.value="search_channelProcess";
  27. document.forms.reconAction.clear.value="true";
  28. document.forms.reconAction.submit();
  29. doDisable(document.forms.reconAction, "button");
  30. }
  31. function doBack(){
  32. document.forms.reconAction.action.value="list";
  33. document.forms.reconAction.clear.value="true";
  34. document.forms.reconAction.submit();
  35. }
  36. function doEditReconProcessAddReconAction(sequence){
  37. var form = document.forms.reconAction;
  38. form.action.value="edit_reconProcessAddReconAction";
  39. form.sequence.value=sequence;
  40. form.submit();
  41. doDisable(form, "button");
  42. doDisableImage(form);
  43. }
  44. function doEditReconAction(sequence){
  45. document.forms.reconAction.action.value="edit_reconAction";
  46. document.forms.reconAction.sequence.value=sequence;
  47. document.forms.reconAction.submit();
  48. }
  49. function doDeleteReconAction(sequence){
  50. var x = window.confirm("<bean:message key="confirm.delete"/>");
  51. if(x){
  52. document.forms.reconAction.action.value="delete_reconAction";
  53. document.forms.reconAction.sequence.value=sequence;
  54. document.forms.reconAction.submit();
  55. }
  56. }
  57. -->
  58. </script>
  59. <!-- CONTENT -->
  60. <form name="reconAction" method="post" action="rekonConfig.do">
  61. <input type="hidden" name="action"/>
  62. <input type="hidden" name="clear"/>
  63. <input type="hidden" name="sequence"/>
  64. <input type="hidden" name="post"/>
  65. <logic:notEmpty name="idx"><input type="hidden" name="idx" value="<bean:write name="idx"/>"></logic:notEmpty>
  66. <input type="hidden" name="ts" value="<logic:notEmpty name="ts"><bean:write name="ts" /></logic:notEmpty>">
  67. <input type="hidden" name="redirect" value="create_reconAction"/>
  68. <!--td width="80%" valign="top"-->
  69. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  70. <td class="titleHeader" align="left"><bean:message key="project.reconConfig.key"/> CREATE</td>
  71. </table>
  72. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  73. <td>
  74. <tr>
  75. <td width="25%" class="titleField"><a href="rekonConfig.do?action=create&clear=true">Define <bean:message key="project.channel.key"/></a></td>
  76. <td width="25%" class="titleField"><a href="rekonConfig.do?action=create_reconProcess&clear=true">Define <bean:message key="project.reconProcess.key"/></a></td>
  77. <td width="25%" class="titleField"><a href="rekonConfig.do?action=create_reconAction&clear=true">Define <bean:message key="project.reconAction.key"/></a></td>
  78. <td width="25%" class="titleField"><a href="rekonConfig.do?action=create_actionConfig&clear=true">Define<bean:message key="project.actionConfig.key"/></a></td>
  79. </tr>
  80. </td>
  81. </table>
  82. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  83. <tr>
  84. <td align="center">
  85. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  86. <tr>
  87. <td><b>DEFINE <bean:message key="project.reconAction.key"/></b></td>
  88. </tr>
  89. <BR>
  90. <tr><td colspan="6"><html:errors/></td></tr>
  91. <logic:empty name="channel_${ts}" property="channelPk">
  92. <tr>
  93. <td width="15%"><b><bean:message key="reconProcess.channelFk.key"/></b></td>
  94. <td width="1%">:</td>
  95. <td width="84%" colspan="5" align="left">
  96. <select name="channelFk">
  97. <option value="">-- Pilih Salah Satu --</option>
  98. <logic:notEmpty name="channelFkList">
  99. <logic:iterate id="channelFkElement" name="channelFkList">
  100. <option value="<bean:write name="channelFkElement" property="channelPk"/>"
  101. <logic:notEmpty name="reconActions_${ts}" property="channelFk">
  102. <logic:equal name="reconActions_${ts}" property="channelPk" value="${channelFkElement.channelPk}">
  103. SELECTED
  104. </logic:equal>
  105. </logic:notEmpty>
  106. >
  107. <bean:write name="channelFkElement" property="channelName"/></option>
  108. </logic:iterate>
  109. </logic:notEmpty>
  110. </select>
  111. &nbsp;&nbsp;&nbsp;<input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doLoadChannelprocess();">
  112. </td>
  113. </tr>
  114. </logic:empty>
  115. <logic:notEmpty name="channel_${ts}" property="channelPk">
  116. <tr>
  117. <td width="15%"><b><bean:message key="reconProcess.channelFk.key"/></b></td>
  118. <td width="1%">:</td>
  119. <td width="84%" colspan="5"><bean:write name="channel_${ts}" property="channelName"/></td>
  120. </tr>
  121. <tr>
  122. <td width="15%"><b><bean:message key="reconProcess.reconprocess.key"/></b></td>
  123. <td width="1%"></td>
  124. <td width="30%"></td>
  125. <td colspan="4">&nbsp;</td>
  126. </tr>
  127. <!-- LIST ADD RECON PROCESS -->
  128. <tr>
  129. <td colspan="7">
  130. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  131. <tr>
  132. <td class="titleField" height="22" width="5%" align="center"><bean:message key="reconProcess.no.key"/></td>
  133. <td nowrap="nowrap" class="titleField" width="30%"><bean:message key="reconProcess.reconprocess.key"/></td>
  134. <td class="titleField" width="25%"><bean:message key="reconProcess.startRecon.key"/></td>
  135. <td class="titleField" width="30%"><bean:message key="reconProcess.formType.key"/></td>
  136. <td class="titleField" width="10%" >&nbsp;</td>
  137. </tr>
  138. <!-- START RECON PROCESS -->
  139. <logic:notEmpty name="channel_${ts}" property="reconProcesses">
  140. <% int index = 0; %>
  141. <logic:iterate id="element_reconProcess" name="channel_${ts}" property="reconProcesses">
  142. <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
  143. <td align="center"><%=++seq%>&nbsp;</td>
  144. <td align="left">&nbsp;<bean:write name="element_reconProcess" property="reconProcess"/></td>
  145. <td align="left">&nbsp;<bean:write name="element_reconProcess" property="startRecon"/></td>
  146. <td align="left"><bean:write name="element_reconProcess" property="formType"/>&nbsp;</td>
  147. <td align="center">
  148. <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditReconProcessAddReconAction(<%=index%>);" alt="edit"></a>
  149. </td>
  150. </tr>
  151. <% index++; %>
  152. </logic:iterate>
  153. </logic:notEmpty>
  154. </table>
  155. </td>
  156. </tr>
  157. <!-- END LIST ADD RECON PROCESS -->
  158. <%/*<tr align = "left">
  159. <td width="15%"></td>
  160. <td width="1%"></td>
  161. <td align="left" width="84%" colspan="4">
  162. <div id="reconProcess_div" style=""></div>
  163. </td>
  164. </tr>*/%>
  165. <!-- ADD ANAK -->
  166. <!--================================================================================================================================================================-->
  167. <logic:notEmpty name="reconProcesses_${ts}">
  168. <tr>
  169. <td>
  170. &nbsp;
  171. </td>
  172. <td>
  173. <input type="text" name="reconProcess" size="15" maxlength="25" value="<bean:write name="reconProcesses_${ts}" property="reconProcess" />">
  174. </td>
  175. <td>
  176. <input type="text" name="startRecon" size="60" maxlength="255" value="<bean:write name="reconProcesses_${ts}" property="startRecon" />">
  177. </td>
  178. <td>
  179. <input type="text" name="formType" size="60" maxlength="255" value="<bean:write name="reconProcesses_${ts}" property="formType" />">
  180. </td>
  181. <td>&nbsp;</td>
  182. </tr>
  183. <tr>
  184. <td colspan="7">
  185. <table border="0" width="98%" align="center" cellpadding="2" cellspacing="1">
  186. <tr>
  187. <td>&nbsp;</td>
  188. <td colspan="6"><strong><bean:message key="project.reconAction.key" /></strong></td>
  189. </tr>
  190. <tr>
  191. <td width="3%">&nbsp;</td>
  192. <td class="titleField" width="10%"><b><bean:message key="reconProcess.reconstep.key"/></b></td>
  193. <td class="titleField" width="25%"><bean:message key="reconProcess.recontypeFk.key"/></td>
  194. <td class="titleField" width="25%"><bean:message key="reconProcess.scheduletypeFk.key"/></td>
  195. <td class="titleField" width="30%"><bean:message key="reconProcess.recondesc.key"/></td>
  196. <td class="titleField" width="10%">&nbsp;</td>
  197. </tr>
  198. <logic:notEmpty name="reconProcesses_${ts}" property="reconActions">
  199. <logic:iterate id="element_reconActions" name="reconProcesses_${ts}" property="reconActions" indexId="index">
  200. <tr bgcolor="<%= index.intValue()%2 == 0 ? "FFFFFF" : "EDEDE8" %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<%= index.intValue()%2 == 0 ? "FFFFFF" : "EDEDE8" %>');">
  201. <td width="3%">&nbsp;</td>
  202. <td align="left"><%=index.intValue()+1%></td>
  203. <td align="left"><bean:write name="element_reconActions" property="reconstep"/></td>
  204. <td align="left"><bean:write name="element_reconActions" property="recontypeFk.name" /></td>
  205. <td align="left"><bean:write name="element_reconActions" property="scheduletypeFk.name" /></td>
  206. <td align="left"><bean:write name="element_reconActions" property="recondesc.name" /></td>
  207. <td align="center">
  208. <img alt="<bean:message key="button.edit" />&nbsp;<bean:message key="project.reconAction.key" />" src="images/edit.gif" onclick="javascript:doEditReconAction(<%=index%>);">
  209. <img alt="<bean:message key="button.remove" />&nbsp;<bean:message key="project.reconAction.key" />" src="images/trash.gif" onclick="javascript:doDeleteReconAction(<%=index%>);">
  210. </td>
  211. </tr>
  212. </logic:iterate>
  213. </logic:notEmpty>
  214. <tr>
  215. <td>
  216. &nbsp;
  217. </td>
  218. <td>
  219. &nbsp;
  220. </td>
  221. <td>
  222. <input type="text" name="reconstep" size="15" maxlength="25" value="<bean:write name="reconActions_${ts}" property="reconstep"/>">
  223. </td>
  224. <td>
  225. <input type="text" name="recontypeFk" size="42" maxlength="255" value="<bean:write name="reconActions_${ts}" property="recontypeFk"/>">
  226. </td>
  227. <td>
  228. <input type="text" name="scheduletypeFk" size="15" maxlength="25" value="<bean:write name="reconActions_${ts}" property="reconstep"/>">
  229. </td>
  230. <td>
  231. <input type="text" name="recondesc" size="42" maxlength="255" value="<bean:write name="reconActions_${ts}" property="recondesc"/>">
  232. </td>
  233. <td align="center">
  234. <input type="button" class="frmButton" value="<bean:message key="button.add" />&nbsp;<bean:message key="project.reconAction.key" />" onclick="javascript:doAddReconAction();">
  235. </td>
  236. </tr>
  237. </table>
  238. </td>
  239. </tr>
  240. <tr><td>&nbsp;</td></tr>
  241. <tr><td>&nbsp;</td></tr>
  242. <tr><td colspan="7" align="center"><input type="button" class="frmButton" value="<bean:message key="button.add" />&nbsp;<bean:message key="project.reconAction.key" />" onclick="javascript:doAddProjectPit();"></td></tr>
  243. </logic:notEmpty>
  244. <!--=================================================================================================================================================================-->
  245. <!-- END ANAK -->
  246. </logic:notEmpty>
  247. </table>
  248. </td>
  249. </tr>
  250. <tr>
  251. <td>&nbsp;</td>
  252. </tr>
  253. </table>
  254. </td>
  255. </form>
  256. <!-- END CONTENT -->
  257. <%@ include file="../common/footer.jsp"%>