| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="tms" uri="http://fzywtx.com/jsp/yw/tms" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>数据字典</title>
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script src="/shares/jquery.progressbar/js/jquery.progressbar.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
- <script type="text/javascript">
- $(function(){
- searchByKword();
- });
- function search(url,s){
- var p = $("#p").val();
- var pSize = $("#pSize").val();
- var param={"p":p,"pSize":pSize};
- sendAsyncAjax(param, url+"&time="+ new Date().getTime()+s, "json", function(data) {
- var num = data.Total;
- page(num,pSize,p);
- var datas = data.Rows;
- var item_name = $('#contentDiv');
- $(item_name).empty();//初始化table,清空table
- var html = '';
- if(datas.length == 0){
- html = notquery();
- }else{
- var j=0;
- for (var i = 0; i < datas.length; i++){
- var arr = datas[i];
- var bdiv = 1;
- bdiv = 1 + j;
- if (j < 7) {
- j++
- } else {
- j = 0;
- }
- html+= '<div class="tr_cont_new mar4 f5_new">';
- html+= '<div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
- html += '<div class="tr_rw_d_new fl">';
- html+= '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />';
- html+='[父类名称:'+ arr.p_dname+'] [子类名称:'+arr.dname+']</p>';
- html+= '</div>';
- html+= '<div class="tr_rw_btn_new fr" style="width:270px;" >';
- html+= '<div class="div_btn">';
- html+='<input type="button" class="btn_c" value="删除" onclick="dictionary_del('+arr.universalid+')" />';
- html+='</div>';
- html+= '<div class="div_btn">';
- html+='<input type="button" class="btn_c" value="修改" onclick="dictionary_edit('+arr.universalid+','+arr.pid+')" />';
- html+='</div>';
- html+= '<div class="div_btn">';
- html+='<input type="button" class="btn_c" value="查看" onclick="dictionary_view('+arr.universalid+')" />';
- html+='</div>';
- html+= '</div>';
- html+= '</div>';
- }
- }
- $(item_name).html(html);
- });
- }
- function searchByKword(){
- var s = "";
- var parentId=$("#parent_type").val();
- if(parentId !="" && parentId !=null){
- s="&parentId="+parentId;
- }
-
- search("mtdictionary.do?task=dictionary_pagelist",s);
- }
- function dictionary_view(id){
- item('mtdictionary.do?task=dictionary_view&id='+id);
- }
- function dictionary_edit(id,pid){
- item('mtdictionary.do?task=to_edit&id='+id+"&parentId="+pid);
- }
- function dictionary_clear(){
- item('mtdictionary.do?task=dictionary_clear');
- }
- function dictionary_del(id){
- if(confirm("确定要删除?")){
- item('mtdictionary.do?task=dictionary_del&id='+id);
- }
- }
- function addSub(){
- var parentId=$("#parent_type").val();
- if(parentId==null || parentId==""){
- alert("请选择父类型");
- return ;
- }
- item('mtdictionary.do?task=to_add&parentId='+parentId);
- }
- </script>
- </head>
- <body>
- <div class="tc_b">
- <div id="left" style="float:left;width:100%;">
- <div class="tc_r">
- <div class="tr_con b5 f4">
- <div class="fl f4">
- <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" /> 数据字典
- </div>
- <div class="fl f4" style="margin-left:30px;">
- 父类型:
- </div>
- <div class="fl">
- <select style="width:150px; height:25px;" name="parent_type" id="parent_type" onchange="searchByKword()">
- <option value=""></option>
- <c:forEach items="${list}" var="obj" >
- <option value="${obj.universalid }" >${obj.dname }</option>
- </c:forEach>
- </select>
- <input style="margin-left:40px;width:80px;" type="button" onclick="addSub()" value="新增子类" class="btn" />
- <!-- <input style="margin-left:40px;width:80px;" type="button" onclick="eidtDic()" value="编辑父类" class="btn" /> -->
- <!-- <input style="margin-left:40px;width:80px;" type="button" onclick="dictionary_clear()" value="清理缓存" class="btn" /> -->
- </div>
- </div>
- <div class="tr_right_bg">
- <div id="contentDiv"></div>
- <jsp:include page="/yw/master1/page.jsp">
- <jsp:param name="functionName" value="searchByKword"/>
- </jsp:include>
- </div>
- </div>
- </div>
- <%@ include file="/yw/master1_ytpm/project/flow/left_pmflow.jsp"%>
- </div>
- </body>
- </html>
|