<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
</head>
<body>
    <form id="form1" runat="server">    
            <div class="PageTitleArea">
                <div class="PageTitle">发货人信息管理</div>
                <div style="width: 80%;">发货人信息管理</div>
            </div>
            <Hishop:Shippers ID="Shippers" runat="server">
                <SkinTemplate>
                <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
                <div class="grdHeaderStyle">
		             <ul>
		                   <li class="userGroupCheckAll"><a href="#" onclick="CheckClickAll()"><asp:Literal ID="lblCheckAll" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckAll %>"></asp:Literal></a></li>
		                   <li class="spirtLines">|</li>
		                   <li class="userGroupReverseCheck"><a href="#" onclick="CheckReverse()"><asp:Literal ID="lkbCheckReverse" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckReverse %>"></asp:Literal></a></li>
		                   <li class="spirtLines">|</li>
		                   <li class="userGroupDelCheck"><Hishop:DeleteImageLinkButton ID="lkbtnDeleteCheck" runat="server" Text="<%$ Resources:Resources, IDS_Button_DeleteCheck %>" /></li>
		             </ul>
	            </div>   
                <div class="grdGroupFormList">
                    <Hishop:CustomGridView ID="grdShippers" runat="server" AutoGenerateColumns="false" ShowHeader="true" DataKeyNames="ShipperId" 
                     CssClass="GridViewStyle" GridLines="None" RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle" >   
                       <Columns> 
                            <Hishop:CheckBoxColumn ReadOnly="true" />  
                            <asp:TemplateField HeaderText="发货点名称">
                               <ItemTemplate>
                                  <asp:Literal id="lblShipperTag" runat="server" Text='<%#Eval("ShipperTag") %>'></asp:Literal>
                               </ItemTemplate>
                            </asp:TemplateField>   
                            <Hishop:YesNoImageColumn DataField="IsDefault" HeaderText="默认发货信息" />
                            <asp:TemplateField HeaderText="发货人姓名"  ItemStyle-Width="250px">
                               <ItemTemplate><div class="infoTitle">
                                  <span style="word-break:break-all;"> <asp:Literal id="lblShipperName" runat="server" Text='<%#Eval("ShipperName") %>'></asp:Literal></span></div>
                               </ItemTemplate>
                            </asp:TemplateField>  
                            <asp:TemplateField HeaderText="地址" ItemStyle-Width="250px">
                               <ItemTemplate><div class="infoTitle">
                                  <span style="word-break:break-all;"> <asp:Literal id="lblAddress" runat="server" Text='<%#Eval("Address") %>'></asp:Literal></span></div>
                               </ItemTemplate>
                            </asp:TemplateField>  
                            <asp:TemplateField HeaderText="邮编">
                               <ItemTemplate>
                                  <asp:Literal id="lblZipcode" Text='<%#Eval("Zipcode") %>' runat="server"></asp:Literal>
                               </ItemTemplate>
                            </asp:TemplateField>     
                            <asp:TemplateField HeaderText="手机">
                               <ItemTemplate>
                                  <asp:Literal id="lblCellPhone" runat="server" Text='<%#Eval("CellPhone") %>'></asp:Literal>
                               </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="电话">
                               <ItemTemplate>
                                  <asp:Literal id="lblTelPhone" runat="server" Text='<%#Eval("TelPhone") %>'></asp:Literal>
                               </ItemTemplate>
                            </asp:TemplateField>                                                    
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                      <asp:LinkButton ID="lkbEdit" runat="server" PostBackUrl='<%# "EditShipper.aspx?ShipperId=" + Eval("ShipperId")%> ' CssClass="SmallCommonTextButton" Text="编辑"></asp:LinkButton>
                                      <Hishop:DeleteImageLinkButton ID="lkDelete" CssClass="SmallCommonTextButton" Text="删除" CommandName="Delete" runat="server" />                    
                                </ItemTemplate>
                            </asp:TemplateField>
                       </Columns>
                    </Hishop:CustomGridView>
                </div>
                </SkinTemplate>
            </Hishop:Shippers>
        <br />
        <div class="botCopyInfo">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
        </div>
    </form>
</body>
</html>