<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliveryMethod.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.ControlPanel.DeliveryMethod" %>

<%@ Register TagPrefix="ce" Namespace="CuteEditor" Assembly="CuteEditor" %>
<%@ Register TagPrefix="uc1" Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" %>
<%@ Register TagPrefix="cc1" Namespace="TopWinCMS.WebControls" Assembly="TopWinCMS.WebControls" %>
<!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 id="Head1" runat="server">
    <title>配送方式管理</title>
    <link href="../Style.css" type="text/css" rel="stylesheet" />
    <meta http-equiv="Pragma" content="No-cach" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <table id="NavigationPath" border="0" cellpadding="4" cellspacing="0" width="100%">
        <tr>
            <td>
                管理导航：<a href="DeliveryMethod.aspx">配送方式管理</a> &nbsp;| &nbsp;<a href="DeliveryMethod.aspx?Action=Add">
                    添加配送方式</a>
            </td>
        </tr>
    </table>
    <asp:Panel ID="Panel1" runat="server" Visible="False">
        <table cellspacing="4" cellpadding="0" width="100%" border="0">
            <tr class="HeaderStyle">
                <td>
                    添加配送方式
                </td>
            </tr>
            <tr>
                <td class="border" height="23">
                    <table cellspacing="4" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td class="RowTitle">
                                方式名称：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_MethodName" runat="server" Width="336px"></asp:TextBox>
                                &nbsp;&nbsp; &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                运费：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_Charge" runat="server"></asp:TextBox>
          
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                设为默认：
                            </td>
                            <td>
                                <asp:CheckBox ID="CB_IsDefault" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                <b>立即审核：</b>
                            </td>
                            <td>
                                <asp:CheckBox ID="CB_Pass" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                              备注：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_Intro" runat="server" Width="447px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="top">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <p align="center">
            <asp:Button ID="BT_OK" runat="server" Text="添加" OnClick="BT_OK_Click" CssClass="btn">
            </asp:Button>&nbsp;&nbsp;
            <asp:Button ID="BT_Edit" runat="server" Visible="False" Text="修改" OnClick="BT_Edit_Click"
                CssClass="btn"></asp:Button><asp:Button ID="BT_Back" runat="server" Text="返回" OnClick="BT_Back_Click"
                    CssClass="btn"></asp:Button></p>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" Width="99%">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                    OnRowCommand="GV_List_RowCommand" OnRowDeleting="GV_List_RowDeleting" OnRowDataBound="GV_List_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="40px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="MethodName" HeaderText="配送方式标题">
                         <ItemStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Intro" HeaderText="简介"></asp:BoundField>
                        
                        
                         
                        <asp:TemplateField HeaderText="运费">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Charge","{0:C}") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" Width="60px" />
                        </asp:TemplateField>
                        
                        
                        <asp:BoundField DataField="IsDefault" HeaderText="默认">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                        </asp:BoundField>
                         
                        <asp:ButtonField DataTextField="Pass" HeaderText="审核" Text="审核" CommandName="Pass">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                        </asp:ButtonField>
                        <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="DeliveryMethod.aspx?Action=Edit&amp;ID={0}"
                            HeaderText="编辑" Text="编辑">
                            <ItemStyle HorizontalAlign="Center" Width="40px" />
                        </asp:HyperLinkField>
                        <asp:CommandField HeaderText="删除" ShowDeleteButton="True">
                            <ItemStyle HorizontalAlign="Center" Width="40px" />
                        </asp:CommandField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
                <table style="width: 100%;">
                    <tr>
                        <td class="style1">
                            <input id="Checkbox1" onclick="javascript:SelectAll(this);" type="checkbox" />全选
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                            <asp:Button ID="DelSeletedID" runat="server" Text="删除选中" OnClick="DelSeletedID_Click"
                                CssClass="btn"></asp:Button>
                        </td>
                    </tr>
                </table>
                <div class="pagefield">
                    <cc1:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging" PageSize="15">
                    </cc1:PageNavigation>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    </form>
</body>
</html>