<!--
 *this file is part of nseer erp
 *Copyright (C)2006-2010 Nseer(Beijing) Technology co.LTD/http://www.nseer.com 
 *
 *This program is free software; you can redistribute it and/or
 *modify it under the terms of the GNU General Public License
 *as published by the Free Software Foundation; either
 *version 2 of the License, or (at your option) any later version.
 -->
<%@page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*,include.nseer_cookie.*" import="java.util.*" import="java.io.*" import="com.jspsmart.upload.*" import="include.nseer_db.*,java.text.*"%>
<%@include file="../include/head.jsp"%>
<jsp:useBean id="demo" class="include.tree_index.businessComment" scope="page"/>
<%
DealWithString DealWithString=new DealWithString(application);
String mod=request.getRequestURI();
demo.setPath(request);
String handbook=demo.businessComment(mod,"您正在做的业务是：","document_main","reason","value");
nseer_db qcs_db=new nseer_db((String)session.getAttribute("unit_db_name"));
SmartUpload mySmartUpload=new SmartUpload();
mySmartUpload.setCharset("UTF-8");
mySmartUpload.initialize(pageContext);
mySmartUpload.upload();
String config_id=request.getParameter("config_id");
String standard_id=mySmartUpload.getRequest().getParameter("standard_id");
String check_time=mySmartUpload.getRequest().getParameter("check_time");
String checker=mySmartUpload.getRequest().getParameter("checker");
String checker_id=mySmartUpload.getRequest().getParameter("checker_id");
%>
<form id="mutiValidation" class="x-form" method="POST" action="../../qcs_quality_standard_check_delete_ok">
<table <%=TABLE_STYLE2%> class="TABLE_STYLE2">
<tr <%=TR_STYLE1%> class="TR_STYLE1">
<td <%=TD_HANDBOOK_STYLE1%> class="TD_HANDBOOK_STYLE1"><div class="div_handbook"><%=handbook%></div></td>
</tr>
</table>
<input type="hidden" name="standard_id" value="<%=standard_id%>">
<input type="hidden" name="checker_id" value="<%=checker_id%>">
<input type="hidden" name="config_id" value="<%=config_id%>">
<input type="hidden" name="checker" value="<%=exchange.toHtml(checker)%>">
<input type="hidden" name="check_time" value="<%=exchange.toHtml(check_time)%>">
<TABLE <%=TABLE_STYLE6%> class="TABLE_STYLE6">
<tr <%=TR_STYLE1%> class="TR_STYLE1">
<td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
<td <%=TD_STYLE1%> class="TD_STYLE8"><div <%=DIV_STYLE1%> class="DIV_STYLE1"><input type="submit" <%=SUBMIT_STYLE1%> class="SUBMIT_STYLE1" value="<%=demo.getLang("erp","确认")%>"> 
<input type="button" <%=BUTTON_STYLE1%> class="BUTTON_STYLE1" value="<%=demo.getLang("erp","返回")%>" onClick=location="check.jsp?standard_id=<%=standard_id%>&&config_id=<%=config_id%>"></div></td>
</tr>
</table>
<div id="nseerGround" class="nseerGround">
<table <%=TABLE_STYLE2%> class="TABLE_STYLE2">
<tr <%=TR_STYLE1%> class="TR_STYLE1">
<td <%=TD_STYLE3%> class="TD_STYLE3" height="10"><%=demo.getLang("erp","该记录未通过审核，您确认吗？请选择处理：")%></td>
<td <%=TD_STYLE3%> class="TD_STYLE3" height="10">&nbsp;</td>
</tr> 
<%
int i=1;
String sql6="select config_id from qcs_workflow where object_ID='"+standard_id+"' and config_id<'"+config_id+"' order by id";
ResultSet rs6=qcs_db.executeQuery(sql6);
while(rs6.next()){
String choice="从流程"+i+"开始重新审核";
i++;
%>
<tr <%=TR_STYLE1%> class="TR_STYLE1">
<td <%=TD_STYLE3%> class="TD_STYLE3"><INPUT name="choice" type="radio" <%=RADIO_STYLE1%> class="RADIO_STYLE1" value="<%=rs6.getString("config_id")%>"><%=demo.getLang("erp",choice)%></td>
</tr>
<%}qcs_db.close();%>
<tr <%=TR_STYLE1%> class="TR_STYLE1">
<td <%=TD_STYLE3%> class="TD_STYLE3"><INPUT name="choice" type="radio" <%=RADIO_STYLE1%> class="RADIO_STYLE1" value=""><%=demo.getLang("erp","转入草稿箱")%></td>
</tr>
</table>
</div>
</form>