<%@ page language="C#" autoeventwireup="true" inherits="Plan_AssignUser, App_Web_vzflj4p3" 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>
     <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link href="../css/layerDiv.css" rel="stylesheet" type="text/css" />
        <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
          <script type="text/javascript" src="../Js/jquery.js"></script>
    <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;
        }
        .style1
        {
            width: 94px;
        }
        .style2
        {
            width: 51px;
        }
        .style3
        {
            width: 30px;
        }
    </style>
    
</head>
<body>
<div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt;color:Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
       <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <%--<div class="box">
        选择目标培训对象（必修）
    </div>--%>
    <div id="LayerAll" runat="server">
    </div>
    <div id="LayerShow" runat="server" style="width: 600px; top: 1%; overflow: auto;
        padding-left: 0px; padding-right: 0px; padding-top: 0px; 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="3" height="340px">
                        <tr>
                            <td>
                                <div style="overflow: auto; height: 340px;">
                                    <table cellspacing="0" cellpadding="3" 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="5" valign="top" class="style3">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <table border="0" cellpadding="5" cellspacing="0" bgcolor="white">
                                <tr>
                                    <td class="tree_box">
                                        <asp:Label ID="lblPosition" runat="server" Font-Bold="True" ForeColor="#990000">选择岗位</asp:Label>
&nbsp;<asp:Panel ID="PanelTree" runat="server" Height="360px" ScrollBars="Vertical" Width="240px">
                                        <asp:TreeView ID="TreeView1" runat="server" ImageSet="News" Width="100%" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"
                                            OnTreeNodeCheckChanged="TreeView1_TreeNodeCheckChanged" ShowCheckBoxes="Leaf">
                                        </asp:TreeView>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <%--<tr>
                                    <td style="width: 100px">
                                    </td>
                                </tr>--%>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td width="445" style="width: 100px">
                                        <asp:Label ID="lblPosition0" runat="server" 
                        Font-Bold="True" ForeColor="#990000">选择特殊人员</asp:Label>
                            </td>
                <td width="100" style="width: 100px">
                    &nbsp;</td>
            </tr>
            <tr>
                <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 width="100px">
                        <tr>
                            <td colspan="2" style="height: 137px" valign="top">
                                <asp:ListBox ID="lstWhiteList" runat="server" Height="200px" SelectionMode="Multiple"
                                    Width="150px"></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 width="100px">
                        <tr>
                            <td colspan="2" style="height: 137px" valign="top">
                                <asp:ListBox ID="lstBlackList" runat="server" Height="200px" SelectionMode="Multiple"
                                    Width="150px"></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="确定用户组人员分配"  SkinID="big_btn" OnClick="btnSave_Click" />
                    <asp:Button ID="btnReturn" runat="server" Text="返回计划列表" SkinID="big_btn"
                        OnClick="btnReturn_Click" Visible="False" />
                </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"
                        FirstPageText="首页  " HorizontalAlign="Right" InputBoxStyle="width:20px;" LastPageText="尾页"
                        NextPageText="  下一页  " NumericButtonTextFormatString="  {0}" PrevPageText="上一页"
                        ShowCustomInfoSection="Left" ShowInputBox="Always" Width="96%" Visible="false">
                    </cc1:AspNetPager>
                </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
           <script type="text/javascript">
           $("#loading").fadeOut()
</script>
</body>
</html>
