4cb074de25026abc1e359c7dee751e9edf4e5493.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
  2. <%@ page
  3. import ="com.sysmodel.datamodel.*,
  4. com.sysmodel.datamodel.xmlmodel.impl.*"
  5. %>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7. <html>
  8. <head>
  9. <title>数据库字段中英文翻译分析</title>
  10. <meta http-equiv="pragma" content="no-cache">
  11. <meta http-equiv="cache-control" content="no-cache">
  12. <meta http-equiv="expires" content="0">
  13. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  14. <meta http-equiv="description" content="This is my page">
  15. </head>
  16. <body topmargin="0">
  17. <br>
  18. <table align="center" width="80%" border="1" class="ltab2">
  19. <tr>
  20. <td><b>中文名称</b></td>
  21. <td><b>English name</b></td>
  22. <td><b>系统应用名</b></td>
  23. <td><b>所在表</b></td>
  24. </tr>
  25. <%
  26. ArrayList arrModules = SysModelImpl.getInstance().getMdpModules();
  27. ArrayList arrConstants = SysModelImpl.getInstance().getMdpConstants();
  28. ArrayList arrMdpClasses = SysModelImpl.getInstance().getMdpClasses();
  29. MdpModuleImpl Module = null;
  30. MdpConstantImpl MdpConstant = null;
  31. for (int i = 0 ; i< arrModules.size() ; i++ ){
  32. Module = (MdpModuleImpl)arrModules.get(i);
  33. if(!Module.getNgoogleEn().equals("")){
  34. %>
  35. <tr>
  36. <td><%= Module.getName()%> </td>
  37. <td><%= Module.getNgoogleEn()%></td>
  38. <td><%= Module.getDescription()%></td>
  39. <td></td>
  40. </tr>
  41. <%
  42. }
  43. }
  44. for (int i = 0 ; i< arrConstants.size() ; i++ ){
  45. MdpConstant = (MdpConstantImpl)arrConstants.get(i);
  46. if(!MdpConstant.getNgoogleEn().equals("")){
  47. %>
  48. <tr>
  49. <td><%= MdpConstant.getDescription()%> </td>
  50. <td><%= MdpConstant.getNgoogleEn()%></td>
  51. <td><%= MdpConstant.getCodeName()%></td>
  52. <td></td>
  53. </tr>
  54. <%
  55. }else{
  56. }
  57. }
  58. MdpClassImpl imp = null;
  59. for (int i = 0 ; i< arrMdpClasses.size() ; i++ ){
  60. imp = (MdpClassImpl)arrMdpClasses.get(i);
  61. if(!imp.getNgoogleEn().equals("")){
  62. %>
  63. <tr>
  64. <td><B><%=imp.getDescription()%></B> </td>
  65. <td><%=imp.getNgoogleEn()%></td>
  66. <td><%=imp.getName()%></td>
  67. <td><%=imp.getDescription()%></td>
  68. </tr>
  69. <%
  70. }
  71. List mdpAttributes = imp.getAllMdpAttributes();
  72. MdpAttributeImpl mdpAttribute = null;
  73. for (int j = 0 ; j<mdpAttributes.size() ; j++ ){
  74. mdpAttribute = (MdpAttributeImpl)mdpAttributes.get(j);
  75. if(!mdpAttribute.getNgoogleEn().equals("")){
  76. %>
  77. <tr>
  78. <td><%=mdpAttribute.getDescription()%></td>
  79. <td><%=mdpAttribute.getNgoogleEn()%></td>
  80. <td><%=mdpAttribute.getName()%></td>
  81. <td><%=imp.getDescription()%></td>
  82. </tr>
  83. <%
  84. }
  85. }
  86. }
  87. %>
  88. </table>
  89. </body>
  90. </html>