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

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

<!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 runat="server">
    <title>Untitled Page</title>
     <link type="text/css" rel="Stylesheet" href="css/index.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">【 <asp:Label ID="LabelPageTitle" runat="server" 
             Font-Bold="True" Text="新增配送方式"></asp:Label> 】</div>
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
   
 
            <tr>
                <td align="right" width="20%" >
                    <asp:Label ID="LabelName" runat="server" Text="配送方式名称："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxName" runat="server"  CssClass="input2"></asp:TextBox>
        <asp:Label ID="Label5" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" 
                            runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorName" 
                        runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                        ErrorMessage="只能输入50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelRemark" runat="server" Text="配送方式说明："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxRemark" runat="server" TextMode="MultiLine" Width="440" Height="60"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorRemark" 
                        runat="server" ControlToValidate="TextBoxRemark" Display="Dynamic" 
                        ErrorMessage="只能输入2000个字符" ValidationExpression="^[\s\S]{0,2000}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelIsPayArrived" runat="server" Text="是否支持货到付款："></asp:Label>
                </td>
                <td align="left" >
                    <asp:CheckBox ID="CheckBoxIsPayArrived" runat="server" Text="支持" />
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelSafeCost" runat="server" Text="保价费用："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxSafeCost" runat="server" CssClass="input2"></asp:TextBox>
        <asp:Label ID="Label7" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorSafeCost" 
                            runat="server" ControlToValidate="TextBoxSafeCost" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorSafeCost" 
                        runat="server" ControlToValidate="TextBoxSafeCost" Display="Dynamic" 
                        ErrorMessage="输入格式不正确" ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </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"></asp:TextBox>
        <asp:Label ID="Label6" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorName1" 
                            runat="server" ControlToValidate="TextBoxFormula" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorFormula" 
                        runat="server" ControlToValidate="TextBoxFormula" Display="Dynamic" 
                        ErrorMessage="只能输入100个字符" ValidationExpression="^[\s\S]{0,100}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelOrderID" runat="server" Text="排序号："></asp:Label>
                </td>
                <td align="left" style="width:100%;">
                    <asp:TextBox ID="TextBoxOrderID" runat="server" CssClass="input2"></asp:TextBox>
        <asp:Label ID="Label8" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" 
                            runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorOrderID" 
                        runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                        ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            
            <tr>
            <td width="20%"></td>
                <td align="left">
                    <div style="margin:10px 0; text-align:left">
                    <asp:GridView ID="GridViewShow" runat="server" AutoGenerateColumns="False" 
                        onrowdatabound="GridViewShow_RowDataBound"  
                        Width="80%">
                        <Columns>
                            <asp:BoundField DataField="Guid" HeaderText="GUID">
                                <HeaderStyle CssClass="hidden" />
                                <ItemStyle CssClass="hidden" HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ItemName" HeaderText="项名" >
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ItemCode" HeaderText="项号">
                                <HeaderStyle CssClass="hidden" />
                                <ItemStyle CssClass="hidden" HorizontalAlign="Center" />
                            </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></div>
                </td>
            </tr>
   
            <tr>
            <td  ></td>
                <td align="left">
    
        <cc1:Num1GridView ID="Num1GridiewDispatchItemAdd" runat="server" 
            AllowSorting="True" AutoGenerateColumns="False"  
            Width="80%" AscendingImageUrl="~/images/SortAsc.gif" 
            DescendingImageUrl="~/images/SortDesc.gif" PageSize="5" Font-Size="Small" 
            Font-Bold="False" AddSequenceColumn="False" AllowMultiColumnSorting="False" 
                BorderColor="#CCDDEF" BorderStyle="Solid" BorderWidth="1px" CellPadding="4" 
                Del="False" DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False" 
                GridViewSortDirection="Ascending" PagingStyle="None" style="margin-left: 2px;" 
                TableName="">
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></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" type="checkbox" Value='<%# Eval("Guid") %>' />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                <asp:BoundField DataField="Guid" HeaderText="GUID" SortExpression="Guid" >
                    <HeaderStyle CssClass="hidden" />
                    <ItemStyle CssClass="hidden" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="ItemName" HeaderText="项名" 
                    SortExpression="ItemName" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="ItemCode" HeaderText="项号" 
                    SortExpression="ItemCode" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="ItemValue" HeaderText="项值">
                    <HeaderStyle CssClass="hidden" />
                    <ItemStyle CssClass="hidden" HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
        </cc1:Num1GridView>
                </td>
            </tr>
            <tr>
                <td align="left" colspan="2" ><div class="vote" style="padding-left:20%;margin:10px 0" >
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" 
            onclientclick="return DeleteButton()" 
            onclick="ButtonDelete_Click" CssClass="bt2"/></div>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelItemName" runat="server" Text="项名："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxItemName" runat="server" CssClass="input2"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelItemCode" runat="server" Text="项号："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxItemCode" runat="server" CssClass="input2"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    &nbsp;</td>
                <td align="left" > 
                
                <div class="vote" style="margin:10px 0">
        <asp:Button ID="ButtonAdd" runat="server" onclick="ButtonAdd_Click" Text="添加" 
            Width="59px" ToolTip="Submit" CssClass="bt2"/></div >
                </td>
            </tr>
            <tr>
                <td align="right" colspan="2" >
    
                    &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;" class="btconfig">
             <td align="right" >
    
                 &nbsp;</td>
                <td align="left" >
                     <div style="width:60%; ">
        <asp:Button ID="ButtonConfirm" runat="server" onclick="ButtonConfirm_Click" Text="确定" 
            Width="59px" 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>
   
        <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
