📄 querydataauthinfo_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import cn.com.aheadsoft.recordset.DataAuthRoleRecordSet;
import cn.com.aheadsoft.recordset.DataAuthInfoRecordSet;
import cn.com.aheadsoft.recordset.UserGroupInfoRecordSet;
import cn.com.aheadsoft.recordset.DepartmentInfoRecordSet;
import cn.com.aheadsoft.recordset.BasicAuthUnitRecordSet;
import cn.com.aheadsoft.recordset.ModuleInfoRecordSet;
import cn.com.aheadsoft.util.AccessCtlChecker;
import java.util.*;
public class querydataauthinfo_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=GB2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
AccessCtlChecker mychecker=new AccessCtlChecker();
List userdata=(List)session.getAttribute("userdata") ;
DataAuthInfoRecordSet datarecordset=(DataAuthInfoRecordSet)userdata.get(0);
DataAuthRoleRecordSet recordsetr=(DataAuthRoleRecordSet)userdata.get(1);
recordsetr.next();
String mroleuid=recordsetr.getDAR_UserGroupID();
String mroleid=recordsetr.getDAR_RoleID();
String mrolename=recordsetr.getDAR_RoleName();
String accessctl=recordsetr.getDAR_AccessControl();
mychecker.setaccessctlword(accessctl);
ModuleInfoRecordSet recordsetm=(ModuleInfoRecordSet)userdata.get(2);
BasicAuthUnitRecordSet recordsetb=(BasicAuthUnitRecordSet)userdata.get(3);
DataAuthRoleRecordSet recordset=(DataAuthRoleRecordSet)userdata.get(4);
//UserGroupInfoRecordSet recordsetu=(UserGroupInfoRecordSet)userdata.get(5);
DepartmentInfoRecordSet recordsetd=(DepartmentInfoRecordSet)userdata.get(5);
String mdid=(String)userdata.get(6);
out.write("\r\n\r\n\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/krm/jsp/css/css.css\">\r\n");
out.write("</head>\r\n");
out.write("<form method=\"post\" name=\"myform\" action=\"/krm/servlet/dataauthinfoservlet\">\r\n");
out.write("<input type=\"hidden\" name=\"status\" value=\"i\">\r\n");
out.write("<input type=\"hidden\" name=\"mroleid\" value=\"");
out.print(mroleid);
out.write("\">\r\n");
out.write("<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" >\r\n");
out.write("<table width=\"100%\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >\r\n ");
out.write("<tr >\r\n\t");
out.write("<td class=\"trA\"> 您的位置:系统管理 >> 数据授权 >> ");
out.write("<font class=\"fontcolor\">角色数据授权信息");
out.write("</font>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr height=\"8\"> \r\n ");
out.write("<td>");
out.write("</td>\r\n ");
out.write("</tr> \r\n ");
out.write("<tr>\r\n ");
out.write("<td align=\"center\" >\r\n ");
out.write("<table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"A1B7DB\" class=\"collapse\">\r\n ");
out.write("<tr > \r\n ");
out.write("<td class=\"tdA\" align=\"left\" colspan=\"4\">对角色 ");
out.print(mrolename);
out.write(" 数据授权信息");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
while(recordsetm.next()){
String modulename=recordsetm.getMI_ModuleName();
String moduleid=recordsetm.getMI_ModuleID();
out.write("\r\n ");
out.write("<tr > \r\n ");
out.write("<td height=\"26\" colspan=\"4\" align=\"center\" style=\"border-bottom:#387798 2px solid;\">");
out.write("<table width=\"75%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td> ");
out.write("</td>\r\n ");
out.write("<td> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("<font color=\"#000000\" size=\"2\">");
out.write("<strong>");
out.print(modulename);
out.write("</strong>");
out.write("</font>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
recordsetb.beforefirst();
while(recordsetb.next()){
String unitname=recordsetb.getBAU_UnitName();
String unitid=recordsetb.getBAU_UnitID();
String unitmoduleid=recordsetb.getBAU_ModuleID();
if (unitmoduleid.equalsIgnoreCase(moduleid)){
char qdegree=mychecker.getauthdegree(moduleid,unitid,"q");
char idegree=mychecker.getauthdegree(moduleid,unitid,"i");
char udegree=mychecker.getauthdegree(moduleid,unitid,"u");
char ddegree=mychecker.getauthdegree(moduleid,unitid,"d");
if(qdegree=='2' | qdegree=='3'|qdegree=='9' |udegree=='2' | udegree=='3'|udegree=='9' |ddegree=='2' | ddegree=='3'|ddegree=='9' )
{
out.write("\r\n ");
out.write("<tr > \r\n ");
out.write("<td class=\"common1\" width=\"16%\" bgcolor=\"f5f5f5\" >");
out.write("<div align=\"center\">");
out.write("<strong> ");
out.print(unitname);
out.write("</strong>");
out.write("</div>");
out.write("</td>\r\n ");
out.write("<td width=\"84%\" > ");
out.write("<table width=\"99%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"A1B7DB\" class=\"collapse\">\r\n ");
recordsetd.beforefirst();
while(recordsetd.next()){
String dname=recordsetd.getDI_DepartmentName().trim();
String did=recordsetd.getDI_DepartmentID().trim();
out.write("\r\n ");
if (mdid.equalsIgnoreCase(did)) {
out.write("\r\n ");
//////////////////////////////////////////////////////
out.write("\r\n ");
if(qdegree=='2'| udegree=='2' |ddegree=='2' |qdegree=='9'| udegree=='9' |ddegree=='9') {
out.write("\r\n ");
out.write("<tr > \r\n ");
out.write("<td class=\"tdC\" colspan=\"4\" bgcolor=\"f5f5f5\"> ");
out.write("<strong>部门:");
out.print(dname);
out.write("</strong>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
recordset.beforefirst();
while(recordset.next()){
//String druid=recordset.getDAR_UserGroupID();
String drdeptid=recordset.getDAR_DeptID();
String drid=recordset.getDAR_RoleID();
String drname=recordset.getDAR_RoleName();
out.write("\r\n ");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -