mtDataDictionaryList.jsp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>任务标准库列表</title>
  8. <!-- <script type="text/javascript" src="/shares/js/yw/ams/flow/amsflow.js"></script> -->
  9. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  11. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript" src="/shares/js/constant.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
  18. <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
  19. <script type="text/javascript" src="/shares/js/yw/ams/config/common.js"></script>
  20. <script type="text/javascript" src="/shares/js/yw/ams/config/dataDictionaryList.js"></script>
  21. <script type="text/javascript">
  22. var isInit = "${requestScope.isInit }";
  23. var initDialog;
  24. $(function() {
  25. if(isInit == "false"){
  26. initDialog = $.ligerDialog({content:"本公司还未初始化,是否初始化?", title:"系统提示",type:"question",width:300,height:70,allowClose : false,
  27. buttons:[ { text:"是",onclick:function(){initDataDictionary();} } ,
  28. {text:"否",onclick:function(){initDialog.close();} }
  29. ]
  30. });
  31. return;
  32. }
  33. initList();
  34. });
  35. function searchByKword(s) {
  36. var p = $("#p").val();
  37. var pSize = getPize();
  38. var param = {
  39. "p" : p,
  40. "pSize" : pSize
  41. };
  42. // url : 'amsArchiveDataDictionaryAction.do?task=getDataDictionaryList&time='+ new Date().getTime(),
  43. sendAsyncAjax(
  44. param,
  45. "mtAmsArchiveDataDictionaryAction.do?task=getDataDictionaryList"
  46. + s + "&time=" + new Date().getTime(),
  47. "json",
  48. function(data) {
  49. var num = data.Total;
  50. page(num, pSize, p);
  51. var archiveList = data.Rows;
  52. var item_name = $('#contentDiv');
  53. $(item_name).empty();//初始化table,清空table
  54. var html = '';
  55. if (archiveList.length == 0) {
  56. html = notquery();
  57. } else {
  58. var j = 0;
  59. for (var i = 0; i < archiveList.length; i++) {
  60. var arr = archiveList[i];
  61. var bdiv = 1;
  62. bdiv = 1 + j;
  63. if (j < 7) {
  64. j++;
  65. } else {
  66. j = 0;
  67. }
  68. ;
  69. html += '<div class="tr_cont_new mar4 f5_new">';
  70. html += ' <div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
  71. html += ' <div class="tr_rw_d_new fl">';
  72. html += '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />';
  73. html += "";
  74. html += arr.dname;
  75. html += "&nbsp;&nbsp;&nbsp;&nbsp;";
  76. html += "&nbsp;&nbsp;" + arr.remark;
  77. html += "&nbsp;&nbsp;&nbsp;&nbsp;";
  78. html += '&nbsp;&nbsp;' + getTypeText(arr.type);
  79. html += "&nbsp;&nbsp;&nbsp;&nbsp;";
  80. html += '&nbsp;&nbsp;' + arr.update_date;
  81. html += '</p></div>';
  82. html += ' <div class="tr_rw_btn_new fr">';
  83. html += '<div class="div_btn"><input type="button" onclick="editDataDictionary('
  84. + arr.universalid
  85. + ')" class="btn_c" value="修&nbsp;改" /></div>';
  86. // html += '<div class="div_btn"><input type="button" onclick="getDataDictionaryDetail('
  87. // + arr.universalid
  88. // + ')" class="btn_c" value="查&nbsp;看" /></div>';
  89. html += ' </div>';
  90. html += '</div>';
  91. }
  92. }
  93. $(item_name).html(html);
  94. });
  95. }
  96. function subDate(d) {
  97. var s = "";
  98. if (d != null && d.length > 10) {
  99. return s = d.substring(0, 10);
  100. } else {
  101. return s;
  102. }
  103. ;
  104. }
  105. function getTypeText(type) {
  106. if (type == "U") {
  107. return "普通";
  108. } else if (type == "S") {
  109. return "系统";
  110. } else if (type == "C") {
  111. return "内置";
  112. } else {
  113. return "未知";
  114. }
  115. }
  116. function editDataDictionary(dataDictionaryId) {
  117. var uri = "mtAmsArchiveDataDictionaryAction.do?task=editDataDictionary&dataDictionaryId="
  118. + dataDictionaryId;
  119. item(uri);
  120. }
  121. function getDataDictionaryDetail(dataDictionaryId) {
  122. var uri = "mtAmsArchiveDataDictionaryAction.do?task=getDataDictionaryDetail&dataDictionaryId="
  123. + dataDictionaryId;
  124. item(uri);
  125. }
  126. function initList() {
  127. var dName = searchBox.getValue();
  128. var s = "";
  129. if (dName != "" && typeof (dName) != "undefined") {
  130. s += "&dName=" + encodeURI(encodeURI(dName));
  131. }
  132. searchByKword(s);
  133. }
  134. </script>
  135. </head>
  136. <body>
  137. <div class="tc_b">
  138. <div id="left" style="float: left; width: 100%;">
  139. <div class="tc_r">
  140. <div class="tr_con b5 f4">
  141. <div class="fl f4">
  142. <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" />&nbsp;数据字典
  143. </div>
  144. <div class="fl ">
  145. <!-- <div class="fl mar2">标准名称:</div> -->
  146. <!-- <div class="fl mar2 mar6"> -->
  147. <!-- <input type="text" id="dName" name="dName" style="width: 150px" /> -->
  148. <!-- </div> -->
  149. </div>
  150. <div class="div_ck_k fr">
  151. <input class="div_cx fl" name="dName" id="dName" type="text" />
  152. <input class="btn_ck fl" type="button" onclick="initList();" id="button" />
  153. </div>
  154. </div>
  155. <div class="tr_right_bg fl">
  156. <div id="contentDiv"></div>
  157. <jsp:include page="/yw/master1/page.jsp">
  158. <jsp:param name="functionName" value="initList" />
  159. <jsp:param name="p" value="1" />
  160. <jsp:param name="pSize" value="7" />
  161. </jsp:include>
  162. </div>
  163. </div>
  164. </div><%@ include file="/yw/master1_ams/config/leftAmsConfig.jsp"%>
  165. </div>
  166. </body>
  167. </html>