<%@ page language="C#" autoeventwireup="true" inherits="Authority_UserGroupAssign, App_Web_25sgrbhm" theme="Themes" stylesheettheme="Themes" %>
<%@ Register Src="../UserControls/Loading.ascx" TagName="Loading" TagPrefix="uc2" %>
<%@ Register Src="../UserControls/ChooseUserAdvance.ascx" TagName="ChooseUserAdvance" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<%@ Register src="../UserControls/ChooseUser.ascx" tagname="ChooseUser" 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 id="Head1" runat="server">
    <title>用户分配</title>
          <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>
    <script>
    // 点击复选框时触发事件
function postBackByObject()
{
   var o = window.event.srcElement;
   if (o.tagName == "INPUT" && o.type == "checkbox")
   {
      __doPostBack("","");
   } 
} 
    </script>
      <style type="text/css">
        #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;
        }
        #right
        {
            position: absolute;
            width: 80%;
            height: 30%;
            z-index: 2;
            left: 10%;
            top: 5%;
        }
        .t1
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t2
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t1 .m
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            line-height: 18px;
            font-size: 12px;
            font-weight: normal;
        }
        .t2
        {
            padding-bottom: 0px;
            line-height: 18px;
            border-right-width: 0px;
            padding-left: 0px;
            padding-right: 0px;
            margin-bottom: 2px;
            border-top-width: 0px;
            border-bottom-width: 0px;
            color: #5b9400;
            border-left-width: 0px;
            padding-top: 0px;
        }
        .t3
        {
            z-index: 6553;
            position: relative;
            line-height: 30px;
            padding-left: 55px;
            background: url(http://img.baidu.com/hi/img/index/iconhi.gif) no-repeat;
            height: 35px;
            font-size: 14px;
            font-weight: bold;
        }
        .rcb
        {
            height: 5px;
            clear: both;
        }
        .rct .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .l
        {
            float: left;
            left: -1px;
        }
        .rcb .l
        {
            float: left;
            left: -1px;
        }
        .rct .r
        {
            float: right;
            right: -1px;
        }
        .rcb .r
        {
            float: right;
            right: -1px;
        }
        .rct .l
        {
            top: -1px;
        }
        .rct .r
        {
            top: -1px;
        }
        .rcb .l
        {
            top: 1px;
        }
        .rcb .r
        {
            top: 1px;
        }
        .b2
        {
            border-bottom: #ccc 1px solid;
            border-left: #ccc 1px solid;
            margin-bottom: 10px;
            background: #fff;
            border-top: #ccc 1px solid;
            border-right: #ccc 1px solid;
        }
        .b2 .cnt
        {
            padding-bottom: 10px;
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 10px;
        }
        .tl1
        {
            background-position: left top;
        }
        .tr1
        {
            background-position: right top;
        }
        .bl1
        {
            background-position: left bottom;
        }
        .br1
        {
            background-position: right bottom;
        }
        .lginfo
        {
            line-height: 22px;
            clear: both;
        }
        .fan
        {
            margin-top: 10px;
        }
        .fan TD
        {
            padding-bottom: 2px;
            padding-left: 8px;
            padding-right: 8px;
            color: #666;
            padding-top: 2px;
        }
        .f14
        {
            line-height: 24px;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
  <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>
 <div id="LayerAll" runat="server">
    </div>
    <div id="right" algin="center" style="display: none" runat="server">
        <div id="m_onlineuser" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14">
                <div style="color: #666" align="center">
                    <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
                        <tr>
                            <td align="left">
                             <uc1:ChooseUserAdvance id="ChooseUserWhite" runat="server"></uc1:ChooseUserAdvance>
                             <uc1:ChooseUserAdvance id="ChooseUserBlack" runat="server"></uc1:ChooseUserAdvance>
                            </td>
                        </tr>
                    
                    </table>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
        <!--CMSLOADOK--->
    </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
 
       <div class="right_postion_bg" style="background-color:White;">
       <span class="s_potion_font"><img src="../Images/homen.gif" class="pic_style" />   当前操作用户组：<asp:Label ID="lblUserGroupName" runat="server"></asp:Label></span>
       </div>
  
        <div id="divMain" style="background-color:White;" runat="server" class="box">
     <table style="width: 100%;">
            <tr>
                <td rowspan="4" valign="top" style="width: 99px; border:solid 1px white; ">
                   <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
                                <tr>
                                    <td class="tree_box" style="width:170px;" >
                                        <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="100px">
                    白名单：</td>
                <td width="100px">
                    黑名单：</td>
            </tr>
            <tr>
                <td style="width: 100px; height: 234px" valign="top">
                      
                 
                            <table>
                        <tr>
                            <td style="height: 137px" valign="top">
                                <asp:ListBox ID="lstWhiteList" runat="server" Height="200px" SelectionMode="Multiple"
                                    Width="300px"></asp:ListBox></td>
                        </tr>
                        <tr>
                            <td  class="btn_position" style="text-align:center">
                                <asp:Button ID="btnWhiteAdd" runat="server" OnClick="btnWhiteAdd_Click" 
                                    Text="添加" />
                                <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 style="height: 137px" valign="top">
                                <asp:ListBox ID="lstBlackList" runat="server" Height="200px" SelectionMode="Multiple"
                                    Width="300px"></asp:ListBox></td>
                        </tr>
                        <tr>
                            <td  class="btn_position" style="text-align:center">
                                <asp:Button ID="btnBlackAdd" runat="server" OnClick="btnBlackAdd_Click" 
                                    Text="添加" />
                                <asp:Button ID="btnBlackRemove" runat="server" OnClick="btnBlackRemove_Click" 
                                    Text="移除" />
                             </td>
                        </tr>
                    </table>
                        </td>
            </tr>
         <tr>
             <td colspan="2" style="height: 9px; text-align:center;">
        <asp:Button ID="btnShow" runat="server"  OnClick="btnShow_Click" SkinID="big_btn"
                     Text="预览分配人员" />
        <asp:Button ID="btnSave" runat="server" Text="确定保存" OnClick="btnSave_Click" /></td>
         </tr>
         <tr>
             <td colspan="2" style="height: 13px">
     
        <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:BoundField DataField="loginname" HeaderText="登陆名"  />
                <asp:BoundField DataField="usercname" HeaderText="中文名"  />
                <asp:BoundField DataField="userename" HeaderText="英文名"  />
                <asp:BoundField DataField="sex" HeaderText="性别" />
                <asp:TemplateField HeaderText="加入黑名单">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImgbtnCancel" runat="server" CommandArgument='<%# Eval("usercname") %>' CommandName="Remove" ImageUrl="../images/9.gif" />                    </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>
           <%-- <tr>
                <td colspan="4" style="height: 17px">                </td>
            </tr>--%>
        </table>
    </div>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
        ...
        </ProgressTemplate>
        </asp:UpdateProgress>
    
    
     
     
    </form>
            <script type="text/javascript">
                $("#loading").fadeOut()
</script>
</body>
</html>
