zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="${pageContext.request.contextPath}/css/formtab.css"
    rel="stylesheet" />
<script
    src="${pageContext.request.contextPath}/jslib/jquery-extensions-master/jquery/jquery-1.11.0.js"
    type="text/javascript"></script>
<!--<script src="jquery/jquery-1.11.0.min.js"></script>-->
<script
    src="${pageContext.request.contextPath}/jslib/jquery-extensions-master/jquery-easyui-1.3.6/jquery.easyui.min.js"
    type="text/javascript"></script>
<script
    src="${pageContext.request.contextPath}/jslib/jquery-extensions-master/extBrowser.js"
    charset="utf-8" type="text/javascript"></script>
<link
    href="${pageContext.request.contextPath}/jslib/jquery-extensions-master/jquery-easyui-theme/default/easyui.css"
    rel="stylesheet" type="text/css" />
<link
    href="${pageContext.request.contextPath}/jslib/jquery-extensions-master/jquery-easyui-theme/icon.css"
    rel="stylesheet" type="text/css" />
<link
    href="${pageContext.request.contextPath}/jslib/jquery-extensions-master/icons/icon-all.css"
    rel="stylesheet" type="text/css" />
 
 
<script
    src="${pageContext.request.contextPath}/jslib/jquery-extensions-master/changeEasyuiTheme.js"
    type="text/javascript"></script>
 
<script
    src="${pageContext.request.contextPath}/jslib/jquery-extensions-master/jquery-easyui-1.3.6/locale/easyui-lang-zh_CN.js"
    type="text/javascript"></script>
 
<script
    src="${pageContext.request.contextPath}/jslib/jquery-extensions-master/jquery.jdirk.js"
    type="text/javascript"></script>
 
<script
    src="${pageContext.request.contextPath}/jslib/jquery-extensions-master/extEasyUI.js"></script>
 
<script
    src="${pageContext.request.contextPath}/jslib/jquery-extensions-master/extJquery.js"></script>
 
 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
var datagrid;
    $(function() {
        datagrid=$("#dd").datagrid({
            title : 'Test表中的数据进行操作',
            width : 1000,
            height : 400,
            method : "get",    
            url : "${pageContext.request.contextPath}/pms/sys/test/List.do",
            remoteSort : false,
            columns : [ [ {
                field : 'id',
                title : '编号(id)',
                width : 230,
                sortable : true,
                editor : "text"
            }, {
                field : 'name',
                title : '名称(Name)',
                width : 230,
                sortable : true,
                editor : "text"
            }, {
                field : 'date',
                title : '日期(date)',
                width : 230,
                sortable : true,
                editor : "text"
            }
            ] ],     
            onRowContextMenu : function(e, rowIndex, rowData) {
                e.preventDefault();
                $(this).datagrid('unselectAll').datagrid('uncheckAll');
                $(this).datagrid('selectRow', rowIndex);
                $('#menu').menu('show', {
                    left : e.pageX-10,
                    top : e.pageY-5
                }); 
            }
        });
    
    });
    function goToRoleAddJsp(){
         var dialog = parent.$.modalDialog({
                title : '用户管理',
                width : 620,
                height : 250,
                href : '${pageContext.request.contextPath}/pms/sys/test/Add.do',
                buttons : [ {
                    text : '保存',
                    iconCls:'icon-standard-disk',
                    handler : function() {
                        var f = dialog.find("#form");
                        if(f.form("validate")){
                            alert(f.form("getData"));
                            $.post("${pageContext.request.contextPath}/pms/sys/test/Save.do",f.form("getData"),function(json){                            
                                alert("ok");
                                
                            },"JSON");
                        }
                    }
                } ]
            });
        
    }
    function batchDeleteRoles(){
           var dialog = parent.$.modalDialog({
                title : '用户管理',
                width : 620,
                height : 250,
                href : '${pageContext.request.contextPath}/pms/sys/test/Add.jsp',
                buttons : [ {
                    text : '保存',
                    iconCls:'icon-standard-disk',
                    handler : function() {
                        var f = dialog.find("#form");
                        if(f.form("validate")){
                            $.post("${pageContext.request.contextPath}/pms/disabled/addOrUpdate.do",f.form("getData"),function(json){
                                if (json.success) {
                                    $.messager.show('提示', json.msg, 'info');
                                    dialog.dialog('destroy');
                                    queryAll();
                                }else{
                                    $.messager.show('提示', json.msg, 'error');
                                }
                            },"JSON");
                        }
                    }
                } ]
            });
    }
    
</script>
</head>
<body>
<div><a onclick="goToRoleAddJsp();" href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-standard-user-add'">添加</a>
<a onclick="batchDeleteRoles();" href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-standard-group-delete'">删除</a></div>
    <div id="dd" onClick=""></div>
<div id="divdialog" style="display:none"> name<input type="test"/></div>
</body>
</html>