<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SalesClassSet.aspx.cs" Inherits="Admin_Sales_SalesClassSet" EnableViewState="true" %>

<%@ Register Src="../Controls/EditionItem.ascx" TagName="EditionItem" TagPrefix="uc2" %>
<!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="../Stylesheet/Main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="toolItem">
        <ul class="tool">
            <li class="tool_li_ac">
                <img src="../Images/icon_add.gif" width="14" height="14" align="absmiddle" />
                <a href="SalesClassSet.aspx" title="添加销售网络类别">添 加</a></li>
            <li>
                <div class="tool_back">
                    <a href="javaScript:history.back(-1)">返回上一步</a></div>
            </li>
        </ul>
    </div>
    <div class="main_body">
        <h1>
            <asp:Literal ID="litTitle" runat="server"></asp:Literal>销售网络类别设置</h1>
        <uc2:EditionItem ID="EditionItem1" runat="server" />
        <div class="ht2">
        </div>
        <div class="divbox2">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbbox">
                <tr>
                    <th width="22%">
                        类别名称
                    </th>
                    <th width="28%">
                        所属上级
                    </th>
                    <th width="15%">
                        类别标识
                    </th>
                    <th width="10%">
                        状态
                    </th>
                    <th width="10%">
                        排序
                    </th>
                    <th width="15%">
                        操作
                    </th>
                </tr>
                <tr>
                    <td align="center">
                        <asp:TextBox ID="txtClassName" runat="server" Width="96%"></asp:TextBox>
                    </td>
                    <td align="center">
                        <asp:DropDownList ID="dropClass" runat="server" Width="96%" DataTextField="TreeMode"
                            DataValueField="ID">
                        </asp:DropDownList>
                    </td>
                    <td align="center">
                        <asp:TextBox ID="txtClassKey" runat="server" Width="96%"></asp:TextBox>
                    </td>
                    <td align="center">
                        <asp:DropDownList ID="dropState" runat="server">
                            <asp:ListItem Value="1">启用</asp:ListItem>
                            <asp:ListItem Value="0">不启用</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td align="center">
                        <asp:TextBox ID="txtSortOrder" runat="server" Width="96%"></asp:TextBox>
                    </td>
                    <td align="center">
                        <asp:LinkButton ID="lbtnAdd" runat="server" CssClass="btn_bg" OnClick="lbtnAdd_Click">确定添加</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div class="ht">
        </div>
        <div class="item">
            <ul class="item_list">
                <li class="item_list_cell_ac margin_left_2px">
                    <div>
                        <asp:Literal ID="litTitle3" runat="server"></asp:Literal>销售网络类别列表
                    </div>
                </li>
            </ul>
        </div>
        <div class="ht2">
        </div>
        <div class="divbox2">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbbox">
                <tr>
                    <th width="22%">
                        类别名称
                    </th>
                    <th width="28%">
                        所属上级
                    </th>
                    <th width="15%">
                        类别标识
                    </th>
                    <th width="10%">
                        状态
                    </th>
                    <th width="10%">
                        排序
                    </th>
                    <th width="7%">
                        操作
                    </th>
                </tr>
                <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%#Eval("TreeMode")%>
                            </td>
                            <td>
                                <asp:Literal ID="litClass" runat="server" Text="根级"></asp:Literal>
                            </td>
                            <td>
                                <%#Eval("ClassKey")%>
                            </td>
                            <td>
                                <%#Eval("State") != DBNull.Value && Eval("State").ToString()=="1" ? "启用" : "未启用"%>
                            </td>
                            <td>
                                <%#Eval("SortOrder")%>
                            </td>
                            <td align="center">
                                <a href="SalesClassSet.aspx?ID=<%#Eval("ID")%>&EditionID=<%#Eval("EditionID")%>&AC=Edit" title="编辑当前信息">
                                    <img src="../images/icon_bj.gif" border="0" align="absmiddle" /></a>
                                <asp:LinkButton ID="lbtnDel" runat="server" CommandArgument='<%#Eval("ID")%>' CommandName="Del_CommandName"
                                    OnClientClick="return confirm('确认删除当前项？')" ToolTip="删除当前项"><img src="../images/icon_sc.gif" border="0" align="absmiddle" /></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <%--</fieldset>--%>
        <div class="ht">
        </div>
        <div class="ht">
        </div>
        <ul class="ac_intro" runat="server" id="boxPageExplain">
            <li class="ac_intro_title">说明：</li>
            <li class="ac_intro_item">1. 便于系统的灵活性，每个语言版本销售网络类别需要单独增加。</li>
            <li class="ac_intro_item">2. 删除一个销售网络类别时，必须先删除类别的中的所有的相关销售网络(包括回收站中的销售网络)。</li>
        </ul>
    </div>
    </form>
</body>
</html>