rekonConfig_createReconProcess.jsp 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doCreateReconProcess(){
  5. var x = window.confirm("<bean:message key="confirm.create"/>")
  6. if (x) {
  7. document.forms.reconProcess.action.value="create_reconProcess_ok";
  8. document.forms.reconProcess.post.value = "true";
  9. document.forms.reconProcess.submit();
  10. }
  11. }
  12. function doBack(){
  13. document.forms.reconProcess.action.value="list";
  14. document.forms.reconProcess.clear.value="true";
  15. document.forms.reconProcess.submit();
  16. }
  17. function doAddReconProcess(){
  18. document.forms.reconProcess.addReconProcessBtn.disabled=true;
  19. document.forms.reconProcess.action.value="add_reconProcess";
  20. document.forms.reconProcess.submit();
  21. }
  22. function doEditReconProcess(sequence){
  23. document.forms.reconProcess.action.value="edit_reconProcess";
  24. document.forms.reconProcess.sequence.value=sequence;
  25. document.forms.reconProcess.submit();
  26. }
  27. function doDeleteReconProcess(sequence){
  28. var x = window.confirm("<bean:message key="confirm.delete"/>");
  29. if(x){
  30. document.forms.reconProcess.action.value="delete_reconProcess";
  31. document.forms.reconProcess.sequence.value=sequence;
  32. document.forms.reconProcess.submit();
  33. }
  34. }
  35. -->
  36. </script>
  37. <!-- CONTENT -->
  38. <form name="reconProcess" method="post" action="rekonConfig.do">
  39. <input type="hidden" name="action"/>
  40. <input type="hidden" name="clear"/>
  41. <input type="hidden" name="sequence"/>
  42. <input type="hidden" name="post"/>
  43. <logic:notEmpty name="idx"><input type="hidden" name="idx" value="<bean:write name="idx"/>"></logic:notEmpty>
  44. <input type="hidden" name="ts" value="<logic:notEmpty name="ts"><bean:write name="ts" /></logic:notEmpty>">
  45. <input type="hidden" name="redirect" value="create_reconProcess"/>
  46. <!--td width="80%" valign="top"-->
  47. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  48. <td class="titleHeader" align="left"><bean:message key="project.reconConfig.key"/> CREATE</td>
  49. </table>
  50. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  51. <td>
  52. <tr>
  53. <td width="25%" class="titleField"><a href="rekonConfig.do?action=create&clear=true">Define <bean:message key="project.channel.key"/></a></td>
  54. <td width="25%" class="titleField"><a href="rekonConfig.do?action=create_reconProcess&clear=true">Define <bean:message key="project.reconProcess.key"/></a></td>
  55. <td width="25%" class="titleField"><a href="rekonConfig.do?action=create_reconAction&clear=true">Define <bean:message key="project.reconAction.key"/></a></td>
  56. <td width="25%" class="titleField"><a href="rekonConfig.do?action=create_actionConfig&clear=true">Define<bean:message key="project.actionConfig.key"/></a></td>
  57. </tr>
  58. </td>
  59. </table>
  60. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  61. <tr>
  62. <td align="center">
  63. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  64. <tr>
  65. <td><b>DEFINE <bean:message key="project.reconProcess.key"/></b></td>
  66. </tr>
  67. <BR>
  68. <tr><td colspan="6"><html:errors/></td></tr>
  69. <tr>
  70. <td width="15%"><b><bean:message key="reconProcess.channelFk.key"/></b></td>
  71. <td width="1%">:</td>
  72. <td width="84%" colspan="5" align="left">
  73. <select name="channelFk">
  74. <option value="">-- Pilih Salah Satu --</option>
  75. <logic:notEmpty name="channelFkList">
  76. <logic:iterate id="channelFkElement" name="channelFkList">
  77. <option value="<bean:write name="channelFkElement" property="channelPk"/>"
  78. <logic:notEmpty name="reconProcesses_${ts}" property="channelFk">
  79. <logic:equal name="reconProcesses_${ts}" property="channelFk" value="${channelFkElement.channelFk}">
  80. SELECTED
  81. </logic:equal>
  82. </logic:notEmpty>
  83. >
  84. <bean:write name="channelFkElement" property="channelName"/></option>
  85. </logic:iterate>
  86. </logic:notEmpty>
  87. </select>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td width="15%"></td>
  92. <td width="10%"></td>
  93. <td width="30%"></td>
  94. <td colspan="4">&nbsp;</td>
  95. </tr>
  96. <!-- LIST ADD RECON PROCESS -->
  97. <tr>
  98. <td colspan="7">
  99. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  100. <tr>
  101. <td class="titleField" height="22" width="5%" align="center"><bean:message key="reconProcess.no.key"/></td>
  102. <td nowrap="nowrap" class="titleField" width="30%"><bean:message key="reconProcess.reconprocess.key"/></td>
  103. <td class="titleField" width="25%"><bean:message key="reconProcess.startRecon.key"/></td>
  104. <td class="titleField" width="30%"><bean:message key="reconProcess.formType.key"/></td>
  105. <td class="titleField" width="10%" >&nbsp;</td>
  106. </tr>
  107. <!-- START RECON PROCESS -->
  108. <logic:notEmpty name="channel_${ts}" property="reconProcesses">
  109. <% int index = 0; %>
  110. <logic:iterate id="element_reconProcess" name="channel_${ts}" property="reconProcesses">
  111. <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
  112. <td align="center"><%=++seq%>&nbsp;</td>
  113. <td align="left">&nbsp;<bean:write name="element_reconProcess" property="reconProcess"/></td>
  114. <td align="left">&nbsp;<bean:write name="element_reconProcess" property="startRecon"/></td>
  115. <td align="left"><bean:write name="element_reconProcess" property="formType"/>&nbsp;</td>
  116. <td align="center">
  117. <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditReconProcess(<%=index%>);" alt="edit"></a>
  118. <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleteReconProcess(<%=index%>);" alt="remove"></a>
  119. </td>
  120. </tr>
  121. <% index++; %>
  122. </logic:iterate>
  123. </logic:notEmpty>
  124. </table>
  125. </td>
  126. </tr>
  127. <!-- END LIST ADD RECON PROCESS -->
  128. <!-- ADD ANAK -->
  129. <tr>
  130. <td colspan="7"><table width="100%" border="0" cellspacing="1" cellpadding="2">
  131. <tr>
  132. <td width="5%" align="left" valign="top"></td>
  133. <td width="30%" align="left" valign="top"><input type="text" name="reconProcessData" value="<logic:notEmpty name="reconProcesses_${ts}" property="reconProcess"><bean:write name="reconProcesses_${ts}" property="reconProcess"/></logic:notEmpty>"></td>
  134. <td width="25%" align="left" valign="top"><input type="text" name="startRecon" value="<logic:notEmpty name="reconProcesses_${ts}" property="startRecon"><bean:write name="reconProcesses_${ts}" property="startRecon"/></logic:notEmpty>"></td>
  135. <td width="30%" align="left" valign="top"><input type="text" name="formType" value="<logic:notEmpty name="reconProcesses_${ts}" property="formType"><bean:write name="reconProcesses_${ts}" property="formType"/></logic:notEmpty>"></td>
  136. <td width="10%" align="left" valign="top"><input type="button" name="addReconProcessBtn" value="<bean:message key="button.add"/>" onclick="javascript:doAddReconProcess();"></td>
  137. </tr>
  138. <tr>
  139. <td width="15%"></td>
  140. <td width="10%"></td>
  141. <td width="30%"></td>
  142. <td colspan="4">&nbsp;</td>
  143. </tr>
  144. <tr>
  145. <td width="15%"></td>
  146. <td width="10%"></td>
  147. <td width="30%"><input type="button" name="addReconProcessBtn" value="<bean:message key="button.submit"/>" onclick="javascript:doCreateReconProcess();"/></td>
  148. <td colspan="4">&nbsp;</td>
  149. </tr>
  150. </table></td>
  151. </tr>
  152. <!-- END ANAK -->
  153. </table>
  154. </td>
  155. </tr>
  156. <tr>
  157. <td>&nbsp;</td>
  158. </tr>
  159. </table>
  160. </td>
  161. </form>
  162. <!-- END CONTENT -->
  163. <%@ include file="../common/footer.jsp"%>