| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <%@ include file="../common/header.jsp" %>
- <script type="text/javascript" language="javascript">
- <!--
- function doAddMappinggroup(){
- var x = window.confirm("Add Mapping Group?")
- if (x) {
- document.forms.mappingGroup.action.value="add_mapping_group_ok";
- document.forms.mappingGroup.post.value = "true";
- document.forms.mappingGroup.submit();
- }
- }
- function doBack(){
- document.forms.mappingGroup.action.value="newCreate";
- document.forms.mappingGroup.clear.value="true";
- document.forms.mappingGroup.submit();
- }
- function doAddMappingGroupLine(){
- alert('doAddMappingGroupLine');
- document.forms.mappingGroup.addMappingGroupLineBtn.disabled=true;
- document.forms.mappingGroup.action.value="add_mappingGroupLine";
- document.forms.mappingGroup.submit();
- }
-
- function doEditMappingGroupLine(sequence){
- document.forms.mappingGroup.action.value="edit_mappingGroupLine";
- document.forms.mappingGroup.itemFocus.value="id";
- document.forms.mappingGroup.sequence.value=sequence;
-
- document.forms.mappingGroup.submit();
- }
- function doDeleteMappingGroupLine(sequence){
- var x = window.confirm("<bean:message key="confirm.delete"/>");
- if(x){
- document.forms.mappingGroup.action.value="delete_mappingGroupLine";
- //document.forms.mappingGroup.itemFocus.value="name";
- document.forms.mappingGroup.sequence.value=sequence;
-
- document.forms.mappingGroup.submit();
- }
- }
- -->
- </script>
- <!-- CONTENT -->
- <FORM name="mappingGroup" method="post" action="mapping.do">
- <input type="hidden" name="action">
- <input type="hidden" name="post">
- <input type="hidden" name="clear">
- <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="createNewMappingGroup">
- <input type="hidden" name="sequence">
- <!--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.mappingGroup.key"/> CREATE</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><html:errors/></td></tr>
- <tr>
- <td width="25%"><b><bean:message key="mappingGroup.source.key"/></b></td>
- <td width="1%">:</td>
- <td width="74%" colspan="2">
- <html:textarea cols="40" rows="5" name="mappingGroups_${ts}" property="source"/>
- </td>
- </tr>
- <tr>
- <td width="25%"><b><bean:message key="mappingGroup.target.key"/></b></td>
- <td width="1%">:</td>
- <td width="74%" colspan="2">
- <html:textarea cols="40" rows="5" name="mappingGroups_${ts}" property="target"/>
- </td>
- </tr>
-
- <tr>
- <td width="25%"><b><bean:message key="mappingGroup.includeMappingId.key"/> - <bean:message key="mappingGroup.includeId.key"/></b></td>
- <td width="1%">:</td>
- <td width="74%" colspan="2">
- <select name="includeId">
- <option value="">-- Pilih Salah Satu --</option>
- <logic:notEmpty name="mappingGroupIdList">
- <logic:iterate id="mappingGroupElement" name="mappingGroupIdList">
- <option value="<bean:write name="mappingGroupElement" property="id.mappingGroupId"/>,<bean:write name="mappingGroupElement" property="id.mappingId"/>"
- <logic:notEmpty name="mappingGroupElement" property="id.mappingGroupId">
- <logic:equal name="mappingGroupElement" property="id" value="${mappingGroupElement.id.mappingGroupId}">
-
- </logic:equal>
- </logic:notEmpty>
- >
- <bean:write name="mappingGroupElement" property="id.mappingId"/> - <bean:write name="mappingGroupElement" property="id.mappingGroupId"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- </tr>
- <tr>
- <td width="25%"></td>
- <td width="1%"></td>
- <td width="74%" colspan="2"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>
- <input type="button" value="Add Mapping Group" onclick="javascript:doAddMappinggroup();"/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td><b><bean:message key="project.mappinggroupLine.key"/></b></td>
- </tr>
- <!-- LIST ADD CHARGES ITEM -->
- <tr>
- <td>
- <table width="100%" border="0" cellspacing="1" cellpadding="1">
- <tr>
- <td class="titleField" height="22"><bean:message key="mappingGroupLine.no.key"/></td>
- <%/*<td class="titleField"><bean:message key="mappingGroupLine.mappingId.key"/></td>*/%>
- <%/*<td class="titleField"><bean:message key="mappingGroupLine.mappingGroupId.key"/></td>*/%>
- <td class="titleField"><bean:message key="mappingGroupLine.name.key"/></td>
- <td class="titleField"><bean:message key="mappingGroupLine.text.key"/></td>
- <td class="titleField"> </td>
- </tr>
- <!-- START MAPPING GROUP LINE -->
- <logic:notEmpty name="mappingGroups_${ts}" property="mappingGroupLines">
- <% int index = 0; %>
- <logic:iterate id="element_mappingGroupLines" name="mappingGroups_${ts}" property="mappingGroupLines">
- <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
- <td align="center"><%=++seq%> </td>
- <%/*<td align="left"><bean:write name="element_mappingGroupLines" property="id.mappingId"/></td>*/%>
- <%/*<td align="left"><bean:write name="element_mappingGroupLines" property="id.mappingGroupId"/></td>*/%>
- <td align="left"><bean:write name="element_mappingGroupLines" property="id.name"/></td>
- <td align="left"><bean:write name="element_mappingGroupLines" property="text"/></td>
- <td align="center">
- <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditMappingGroupLine(<%=index%>);" alt="edit"></a>
- <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleteMappingGroupLine(<%=index%>);" alt="remove"></a>
- </td>
- </tr>
- <% index++; %>
- </logic:iterate>
- </logic:notEmpty>
- </table>
- </td>
- </tr>
- <!-- END MAPPING GROUP LINE -->
- <!-- ADD ANAK -->
- <tr>
- <td>
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="25%" align="left" valign="top"><b><bean:message key="mappingGroupLine.name.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="74%" align="left" valign="top">
- <input type="text" name="name" value="<logic:notEmpty name="mappingGroupLines_${ts}" property="id"><bean:write name="mappingGroupLines_${ts}" property="id.name"/></logic:notEmpty>">
- </td>
- </tr>
- <tr>
- <td width="25%" align="left" valign="top"><b><bean:message key="mappingGroupLine.text.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="74%" align="left" valign="top">
- <html:textarea cols="40" rows="5" name="mappingGroupLines_${ts}" property="text"/>
- </td>
- </tr>
- <tr>
- <td width="25%" align="left" valign="top"> </td>
- <td width="1%" align="left" valign="top"> </td>
- <td width="74%" align="left" valign="top">
- <input type="button" name="addMappingGroupLineBtn" value="<bean:message key="button.add"/>" onclick="javascript:doAddMappingGroupLine();">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <!-- END ANAK -->
- </table>
- </td>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|