温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:无忧劳保库存系统源码
当前文件:
Labor/departmentIDSelect.aspx,打开代码结构图
Labor/departmentIDSelect.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="departmentIDSelect.aspx.cs" Inherits="departmentIDSelect" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>部门信息选择</title> 8
<link href="Image/Main.css" rel="stylesheet" type="text/css" /> 9
<%-- //屏蔽右键菜单 10
--%> <script type="text/javascript"> 11
function document.oncontextmenu() 12
{ 13
return false; 14
} 15
</script> 16
</head> 17
<body> 18
<form id="form1" runat="server"> 19
<div style="text-align: left"> 20
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" 21
BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 22
CellSpacing="1" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging" 23
OnRowCommand="GridView1_RowCommand" PageSize="5"> 24
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" /> 25
<RowStyle BackColor="#DEDFDE" ForeColor="Black" /> 26
<Columns> 27
<asp:BoundField DataField="DepartmentID" HeaderText="部门编号" InsertVisible="False" 28
ReadOnly="True" SortExpression="DepartmentID" /> 29
<asp:BoundField DataField="DepartmentName" HeaderText="部门名字" SortExpression="DepartmentName" /> 30
<asp:ButtonField ButtonType="Image" CommandName="select" HeaderText="请选择" ImageUrl="~/Image/option.gif" 31
Text="选择" /> 32
</Columns> 33
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" /> 34
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" /> 35
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" /> 36
</asp:GridView> 37
<br /> 38
<asp:Label ID="Label1" runat="server"></asp:Label> 39
<input id="hiddenfm" runat="server" type="hidden" /></div> 40
</form> 41
</body> 42
</html> 43




}
