📄 showproduct.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowProduct.aspx.cs" Inherits="CRM.WEB.Bussiness.adpropart.ShowProduct" %>
<%@ 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 language="javascript" src="../../Bussiness/js/aboutProduct.js" type="text/javascript"></script>
<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">
<table border="0" cellpadding="0" class="border" cellspacing="0" width="100%">
<tr class="tdbg">
<td align="left" style="width: 60%">
查找产品:<asp:DropDownList ID="DropSearchField" runat="server">
<asp:ListItem Value="">请选择</asp:ListItem>
<asp:ListItem Value="b_productName">产品名称</asp:ListItem>
<asp:ListItem Value="b_productCode">产品编号</asp:ListItem>
<asp:ListItem Value="b_productType">产品类型</asp:ListItem>
<asp:ListItem Value="b_useYear">使用年限</asp:ListItem>
<asp:ListItem Value="b_productSupplier">供应商</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>
<td style="text-align: right; width: 40%;">
<%-- <asp:Button ID="btnaddType" runat="server" Text="添加类型" OnClientClick="return activecheck();" CssClass="button" Width="100px" OnClick="btnaddType_Click" />--%><asp:Button ID="btnMod" runat="server" CssClass="button" OnClientClick="return activecheck();" Width="60px" Text="编 辑" OnClick="btnMod_Click"/>
<asp:Button ID="btnDetails" runat="server" Text="查看详情" OnClientClick="return activecheck();" CssClass="button" Width="100px" OnClick="btnDetails_Click" />
</td>
</tr>
</table>
<div style="width:100%; height:470px">
<cc1:ExtendedGridView ID="GdvProductList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CheckBoxFieldHeaderWidth="3%" DataKeyNames="b_productId"
IsHoldState="True" ItemName="产品" ItemUnit="个" SerialText="" PageSize="20" Width="100%">
<Columns>
<cc1:TemplateField HeaderText="编号" SortExpression="b_productId">
<HeaderStyle Width="10%" />
<ItemTemplate>
<input type="checkbox" name="cb" onclick="javascript:activecheck();" id="cb" value='<%# Eval("b_productId")%>'> <%# Eval("b_productId")%></ItemTemplate>
</cc1:TemplateField>
<asp:BoundField DataField="b_productNo" HeaderText="产品编号" HtmlEncode="False" SortExpression="b_productNo" />
<asp:TemplateField HeaderText="产品名称" SortExpression="b_productName">
<itemstyle horizontalalign="Left" />
<itemtemplate>
<div class="linkType"><asp:Label id="LblProductName" runat="server" Text='<%# Eval("b_productName") %>'></asp:Label></div>
</itemtemplate>
</asp:TemplateField>
<asp:BoundField DataField="b_productCode" HeaderText="型号" HtmlEncode="False" SortExpression="b_productCode" />
<asp:TemplateField HeaderText="价格" SortExpression="Price">
<itemtemplate>
<asp:Label ID="LblProductPrice" runat="server" Text='<%# Eval("b_sellPrice") %>'></asp:Label>
</itemtemplate>
</asp:TemplateField>
<asp:BoundField DataField="b_productUnit" HeaderText="单位" HtmlEncode="False" SortExpression="b_productUnit" />
<asp:BoundField DataField="b_productType" HeaderText="分类" HtmlEncode="False" SortExpression="b_productType" />
<asp:BoundField DataField="b_costPrice" HeaderText="成本价" HtmlEncode="False" SortExpression="b_costPrice" />
</Columns>
</cc1:ExtendedGridView>
</div>
<asp:ObjectDataSource ID="OdsInfo" runat="server" MaximumRowsParameterName="maxRows"
SelectMethod="GetBindingTable" StartRowIndexParameterName="startIndex" TypeName="CRM.WEB.Bussiness.adpropart.ShowProduct">
</asp:ObjectDataSource>
<asp:HiddenField ID="hd" runat="server"/>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -