xinyb
2024-03-27 f87909326c2ff2c58da027163f64d9d8f9424b17
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
 
<%@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="";
%>