📄 custometype.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="custometype.aspx.cs" Inherits="custometype" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!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 runat="server">
<title>无标题页</title>
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
</head>
<body background="image/2.jpg">
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView" runat="server" AutoGenerateColumns="False" CellPadding="3" GridLines="None" Height="1px" Style="left: 71px; position: relative;
top: 3px; text-align: center;" Width="520px" OnRowEditing="GridView_RowEditing" OnRowDeleting="GridView_RowDeleting" AllowPaging="True" OnPageIndexChanging="GridView_PageIndexChanging" PageSize="3" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" >
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<Columns>
<asp:BoundField HeaderText="客户类型编号" DataField="customertpyecode" />
<asp:BoundField HeaderText="客户类型姓名" DataField="customertypename" />
<asp:CommandField ButtonType="Button" HeaderText="更新" ShowEditButton="True" />
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
<asp:TemplateField HeaderText="添加客户">
<ItemTemplate>
<a href="Addcustomer.aspx?type=<%#DataBinder.Eval(Container.DataItem,"customertpyecode") %>"> 添加</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<RowStyle BackColor="#DEDFDE" ForeColor="Black" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
</asp:GridView>
<br />
<p align="left">
<strong><font color="#006666" face="楷体" size="4">
添加客户类型:</font></strong></p>
<table style="left: 188px; width:40%; position: relative; top: -15px; height: 148px" >
<tr>
<td align="right">
<asp:Label ID="Label1" runat="server" Text="客户类型编号:"></asp:Label></td>
<td align="left" style="width: 141px" >
<asp:TextBox ID="ctypecode" runat="server" Width="66px"></asp:TextBox></td>
</tr>
<tr>
<td align="right" style="height: 47px">
<asp:Label ID="Label2" runat="server" Text="客户类型名称:"></asp:Label></td>
<td align="left" style="width: 141px; height: 47px">
<asp:TextBox ID="ctypename" runat="server" Width="115px"></asp:TextBox></td>
</tr>
<tr>
<td align="center" >
<asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" /></td></tr>
</table>
<p align="left">
<strong><font color="#006666" face="楷体" size="4">
查询客户类型: </font></strong></p>
<table style="left: 175px; width: 38%; position: relative; top: -53px; height: 34px;">
<tr>
<td style="height: 28px">
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2"
DataTextField="customertpyecode" DataValueField="customertpyecode" style="left: 6px; position: relative; top: 0px" >
</asp:DropDownList>
</td>
<td style="height: 28px"> <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Style="left: 22px;
position: relative; top: 0px" Text="Sercher" />
</td></tr>
</table>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:SQLCONNECTIONSTRING %>"
SelectCommand="SELECT [customertpyecode] FROM [customertype]"></asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="3" GridLines="Horizontal" Style="left: 184px; position: relative;
top: -59px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px">
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<Columns>
<asp:BoundField DataField="customertypecode" HeaderText="客户类型编号" />
<asp:BoundField DataField="customercode" HeaderText="客户编号" />
<asp:BoundField DataField="customername" HeaderText="客户姓名" />
<asp:BoundField DataField="relationcode" HeaderText="负责人编号" />
</Columns>
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -