<%@ page language="C#" autoeventwireup="true" inherits="Admin_Orders_Purchase_Order, Huibo.Net" enableviewstatemac="false" enableEventValidation="false" %>

<!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 runat="server">
    <title>采购单</title>
    <link href="../Css/StyleSheet.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript">
        function preview()   
        {   
            bdhtml=window.document.body.innerHTML;   
              
            sprnstr="<!--startprint-->";   
            eprnstr="<!--endprint-->";   
            prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);   
               
             alert("prnhtml:"+prnhtml);   
               
            prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));   
            window.document.body.innerHTML=prnhtml;   
            window.print();   
        }    
    </script>

</head>
<body style="background-color: #FFFFFF; text-align: center;">
    <form id="form1" runat="server">
        <div style="text-align: center; border: #666666 1px solid; width: 80%">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr style="height: 25px;">
                    <td colspan="3">
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<strong>采购单--<asp:Label ID="Goods"
                            runat="server" Text="Label"></asp:Label></strong>
                        &nbsp;&nbsp;
                        <input type="button" value="打印" onclick="window.print()" style="width: 50px; height: 20px;" /></td>
                </tr>
                <tr style="height: 25px;">
                    <td>
                        <strong>订单号：<asp:Label ID="OrderGood" runat="server" Text="Label"></asp:Label></strong></td>
                    <td>
                        <strong>客户：<asp:Label ID="User" runat="server" Text="Label"></asp:Label></strong></td>
                    <td>
                        <strong>采购日期：<asp:Label ID="DataTime" runat="server" Text="Label"></asp:Label></strong></td>
                </tr>
                <tr style="height: 25px;">
                    <td colspan="3" align="left">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>商品列表</strong>
                    </td>
                </tr>
            </table>
            <asp:DataList ID="Purchase" runat="server" Width="100%" OnItemDataBound="Purchase_ItemDataBound">
                <HeaderTemplate>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                        <tr style="height: 25px;">
                            <td style="width: 25%;" class="PrintOrder">
                                商品名称
                            </td>
                            <td style="width: 10%;" class="PrintOrder">
                                样式
                            </td>
                            <td style="width: 10%;" class="PrintOrder">
                                商品编号
                            </td>
                            <td style="width: 10%;" class="PrintOrder">
                                所属大类
                            </td>
                            <td style="width: 10%;" class="PrintOrder">
                                所属小类
                            </td>
                            <td style="width: 10%;" class="PrintOrder">
                                要货数量
                            </td>
                            <td style="width: 10%;" class="PrintOrderRight">
                                采购量
                            </td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="PrintOrderList">
                            <asp:Label ID="ProductName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name")%>'></asp:Label>
                        </td>
                        <td class="PrintOrderList">
                            <asp:Label ID="style" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.style") %>'></asp:Label>
                        </td>
                        <td class="PrintOrderList">
                            <asp:Label ID="zhongliang" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.grade") %>'></asp:Label>G
                        </td>
                        <td class="PrintOrderList">
                            <asp:Label ID="category" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.categoryid") %>'></asp:Label>
                        </td>
                        <td class="PrintOrderList">
                            <asp:Label ID="sorts" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.sortsid") %>'></asp:Label>
                        </td>
                        <td class="PrintOrderList">
                            <asp:Label ID="single" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.productnum") %>'></asp:Label>
                        </td>
                        <td style="vertical-align: middle; border-bottom: #ababab 1px solid;">
                            <div style="border: #000000 1px solid; height: 15px; width: 40px;">
                            </div>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <td colspan="7" style="height: 30px; border-bottom: #ababab 1px solid;">
                    </td>
                    </table>
                </FooterTemplate>
            </asp:DataList>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <td colspan="3" style="height: 30px;">
                </td>
                <tr style="height: 25px;">
                    <td>
                        <strong>采购员：</strong>_____________</td>
                    <td>
                        <strong>采购完成日期：</strong>_____________________</td>
                    <td>
                        <strong>备注：</strong>_________________________________________________</td>
                </tr>
                <tr style="height: 25px;">
                    <td colspan="3">
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
