<%@ Page Title="" Language="C#" MasterPageFile="~/bps/basic.Master" AutoEventWireup="true"  EnableViewState="false" CodeBehind="query_supply_material.aspx.cs" Inherits="bps.bps.query_supply_by_material" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
    
      <asp:PlaceHolder runat="server" ID="ph1">
           <h4>该物料有如下供应商</h4>

        <asp:GridView runat="server" GridLines="None"  AutoGenerateColumns="false"  CssClass="table table-bordered table-hover" ID="gv1">
            <Columns>

                    <asp:BoundField  HeaderText="物料号" DataField="code" HeaderStyle-Width="80px"/>
                   <asp:BoundField  HeaderText="物料名" DataField="catname" HeaderStyle-Width="100px"/>

                <asp:BoundField  HeaderText="供应商号" DataField="supplycode" HeaderStyle-Width="80px"/> 
                <asp:BoundField  HeaderText="供应商名称" DataField="supplyname" HeaderStyle-Width="90px"/>

               
                   <asp:BoundField  HeaderText="规格" DataField="spec" HeaderStyle-Width="180px"/>
                   <asp:BoundField  HeaderText="单价" DataField="price" HeaderStyle-Width="100px"/>

                 <asp:BoundField  HeaderText="货币" DataField="currency" HeaderStyle-Width="80px"/>
                 <asp:BoundField  HeaderText="备注" DataField="note" HeaderStyle-Width="200px"/>

                <asp:TemplateField>
                    <HeaderStyle Width="90px" />
                    <HeaderTemplate>默认供应商</HeaderTemplate>
                    <ItemTemplate>
                             <%#Eval("defaults").ToString()=="1"?"<img src=images/1.gif>":"" %>
                    </ItemTemplate>
                </asp:TemplateField>

            </Columns>
        </asp:GridView>





    </asp:PlaceHolder>
  



    <asp:PlaceHolder runat="server" ID="ph2">
           <h4>该供应商提供如下原料</h4>

        <asp:GridView runat="server" GridLines="None" AutoGenerateColumns="false"   CssClass="table table-hover"  ID="gv2">
            <Columns>
                <asp:BoundField  HeaderText="供应商号" DataField="supplycode" HeaderStyle-Width="80px"/> 
                <asp:BoundField  HeaderText="供应商名称" DataField="supplyname" HeaderStyle-Width="90px"/>

                   <asp:BoundField  HeaderText="物料号" DataField="code" HeaderStyle-Width="80px"/>
                   <asp:BoundField  HeaderText="物料名" DataField="catname" HeaderStyle-Width="100px"/>
                   <asp:BoundField  HeaderText="规格" DataField="spec" HeaderStyle-Width="180px"/>
                   <asp:BoundField  HeaderText="单价" DataField="price" HeaderStyle-Width="100px"/>

                 <asp:BoundField  HeaderText="货币" DataField="currency" HeaderStyle-Width="80px"/>
                 <asp:BoundField  HeaderText="备注" DataField="note" HeaderStyle-Width="200px"/>

                <asp:TemplateField>
                    <HeaderStyle Width="90px" />
                    <HeaderTemplate>默认供应商</HeaderTemplate>
                    <ItemTemplate>
                             <%#Eval("defaults").ToString()=="1"?"<img src=images/1.gif>":"" %>
                    </ItemTemplate>
                </asp:TemplateField>

            </Columns>
        </asp:GridView>





    </asp:PlaceHolder>
  









</asp:Content>
