日期:2014-05-16  浏览次数:20414 次

js 取值问题
<script language="JavaScript">
<!--
   //导出
  function expExcel()
  {
     var counttype=<%=request.getParameter("counttype")%>;
      <%
       //System.out.print(request.getAttribute("timestart")+"aaaa");
       if(null==request.getAttribute("timestart")){
          request.setAttribute("timestart",new Date().getYear());
       }
       if(null==request.getAttribute("timeend")){
          request.setAttribute("timeend",new Date().getYear());
       }
       %>
       var items="";
       if('null'!='<%=request.getAttribute("timestart")%>'||' '!='<%=request.getAttribute("timestart")%>'){
         items=items+"&timestart=<%=DateFormat.getDateInstance().format(request.getAttribute("timestart")) %>";
       }
       if('null'!='<%=request.getAttribute("timeend")%>'||' '!='<%=request.getAttribute("timeend")%>'){
         items=items+"&timeend=<%=DateFormat.getDateInstance().format(request.getAttribute("timeend")) %>";
       }
       if('null'!='<%=request.getParameter("constructionstatus") %>' || ' '!='<%=request.getParameter("constructionstatus") %>'){
          items=items+"&constructionstatus=<%=request.getParameter("constructionstatus") %>";
       }
       if('null'!='<%=request.getParameter("f_constructionunitid") %>' || ' '!='<%=request.getParameter("f_constructionunitid") %>'){
          items=items+"&f_constructionunitid=<%=request.getParameter("f_constructionunitid") %>";
       }
    
     if(counttype==1||""==counttype||null==counttype){
     
      
      
       thisForm.action="<%=request.getContextPath()%>/MainController.do?ActionName=com.dfkj.gcgl.action.project.actionQryPjDetailList&NextPage=jsp/project/pjdetail_listexp.jsp&zt="+<%=request.getParameter("zt") %>+"&counttype="+<%=request.getParameter("counttype") %>+"&burId="+<%=request.getParameter("burId") %>+"&ty="+<%=request.getParameter("ty") %>+""+items;
   thisForm.submit();
     }
     if(counttype==2){
       thisForm.action="<%=request.getContextPath()%>/MainController.do?ActionName=com.dfkj.gcgl.action.project.actionQryPjMsConsDetailList&NextPage=jsp/project/pjdetail_listexp.jsp&zt="+<%=request.getParameter("zt") %>+"&counttype="+<%=request.getParameter("counttype") %>+"&managerid="+<%=request.getParameter("managerid") %>+"&burId="+<%=request.getParameter("burId") %>+"&ty="+<%=request.getParameter("ty") %>+""+items;
   thisForm.submit();
     }
     if(counttype==3){
       thisForm.action="<%=request.getContextPath()%>/MainController.do