ListView.aspx
资源名称:OA.rar [点击查看]
上传用户:xuming1973
上传日期:2014-02-27
资源大小:17511k
文件大小:7k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
C#
- <%@ Import namespace="System"%>
- <%@ Import namespace="System.Data" %>
- <%@ Page language="c#" Codebehind="ListView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Position.ListView" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <TITLE>ListView</TITLE>
- <META http-equiv="Content-Type" content="text/html; charset=gb2312">
- <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
- <meta content="C#" name="CODE_LANGUAGE">
- <meta content="JavaScript" name="vs_defaultClientScript">
- <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
- <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
- <script language="javascript">
- function SelectItem()
- {
- var i = 0;
- var e;
- for( i = 0 ; i < ListView.elements.length ; i ++ )
- {
- e = ListView.elements[ i ];
- if( e.type == "checkbox" ) e.checked = !e.checked;
- }
- }
- // 高亮背景
- function high( which )
- {
- which.style.background = "#C0D9E6";
- which.style.font.color = "red";
- }
- // 取消背景高亮
- function low( which )
- {
- which.style.background = "#FFFFFF";
- which.style.font.color = "black";
- }
- </script>
- <script language="javascript">
- var ball1 = new Image();
- var ball2 = new Image();
- ball1.src = 'images/ball1.gif';
- ball2.src = 'images/ball2.gif';
- var active = new Image();
- var nonactive = new Image();
- active.src = '../../images/maillistbutton2.gif';
- nonactive.src = '../../images/maillistbutton1.gif';
- function onMouseOver(img)
- {
- document.images[img].src = ball2.src;
- }
- function onMouseOut(img)
- {
- document.images[img].src = ball1.src;
- }
- function onOverBar(bar)
- {
- if (bar != null) {
- bar.style.backgroundImage = "url("+active.src+")";
- }
- }
- function onOutBar(bar)
- {
- if (bar != null) {
- bar.style.backgroundImage = "url("+nonactive.src+")";
- }
- }
- function selectAll(){
- var len=document.MailList.elements.length;
- var i;
- for (i=0;i<len;i++){
- if (document.MailList.elements[i].type=="checkbox"){
- document.MailList.elements[i].checked=true;
- }
- }
- }
- function unSelectAll(){
- var len=document.MailList.elements.length;
- var i;
- for (i=0;i<len;i++){
- if (document.MailList.elements[i].type=="checkbox"){
- document.MailList.elements[i].checked=false;
- }
- }
- }
- </script>
- </HEAD>
- <body leftMargin="0" topMargin="0" MS_POSITIONING="GridLayout">
- <form id="ListView" runat="server">
- <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TR>
- <TD>
- <TABLE class="gbtext" id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TR>
- <TD align="center" width="90"
- background='<% Response.Write(DisplayType==1?"../../images/maillistbutton1.gif":"../../images/maillistbutton2.gif"); %>' height="24"><asp:linkbutton id="lbOnline" runat="server" CssClass="Newbutton">在职员工</asp:linkbutton></TD>
- <TD align="center" width="90" background='<% Response.Write(DisplayType==0?"../../images/maillistbutton1.gif":"../../images/maillistbutton2.gif"); %>' height="24"><asp:linkbutton id="lbOffLine" runat="server" CssClass="Newbutton">离职员工</asp:linkbutton></TD>
- <TD align="right">
- <asp:CheckBox id="cbRemind" runat="server" Font-Size="X-Small" Text="提醒公司全体员工" Width="160px" Height="16px"></asp:CheckBox>
- <asp:Button id="cmdUpdateCaste" runat="server" CssClass="redbuttoncss" Text="修改职级"></asp:Button>
- <asp:Button id="cmdNewStaff" runat="server" Text="新员工" CssClass="redbuttoncss"></asp:Button>
- <asp:Button id="cmdPositionOperate" runat="server" Text="职位操作" CssClass="redbuttoncss"></asp:Button>
- <asp:Button id="cmdSetRight" runat="server" Text="权限管理" CssClass="redbuttoncss"></asp:Button>
- <asp:Button id="cmdOnPosition" runat="server" Text="复职" CssClass="redbuttoncss"></asp:Button>
- <asp:Button id="cmdOffPosition" runat="server" Text="离职" CssClass="redbuttoncss"></asp:Button>
- <asp:Button id="cmdChangePosition" runat="server" Text="调职" CssClass="redbuttoncss"></asp:Button> </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <TR>
- <TD>
- <asp:datagrid id="dbStaffList" runat="server" Width="100%" CellPadding="3" BackColor="White" BorderStyle="None"
- BorderColor="#93BEE2" BorderWidth="1px" PageSize="15" AutoGenerateColumns="False" AllowPaging="True"
- DataKeyField="Staff_ID" OnPageIndexChanged="DataGrid_PageChanged">
- <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
- <AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
- <ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White"></ItemStyle>
- <HeaderStyle Font-Size="X-Small" Font-Bold="True" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
- <FooterStyle Font-Size="X-Small" HorizontalAlign="Right" ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
- <Columns>
- <asp:TemplateColumn HeaderText="ID">
- <HeaderStyle Width="20px"></HeaderStyle>
- <ItemTemplate>
- <asp:CheckBox id="Staff_ID" runat="server"></asp:CheckBox>
- </ItemTemplate>
- </asp:TemplateColumn>
- <asp:HyperLinkColumn Text="真实姓名" DataNavigateUrlField="staff_id" DataNavigateUrlFormatString="../Position/NewStaff.aspx?StaffID={0}&ReturnPage=0"
- DataTextField="RealName" HeaderText="真实姓名">
- <HeaderStyle Width="100px"></HeaderStyle>
- </asp:HyperLinkColumn>
- <asp:BoundColumn DataField="Mobile" HeaderText="手机">
- <HeaderStyle Width="60px"></HeaderStyle>
- </asp:BoundColumn>
- <asp:BoundColumn DataField="Age" HeaderText="年龄">
- <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
- <ItemStyle HorizontalAlign="Center"></ItemStyle>
- </asp:BoundColumn>
- <asp:BoundColumn DataField="SexName" HeaderText="性别">
- <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
- <ItemStyle HorizontalAlign="Center"></ItemStyle>
- </asp:BoundColumn>
- <asp:BoundColumn DataField="Email" HeaderText="EMAIL">
- <HeaderStyle Width="100px"></HeaderStyle>
- </asp:BoundColumn>
- <asp:BoundColumn DataField="Position_Name" HeaderText="所在职位">
- <HeaderStyle Width="150px"></HeaderStyle>
- </asp:BoundColumn>
- <asp:BoundColumn DataField="RQ" HeaderText="注册日期">
- <HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
- <ItemStyle HorizontalAlign="Right"></ItemStyle>
- </asp:BoundColumn>
- </Columns>
- <PagerStyle Font-Size="X-Small" HorizontalAlign="Right" ForeColor="#003399" BackColor="#E8F4FF"
- Mode="NumericPages"></PagerStyle>
- </asp:datagrid></TD>
- </TR>
- <TR>
- <TD></TD>
- </TR>
- </TABLE>
-
- </form>
- </body>
- </HTML>