<%@ Control Language="c#" AutoEventWireup="True" Codebehind="ExchangePresentPoint.ascx.cs" Inherits="DreamerShop.UserControl.ExchangePresentPoint" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		
		function selall()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("ckSelAll");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("ckSelItem");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		//-->
</SCRIPT>
<asp:Panel id="PanExchangePresentPoint" runat="server">
	<asp:datagrid id="dgList" runat="server" DataKeyField="ProductID" CssClass="border-l-b-r-t" PageSize="20"
		AllowPaging="false" AutoGenerateColumns="False" HorizontalAlign="Center" Width="100%">
		<HeaderStyle HorizontalAlign="Center" BackColor="#f1f1f1"></HeaderStyle>
		<Columns>
			<asp:TemplateColumn>
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
				<HeaderTemplate>
					<asp:CheckBox id="ckSelAll" runat="server" onClick="selall()"></asp:CheckBox>
				</HeaderTemplate>
				<ItemTemplate>
					<asp:CheckBox id="ckSelItem" runat="server"></asp:CheckBox>
				</ItemTemplate>
			</asp:TemplateColumn>
			<asp:BoundColumn DataField="ProductNumber" HeaderText="OrderFormProductNumber">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="ExchangeTitle" HeaderText="TextTitle">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="ExchangePrice" HeaderText="TextExchangePresentPoint">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="MarketPrice" HeaderText="TextMarketPrice1">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="Price" HeaderText="TextMemberPrice1">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
		</Columns>
		<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
	</asp:datagrid>
	<TABLE class="table-zuoyou" id="Table1" width="100%" align="center" border="0">
		<TR align="center">
			<TD>
				<asp:button id="btJoinShopping" runat="server" CssClass="go-wenbenkuang" Text=" 加入购物车 " onclick="btJoinShopping_Click"></asp:button></TD>
		</TR>
	</TABLE>
	<DIV align="center">
		<asp:Label id="lbExhangeMsg" runat="server" ForeColor="Red"></asp:Label></DIV>
</asp:Panel>
