xinyb
2024-03-27 f87909326c2ff2c58da027163f64d9d8f9424b17
提交 | 用户 | age
a6a76f 1 <%@page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 
F 2 <%@page import="java.text.SimpleDateFormat"%>
3 <%@page import="com.yc.service.impl.EnvHelper"%>
4 <%@page import="com.yc.service.impl.DBHelper"%>
5 <%@page import="com.yc.service.build.BuildFuncIfc"%>
6 <%@page import="org.springframework.jdbc.support.rowset.SqlRowSet"%>
7 <%@page import="com.yc.factory.FactoryBean"%>
8 <%@page import="com.yc.service.panel.TypeControlDao"%>
9 <%@page import="com.yc.service.panel.time.PanelTimeDao"%>
10 <%@page import="com.yc.service.panel.PanelManageDao"%>
11 <%@page import="com.yc.service.panel.GfieldApprovedButtonIfc"%>
12 <%@page import="com.yc.service.panel.SqlDBHelperIfc"%>
13 <%@page import="com.yc.service.upload.AttachmentIfc"%>
14 <%@page import="com.yc.entity.attachment.AttachmentEntity"%>
15 <%@page import="com.yc.utils.DefaultSet" %>
16 <%@page import="net.sf.json.JSONObject"%>
f87909 17 <%@page import="com.yc.sdk.shopping.util.SettingKey"%>
X 18 <%@ include file="dataHead.jsp" %>
a6a76f 19 <%
F 20   SqlDBHelperIfc  sqlDBHelperIfc=(SqlDBHelperIfc)FactoryBean.getBean("SqlDBHelper");
21   GfieldApprovedButtonIfc gButtonIfc=(GfieldApprovedButtonIfc)FactoryBean.getBean("GfieldApprovedButton");
22   PanelTimeDao PanelTimeBo=(PanelTimeDao)FactoryBean.getBean("PanelTime");
23   PanelManageDao PanelManageBo=(PanelManageDao)FactoryBean.getBean("PanelManage");
24   TypeControlDao TypeControlBo=(TypeControlDao)FactoryBean.getBean("TypeControl");
25   //pengbei
26   request.setCharacterEncoding("UTF-8");
27   response.setCharacterEncoding("UTF-8");
28   String path = request.getContextPath();
29   String basePath = SettingKey.getHostUrl(request) + path + "/";
30   Date now=new Date();
31   Map<String,Object> docMap=new HashMap<String,Object>();
32   Map<String, Map<String, String>> mapAll=null;
33   String date=String.valueOf(now.getDate());
34   SimpleDateFormat formatDate=new SimpleDateFormat("yyyy-MM-dd");
35   String sql = "";
36   SqlRowSet SRS =null;
37   String outStr=""; 
38   BuildFuncIfc  build=(BuildFuncIfc)FactoryBean.getBean("Build"); 
39   String openDoc="@openDoc@";
40   JSONObject jsonOldPanel = JSONObject.fromObject(docMap);
41   sqlDBHelperIfc.execSql(DBHelper.getProcessAll(openDoc,session,null,true));
42 %>  
43 @linkscript@
44 <script type="text/javascript" src="/js/panel.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/panel.js")%>"></script>
45 <script type="text/javascript" src="/js/pan_search.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/pan_search.js")%>"></script>
46 <style type="text/css">
47 .posPan {
48     border: 0px solid #000000;
49     position: absolute;
50     height: 26px;
51     width: @kongJian@px;
52     font-size: 13px;
53     z-index:0;
54 }
55 .miaoshu_pan {    
56     height: auto;
57     float: left;
58     padding-top:5px;
59     width: @miaoShuo@px;
60     text-align:right;
61     white-space:nowrap;
62     overflow:hidden;
63     text-overflow:ellipsis;
64 }
65 .control_div{
66    float: left;
67 }
68 .bilu{
69   color: #FF0000;
70 }
71 .mustThree_show {
72     border:1px solid #ffcf5a;
73     background: #fff url(<%=URL%>/images/ppp.gif) no-repeat right;
74 }
75 .Three_show {
76     border:1px solid #a5a6ad;    
77
78 .input35{
79    height:14px;
80
81 .text {
82     border:1px solid #a5a6ad;    
83 }
84 </style>
85 <span onmouseover="panIndex='@index@'" id="panIndex@index@">
86 <script type="text/javascript">
87   panIndex="@index@";//需要替换
88   maxCols[panIndex]="@maxCols@";//面板跨列数
89   panMain[panIndex]=panPar;
90   @panInfo@
91   panMain[panIndex].controlUrl="panelControl@formId@.jsp";
92 </script>
93 <%@ include file="/public/template/0/showPan.txt" %>
176200 94 <div class="panelControlDiv">
a6a76f 95     @panelHtml@
F 96 </div>
97 </span>
98 <script>
99 <%
100   out.print("function setInvDate(){");
101   for(String id: timeMap.keySet()){//timeMap 在生成类中实现了
102          out.print("\r\n panMain[panIndex].docdateTi=getDoc('"+id+"',\".value\");");
103          out.print("\r\n if(panMain[panIndex].docdateTi==\"\"){");
104          out.print("\r\n   setDoc('"+id+"',\".value='"+timeMap.get(id).substring(0,10)+"'\");");    //.substring(0,10)    
105          out.print("\r\n }");
106   }  
107   out.print("\r\n } setInvDate();"); 
108 %>
109 </script>