<%@ page language="C#" autoeventwireup="true" inherits="Exam_tbl_test_shouquan, App_Web_hb0wicqn" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>授权管理</title>
    
  <link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <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 src="../js/TreeViewDebug.js" type="text/javascript">    </script>--%>





    <script  type="text/javascript"  language="javascript" >
    
     $(function(){




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


});
    
    
    
        
           function refresh() {
 document.getElementById('<%= Button5.ClientID %>').click();

    }
               function refresh1() {
 document.getElementById('<%= Button6.ClientID %>').click();
    }   




function delChkTitle()
{
var alldiv=document.getElementsByTagName("DIV");
for(var i=0;i<alldiv.length;i++)  
{
allchks= alldiv[i].getElementsByTagName('INPUT');
for(var j=0;j<allchks.length;j++)
{
if(allchks[j].type=='checkbox')
{
allchks[j].title="";
allchks[j].checked=false;
}
}
}
}
//--------------------



function check_all_dep()
{
var dep=document.getElementById ("div_4");

var alldiv=dep.getElementsByTagName("DIV");
for(var i=0;i<alldiv.length;i++)  
{
allchks= alldiv[i].getElementsByTagName('INPUT');
for(var j=0;j<allchks.length;j++)
{
if(allchks[j].type=='checkbox')
{
allchks[j].title="";
allchks[j].checked=true;
}
}
}
}

function check_all_GW()
{
var GW=document.getElementById ("div_5");

var alldiv=GW.getElementsByTagName("DIV");
for(var i=0;i<alldiv.length;i++)  
{
allchks= alldiv[i].getElementsByTagName('INPUT');
for(var j=0;j<allchks.length;j++)
{
if(allchks[j].type=='checkbox')
{
allchks[j].title="";
allchks[j].checked=true;
}
}
}
}


//-------------------------------------
//   function OnTreeNodeChecked() 
//    { 
//    
//   
//    
//        var ele = event.srcElement; 
//        if(ele.type=='checkbox') 
//        { 
//    
//            var childrenDivID = ele.id.replace('CheckBox','Nodes'); 
//            var div = document.getElementById(childrenDivID); 
//            if(div!=null) 
//            {
//                var checkBoxs = div.getElementsByTagName('INPUT'); 
//                for(var i=0;i<checkBoxs.length;i++) 
//                {                     
//                    if(checkBoxs[i].type=='checkbox') 
//                    checkBoxs[i].checked=ele.checked; 
//                } 
//            }
//            OnTreeNodeChildChecked(ele);

//          
//        } 
//    }
//    
//    function OnTreeNodeChildChecked(ele)
//    {
//            //自动处理上级
//            var parentDiv=ele.parentElement.parentElement.parentElement.parentElement.parentElement;
//            var parentChkBox=document.getElementById(parentDiv.id.replace('Nodes','CheckBox'));
//            if(parentChkBox!=null)
//            {
//                var ChildsChkAll=true;
//                var Boxs = parentDiv.getElementsByTagName('INPUT'); 
//                for(var i=0;i<Boxs.length;i++) 
//                { 
//                    if(Boxs[i].type=='checkbox'&&Boxs[i].checked==false) 
//                    {
//                        ChildsChkAll=false;
//                    }
//                } 
//                parentChkBox.checked=ChildsChkAll;
//                OnTreeNodeChildChecked(parentChkBox);
//            }
//    }

             //treeview—CHECKBOX自动级联-----------------------------------
  function OnTreeNodeChecked()  
   {
       var ele = event.srcElement; 
          if(ele.type=='checkbox') 
             { 
                    var childrenDivID = ele.id.replace('CheckBox','Nodes');
                   var div = document.getElementById(childrenDivID);        
                   if(div != null)       
                    {          
                   var checkBoxs = div.getElementsByTagName('INPUT');            
                   for(var i=0;i<checkBoxs.length;i++)            
                   {                
                   if(checkBoxs[i].type=='checkbox')      
                    checkBoxs[i].checked=ele.checked;        
                        }      
                          }      
                            else   
                                 {        
                                     var div = GetParentByTagName(ele,'DIV');  
                                               var checkBoxs = div.getElementsByTagName('INPUT');   
                                                        var parentCheckBoxID = div.id.replace('Nodes','CheckBox'); 
                                                        var parentCheckBox = document.getElementById(parentCheckBoxID);            
                                                        for(var i=0;i<checkBoxs.length;i++)   
                                                                 {        
                                                        if(checkBoxs[i].type=='checkbox' && checkBoxs[i].checked)      
                                                                  {                  
                                                                   parentCheckBox.checked = true; 
                                                                                      return;       
                                                                                               }    
                                                                                                       }     
                         parentCheckBox.checked = false;      
                           }  
                             }}   
                                    function GetParentByTagName(element, tagName)      
                                        {         
                                           var parent = element.parentNode;    
                                          var upperTagName = tagName.toUpperCase();      
                             while (parent && (parent.tagName.toUpperCase() != upperTagName))    
                                     {            
                                       parent = parent.parentNode ? parent.parentNode : parent.parentElement;
                                                   }    
                                         return parent;  
                                                                    }
          //treeview—CHECKBOX自动级联-----------------------------------




    </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 = GridView1.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_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 == "checkbox") {
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 = objCheckBox.checked;
if(objCheckBox.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;
}
}
}
}
//-------------------------------------------------------------------
function l_out3(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView3_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView3_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_in3(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView3_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView3_ctl"+m+"_checkbox1");
}
if (ck!=null)if (ck.checked==true)
{
p.style.backgroundColor = SelectColor;
}
else
{
p.style.backgroundColor = HoverColor; 
}
}




function ChangeAllCheckStatus3(objCheckBox, strId) //全选
{

var NormalColor = "#fff";
 var AlterColor = "#eee";
var SelectColor = "#ffff99";
var GridView2= document.getElementById("<%=GridView3.ClientID %>");
if (objCheckBox.tagName == "INPUT" && objCheckBox.type == "checkbox") {
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 = objCheckBox.checked;
if(objCheckBox.checked)
{
GridView2.rows[k].style.backgroundColor='#ffff99';
}
else
{
GridView2.rows[k].style.backgroundColor = k % 2 == 0 ? NormalColor : AlterColor;
}
}
//document.getElementById ("cb3").checked=false;
}
}
}
}
//------------------------------------------------------------
function l_out4(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView4_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView4_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_in4(p,m,NormalColor,AlterColor,HoverColor,SelectColor)
{
if (m<10)
{
var ck= document.getElementById("GridView4_ctl0"+m+"_checkbox1");
}
else
{
var ck= document.getElementById("GridView4_ctl"+m+"_checkbox1");
}
if (ck!=null)if (ck.checked==true)
{
p.style.backgroundColor = SelectColor;
}
else
{
p.style.backgroundColor = HoverColor; 
}
}




function ChangeAllCheckStatus4(objCheckBox, strId) //全选
{

var NormalColor = "#fff";
 var AlterColor = "#eee";
var SelectColor = "#ffff99";
var GridView2= document.getElementById("<%=GridView4.ClientID %>");
if (objCheckBox.tagName == "INPUT" && objCheckBox.type == "checkbox") {
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 = objCheckBox.checked;
if(objCheckBox.checked)
{
GridView2.rows[k].style.backgroundColor='#ffff99';
}
else
{
GridView2.rows[k].style.backgroundColor = k % 2 == 0 ? NormalColor : AlterColor;
}
}
//document.getElementById ("cb3").checked=false;
}
}
}
}


    </script>



</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    
    <div  class="title" >
        <asp:Label ID="Label1" runat="server" Text="授权管理"></asp:Label>
    </div>
    
      
    <div class="panel">
    授权：
        <asp:Button ID="Button1"  CssClass="button_r_b"   runat="server" Text="授权部门" OnClick="Button1_Click" />
        <asp:Button ID="Button2" runat="server" CssClass="button_y_b" BackColor="yellow"  Text="授权岗位" OnClick="Button2_Click" />
        <asp:Button ID="Button3" runat="server" CssClass="button_g_b" BackColor="green"  Text="授权用户" OnClick="Button3_Click" />
        <asp:Button ID="Button4" runat="server" CssClass="button_b_b"  BackColor="LightBlue"  Text="授权评卷人" OnClick="Button4_Click" />
        <asp:Button ID="Button9" runat="server" CssClass="button_b"  Text="返回" OnClick="Button9_Click" />
    
    </div>
    
    
    <div>
  
  
  <table border="0" cellpadding="1" cellspacing="1"  width="100%">

<tr>
<td  width="25%"  valign="top"  align="left" >
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
        <ContentTemplate>
           
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gv"
                DataKeyNames="D_Id" GridLines="Horizontal" Width="100%" OnRowCommand="GridView1_RowCommand">
                <RowStyle CssClass="gvRow" />
                <HeaderStyle CssClass="gvHeader" />
                <AlternatingRowStyle CssClass="gvAlternatingRow" />
                <Columns>
                    <asp:TemplateField HeaderText="选">
                 <HeaderTemplate>
                     <input id="chk_all" name="chk_all" onclick="ChangeAllCheckStatus(this,'checkbox1')"
                         type="checkbox" />
                 </HeaderTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                        <ItemStyle HorizontalAlign="Center" Width="50px" Wrap="False" />
                        <ItemTemplate>
                            <asp:CheckBox ID="checkbox1" runat="server" />
                            <asp:HiddenField ID="D_Id" runat="server" Value='<%# Eval("D_Id") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="部门授权（部门名称）">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%#Eval("Dep_Name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                    <HeaderTemplate>
                        <asp:Button ID="LinkButton6" runat="server" CssClass="button_r" 
                            Text="批量删除" OnClick="LinkButton6_Click"></asp:Button>
                    </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Button ID="LinkButton1" runat="server" BackColor="red" CommandArgument='<%# Eval("D_Id") %>'
                                CommandName="dell" CssClass="button_r_s" Text="删除"></asp:Button>
                        </ItemTemplate>
                    </asp:TemplateField>
                </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="" 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>
           
            
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Button1" />
        </Triggers>
    </asp:UpdatePanel>
</td>
<td align="left" valign="top" width="25%">
    <asp:UpdatePanel ID="UpdatePanel2" runat="server" RenderMode="Inline">
        <ContentTemplate>
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CssClass="gv"
                DataKeyNames="G_Id" GridLines="Horizontal" Width="100%" OnRowCommand="GridView2_RowCommand">
                <RowStyle CssClass="gvRow" />
                <HeaderStyle CssClass="gvHeader" />
                <AlternatingRowStyle CssClass="gvAlternatingRow" />
                <Columns>
                    <asp:TemplateField HeaderText="选">
                        <HeaderTemplate>
                            <input id="chk_all" name="chk_all" onclick="ChangeAllCheckStatus2(this,'checkbox1')"
                                type="checkbox" />
                        </HeaderTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                        <ItemStyle HorizontalAlign="Center" Width="50px" Wrap="False" />
                        <ItemTemplate>
                            <asp:CheckBox ID="checkbox1" runat="server" />
                            <asp:HiddenField ID="G_Id" runat="server" Value='<%# Eval("G_Id") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="岗位授权（岗位名称）">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%#Eval("Gw_Name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                    <HeaderTemplate >
                        <asp:Button ID="LinkButton7" runat="server" CssClass="button_r" OnClick="LinkButton7_Click"
                            Text="批量删除"></asp:Button>
                    </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Button ID="LinkButton2" runat="server" BackColor="red" CommandArgument='<%# Eval("G_Id") %>'
                                CommandName="dell" CssClass="button_y_s" Text="删除"></asp:Button>
                        </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="PagerButtom1" runat="server" AlwaysShow="True" BorderColor="Aqua"
                                    CssClass="paginator" CustomInfoClass="" CustomInfoHTML="" 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="Button2" />
        </Triggers>
    </asp:UpdatePanel>
</td>

<td align="left" valign="top" width="25%">
    <asp:UpdatePanel ID="UpdatePanel3" runat="server" RenderMode="Inline">
        <ContentTemplate>
            <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" CssClass="gv"
                DataKeyNames="P_id" GridLines="Horizontal" Width="100%" OnRowCommand="GridView3_RowCommand">
                <RowStyle CssClass="gvRow" />
                <HeaderStyle CssClass="gvHeader" />
                <AlternatingRowStyle CssClass="gvAlternatingRow" />
                
                <Columns>
                    <asp:TemplateField HeaderText="选">
                    
                    <HeaderTemplate>
                        <input id="chk_all" name="chk_all" onclick="ChangeAllCheckStatus3(this,'checkbox1')"
                            type="checkbox" />
                    </HeaderTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                        <ItemStyle HorizontalAlign="Center" Width="50px" Wrap="false" />
                        <ItemTemplate>
                            <asp:CheckBox ID="checkbox1" runat="server" />
                            <asp:HiddenField ID="P_id" runat="server" Value='<%# Eval("P_id") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="用户授权（用户名）">
                    
                        <ItemTemplate>
                    
                            <asp:Label ID="Label2" runat="server" Text='<%#Eval("TeaItemNo") +"("+Eval("Tea_nicheng") +")"%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                
                    <asp:TemplateField HeaderText="操作">
                        <HeaderTemplate>
                            <asp:Button ID="LinkButton5" runat="server"      CssClass="button_g" Text="批量删除" OnClick="LinkButton5_Click"></asp:Button>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Button ID="LinkButton3" runat="server" BackColor="red" CommandArgument='<%# Eval("P_id") %>'
                                CommandName="dell" CssClass="button_g_s" Text="删除" ></asp:Button>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:Panel ID="Panel3" runat="server" Visible="false" Width="100%">
                <div class="paginator">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="left">
                                <webdiyer:AspNetPager ID="PagerButtom2" runat="server" AlwaysShow="True" BorderColor="Aqua"
                                    CssClass="paginator" CustomInfoClass="" CustomInfoHTML="" CustomInfoSectionWidth=""
                                    FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" LayoutType="Table"
                                    MoreButtonsClass="" NextPageText="下一页" NumericButtonCount="10" OnPageChanged="Pager_PageChanged2"
                                    PageIndexBoxClass="cpb" PageSize="20" PrevPageText="上一页" ShowCustomInfoSection="Right"
                                    ShowPageIndexBox="Always">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Style="display: none;"
                Text="Button" />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Button3" />
        </Triggers>
    </asp:UpdatePanel>
</td>
<td align="left" valign="top" width="25%">
    <asp:UpdatePanel ID="UpdatePanel4" runat="server" RenderMode="Inline">
        <ContentTemplate>
            <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" CssClass="gv"
                DataKeyNames="Pj_Id" GridLines="Horizontal" Width="100%" OnRowCommand="GridView4_RowCommand">
                <RowStyle CssClass="gvRow" />
                <HeaderStyle CssClass="gvHeader" />
                <AlternatingRowStyle CssClass="gvAlternatingRow" />
                <Columns>
                    <asp:TemplateField HeaderText="选">
                        <HeaderTemplate>
                            <input id="chk_all" name="chk_all" onclick="ChangeAllCheckStatus4(this,'checkbox1')"
                                type="checkbox" />
                        </HeaderTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                        <ItemStyle HorizontalAlign="Center" Width="50px" Wrap="false" />
                        <ItemTemplate>
                            <asp:CheckBox ID="checkbox1" runat="server" />
                            <asp:HiddenField ID="Pj_Id" runat="server" Value='<%# Eval("Pj_Id") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="评卷人授权（用户名称）">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%#Eval("TeaItemNo") +"("+Eval("Tea_nicheng") +")"%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                    <HeaderTemplate>
                        <asp:Button ID="LinkButton8" runat="server" CssClass="button_b" OnClick="LinkButton8_Click"
                            Text="批量删除"></asp:Button>
                    </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Button ID="LinkButton4" runat="server" BackColor="red" CommandArgument='<%# Eval("Pj_Id") %>'
                                CommandName="dell" CssClass="button_b_s" Text="删除"></asp:Button>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:Panel ID="Panel4" runat="server" Visible="false" Width="100%">
                <div class="paginator">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="left">
                                <webdiyer:AspNetPager ID="PagerButtom3" runat="server" AlwaysShow="True" BorderColor="Aqua"
                                    CssClass="paginator" CustomInfoClass="" CustomInfoHTML="" CustomInfoSectionWidth=""
                                    FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" LayoutType="Table"
                                    MoreButtonsClass="" NextPageText="下一页" NumericButtonCount="10" OnPageChanged="Pager_PageChanged3"
                                    PageIndexBoxClass="cpb" PageSize="20" PrevPageText="上一页" ShowCustomInfoSection="Right"
                                    ShowPageIndexBox="Always">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <asp:Button ID="Button6" runat="server"  Style="display: none;"
                Text="Button" OnClick="Button6_Click" />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Button4" />
        </Triggers>
    </asp:UpdatePanel>
</td>

</tr>  
  
  </table>
  
    </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>
   
            <asp:UpdatePanel ID="UpdatePanel5" runat="server">
           
           <ContentTemplate >
            <table border="0" cellpadding="0" cellspacing="0" height="100%">
                <tr>
                    <td valign="top" >
                      
                      
                            <asp:TreeView ID="TreeView1"   runat="server" ShowCheckBoxes="All" ShowLines="True"  >
                        </asp:TreeView>
                    
                    </td>
                </tr>
                <tr>
                <td  valign="bottom" >
                    <asp:Button ID="Button7" runat="server" CssClass="btn " Text="确定" OnClick="Button7_Click" />
                    <input class="btn" onclick="check_all_dep()" type="button" value="全部选择" />
                    <input onclick="delChkTitle()" class="btn" type="button" value="取消选择" />
                    
                    
                    
                    
                </td>
                
            </tr>
            </table>
           </ContentTemplate>
           <Triggers >
           <asp:AsyncPostBackTrigger ControlID="TreeView1"/>
           </Triggers>
            </asp:UpdatePanel>
      
        </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>
            <asp:UpdatePanel ID="UpdatePanel6" runat="server">
           
                <ContentTemplate>
              
            <table border="0" cellpadding="0" cellspacing="0" height="100%">
                <tr>
                    <td valign="top" >
                        <asp:TreeView ID="TreeView2" runat="server" ShowCheckBoxes="All" ShowLines="True">
                        </asp:TreeView>
                    </td>
                </tr>
                <tr>
                <td valign="bottom" >
                    <asp:Button ID="Button8" runat="server" CssClass="btn "  Text="确定" OnClick="Button8_Click" />
                    <input class="btn" onclick="check_all_GW()" type="button" value="全部选择" />
                    <input class="btn" onclick="delChkTitle()" type="button" value="取消选择" />
                </td>
                
                </tr>
            </table>
                </ContentTemplate>
                <Triggers >
                <asp:AsyncPostBackTrigger ControlID="TreeView2" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
  
  
  
    
    
    
    </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>
