employeeManage.aspx
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="employeeManage.aspx.cs" Inherits="employeeManage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>员工信息管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/style.css" type="text/css">
<script language="javascript">
function openScript(url,name, width, height){
var Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
</script>
</head>
<body bgcolor="#FFCC99" text="#000000">
<form runat=server>
<table align=center width=768 cellspacing=0 cellpadding=0>
<tr>
<td align=center bgcolor="#A0A4AC" style="width: 81px; height: 23px">员工查询:</td>
<td style="height: 23px">
所在部门: <asp:DropDownList ID="DepartmentId" runat="server"
DataTextField="departmentName" DataValueField="departmentId">
</asp:DropDownList>
<asp:DropDownList ID="searchZiduan" runat="server">
<asp:ListItem Value="0">请选择查询方式</asp:ListItem>
<asp:ListItem Value="employeeId">按员工编号</asp:ListItem>
<asp:ListItem Value="name">按员工姓名</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="KeyWord" runat="server" Width="112px"></asp:TextBox>
<asp:Button ID="Btn_Query" runat="server" Text="查询 " OnClick="Btn_Query_Click" /></td>
</tr>
</table>
<asp:GridView ID="GridView1" runat="server" DataSourceID="EmployeeDataSource" AllowPaging="True" AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" DataKeyNames="employeeId" Width="628px" OnPageIndexChanging="GridView1_PageIndexChanging">
<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
<Columns>
<asp:BoundField DataField="employeeId" HeaderText="员工编号" ReadOnly="True" SortExpression="employeeId" />
<asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name" />
<asp:BoundField DataField="nation" HeaderText="民族" SortExpression="nation" />
<asp:BoundField DataField="birthday" HeaderText="生日" SortExpression="birthday" />
<asp:BoundField DataField="departmentName" HeaderText="所在部门" SortExpression="departmentName" />
<asp:BoundField DataField="positionName" HeaderText="职称" SortExpression="positionName" />
<asp:TemplateField HeaderText="操作">
<ItemTemplate>
<a href='employeeModify.aspx?employeeId=<%# Eval("employeeId") %>'><img src="images/edit.gif" width=12px height=12px border=0px>详细</a>
<a href='employeeDel.aspx?employeeId=<%# Eval("employeeId") %>'><img src="images/delete.gif" width=12px height=12px border=0px />删除</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="EmployeeDataSource" runat="server" ConnectionString="Data Source=.;Initial Catalog=SalaryData;Integrated Security=True" ProviderName="System.Data.SqlClient" SelectCommand="SELECT [employeeId], [name], [cardNumber], [nation], [birthday], [departmentName], [positionName] FROM [employeeInfoView]"></asp:SqlDataSource>
后面还有 5 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。