📄 companylist.aspx
字号:
<%@ Page language="c#" Codebehind="CompanyList.aspx.cs" AutoEventWireup="false" Inherits="HTMS.Web.CompanySysMange.PublicPage.CompanyList" %>
<%@ Register TagPrefix="cc1" Namespace="HTMS.Web.AspNetPager" Assembly="HTMS.Web.AspNetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>CompanyList</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="../../WebStyle/Style/admin.css" type="text/css" rel="stylesheet">
<script language="javascript">
function CheckValue()
{
if(document.Form1.myvalue.value=="")
{
window.alert("∵错误信息列表\n请选择公司");
return false;
}
else
{
window.close();
}
}
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<div style="OVERFLOW: auto; WIDTH: 100%; POSITION: absolute; TOP: 2px; HEIGHT: 95%; TEXT-ALIGN: center">
<DIV align="left"><img src="../../WebStyle/Images/smiley.gif"> >>>
业务联系公司列表</DIV>
<asp:DataGrid id="DataGrid1" runat="server" AutoGenerateColumns="False" BackColor="White" Width="100%"
BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellSpacing="1" CellPadding="2"
Height="152px" ForeColor="DodgerBlue">
<FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BorderColor="Green" BackColor="#009999"></SelectedItemStyle>
<ItemStyle HorizontalAlign="Center" ForeColor="#003399" Width="80px" VerticalAlign="Middle"
BackColor="White"></ItemStyle>
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="#CCCCFF" VerticalAlign="Middle"
BackColor="#003399"></HeaderStyle>
<Columns>
<asp:BoundColumn Visible="False" DataField="CompanyID" HeaderText="CompanyID"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="编号">
<ItemStyle Width="36px"></ItemStyle>
<ItemTemplate>
<FONT face="宋体">
<asp:Label id=Label1 runat="server" Text='<%# this.DataGrid1.Items.Count+1 %>'>
</asp:Label></FONT>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="CompanyName" HeaderText="公司名称">
<ItemStyle Width="90px"></ItemStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="公司描述">
<ItemTemplate>
<asp:Label runat="server" Text='<%# System.Web.HttpUtility.HtmlEncode(System.Web.HttpUtility.UrlDecode(DataBinder.Eval(Container, "DataItem.DesText").ToString())) %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="选择">
<ItemStyle Width="36px"></ItemStyle>
<ItemTemplate>
<asp:LinkButton id="LinkButton1" runat="server" ForeColor="#0066ff" CommandName="select">选择</asp:LinkButton>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
<cc1:aspnetpager id="AspNetPager1" runat="server" PageSize="8" AlwaysShow="True" ChinesePageIndex="True"
ShowSelectBox="Always" ShowInputBox="Always" ShowCustomInfoSection="Left"></cc1:aspnetpager>
<hr width="100%">
<INPUT type="button" value="确 定" onclick="CheckValue();"> <INPUT type="button" value="刷 新" id="Button1" name="Button1" runat="server">
<INPUT id="myvalue" type="text" runat="server"><hr size="1" width="100%" color="#d0a0">
</div>
</form>
<script language="javascript">
if(document.Form1.myvalue.value!=null && document.Form1.myvalue.value!=="")
{
top.window.returnValue=document.Form1.myvalue.value;
}
</script>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -