<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
<%@page import="java.util.Map"%>
|
<%@page import="com.yc.utils.SessionKey"%>
|
<%@ page import="java.util.List" %>
|
<%@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.service.build.top.PrintLinkSpellUtils"%>
|
<%@page import="com.yc.utils.CheckInputPwdUtils"%>
|
<%@page import="com.yc.sdk.shopping.util.SettingKey"%>
|
<%
|
String URL =SettingKey.getHostUrl(request);
|
|
int formId = [?formId];//formid
|
String formName ="[?formName]";//formName
|
int formType = [?formType];
|
int version=[?version];//当前的版本号
|
int optype = [?formOptType];//操作类型
|
//序列号扫码 xin 2021-8-2 17:50:03
|
//入库
|
Integer isshowinserialbtn=[?isshowinserialbtn];
|
String inserialbtneditstatus="[?inserialbtneditstatus]";
|
//出库
|
Integer isshowoutserialbtn=[?isshowoutserialbtn];
|
String outserialbtneditstatus="[?outserialbtneditstatus]";
|
//农行支付收款、退款控制 xin 2021-8-23 14:30:39
|
Integer isshowonlinepaymentbutton=[?isshowonlinepaymentbutton];
|
String online="";
|
if(isshowonlinepaymentbutton==1){
|
online+=",(case when isnull(OnlinePaymentAmount,0) > 0 then 1 else 0 end) as isshowonlinepaymentbutton";
|
}
|
//用户代码
|
String hrCode = (String)session.getAttribute(SessionKey.HRCODE);
|
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 flag = request.getParameter("flag");
|
String docCode = request.getParameter("doccode")==null?"":request.getParameter("doccode");
|
String copy=request.getParameter("cp");
|
String isNew= request.getParameter("isNew");
|
String panelEnd="";
|
String wherePan=request.getParameter("wherePan");
|
String where = request.getParameter("where");
|
wherePan =(wherePan==null)?(where!=null?where:null):wherePan;
|
request.setAttribute("wherePan",wherePan);//功能连接表达式 &符号的替换属性需要用到 在RequestParameterUtils类的replaceRequestExpression方法调用到。操作时间 2014-6-26 10:40:00
|
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){
|
String []temp = wherePan.split("and");
|
String []t=null;
|
for(int i=0;i<temp.length;i++){
|
t=temp[i].split("=");
|
if("doccode".equalsIgnoreCase(t[0])){
|
try{
|
docCode=t[1];break;
|
}catch(Exception e){
|
|
}
|
}
|
}
|
panelEnd=wherePan;
|
}
|
if(copy!=null){
|
docCode=request.getParameter("doccode");
|
where="doccode='"+docCode+"'";
|
}
|
if(docCode!=null&&!docCode.equals("")){
|
// isNew=(isNew==null)?"1":"0";
|
panelEnd=(panelEnd.equals("")?"doccode='"+docCode.replaceAll("'","")+"'":panelEnd)+" and (formid in("+formId+" #dataformid#)) #formdatafilters# ";
|
}
|
//panel info
|
panelEnd=panelEnd.equals("")?"1=2":panelEnd;
|
wherePan=panelEnd+ " and "+DBHelper.getQx(session);
|
String doccode=docCode;
|
//isNew=(doccode.equals(""))?isNew:"0";
|
isNew=(isNew!=null?isNew:(doccode.equals("")?"1":"0"));
|
String grid=null;
|
//end
|
wherePan=DBHelper.getDWFqx(wherePan,request,formId,0);
|
String zt="";
|
Map atMap = new HashMap();
|
Map<String, Object> bdMap =new HashMap<String,Object>();
|
boolean nb=false;
|
String pantit="";
|
%>
|