<%@ page language="C#" autoeventwireup="true" inherits="Admin_DispatchItemRegion_List, ShopNum1Deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<!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>Untitled Page</title>
     <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
         <link href="../css/Num1GridView.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
    <style type="text/css">
 .hidden  {
 	 display:none;
  }    
    </style>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
    <div class="navigator">【 设置配送区域 】</div>
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
       <%--  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
                <div>
    
                    <cc1:Num1GridView ID="Num1GridViewShow" runat="server" 
                AutoGenerateColumns="False" 
                AllowPaging="True" AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
                DescendingImageUrl="~/images/SortDesc.gif" Width="100%" 
                AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF" 
                BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" 
                DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False" 
                Font-Size="Small" GridViewSortDirection="Ascending" PagingStyle="None" 
                style="margin-left: 2px;" TableName="" DataSourceID="ObjectDataSourceData">
                        <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="White">
                        </HeaderStyle>
                        <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC">
                        </PagerStyle>
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" 
                            type="checkbox"  />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%>
                                    <input id="checkboxItem"   value='<%# Eval("DispatchRegion") %>'  type="checkbox" />
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" Width="30px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="DispatchGuid" HeaderText="DispatchGuid" >
                                <HeaderStyle CssClass="hidden" />
                                <ItemStyle CssClass="hidden" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DispatchModeName" HeaderText="配送方式名称" 
                                SortExpression="DispatchModeName" >
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DispatchRegion" HeaderText="DispatchRegion" >
                                <HeaderStyle CssClass="hidden" />
                                <ItemStyle CssClass="hidden" HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DispatchRegionName" HeaderText="配送地区名称" 
                        SortExpression="DispatchRegionName" >
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                        </Columns>
                    </cc1:Num1GridView>
             <div class="vote">
           <asp:Button ID="ButtonAdd" runat="server" onclick="ButtonAdd_Click" Text="添加" 
                         CssClass="bt2"/>
                    &nbsp;<asp:Button ID="ButtonEdit" runat="server" onclick="ButtonEdit_Click" 
                                onclientclick="return EditButton()" Text="编辑" CausesValidation="False" CssClass="bt2" />
                            &nbsp;<asp:Button ID="ButtonDelete" runat="server" CausesValidation="False" 
                Text="删除" onclientclick="return DeleteButton()" 
                onclick="ButtonDelete_Click" CssClass="bt2" /></div>
                  <br />
                        <table cellpadding="0" cellspacing="5" border="0" style="width:100%">
                            <tr>
                                <td colspan="2" style="width:100%;background-color:#6699CC;">
                                    <div style="color:White;margin:3px;height:30px;font-size:13px;line-height:30px">
                                        <asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="设置配送地区"></asp:Label>
                                        
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="20%" >
                                    &nbsp;</td>
                                <td align="left" >
                                    &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" >
                                <asp:Label ID="LabelName" runat="server" Text="配送方式名称："></asp:Label>
                            </td>
                            <td align="left" >
                            <font class="font1">
                                <asp:Label ID="LabelNameValue" runat="server"></asp:Label></font>
                            </td>
                        </tr>
                        <tr>
                        <td align="right"><asp:Label ID="LabelDispatchRegion" runat="server" Text="配送地区："></asp:Label>
                            </td>
                        <td><asp:DropDownList ID="DropDownListDispatchRegion" runat="server" CssClass="select2">
                                </asp:DropDownList>
                                    </td>
                        
                        </tr>
                        <tr>
                            <td align="right" >
                                <asp:Label ID="LabelFormula" runat="server" Text="配送费用计算公式："></asp:Label>
                            </td>
                            <td align="left" >
                                <asp:TextBox ID="TextBoxFormula" runat="server" Height="60px" 
                        TextMode="MultiLine" Width="440px" BackColor="Silver" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr><td>&nbsp;</td></tr>
                        <tr>
                            <td align="center" colspan="2" >
                                <asp:GridView ID="GridViewShow" runat="server" AutoGenerateColumns="False" 
                        onrowdatabound="GridViewShow_RowDataBound" Width="100%">
                                    <Columns>
                                        <asp:BoundField DataField="Guid" HeaderText="GUID">
                                            <HeaderStyle CssClass="hidden" />
                                            <ItemStyle CssClass="hidden" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ItemName" HeaderText="项名" />
                                        <asp:BoundField DataField="ItemCode" HeaderText="项号">
                                            <HeaderStyle CssClass="hidden" />
                                            <ItemStyle CssClass="hidden" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="项值">
                                            <ItemTemplate>
                                                <asp:TextBox ID="TextBoxItemValue" runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="ItemValue" HeaderText="项值">
                                            <HeaderStyle CssClass="hidden" />
                                            <ItemStyle CssClass="hidden" />
                                        </asp:BoundField>
                                    </Columns>
                                    <HeaderStyle CssClass="hidden" />
                                </asp:GridView>
                            </td>
                        </tr>
   
                        <tr>
                            <td align="right" >
                                &nbsp;</td>
                            <td align="left" >
                                &nbsp;</td>
                        </tr>
                        <tr style="background-color:#EEEEEE;" class="btconfig">
                            <td align="right" colspan="2" >
    
                                <div style="width:100%; text-align:left;padding-left:20%">
                                    <asp:Button ID="ButtonConfirm" runat="server" Text="确定" 
                            onclick="ButtonConfirm_Click" ToolTip="Submit"  CssClass="bt2" />
                                    <input ID="inputReset" runat="server"  type="reset" value="重置" class="bt2"/>
                                    <a href="DispatchMode_List.aspx"><img src="images/back.png" border="0" align="top" /></a> 
                                    <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    
                                </div>
                            </td>
                        </tr>
                    </table>
            
        </div>
    
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    <%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        SelectMethod="Search" TypeName="ShopNum1.BusinessLogic.ShopNum1_DispatchItemRegion_Action" 
       >
        <SelectParameters>
            <asp:ControlParameter ControlID="hiddenFieldGuid" Name="guid" 
                PropertyName="Value" Type="String" />
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <br />
    </form>
</body>
</html>
