📄 partsshow.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PartsShow.aspx.cs" Inherits="CRM.WEB.Bussiness.UserControls.PartsShow" %>
<%@ Register Assembly="PowerEasy.Controls" Namespace="PowerEasy.Controls" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>商品选择</title>
<link href="../../Css/repeater.css" type="text/css" rel="stylesheet" />
<link href="../../Css/Common.css" type="text/css" rel="stylesheet" />
<link href="../../Css/grid.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
function ReturnValue(productId,productName)
{
parent.AddProduct(productId,productName);
}
function CheckKeyword()
{
var dropSearchField = document.getElementById('DropSearchField');
var txtKeyword = document.getElementById('TxtKeyword').value;
if(dropSearchField.selectedIndex==0)
{
alert("请选择要查找的字段!");
return false;
}else if(txtKeyword =='关键字')
{
alert("请输入搜索的关键字!");
return false;
}
return true;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="dHTMLADPreview" style="z-index: 1000; left: 0px; visibility: hidden; width: 10px;
position: absolute; top: 0px; height: 10px">
</div>
<table width="100%" border="0" style="text-align: center" cellpadding="2" cellspacing="0"
class="border">
<tr class="title">
<td align="right" style="width: 50%">
查找配件:<asp:DropDownList ID="DropSearchField" runat="server">
<asp:ListItem Value="">请选择</asp:ListItem>
<asp:ListItem Value="b_partsName">配件名称</asp:ListItem>
<asp:ListItem Value="b_product">产品名称</asp:ListItem>
<asp:ListItem Value="b_partsCode">配件编号</asp:ListItem>
<asp:ListItem Value="b_partstType">配件类型</asp:ListItem>
<asp:ListItem Value="b_partsSupplier">供应商</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="TxtKeyword" runat="server" Text="关键字" onfocus="select()"></asp:TextBox>
<asp:Button ID="btnsearch" runat="server" OnClick="BtnSearch_Click" Text="搜 索" OnClientClick="return CheckKeyword()" CssClass="button" Width="60px" /></td>
</tr>
</table>
<div style="width:100%; height:360px">
<cc1:ExtendedGridView ID="EgvPartsList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CheckBoxFieldHeaderWidth="3%" DataKeyNames="b_partsId"
IsHoldState="True" ItemName="配件" ItemUnit="个" SerialText="" PageSize="20" Width="100%" OnRowDataBound="EgvPartsList_RowDataBound">
<Columns>
<asp:BoundField DataField="b_partsNo" HeaderText="编号" HtmlEncode="False" SortExpression="b_productNo" />
<asp:TemplateField HeaderText="配件名称" SortExpression="b_partsName">
<itemstyle horizontalalign="Left" />
<itemtemplate>
<div class="linkType"><asp:Label id="LblProductName" runat="server" Text='<%# Eval("b_partsName") %>'></asp:Label></div>
</itemtemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="价格" SortExpression="Price">
<itemstyle horizontalalign="Right" />
<itemtemplate>
<asp:Label ID="LblProductPrice" runat="server" Text='<%# Eval("b_sellPrice") %>'></asp:Label>
</itemtemplate>
</asp:TemplateField>
</Columns>
</cc1:ExtendedGridView>
</div>
<asp:ObjectDataSource ID="OdsInfo" runat="server" MaximumRowsParameterName="maxRows"
SelectMethod="GetBindingTable" StartRowIndexParameterName="startIndex" TypeName="CRM.WEB.Bussiness.UserControls.PartsShow">
</asp:ObjectDataSource>
<asp:HiddenField ID="hd" runat="server" />
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -