<%@ page language="C#" autoeventwireup="true" enableeventvalidation="false" inherits="Plan_PlanTarget, App_Web_dy1ncacz" theme="Themes" stylesheettheme="Themes" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<%@ Register Src="../UserControls/ChooseUserAdvance.ascx" TagName="ChooseUserAdvance"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link href="../css/layerDiv.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
        }
        #LayerAll
        {
            position: absolute;
            filter: alpha(opacity = 50);
            width: 100%;
            height: 100%;
            background-color: #CCCCCC;
            border: 0px;
            left: 1px;
            top: 1px;
            z-index: 1;
            display: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table width="100%" cellpadding="0" cellspacing="0" class="table_3">
        <tr>
            <td class="nav_font">
                <img src="../Images/ico4.gif" />
                当前的位置： 培训计划管理 &gt; 配置培训计划 &gt; 选择目标培训对象（必修）
            </td>
        </tr>
    </table>
    <%--<div class="box">
        选择目标培训对象（必修）
    </div>--%>
    <div id="LayerAll" runat="server">
    </div>
    <div id="LayerShow" runat="server" style="width: 620px; top: 8%; overflow: auto;
        padding-left: 10px; padding-right: 10px; padding-top: 10px; display: none; background-color: #fff;">
        <div id="Div2" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14">
                <div style="color: #666">
                    <table class="" cellpadding="5" height="400px">
                        <tr>
                            <td>
                                <div style="overflow: auto; height: 400px;">
                                    <table cellspacing="0" cellpadding="6" border="0" style="table-layout: fixed;">
                                        <tr>
                                            <td align="center">
                                                <uc1:ChooseUserAdvance ID="ChooseUserWhite" runat="server"></uc1:ChooseUserAdvance>
                                                <uc1:ChooseUserAdvance ID="ChooseUserBlack" runat="server"></uc1:ChooseUserAdvance>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
    </div>
    <div id="divMain" runat="server" class="box" style="background-color: White;">
        <table border="0" cellpadding="5" cellspacing="0" bgcolor="white" width="100%" align="center">
            <tr>
                <td rowspan="4" valign="top" style="width: 99px">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <table border="0" cellpadding="5" cellspacing="0" bgcolor="white">
                                <tr>
                                    <td style="border-right: solid 1px #cccccc; width: 200px">
                                        <asp:TreeView ID="TreeView1" runat="server" ImageSet="News" Width="100%" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"
                                            OnTreeNodeCheckChanged="TreeView1_TreeNodeCheckChanged" ShowCheckBoxes="Leaf">
                                        </asp:TreeView>
                                    </td>
                                </tr>
                                <%--<tr>
                                    <td style="width: 100px">
                                    </td>
                                </tr>--%>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td width="445" style="width: 100px">
                    白名单：
                            </td>
                <td width="100" style="width: 100px">
                    黑名单：
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 234px" valign="top">
                    <table>
                        <tr>
                            <td colspan="2" style="height: 137px" valign="top">
                                <asp:ListBox ID="lstWhiteList" runat="server" Height="200px" SelectionMode="Multiple"
                                    Width="100px"></asp:ListBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" style="width: 100px">
                                <asp:Button ID="btnWhiteAdd" runat="server" OnClick="btnWhiteAdd_Click" Text="增加" />
                            </td>
                            <td align="center" style="width: 100px">
                                <asp:Button ID="btnWhiteRemove" runat="server" OnClick="btnWhiteRemove_Click" Text="移除" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 100px; height: 234px" valign="top">
                    <table>
                        <tr>
                            <td colspan="2" style="height: 137px" valign="top">
                                <asp:ListBox ID="lstBlackList" runat="server" Height="200px" SelectionMode="Multiple"
                                    Width="100px"></asp:ListBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" style="width: 100px; height: 26px;">
                                <asp:Button ID="btnBlackAdd" runat="server" OnClick="btnBlackAdd_Click" Text="增加" />
                            </td>
                            <td align="center" style="width: 100px; height: 26px;">
                                <asp:Button ID="btnBlackRemove" runat="server" OnClick="btnBlackRemove_Click" Text="移除" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 9px">
                    <asp:Button ID="btnShow" runat="server" OnClick="btnShow_Click" Text="条件预览" />
                    <asp:Button ID="btnSave" runat="server" Text="确定用户组人员分配" OnClick="btnSave_Click" />
                    <asp:Button ID="btnReturn" runat="server" Text="返回计划列表" OnClick="btnReturn_Click" />
                </td>
            </tr>
            <tr>
                <asp:GridView ID="gvUser" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    DataKeyNames="id" Width="100%" OnRowCommand="gvUser_RowCommand">
                    <PagerSettings Visible="False" />
                    <Columns>
                        <%-- <asp:BoundField DataField="organizationid" HeaderText="所属"  />--%>
                        <asp:TemplateField HeaderText="所属">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# GetUserPos(Eval("id").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="loginname" HeaderText="登陆名" />
                        <asp:BoundField DataField="usercname" HeaderText="中文名" />
                        <asp:BoundField DataField="userename" HeaderText="英文名" />
                        <asp:BoundField DataField="sex" HeaderText="性别" />
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="ImgbtnCancel" runat="server" CommandName="Remove" Text="加入黑名单" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <EmptyDataTemplate>
                    </EmptyDataTemplate>
                    <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <SelectedRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:GridView>
                <div class="page_bg_left">
                 <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager" PageSize="10"
                                FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;" 
                                LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页"  ShowCustomInfoSection="Left" CustomInfoTextAlign="Left"
                                ShowInputBox="Always">
                            </cc1:AspNetPager>
                </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
