<%@ page language="C#" autoeventwireup="true" inherits="Admin_Orders_Order_Details, 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>
    <link href="../style/StyleSheet.css" type="text/css" rel="stylesheet" />
    <link href="../style/workplace-merge.css" rel="stylesheet" />
    <link href="../style/index-new-merge.css" rel="stylesheet" />

    <script type="text/javascript">
        function getParameter(param)
        {
            var query = window.location.search;
            var iLen = param.length;
            var iStart = query.indexOf(param);
            if (iStart == -1)
               return "";
            iStart += iLen + 1;
            var iEnd = query.indexOf("&", iStart);
            if (iEnd == -1)
               return query.substring(iStart);

            return query.substring(iStart, iEnd);
        }
        window.onload=function (){
            document.getElementById("addGoods").setAttribute("href","AddOrder.aspx?goods="+getParameter("OrderGoods")+"&username="+getParameter("username"),true);
        }
    </script>

</head>
<body style="text-align:center;">
    <form id="form1" runat="server">
        <div style="width: 99%; text-align: center;">
            <div class="mod-wp-win">
                <div class="win-head-wrap">
                    <div class="win-head" id="mod-info-center-head">
                        <p style="text-align: center;">
                            <asp:HyperLink ID="PrintOrder" runat="server" CssClass="linkbutton" Target="_blank">[打印订单]</asp:HyperLink>
                            <asp:HyperLink ID="PrintPurchase" runat="server" CssClass="linkbutton" Target="_blank">[打印采购单]</asp:HyperLink>
                            <asp:HyperLink ID="PrintDelivery" runat="server" CssClass="linkbutton" Target="_blank">[打印发货单]</asp:HyperLink></p>
                    </div>
                </div>
                <div class="mod-info-center clr">
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#6A7F9A">
                        <tr>
                            <td bgcolor="#FFFFFF" align="center">
                                <div class="DLBoder">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr style="height: 25px;">
                                            <td class="DLBodertd">
                                                订单号：<asp:Label ID="OrderGood" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                    <asp:DataList ID="OrderDetail" runat="server" Width="100%" OnUpdateCommand="OrderDetail_UpdateCommand"
                                        OnDeleteCommand="OrderDetail_DeleteCommand">
                                        <HeaderTemplate>
                                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                <tr style="height: 25px;">
                                                    <td class="DLBodertd" style="width: 6%;">
                                                        商品图片
                                                    </td>
                                                    <td class="DLBodertd" style="width: 20%;">
                                                        商品名称
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        样式
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        重量
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        实际发量
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        会员价
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        你的价格
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        金额小计
                                                    </td>
                                                    <td class="DLBodertd" style="width: 15%;">
                                                    </td>
                                                </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr style=" height:25px;">
                                                <td class="DLBodertd">
                                                    <%--<asp:Label ID="ProductName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name")%>'></asp:Label>--%>
                                                    <a style="text-decoration: none; color: #000000;" title='<%# DataBinder.Eval(Container, "DataItem.name")%>'
                                                        href='../../Product.aspx?ID=<%# DataBinder.Eval(Container, "DataItem.id")%>'>
                                                        <img src='../<%# DataBinder.Eval(Container, "DataItem.pic")%>' alt='<%# DataBinder.Eval(Container, "DataItem.name")%>' width="40" height="40" />
                                                    </a>
                                                </td>
                                                <td class="DLBodertd">
                                                    <%--<asp:Label ID="ProductName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name")%>'></asp:Label>--%>
                                                    <a style="text-decoration: none; color: #000000;" title='<%# DataBinder.Eval(Container, "DataItem.name")%>'
                                                        href='../../Product.aspx?ID=<%# DataBinder.Eval(Container, "DataItem.id")%>'>
                                                        <%# DataBinder.Eval(Container, "DataItem.name")%>
                                                    </a>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="style" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.style") %>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="zhongliang" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.zhongliang") %>'></asp:Label>G
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:TextBox Width="50px" ID="ProductNum" Text='<%# DataBinder.Eval(Container, "DataItem.productnum") %>'
                                                        runat="server"></asp:TextBox>
                                                </td>
                                                <td class="DLBodertd">
                                                    ￥<asp:Label ID="Price2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.price2") %>'></asp:Label>元
                                                </td>
                                                <td class="DLBodertd">
                                                    ￥<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="DLBodertd">
                                                    ￥<asp:Label ID="paid" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.paid") %>'></asp:Label>元
                                                </td>
                                                <td class="DLBodertd">
                                                    <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>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table>
                                        </FooterTemplate>
                                    </asp:DataList>
                                    <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
                                        <tr style="height: 25px;">
                                            <td class="DLBodertd" 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&nbsp;&nbsp;
                                                <a href='AddOrder.aspx?goods=' id="addGoods" style="text-decoration: none;">添加商品</a></td>
                                        </tr>
                                        <tr>
                                            <td class="DLBodertd" 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 style="height: 25px;">
                                            <td class="DLBodertd" style="text-align: left;">
                                                其他可选费用：<asp:Label ID="KxFee" runat="server" Text="Label"></asp:Label></td>
                                        </tr>
                                        <tr  style="height: 25px;">
                                            <td class="DLBodertd" 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>
                                            <td class="DLBodertd" style="text-align: left;">
                                                送货方式：<asp:Label ID="deliverymethord" runat="server" Text="Label"></asp:Label>
                                                &nbsp;&nbsp;运费：<asp:TextBox ID="Fee" runat="server" Width="50px"></asp:TextBox>&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>
                                                <asp:Button ID="UpdateFee" runat="server" Height="20px" Text="修改运费" Width="70px"
                                                    OnClick="UpdateFee_Click" /></td>
                                        </tr>
                                    </table>
                                    <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                订单状态：</td>
                                            <td class="DLBodertd" 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 style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                下单用户：
                                            </td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="UserName" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd" style="height: 25px">
                                                账户余额：
                                            </td>
                                            <td class="DLBodertd" style="text-align: left; height: 25px;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="Leave" runat="server" ForeColor="Red"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                订货人姓名：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="realname" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd" style="height: 25px">
                                                收货人姓名：
                                            </td>
                                            <td class="DLBodertd" style="text-align: left; height: 25px;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="recepit" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                收获地址：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="address" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                邮政编码：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="postcode" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                联系电话：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="usertel" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                电子邮件：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="useremail" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                送货方式：&nbsp;</td>
                                            <td class="DLBodertd" 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>
                                                &nbsp;<asp:Button ID="Button4" runat="server" Height="20px" Text="打印快递单" Width="100px" /></td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                支付方式：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="subject" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr  style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                汇款人姓名：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="remitname" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr  style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                汇款日期：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="remitdate" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                汇款金额：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <asp:Label ID="remitmonkey" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                用户留言：&nbsp;</td>
                                            <td class="DLBodertd" style="text-align: left;">
                                                &nbsp;&nbsp;
                                                <%--<asp:Label ID="comments" runat="server" Text="Label"></asp:Label>--%>
                                                <asp:TextBox runat="server" ID="comments" Style="width: 500px; height: 50px;" Rows="10"
                                                    TextMode="MultiLine"></asp:TextBox>
                                                <asp:Button runat="server" ID="up_But" Text="修改" OnClick="up_But_OnClick" />
                                            </td>
                                        </tr>
                                        <tr style="height: 25px;">
                                            <td width="12%" class="DLBodertd">
                                                下单日期：&nbsp;</td>
                                            <td class="DLBodertd" 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 class="DLBodertd" style="text-decoration: none; height: 30px; vertical-align: middle;">
                                                <asp:Button ID="DeleteOrder" runat="server" Height="22px" Text="订单作废" Width="70px"
                                                    OnClick="DeleteOrder_Click" />
                                                <asp:Button ID="Button3" runat="server" Height="22px" Text="关闭窗口" Width="70px" OnClick="Button3_Click" />
                                                &nbsp;&nbsp;&nbsp;&nbsp;</td>
                                        </tr>
                                    </table>
                                </div>
                                <div style="height: 30px;">
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
