<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Product_Rule_Manage, V5Shop.Shop.Category" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>
<!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="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />

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

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

</head>
<body>
    <form id="form1" runat="server">
        <uc3:ManageHeader ID="ManageHeader1" runat="server" />
        <div>
            <div id="content">
                <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                    <input type="checkbox" id="CheckAllBox" onclick="CheckAll()" class="checkbox" />
                    全选
                    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click"
                        CausesValidation="False"><img src="images/icon/key_detail.gif" /> 添加</asp:LinkButton>
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click"
                        OnClientClick="return CheckEdit()" CausesValidation="False"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
                    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click"
                        OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>
                </div>
                <div class="listborder">
                    <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CssClass="datalist" HeaderStyle-Height="18px" HeaderStyle-ForeColor="#000"
                        EmptyDataText="没有查询到任何记录" TableName="Rule" CacheName="Rule" PageSize="12" BorderWidth="0px"
                        GridLines="None" Width="100%">
                        <Columns>
                            <asp:TemplateField>
                                <itemstyle width="3%" />
                                <itemtemplate>
                            <input runat="server" Value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" class="checkbox">
                        
</itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="id" SortExpression="ID" HeaderText="ID">
                                <itemstyle width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CategoryName" SortExpression="CategoryName" HeaderText="规则类别">
                                <itemstyle width="12%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name" SortExpression="Name" HeaderText="规则内容名称">
                                <itemstyle width="25%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Value" SortExpression="Value" HeaderText="编号" />
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <HeaderStyle CssClass="category" ForeColor="Black" Height="18px" />
                    </V5Shop:V5ShopGridView>
                </div>
                <div>
                    </div>
                <asp:Panel ID="ShowADD" runat="server" Visible="false">
                    <div align="center" style="background: #f1f1f1">
                        <table cellpadding="0" cellspacing="0" width="500">
                            <tr>
                                <td width="20%" height="30" align="right">
                                    <asp:Label ID="lblName" runat="server" Text="编号名称："></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtName" runat="server" Width="300px" MaxLength="50"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="不能为空"
                                        ControlToValidate="txtName" Display="Dynamic">
                                    </asp:RequiredFieldValidator>
                                    <span class="NeedMsg">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td width="20%" height="36" align="right">
                                    <asp:Label ID="lblCode" runat="server" Text="编号代码："></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtCode" runat="server" Width="300px" MaxLength="50"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="不能为空"
                                        ControlToValidate="txtCode" Display="Dynamic">
                                    </asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td height="30" colspan="2" align="left"><asp:Label ID="lblHelpNtice" runat="server" Text="&nbsp;&nbsp;规则内容：是与商品内容、特性等相关的预先设置的一组数据，方便在加商品时录入编号。如：设置按厂家编号规则，海尔的编号是A， 长城的编号是C。设置按类别编号的规则，家电是01，日用品是02，那么“海尔的家电” 自动编号为：A01*****。注意：在记录商品编号时是记录添加的编号代码。" Font-Size="12px" ForeColor="Red"></asp:Label>
                    <br />
                    <asp:Label ID="lblHelpNotice2" runat="server" Font-Size="12px" ForeColor="Red" Text="设置步骤：“添加”规则名称--勾选规则“编辑”--“添加”规则内容"></asp:Label>
				              </td>
					        </tr>
                            <tr>
                                <td height="30" align="center" colspan="2">
                                    <asp:Button ID="btnAddT" runat="server" Text="确定" Visible="true" CssClass="button"
                                        OnClick="btnAddT_Click" />
                                    <asp:Button ID="btnEditT" runat="server" Text="更新" Visible="false" CssClass="button"
                                        OnClick="btnEditT_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </div>
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>
    </form>
</body>
</html>
