| | |
| | | String URL =SettingKey.getHostUrl(request); |
| | | String canelProc="[?canelProc]";//取消确认过程 |
| | | String revokeProc="[?revokeProc]";//撤回过程 |
| | | int formId = [?formId];//formid |
| | | String formName ="[?formName]";//formName |
| | | int formType = [?formType]; |
| | | int version=[?version];//当前的版本号 |
| | | int optype = [?formOptType];//操作类型 |
| | | 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 |
| | | isshowinserialbtn |
| | | = |
| | | [ |
| | | ? |
| | | isshowinserialbtn |
| | | ] |
| | | ; |
| | | String |
| | | inserialbtneditstatus |
| | | = |
| | | "[?inserialbtneditstatus]" |
| | | ; |
| | | //出库 |
| | | Integer isshowoutserialbtn=[?isshowoutserialbtn]; |
| | | String outserialbtneditstatus="[?outserialbtneditstatus]"; |
| | | Integer |
| | | isshowoutserialbtn |
| | | = |
| | | [ |
| | | ? |
| | | isshowoutserialbtn |
| | | ] |
| | | ; |
| | | String |
| | | outserialbtneditstatus |
| | | = |
| | | "[?outserialbtneditstatus]" |
| | | ; |
| | | //盘点 |
| | | Integer isShowCycleCountSerialBtn=[?isShowCycleCountSerialBtn]; |
| | | String cycleCountSerialBtnEditStatus="[?cycleCountSerialBtnEditStatus]"; |
| | | Integer |
| | | isShowCycleCountSerialBtn |
| | | = |
| | | [ |
| | | ? |
| | | isShowCycleCountSerialBtn |
| | | ] |
| | | ; |
| | | String |
| | | cycleCountSerialBtnEditStatus |
| | | = |
| | | "[?cycleCountSerialBtnEditStatus]" |
| | | ; |
| | | //农行支付收款、退款控制 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"; |
| | | Integer |
| | | isshowonlinepaymentbutton |
| | | = |
| | | [ |
| | | ? |
| | | isshowonlinepaymentbutton |
| | | ] |
| | | ; |
| | | String |
| | | online |
| | | = |
| | | "" |
| | | ; |
| | | if |
| | | ( |
| | | isshowonlinepaymentbutton |
| | | == |
| | | 1 |
| | | ) |
| | | { |
| | | online |
| | | += |
| | | ",(case when isnull(OnlinePaymentAmount,0) > 0 then 1 else 0 end) as isshowonlinepaymentbutton" |
| | | ; |
| | | } |
| | | |
| | | //---------------在线交流,流程跟踪 by danaus 2024-03-15 09:36 |
| | | String |
| | | isShowOnlineMsg |
| | | = |
| | | "[?isShowOnlineMsg]" |
| | | ;//是否显示,1显示,0不显示 |
| | | String |
| | | showOnlineMsgExpression |
| | | = |
| | | "[?ShowOnlineMsgExpression]" |
| | | ;//表达式 |
| | | String |
| | | isShowProcessTracking |
| | | = |
| | | "[?isShowProcessTracking]" |
| | | ; |
| | | String |
| | | showProcessTrackingExpression |
| | | = |
| | | "[?ShowProcessTrackingExpression]" |
| | | ; |
| | | //--在线交流sql表达式 |
| | | if |
| | | ( |
| | | "1" |
| | | . |
| | | equals |
| | | ( |
| | | isShowOnlineMsg |
| | | ) |
| | | ) |
| | | { |
| | | if |
| | | ( |
| | | org |
| | | . |
| | | apache |
| | | . |
| | | commons |
| | | . |
| | | lang3 |
| | | . |
| | | StringUtils |
| | | . |
| | | isNotBlank |
| | | ( |
| | | showOnlineMsgExpression |
| | | ) |
| | | ) |
| | | { |
| | | showOnlineMsgExpression |
| | | = |
| | | DBHelper |
| | | . |
| | | getRepAll |
| | | ( |
| | | showOnlineMsgExpression |
| | | , |
| | | session |
| | | , |
| | | null |
| | | , |
| | | true |
| | | ) |
| | | ; |
| | | online |
| | | += |
| | | ",(case when " |
| | | + |
| | | showOnlineMsgExpression |
| | | + |
| | | " then 1 else 0 end) as isShowOnlineMsgBtn" |
| | | ; |
| | | } |
| | | else |
| | | { |
| | | //没有设置表达式,默认显示 |
| | | online |
| | | += |
| | | ",1 as isShowOnlineMsgBtn" |
| | | ; |
| | | } |
| | | } |
| | | //--流程跟踪sql表达式 |
| | | if |
| | | ( |
| | | "1" |
| | | . |
| | | equals |
| | | ( |
| | | isShowProcessTracking |
| | | ) |
| | | ) |
| | | { |
| | | if |
| | | ( |
| | | org |
| | | . |
| | | apache |
| | | . |
| | | commons |
| | | . |
| | | lang3 |
| | | . |
| | | StringUtils |
| | | . |
| | | isNotBlank |
| | | ( |
| | | showProcessTrackingExpression |
| | | ) |
| | | ) |
| | | { |
| | | showProcessTrackingExpression |
| | | = |
| | | DBHelper |
| | | . |
| | | getRepAll |
| | | ( |
| | | showProcessTrackingExpression |
| | | , |
| | | session |
| | | , |
| | | null |
| | | , |
| | | true |
| | | ) |
| | | ; |
| | | online |
| | | += |
| | | ",(case when " |
| | | + |
| | | showProcessTrackingExpression |
| | | + |
| | | " then 1 else 0 end) as isShowProcessTrackingBtn" |
| | | ; |
| | | } |
| | | else |
| | | { |
| | | online |
| | | += |
| | | ",1 as isShowProcessTrackingBtn" |
| | | ; |
| | | } |
| | | } |
| | | //----------- |
| | | //用户代码 |
| | | String hrCode = (String)session.getAttribute(SessionKey.HRCODE); |
| | | String userCode = (String)session.getAttribute(SessionKey.USERCODE); |
| | | 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); |
| | | 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){} |
| | | 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; |
| | | 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; |
| | | if |
| | | ( |
| | | optype |
| | | != |
| | | - |
| | | 1 |
| | | ) |
| | | { |
| | | profile |
| | | = |
| | | profile |
| | | & |
| | | optype |
| | | ; |
| | | } |
| | | String queryString = request.getQueryString(); |
| | | if(queryString==null){ |
| | | queryString=""; |
| | | 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 |
| | | isOpenFuncShowPwdEdit |
| | | = |
| | | "[?isOpenFuncShowPwdEdit]" |
| | | ; |
| | | if |
| | | ( |
| | | isOpenFuncShowPwdEdit |
| | | != |
| | | "" |
| | | && |
| | | isOpenFuncShowPwdEdit |
| | | != |
| | | "0" |
| | | ) |
| | | { |
| | | boolean |
| | | hasOpen |
| | | = |
| | | CheckInputPwdUtils |
| | | . |
| | | checkPwd |
| | | ( |
| | | isOpenFuncShowPwdEdit |
| | | , |
| | | "[?formId]" |
| | | , |
| | | request |
| | | , |
| | | response |
| | | , |
| | | session |
| | | ) |
| | | ; |
| | | if |
| | | ( |
| | | ! |
| | | hasOpen |
| | | ) |
| | | { |
| | | return |
| | | ; |
| | | } |
| | | } |
| | | //功能链接表达式 |
| | | String hasShowItemExpression = "[?hasShowItemExpression]"; |
| | | 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");//docCode.equals("")?null:""; |
| | | String panelEnd=""; |
| | | String wherePan=null; |
| | | 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=",""); |
| | | 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" |
| | | ) |
| | | ;//docCode.equals("")?null:""; |
| | | String |
| | | panelEnd |
| | | = |
| | | "" |
| | | ; |
| | | String |
| | | wherePan |
| | | = |
| | | null |
| | | ; |
| | | 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); |
| | | wherePan |
| | | = |
| | | com |
| | | . |
| | | yc |
| | | . |
| | | utils |
| | | . |
| | | HtmlUtil |
| | | . |
| | | prossIntoSessionForStr |
| | | ( |
| | | wherePan |
| | | , |
| | | session |
| | | ) |
| | | ; |
| | | |
| | | if(wherePan!=null){//如果是三点弹出就改下路径,进入if |
| | | 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){} |
| | | 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"); |
| | | panelEnd |
| | | = |
| | | wherePan |
| | | ; |
| | | } |
| | | if(docCode!=null&&!docCode.equals("")){ |
| | | if |
| | | ( |
| | | copy |
| | | != |
| | | null |
| | | ) |
| | | { |
| | | docCode |
| | | = |
| | | request |
| | | . |
| | | getParameter |
| | | ( |
| | | "doccode" |
| | | ) |
| | | ; |
| | | } |
| | | if |
| | | ( |
| | | docCode |
| | | != |
| | | null |
| | | && |
| | | ! |
| | | docCode |
| | | . |
| | | equals |
| | | ( |
| | | "" |
| | | ) |
| | | ) |
| | | { |
| | | //isNew=(isNew==null)?"1":"0"; |
| | | panelEnd=(panelEnd.equals("")?"doccode='"+docCode.replaceAll("'","")+"'":panelEnd)+" and (formid in("+formId+" #dataformid#)) #formdatafilters# "; |
| | | 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.replaceAll("'",""); |
| | | isNew=(isNew!=null?isNew:((doccode.equals(""))?"1":"0")); |
| | | panelEnd |
| | | = |
| | | panelEnd |
| | | . |
| | | equals |
| | | ( |
| | | "" |
| | | ) |
| | | ? |
| | | "1=2" |
| | | : |
| | | panelEnd |
| | | ; |
| | | wherePan |
| | | = |
| | | panelEnd |
| | | + |
| | | " and " |
| | | + |
| | | DBHelper |
| | | . |
| | | getQx |
| | | ( |
| | | session |
| | | ) |
| | | ; |
| | | String |
| | | doccode |
| | | = |
| | | docCode |
| | | . |
| | | replaceAll |
| | | ( |
| | | "'" |
| | | , |
| | | "" |
| | | ) |
| | | ; |
| | | isNew |
| | | = |
| | | ( |
| | | isNew |
| | | != |
| | | null |
| | | ? |
| | | isNew |
| | | : |
| | | ( |
| | | ( |
| | | doccode |
| | | . |
| | | equals |
| | | ( |
| | | "" |
| | | ) |
| | | ) |
| | | ? |
| | | "1" |
| | | : |
| | | "0" |
| | | ) |
| | | ) |
| | | ; |
| | | String grid=null; |
| | | //end |
| | | //---下面的变量太杂了。以后需要优化掉 2019-11-13 14:55:20 xin |
| | |
| | | String customURL=DBHelper.getCustomURL(request,formId,formType,"panel.jsp"); |
| | | %> |
| | | <jsp:include page="<%=customURL%>" flush="true"></jsp:include><%//改成兼容用户自定义控件布局的变量 xin 2024-1-12 16:14:05%> |
| | | <%-- <%@ include file="panel.jsp" %>--%> |
| | | </div> |
| | | </div> |
| | | <% |
| | | if ("1".equals(isShowOnlineMsg)) { |
| | | //isShowOnlineMsg定义在jsCssHead |
| | | request.setAttribute("formId", formId + ""); |
| | | request.setAttribute("docCode", doccode); |
| | | %> |
| | | <jsp:include page="/general/onlineMessage.jsp" flush="true"/> |
| | | <% |
| | | } |
| | | if ("1".equals(isShowProcessTracking)) {//isShowProcessTracking定义在jsCssHead |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%} %> |
| | | |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | |
| | | <script type="text/javascript" src="/js/bootstrap/fileinput/js/fileinput.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/bootstrap/fileinput/js/fileinput.js")%>"></script> |
| | | <script type="text/javascript" src="/js/bootstrap/fileinput/js/locales/zh.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/bootstrap/fileinput/js/locales/zh.js")%>"></script> |
| | | <script type="text/javascript" src="/general/Viewer/js/viewer.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/general/Viewer/js/viewer.min.js")%>"></script> |
| | | <% |
| | | String isShowOnlineMsg="[?isShowOnlineMsg]"; |
| | | String isShowProcessTracking="[?isShowProcessTracking]"; |
| | | %> |
| | | |
| | | <script type="text/javascript"> |
| | | var savedFunclink16=''; |
| | | var spellPath="/<%=session.getAttribute(SessionKey.DATA_BASE_ID)%>/<%=session.getAttribute(SessionKey.VERSION_ID)%>/<%=session.getAttribute(SessionKey.SYSTEM_LANGUAGE)%>/"; |
| | |
| | | Date now=new Date(); |
| | | SimpleDateFormat formatDate=new SimpleDateFormat("yyyy-MM-dd"); |
| | | String date=String.valueOf(now.getDate()); |
| | | Map<String,Object> docMap=new HashMap<String,Object>(); |
| | | int isNewOpen=1; |
| | | int docstatePan=0; |
| | | String tableIs="@zhu@"; |
| | | String tableIs2="@minxi@"; |
| | | Map<String,Object> docMap=new HashMap<String,Object>(); |
| | | List<Map<String, Object>> listInfo=new ArrayList<Map<String, Object>>(); |
| | | String addUrl="";//添加传给grid的条件,需要分离 |
| | | if((wherePan!=null&&!wherePan.equals(""))||grid!=null){ |
| | |
| | | } |
| | | } |
| | | //-------------------end |
| | | |
| | | } |
| | | SqlRowSet SRS =null; |
| | | String outStr=""; |
| | |
| | | <div class="panelControlDiv"> |
| | | @panelDownHtml@ |
| | | </div> |
| | | <% |
| | | if ("1".equals(docMap.get("isshowonlinemsgbtn"))) { |
| | | //isShowOnlineMsg定义在jsCssHead |
| | | request.setAttribute("formId", formId + ""); |
| | | request.setAttribute("docCode", doccode); |
| | | %> |
| | | <jsp:include page="/general/onlineMessage.jsp" flush="true"/> |
| | | <% |
| | | } |
| | | if ("1".equals(docMap.get("isshowprocesstrackingbtn"))) {//isShowProcessTracking定义在jsCssHead |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%} %> |
| | | <script type="text/javascript"> |
| | | @pansetInv@ |
| | | panMain[panIndex].loadSet(<%=docstatePan%>); |
| | |
| | | <%@page import="com.yc.utils.DefaultSet" %> |
| | | <%@page import="com.yc.sdk.shopping.util.SettingKey"%> |
| | | <% |
| | | String isShowOnlineMsg="[?isShowOnlineMsg]"; |
| | | String isShowProcessTracking="[?isShowProcessTracking]"; |
| | | String canelProc="[?canelProc]";//取消确认过程 |
| | | String revokeProc="[?revokeProc]";//撤回过程 |
| | | String URL =SettingKey.getHostUrl(request); |
| | |
| | | if(isshowonlinepaymentbutton==1){ |
| | | online+=",(case when isnull(OnlinePaymentAmount,0) > 0 then 1 else 0 end) as isshowonlinepaymentbutton"; |
| | | } |
| | | |
| | | //---------------在线交流,流程跟踪 by danaus 2024-03-15 09:36 |
| | | String isShowOnlineMsg="[?isShowOnlineMsg]";//是否显示,1显示,0不显示 |
| | | String showOnlineMsgExpression="[?ShowOnlineMsgExpression]";//表达式 |
| | | String isShowProcessTracking="[?isShowProcessTracking]"; |
| | | String showProcessTrackingExpression="[?ShowProcessTrackingExpression]"; |
| | | //--在线交流sql表达式 |
| | | if ("1".equals(isShowOnlineMsg)) { |
| | | if(org.apache.commons.lang3.StringUtils.isNotBlank(showOnlineMsgExpression)){ |
| | | showOnlineMsgExpression=DBHelper.getRepAll(showOnlineMsgExpression,session,null,true); |
| | | online+=",(case when "+showOnlineMsgExpression+" then 1 else 0 end) as isShowOnlineMsgBtn"; |
| | | }else{ |
| | | //没有设置表达式,默认显示 |
| | | online+=",1 as isShowOnlineMsgBtn"; |
| | | } |
| | | } |
| | | //--流程跟踪sql表达式 |
| | | if ("1".equals(isShowProcessTracking)) { |
| | | if(org.apache.commons.lang3.StringUtils.isNotBlank(showProcessTrackingExpression)){ |
| | | showProcessTrackingExpression=DBHelper.getRepAll(showProcessTrackingExpression,session,null,true); |
| | | online+=",(case when "+showProcessTrackingExpression+" then 1 else 0 end) as isShowProcessTrackingBtn"; |
| | | }else{ |
| | | online+=",1 as isShowProcessTrackingBtn"; |
| | | } |
| | | } |
| | | //----------- |
| | | //用户代码 |
| | | String hrCode = (String)session.getAttribute(SessionKey.HRCODE); |
| | | String userCode = (String)session.getAttribute(SessionKey.USERCODE); |
| | |
| | | @panFou@ |
| | | </div> |
| | | </div> |
| | | <%if ("1".equals(isShowOnlineMsg)) {//isShowOnlineMsg定义在jsCssHead %> |
| | | <% |
| | | request.setAttribute("formId", formId + ""); |
| | | request.setAttribute("docCode", doccode); |
| | | %> |
| | | <jsp:include page="/general/onlineMessage.jsp" flush="true"/> |
| | | <% |
| | | } |
| | | if ("1".equals(isShowProcessTracking)) {//isShowProcessTracking定义在jsCssHead |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%} %> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | |
| | | </div> |
| | | @include@ |
| | | <div class="panelControlDiv">@panelDownHtml@</div> |
| | | <% |
| | | if ("1".equals(docMap.get("isshowonlinemsgbtn"))) { |
| | | //isShowOnlineMsg定义在jsCssHead |
| | | request.setAttribute("formId", formId + ""); |
| | | request.setAttribute("docCode", doccode); |
| | | %> |
| | | <jsp:include page="/general/onlineMessage.jsp" flush="true"/> |
| | | <% |
| | | } |
| | | if ("1".equals(docMap.get("isshowprocesstrackingbtn"))) {//isShowProcessTracking定义在jsCssHead |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%} %> |
| | | <script type="text/javascript"> |
| | | panIndex="@index@";//需要替换 |
| | | @pansetInv@ |
| | |
| | | String isNew = request.getParameter("isNew"); |
| | | String fl = request.getParameter("fl"); |
| | | String flag = request.getParameter("flag"); |
| | | |
| | | String online=""; |
| | | //---------------在线交流,流程跟踪 by danaus 2024-03-15 09:36 |
| | | String isShowOnlineMsg="[?isShowOnlineMsg]";//是否显示,1显示,0不显示 |
| | | String showOnlineMsgExpression="[?ShowOnlineMsgExpression]";//表达式 |
| | | String isShowProcessTracking="[?isShowProcessTracking]"; |
| | | String showProcessTrackingExpression="[?ShowProcessTrackingExpression]"; |
| | | //--在线交流sql表达式 |
| | | if ("1".equals(isShowOnlineMsg)) { |
| | | if(org.apache.commons.lang3.StringUtils.isNotBlank(showOnlineMsgExpression)){ |
| | | showOnlineMsgExpression=DBHelper.getRepAll(showOnlineMsgExpression,session,null,true); |
| | | online+=",(case when "+showOnlineMsgExpression+" then 1 else 0 end) as isShowOnlineMsgBtn"; |
| | | }else{ |
| | | //没有设置表达式,默认显示 |
| | | online+=",1 as isShowOnlineMsgBtn"; |
| | | } |
| | | } |
| | | //--流程跟踪sql表达式 |
| | | if ("1".equals(isShowProcessTracking)) { |
| | | if(org.apache.commons.lang3.StringUtils.isNotBlank(showProcessTrackingExpression)){ |
| | | showProcessTrackingExpression=DBHelper.getRepAll(showProcessTrackingExpression,session,null,true); |
| | | online+=",(case when "+showProcessTrackingExpression+" then 1 else 0 end) as isShowProcessTrackingBtn"; |
| | | }else{ |
| | | online+=",1 as isShowProcessTrackingBtn"; |
| | | } |
| | | } |
| | | //----------- |
| | | if(@doc!=null&&!@doc.equals("")){ |
| | | // isNew=(isNew==null)?"1":"0"; |
| | | panelEnd=(panelEnd.equals("")?"@doc='"+@doc.replaceAll("'","")+"'":panelEnd)+" and (formid in([?formId] #dataformid#)) #formdatafilters# "; |
| | |
| | | @panFou@ |
| | | </div> |
| | | </div> |
| | | <%if ("1".equals(isShowOnlineMsg)) {//isShowOnlineMsg定义在jsCssHead %> |
| | | <iframe style="width: 850px;height: 220px;" frameborder="0" scrolling="no" |
| | | src="/general/onlineMessage.jsp?formId=<%=formId %>&docCode=<%=doccode %>"></iframe> |
| | | <% |
| | | } |
| | | if ("1".equals(isShowProcessTracking)) {//isShowProcessTracking定义在jsCssHead |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%} %> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | |
| | | <%@ page language="java" contentType="text/html; charset=UTF-8" |
| | | pageEncoding="UTF-8"%> |
| | | <% |
| | | String isShowOnlineMsg="[?isShowOnlineMsg]"; |
| | | String isShowProcessTracking="[?isShowProcessTracking]"; |
| | | %> |
| | | <link rel="stylesheet" type="text/css" href="/style/commons.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/commons.css")%>"> |
| | | <link rel="stylesheet" type="text/css" href="/style/icon.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/icon.css")%>"> |
| | | <link rel="stylesheet" type="text/css" href="/style/default/easyui.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/default/easyui.css")%>"> |
| | |
| | | addUrl = " and "+temp1.substring(inds+3); |
| | | } |
| | | try{ |
| | | sql="select top 1 @selectColAll@ from ";//只能查一条 |
| | | // sql="select top 1 @selectColAll@ from ";//只能查一条 |
| | | sql="select top 1 @selectColAll@"+online+" from ";//增加在线交流,流程跟踪的后台执行判断 by danaus 2024-03-15 15:48 |
| | | if(sql.contains("&doccode&")){//by danaus 2011-1-25 |
| | | if(doccode!=null) |
| | | sql=sql.replaceAll("&doccode&",doccode.replaceAll("'","")); |
| | |
| | | <div class="panelControlDiv"> |
| | | @panelDownHtml@ |
| | | </div> |
| | | |
| | | <% |
| | | if ("1".equals(docMap.get("isshowonlinemsgbtn"))) { |
| | | //isShowOnlineMsg定义在jsCssHead |
| | | request.setAttribute("formId", formId + ""); |
| | | request.setAttribute("docCode", doccode); |
| | | %> |
| | | <jsp:include page="/general/onlineMessage.jsp" flush="true"/> |
| | | <% |
| | | } |
| | | if ("1".equals(docMap.get("isshowprocesstrackingbtn"))) {//isShowProcessTracking定义在jsCssHead |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%} %> |
| | | <script type="text/javascript"> |
| | | @pansetInv@ |
| | | panMain[panIndex].loadSet(<%=docstatePan%>); |
| | |
| | | int formType = [?formType]; |
| | | int version=[?version];//当前的版本号 |
| | | int optype = [?formOptType];//操作类型 |
| | | String isShowOnlineMsg="[?isShowOnlineMsg]";//是否打开在线交流 |
| | | String isShowProcessTracking="[?isShowProcessTracking]";//是否打开流程跟踪 |
| | | //序列号扫码 xin 2021-8-2 17:50:03 |
| | | //入库 |
| | | Integer isshowinserialbtn=[?isshowinserialbtn]; |
| | | String inserialbtneditstatus="[?inserialbtneditstatus]"; |
| | | //出库 |
| | | Integer isshowoutserialbtn=[?isshowoutserialbtn]; |
| | | String outserialbtneditstatus="[?outserialbtneditstatus]"; |
| | | String |
| | | outserialbtneditstatus |
| | | = |
| | | "[?outserialbtneditstatus]" |
| | | ; |
| | | //盘点 |
| | | Integer isShowCycleCountSerialBtn=[?isShowCycleCountSerialBtn]; |
| | | String cycleCountSerialBtnEditStatus="[?cycleCountSerialBtnEditStatus]"; |
| | | Integer |
| | | isShowCycleCountSerialBtn |
| | | = |
| | | [ |
| | | ? |
| | | isShowCycleCountSerialBtn |
| | | ] |
| | | ; |
| | | String |
| | | cycleCountSerialBtnEditStatus |
| | | = |
| | | "[?cycleCountSerialBtnEditStatus]" |
| | | ; |
| | | //农行支付收款、退款控制 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"; |
| | | Integer |
| | | isshowonlinepaymentbutton |
| | | = |
| | | [ |
| | | ? |
| | | isshowonlinepaymentbutton |
| | | ] |
| | | ; |
| | | String |
| | | online |
| | | = |
| | | "" |
| | | ; |
| | | if |
| | | ( |
| | | isshowonlinepaymentbutton |
| | | == |
| | | 1 |
| | | ) |
| | | { |
| | | online |
| | | += |
| | | ",(case when isnull(OnlinePaymentAmount,0) > 0 then 1 else 0 end) as isshowonlinepaymentbutton" |
| | | ; |
| | | } |
| | | //---------------在线交流,流程跟踪 by danaus 2024-03-15 09:36 |
| | | String |
| | | isShowOnlineMsg |
| | | = |
| | | "[?isShowOnlineMsg]" |
| | | ;//是否显示,1显示,0不显示 |
| | | String |
| | | showOnlineMsgExpression |
| | | = |
| | | "[?ShowOnlineMsgExpression]" |
| | | ;//表达式 |
| | | String |
| | | isShowProcessTracking |
| | | = |
| | | "[?isShowProcessTracking]" |
| | | ; |
| | | String |
| | | showProcessTrackingExpression |
| | | = |
| | | "[?ShowProcessTrackingExpression]" |
| | | ; |
| | | //--在线交流sql表达式 |
| | | if |
| | | ( |
| | | "1" |
| | | . |
| | | equals |
| | | ( |
| | | isShowOnlineMsg |
| | | ) |
| | | ) |
| | | { |
| | | if |
| | | ( |
| | | org |
| | | . |
| | | apache |
| | | . |
| | | commons |
| | | . |
| | | lang3 |
| | | . |
| | | StringUtils |
| | | . |
| | | isNotBlank |
| | | ( |
| | | showOnlineMsgExpression |
| | | ) |
| | | ) |
| | | { |
| | | showOnlineMsgExpression |
| | | = |
| | | DBHelper |
| | | . |
| | | getRepAll |
| | | ( |
| | | showOnlineMsgExpression |
| | | , |
| | | session |
| | | , |
| | | null |
| | | , |
| | | true |
| | | ) |
| | | ; |
| | | online |
| | | += |
| | | ",(case when " |
| | | + |
| | | showOnlineMsgExpression |
| | | + |
| | | " then 1 else 0 end) as isShowOnlineMsgBtn" |
| | | ; |
| | | } |
| | | else |
| | | { |
| | | //没有设置表达式,默认显示 |
| | | online |
| | | += |
| | | ",1 as isShowOnlineMsgBtn" |
| | | ; |
| | | } |
| | | } |
| | | //--流程跟踪sql表达式 |
| | | if |
| | | ( |
| | | "1" |
| | | . |
| | | equals |
| | | ( |
| | | isShowProcessTracking |
| | | ) |
| | | ) |
| | | { |
| | | if |
| | | ( |
| | | org |
| | | . |
| | | apache |
| | | . |
| | | commons |
| | | . |
| | | lang3 |
| | | . |
| | | StringUtils |
| | | . |
| | | isNotBlank |
| | | ( |
| | | showProcessTrackingExpression |
| | | ) |
| | | ) |
| | | { |
| | | showProcessTrackingExpression |
| | | = |
| | | DBHelper |
| | | . |
| | | getRepAll |
| | | ( |
| | | showProcessTrackingExpression |
| | | , |
| | | session |
| | | , |
| | | null |
| | | , |
| | | true |
| | | ) |
| | | ; |
| | | online |
| | | += |
| | | ",(case when " |
| | | + |
| | | showProcessTrackingExpression |
| | | + |
| | | " then 1 else 0 end) as isShowProcessTrackingBtn" |
| | | ; |
| | | } |
| | | else |
| | | { |
| | | online |
| | | += |
| | | ",1 as isShowProcessTrackingBtn" |
| | | ; |
| | | } |
| | | } |
| | | //----------- |
| | | //用户代码 |
| | | String userCode = (String)session.getAttribute(SessionKey.USERCODE); |
| | | String |
| | | userCode |
| | | = |
| | | ( |
| | | String |
| | | ) |
| | | session |
| | | . |
| | | getAttribute |
| | | ( |
| | | SessionKey |
| | | . |
| | | USERCODE |
| | | ) |
| | | ; |
| | | //用户权限 |
| | | Map<String,Map<String,Object>> perssion=(Map<String,Map<String,Object>>)session.getAttribute(SessionKey.PERSSION); |
| | | 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){} |
| | | 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(); |
| | |
| | | String customURL=DBHelper.getCustomURL(request,formId,formType,"panel.jsp"); |
| | | %> |
| | | <jsp:include page="<%=customURL%>" flush="true"></jsp:include><%//改成兼容用户自定义控件布局的变量 xin 2024-1-12 16:14:05%> |
| | | <%-- <%@ include file="panel.jsp" %>--%> |
| | | </div> |
| | | </div> |
| | | <% |
| | | if ("1".equals(isShowOnlineMsg)) {//isShowOnlineMsg定义在jsCssHead |
| | | request.setAttribute("formId", formId + ""); |
| | | request.setAttribute("docCode", doccode); |
| | | %> |
| | | <jsp:include page="/general/onlineMessage.jsp" flush="true"/> |
| | | <% |
| | | } |
| | | if ("1".equals(isShowProcessTracking)) {//isShowProcessTracking定义在jsCssHead |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%}%> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | <span id="checkIs"> </span> |
| | |
| | | addUrl = " and "+temp1.substring(inds+3); |
| | | } |
| | | try{ |
| | | sql="select top 1 @selectColAll@ from ";//只能查一条 |
| | | sql = "select top 1 @selectColAll@" + online + " from ";//只能查一条 |
| | | if(sql.contains("&doccode&")){//by danaus 2011-1-25 |
| | | if(doccode!=null) |
| | | sql=sql.replaceAll("&doccode&",doccode.replaceAll("'","")); |
| | |
| | | @uploadEditStatusMap@ |
| | | @panInfo@ |
| | | @panelScript@ |
| | | panMain[panIndex].upDoc='<%=DBHelper.getValue(docMap,"upDoc")%>'; |
| | | panMain |
| | | [panIndex].upDoc = '<%=DBHelper.getValue(docMap,"upDoc")%>'; |
| | | panMain[panIndex].nextDoc='<%=DBHelper.getValue(docMap,"nextDoc")%>'; |
| | | panMain[panIndex].controlUrl="panelControl@formId@.jsp"; |
| | | panMain[panIndex].isNew=isNew;//是否是新单 |
| | |
| | | <div class="panelControlDiv">@panelHtml@</div> |
| | | <div id="tplt-grid"><%@ include file="@formId@_@customGrid@grid.jsp"%></div> |
| | | <div class="panelControlDiv">@panelDownHtml@</div> |
| | | <% |
| | | if ("1".equals(docMap.get("isshowonlinemsgbtn"))) { |
| | | request.setAttribute("formId", formId + ""); |
| | | request.setAttribute("docCode", doccode); |
| | | %> |
| | | <jsp:include page="/general/onlineMessage.jsp" flush="true"/> |
| | | <% |
| | | } |
| | | if ("1".equals(docMap.get("isshowprocesstrackingbtn"))) { |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%} %> |
| | | <script type="text/javascript"> |
| | | @pansetInv@ |
| | | panMain[panIndex].loadSet(<%=docstatePan%>); |
| | | panMain |
| | | [panIndex].loadSet(<%=docstatePan%>); |
| | | panMain[panIndex].keyDown('123','null'); |
| | | </script> |
| | | </span> |
| | |
| | | String inserialbtneditstatus="[?inserialbtneditstatus]"; |
| | | //出库 |
| | | Integer isshowoutserialbtn=[?isshowoutserialbtn]; |
| | | String outserialbtneditstatus="[?outserialbtneditstatus]"; |
| | | String |
| | | outserialbtneditstatus |
| | | = |
| | | "[?outserialbtneditstatus]" |
| | | ; |
| | | //盘点 |
| | | Integer isShowCycleCountSerialBtn=[?isShowCycleCountSerialBtn]; |
| | | String cycleCountSerialBtnEditStatus="[?cycleCountSerialBtnEditStatus]"; |
| | | Integer |
| | | isShowCycleCountSerialBtn |
| | | = |
| | | [ |
| | | ? |
| | | isShowCycleCountSerialBtn |
| | | ] |
| | | ; |
| | | String |
| | | cycleCountSerialBtnEditStatus |
| | | = |
| | | "[?cycleCountSerialBtnEditStatus]" |
| | | ; |
| | | //农行支付收款、退款控制 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"; |
| | | Integer |
| | | isshowonlinepaymentbutton |
| | | = |
| | | [ |
| | | ? |
| | | isshowonlinepaymentbutton |
| | | ] |
| | | ; |
| | | String |
| | | online |
| | | = |
| | | "" |
| | | ; |
| | | if |
| | | ( |
| | | isshowonlinepaymentbutton |
| | | == |
| | | 1 |
| | | ) |
| | | { |
| | | online |
| | | += |
| | | ",(case when isnull(OnlinePaymentAmount,0) > 0 then 1 else 0 end) as isshowonlinepaymentbutton" |
| | | ; |
| | | } |
| | | //---------------在线交流,流程跟踪 by danaus 2024-03-15 09:36 |
| | | String |
| | | isShowOnlineMsg |
| | | = |
| | | "[?isShowOnlineMsg]" |
| | | ;//是否显示,1显示,0不显示 |
| | | String |
| | | showOnlineMsgExpression |
| | | = |
| | | "[?ShowOnlineMsgExpression]" |
| | | ;//表达式 |
| | | String |
| | | isShowProcessTracking |
| | | = |
| | | "[?isShowProcessTracking]" |
| | | ; |
| | | String |
| | | showProcessTrackingExpression |
| | | = |
| | | "[?ShowProcessTrackingExpression]" |
| | | ; |
| | | //--在线交流sql表达式 |
| | | if |
| | | ( |
| | | "1" |
| | | . |
| | | equals |
| | | ( |
| | | isShowOnlineMsg |
| | | ) |
| | | ) |
| | | { |
| | | if |
| | | ( |
| | | org |
| | | . |
| | | apache |
| | | . |
| | | commons |
| | | . |
| | | lang3 |
| | | . |
| | | StringUtils |
| | | . |
| | | isNotBlank |
| | | ( |
| | | showOnlineMsgExpression |
| | | ) |
| | | ) |
| | | { |
| | | showOnlineMsgExpression |
| | | = |
| | | DBHelper |
| | | . |
| | | getRepAll |
| | | ( |
| | | showOnlineMsgExpression |
| | | , |
| | | session |
| | | , |
| | | null |
| | | , |
| | | true |
| | | ) |
| | | ; |
| | | online |
| | | += |
| | | ",(case when " |
| | | + |
| | | showOnlineMsgExpression |
| | | + |
| | | " then 1 else 0 end) as isShowOnlineMsgBtn" |
| | | ; |
| | | } |
| | | else |
| | | { |
| | | //没有设置表达式,默认显示 |
| | | online |
| | | += |
| | | ",1 as isShowOnlineMsgBtn" |
| | | ; |
| | | } |
| | | } |
| | | //--流程跟踪sql表达式 |
| | | if |
| | | ( |
| | | "1" |
| | | . |
| | | equals |
| | | ( |
| | | isShowProcessTracking |
| | | ) |
| | | ) |
| | | { |
| | | if |
| | | ( |
| | | org |
| | | . |
| | | apache |
| | | . |
| | | commons |
| | | . |
| | | lang3 |
| | | . |
| | | StringUtils |
| | | . |
| | | isNotBlank |
| | | ( |
| | | showProcessTrackingExpression |
| | | ) |
| | | ) |
| | | { |
| | | showProcessTrackingExpression |
| | | = |
| | | DBHelper |
| | | . |
| | | getRepAll |
| | | ( |
| | | showProcessTrackingExpression |
| | | , |
| | | session |
| | | , |
| | | null |
| | | , |
| | | true |
| | | ) |
| | | ; |
| | | online |
| | | += |
| | | ",(case when " |
| | | + |
| | | showProcessTrackingExpression |
| | | + |
| | | " then 1 else 0 end) as isShowProcessTrackingBtn" |
| | | ; |
| | | } |
| | | else |
| | | { |
| | | online |
| | | += |
| | | ",1 as isShowProcessTrackingBtn" |
| | | ; |
| | | } |
| | | } |
| | | //----------- |
| | | //用户代码 |
| | | String hrCode = (String)session.getAttribute(SessionKey.HRCODE); |
| | | String userCode = (String)session.getAttribute(SessionKey.USERCODE); |
| | | 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); |
| | | 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){} |
| | | int |
| | | profile |
| | | = |
| | | - |
| | | 1 |
| | | ; |
| | | try |
| | | { |
| | | profile |
| | | = |
| | | ( |
| | | Integer |
| | | ) |
| | | perssion |
| | | . |
| | | get |
| | | ( |
| | | formId |
| | | + |
| | | "" |
| | | ) |
| | | . |
| | | get |
| | | ( |
| | | "optype" |
| | | ) |
| | | ; |
| | | } |
| | | catch |
| | | ( |
| | | Exception |
| | | e |
| | | ) |
| | | { |
| | | } |
| | | |
| | | //是否为超级管理员 1 为超级管理员 |
| | | String isSuperUser = (String)session.getAttribute(SessionKey.SUPPER_USER); |
| | |
| | | String customURL=DBHelper.getCustomURL(request,formId,formType,"panel.jsp"); |
| | | %> |
| | | <jsp:include page="<%=customURL%>" flush="true"></jsp:include><%//改成兼容用户自定义控件布局的变量 xin 2024-1-12 16:14:05%> |
| | | <%-- <%@ include file="panel.jsp" %>--%> |
| | | </div> |
| | | <%if ("1".equals(isShowOnlineMsg)) {//isShowOnlineMsg定义在jsCssHead %> |
| | | <% |
| | | request.setAttribute("formId", formId + ""); |
| | | request.setAttribute("docCode", doccode); |
| | | %> |
| | | <jsp:include page="/general/onlineMessage.jsp" flush="true"/> |
| | | <% |
| | | } |
| | | if ("1".equals(isShowProcessTracking)) {//isShowProcessTracking定义在jsCssHead |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%} %> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | |
| | | <%@ page language="java" contentType="text/html; charset=UTF-8" |
| | | pageEncoding="UTF-8"%> |
| | | <% |
| | | String isShowOnlineMsg="[?isShowOnlineMsg]"; |
| | | String isShowProcessTracking="[?isShowProcessTracking]"; |
| | | %> |
| | | <link rel="stylesheet" type="text/css" href="/style/commons.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/commons.css")%>"> |
| | | <link rel="stylesheet" type="text/css" href="/style/icon.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/icon.css")%>"> |
| | | <link rel="stylesheet" type="text/css" href="/style/default/easyui.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/default/easyui.css")%>"> |
| | |
| | | addUrl = " and "+temp1.substring(inds+3); |
| | | } |
| | | try{ |
| | | sql="select top 1 @selectColAll@ from ";//只能查一条 |
| | | sql = "select top 1 @selectColAll@" + online + " from ";//只能查一条 |
| | | if(sql.contains("&doccode&")){//by danaus 2011-1-25 |
| | | if(doccode!=null) |
| | | sql=sql.replaceAll("&doccode&",doccode.replaceAll("'","")); |
| | | } |
| | | SpObserver.setDBtoInstance("_"+request.getSession().getAttribute(SessionKey.DATA_BASE_ID)); |
| | | if(copy!=null){ |
| | | listInfo=PanelManageBo.getFromEnd(sql,tableIs,wherePan.replaceAll("_ycid_","id"),@formType@,copy,request); |
| | | listInfo = PanelManageBo.getFromEnd(sql, tableIs, wherePan.replaceAll("_ycid_", "id"), @formType @, |
| | | copy, request); |
| | | }else{ |
| | | listInfo=PanelManageBo.getFromEnd(sql,tableIs,(wherePan==null?wherePan:wherePan.replaceAll("_ycid_","id")),@formType@,request); |
| | | listInfo = PanelManageBo.getFromEnd(sql, tableIs, (wherePan == null ? wherePan : wherePan.replaceAll("_ycid_", "id")), |
| | | @formType @,request); |
| | | } |
| | | }catch(Exception e){ |
| | | throw e; |
| | |
| | | <div class="panelControlDiv"> |
| | | @panelDownHtml@ |
| | | </div> |
| | | <% |
| | | if ("1".equals(docMap.get("isshowonlinemsgbtn"))) { |
| | | //isShowOnlineMsg定义在jsCssHead |
| | | request.setAttribute("formId", formId + ""); |
| | | request.setAttribute("docCode", doccode); |
| | | %> |
| | | <jsp:include page="/general/onlineMessage.jsp" flush="true"/> |
| | | <% |
| | | } |
| | | if ("1".equals(docMap.get("isshowprocesstrackingbtn"))) {//isShowProcessTracking定义在jsCssHead |
| | | %> |
| | | <%@ include file="/general/processTrack.jsp" %> |
| | | <%} %> |
| | | <script type="text/javascript"> |
| | | @pansetInv@ |
| | | panMain[panIndex].loadSet(<%=docstatePan%>); |
| | | panMain |
| | | [panIndex].loadSet(<%=docstatePan%>); |
| | | panMain[panIndex].keyDown('123','null'); |
| | | </script> |
| | | </span> |
| | |
| | | package com.yc.action.grid; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | |
| | | private String treeNodeFiled;//树节点字段名称 |
| | | private String treefilterstr;//树过滤条件 |
| | | public void build(String str){ |
| | | //treenodeid+sp+type+sp+nodeval+sp+treecontrol+sp+currentFormid+sp+treeFormType+sp+"1=1"+sp+detailNodeid; |
| | | //treenodeid+sp+type+sp+nodeval+sp+treecontrol+sp+currentFormid+sp+treeFormType+sp+"1=1"+sp+detailNodeid+sp+treefilterstr |
| | | if(str!=null&&!"".equals(str)) { |
| | | String[] temp = str.split(";"); |
| | | treeNodeFiled = temp[0]; |
| | |
| | | private Integer isShowCycleCountSerialBtn; |
| | | private String cycleCountSerialBtnEditStatus; |
| | | private String excludeTablesWhenSaving; |
| | | private String showOnlineMsgExpression; |
| | | private String showProcessTrackingExpression; |
| | | } |
| | | |
| | |
| | | //没设置则按钮不显示 |
| | | sb.append(",0 as [RevokeBtn_Visible]"); |
| | | } |
| | | //---------------在线交流,流程跟踪 by danaus 2024-03-15 09:36 |
| | | Integer isShowOnlineMsg = gformEntity.getIsshowonlinemsg();//是否显示,1显示,0不显示 |
| | | String showOnlineMsgExpression = gformEntity.getShowOnlineMsgExpression();//表达式 |
| | | Integer isShowProcessTracking = gformEntity.getIsshowprocesstracking(); |
| | | String showProcessTrackingExpression = gformEntity.getShowProcessTrackingExpression(); |
| | | //--在线交流sql表达式 |
| | | if (isShowOnlineMsg != null && isShowOnlineMsg == 1) { |
| | | if (org.apache.commons.lang3.StringUtils.isNotBlank(showOnlineMsgExpression)) { |
| | | sb.append(",(case when " + showOnlineMsgExpression + " then 1 else 0 end) as [isShowOnlineMsgBtn_Visible]"); |
| | | } else { |
| | | //没有设置表达式,默认显示 |
| | | sb.append(",1 as [isShowOnlineMsgBtn_Visible]"); |
| | | } |
| | | } else { |
| | | sb.append(",0 as [isShowOnlineMsgBtn_Visible]"); |
| | | } |
| | | //--流程跟踪sql表达式 |
| | | if (isShowProcessTracking != null && isShowProcessTracking == 1) { |
| | | if (org.apache.commons.lang3.StringUtils.isNotBlank(showProcessTrackingExpression)) { |
| | | sb.append(",(case when " + showProcessTrackingExpression + " then 1 else 0 end) as [isShowProcessTrackingBtn_Visible]"); |
| | | } else { |
| | | sb.append(",1 as [isShowProcessTrackingBtn_Visible]"); |
| | | } |
| | | } else { |
| | | sb.append(",0 as [isShowProcessTrackingBtn_Visible]"); |
| | | } |
| | | //----------- |
| | | } |
| | | return sb.toString(); |
| | | } |
| | |
| | | extras.put("title", companyMemo);//公司名称 |
| | | List<String> alais = new ArrayList<String>(); |
| | | alais.add(telephone); |
| | | //alais.add(dataSourceEntity.getDbId() + "_" + usercode); |
| | | alais.add(dataSourceEntity.getDbId() + "_" + usercode);//TODO 兼容处理,app所有版本都更新后,再移除 |
| | | queue.add(new JpushMsg(alais, topic, extras, dataSourceEntity.getDbId(), UNID, map.get("formname") + "", doccode)); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Object searchByText(SearchEntity searchEntity) throws Exception { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Object nearbySearch(SearchEntity searchEntity) throws Exception { |
| | | return null; |
| | | } |
| | |
| | | return callBackMessage.toJSONObject(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 关键字搜索 |
| | | * |
| | | * @param request |
| | | * @return 返回结果 |
| | | */ |
| | | @RequestMapping(value = "/app/map/searchByText.do", method = RequestMethod.POST) |
| | | @CrossOrigin |
| | | public @ResponseBody Object searchByText(@RequestBody SearchEntity searchEntity, |
| | | HttpServletRequest request) { |
| | | CallBackMessage callBackMessage = new CallBackMessage(); |
| | | try { |
| | | if (searchEntity == null) { |
| | | throw new ApplicationException("参数不能为空"); |
| | | } |
| | | Object result = MapService.getMapFactory().searchByText(searchEntity); |
| | | callBackMessage.sendSuccessMessageByDefault(); |
| | | callBackMessage.setInfo(result); |
| | | return callBackMessage.toJSONObject(); |
| | | } catch (Exception ex) { |
| | | callBackMessage.sendErrorMessage(this.getErrorMsg(ex)); |
| | | return callBackMessage.toJSONObject(); |
| | | } |
| | | } |
| | | } |
| | |
| | | private static String GEOCODEURL = "https://siteapi.cloud.huawei.com/mapApi/v1/siteService/reverseGeocode"; |
| | | private static String IPURL = "https://openlocation-drcn.platform.dbankcloud.com/networklocation/v1/ipLocation"; |
| | | private static String SEARCHURL = "https://siteapi.cloud.huawei.com/mapApi/v1/siteService/nearbySearch"; |
| | | private static String SEARCHBYTEXTURL = "https://siteapi.cloud.huawei.com/mapApi/v1/siteService/searchByText"; |
| | | |
| | | @Override |
| | | public LocationEntity getIPLocation(String ip) throws Exception { |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Object searchByText(SearchEntity searchEntity) throws Exception { |
| | | try { |
| | | if (StringUtils.isBlank(searchEntity.getQuery())) { |
| | | throw new ApplicationException("搜索关键字不能为空"); |
| | | } |
| | | HttpClient httpClient = HttpClients.createDefault(); |
| | | HttpPost post = new HttpPost(SEARCHBYTEXTURL); |
| | | post.setHeader("Content-Type", "application/json;charset=utf-8"); |
| | | post.setHeader("Authorization", "Bearer " + KEY); |
| | | StringEntity myEntity = new StringEntity(JSON.toJSONString(searchEntity), "UTF-8"); |
| | | myEntity.setContentType("application/json;charset=UTF-8"); |
| | | post.setEntity(myEntity); |
| | | HttpResponse response = httpClient.execute(post); |
| | | int statusCode = response.getStatusLine().getStatusCode(); |
| | | if (statusCode != HttpStatus.SC_OK) { |
| | | throw new ApplicationException("获取响应失败,请重新提交-" + response.getStatusLine().getStatusCode() + "[" + response.getStatusLine().getReasonPhrase() + "]"); |
| | | } else { |
| | | ReverseGeocodeResponseEntity responseEntity = JSON.parseObject(EntityUtils.toString(response.getEntity(), "UTF-8"), ReverseGeocodeResponseEntity.class); |
| | | if ("0".equalsIgnoreCase(responseEntity.getReturnCode())) { |
| | | return responseEntity; |
| | | } else if ("010004".equalsIgnoreCase(responseEntity.getReturnCode())) { |
| | | //查找不到 |
| | | return responseEntity; |
| | | } else { |
| | | throw new ApplicationException(responseEntity.getReturnDesc()); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new ApplicationException("获取响应失败,请重新提交" + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public Object nearbySearch(SearchEntity searchEntity) throws Exception { |
| | | try { |
| | | CoordinateEntity coordinateEntity = searchEntity.getLocation(); |
| | |
| | | public class SearchEntity { |
| | | String query; |
| | | CoordinateEntity location; |
| | | int radius; |
| | | int radius = 5000; |
| | | String hwPoiType; |
| | | int pageIndex = 1; |
| | | int pageSize = 20; |
| | | boolean cityLimit = false; |
| | | String cityId; |
| | | } |
| | |
| | | */ |
| | | Object nearbySearch(SearchEntity searchEntity) throws Exception; |
| | | |
| | | /** |
| | | * 关键字搜索 |
| | | * |
| | | * @param searchEntity |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | Object searchByText(SearchEntity searchEntity) throws Exception; |
| | | } |
| | |
| | | protected PanelServiceIfc pIfc; |
| | | |
| | | public static String BEAN_INFO = "beaninfo"; |
| | | private static String GFORM_SQL = " isTitle,formname,showdetail,isopenFuncshowpwdedit,isshowpwdedit,optype,HDTable,version,dataformid,formdatafilters,panellabellayout,CancelBtnProcName,CancelBtnExpression,CancelBtnEditStatus,CancelBtnName,RevokeBtnProcName,RevokeBtnExpression,RevokeBtnEditStatus,isShowOnlineMsg,isShowProcessTracking,autoOpen,predocstatus,procgroupaftersavedoc,dealafterdocsave,transgroupcode,dttable,isShowNewDocButton,isshowinserialbtn,inserialbtneditstatus,isshowoutserialbtn ,outserialbtneditstatus,isshowonlinepaymentbutton,isshowgridstyleforapp,popupWindowsHeightRate,isShowCycleCountSerialBtn,cycleCountSerialBtnEditStatus";// |
| | | private static String GFORM_SQL = " isTitle,formname,showdetail,isopenFuncshowpwdedit,isshowpwdedit,optype,HDTable,version,dataformid,formdatafilters,panellabellayout,CancelBtnProcName,CancelBtnExpression,CancelBtnEditStatus,CancelBtnName,RevokeBtnProcName,RevokeBtnExpression,RevokeBtnEditStatus,isShowOnlineMsg,isShowProcessTracking,autoOpen,predocstatus,procgroupaftersavedoc,dealafterdocsave,transgroupcode,dttable,isShowNewDocButton,isshowinserialbtn,inserialbtneditstatus,isshowoutserialbtn ,outserialbtneditstatus,isshowonlinepaymentbutton,isshowgridstyleforapp,popupWindowsHeightRate,isShowCycleCountSerialBtn,cycleCountSerialBtnEditStatus,showOnlineMsgExpression,showProcessTrackingExpression";// |
| | | protected Map<String, Object> getGformInfo(String formid) { |
| | | return gformIfc.getGformInfo(GFORM_SQL, Integer.parseInt(formid)); |
| | | } |
| | |
| | | "<script type=\"text/javascript\" src=\"/js/bootstrap/v5.1.3/js/bootstrap.bundle.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/js/bootstrap/v5.1.3/js/bootstrap.bundle.js\")%>\"></script>\n"; |
| | | if (num != 0) {//表示存在有上传控件 |
| | | js_css += |
| | | // "<link rel=\"stylesheet\" type=\"text/css\" href=\"/js/bootstrap-upload/css/fileinput.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/js/bootstrap-upload/css/fileinput.css\")%>\">\n" + |
| | | // "<link rel=\"stylesheet\" type=\"text/css\" href=\"/js/bootstrap-upload/css/bootstrap.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/js/bootstrap-upload/css/bootstrap.css\")%>\">\n" + |
| | | // "<link rel=\"stylesheet\" type=\"text/css\" href=\"/js/bootstrap-upload/css/rotationscaling.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/js/bootstrap-upload/css/rotationscaling.css\")%>\">\n" + |
| | | // "<script type=\"text/javascript\" src=\"/js/bootstrap-upload/js/fileinput.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/js/bootstrap-upload/js/fileinput.js\")%>\"></script>\n" + |
| | | // "<script type=\"text/javascript\" src=\"/js/bootstrap-upload/js/locales/zh.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/js/bootstrap-upload/js/locales/zh.js\")%>\"></script>\n" + |
| | | // "<script type=\"text/javascript\" src=\"/shopping/view/javascript/bootstrap/js/bootstrap.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/shopping/view/javascript/bootstrap/js/bootstrap.min.js\")%>\"></script>\n"; |
| | | "<link rel=\"stylesheet\" type=\"text/css\" href=\"/js/bootstrap/fileinput/css/fileinput.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/js/bootstrap/fileinput/css/fileinput.css\")%>\">\n" + |
| | | "<link rel=\"stylesheet\" type=\"text/css\" href=\"/general/Viewer/css/viewer.min.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/general/Viewer/css/viewer.min.css\")%>\">\n" + |
| | | "<script type=\"text/javascript\" src=\"/js/bootstrap/fileinput/js/fileinput.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,\"/js/bootstrap/fileinput/js/fileinput.js\")%>\"></script>\n" + |
| | |
| | | tmpJsp = tmpJsp.replace("[?predocstatus]", gformInfo.get("predocstatus") + ""); |
| | | tmpJsp = tmpJsp.replace("[?isShowOnlineMsg]", gformInfo.get("isShowOnlineMsg") + ""); |
| | | tmpJsp = tmpJsp.replace("[?isShowProcessTracking]", gformInfo.get("isShowProcessTracking") + ""); |
| | | tmpJsp = tmpJsp.replace("[?ShowOnlineMsgExpression]", gformInfo.get("showOnlineMsgExpression") == null ? "" : gformInfo.get("showOnlineMsgExpression") + ""); |
| | | tmpJsp = tmpJsp.replace("[?ShowProcessTrackingExpression]", gformInfo.get("showProcessTrackingExpression") == null ? "" : gformInfo.get("showProcessTrackingExpression") + ""); |
| | | tmpJsp = tmpJsp.replace("[?isOpenFuncShowPwdEdit]", toString(gformInfo.get("isopenFuncshowpwdedit"))); |
| | | tmpJsp = tmpJsp.replace("[?version]", ("".equalsIgnoreCase(toString(gformInfo.get("version"))) ? "0" : toString(gformInfo.get("version")))); |
| | | // 序列号扫码 xin 2021-8-2 17:45:43 |
| | |
| | | throw new Exception("凭证定义未定义" + formID + "功能号的期间组织代码"); |
| | | } |
| | | } |
| | | |
| | | data = data.replaceAll("@CustomDoccode@", this.getValue(listS.get(0), "customdoccode")); |
| | | data = data.replace("#periodtype#", this.getValue(listS.get(0), "periodtype")); |
| | | data = data.replace("#comanyId#", companyId); |
| | |
| | | data = data.replace("[?predocstatus]", gformInfo.get("predocstatus") + ""); |
| | | data = data.replace("[?isShowOnlineMsg]", gformInfo.get("isShowOnlineMsg") + ""); |
| | | data = data.replace("[?isShowProcessTracking]", gformInfo.get("isShowProcessTracking") + ""); |
| | | data = data.replace("[?ShowOnlineMsgExpression]", gformInfo.get("showOnlineMsgExpression") == null ? "" : gformInfo.get("showOnlineMsgExpression") + ""); |
| | | data = data.replace("[?ShowProcessTrackingExpression]", gformInfo.get("showProcessTrackingExpression") == null ? "" : gformInfo.get("showProcessTrackingExpression") + ""); |
| | | buildPageCode(data, fileName, baseBean); |
| | | } |
| | | } |
| | |
| | | public class GridServiceImpl extends BaseService implements GridServiceIfc { |
| | | @Autowired |
| | | Type38Ifc type38Ifc; |
| | | private final String gform = "[formid], [formname],[isused],[formmemo],[optype],[refformid],[hdtable],[dttable],[showdetail],[fetchrecnumber],[queryform],[refreshTime],[refresh_aftersave],[frozencols],[LockGridSort],[rowcopyfields],[rowcopyformids],[rowDelFormids],[index1],[index1primary],[index2],[index2primary],[index3],[index3Primary],[dataformid],[predocstatus],[postdocstatus],[DocStatusName],[transgroupcode],[codelength],[preFixcode],[precodetype],[helpdoc_udl],[checkblncfields],[formalign],[DealAfterDocSave],[AllowEmptyRow],[Busi2fiDataView],[glcodefield],[txtinputfields],[DBCtrlRowCount],[ShowAsDetailMode],[modifytableflag],[applytableflag],[CrossInputType],[MultiTitleType],[datapooled],[glentitycode],[formdatafilters],[ProcGroupafterSavedoc], [TransTypecode],[currencyfld],[chkFormula],[GridFormatFun],[SelectChecker],[ReturnCurChecker],[ReturnCurCheckerName],[FT],[FTFormType],[FK],[SeekGroupID],[sPremissField],[dPremissField],[FKeFilter],[GridRowHeight],[GridHeight], [isShowPwdEdit], [isOpenFuncShowPwdEdit], [isShowOnlineMsg] ,[isShowProcessTracking] ,[PanelLabelLayout],[isTitle], [isTaobao],[cellAlign] ,[pageSize],[version],[reportprompts],[CancelBtnProcName],[CancelBtnExpression],[CancelBtnEditStatus],[isShowCell],[importProcName],[CancelIsSave],[CancelBtnName],[isGantt],[byGroup],[DefaultRowCount],[Expanded], [isFilter], [JNIName],[JNIDataBaseURL], [JNIPort] ,[JNIDataBaseName], [JNIUser], [JNIPwd] ,[JNISql] ,[JNITempTable],[addNewRow],[autopaging],[RevokeBtnProcName],[RevokeBtnExpression],[RevokeBtnEditStatus],[autoOpen],isExchangeDataWithHost,isShowNewDocButton,isShowMemoWhenApprovals,isshowinserialbtn,inserialbtneditstatus,isshowoutserialbtn ,outserialbtneditstatus,isShowOnlinePaymentButton,isShowGridStyleForApp ,popupWindowsHeightRate,isShowCycleCountSerialBtn,cycleCountSerialBtnEditStatus,excludeTablesWhenSaving ";// |
| | | private final String gform = "[formid], [formname],[isused],[formmemo],[optype],[refformid],[hdtable],[dttable],[showdetail],[fetchrecnumber],[queryform],[refreshTime],[refresh_aftersave],[frozencols],[LockGridSort],[rowcopyfields],[rowcopyformids],[rowDelFormids],[index1],[index1primary],[index2],[index2primary],[index3],[index3Primary],[dataformid],[predocstatus],[postdocstatus],[DocStatusName],[transgroupcode],[codelength],[preFixcode],[precodetype],[helpdoc_udl],[checkblncfields],[formalign],[DealAfterDocSave],[AllowEmptyRow],[Busi2fiDataView],[glcodefield],[txtinputfields],[DBCtrlRowCount],[ShowAsDetailMode],[modifytableflag],[applytableflag],[CrossInputType],[MultiTitleType],[datapooled],[glentitycode],[formdatafilters],[ProcGroupafterSavedoc], [TransTypecode],[currencyfld],[chkFormula],[GridFormatFun],[SelectChecker],[ReturnCurChecker],[ReturnCurCheckerName],[FT],[FTFormType],[FK],[SeekGroupID],[sPremissField],[dPremissField],[FKeFilter],[GridRowHeight],[GridHeight], [isShowPwdEdit], [isOpenFuncShowPwdEdit], [isShowOnlineMsg] ,[isShowProcessTracking] ,[PanelLabelLayout],[isTitle], [isTaobao],[cellAlign] ,[pageSize],[version],[reportprompts],[CancelBtnProcName],[CancelBtnExpression],[CancelBtnEditStatus],[isShowCell],[importProcName],[CancelIsSave],[CancelBtnName],[isGantt],[byGroup],[DefaultRowCount],[Expanded], [isFilter], [JNIName],[JNIDataBaseURL], [JNIPort] ,[JNIDataBaseName], [JNIUser], [JNIPwd] ,[JNISql] ,[JNITempTable],[addNewRow],[autopaging],[RevokeBtnProcName],[RevokeBtnExpression],[RevokeBtnEditStatus],[autoOpen],isExchangeDataWithHost,isShowNewDocButton,isShowMemoWhenApprovals,isshowinserialbtn,inserialbtneditstatus,isshowoutserialbtn ,outserialbtneditstatus,isShowOnlinePaymentButton,isShowGridStyleForApp ,popupWindowsHeightRate,isShowCycleCountSerialBtn,cycleCountSerialBtnEditStatus,excludeTablesWhenSaving,showOnlineMsgExpression,showProcessTrackingExpression ";// |
| | | |
| | | private final String gfield = "[formid],[headflag], [fieldid],[statisid],[Lblcode],[fieldname],[datatype],[displayformat], [showongrid],[gridcaption], [gridcontroltype],[gridlength],[ft],[ftformtype],[emptyrefdata], [fk],[seekgroupid],[spremissfield],[dpremissfield],[efilter],[return_one_record],[numfieldid], [visible], [hidelabel], [controltype],[rowno],[colno],[lengthnum],[heightnum],[detailrowno],[detailcolno],[detaillength],[detailheight],[statisflag] ,[blcheckauth],[indexfld],[readonly],[datalink],[keyinput],[secretfld],[calcufield],[formula],[sumfield],[funclinkname],[activefuns] ,[initvalue] ,[checkauthmode],[PreLike],[EnterToNextRow],[tabsheetname],[passwordchar],[uppercase] ,[LinkFormDisplayFields], [dyfieldview],[copyfromlastrow],[ftlockconditionflag],[datafilterfield], [HelpKeyID] ,[MultiLangYN], [IMEactive] , [memo], [Hints],[editStatus],[isReader] ,[SqlScript],[MasterFieldShowLocation], [isCustomHTMLComponent] , [showFieldValueExpression],[HyperlinkFT],[HyperlinkFTFormType],[HyperlinkSPremissField], [HyperlinkDPremissField],[HyperlinkEFilter],[Hyperlinkmode],[isAutoSaved],[stylecss],[rowSpan] ,[isImport],[isExport],[fieldtype],[cellAlign], [isCopyExclude],[isAutoRefresh],[isLoad],[Audit],[TipsExpression],[SuggestFileds],[RelationField],[onlyOne],AppColNo,AppHeight,AppHideLabel,AppLength,AppRowNo,AppVisible,ScanCodeField,funclinkname,exportTitle,isAPPExcludeField,SqlWhere,afterBlockDividingLine,appCellAlign,isSuppressBlankLineForDropDown "; |
| | | |