<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<style>
 .first{width: 80px;}
 .dataInfo{text-align: center;width: 50px;color: red;}
 .tongjiTab td{border:1px solid #999999;}
</style>
<script type="text/javascript" src="${ctx}/resources/js/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
$(function(){
	
	swfuFormal=new SWFUpload({
	    upload_url :"${ctx}/examPaper/formalStoraged/${paperBatch.id}",
	    use_query_string : false,
	    
	    
	   // File Upload Settings
	   file_size_limit : "1000 MB",  // 1000MB
	   file_types : "*.zip",
	   file_types_description : "所有文件",
	   file_upload_limit : "0",
	                   
	   file_queue_error_handler : fileQueueError,
	   file_dialog_complete_handler : fileDialogComplete,//选择好文件后提交
	   upload_progress_handler : uploadProgress,
	   upload_error_handler : uploadError,
	   upload_success_handler : uploadSuccess,
	   upload_complete_handler : uploadComplete,
	
	   // Button Settings
	   button_image_url : '${ctx}/resources/images/SmallSpyGlassWithTransperancy_17x18.png',
	   button_placeholder_id : "formalPaperReturnBtn",
	   button_width: 370,
	   button_height: 18,
	   button_text : '<span class="button">清样回库 </span><span style="color: red;">(提示:上传zip压缩包,未做出库扫描的试卷是无法上传的)</span>',
	   button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12px; } .buttonSmall { font-size: 10px; color: #ff0000;}',
	   button_text_top_padding: 0,
	   button_text_left_padding: 18,
	   button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
	   button_cursor: SWFUpload.CURSOR.HAND,
	   
	   // Flash Settings
	   flash_url : '${ctx}/resources/js/swfupload/swfupload.swf',
	
	   custom_settings : {
	       upload_target : "divFileProgressContainer"
	   },
	   // Debug Settings
	   debug: false  //是否显示调试窗口
	});

	$(".clearSearch").on('click',function(){
		$(".easyui-tabs").tabs("getSelected").find("#code").val("");
		$(".easyui-tabs").tabs("getSelected").find("#courseCode").val("");
		$(".easyui-tabs").tabs("getSelected").find("#status").val("").find("option").eq(0).attr("selected","selected");
		$(".easyui-tabs").tabs("getSelected").find("#isOutBoundScanned").val("").find("option").eq(0).attr("selected","selected");
		$(".easyui-tabs").tabs("getSelected").find("#isStorageScanned").val("").find("option").eq(0).attr("selected","selected");
		$(".easyui-tabs").tabs("getSelected").find("#isReturn").val("").find("option").eq(0).attr("selected","selected");
    });
});
function copyToClipboard(id){
	var txt=$("#URLData").val();
    if(window.clipboardData){
        window.clipboardData.clearData();   
        window.clipboardData.setData("Text", txt);   
        $.messager.alert('提示','复制成功!');
    } else if(navigator.userAgent.indexOf("Opera") != -1) {
         window.location = txt;
         $.messager.alert('提示','复制成功!');
    } else if (window.netscape) {   
         try {   
              netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");   
         } catch (e) {   
              alert("被浏览器拒绝！\n请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true'");   
         }   
         var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);   
         if (!clip)   
              return;   
         var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);   
         if (!trans)   
              return;   
         trans.addDataFlavor('text/unicode');   
         var str = new Object();   
         var len = new Object();   
         var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);   
         var copytext = txt;   
         str.data = copytext;   
         trans.setTransferData("text/unicode",str,copytext.length*2);   
         var clipid = Components.interfaces.nsIClipboard;   
         if (!clip){
        	 return false;
         }
         clip.setData(trans,null,clipid.kGlobalClipboard);
         $.messager.alert('提示','复制成功!');
    }
}  
function onFormalPapersTabSelected(title, index){
    if(index == 0){
        $('#dg1').datagrid('reload');
    }else if(index == 1){
        $('#usedPapersDG').datagrid('reload');
    }else if(index == 2){
        $('#dg').datagrid('reload');
    }else if(index == 3){
        $('#dbfPaperInfoDG').datagrid('reload');
    }else if(index==4){
    	$('#printDg').datagrid('reload');
    }
}

function load(){
	var obj={
			"batchId" :${paperBatch.id}
		};
	$.ajax({
		type : "POST",
		url : "${ctx}/examPaper/getTotalCount",
		data :  JSON.stringify(obj) ,
		contentType : "application/json; charset=utf-8",
		dataType : "json",
		success : function(callback) {
			callback=eval(callback);
			var Rhtml="该批次下：已上传 "+callback.paperCount+" 套试卷 、"+callback.standardAnswerPathCount+" 套答案、"+callback.answerSheetPathCount+" 套专卡、" + callback.separatePaperPath + " 套分卷。已有 " + callback.wPaperPath + " 套网评卷。已有 " +callback.isOutBoundScannedCount+" 套试卷出库扫描、已有 "+callback.isStorageScannedCount+" 套试卷入库扫描";
			$("#paperInfo").html(Rhtml);
		}
	});
}

function printCode(url,batchId){
	var row = $('#dg1').datagrid('getSelected');
	if (row){
		var arr = new Array();
		var rows = $('#dg1').datagrid("getSelections");
		for(var i =0;i<rows.length;i++){
			var rr=rows[i];
			arr.push(rr.id);
		}
		var win = open();
		win.location.href = url+"/examPaper/printCodeInfo/"+arr;
	}else{
		$.messager.confirm("操作提示", "是否打印该批次下所有的试卷条码?", function (data) {
			if (data) {
				var win = open();
				win.location.href = url+"/examPaper/printAllCodeInfo/"+batchId;
			}
		});
	}
}

function printAnswerCode(url,batchId){
	var row = $('#dg1').datagrid('getSelected');
	if (row){
		var arr = new Array();
		var rows = $('#dg1').datagrid("getSelections");
		for(var i =0;i<rows.length;i++){
			var rr=rows[i];
			arr.push(rr.id);
		}
		var win = open();
		win.location.href = url+"/examPaper/printAnswerCodeInfo/"+arr;
	}else{
		$.messager.confirm("操作提示", "是否打印该批次下所有的答案条码?", function (data) {
			if (data) {
				var win = open();
				win.location.href = url+"/examPaper/printAllAnswerCodeInfo/"+batchId;
			}
		});
	}
}
function record(url,batchId){
	
	var grid = $('#dg1');
	var options = grid.datagrid('getPager').data("pagination").options;
	var curr = options.pageNumber;
	var total = options.total;
	var max = Math.ceil(total/options.pageSize);
	
	
	/* var rowIndex=$('#dg1').datagrid('getRowIndex',$('#dg1').datagrid('getSelected')) ;
	alert(rowIndex); */
	var row = $('#dg1').datagrid('getSelected');
	if (row){
		var arr = new Array();
		var rows = $('#dg1').datagrid("getSelections");
		for(var i =0;i<rows.length;i++){
			var index=$('#dg1').datagrid('getRowIndex',rows[i])+1;
			if(curr>1){
				index=(curr-1)*options.pageSize+index;
			}
			
			var rr=rows[i];
			arr.push(rr.id+"-"+index);
		}
		var win = open();
		win.location.href = url+"/examPaper/record/"+arr;
	}else{
		$.messager.confirm("操作提示", "是否打印该批次下所有的工作登记表?", function (data) {
			if (data) {
				var win = open();
				win.location.href = url+"/examPaper/recordByBatchId/"+batchId;
			}
		});
	}
	
}
</script>
<div align="left" style="padding-bottom: 10px; color: red; font-size: 14px;" id="paperInfo"></div>
<div class="easyui-tabs" style="width:auto;height:auto;" data-options="onSelect:onFormalPapersTabSelected">
   <div title="试卷信息" style="padding:10px">
       <table id="dg1" class="easyui-datagrid"
    data-options="
      url: '${ctx}/examPaper/queryPaper/${paperBatch.id}',
      fitColumns:true
      ,singleSelect:false
      ,striped:true
      ,pagination:true
      ,toolbar: '#tb',
      pageNumber:1,
      pageSize:10,
      onLoadSuccess:load">
        <thead>
            <tr class="title">
                <th rowspan="2" data-options="field:'ck',checkbox:true"></th>
                <th rowspan="2" data-options="field:'code',width:90,editor:{type:'validatebox',options:{required:true}},styler:codeCellStyler">试卷编码</th>
                <th rowspan="2" data-options="field:'status',width:30 ,editable:false,formatter: formatStatus">状态</th>
                <th rowspan="2" data-options="field:'isSpecialAnswerSheet',width:30 ,editable:false,formatter: formatZK">专卡</th>
                <th rowspan="2" data-options="field:'courseCode',width:45">课程代码</th>
                <th rowspan="2" data-options="field:'courseName',width:150">课程名称</th>
                <th rowspan="2" data-options="field:'bookName',width:200,editor:{type:'validatebox',options:{required:true}}">教材名称</th>
                <th rowspan="2" data-options="field:'bookAuthor',width:80,editor:{type:'validatebox',options:{required:true}}">编者</th>
                <th rowspan="2" data-options="field:'bookPress',width:100,editor:{type:'validatebox',options:{required:true}}">出版社</th>
                <th rowspan="2" data-options="field:'bookPressYear',width:40,editor:{type:'validatebox',options:{required:true}}">版次</th>
                <th rowspan="2" data-options="field:'school',width:110,editor:{type:'validatebox',options:{required:true}}">学校</th>
            </tr>
        </thead>
      </table>
      
      <div id="tb" style="height:auto">
          <div style="margin-bottom:5px">
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-add',plain:true" onclick="addPapers('${ctx}','${paperBatch.id}')">添加试卷</a>
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-remove',plain:true" onclick="removePaperFromPapersDG('dg1', '${paperBatch.id}')">移出试卷</a>
               
               <a href="javascript:void(0)" id="print-mb" class="easyui-menubutton" data-options="menu:'#print-mm', iconCls:'easyui-icon-print',plain:true">打印</a>
               <div id="print-mm" style="width:150px;">
		        	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-barcode',plain:true" onclick="printCode('${ctx}','${paperBatch.id}')">打印试卷条码</a>
		            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-barcode',plain:true" onclick="printAnswerCode('${ctx}','${paperBatch.id}')">打印答案条码</a>
		            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-print',plain:true" onclick="record('${ctx}','${paperBatch.id}')">工作登记表</a>
		        </div>
               
            </div>
            
            <div>
            	<form id="search-form1" method="post" >
	               <span>试卷编码:</span><input id="code" name="code" style="width:150px;"/>
	               <span>课程代码:</span>
	               <input id="courseCode" name="courseCode" style="width:150px;"/>
	               <span>状态：</span>
	               <select id="status" name="status" style="width:150px; padding:0;">
	                   <option value="0">全部</option>
	                   <option value="DRAFT">毛坯</option>
	                   <option value="FORMAL">清样</option>
	                   <option value="USED">启用</option>
	               </select>
	               <a href="#" class="easyui-linkbutton" iconCls="easyui-icon-search" id="search1">查找</a>
	               <a href="#" class="easyui-linkbutton clearSearch" iconCls="easyui-icon-undo">清空条件</a>
	              </form>
           </div>
       </div>
   </div>
  
    <div title="当次教材信息管理" style="padding:10px">
       <table id="dbfPaperInfoDG" class="easyui-datagrid"
	    data-options="
	      url: '${ctx}/dbfPaperInfo/queryDbfPaperInfo/${paperBatch.id}',
	      fitColumns:true
	      ,singleSelect:false
	      ,striped:true
	      ,pagination:true
	      ,onClickCell:onClickCell
	      ,toolbar: '#dbfPaperInfoTB',
	      onLoadSuccess:load,onSelect:selectParentRows">
        <thead>
            <tr class="title">
                <th  data-options="field:'ck',checkbox:true"></th>
                <th  data-options="field:'courseCode',width:80">课程代码</th>
                <th  data-options="field:'courseName',width:130">课程名称</th>
                <th  data-options="field:'bookName',width:220">教材名称</th>
                <th  data-options="field:'bookAuthor',width:100">编者</th>
                <th  data-options="field:'bookPress',width:100">出版社</th>
                <th  data-options="field:'bookPressYear',width:60">版次</th>
                <th  data-options="field:'relatedPaperNum',width:60,styler:relatedPaperCountCellStyler," >关联试卷</th>
                <th rowspan="2" data-options="field:'df',width:30,formatter: formatDFData">操作</th>
                <!--  <th  data-options="field:'randomNum',width:80,styler:relatedPaperCountCellStyler">随机抽取试卷</th>-->
            </tr>
        </thead>
      </table>
      
      <div id="dbfPaperInfoTB" style="height:auto">
          <div style="margin-bottom:5px">
              <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-import-plan',plain:true" onclick="$('#uploadDbfPaperInfo').window('open')">导入课程与教材信息</a>
              <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-search',plain:true" onclick="matchPapers('${paperBatch.id}')">自动匹配试卷</a>
              <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-remove',plain:true" onclick="removeDbfPaperInfo()">移出批次</a>
           </div>
           <div>
                <form id="dbfPaperInfo-search-form" method="post" >
                   <span>课程:</span>
                   <input name="keyword" placeholder="课程名称或编号"/>
                   <!-- 
                   <span>关联试卷数量:</span>
                   <select id="relatedPaperNum" name="relatedPaperNum" >
                      <option value="-1">全部</option>
                      <c:forEach var="obj" items="${relatedPaperNums }">
                          <option value="${obj }">${obj }</option>    
                      </c:forEach>
                   </select>
                    -->
                   <a href="#" class="easyui-linkbutton" iconCls="easyui-icon-search" id="dbfPaperInfoSearchBtn">查找</a>
               </form>
           </div>
       </div>
   </div>
   
   <div title="出库操作" style="padding:10px">
       <table id="usedPapersDG" class="easyui-datagrid"
    data-options="
      url: '${ctx}/examPaper/queryPaper/${paperBatch.id}',
      fitColumns:true
      ,singleSelect:false
      ,striped:true
      ,pagination:true
      ,toolbar: '#tb2',
      pageNumber:1,
      pageSize:10,
      onLoadSuccess:load
      ">
        <thead>
            <tr class="title">
                <th rowspan="2" data-options="field:'ck',checkbox:true"></th>
                <th rowspan="2" data-options="field:'code',width:90,editor:{type:'validatebox',options:{required:true}},styler:codeCellStyler">试卷编码</th>
                <th rowspan="2" data-options="field:'status',width:30 ,editable:false,formatter: formatStatus">状态</th>
                <th rowspan="2" data-options="field:'isSpecialAnswerSheet',width:30 ,editable:false,formatter: formatZK">专卡</th>
                <th rowspan="2" data-options="field:'courseCode',width:50">课程代码</th>
                <th rowspan="2" data-options="field:'courseName',width:140">课程名称</th>
                <th rowspan="2" data-options="field:'bookName',width:150,editor:{type:'validatebox',options:{required:true}}">教材名称</th>
                <th rowspan="2" data-options="field:'bookAuthor',width:80,editor:{type:'validatebox',options:{required:true}}">编者</th>
                <th rowspan="2" data-options="field:'bookPress',width:100,editor:{type:'validatebox',options:{required:true}}">出版社</th>
                <th rowspan="2" data-options="field:'bookPressYear',width:40,editor:{type:'validatebox',options:{required:true}}">版次</th>
                <th rowspan="2" data-options="field:'school',width:110,editor:{type:'validatebox',options:{required:true}}">学校</th>
                <th rowspan="2" data-options="field:'isOutBoundScanned',width:30,styler:cellStyler,formatter: formatBooleanData"><div style="padding-top: 5px;"><p>出库</p><p>扫描</p></div></th>
                <!-- 
                <th rowspan="2" data-options="field:'updatedDT'">试卷下载</th>
                 -->
            </tr>
        </thead>
      </table>
      
      <div id="tb2" style="height:auto">
          <div style="margin-bottom:5px">
          <!-- 
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-download',plain:true" onclick="downLoadDBF('QYKJS','${ctx}','${paperBatch.id}')">下载试卷信息</a>
           -->
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-download',plain:true" onclick="downLoadPaper('QYKJS','${ctx}','${paperBatch.id}')">下载电子试卷</a>
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-print',plain:true" onclick="printBatchPaperInfo('${ctx}','${paperBatch.id}')">打印试卷信息</a>
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-download',plain:true" onclick="downLoadExcel('${ctx}','${paperBatch.id}')">导出Excel</a>
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-download',plain:true" onclick="downFORMALDBF('${ctx}','${paperBatch.id}')">导出DBF</a>
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-barcode-scan',plain:true" onclick="barcodeScanStart('W4')">出库扫描</a>
            </div>
            
            <div>
            <form id="search-form2" method="post" >
	               <span>试卷编码:</span><input id="code" name="code" style="width:150px;"/>
	               <span>课程代码:</span>
	               <input id="courseCode" name="courseCode" style="width:150px;"/>
	               <span>状态：</span>
	               <select id="status" name="status" style="width:150px;padding:0;">
	                   <option value="0"></option>
	                   <option value="DRAFT">毛坯</option>
	                   <option value="FORMAL">清样</option>
	                   <option value="USED">启用</option>
	               </select>
	               <span>出库扫描：</span>
	               <select id="isOutBoundScanned" name="isOutBoundScanned" style="width:150px;padding:0;">
	                   <option value="0"></option>
	                   <option value="1">已扫描</option>
	                   <option value="2">未扫描</option>
	               </select>
	               <a href="#" class="easyui-linkbutton" iconCls="easyui-icon-search" id="search2">查找</a>
	               <a href="#" class="easyui-linkbutton clearSearch" iconCls="easyui-icon-undo" >清空条件</a>
               </form>
           </div>
       </div>
   </div>
   
   <div title="入库操作" style="padding:10px">
       <table id="dg" class="easyui-datagrid"
    data-options="
      url: '${ctx}/examPaper/queryPaper/${paperBatch.id}',
      fitColumns:true
      ,singleSelect:false
      ,striped:true
      ,pagination:true
      ,toolbar: '#tb3',
      pageNumber:1,
      pageSize:10,
      onLoadSuccess:load">
        <thead>
            <tr class="title">
                <th rowspan="2" data-options="field:'ck',checkbox:true"></th>
                <th rowspan="2" data-options="field:'code',width:90,editor:{type:'validatebox',options:{required:true}},styler:codeCellStyler">试卷编码</th>
                <th rowspan="2" data-options="field:'status',width:30 ,editable:false,formatter: formatStatus">状态</th>
                <th rowspan="2" data-options="field:'isSpecialAnswerSheet',width:30 ,editable:false,formatter: formatZK">专卡</th>
                <th rowspan="2" data-options="field:'courseCode',width:50">课程代码</th>
                <th rowspan="2" data-options="field:'courseName',width:140">课程名称</th>
                <!-- 
                <th rowspan="2" data-options="field:'bookName',width:150,editor:{type:'validatebox',options:{required:true}}">教材名称</th>
                <th rowspan="2" data-options="field:'bookAuthor',width:80,editor:{type:'validatebox',options:{required:true}}">编者</th>
                <th rowspan="2" data-options="field:'bookPress',width:100,editor:{type:'validatebox',options:{required:true}}">出版社</th>
                <th rowspan="2" data-options="field:'bookPressYear',width:30,editor:{type:'validatebox',options:{required:true}}">版次</th>
                <th rowspan="2" data-options="field:'school',width:100,editor:{type:'validatebox',options:{required:true}}">学校</th>
                 -->
                <th colspan="5" >电子文档回库</th>
                <th rowspan="2" data-options="field:'isStorageScanned',width:40,styler:cellStyler,formatter: formatBooleanData"><div style="padding-top: 5px;"><p>入库</p><p>扫描</p></div></th>
            </tr>
            <tr>
                <th data-options="field:'isPaperReturn',width:30,styler:cellStyler,formatter: formatBooleanData"><p>试卷</p><p>回库</p></th>
                <th data-options="field:'isStandadAnswerReturn',width:30,styler:cellStyler,formatter: formatBooleanData"><p>标答</p><p>回库</p></th>
                <th data-options="field:'isAnswerSheetReturn',width:30,styler:answerSheetDataCellStyler,formatter: formatAnswerSheetReturn"><p>专卡</p><p>回库</p></th>
                <th data-options="field:'isSeparatePaperReturn',width:30,styler:separatePaperCellStyler,formatter: formatSeparatePaperReturn"><p>分卷</p><p>回库</p></th>
                <th data-options="field:'isWPaperReturn',width:30,styler:separatePaperCellStyler,formatter: formatSeparatePaperReturn"><p>网评卷</p><p>回库</p></th>
            </tr>
        </thead>
      </table>
      
      <div id="tb3" style="height:auto">
          <div style="margin-bottom:5px">
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-import-paper',plain:true" onclick="$('#w5').window('open')">清样回库</a>
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-barcode-scan',plain:true" onclick="barcodeScanStart('W3','入库扫描')">入库扫描</a>
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-confirm',plain:true" onclick="confirmFormal()">确认清样</a>
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-no',plain:true" onclick="rejectFormal()">撤销清样</a>
               <!-- 
               <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'easyui-icon-barcode',plain:true" onclick="">打印条码</a>
                -->
            </div>
            
            <div>
            	<form id="search-form3" method="post" >
	               <span>试卷编码:</span><input id="code" name="code" style="width:130px;"/>
	               <span>课程代码:</span>
	               <input id="courseCode" name="courseCode" style="width:130px;"/>
	               <span>状态：</span>
	               <select id="status" name="status" style="width: 120px;padding:0;" >
	                   <option value="0"></option>
	                   <option value="DRAFT">毛坯</option>
	                   <option value="FORMAL">清样</option>
	                   <option value="USED">启用</option>
	               </select>
	               <span>入库扫描：</span>
	               <select id="isStorageScanned" name="isStorageScanned" style="width: 120px;padding:0;">
	                   <option value="0"></option>
	                   <option value="1">已扫描</option>
	                   <option value="0">未扫描</option>
	               </select>
	               <span>清样试卷回库：</span>
	               <select id="isReturn" name="isReturn" style="width:120px;padding:0;">
	                    <option value="0"></option>
	                    <option value="1">全部回库</option>
	                    <option value="2">未全部回库</option>
	                    <option value="3">试卷已回库</option>
	                    <option value="6">试卷未回库</option>
	                    <option value="5">标答已回库</option>
	                    <option value="7">标答未回库</option>
	                    <option value="4">专卡已回库</option>
	                    <option value="8">专卡未回库</option>
	                </select>
	                <a href="#" class="easyui-linkbutton" iconCls="easyui-icon-search" id="search3">查找</a>
	                <a href="#" class="easyui-linkbutton clearSearch" iconCls="easyui-icon-undo" >清空条件</a>
	               </form>
            </div>
        </div>
    </div>
</div>

<div align="center" style="padding-top: 10px; color: red; font-size: 14px;" id="paperInfo"></div>

<%@ include file="./dbfPaperInfo.jsp"%>

<div id="w5" class="easyui-window" title="清样回库" data-options="modal:true,closed:true,iconCls:'easyui-icon-import'" style="width:480px;height:200px;padding:10px;">
    <div id="do_import_paper_button">
        <div id="rukuPaperUploadMsg" ></div>
        <span id="formalPaperReturnBtn"></span>
    </div>
    <div id="error" style="display: none;padding-top: 10px;" align="center">
    	<input type="hidden" id="URLData"/>
        <table style="border-collapse: collapse;" class="tongjiTab">
        	<tr>
        		<td class="first"></td>
        		<td >试卷</td>
        		<td>答案</td>
        		<td>专卡</td>
        		<td>分卷</td>
        		<td>网评卷</td>
        	</tr>
        	<tr>
        		<td class="first">应导入</td>
        		<td class="dataInfo" id="YpaperData"></td>
        		<td class="dataInfo" id="YanswerData"></td>
        		<td class="dataInfo" id="YcardData">-</td>
        		<td class="dataInfo" id="YseparantPaperData">-</td>
        		<td class="dataInfo" id="YwPaperData">-</td>
        	</tr>
        	<tr>
        		<td class="first">已导入</td>
        		<td class="dataInfo" id="YipaperData"></td>
        		<td class="dataInfo" id="YianswerData"></td>
        		<td class="dataInfo" id="YicardData"></td>
        		<td class="dataInfo" id="YiseparantPaperData"></td>
        		<td class="dataInfo" id="YiwPaperData"></td>
        	</tr>
        	<tr>
        		<td class="first">导入失败</td>
        		<td class="dataInfo" id="SpaperData"></td>
        		<td class="dataInfo" id="SanswerData"></td>
        		<td class="dataInfo" id="ScardData"></td>
        		<td class="dataInfo" id="SseparantPaperData"></td>
        		<td class="dataInfo" id="SwPaperData"></td>
        	</tr>
        </table>
    </div>
    <div id="openFolder" style="display: none;padding-top: 10px;" align="center">
    </div>
</div>