<%@ page language="C#" autoeventwireup="true" inherits="ChkOrder, 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 id="Head1" runat="server">
    <title>订单</title>
    <style type="text/css">
    body,td{ font-size:12px;}
	.ReviewC{ background:#E0E0E0; font-weight:bolder; border-right:1px solid #EEEEEE}
	.table td{ border:1px solid #EEEEEE}
	.ProList{ }
	.OrderStateF,.OrderState0{border:1px solid #EEEEEE}
	.OrderStateF{ boder-right:none}
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table width="98%" align="center" cellspacing="0" bgcolor="">
                <tr>
                    <td bgcolor="#FFFFFF" align="center">
                        <div class="boder">
                            <asp:Label ID="OrderGood" runat="server" Text="Label" Visible="False"></asp:Label>
                            <asp:DataList ID="OrderDetail" runat="server" Width="100%" OnUpdateCommand="OrderDetail_UpdateCommand"
                                OnDeleteCommand="OrderDetail_DeleteCommand" OnItemDataBound="OrderDetail_ItemDataBound">
                                <HeaderTemplate>
                                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                                        <tr class="ProList" style="height: 25px;">
                                            <td class="ReviewC" style="width: 25%;">
                                                商品名称
                                            </td>
                                            <td class="ReviewC" style="width: 10%;">
                                                样式
                                            </td>
                                            <td class="ReviewC" style="width: 10%;">
                                                重量
                                            </td>
                                            <td class="ReviewC" style="width: 10%;">
                                                实际发量
                                            </td>
                                            <td class="ReviewC" style="width: 10%;">
                                                市场价
                                            </td>
                                            <td class="ReviewC" style="width: 10%;">
                                                你的价格
                                            </td>
                                            <td class="ReviewC" style="width: 10%;">
                                                金额小计
                                            </td>
                                            <td class="ReviewC" style="width: 15%;">
                                                操作
                                            </td><%if (State == "6")
                                          { %>
                                            <td class="ReviewC" style="width: 15%;">
                                                <asp:Label ID="Label3" runat="server" Text="退货"></asp:Label>
                                            </td>
                                            <td class="ReviewC" style="width: 15%;">
                                                <asp:Label ID="Label4" runat="server" Text="换货"></asp:Label>
                                            </td><%} %>
                                        </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr class="table">
                                        <td class="ProList" style="color: #FE5B03">
                                            <%--<asp:Label ID="ProductName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name")%>'></asp:Label>--%>
                                            <a href='Product.aspx?ID=<%# DataBinder.Eval(Container, "DataItem.id")%>' style="text-decoration: none;"
                                                title='<%# DataBinder.Eval(Container, "DataItem.name")%>'>
                                                <%# DataBinder.Eval(Container, "DataItem.name")%>
                                            </a>
                                        </td>
                                        <td class="ProList">
                                            <asp:Label ID="style" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.style") %>'></asp:Label>
                                        </td>
                                        <td class="ProList">
                                            <asp:Label ID="zhongliang" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.zhongliang") %>'></asp:Label>G
                                        </td>
                                        <td class="ProList">
                                            <asp:TextBox Width="50px" ID="ProductNum" Text='<%# DataBinder.Eval(Container, "DataItem.productnum") %>'
                                                runat="server"></asp:TextBox>
                                        </td>
                                        <td class="ProList">
                                            ￥<asp:Label ID="Price2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.price2") %>'></asp:Label>元
                                        </td>
                                        <td class="ProList">
                                            ￥<asp:Label ID="single" runat="server" Text='<%#Convert.ToSingle(Convert.ToDouble(DataBinder.Eval(Container, "DataItem.paid"))/Convert.ToDouble(DataBinder.Eval(Container, "DataItem.productnum"))) %>'></asp:Label>元
                                        </td>
                                        <td class="ProList">
                                            ￥<asp:Label ID="paid" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.paid") %>'></asp:Label>元
                                        </td>
                                        <td class="ProList">
                                            <asp:Button ID="Update" runat="server" CommandName="update" Text="更新" Height="20px"
                                                Width="50px" /><asp:Button ID="Delete" CommandName="Delete" runat="server" Height="20px"
                                                    Width="50px" Text="删除" />
                                        </td>
                                         <%if (State == "6")
                                          { %>
                                        <td class="ProList">
                                           
                                            <input id="Return" style="width: 50px; height: 20px;" type="button" onclick="location.href='UserCenter.aspx?Action=returnpro&goods=<%= Request.QueryString["dan"] %>&proid=<%# DataBinder.Eval(Container, "DataItem.id")%>&state=6&productnum=<%# DataBinder.Eval(Container, "DataItem.productnum") %>&jine=<%# DataBinder.Eval(Container, "DataItem.paid") %>&type=1';"
                                                value="退货" />
                                        </td>
                                     
                                        <td class="ProList">
                                           
                                            <input id="Button1" style="width: 50px; height: 20px;" type="button" onclick="location.href='UserCenter.aspx?Action=returnpro&goods=<%= Request.QueryString["dan"] %>&proid=<%# DataBinder.Eval(Container, "DataItem.id")%>&state=6&productnum=<%# DataBinder.Eval(Container, "DataItem.productnum") %>&jine=<%# DataBinder.Eval(Container, "DataItem.paid") %>&type=0';"
                                                value="换货" />
                                        </td><%} %>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                    </table>
                                </FooterTemplate>
                            </asp:DataList>
                            <table class="table" style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
                                <tr style="height: 25px;">
                                    <td class="OrderTableTop" style="text-align: left;">
                                        商品费用：<asp:Label ID="ProFee" runat="server" Text=""></asp:Label>，&nbsp;&nbsp; 商品预定总数量：<asp:Label
                                            ID="ProNum" runat="server" Text="Label"></asp:Label>
                                        件，订单总重量：<asp:Label ID="ProWeight" runat="server" Text="Label"></asp:Label>G</td>
                                </tr>
                                <tr class="table">
                                    <td class="OrderTableF" style="text-align: left;">
                                        <asp:DataList ID="Huidong" runat="server" Width="100%">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="Huidongs" PostBackUrl='<%# "../Activities.aspx?hdid" + DataBinder.Eval(Container, "DataItem.hdid")%>'
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.hdname")%>' runat="server"></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:DataList>
                                        <asp:DataList ID="LiPin" runat="server" Width="100%">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="Huidongs" PostBackUrl='<%# "../gifts.aspx?lpid" + DataBinder.Eval(Container, "DataItem.lpid")%>'
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.lpname")%>' runat="server"></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:DataList>
                                        <asp:Label ID="youhui" runat="server" Text=""></asp:Label><br />
                                        <asp:Label ID="lipj" runat="server" Text=""></asp:Label><br />
                                        <asp:Label ID="Label1" runat="server" Text="您是"></asp:Label>
                                        <asp:Label ID="Grade" runat="server" ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td class="OrderTable0" style="text-align: left;">
                                        其他可选费用：<asp:Label ID="KxFee" runat="server" Text="Label"></asp:Label></td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td class="OrderTablef" style="text-align: left;">
                                        <asp:DataList ID="UserKx" runat="server" OnItemDataBound="UserKx_ItemDataBound">
                                            <ItemTemplate>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr bgcolor="#E8E8E8">
                                                        <td colspan="2" height="13">
                                                            <%# DataBinder.Eval(Container, "DataItem.kxtitle")%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <%# DataBinder.Eval(Container, "DataItem.kxname")%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td width="13%">
                                                            <%# DataBinder.Eval(Container, "DataItem.infotitle")%>
                                                        </td>
                                                        <td width="87%">
                                                            <%# DataBinder.Eval(Container, "DataItem.shoptext")%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td width="13%">
                                                            价值：</td>
                                                        <td width="87%">
                                                            <%# DataBinder.Eval(Container, "DataItem.kxprice")%>
                                                            <asp:Label ID="pricesort" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.pricesort")%>'></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:DataList>
                                    </td>
                                </tr>
                                <tr class="table">
                                    <td class="OrderTableF" style="text-align: left;">
                                        送货方式：<asp:Label ID="deliverymethord" runat="server" Text="Label"></asp:Label>
                                        &nbsp;&nbsp;运费：<asp:Label ID="Fee" runat="server" Width="50px"></asp:Label>&nbsp;
                                        订单金额总计：<asp:Label ID="AllFee" runat="server" Text="Label" ForeColor="Red"></asp:Label>&nbsp;
                                        <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="(备注：礼品价不算在内) "></asp:Label>
                                    </td>
                                </tr>
                            </table>
                            <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
                                <tr class="table" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        订单状态：</td>
                                    <td class="OrderState0" align="left">
                                        <asp:CheckBox ID="State2" runat="server" Text="未作任何处理" /><span style='font-family: Wingdings;'>à</span>
                                        <asp:CheckBox ID="State3" runat="server" Text="已汇款、通知发货订单" /><span style='font-family: Wingdings;'>à</span>
                                        <asp:CheckBox ID="State4" runat="server" Text="确认收到款订单" /><span style='font-family: Wingdings;'>à</span>
                                        <asp:CheckBox ID="State5" runat="server" Text="已备货订单" /><span style='font-family: Wingdings;'>à</span>
                                        <asp:CheckBox ID="State6" runat="server" Text="已发货订单" />
                                        <%--<asp:Button ID="UpdateOrderState" runat="server" Height="20px" Text="修改订单状态" Width="100px"
                                            OnClick="UpdateOrderState_Click" />--%>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        下单用户：
                                    </td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="UserName" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF" style="height: 25px">
                                        账户余额：
                                    </td>
                                    <td class="OrderState0" style="text-align: left; height: 25px;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="Leave" runat="server" ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        订货人姓名：</td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="realname" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF" style="height: 25px">
                                        收货人姓名：
                                    </td>
                                    <td class="OrderState0" style="text-align: left; height: 25px;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="recepit" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        收获地址：&nbsp;</td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="address" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        邮政编码：&nbsp;</td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="postcode" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        联系电话：&nbsp;</td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="usertel" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        电子邮件：&nbsp;</td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="useremail" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        送货方式：&nbsp;</td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="deliverymethor" runat="server" Text=""></asp:Label>
                                        <%-- &nbsp; 选择快递公司：--%>
                                        <%--<asp:DropDownList ID="bg" runat="server" Width="100px">
                                        </asp:DropDownList>--%>
                                        <%--<asp:Label runat="server" ID="kd_Label"></asp:Label>--%>
                                        &nbsp;</td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        支付方式：&nbsp;</td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="subject" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        用户留言：&nbsp;</td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="comments" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr class="ProList" style="height: 25px;">
                                    <td width="12%" class="OrderStateF">
                                        下单日期：&nbsp;</td>
                                    <td class="OrderState0" style="text-align: left;">
                                        &nbsp;&nbsp;
                                        <asp:Label ID="actiondate" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                            <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td height="40">
                                        &nbsp;<asp:Button ID="Button3" runat="server" Height="20px" Text="关闭窗口" Width="70px"
                                            OnClick="Button3_Click" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
