<%@ Page Title="" Language="C#" MasterPageFile="~/bps/bps.Master" AutoEventWireup="true" CodeBehind="AuditingListed.aspx.cs" Inherits="bps.bps.AuditingListed" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">




    <asp:GridView runat="server" ID="gv_list" PageSize="20" DataSourceID="sds" AutoGenerateColumns="false" AllowPaging="true" GridLines="None"
         CssClass="table table-hover" PagerSettings-Mode="NumericFirstLast"
        
        >

        <Columns>
         

              <asp:BoundField HeaderText="类别" DataField="types"  HeaderStyle-Width="80px"/>

            <asp:BoundField HeaderText="审批时间" DataField="createdate"   DataFormatString="{0:yyyy-MM-dd}" HeaderStyle-Width="100px"/>
         
               <asp:BoundField HeaderText="备注" DataField="myauditnote"  HeaderStyle-Width="500px"/>
      
            
        <asp:TemplateField>
                <HeaderTemplate>
                    
                </HeaderTemplate>
                <ItemTemplate>
                 <a class="thelink" href="###" onclick="setLink('<%#Eval("types") %>',<%#Eval("shid") %>)" >查看</a>

                </ItemTemplate>

            </asp:TemplateField>

        </Columns>

    </asp:GridView>














    <script>
        function setLink(_types, _id)
        {
            if (_types == "bom") {
                window.open("bom_detail.aspx?id=" + _id);

            }
            else {
                window.open("quote_detail.aspx?id=" + _id);
            }
        }

    </script>




    <asp:SqlDataSource runat="server" ID="sds"
         OnSelecting="sds_Selecting"
         SelectCommand="SELECT *  FROM sh_logs where uid=@uid order by id desc "
         ConnectionString="<%$ConnectionStrings:ConnectionString %>"
        >

          <SelectParameters>
            <asp:Parameter Name="uid" Type="Int32" /> 
        </SelectParameters>

    </asp:SqlDataSource>














</asp:Content>
