<%@ page title="设置报考" language="VB" masterpagefile="~/Page.master" autoeventwireup="false" inherits="WebExam.Web.exam_manageexam_editFreeEnter, App_Web_plgfti2c" %>
<%@ MasterType VirtualPath="~/Page.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentHead" Runat="Server">
<script type ="text/javascript" >
    function openTree() {
        __modalFrame("../../secure/departTree/departForExaminer.htm?restore=0", 300, 400, null)

    };
    function checkData() {
        if (document.getElementById("TB_PartId").value == "") {__message("请选择相应的部门！");return false; }return true;
    };
    function treeSelectedChange(id, text) { document.getElementById("selectedPartName").value = text; document.getElementById("TB_PartId").value = id;$.modal.close(); }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainCopy" Runat="Server">
<div style="text-align:center">
<h3>下列部门考生允许自由报考“<asp:Label ID="L_examId" runat="server" Text=""></asp:Label>”</h3>
<asp:GridView ID="GridView1" runat="server" style="width:500px; margin:auto" 
        AutoGenerateColumns="False" CellPadding="4" EnableModelValidation="True" 
        ForeColor="#333333" GridLines="None" DataKeyNames="depart">
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
        <asp:BoundField DataField="depart" HeaderText="部门"/>
        <asp:CheckBoxField DataField="flow" HeaderText="含下属" ItemStyle-Width="50" >
<ItemStyle Width="50px"></ItemStyle>
        </asp:CheckBoxField>
        <asp:CommandField ShowDeleteButton="True">
        <ItemStyle Width="50px" />
        </asp:CommandField>
    </Columns>
    <EditRowStyle BackColor="#999999" />
<EmptyDataTemplate><p>无数据</p></EmptyDataTemplate>
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    </asp:GridView>
    
    <p style=" margin-top:20px"><input id="TB_PartId" name="TB_PartId" value ="" type="hidden" /><input id="selectedPartName" value ="选择部门" readonly="readonly" style="color: #C0C0C0" /><input type="button" value ="..." onclick="openTree()" /><asp:CheckBox 
            ID="CheckBox1" runat="server" Text="含下属部门" /><asp:Button ID="Button1"
            runat="server" Text="保存" OnClientClick="return checkData();" /></p>
</div>
    


</asp:Content>

