mapping_detail.jsp 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doBack(){
  5. document.forms.mapping.action.value="list";
  6. document.forms.mapping.submit();
  7. }
  8. function doDetail(mappingId,mappingGroupId){
  9. document.forms.mapping.mappingId.value=mappingId;
  10. document.forms.mapping.mappingGroupId.value=mappingGroupId;
  11. document.forms.mapping.action.value="newDetailMappingGroupLine";
  12. document.forms.mapping.submit();
  13. }
  14. function doAddMappingGroup(id){
  15. document.forms.mapping.id.value=id;
  16. alert(document.forms.mapping.id.value);
  17. document.forms.mapping.addMappingGroupBtn.disabled=true;
  18. document.forms.mapping.action.value="newAddMappingGroup";
  19. //document.forms.mapping.itemFocus.value="id";
  20. document.forms.mapping.submit();
  21. }
  22. -->
  23. </script>
  24. <!-- CONTENT -->
  25. <form name="mapping" method="post" action="mapping.do">
  26. <input type="hidden" name="action" value ="">
  27. <input type="hidden" name="mappingId" value="">
  28. <input type="hidden" name="mappingGroupId" value="">
  29. <input type="hidden" name="id" value="">
  30. <input type="hidden" name="ts" value="<bean:write name="ts"/>">
  31. <!--td width="80%" valign="top"-->
  32. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  33. <tr>
  34. <td class="titleHeader"><bean:message key="project.mapping.key"/> - DETAIL</td>
  35. </tr>
  36. </table>
  37. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  38. <tr>
  39. <td align="center">
  40. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  41. <tr align = "left">
  42. <td width="15%"><b><bean:message key="mapping.id.key"/></b></td>
  43. <td width="1%">:</td>
  44. <td width="84%" colspan="2">
  45. <bean:write name="mapping_${ts}" property="id"/>
  46. </td>
  47. </tr>
  48. <tr align = "left">
  49. <td width="15%"><b><bean:message key="mapping.description.key"/></b></td>
  50. <td width="1%">:</td>
  51. <td align="left" width="84%" colspan="2">
  52. <bean:write name="mapping_${ts}" property="description"/>
  53. </td>
  54. </tr>
  55. <tr align = "left">
  56. <td width="15%"><b><bean:message key="mapping.modifiedBy.key"/></b></td>
  57. <td width="1%">:</td>
  58. <td align="left" width="84%" colspan="2">
  59. <bean:write name="mapping_${ts}" property="modifiedBy"/>
  60. </td>
  61. </tr>
  62. <tr align = "left">
  63. <td width="15%"><b><bean:message key="mapping.timestamp.key"/></b></td>
  64. <td width="1%">:</td>
  65. <td align="left" width="84%" colspan="2">
  66. <logic:notEmpty name="mapping_${ts}" property="timestamp">
  67. <bean:write name="mapping_${ts}" property="timestamp.time" format="yyyy-MM-dd HH:mm:ss.SSS"/>
  68. </logic:notEmpty>
  69. </td>
  70. <td>&nbsp;</td>
  71. </tr>
  72. <tr>
  73. <td>&nbsp;</td>
  74. <td>&nbsp;</td>
  75. <td>&nbsp;</td>
  76. <td>&nbsp;</td>
  77. </tr>
  78. </table>
  79. <br>
  80. <!--mapping TARGET-->
  81. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  82. <tr>
  83. <td class="titleHeader" colspan="7"><bean:message key="project.mappingGroup.key"/> - DETAIL</td>
  84. </tr>
  85. <tr>
  86. <td class="titleField" height="22" width="10%"><bean:message key="mappingGroup.no.key"/></td>
  87. <td class="titleField"><bean:message key="mappingGroup.id.key"/></td>
  88. <td class="titleField"><bean:message key="mappingGroup.source.key"/></td>
  89. <td class="titleField"><bean:message key="mappingGroup.target.key"/></td>
  90. <td class="titleField"><bean:message key="mappingGroup.includeMappingId.key"/></td>
  91. <td class="titleField"><bean:message key="mappingGroup.includeId.key"/></td>
  92. <td width="5%" class="titleField">&nbsp;</td>
  93. </tr>
  94. <logic:notEmpty name="mapping_${ts}" property="mappingGroups">
  95. <logic:iterate id="element_mappingGroups" name="mapping_${ts}" property="mappingGroups">
  96. <tr class="bgField">
  97. <td align="center"><%=++seq%>&nbsp;</td>
  98. <td nowrap="nowrap">
  99. &nbsp;<bean:write name="element_mappingGroups" property="id.mappingId"/> - <bean:write name="element_mappingGroups" property="id.mappingGroupId"/>
  100. </td>
  101. <td align="left">
  102. &nbsp;<bean:write name="element_mappingGroups" property="source"/>
  103. </td>
  104. <td align="left">
  105. &nbsp;<bean:write name="element_mappingGroups" property="target"/>
  106. </td>
  107. <td align="left">
  108. &nbsp;<bean:write name="element_mappingGroups" property="includeMappingId"/>
  109. </td>
  110. <td align="left">
  111. &nbsp;<bean:write name="element_mappingGroups" property="includeId"/>&nbsp;
  112. </td>
  113. <td align="center"><a href="#" ><img src="./images/detail.gif" border="0" onclick="doDetail('<bean:write name="element_mappingGroups" property="id.mappingId"/>','<bean:write name="element_mappingGroups" property="id.mappingGroupId"/>');" alt="see detail"></a></td>
  114. </tr>
  115. </logic:iterate>
  116. </logic:notEmpty>
  117. </table><br><br><br>
  118. <!--END mapping TARGET-->
  119. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  120. <tr>
  121. <td align="center" colspan="7"><input type="button" value=<bean:message key="button.back" /> onclick="doBack();"></td>
  122. </tr>
  123. <tr>
  124. <td>&nbsp;</td>
  125. <td>&nbsp;</td>
  126. <td>&nbsp;</td>
  127. <td>&nbsp;</td>
  128. <td>&nbsp;</td>
  129. <td>&nbsp;</td>
  130. <td>&nbsp;</td>
  131. </tr>
  132. <tr>
  133. <td align="left" valign="top" colspan="3">
  134. <input type="button" name="addMappingGroupBtn" value="<bean:message key="button.addNewMappingGroup"/>" onclick="javascript:doAddMappingGroup('<bean:write name="mapping_${ts}" property="id"/>');">
  135. </td>
  136. </tr>
  137. </table>
  138. </td>
  139. </tr>
  140. </table>
  141. </form>
  142. <!-- END CONTENT -->
  143. <%@ include file="../common/footer.jsp"%>