xinyb
2024-01-04 72cf604f9b4a5fac1d4c03c1501792a4245564f3
提交 | 用户 | age
a6a76f 1 <%@ page language="java" contentType="text/html; charset=UTF-8"
F 2     pageEncoding="UTF-8"%>
4a551f 3 <!DOCTYPE html >
a6a76f 4 <%
4af2b2 5     String val = request.getParameter("where");
1cab1e 6     boolean isOk = false;//有确定按钮
X 7     if (val == null) {
8         val = request.getParameter("wherePan");
9         if (val != null) {
10             val = val.split("=")[1].replaceAll("'", "");
11         } else {
12             val = "0";
13         }
14     } else {
15         val = (String) request.getParameter("where").split("@~")[1];
16         isOk = true;
17     }
a6a76f 18 %>
F 19 <html>
20 <head>
21 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
22 <title>权限</title>
23 <link rel="stylesheet" type="text/css" href="/style/default/easyui.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/default/easyui.css")%>"> 
24 <link rel="stylesheet" type="text/css" href="/style/commons.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/commons.css")%>"> 
25 <link rel="stylesheet" type="text/css" href="/style/icon.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/icon.css")%>"> 
26 <script type="text/javascript" src="/js/jquery-easyui-1.2.5/jquery-1.7.1.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/jquery-easyui-1.2.5/jquery-1.7.1.min.js")%>"></script>
27 <script type="text/javascript" src="/js/general/easyui/jquery.easyui.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/general/easyui/jquery.easyui.min.js")%>"></script>
28 <script type="text/javascript" src="/js/general/jquery.easyui.dialog.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/general/jquery.easyui.dialog.js")%>"></script>
29 <script type="text/javascript" src="/js/locale/easyui-lang-zh_CN.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/locale/easyui-lang-zh_CN.js")%>"></script>
30 <script type="text/javascript" src="/js/index/funcLink.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/funcLink.js")%>"></script>
31 <script type="text/javascript" src="/Grid/GridE.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/Grid/GridE.js")%>"></script>
32 <style type="text/css">
33 body {font-family:Arial,tahoma,Helvetica,sans-serif;font-size: 12px;margin:0px;}
34 .title{margin: 30px 60px 0px 60px;}
35 .top{border: 1px solid #bbb;margin: 30px 60px 20px 60px;height: 300px;border-radius: 5px;/*box-shadow:0px 0px  10px 5px #D9D9D9;*/}
36 .bottom{margin: 0px 60px 0px 60px;text-align: center;}
37 .tab{width: 100%; text-align: center; height: 300px;}
38 .at{margin-right: 60px;}
39 .tab span{margin-left: 10px;}
40 input{width:16px;height:16px;}
41 </style>
42 </head>
43 <body>
44 <form action="">
45   <div class="title">权限号:<span><b><%=val%></b></span></div>
46   <div class="top">
47     <table class="tab">
48     <tr>
49         <td>01. 报表设计<span><input type="checkbox" id=8192></span></td>
50         <td>02. 建立新单<span><input type="checkbox" id=4096></span></td>
51         <td>03. 确认单据<span><input type="checkbox" id=2048></span></td>
52         <td>04. 删除单据<span><input type="checkbox" id=1024></span></td>
53     </tr>
54     <tr>       
55         <td>05. 冲销单据<span><input type="checkbox" id=512></span></td>
56         <td>06. 取消确认<span><input type="checkbox" id=256></span></td>
57         <td>07. 打开查询<span><input type="checkbox" id=128></span></td>
58         <td>08. 执行过程<span><input type="checkbox" id=64></span></td>
59     </tr>
60     <tr> 
61         <td>09. 增&emsp;&emsp;行<span><input type="checkbox" id=32></span></td>
62         <td>10. 复&emsp;&emsp;行<span><input type="checkbox" id=16></span></td>
63         <td>11. 删&emsp;&emsp;行<span><input type="checkbox" id=8></span></td>
64         <td>12. 保存记录<span><input type="checkbox" id=4></span></td>
65     </tr>
66     <tr>
67         <td>13. 打印按钮<span><input type="checkbox" id=2></span></td>
68         <td>14. 导出数据<span><input type="checkbox" id=1></span></td>
69         <td>15. 导入数据<span><input type="checkbox" id=32768></span></td>
70         <td>16. 复&emsp;&emsp;单<span><input type="checkbox" id=16384></span></td>
71     </tr>
72     <tr>
73         <td>17. 清&emsp;&emsp;单<span><input type="checkbox" id=65536></span></td>
74         <td>18. 撤&emsp;&emsp;回<span><input type="checkbox" id=131072></span></td>
75         <td></td><td></td>
76     </tr>
77     </table>
78   </div>
1cab1e 79     <% if(isOk){%>
a6a76f 80   <div class="bottom">
F 81   <!--<a href="#" id="close" class="easyui-linkbutton at" data-options="iconCls:'icon-undo'">退出</a> -->
82   <a href="#" id="ok" class="easyui-linkbutton at" data-options="iconCls:'icon-ok'">确定</a>
83   </div>
1cab1e 84     <%}%>
a6a76f 85 </form>
F 86 </body>
87 </html>
88 <script type="text/javascript">
89 function clickToGrid(record){//record是数组类型,选择返回的数据,根据外表定义而定,record=[12,'aa',56]
90  try{
91     var p_frame=parent.frames[inChangFrame];
92      if(p_frame){
93                if(C_Grid!=""){
94                var gr=eval('('+C_Grid+')');//弹出的父页面传过来的信息
95             var pa=p_frame.Grids[gr.gridID];//得到grid
96               if(pa&&gr.clickGrid){
97                   pa.clickDb=true;
98                   if(gr.toP==undefined||gr.toP==null||gr.toP=="null"||gr.toP=="") return;//没有需要返回字段,不作处理
99                    //增加如果当前页面是31类型弹出作选择用则需要判断是否已保存了数据才给返回
100          //现在只要是弹出来的格线,如果修改了数据都需要保存才能返回。         
101             var ower=gr.formP.split(";");//外表
102           var row=pa.Rows[gr.rowIDp];//三点弹出的所在行
103            pa.threePop(record,gr.toP.split(";"),row,null,-1,null,null,gr.id);
104            pa.EndEdit(0);
105         parent.closeTab(); 
106         }
107         }
108     }
109   }catch(e){     
110   }
111 };
112 $(function(){
113     var val=<%=val%>;
114     $('table input').each(function(){
115         if ((this.id & val) >= 1) {
116             $(this).attr("checked",true);
117         }
118     });
119     $('table input').on('click',function(){
72cf60 120         <%if(isOk){%>
X 121         if ($(this).attr('checked')) {
122             val = Number(val) + Number(this.id);
123         } else {
124             val = Number(val) - Number(this.id);
125         }
126         $('.title span b').html(val);
127         <%}else{%>
128         return false;
129         <%}%>
130     });
a6a76f 131     $('a').on('click',function(){
F 132         clickToGrid([val]);
133     });
134 });
135 </script>