| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <%@ include file="../common/header.jsp" %>
- <script type="text/javascript" language="javascript">
- <!--
- function doCreateReconAction(){
- var x = window.confirm("<bean:message key="confirm.create"/>")
- if (x) {
- document.forms.reconAction.action.value="create_reconProcess_ok";
- document.forms.reconAction.post.value = "true";
- document.forms.reconAction.submit();
- }
- }
- function doLoadChannelprocess() {
- //var form = document.forms.reconAction;
- //var channel = form.channelFk.value;
- //alert(channel);
- //loadOneValueAJAX("rekonConfig.do?action=generateChannelReconProcessTree&clear=true&channelFk=" +channel+ "&ts=" +new Date().getTime(), "reconProcess_div");
- var form = document.forms.reconAction;
- var channelFk = form.channelFk.value;
- alert(channelFk);
- document.forms.reconAction.action.value="search_channelProcess";
- document.forms.reconAction.clear.value="true";
- document.forms.reconAction.submit();
- doDisable(document.forms.reconAction, "button");
- }
-
-
- function doSearch(){
- document.forms.reconAction.action.value="search_channelProcess";
- document.forms.reconAction.clear.value="true";
- document.forms.reconAction.submit();
- doDisable(document.forms.reconAction, "button");
- }
-
-
- function doBack(){
- document.forms.reconAction.action.value="list";
- document.forms.reconAction.clear.value="true";
- document.forms.reconAction.submit();
- }
-
- function doEditReconProcessAddReconAction(sequence){
- var form = document.forms.reconAction;
- form.action.value="edit_reconProcessAddReconAction";
- form.sequence.value=sequence;
- form.submit();
- doDisable(form, "button");
- doDisableImage(form);
- }
-
- function doEditReconAction(sequence){
- document.forms.reconAction.action.value="edit_reconAction";
- document.forms.reconAction.sequence.value=sequence;
-
- document.forms.reconAction.submit();
- }
- function doDeleteReconAction(sequence){
- var x = window.confirm("<bean:message key="confirm.delete"/>");
- if(x){
- document.forms.reconAction.action.value="delete_reconAction";
- document.forms.reconAction.sequence.value=sequence;
- document.forms.reconAction.submit();
- }
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="reconAction" method="post" action="rekonConfig.do">
- <input type="hidden" name="action"/>
- <input type="hidden" name="clear"/>
- <input type="hidden" name="sequence"/>
- <input type="hidden" name="post"/>
- <logic:notEmpty name="idx"><input type="hidden" name="idx" value="<bean:write name="idx"/>"></logic:notEmpty>
- <input type="hidden" name="ts" value="<logic:notEmpty name="ts"><bean:write name="ts" /></logic:notEmpty>">
- <input type="hidden" name="redirect" value="create_reconAction"/>
- <!--td width="80%" valign="top"-->
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <td class="titleHeader" align="left"><bean:message key="project.reconConfig.key"/> CREATE</td>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <td>
- <tr>
- <td width="25%" class="titleField"><a href="rekonConfig.do?action=create&clear=true">Define <bean:message key="project.channel.key"/></a></td>
- <td width="25%" class="titleField"><a href="rekonConfig.do?action=create_reconProcess&clear=true">Define <bean:message key="project.reconProcess.key"/></a></td>
- <td width="25%" class="titleField"><a href="rekonConfig.do?action=create_reconAction&clear=true">Define <bean:message key="project.reconAction.key"/></a></td>
- <td width="25%" class="titleField"><a href="rekonConfig.do?action=create_actionConfig&clear=true">Define<bean:message key="project.actionConfig.key"/></a></td>
- </tr>
- </td>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td><b>DEFINE <bean:message key="project.reconAction.key"/></b></td>
- </tr>
- <BR>
- <tr><td colspan="6"><html:errors/></td></tr>
- <logic:empty name="channel_${ts}" property="channelPk">
- <tr>
- <td width="15%"><b><bean:message key="reconProcess.channelFk.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="5" align="left">
- <select name="channelFk">
- <option value="">-- Pilih Salah Satu --</option>
- <logic:notEmpty name="channelFkList">
- <logic:iterate id="channelFkElement" name="channelFkList">
- <option value="<bean:write name="channelFkElement" property="channelPk"/>"
- <logic:notEmpty name="reconActions_${ts}" property="channelFk">
- <logic:equal name="reconActions_${ts}" property="channelPk" value="${channelFkElement.channelPk}">
- SELECTED
- </logic:equal>
- </logic:notEmpty>
- >
- <bean:write name="channelFkElement" property="channelName"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doLoadChannelprocess();">
- </td>
- </tr>
- </logic:empty>
- <logic:notEmpty name="channel_${ts}" property="channelPk">
- <tr>
- <td width="15%"><b><bean:message key="reconProcess.channelFk.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="5"><bean:write name="channel_${ts}" property="channelName"/></td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="reconProcess.reconprocess.key"/></b></td>
- <td width="1%"></td>
- <td width="30%"></td>
- <td colspan="4"> </td>
- </tr>
- <!-- LIST ADD RECON PROCESS -->
- <tr>
- <td colspan="7">
- <table width="100%" border="0" cellspacing="1" cellpadding="1">
- <tr>
- <td class="titleField" height="22" width="5%" align="center"><bean:message key="reconProcess.no.key"/></td>
- <td nowrap="nowrap" class="titleField" width="30%"><bean:message key="reconProcess.reconprocess.key"/></td>
- <td class="titleField" width="25%"><bean:message key="reconProcess.startRecon.key"/></td>
- <td class="titleField" width="30%"><bean:message key="reconProcess.formType.key"/></td>
- <td class="titleField" width="10%" > </td>
- </tr>
- <!-- START RECON PROCESS -->
- <logic:notEmpty name="channel_${ts}" property="reconProcesses">
- <% int index = 0; %>
- <logic:iterate id="element_reconProcess" name="channel_${ts}" property="reconProcesses">
- <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
- <td align="center"><%=++seq%> </td>
- <td align="left"> <bean:write name="element_reconProcess" property="reconProcess"/></td>
- <td align="left"> <bean:write name="element_reconProcess" property="startRecon"/></td>
- <td align="left"><bean:write name="element_reconProcess" property="formType"/> </td>
- <td align="center">
- <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditReconProcessAddReconAction(<%=index%>);" alt="edit"></a>
- </td>
- </tr>
- <% index++; %>
- </logic:iterate>
- </logic:notEmpty>
- </table>
- </td>
- </tr>
- <!-- END LIST ADD RECON PROCESS -->
-
- <%/*<tr align = "left">
- <td width="15%"></td>
- <td width="1%"></td>
- <td align="left" width="84%" colspan="4">
- <div id="reconProcess_div" style=""></div>
- </td>
- </tr>*/%>
-
- <!-- ADD ANAK -->
- <!--================================================================================================================================================================-->
- <logic:notEmpty name="reconProcesses_${ts}">
- <tr>
- <td>
-
- </td>
- <td>
- <input type="text" name="reconProcess" size="15" maxlength="25" value="<bean:write name="reconProcesses_${ts}" property="reconProcess" />">
- </td>
- <td>
- <input type="text" name="startRecon" size="60" maxlength="255" value="<bean:write name="reconProcesses_${ts}" property="startRecon" />">
- </td>
- <td>
- <input type="text" name="formType" size="60" maxlength="255" value="<bean:write name="reconProcesses_${ts}" property="formType" />">
- </td>
- <td> </td>
- </tr>
- <tr>
- <td colspan="7">
- <table border="0" width="98%" align="center" cellpadding="2" cellspacing="1">
- <tr>
- <td> </td>
- <td colspan="6"><strong><bean:message key="project.reconAction.key" /></strong></td>
- </tr>
- <tr>
- <td width="3%"> </td>
- <td class="titleField" width="10%"><b><bean:message key="reconProcess.reconstep.key"/></b></td>
- <td class="titleField" width="25%"><bean:message key="reconProcess.recontypeFk.key"/></td>
- <td class="titleField" width="25%"><bean:message key="reconProcess.scheduletypeFk.key"/></td>
- <td class="titleField" width="30%"><bean:message key="reconProcess.recondesc.key"/></td>
- <td class="titleField" width="10%"> </td>
- </tr>
- <logic:notEmpty name="reconProcesses_${ts}" property="reconActions">
- <logic:iterate id="element_reconActions" name="reconProcesses_${ts}" property="reconActions" indexId="index">
- <tr bgcolor="<%= index.intValue()%2 == 0 ? "FFFFFF" : "EDEDE8" %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<%= index.intValue()%2 == 0 ? "FFFFFF" : "EDEDE8" %>');">
- <td width="3%"> </td>
- <td align="left"><%=index.intValue()+1%></td>
- <td align="left"><bean:write name="element_reconActions" property="reconstep"/></td>
- <td align="left"><bean:write name="element_reconActions" property="recontypeFk.name" /></td>
- <td align="left"><bean:write name="element_reconActions" property="scheduletypeFk.name" /></td>
- <td align="left"><bean:write name="element_reconActions" property="recondesc.name" /></td>
- <td align="center">
- <img alt="<bean:message key="button.edit" /> <bean:message key="project.reconAction.key" />" src="images/edit.gif" onclick="javascript:doEditReconAction(<%=index%>);">
- <img alt="<bean:message key="button.remove" /> <bean:message key="project.reconAction.key" />" src="images/trash.gif" onclick="javascript:doDeleteReconAction(<%=index%>);">
- </td>
- </tr>
- </logic:iterate>
- </logic:notEmpty>
- <tr>
- <td>
-
- </td>
- <td>
-
- </td>
- <td>
- <input type="text" name="reconstep" size="15" maxlength="25" value="<bean:write name="reconActions_${ts}" property="reconstep"/>">
- </td>
- <td>
- <input type="text" name="recontypeFk" size="42" maxlength="255" value="<bean:write name="reconActions_${ts}" property="recontypeFk"/>">
- </td>
- <td>
- <input type="text" name="scheduletypeFk" size="15" maxlength="25" value="<bean:write name="reconActions_${ts}" property="reconstep"/>">
- </td>
- <td>
- <input type="text" name="recondesc" size="42" maxlength="255" value="<bean:write name="reconActions_${ts}" property="recondesc"/>">
- </td>
- <td align="center">
- <input type="button" class="frmButton" value="<bean:message key="button.add" /> <bean:message key="project.reconAction.key" />" onclick="javascript:doAddReconAction();">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr><td> </td></tr>
- <tr><td> </td></tr>
- <tr><td colspan="7" align="center"><input type="button" class="frmButton" value="<bean:message key="button.add" /> <bean:message key="project.reconAction.key" />" onclick="javascript:doAddProjectPit();"></td></tr>
- </logic:notEmpty>
- <!--=================================================================================================================================================================-->
- <!-- END ANAK -->
- </logic:notEmpty>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </table>
- </td>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|