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

<%@ 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 runat="server">
    <title>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
    <script type="text/javascript">
   
    //选择单图
   function openSingleChild()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
          document.getElementById("TextBoxPackImagePath").value = k.substring(lastIndex+1,strLen); 
         document.getElementById("ImageOriginalImge").src = k; 
        }
    } 
     </script>
  </head>
<body style="background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
       <div class="navigator"><asp:Label ID="LabelPageTitle" runat="server" 
               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" Width="300"></asp:TextBox>
                    <font color="red">
                            <asp:Label ID="Label7" runat="server" Text="*"></asp:Label></font>
                            <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="LabelCost" runat="server" Text="费用："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxCost" runat="server" Width="300"></asp:TextBox>
                                <font color="red">
                            <asp:Label ID="Label1" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCost" 
                            runat="server" ControlToValidate="TextBoxCost" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorMinimalCost0" 
                            runat="server" ControlToValidate="TextBoxCost" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr align="center">
                <td align="right" height="25">
                    <asp:Label ID="LabelFreeLimit" runat="server" Text="免费额度："></asp:Label>
                </td>
                <td align="left" height="25">
                    <asp:TextBox ID="TextBoxFreeLimit" runat="server" Width="300"></asp:TextBox>
                                <font color="red">
                            <asp:Label ID="Label2" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorFreeLimit" 
                            runat="server" ControlToValidate="TextBoxFreeLimit" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorMinimalCost1" 
                            runat="server" ControlToValidate="TextBoxFreeLimit" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelPackImagePath" runat="server" Text="包装图纸："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="TextBoxPackImagePath" runat="server" Width="300"></asp:TextBox>
                   <input id="ButtonSelectSingleImage" 
                    type="button" value="选择图片" onclick= "openSingleChild()"  />
                    <asp:Label ID="Label10" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorFreeLimit0" 
                            runat="server" ControlToValidate="TextBoxPackImagePath" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorPackImagePath" 
                        runat="server" ControlToValidate="TextBoxPackImagePath" Display="Dynamic" 
                        ErrorMessage="包装图纸路径最多250个字符" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
                    <br />
                    <img id="ImageOriginalImge" alt="" src="~/images/noImage.gif" runat="server" /></td>                    
            </tr>
            <tr>
                <td align="right">
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelDescription" runat="server" Text="包装描述："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="TextBoxDescription" runat="server" TextMode="MultiLine" Width="440" Height="60"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorDescription" 
                        runat="server" ControlToValidate="TextBoxDescription" Display="Dynamic" 
                        ErrorMessage="描述最多150个字符" ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelOrderID" runat="server" Text="排序列号："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="TextBoxOrderID" runat="server" Width="300"></asp:TextBox>
                                <font color="red">
                            <asp:Label ID="Label3" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" 
                            runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorMinimalCost2" 
                            runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelIfUse" runat="server" Text="是否启用："></asp:Label>
                </td>
                <td align="left" >
                    <asp:CheckBox ID="CheckBoxIsUse" runat="server" Text="是" />
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;" class="btconfig">
             <td align="right" >
    
                 &nbsp;</td>
                <td align="left" >
                     <div >
        <asp:Button ID="ButtonConfirm" runat="server" onclick="ButtonConfirm_Click" Text="确定" 
           ToolTip="Submit"  CssClass="bt2"/>
                         <input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2"/>
                         <a href="Pack_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" />
    </form>
</body>
</html>
