抽查系统审核和查看记录

<% String isinputcheck=request.getAttribute("isinputcheck")==null?"0":(String)request.getAttribute("isinputcheck");   

  //公示抽查是否可以选择检查人员类型,Y开启,N关闭    

String canOptInspectorsType=request.getAttribute("canOptInspectorsType")==null?null:(String)request.getAttribute("canOptInspectorsType");      int inspectorTypeInt=etd.getInspectorTypeArray()==null?0:etd.getInspectorTypeArray().length;   

  int inspectorTypeInt1=etd1.getInspectorTypeArray()==null?0:etd1.getInspectorTypeArray().length; %> 审核抽查只读: 定向抽查: <%if("Y".equals(canOptInspectorsType)){ %>      

<%if("0".equals(etd1.getInspectorType())){%>          $("input[name='jcyr_dx_red']").attr('checked', 'true');          $("input[name='jcyr_dx_qb_red']").attr('checked', 'true');      

<%}else{%>       

<%for(int xyf=0;xyf<inspectorTypeInt1;xyf++){%>           $("input[name='jcyr_dx_red'][value='<%=etd1.getInspectorTypeArray()[xyf]%>']").attr('checked', true);       

<%}%>      

<%}%>     

<%}%>

不定向抽查:  

<%if("Y".equals(canOptInspectorsType)){ %>      

document.getElementById("id_jcyr_dx_red").style.display="none";        

<%if("0".equals(etd1.getInspectorType())){%>          $("input[name='jcyr_bdx_red']").attr('checked', 'true');        

$("input[name='jcyr_bdx_qb_red']").attr('checked', 'true');      

<%}else{%>      

<%for(int xyf=0;xyf<inspectorTypeInt1;xyf++){%>         

$("input[name='jcyr_bdx_red'][value='<%=etd1.getInspectorTypeArray()[xyf]%>']").attr('checked', true);       

<%}%>      

<%}%>              

<%}%>

审核抽查: 定向审核:

<%if("Y".equals(canOptInspectorsType)){ %>    

<%if("0".equals(etd.getInspectorType())){%>        $("input[name='jcyr_dx']").attr('checked', 'true');     

   $("input[name='jcyr_dx_qb']").attr('checked', 'true');    

<%}else{%>     

<%for(int nnn=0;nnn<inspectorTypeInt;nnn++){%>         $("input[name='jcyr_dx'][value='<%=etd.getInspectorTypeArray()[nnn]%>']").attr('checked', true);     

<%}%>    

<%}%>  

<%}%>

不定向审核:  

<%if("Y".equals(canOptInspectorsType)){ %>  

document.getElementById("id_jcyr_dx").style.display="none";     

<%if("0".equals(etd.getInspectorType())){%>         $("input[name='jcyr_bdx']").attr('checked', 'true');      

$("input[name='jcyr_bdx_qb']").attr('checked', 'true');       <%}else{%>      <%for(int mmm=0;mmm<inspectorTypeInt;mmm++){%>         $("input[name='jcyr_bdx'][value='<%=etd.getInspectorTypeArray()[mmm]%>']").attr('checked', true);     

<%}%>     

<%}%>   

<%}%>

非公示信息抽查任务申请action:

非公示抽查任务保存

EntChcExtRactTask enttask = new EntChcExtRactTask(); // 抽查任务实体类

String  inspectorTypeAll =request.getParameter("jcyr_dx_qb"); //定向抽取的全部检查人员类型
   if("Y".equals(canOptInspectorsType)){
               String[] inspectorTypes =request.getParameterValues("jcyr_dx"); //定向抽取的检查人员类型
               if("0".equals(inspectorTypeAll)){  //定向抽取的检查人员类型判断
               inspectorType="0";
               }else{
               inspectorType=getinspectorType(inspectorTypes);
               }
            }

//抽查任务审核历史记录表 申请时先保存一份历史记录
   EntTaskHistory entTaskHistory = new EntTaskHistory();

//抽查任务历史

if("Y".equals(canOptInspectorsType)){
               enttask.setInspectorType(inspectorType);
               entTaskHistory.setInspectorType(inspectorType);
            }else{
               enttask.setInspectorType("0");
               entTaskHistory.setInspectorType("0");
            }

private String getinspectorType(String[] inspectorTypes){
  StringBuffer sb=new StringBuffer();
  for(int i=0;i<inspectorTypes.length;i++){
   if(i+1==inspectorTypes.length){
    sb.append(inspectorTypes[i]);
   }else{
    sb.append(inspectorTypes[i]+",");
   }
  }
  return sb.toString();
 }

//结束!

抽查任务查询:  

<%if("Y".equals(canOptInspectorsType)){ %>         <td width="15%" align="right"><font size='2'><b>检查人员类型:</b></font></td>         <td colspan="3">          

<input type="checkbox" name="jcyr_qb1" value="0" disabled="disabled"/><span style="font-size: 12px">全部人员</span>       

<input type="checkbox" name="jcyr1" value="@1@" disabled="disabled"/><span style="font-size: 12px">企业类</span>    

<input type="checkbox" name="jcyr1" value="@2@" disabled="disabled"/><span style="font-size: 12px">商广类</span>       

<input type="checkbox" name="jcyr1" value="@3@" disabled="disabled"/><span style="font-size: 12px">市场类</span>       

<input type="checkbox" name="jcyr1" value="@4@" disabled="disabled"/><span style="font-size: 12px">执法类</span>      

 

   </td>        

 <script type="text/javascript">          

  <%if("0".equals(taskInfoDTOShJSH.getInspectorType())){%>        

   $("input[name='jcyr1']").attr('checked', 'true');          

   $("input[name='jcyr_qb1']").attr('checked', 'true');        

   <%}else{%>      

  <%for(int i=0;i<taskInfoDTOShJSH.getInspectorTypeArray().length;i++){ %>        

   $("input[name='jcyr1'][value='<%=taskInfoDTOShJSH.getInspectorTypeArray()[i]%>']").attr('checked', true);      

  <%}%>         <%}%>    

    </script>     

   <%} %> //省级审核  EntExtRactTaskInfoDTO taskInfoDTOShJSH=(EntExtRactTaskInfoDTO)request.getAttribute("taskInfoDTOShJSH");  

                //省级申请  EntExtRactTaskInfoDTO taskInfoDTOShJSQ=(EntExtRactTaskInfoDTO)request.getAttribute("taskInfoDTOShJSQ");

        //市级审核  EntExtRactTaskInfoDTO taskInfoDTOSJ=(EntExtRactTaskInfoDTO)request.getAttribute("taskInfoDTOSJ");  

        //市级申请  EntExtRactTaskInfoDTO taskInfoDTOSJSQ=(EntExtRactTaskInfoDTO)request.getAttribute("taskInfoDTOSJSQ");

          //县级审核  EntExtRactTaskInfoDTO taskInfoDTOXJSH=(EntExtRactTaskInfoDTO)request.getAttribute("taskInfoDTOXJSH");  

          //县级申请  EntExtRactTaskInfoDTO taskInfoDTOXJ=(EntExtRactTaskInfoDTO)request.getAttribute("taskInfoDTOXJ");

<td width="10%"><font size='2'><%=taskInfoDTOShJSH.getCheckDate()==null?null:sdf.format(taskInfoDTOShJSH.getCheckDate()) %></font></td>

 <td width="10%" align="right"><font size='2'><b>抽取类型:</b></font></td>       <td width="10%">         

<% if(taskInfoDTOShJSH.getTaskType().equals("1")){%>           <font size='2'> 定向抽取</font>         

<%}else{%>             <font size='2'>不定向抽取</font>          <%}%>

 </td>  

<%if("Y".equals(canOptInspectorsType)){ %>         <td width="15%" align="right"><font size='2'><b>检查人员类型:</b></font></td>        

<td colspan="3">         

 <input type="checkbox" name="jcyr_qb1" value="0" disabled="disabled"/><span style="font-size: 12px">全部人员</span>       

<input type="checkbox" name="jcyr1" value="@1@" disabled="disabled"/><span style="font-size: 12px">企业类</span>     

<input type="checkbox" name="jcyr1" value="@2@" disabled="disabled"/><span style="font-size: 12px">商广类</span>       

<input type="checkbox" name="jcyr1" value="@3@" disabled="disabled"/><span style="font-size: 12px">市场类</span>       

<input type="checkbox" name="jcyr1" value="@4@" disabled="disabled"/><span style="font-size: 12px">执法类</span>        

</td>        

<script type="text/javascript">           

<%if("0".equals(taskInfoDTOShJSH.getInspectorType())){%>         

$("input[name='jcyr1']").attr('checked', 'true');          

$("input[name='jcyr_qb1']").attr('checked', 'true');        

<%}else{%>        <%for(int i=0;i<taskInfoDTOShJSH.getInspectorTypeArray().length;i++){ %>          

$("input[name='jcyr1'][value='<%=taskInfoDTOShJSH.getInspectorTypeArray()[i]%>']").attr('checked', true);      

  <%}%>         <%}%>         </script>      <%} %>  

<%if("Y".equals(canOptInspectorsType)){ %>       

<td width="15%" align="right"><font size='2'><b>检查人员类型:</b></font></td>        

<td colspan="3">          

<input type="checkbox" name="jcyr_qb2" value="0" disabled="disabled"/><span style="font-size: 12px">全部人员</span>       

<input type="checkbox" name="jcyr2" value="@1@" disabled="disabled"/><span style="font-size: 12px">企业类</span>       

<input type="checkbox" name="jcyr2" value="@2@" disabled="disabled"/><span style="font-size: 12px">商广类</span>       

<input type="checkbox" name="jcyr2" value="@3@" disabled="disabled"/><span style="font-size: 12px">市场类</span>       

<input type="checkbox" name="jcyr2" value="@4@" disabled="disabled"/><span style="font-size: 12px">执法类</span>

</td>        

<script type="text/javascript">           

<%if("0".equals(taskInfoDTOShJSQ.getInspectorType())){%>          

$("input[name='jcyr2']").attr('checked', 'true');           $("input[name='jcyr_qb2']").attr('checked', 'true');      

   <%}else{%>       

<%for(int i=0;i<taskInfoDTOShJSQ.getInspectorTypeArray().length;i++){ %>         

  $("input[name='jcyr2'][value='<%=taskInfoDTOShJSQ.getInspectorTypeArray()[i]%>']").attr('checked', true);        <%}%>         <%}%>         </script>      <%} %>

<%if("Y".equals(canOptInspectorsType)){ %>        

<td width="15%" align="right"><font size='2'><b>检查人员类型:</b></font></td>        

<td colspan="3">          

<input type="checkbox" name="jcyr_qb3" value="0" disabled="disabled"/><span style="font-size: 12px">全部人员</span>       

<input type="checkbox" name="jcyr3" value="@1@" disabled="disabled"/><span style="font-size: 12px">企业类</span>       

<input type="checkbox" name="jcyr3" value="@2@" disabled="disabled"/><span style="font-size: 12px">商广类</span>       

<input type="checkbox" name="jcyr3" value="@3@" disabled="disabled"/><span style="font-size: 12px">市场类</span>       

<input type="checkbox" name="jcyr3" value="@4@" disabled="disabled"/><span style="font-size: 12px">执法类</span>        

</td>        

<script type="text/javascript">           

<%if("0".equals(taskInfoDTOSJ.getInspectorType())){%>          

$("input[name='jcyr3']").attr('checked', 'true');          

$("input[name='jcyr_qb3']").attr('checked', 'true');        

<%}else{%>       

<%for(int i=0;i<taskInfoDTOSJ.getInspectorTypeArray().length;i++){ %>          

$("input[name='jcyr3'][value='<%=taskInfoDTOSJ.getInspectorTypeArray()[i]%>']").attr('checked', true);        <%}%>         <%}%>        

</script>     

<%} %>

<%if("Y".equals(canOptInspectorsType)){ %>         <td width="15%" align="right"><font size='2'><b>检查人员类型:</b></font></td>         <td colspan="3">           <input type="checkbox" name="jcyr_qb4" value="0" disabled="disabled"/><span style="font-size: 12px">全部人员</span>       

<input type="checkbox" name="jcyr4" value="@1@" disabled="disabled"/><span style="font-size: 12px">企业类</span>       

<input type="checkbox" name="jcyr4" value="@2@" disabled="disabled"/><span style="font-size: 12px">商广类</span>       

<input type="checkbox" name="jcyr4" value="@3@" disabled="disabled"/><span style="font-size: 12px">市场类</span>       

<input type="checkbox" name="jcyr4" value="@4@" disabled="disabled"/><span style="font-size: 12px">执法类</span>        

</td>        

<script type="text/javascript">           

<%if("0".equals(taskInfoDTOSJSQ.getInspectorType())){%>           $("input[name='jcyr4']").attr('checked', 'true');          

$("input[name='jcyr_qb4']").attr('checked', 'true');        

<%}else{%>       

<%for(int i=0;i<taskInfoDTOSJSQ.getInspectorTypeArray().length;i++){ %>          

$("input[name='jcyr4'][value='<%=taskInfoDTOSJSQ.getInspectorTypeArray()[i]%>']").attr('checked', true);        <%}%>         <%}%>         </script>      <%} %>  

<%if("Y".equals(canOptInspectorsType)){ %>        

<td width="15%" align="right"><font size='2'><b>检查人员类型:</b></font></td>         <td colspan="3">          

<input type="checkbox" name="jcyr_qb5" value="0" disabled="disabled"/><span style="font-size: 12px">全部人员</span>       

<input type="checkbox" name="jcyr5" value="@1@" disabled="disabled"/><span style="font-size: 12px">企业类</span>       

<input type="checkbox" name="jcyr5" value="@2@" disabled="disabled"/><span style="font-size: 12px">商广类</span>       

<input type="checkbox" name="jcyr5" value="@3@" disabled="disabled"/><span style="font-size: 12px">市场类</span>       

<input type="checkbox" name="jcyr5" value="@4@" disabled="disabled"/><span style="font-size: 12px">执法类</span>        

</td>        

<script type="text/javascript">           

<%if("0".equals(taskInfoDTOXJSH.getInspectorType())){%>          

$("input[name='jcyr5']").attr('checked', 'true');           $("input[name='jcyr_qb5']").attr('checked', 'true');         <%}else{%>       

<%for(int i=0;i<taskInfoDTOXJSH.getInspectorTypeArray().length;i++){ %>          

$("input[name='jcyr5'][value='<%=taskInfoDTOXJSH.getInspectorTypeArray()[i]%>']").attr('checked', true);        <%}%>         <%}%>         </script>      <%} %>

<%if("Y".equals(canOptInspectorsType)){ %>        

<td width="15%" align="right"><font size='2'><b>检查人员类型:</b></font></td>         <td colspan="3">          

<input type="checkbox" name="jcyr_qb6" value="0" disabled="disabled"/><span style="font-size: 12px">全部人员</span>       

<input type="checkbox" name="jcyr6" value="@1@" disabled="disabled"/><span style="font-size: 12px">企业类</span>       

<input type="checkbox" name="jcyr6" value="@2@" disabled="disabled"/><span style="font-size: 12px">商广类</span>       

<input type="checkbox" name="jcyr6" value="@3@" disabled="disabled"/><span style="font-size: 12px">市场类</span>       

<input type="checkbox" name="jcyr6" value="@4@" disabled="disabled"/><span style="font-size: 12px">执法类</span>        

</td>        

<script type="text/javascript">           

<%if("0".equals(taskInfoDTOXJ.getInspectorType())){%>          

$("input[name='jcyr6']").attr('checked', 'true');          

$("input[name='jcyr_qb6']").attr('checked', 'true');         <%}else{%>       

<%for(int i=0;i<taskInfoDTOXJ.getInspectorTypeArray().length;i++){ %>          

$("input[name='jcyr6'][value='<%=taskInfoDTOXJ.getInspectorTypeArray()[i]%>']").attr('checked', true);        <%}%>         <%}%>

 解决缓存:添加时间戳

 <%if("Y".equals(canOptInspectorsType)){ %>
         var dda=new Date();
         contents = "?code=" + code+"&userName="+userName+"&organId="+organId+"&lawCode="+lawCode+"&remark="+remark+"&id="+id+"&organName="+organName+"&inspectorType="+inspectorType_value+"&sjcc="+dda;
       <%}else{ %>
          var dda=new Date();
         contents = "?code=" + code+"&userName="+userName+"&organId="+organId+"&lawCode="+lawCode+"&remark="+remark+"&id="+id+"&organName="+organName+"&inspectorType=&sjcc="+dda;
       <%} %>

posted on 2017-06-12 16:09  街角的守望者  阅读(169)  评论(0编辑  收藏  举报

导航