|
<%@page import="org.apache.commons.lang.StringUtils"%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
<%@page import="java.util.*"%>
|
<%@page import="java.util.List"%>
|
<%@page import="com.yc.utils.SessionKey"%>
|
<%@page import="com.yc.utils.FormOpUtil"%>
|
<%@page import="org.springframework.jdbc.support.rowset.SqlRowSet"%>
|
<%@page import="com.yc.factory.FactoryBean"%>
|
<%@page import="com.yc.service.commons.SqlQueryIfc"%>
|
<%@page import="com.yc.utils.CheckInputPwdUtils"%>
|
<%@page import="com.yc.sdk.shopping.util.SettingKey"%>
|
<%
|
String URL =SettingKey.getHostUrl(request);
|
int formId = [?formId];//formid
|
int formType = [?formType];
|
int version=[?version];//当前的版本号
|
int optype = [?formOptType];//操作类型
|
//用户代码
|
String userCode = (String)session.getAttribute(SessionKey.USERCODE);
|
//用户权限
|
Map<String,Map<String,Object>> perssion=(Map<String,Map<String,Object>>)session.getAttribute(SessionKey.PERSSION);
|
//用户对于该功能号所拥有的权限代码
|
int profile=-1;
|
try{
|
profile=(Integer)perssion.get(formId+"").get("optype");
|
}catch(Exception e){}
|
//是否为超级管理员 1 为超级管理员
|
String isSuperUser = (String)session.getAttribute(SessionKey.SUPPER_USER);
|
isSuperUser=isSuperUser.intern();
|
if(isSuperUser=="1"){
|
profile=com.yc.utils.FormOpUtil.TotalOP;
|
}
|
if(optype!=-1){
|
profile=profile&optype;
|
}
|
String queryString = request.getQueryString();
|
if(queryString==null){
|
queryString="";
|
}
|
//打开时输入密码
|
String isOpenFuncShowPwdEdit = "[?isOpenFuncShowPwdEdit]";
|
if(isOpenFuncShowPwdEdit!="" && isOpenFuncShowPwdEdit!="0"){
|
boolean hasOpen = CheckInputPwdUtils.checkPwd(isOpenFuncShowPwdEdit,"[?formId]",request,response,session);
|
if(!hasOpen){
|
return;
|
}
|
}
|
//功能链接表达式
|
String hasShowItemExpression = "[?hasShowItemExpression]";
|
//执行sql查询类
|
SqlQueryIfc sqlQueryIfc = (SqlQueryIfc)FactoryBean.getBean("SqlQueryImpl");
|
SqlRowSet rs = null;
|
String p = request.getParameter("p");
|
String g = request.getParameter("g");
|
String panelEnd="";
|
String where = request.getParameter("where");
|
String wherePan = request.getParameter("wherePan");
|
wherePan =(wherePan==null)?(where!=null?where:null):wherePan;
|
if(wherePan==null&&(queryString.startsWith("where=")||queryString.startsWith("wherePan="))){
|
wherePan=queryString.replace("where=", "").replace("wherePan=","");
|
}
|
wherePan=com.yc.utils.HtmlUtil.prossIntoSessionForStr(wherePan,session);
|
|
if(wherePan!=null){
|
wherePan=java.net.URLDecoder.decode(wherePan,"utf-8");
|
panelEnd=wherePan;
|
}
|
//----wherePan
|
String encodeWherePan = "";
|
try{
|
if(!StringUtils.isBlank(wherePan)){
|
encodeWherePan = com.yc.service.impl.DBHelper.replaceBr(com.yc.utils.EncodeUtil.base64Encode(wherePan));
|
}
|
}catch(Exception e){}
|
//-------
|
String userName=session.getAttribute(SessionKey.USERNAME)+"";
|
String dbid=session.getAttribute(SessionKey.DATA_BASE_ID)+"";
|
String where_str=com.yc.service.impl.DBHelper.replaceBr(com.yc.utils.EncodeUtil.base64Encode(wherePan));
|
com.yc.app.v2.controller.APPController appController = (com.yc.app.v2.controller.APPController) FactoryBean.getBean("APPController");
|
appController.execRecentAccessFormid(new com.yc.action.grid.RecentAccessEntity(userCode,userName,formId,formType,where_str,"[?formName]",null,dbid));
|
//----------
|
//panel info
|
wherePan=panelEnd;
|
String doccode="";
|
String isNew=null;
|
String grid=null;
|
//end
|
wherePan=DBHelper.getDWFqx(wherePan,request,formId,0);
|
String zt="";
|
Map atMap = new HashMap();
|
boolean nb=false;
|
List<Map<String,Object>> list=new ArrayList<Map<String,Object>>();
|
String pantit="";
|
%>
|