<%@ Page Language="C#" MasterPageFile="~/webUser/MasterPage.master" AutoEventWireup="true" CodeBehind="myOrderList.aspx.cs" Inherits="ZYDN.Web.webUser.myOrderList" Title="我卖出的商品" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content1" runat="server">
<form runat="server" id="form1" name="form1">
 <div class="maxTitle">
                销售订单
            </div>
    <asp:Repeater ID="Repeater1" runat="server">
  
     
        <HeaderTemplate>
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr class="titleLeft">
                <td>
                    订单编号
                </td>
                <td>
                    订单类型
                </td>
                <td>
                    买家
                </td>
                <td>
                    商品名
                </td>
                <td>
                    单价
                </td>
                <td>
                    数量
                </td>
                <td>
                    总价
                </td>
                <td>
                    订购时间
                </td>
                <td>
                    修改状态时间
                </td>
                <td>
                    订单状态
                </td>
            </tr>
    </HeaderTemplate>


    <AlternatingItemTemplate>
        <tr style="background-color:#F4F9FD">
                <td>
                    <a href='orderInfo.aspx?orderid=<%# Eval("ID")%>&menuindex=4'><%# Eval("OrderID")%></a>   
                </td>
                <td>
                    <%# Eval("TypeName")%>
                </td>
                <td>
                    <%# Eval("UserName")%>
                </td>
                <td>
                   <%# Eval("CommodityName")%>
                </td>
                <td>
                    <%# Eval("Price")%>
                </td>
                <td>
                   <%# Eval("CommodityNum")%>
                </td>
                <td>
                    <%# Eval("Total")%>
                </td>
                <td>
                    <%# Eval("CreateTime","{0:d}")%>
                </td>
                <td>
                    <%# Eval("UpdateStateTime","{0:d}")%>
                </td>
                <td id="orderState" name="orderState">
                    <%# Eval("OrderState")%>
                </td>
            </tr>
    </AlternatingItemTemplate>
    <ItemTemplate>
        <tr>
                <td>
                    <a href='orderInfo.aspx?orderid=<%# Eval("ID")%>&menuindex=4'><%# Eval("OrderID")%></a>
                </td>
                <td>
                    <%# Eval("TypeName")%>
                </td>
                <td>
                    <%# Eval("UserName")%>
                </td>
                <td>
                   <%# Eval("CommodityName")%>
                </td>
                <td>
                    <%# Eval("Price")%>
                </td>
                <td>
                   <%# Eval("CommodityNum")%>
                </td>
                <td>
                    <%# Eval("Total")%>
                </td>
                <td>
                    <%# Eval("CreateTime","{0:d}")%>
                </td>
                <td>
                    <%# Eval("UpdateStateTime", "{0:d}")%>
                </td>
                <td id="orderState" name="orderState">
                    <%# Eval("OrderState")%>
                </td>
            </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
    </asp:Repeater>
        <div style="width: 100%; clear: both; height: 5px;">
        </div>
        <asp:Button ID="pageUp" runat="server" Text="上一页" CausesValidation="False" Enabled="False"
            UseSubmitBehavior="False" OnClick="pageUp_Click" />
        <asp:Button ID="pageDown" runat="server" Text="下一页" CausesValidation="False" UseSubmitBehavior="False" OnClick="pageDown_Click" />
        <asp:Label ID="pageLabel" runat="server" Text=""></asp:Label>
    &nbsp;&nbsp;
    <div>
        <div style="text-align:center;">
            <span>
            <asp:TextBox ID="serchOrderID" runat="server" Width="200px" Text="请输入订单编号精确搜索"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="搜索" onclick="Button1_Click" />
            </span>
            
        </div>
        <div style="text-align:center;" class="msgBottom">
            <span>类型：</span>
            <asp:DropDownList ID="serchOrderType" runat="server" Width="90px" ToolTip="订单类型">
                <asp:ListItem Value="0">--请选择--</asp:ListItem>
                <asp:ListItem Value=-1">货到付款</asp:ListItem>
            </asp:DropDownList>   
            <span>状态：</span>
            <asp:DropDownList ID="serchOrderState" runat="server" Width="90px" ToolTip="订单状态">
                <asp:ListItem Value="0">未处理</asp:ListItem>
                <asp:ListItem Value="1">已查看</asp:ListItem>
                <asp:ListItem Value="2">已到款</asp:ListItem>
                <asp:ListItem Value="3">已发货</asp:ListItem>
                <asp:ListItem Value="4" Selected="True">---请选择---</asp:ListItem>
            </asp:DropDownList>
            <span>买家：</span>
            <asp:TextBox ID="serchUserName" runat="server" Width="90px" ToolTip="买家名称" ></asp:TextBox>
            <span>名称：</span>
            <asp:TextBox ID="serchOrderName" runat="server" Width="90px" ToolTip="商品名称" Text="请输入商品名"></asp:TextBox>
            <span> 起始时间：</span>
            <asp:TextBox ID="serchStartTime" runat="server" Width="90px" ToolTip="订购订单的时间"></asp:TextBox><input type="button" value="选择" onclick="selectDate(this)"/>       
            <span> 结束时间：</span>
            <asp:TextBox ID="serchEndTime" runat="server" Width="90px" ToolTip="订购订单的时间"></asp:TextBox><input type="button" value="选择" onclick="selectDate(this)"/>               
        
        </div>
    </div>
</form>
<% changeOrderState(); %>
<script language="javascript" type="text/javascript">
    function selectDate(thisObj){
        var d=openSelectDate(sysPath);
        var obj=thisObj.previousSibling;
        if(d!="" & d!=null)
        obj.value=d; 
    }
</script>
</asp:Content>
