<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="SKUsList.aspx.cs" Inherits="OAWeb.crm.product.SKUsList" %>

<%@ Register Src="../../UserControls/ProductNav.ascx" TagName="ProductNav" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
<style>
img { border:none;}
</style>
    <!--主体左侧-->
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <uc1:ProductNav ID="ProductNav1" runat="server" />
            </td>
            <td class="main_center">
                <!--主体-->
                <div class="page_main">
                    <div class="page_content">
                        <table class="data_title" cellspacing="3">
                            <tr>
                                <td class="data_caption">
                                    <em style="float: left">
                                        <img src="/images/03.gif" />
                                    </em>品项管理<br />
                                    <span class="tip01">商品对应的所有品项集合.您可以在添加商品时选择规格后会对应生成品项。</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="data_field">
                                    品项名称：<asp:TextBox ID="txtSKUName" runat="server" CssClass="text_box width120"></asp:TextBox> 商品:<asp:DropDownList
                                        ID="ddlProduct" runat="server">
                                    </asp:DropDownList>
                                    <asp:Button ID="btnSearch" runat="server" Text="查  询" class="btn_77px" />
                                </td>
                            </tr>
                        </table>
                        <div class="list">
                            <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="SkuId"
                                GridLines="None" CellPadding="0" CssClass="table_list" EnableModelValidation="True"
                                OnRowDataBound="gvData_RowDataBound">
                                <RowStyle HorizontalAlign="Left" />
                                <Columns>
                                    <asp:BoundField DataField="SKUName" HeaderText="品项名称"></asp:BoundField>
                                    <asp:BoundField DataField="SKUCode" HeaderText="货号"></asp:BoundField>
                                    <asp:BoundField DataField="Cost" HeaderText="成本" DataFormatString="{0:F2}"></asp:BoundField>
                                    <asp:BoundField DataField="SalePrice" HeaderText="销售价" DataFormatString="{0:F2}">
                                    </asp:BoundField>
                                    <asp:BoundField DataField="WholeSalePrice" HeaderText="经销商价格" DataFormatString="{0:F2}">
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MarketPrice" HeaderText="市场参考价" DataFormatString="{0:F2}">
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Stock" HeaderText="库存"></asp:BoundField>
                                    <asp:BoundField DataField="AlertStock" HeaderText="库存报警线" />
                                    <asp:BoundField DataField="Weight" HeaderText="重量" />
                                    <asp:TemplateField HeaderText="是否上架">
                                        <ItemTemplate>
                                            <img class='<%#Eval("Is_Active").ToString().Equals("1") ? "ico01" : "ico02"%>' src="/images/transparent.gif" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="操作">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lnkbtnActive" runat="server">上架</asp:LinkButton>
                                            <asp:HyperLink ID="hypEdit" runat="server">编辑</asp:HyperLink>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <div class="pager-bar">
                                <webdiyer:AspNetPager ID="pager" runat="server" CssClass="anpager" currentpagebuttonclass="cpb"
                                    PageSize="20" NextPageText="下一页" LastPageText="页 尾" FirstPageText="第一页" PrevPageText="上一页"
                                    ShowBoxThreshold="10" SubmitButtonText="跳 转" UrlPaging="True">
                                </webdiyer:AspNetPager>
                            </div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
