<%@ page autoeventwireup="true" debug="true" inherits="_Exam_plan_Info_list, App_Web_wjux_2xt" language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>成绩管理</title>
    <link href="../css/StyleSheet.css" rel="stylesheet" />

<link href="../css/GridView.css" rel="stylesheet" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />
  <link href="../css/pager.css" rel="stylesheet" type="text/css" />
<script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="../jquery-1.5.js" type="text/javascript"></script>
<link href="../window/_css/window.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../window/message/jquery.message.js" type="text/javascript"></script>
<script language="javascript" src="../window/jquery/jquery.min.js" type="text/javascript"></script>
<script language="javascript" src="../window/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script language="javascript" src="../window/jquery.bgiframe.pack.js" type="text/javascript"></script>
<link href="../window/_css/jqueryui/blitzer/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" />
<link href="../alert/jquery.alert.css" rel="stylesheet" type="text/css" />
<script src="../alert/jquery.easydrag.js" type="text/javascript"></script>
<script src="../alert/jquery.alert.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">   
function   isnum() 
{
if(event.keyCode <48   ||   event.keyCode> 57) 
{
event.keyCode=0;
}
}
$(function(){
$("#div_win").dialog({
autoOpen:false,
modal: false,
width:750,
height:380,
bigframe:true
});
$("#div1").dialog({
autoOpen:false,
modal: true,
width:650,
height:270,
bigframe:true
});

$("#div_4").dialog({
autoOpen:false,
modal: true,
width:250,
height:300,
bigframe:true
});
$("#div2").dialog({
autoOpen:false,
modal: false,
width:800,
height:600,
bigframe:true
});

$('#div_win').bind('dialogbeforeclose', function(event, ui) {

var IsShow=document.getElementById ("IsShow");

IsShow.value="0";

});

$("#btnAdd").click(function(page){
$("#div_win").dialog({ title: '我的考试-添加' });
$("#div_win").dialog({ draggable: true,resizable:true });
$("#IsEdit").val("0");
});
$("#btnModify").click(function(page){
$("#div_win").dialog({ title: '我的考试-修改' });
$("#div_win").dialog({ draggable: true,resizable:true });
});
});
</script>
<script language="JavaScript" type="text/JavaScript">
//-----------------------------------------------------------------------------------
$("#chk_all").click(function() {
$("input[name='chk_list']").attr("checked", $(this).attr("checked"));
});
//全选 
function CheckedAll() {
$(':checkbox').attr('checked', 'checked');
}
//全不选 
function CheckedNo() {
$(':checkbox').attr('checked', '');
var GridView1= document.getElementById("<%=GridView1.ClientID %>");
for(i = 1;i < GridView1.rows.length; i++)
{
GridView1.rows[i].style.backgroundColor='#FFFFFF';
}
}
//反选 
function CheckedRev(objCheckBox, strId) {
var NormalColor = "#fff";
 var AlterColor = "#eee";
var SelectColor = "#ffff99";
var GridView1= document.getElementById("<%=GridView1.ClientID %>");
if (objCheckBox.tagName == "INPUT" && objCheckBox.type == "checkbox") {
var allInput = document.getElementsByTagName("input");
var k=0;
for (var i = 0; i < allInput.length; i++) {
if (allInput[i].type == "checkbox" && allInput[i].id.indexOf(strId) >= 0) {
k=k+1;
if  (allInput[i].disabled==true)
{}
else
{
allInput[i].checked = !allInput[i].checked;
if   ( allInput[i].checked)
{
GridView1.rows[k].style.backgroundColor='#ffff99';
}
else
{
GridView1.rows[k].style.backgroundColor = k % 2 == 0 ? NormalColor : AlterColor;   
}
}
}
}
}
document.getElementById ("chk_all").checked=false;
}
function ChangeAllCheckStatus(objCheckBox, strId) //全选
{
var NormalColor = "#fff";
 var AlterColor = "#eee";
var SelectColor = "#ffff99";
var GridView1= document.getElementById("<%=GridView1.ClientID %>");
if (objCheckBox.tagName == "INPUT" && objCheckBox.type == "checkbox") {
var allInput = document.getElementsByTagName("input");
var k=0;
for (var i = 0; i < allInput.length; i++) {
if (allInput[i].type == "checkbox" && allInput[i].id.indexOf(strId) >= 0) {
k=k+1;
if  (allInput[i].disabled==true)
{
GridView1.rows[k].style.backgroundColor='#FFFFFF';
}
else
{
allInput[i].checked = objCheckBox.checked;
if(objCheckBox.checked)
{
GridView1.rows[k].style.backgroundColor='#ffff99';
}
else
{
GridView1.rows[k].style.backgroundColor = k % 2 == 0 ? NormalColor : AlterColor;
}
}
document.getElementById ("cb3").checked=false;
}
}
}
}
//---------------------------------------------------------------------------------------------------- 
var prevselitem=null;
function selectx(row)
{
if(prevselitem!=null)
{
prevselitem.style.backgroundColor='#ffffff';
}
row.style.backgroundColor='PeachPuff';
prevselitem=row;
}

function l_out(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView1_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView1_ctl"+m+"_checkbox1");
}
p.style.background = m % 2 == 1 ? NormalColor : AlterColor; 
if (ck!=null)if (ck.checked==true)
{
p.style.backgroundColor = SelectColor;
}
else
{
p.style.backgroundColor = m % 2 == 1 ? NormalColor : AlterColor; 
}
}
function l_in(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView1_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView1_ctl"+m+"_checkbox1");
}
if (ck!=null)if (ck.checked==true)
{
p.style.backgroundColor = SelectColor;
}
else
{
p.style.backgroundColor = HoverColor; 
}
}
//--------------------------------------------------------------------------------------
function l_out2(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView2_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView2_ctl"+m+"_checkbox1");
}
p.style.background = m % 2 == 1 ? NormalColor : AlterColor; 
if (ck!=null)if (ck.checked==true)
{
p.style.backgroundColor = SelectColor;
}
else
{
p.style.backgroundColor = m % 2 == 1 ? NormalColor : AlterColor; 
}
}
function l_in2(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView2_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView2_ctl"+m+"_checkbox1");
}
if (ck!=null)if (ck.checked==true)
{
p.style.backgroundColor = SelectColor;
}
else
{
p.style.backgroundColor = HoverColor; 
}
}

function l_in3(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView2_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView2_ctl"+m+"_checkbox1");
}

if (ck!=null)
{
ck.checked=true;
if (ck.checked==true)
{
//p.style.backgroundColor = SelectColor;
}
else
{
//p.style.backgroundColor = HoverColor; 
}

}
}

function l_in4(v,t)
{

$('#div2').dialog('close');
var tt=document.getElementById("Tst_papid");
var hh=document.getElementById ("h_papid");
var bk=document.getElementById ("Tst_papid_bk");
bk.value=t;
tt.value=t;
hh.value=v;


 


}
//---------------------------------------
//反选 
function CheckedRev2(objCheckBox, strId) {
var NormalColor = "#fff";
 var AlterColor = "#eee";
var SelectColor = "#ffff99";
var GridView2= document.getElementById("<%=GridView2.ClientID %>");
if (objCheckBox.tagName == "INPUT" && objCheckBox.type == "button") {


var allInput = GridView2.getElementsByTagName("input");
var k=0;
for (var i = 0; i < allInput.length; i++) {
if (allInput[i].type == "checkbox" && allInput[i].id.indexOf(strId) >= 0) {
k=k+1;
if  (allInput[i].disabled==true)
{}
else
{
allInput[i].checked = !allInput[i].checked;
if   ( allInput[i].checked)
{
GridView2.rows[k].style.backgroundColor='#ffff99';
}
else
{
GridView2.rows[k].style.backgroundColor = k % 2 == 0 ? NormalColor : AlterColor;   
}
}
}
}
}
//document.getElementById ("chk_all").checked=false;
}
function ChangeAllCheckStatus2(objCheckBox, strId) //全选
{
var NormalColor = "#fff";
 var AlterColor = "#eee";
var SelectColor = "#ffff99";
var GridView2= document.getElementById("<%=GridView2.ClientID %>");
if (objCheckBox.tagName == "INPUT" && objCheckBox.type == "button") {


var allInput =  GridView2.getElementsByTagName("input");
var k=0;
for (var i = 0; i < allInput.length; i++) {
if (allInput[i].type == "checkbox" && allInput[i].id.indexOf(strId) >= 0) {
k=k+1;
if  (allInput[i].disabled==true)
{
GridView2.rows[k].style.backgroundColor='#FFFFFF';
}
else
{
allInput[i].checked = true;
if(allInput[i].checked)
{
GridView2.rows[k].style.backgroundColor='#ffff99';
}
else
{
GridView2.rows[k].style.backgroundColor = k % 2 == 0 ? NormalColor : AlterColor;
}
}
//document.getElementById ("cb3").checked=false;
}
}
}
}


function clearChoose(objCheckBox, strId) //取消全选
{
var NormalColor = "#fff";
 var AlterColor = "#eee";
var SelectColor = "#ffff99";
var GridView2= document.getElementById("<%=GridView2.ClientID %>");
if (objCheckBox.tagName == "INPUT" && objCheckBox.type == "button") {


var allInput =  GridView2.getElementsByTagName("input");
var k=0;
for (var i = 0; i < allInput.length; i++) {
if (allInput[i].type == "checkbox" && allInput[i].id.indexOf(strId) >= 0) {
k=k+1;
if  (allInput[i].disabled==true)
{
GridView2.rows[k].style.backgroundColor='#FFFFFF';
}
else
{
allInput[i].checked = false;
if(allInput[i].checked)
{
GridView2.rows[k].style.backgroundColor='#ffff99';
}
else
{
GridView2.rows[k].style.backgroundColor = k % 2 == 0 ? NormalColor : AlterColor;
}
}
//document.getElementById ("cb3").checked=false;
}
}
}
}
//---------------

</script>

    <script language="javascript" type="text/javascript">




function choose(s1,s2)
{

var IsShow=document.getElementById ("IsShow");
if (IsShow.value=="1")
{
var t1=document.getElementById ("t_value");
var h1=document.getElementById ("h_value");
var t1_bk=document.getElementById ("t_value_bk");
t1_bk.value=s1;

t1.value=s1;
h1.value=s2;
//---------------------------------------------
}
else if (IsShow.value=="0")
{
var t2=document.getElementById ("t_2");
var h2=document.getElementById ("h_2");
t2.value=s1;
h2.value=s2;
}
$('#div_4').dialog('close');

}

function serch_clear()
{
var t2=document.getElementById ("t_2");
var h2=document.getElementById ("h_2");
t2.value="";
h2.value=""; 

}
//-----------

function choose1(s1,s2)
{

var IsShow=document.getElementById ("IsShow");
if (IsShow.value=="1")
{

//---------------------------------------------
}
else if (IsShow.value=="0")
{
var t2=document.getElementById ("G_name_2");
var h2=document.getElementById ("G_value_2");
if (t2!=null)
{
t2.value=s1;
}
if (h2!=null)
{
h2.value=s2;
}
}
$('#div_5').dialog('close');

}



function serch_clear()
{
var t2=document.getElementById ("t_2");
var h2=document.getElementById ("h_2");
t2.value="";
h2.value=""; 

}

function serch_clear1()
{
var t2=document.getElementById ("G_name_2");
var h2=document.getElementById ("G_value_2");
t2.value="";
h2.value=""; 

}
//------


function closediv()
{
var tt=document.getElementById ("JoinExamTemp");
tt.style.display="none";
}

function opendiv()
{
var tt=document.getElementById ("JoinExamTemp");
tt.style.display="block";
}



function ffx(uid,plid)
{
alert(uid+plid);

}

    </script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<%--<div class="title">
<asp:Label ID="lblList" runat="server" Text="我的考试"></asp:Label>
</div>--%>


    <asp:Panel ID="btnSerch" runat="server">
    <div class="panel">
   <%-- 出题方式：
        <asp:DropDownList ID="chuti" runat="server">
        <asp:ListItem Value="">请选择出题方式...</asp:ListItem>
            <asp:ListItem Text="固定试卷（手工）"   Value="固定试卷" ></asp:ListItem>
            <asp:ListItem Text="固定试卷（随机）" Value="固定随机"></asp:ListItem>
            <asp:ListItem Text="随机试卷" Value="随机试卷"></asp:ListItem>
        </asp:DropDownList>--%>
        部门：
        <asp:TextBox ID="t_2" runat="server" CssClass="text1" ReadOnly="true" Width="100"></asp:TextBox>
        <asp:HiddenField ID="h_2" runat="server" />
        <img alt='部门' onclick="$('#div_4').dialog('open');$('#div_4').dialog({ title: '部门分类-选择' });$('#div_4').dialog({ draggable: true,resizable:true });"
            src="../images/select.gif" style="cursor: pointer;" />
        <a alt='清空部门' onclick="serch_clear();" style="color: Red; cursor: pointer;">清空</a>
        岗位：
        <asp:TextBox ID="G_name_2" runat="server" CssClass="text1" ReadOnly="true" Width="100"></asp:TextBox>
        <asp:HiddenField ID="G_value_2" runat="server" />
        <img alt='岗位' onclick="$('#div_5').dialog('open');$('#div_5').dialog({ title: '岗位分类-选择' });$('#div_5').dialog({ draggable: true,resizable:true });"
            src="../images/select.gif" style="cursor: pointer;" />
        <a alt='清空岗位' onclick="serch_clear1();" style="color: Red; cursor: pointer;">清空</a>
        性别：
        <asp:DropDownList ID="sex" runat="server">
            <asp:ListItem Value="">请选择性别...</asp:ListItem>
            <asp:ListItem>男</asp:ListItem>
            <asp:ListItem>女</asp:ListItem>
        </asp:DropDownList>
        用户名、昵称、中文名、英文名：<asp:TextBox ID="name" runat="server" CssClass="text1" Width="158px"></asp:TextBox>
    
    
    
    
    
        <asp:Button ID="Serch" CssClass="button_b" runat="server" Text="搜索" OnClick="Serch_Click" />
    </div>
    
    
    </asp:Panel>




<div id="ctl_panel" runat="server" class="panel" style="display:none;">
<asp:Button ID="btnAdd" runat="server"   CssClass="addnew" OnClick="btnAdd_Click" Text="添加" ToolTip="添加" />
<asp:Button ID="btnModify" runat="server"  CssClass="modify" OnClick="btnModify_Click" Text="修改" ToolTip="修改" />
<asp:Button ID="btnDelete" runat="server" CssClass="delete" OnClick="LinkButton6_Click" Text="删除" />

    <asp:Panel ID="chkpanel" runat="server" style="display:inline ;">


<input id="chk_all" name="chk_all" onclick="ChangeAllCheckStatus(this,'checkbox1')" type="checkbox" />全选
<input id="cb3" name="btnCheckedRev" onclick="CheckedRev(this,'checkbox1')" type="checkbox" value="反　选" />反 选

    </asp:Panel>
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AllowSorting="true" AutoGenerateColumns="False"
    CssClass="gv" DataKeyNames="TeaDepId" GridLines="Horizontal" OnRowCommand="GridView1_RowCommand"
    OnSorting="GridView1_Sorting" Width="100%">
<RowStyle CssClass="gvRow" />
<HeaderStyle CssClass="gvHeader" />
<AlternatingRowStyle CssClass="gvAlternatingRow" />
<Columns>
<%--<asp:TemplateField >
<HeaderStyle  HorizontalAlign ="Center" />
<ItemStyle  HorizontalAlign ="Center"  Wrap="false"  />
<ItemTemplate>

<asp:HiddenField ID="Tst_Id" runat="server" Value='<%# Eval("Tst_Id") %>' />
</ItemTemplate>
</asp:TemplateField>--%>
   <%-- <asp:TemplateField HeaderText="操作">
        <ItemTemplate>
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
           
                    <td>
                        <asp:LinkButton ID="btn_look" runat="server" BackColor="green" CommandArgument='<%#  Eval("ans_cishu") %>'
                            CommandName="look" CssClass="btn" Text="阅卷"></asp:LinkButton>
                    </td>
                    <td>
               <asp:LinkButton ID="btn_dell" runat="server" BackColor="red" CommandArgument='<%#  Eval("Ans_cishu") %>'
                            CommandName="dell" CssClass="btn" Text="删除"></asp:LinkButton>
              
            
                       
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:TemplateField>--%>



  <%--  <asp:BoundField DataField="TeaItemNo" HeaderText="用户名" ItemStyle-HorizontalAlign="Center"
        SortExpression="TeaItemNo" />
    <asp:BoundField DataField="TeaName" HeaderText="中文名" ItemStyle-HorizontalAlign="Center"
        SortExpression="TeaName" />
    <asp:BoundField DataField="Tea_Englishname" HeaderText="英文名" ItemStyle-HorizontalAlign="Center"
        SortExpression="Tea_Englishname" />
    <asp:BoundField DataField="TeaSex" HeaderText="性别" ItemStyle-HorizontalAlign="Center"
        SortExpression="TeaSex" />--%>
    <asp:BoundField DataField="Dep_Name" HeaderText="部门" ItemStyle-HorizontalAlign="Center"
        SortExpression="Dep_Name" />
          <asp:BoundField DataField="renshu" HeaderText="参加人数" ItemStyle-HorizontalAlign="Center"
        SortExpression="renshu" />
        <asp:TemplateField HeaderText="未考人数">
        <ItemTemplate>
            <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
        </ItemTemplate>
        </asp:TemplateField>
               <asp:BoundField DataField="dep_renshu" HeaderText="部门人数" ItemStyle-HorizontalAlign="Center"
        SortExpression="dep_renshu" />
               <asp:BoundField DataField="test_num" HeaderText="考场数量" ItemStyle-HorizontalAlign="Center"
        SortExpression="test_num" />
               <asp:BoundField DataField="papers" HeaderText="试卷数量" ItemStyle-HorizontalAlign="Center"
        SortExpression="papers" />
               <asp:BoundField DataField="test_score" HeaderText="总成绩" ItemStyle-HorizontalAlign="Center"
        SortExpression="test_score" />
               <asp:BoundField DataField="test_avg" HeaderText="平均分" ItemStyle-HorizontalAlign="Center"
        SortExpression="test_avg" />
        <asp:TemplateField HeaderText="未答题率">
        <ItemTemplate>
            <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
        </ItemTemplate>
        </asp:TemplateField>
           <asp:TemplateField HeaderText="答题率">
        <ItemTemplate>
            <asp:Label ID="Label3" runat="server" Text=""></asp:Label>
        </ItemTemplate>
        </asp:TemplateField>
        
           <asp:TemplateField HeaderText="正确率">
        <ItemTemplate>
            <asp:Label ID="Label4" runat="server" Text=""></asp:Label>
        </ItemTemplate>
        </asp:TemplateField>
        
           <asp:TemplateField HeaderText="错误率">
        <ItemTemplate>
            <asp:Label ID="Label5" runat="server" Text=""></asp:Label>
        </ItemTemplate>
        </asp:TemplateField>
        <%--
                    <asp:BoundField DataField="Q_ANSWER_NULL" HeaderText="未答题率" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_NULL" />
                     <asp:BoundField DataField="Q_ANSWER_NUM" HeaderText="答题率" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_NUM" />
                     <asp:BoundField DataField="Q_ANSWER_CORRECT" HeaderText="正确率" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_CORRECT" />
                     <asp:BoundField DataField="Q_ANSWER_ERROR" HeaderText="错误率" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_ERROR" />
        --%>
<%--    <asp:BoundField DataField="Gw_Name" HeaderText="岗位" ItemStyle-HorizontalAlign="Center"
        SortExpression="Gw_Name" />--%>
<%--<asp:BoundField DataField="Lid_name" HeaderText="考试分类" ItemStyle-HorizontalAlign="Center"
    SortExpression="Lid_name" />--%>
<%--<asp:BoundField  SortExpression="Tst_name"   DataField="Tst_name" HeaderText="考试名称" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>--%>
<%--<asp:BoundField SortExpression="Tst_time"   DataField="Tst_time" HeaderText="时间" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>--%>
  <%--  <asp:BoundField DataField="Tst_score" HeaderText="分数" ItemStyle-HorizontalAlign="Center"
        SortExpression="Tst_score" />--%>
<%--<asp:TemplateField HeaderText="时间">
<ItemTemplate >
 <asp:CheckBox ID="checkbox1" runat="server" Style="display: none" />
    <asp:Label ID="Label1" runat="server" Text='<%#Eval("Tst_time")+"分钟" %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>--%>
<%--<asp:BoundField DataField="Pap_chuti" HeaderText="出题方式" ItemStyle-HorizontalAlign="Center"
    SortExpression="Pap_chuti" />--%>
<%--<asp:BoundField DataField="Tst_papermoder" HeaderText="模式" ItemStyle-HorizontalAlign="Center"
    SortExpression="Tst_papermoder" />--%>
   <%-- <asp:TemplateField HeaderText="有效期">
        <ItemTemplate>
   <asp:Label ID="Label2" runat="server" Text='<%#  (Eval("Tst_timebegin").ToString()=="") &&( Eval("Tst_timeend").ToString()=="")?"":DateTime.Parse(Eval("Tst_timebegin").ToString()).ToString("yyyy-MM-dd")+ "-"+DateTime.Parse (Eval("Tst_timeend").ToString()).ToString("yyyy-MM-dd") %>'></asp:Label>
        </ItemTemplate>
    </asp:TemplateField>--%>
   
  <%--  <asp:BoundField DataField="Q_ANSWER_number" HeaderText="题数" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_number" />
    <asp:BoundField DataField="Q_ANSWER_NUM" HeaderText="作答" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_NUM" />
    <asp:BoundField DataField="Q_ANSWER_NULL" HeaderText="未答" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_NULL" />
    <asp:BoundField DataField="Q_ANSWER_CORRECT" HeaderText="正确" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_CORRECT" />
    <asp:BoundField DataField="Q_ANSWER_ERROR" HeaderText="错误" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_ERROR" />--%>
   <%-- <asp:BoundField DataField="Q_ANSWER_Score" HeaderText="得分" ItemStyle-HorizontalAlign="Center"
        SortExpression="Q_ANSWER_Score" />--%>
        
       <%-- <asp:TemplateField HeaderText="通过">
        <ItemTemplate>
 <asp:Label ID="Label2" runat="server" ></asp:Label>
        </ItemTemplate>
        
        </asp:TemplateField>--%>
<%--    <asp:BoundField DataField="Ans_begintime" HeaderText="进入时间" ItemStyle-HorizontalAlign="Center"
        SortExpression="Ans_begintime" />
    <asp:BoundField DataField="Ans_endtime" HeaderText="交卷时间" ItemStyle-HorizontalAlign="Center"
        SortExpression="Ans_endtime" />--%>

</Columns>
</asp:GridView>
<asp:Panel ID="Panel1" runat="server" Visible="false" Width="100%">
<div class="paginator">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left">
<webdiyer:aspnetpager id="PagerButtom" runat="server" alwaysshow="True" bordercolor="Aqua"
cssclass="paginator" custominfoclass="" custominfohtml="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
custominfosectionwidth="" firstpagetext="首页" horizontalalign="Right" lastpagetext="尾页"
layouttype="Table" morebuttonsclass="" nextpagetext="下一页" numericbuttoncount="10"
onpagechanged="Pager_PageChanged" pageindexboxclass="cpb" pagesize="20" prevpagetext="上一页"
showcustominfosection="Right" showpageindexbox="Always">
</webdiyer:aspnetpager>
</td>
</tr>
</table>
</div>
</asp:Panel>
<asp:HiddenField ID="IsEdit" runat="server" />
<asp:HiddenField ID="modify" runat="server" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnModify" />
<asp:AsyncPostBackTrigger ControlID="btnDelete" />
    <asp:AsyncPostBackTrigger ControlID="Serch" />


</Triggers>
</asp:UpdatePanel>
<div id="div_win" style="display: none">
<iframe frameborder="0" src="about:blank" style="position: absolute; z-index: -1; width: 100%; height: 100%; top: 0; left: 0;"></iframe>
<asp:UpdatePanel ID="UpdatePanel2"  runat="server">
<ContentTemplate>
    <asp:HiddenField ID="IsShow" runat="server" Value="0" />
<table border="0" cellpadding="0" cellspacing="0" class="table" width="100%">
<tr>
<td align="right" style="width: 130px" class="line">
安排分类：
</td>
<td align="left"  class="line"  colspan="7">

    <asp:TextBox ID="t_value" runat="server" CssClass="text1" ReadOnly="true" Text=""></asp:TextBox>
    <asp:HiddenField ID="t_value_bk" runat="server" />
    <asp:HiddenField ID="h_value" runat="server" Value="0" />
    <img onclick="$('#div_4').dialog('open');$('#div_4').dialog({ title: '安排分类-选择' });$('#div_4').dialog({ draggable: true,resizable:true });"
        src="../images/select.gif" style="cursor: pointer;" />
</td>
</tr>
<tr>
<td align="right" style="width: 130px">
安排名称：
</td>
<td align="left" colspan="7">
<asp:TextBox ID="Tst_name" runat="server" CssClass="text1" Width="300"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" style="width: 130px" class="line">
考试时间：
</td>
<td align="left"  class="line" >
<asp:TextBox ID="Tst_time" runat="server" CssClass="text1" Width="50"></asp:TextBox>分钟


</td>

    <td align="right" class="line">
        参加次数：
    </td>
    <td align="left" class="line">
        <asp:TextBox ID="Tst_cishu" runat="server" CssClass="text1" Width="50"></asp:TextBox>
    </td>
    
    <td align="right" class="line" >
        试卷分数：
    </td>
    <td align="left" class="line">
        <asp:TextBox ID="Tst_score" runat="server" CssClass="text1" Width="50"></asp:TextBox>
    </td>
    <td align="right" class="line" >
        通过分数：
    </td>
    <td align="left" class="line">
        <asp:TextBox ID="Tst_pass" runat="server" CssClass="text1" Width="50"></asp:TextBox>
    </td>
</tr>



<tr>
<td align="right" style="width: 130px" >
有效时间起：
</td>
<td align="left"   colspan="7" >
<asp:TextBox   CssClass="Wdate" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})" onkeypress="event.returnValue=false;"   ID="Tst_timebegin" runat="server" Width="158"></asp:TextBox>


   
        有效时间至：
   
  
        <asp:TextBox ID="Tst_timeend" runat="server" CssClass="Wdate" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})"
            onkeypress="event.returnValue=false;" Width="158"></asp:TextBox>
   
</td>
</tr>

<tr>
<td align="right" style="width: 130px" class="line">
安排选项：
</td>
<td align="left"  class="line" colspan="7" >

    <asp:RadioButton ID="look1"  GroupName="111" runat="server" Text="即时显示分数" />
    <asp:RadioButton ID="look2" runat="server" GroupName="111" Text="指定成绩发布时间" />
    <asp:TextBox ID="Tst_look" runat="server" CssClass="Wdate" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})"
        onkeypress="event.returnValue=false;" Width="158"></asp:TextBox>
    

</td>
</tr>
<tr>
<td align="right" style="width: 130px">
试卷模式：
</td>
<td align="left" colspan="7">

    <asp:RadioButton ID="papermoder1" runat="server"  GroupName="2"  Text="单题模式"/>
    <asp:RadioButton ID="papermoder2" runat="server" GroupName="2" Text="整卷模式" />
<asp:TextBox ID="Tst_papermoder" runat="server" Width="158"  style=" display:none "></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" style="width: 130px" class="line">
选择试卷：
</td>
<td align="left"  class="line"    colspan="7">


<asp:TextBox ID="Tst_papid" runat="server" ReadOnly="true"  CssClass="text1" Width="158"></asp:TextBox>
    <asp:HiddenField ID="h_papid" runat="server" />
    <asp:HiddenField ID="Tst_papid_bk" runat="server" />
    <img onclick="$('#div2').dialog('open');$('#div2').dialog({ title: '选择试卷' });$('#div2').dialog({ draggable: true,resizable:true });"
        src="../images/select.gif" style="cursor: pointer;" />

</td>
</tr>
<tr>
<td align="right" style="width: 130px" >
备注：
</td>
<td align="left" colspan="7">
<asp:TextBox ID="Tst_bk" runat="server" CssClass="text1" Rows="5" TextMode="MultiLine"
    Width="380"></asp:TextBox>
</td>
</tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnAdd" EventName="click" />
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<div class="panel" style="padding-left: 130px; width: 81%">
<asp:Button ID="Button1" runat="server" CssClass="input" OnClick="LinkButton1_Click" Text="确 定" />
<asp:Button ID="Button2" runat="server" CssClass="input" OnClick="LinkButton2_Click" Text="取 消" />
</div>
</div>
    <div id="div_4" style="display: none">
        <iframe frameborder="0" src="about:blank" style="position: absolute; z-index: -1;
            width: 100%; height: 100%; top: 0; left: 0;"></iframe>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <asp:TreeView ID="TreeView1" runat="server" CollapseImageUrl="~/images/folder.gif"
                        ExpandImageUrl="~/images/folder-closed.gif" NoExpandImageUrl="~/images/file.gif">
                    </asp:TreeView>
                </td>
            </tr>
        </table>
    </div>
    <div id="div_5" style="display: none">
        <iframe frameborder="0" src="about:blank" style="position: absolute; z-index: -1;
            width: 100%; height: 100%; top: 0; left: 0;"></iframe>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <asp:TreeView ID="TreeView2" runat="server" CollapseImageUrl="~/images/folder.gif"
                        ExpandImageUrl="~/images/folder-closed.gif" NoExpandImageUrl="~/images/file.gif">
                    </asp:TreeView>
                </td>
            </tr>
        </table>
    </div>

    <div id="div2" style="display: none">
 
        <iframe frameborder="0" src="about:blank" style="position: absolute; z-index: -1;
            width: 100%; height: 100%; top: 0; left: 0;"></iframe>
        <div class="panel" style="text-align: left;">
       
         试卷类型：<asp:DropDownList ID="DropDownList1" runat="server">
            </asp:DropDownList>
            出题方式：
            <asp:DropDownList ID="DropDownList2" runat="server">
                <asp:ListItem Value="">请选择出题方式...</asp:ListItem>
                <asp:ListItem Text="固定试卷（手工）" Value="固定试卷"></asp:ListItem>
                <asp:ListItem Text="固定试卷（随机）" Value="固定随机"></asp:ListItem>
                <asp:ListItem Text="随机试卷" Value="随机试卷"></asp:ListItem>
            </asp:DropDownList>
         
        
            试卷名称：<asp:TextBox ID="paper_name" runat="server" CssClass="text1" Width="220"></asp:TextBox>
            <asp:Button ID="Button4" runat="server" BackColor="LightSkyBlue" CssClass="btn" ForeColor="Red"
                OnClick="Button4_Click" Text="搜索" Width="88px" />
        </div>
        <div class="panel" style="text-align: right; display :none ;">
            <input class="btn" onclick="ChangeAllCheckStatus2(this,'checkbox1')" type="button"
                value="全 选" />
            <input class="btn" onclick="CheckedRev2(this,'checkbox1')" type="button" value="反 选" />
            <input class="btn" onclick="clearChoose(this,'checkbox1')" type="button" value="清空选择" />
           
        </div>
        <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CssClass="gv"
                    DataKeyNames="Pap_id" GridLines="Horizontal" Width="100%">
                    <RowStyle CssClass="gvRow" />
                    <HeaderStyle CssClass="gvHeader" />
                    <AlternatingRowStyle CssClass="gvAlternatingRow" />
                    <Columns>
                        <asp:TemplateField HeaderText="选" ItemStyle-Height="20px">
                            <HeaderStyle HorizontalAlign="Center" Width="50px" />
                            <ItemStyle HorizontalAlign="Center" Width="50px" Wrap="false" />
                            <ItemTemplate>
                                <asp:CheckBox ID="checkbox1" runat="server" />
                                <asp:HiddenField ID="Pap_id" runat="server" Value='<%# Eval("Pap_id") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Lid_name" HeaderText="涉及领域" ItemStyle-HorizontalAlign="Center"
                            SortExpression="Lid_name" />
                        <asp:BoundField DataField="Paptypename" HeaderText="试卷类型" ItemStyle-HorizontalAlign="Center"
                            SortExpression="Paptypename" />
                        <asp:BoundField DataField="Pap_chuti" HeaderText="出题方式" ItemStyle-HorizontalAlign="Center"
                            SortExpression="Pap_chuti" />
                        <asp:BoundField DataField="Paper_name" HeaderText="试卷名称" ItemStyle-HorizontalAlign="Center"
                            SortExpression="Paper_name" />
                        <%--<asp:BoundField  SortExpression="Tid_sTitle"   DataField="Tid_sTitle" HeaderText="副标题" ItemStyle-HorizontalAlign="Center" >
</asp:BoundField>--%>
                        <%-- <asp:BoundField DataField="Top_Theme" HeaderText="题目" ItemStyle-HorizontalAlign="Center"
                        SortExpression="Top_Theme" />--%>
                    
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                             <%--   <input class="btn" onclick='l_in3(this,<%# Container.DataItemIndex+2%>,"#fff","#eee","#bce774","#ffff99")'
                                    style="background-color: LightSkyBlue; color: red;" type="button" value="选择" />--%>
                                <input class="btn" onclick='l_in4(<%#  Eval("Pap_id")%>,"<%#  Eval("Paper_name")%>" )'
                                    style="background-color: LightSkyBlue; color: red;" type="button" value="选择" />
                                    
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:Panel ID="Panel2" runat="server" Visible="false" Width="100%">
                    <div class="paginator">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="left">
                                    <webdiyer:AspNetPager ID="Aspnetpager1" runat="server" AlwaysShow="True" BorderColor="Aqua"
                                        CssClass="paginator" CustomInfoClass="" CustomInfoHTML="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
                                        CustomInfoSectionWidth="" FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页"
                                        LayoutType="Table" MoreButtonsClass="" NextPageText="下一页" NumericButtonCount="10"
                                        OnPageChanged="Pager_PageChanged1" PageIndexBoxClass="cpb" PageSize="20" PrevPageText="上一页"
                                        ShowCustomInfoSection="Right" ShowPageIndexBox="Always">
                                    </webdiyer:AspNetPager>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </ContentTemplate>
            <Triggers>
                
                <asp:AsyncPostBackTrigger ControlID="Button4" />
          
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <div id="div1" style="display: none">
        <iframe frameborder="0" src="about:blank" style="position: absolute; z-index: -1;
            width: 100%; height: 100%; top: 0; left: 0;"></iframe>
        <div>
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                <ContentTemplate>
               <table border="0" cellpadding="0" cellspacing="0" class="table" width="100%">
<tr>
<td align="right" class="line" style="width: 130px; height:25px;">
    安排分类：
</td>
    <td align="left" class="line" colspan="7" style="height:25px;">
        <asp:Label ID="anpai_type" runat="server"   Text="">
        </asp:Label>
       
       
    </td>
</tr>
                   <tr>
                       <td align="right" style="height: 25px;">
                           安排名称：
                       </td>
                       <td align="left" colspan="7" style="height: 25px;">
                           <asp:Label ID="anpai_name" runat="server"  ></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td align="right" class="line" style="height: 25px;">
                           考试时间：
                       </td>
                       <td align="left" class="line" style="height: 25px;">
                           <asp:Label ID="anpai_time" runat="server"  Width="50"></asp:Label>分钟
                       </td>
                       <td align="right" class="line" style="height: 25px;">
                           参加次数：
                       </td>
                       <td align="left" class="line" style="height: 25px;">
                           <asp:Label ID="anpai_cishu" runat="server"  Width="50"></asp:Label>
                       </td>
                       <td align="right" class="line" style="height: 25px;">
                           试卷分数：
                       </td>
                       <td align="left" class="line" style="height: 25px;">
                           <asp:Label ID="anpai_score" runat="server"  Width="50"></asp:Label>
                       </td>
                       <td align="right" class="line" style="height: 25px;">
                           通过分数：
                       </td>
                       <td align="left" class="line" style="height: 25px;">
                           <asp:Label ID="anpai_pass" runat="server"  Width="50"></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td align="right" style="height: 25px;">
                           有效时间起：
                       </td>
                       <td align="left" colspan="7" style="height: 25px;">
                           <asp:Label ID="anpai_begin" runat="server"  ></asp:Label>
                           有效时间至：
                           <asp:Label ID="anpai_end" runat="server"  ></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td align="right" class="line" style="height: 25px;">
                           安排选项：
                       </td>
                       <td align="left" class="line" colspan="7" style="height: 25px;">
                         
                           <asp:Label ID="anpai_xuanxiang" runat="server"  ></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td align="right" style="height: 25px;">
                           试卷模式：
                       </td>
                       <td align="left" colspan="7" style="height: 25px;">
                           
                           <asp:Label ID="anpai_morder" runat="server"  ></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td align="right" class="line" style="height: 25px;">
                           选择试卷：
                       </td>
                       <td align="left" class="line" colspan="7" style="height: 25px;">
                           <asp:Label ID="anpai_paper" runat="server"  >
                           </asp:Label>
                          
                       </td>
                   </tr>
                   <tr>
                       <td align="right" style="height: 25px;">
                           备注：
                       </td>
                       <td align="left" colspan="7" style="height: 25px;">
                           <asp:Label ID="anpai_bk" runat="server"  
                               ></asp:Label>
                       </td>
                   </tr>
               </table>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="GridView1" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
    </div>
    <asp:UpdatePanel ID="UpdatePanel5" runat="server">
    <ContentTemplate >
    <div id="JoinExamTemp" style="position: absolute; z-index: 10001; background-image: initial;
        background-attachment: initial; background-origin: initial; background-clip: initial;
        background-color: rgb(255, 255, 255); left: 486.5px; top: 8px; background-position: initial initial;
        background-repeat: initial initial; display:none;" >
        <dl>
            <dt>
                <asp:Label ID="uplanname" runat="server" Text=""></asp:Label>
            </dt>
            <dd>
                <img id="closejoinexam" alt="关闭窗口" onclick="closediv()" src="../images/messageclose.gif"></dd>
        </dl>
        <div id="JoinExam">
            <div class="l">
                <img alt="" src="../images/shijuan.gif">
            </div>
            <div class="r">
                <ul>
                    <li>查阅用户：<asp:Label ID="up_user" runat="server" Text=""></asp:Label></li>
                    
                
                    <li>卷面总分：<asp:Label ID="upoint" runat="server" Text=""></asp:Label> 分</li>
                    <li>通过分数：<asp:Label ID="upasspoint" runat="server" Text=""></asp:Label> 分</li>
                    <li style="height: 50px; margin-top: 10px; text-align: center;">
                       
                     <asp:HyperLink ID="openExam" runat="server" Target="_self"    ></asp:HyperLink>
                       
                       
  
                     <%--   
                       <img alt="开始考试" onclick='exam_test(<%# ViewState["userid"].ToString()+","+ViewState["planid"].ToString()+","+ViewState["planname"].ToString()+","+ViewState["time"].ToString()+","+ViewState["point"].ToString()+","+ViewState["passpoint"].ToString()+","+ViewState["module"].ToString()+","+ViewState["pid"].ToString()+","+ViewState["isanswer"].ToString()+","+ViewState["return"].ToString()+","+ViewState["page"].ToString()+","+ViewState["look"].ToString()+","+ViewState["examkey"].ToString()   %>);'
                           src="../images/btn.gif" />--%>
         
         

                        
                        
                        
                             </li>
                    <li>答题时间：<asp:Label ID="utime" runat="server" Text=""></asp:Label>分钟</li>
                    <li>试卷模式：<asp:Label ID="umodule" runat="server" Text=""></asp:Label></li>
                </ul>
            </div>
            <div class="body">
                <div class="t">
                    考场巡视须知：</div>
                · 点击“进入考场”，将进入所选用户的试卷现场。
                <br>
                · 进入试卷后，所显示的任何内容，都为用户的真实数据，切勿篡改。
                <br>
                · 进入试卷后，可进行手工刷新，以确保看到用户实时的答题记录。<br>
            </div>
        </div>
    </div>
    </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="GridView1" />
        </Triggers>
    </asp:UpdatePanel>
</form>
<asp:Label ID="lb_pageid" runat="server" Text="" Visible="false"></asp:Label>
<asp:Label ID="recordcount" runat="server" Visible="false"></asp:Label>
<asp:Label ID="page_indexpage" runat="server" Text="1" Visible="false"></asp:Label>
<asp:Label ID="page_count" runat="server" Text="0" Visible="false"></asp:Label>
 <asp:Label ID="l2" runat="server" ></asp:Label> 
</body>
</html>
