<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YingS.aspx.cs" Inherits="MicroERP.YingS" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="css/Back.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="js/calendar.js"></script>
    <title></title>
    <style type="text/css" >
        .imgext {vertical-align: middle
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" height="730" width="100%">
            <tr>
                <td width="12" background="Image/ShiftBar_bg.gif">
                </td>

                <td vAlign="top">
                    <table cellpadding="0" cellspacing="0" style="width: 100%">
                        <tr>
                            <td height="30" style="padding-left: 10px" bgcolor="#F0F0F0">
                                <img align="absmiddle" alt="" src="Image/man.gif" />登录用户：<asp:Label ID="lblUserName" 
                                    runat="server"></asp:Label>
                            &nbsp;&nbsp;
                                <img align="absmiddle" alt="" src="/Image/viewrow.gif" />您的位置：<asp:Label 
                                    ID="lblLocation" runat="server"></asp:Label>&nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-left: 10px" valign="middle">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="padding-left: 10px" valign="top" height="30">
                                开始日期：<asp:TextBox ID="tbBegDate" runat="server" CssClass="txtbox" Width="100px"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbBegDate" Display="Dynamic" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="tbBegDate" Display="Dynamic" ErrorMessage="RangeValidator" MaximumValue="2050-1-1" MinimumValue="1999-1-1" Type="Date">*</asp:RangeValidator>
                                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Image/date.gif" onclientclick="new Calendar().show(this.form.tbBegDate); return false;" ToolTip="选择开始日期" CssClass="imgext"/>&nbsp; 结束日期：<asp:TextBox ID="tbEndDate" runat="server" CssClass="txtbox" Width="100px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbEndDate" Display="Dynamic" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="tbEndDate" Display="Dynamic" ErrorMessage="RangeValidator" MaximumValue="2050-1-1" MinimumValue="1999-1-1" Type="Date">*</asp:RangeValidator>
                                <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Image/date.gif" onclientclick="new Calendar().show(this.form.tbEndDate); return false;" ToolTip="选择结束日期" CssClass="imgext"  />&nbsp;&nbsp;
                                <asp:Button ID="btnQuery" runat="server" CssClass="BlueButton" Text="查  询" OnClick="btnQuery_Click" />
                            &nbsp;
                                <asp:Button ID="btnClear" runat="server" CausesValidation="False" CssClass="BlueButton" OnClick="btnClear_Click" Text="还  原" />
                            </td>
                        </tr>

                        <tr>
                            <td style="padding-left: 10px" valign="top">
                                <asp:GridView ID="gv" runat="server" CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False">
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                    <Columns>
                                        <asp:BoundField DataField="CreateDate" HeaderText="制单日期" DataFormatString="{0:yyyy-MM-dd}">
                                        <HeaderStyle HorizontalAlign="Center" Width="70px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="BillCode" HeaderText="应收单号">
                                        <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Description" HeaderText="摘要">
                                        <HeaderStyle HorizontalAlign="Center" Width="210px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="CompanyName" HeaderText="客户全称">
                                        <HeaderStyle HorizontalAlign="Center" Width="180px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="PreviousPrice" HeaderText="上笔结存">
                                        <HeaderStyle HorizontalAlign="Right" Width="100px" />
                                        <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="InPrice" HeaderText="借方">
                                        <HeaderStyle HorizontalAlign="Right" Width="100px" />
                                        <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OutPrice" HeaderText="贷方">
                                        <HeaderStyle HorizontalAlign="Right" Width="100px" />
                                        <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LastPrice" HeaderText="本笔结存">
                                        <HeaderStyle HorizontalAlign="Right" Width="100px" />
                                        <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                    </Columns>
                                    <EditRowStyle BackColor="#999999" />
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                </asp:GridView>
                            </td>
                        </tr>

                        <tr>
                            <td style="padding-left: 10px" valign="top" height="30">&nbsp;</td>
                        </tr>

                        <tr>
                            <td style="padding-left: 10px" valign="top" height="20">
                                <webdiyer:AspNetPager ID="pager" runat="server" OnPageChanged="pager_PageChanged" AlwaysShow="True">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>


                    </table>
                </td>

            </tr>
        </table>
    </div>
    </form>
</body>
</html>

