employee_select.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:3k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="employee_select.aspx.cs" Inherits="web_personnel_department_department_select" %>
- <!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 language="javascript" type="text/javascript">
- function setEmployee()
- {
- var options = document.getElementById("ListSelected").options;
- var value = "";
- var text = "";
- for(var i=0; i<options.length; i++)
- {
- value = value + options[i].value + ";";
- text = text + options[i].text + ";";
- }
- window.parent.opener.document.all.TxtEmployees.innerText = text.substring(0, text.length-1);
- window.parent.opener.document.all.Employee_ids.value = value.substring(0, value.length-1);
- window.parent.close();
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <center>
- <table style="width: 550px; position: relative">
- <tr>
- <td rowspan="3">
- <asp:ListBox ID="ListEmployee" runat="server" Height="500px" Width="230px" style="position: relative" SelectionMode="Multiple"></asp:ListBox>
- </td>
- <td style="width: 86px">
- </td>
- <td rowspan="3">
- <asp:ListBox ID="ListSelected" runat="server" Height="500px" Width="230px" style="position: relative" SelectionMode="Multiple"></asp:ListBox></td>
- </tr>
- <tr>
- <td style="width: 86px" align="center">
- <asp:Button ID="BtnAdd" runat="server" Style="left: 0px; position: relative" Text="添加-->" Width="75px" OnClick="BtnAdd_Click" /><br />
- <br />
- <asp:Button ID="BtnDelete" runat="server" Style="left: 0px; position: relative" Text="刪除<--" Width="75px" OnClick="BtnDelete_Click" /><br />
- <br />
- <asp:Button ID="BtnAddAll" runat="server" Style="left: 0px; position: relative;" Text="全部添加" Width="75px" OnClick="BtnAddAll_Click" /><br />
- <br />
- <asp:Button ID="BtnDeleteAll" runat="server" Style="position: relative" Text="全部刪除" Width="75px" OnClick="BtnDeleteAll_Click" /></td>
- </tr>
- <tr>
- <td style="height: 21px; width: 86px;">
- </td>
- </tr>
- </table>
-
- </center>
- <center>
- <asp:Button ID="BtnOk" runat="server" Style="position: relative" Text="已選好, 請點這里"
- Width="130px" OnClientClick="setEmployee()" />
- <asp:Button ID="BtnCancel" runat="server" Style="left: 0px; position: relative" Text="取消" OnClick="BtnCancel_Click" /></center>
- </div>
- </form>
- </body>
- </html>