<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Organization_AddUserList.aspx.cs"
    Inherits="RM.Web.RMBase.SysOrg.Organization_AddUserList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="/UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<%@ Register Src="/UserControl/LoadButton.ascx" TagName="LoadButton" TagPrefix="uc2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <link href="../../Themes/Scripts/artDialog/skins/opera.css" rel="stylesheet" type="text/css" />
    <script src="../../Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="../../Themes/Scripts/artDialog/iframeTools.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="btnbarcontetn">
        <div style="float: left;">
            <select id="Searchwhere" class="Searchwhere" runat="server">
            </select>
            <input type="text" id="txt_Search" class="txtSearch SearchImg" runat="server" style="width: 100px;" />
            <asp:LinkButton ID="lbtSearch" runat="server" class="button green" OnClick="lbtSearch_Click"><span class="icon-botton"
            style="background: url('/Themes/images/Search.png') no-repeat scroll 0px 4px;">
        </span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("GetButton")%></asp:LinkButton>
        </div>
        <div style="text-align: right">
            <uc2:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div>
    <div class="div-body">
        <table id="table1" class="grid" singleselect="true">
            <thead>
                <tr>
                    <th style="width: 20px; text-align: left;">
                        <label id="checkAllOff" onclick="CheckAllLine()" data="1" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Quanxuan") %>">
                            &nbsp;</label>
                    </th>
                    <td style="width: 60px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserInfo_Form_no")%>
                    </td>
                    <td style="width: 80px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Name")%>
                    </td>
                    <td style="width: 100px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Accout")%>
                    </td>
                    <td style="width: 50px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Sex")%>
                    </td>
                    <td style="width: 200px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Title")%>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserGroup")%>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("user_prov")%>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("user_city")%>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("user_area")%>
                    </td>
                    <td style="width: 50px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_State")%>
                    </td>
                    <td style="width: 250px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Startingdate")%>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Description")%>
                    </td>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rp_Item" runat="server" OnItemDataBound="rp_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td style="width: 20px; text-align: left;">
                                <input type="checkbox" value="<%#Eval("User_ID")%>" keyname="<%#Eval("User_Name")%>"
                                    name="checkbox" />
                            </td>
                            <td style="width: 60px; text-align: center;">
                                <%#Eval("User_Code")%>
                            </td>
                            <td style="width: 80px; text-align: center;">
                                <a href="/Training/UserArchives.aspx?id=<%#Eval("User_ID")%>" target="_blank" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserInfo_lf")%>">
                                    <%#Eval("User_Name")%></a>
                            </td>
                            <td style="width: 100px; text-align: center;">
                                <%#Eval("User_Account")%>
                            </td>
                            <td style="width: 50px; text-align: center;">
                                <asp:Label ID="lblUser_Sex" runat="server" Text='<%#Eval("User_Sex")%>'></asp:Label>
                            </td>
                            <td style="width: 200px; text-align: center;">
                                <%#Eval("Title")%>
                            </td>
                            <td style="width: 180px; text-align: center;">
                                <%#Eval("UserGroup_Name")%>
                            </td>
                            <td style="width: 50px; text-align: center;">
                                <%#Eval("province")%>
                            </td>
                            <td style="width: 50px; text-align: center;">
                                <%#Eval("city")%>
                            </td>
                            <td style="width: 50px; text-align: center;">
                                <%#Eval("area")%>
                            </td>
                            <td style="width: 50px; text-align: center;">
                                <asp:Label ID="lblDeleteMark" runat="server" Text='<%#Eval("DeleteMark")%>'></asp:Label>
                            </td>
                            <td style="width: 250px; text-align: center;">
                                <%#Eval("Start_date")%>--<%#Eval("End_date")%>
                            </td>
                            <td>
                                <%#Eval("User_Remark")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <% if (rp_Item != null)
                           {
                               if (rp_Item.Items.Count == 0)
                               {
                                   Response.Write("<tr><td colspan='8' style='color:red;text-align:center'>" + RM.Common.DotNetConfig.LanguageHelper.GetKey("Null") + "</td></tr>");
                               }
                           } %>
                    </FooterTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
    <uc1:PageControl ID="PageControl1" runat="server" />
    </form>
    <script type="text/javascript">
        //分配成员
        function allotMember() {
            var key = CheckboxValue();
            getAjax("Organization_AddUserGetOrgUser.ashx", "action=AddUser&&key=" + key + "&&oid=" + QueryString("oid"), function (rs) {
                if (rs == "1") {
                    showFaceMsg("操作成功");
                    window.parent.GetOrgUser();
                }
            });
        }
    </script>
</body>
</html>
