<%@ Page Language="C#" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Import Namespace="Hishop.SystemServices" %>
<!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>
    
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <Hishop:RefundOrder ID="RefundOrder" runat="server">
                <SkinTemplate>
<Hishop:StatusMessage id="Status" runat="server" Visible="False" />
<!--订单的商品（自选配置列表）-->
<div class="grdHeaderStyle" style="cursor: pointer;">
    <ul>
        <li class="addProductTmpt" style="float: left;">
            <asp:Literal ID="litOrderItem" runat="server" Text="<%$Resources:OrderDetails,IDS_Label_OrderAmount%>"></asp:Literal>
        </li>
        <li style="float: left; padding-left: 20px;"><strong>
            <asp:Literal ID="lblOpen" Text="<%$Resources:OrderDetails,IDS_FormField_OrderNumber%>"
                runat="server"></asp:Literal>：</strong><asp:Literal ID="litOrderId" runat="server"></asp:Literal>
        </li>
        <li style="float: left; padding-left: 20px;"><strong>
            <asp:Literal ID="Literal6" Text="<%$Resources:OrderDetails,IDS_FormField_OrderStatus%>"
                runat="server"></asp:Literal>：<Hishop:ActivityStatusLabel ID="lblOrderActivityStatus" runat="server" />
                       <Hishop:PaymentStatusLabel ID="lblOrderPaymentStatus" runat="server" />
                                        <Hishop:ShippingStatusLabel ID="lblOrderShippingStatus" runat="server" />
                                        <Hishop:RefundStatusLabel ID="lblOrderRefundStatus" runat="server" />
        </li>
        <li style="float: left; padding-left: 20px;"><strong>
            <asp:Literal ID="Literal7" Text="<%$Resources:OrderDetails,IDS_FormField_OrderPrice%>"
                runat="server"></asp:Literal>：</strong><Hishop:FormatedMoneyLabelForAdmin ID="litOrderPrice"
                    runat="server" />
        </li>
        <li style="float: left; padding-left: 20px;"><strong>
            <asp:Literal ID="Literal8" Text="<%$Resources:OrderDetails,IDS_FormField_OrderDate%>"
                runat="server"></asp:Literal>：</strong><Hishop:FormatedTimeLabel ID="litDateTime"
                    runat="server" />
        </li>
    </ul>
</div>
<div class="grdGroupListLi" style="margin-bottom: 12px; text-align: left; padding-left: 10px;">
    <asp:DataList ID="dlstOrderItems" runat="server" Width="98%" DataKeyField="ItemId">
                <HeaderTemplate>
                    <table class="GridViewStyle" id="GridViewTable" cellspacing="0" border="0" style="border-collapse: collapse;"
                        width="100%">
                        <tr class="GridViewHeaderStyle">
                           <th>
                                <span>
                                    <asp:Literal ID="litProcuct" runat="server"></asp:Literal></span>
                            </th>
                             <th>
                                <span>
                                    <asp:Literal ID="lblProductPoints" runat="server" Text="货号"></asp:Literal></span>
                            </th>
                            <th>
                                <span>
                                    <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:OrderDetails,IDS_Header_Product %>"></asp:Literal></span>
                            </th>
                            <th>
                                <span>
                                    <asp:Literal ID="litProductQuantity" runat="server" Text="商品单价"></asp:Literal></span>
                            </th>
                            <th>
                                <span>
                                    <asp:Literal ID="litAmount" runat="server" Text="赠送积分"></asp:Literal></span>
                            </th>
                            <th>
                                <span>
                                    <asp:Literal ID="litPoints" runat="server" Text="购买数量"></asp:Literal></span>
                            </th>
                            <th>
                                <span>
                                    <asp:Literal ID="litShipQuantity" runat="server" Text="<%$ Resources:OrderDetails,IDS_Header_ShipQuantity %>"></asp:Literal></span>
                            </th>
                            <th>
                                <span>
                                    <asp:Literal ID="litAllAmount" runat="server" Text="小计"></asp:Literal></span>
                            </th>
                            <th>
                                <span>
                                    <asp:Literal ID="litRemark" runat="server" Text="<%$ Resources:OrderDetails,IDS_Header_Remartk %>"></asp:Literal></span>
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                       <td style="border-bottom: solid 1px #DDDDDD;width:15%;">
                            <Hishop:Common_Link_Product ID="Common_Link_Product1" runat="server">
                                <Hishop:Common_ProductThumbnail ID="Common_ProductThumbnail1" runat="server" DataField="ThumbnailsUrl"/>
                            </Hishop:Common_Link_Product>

                        </td>
                         <td style="border-bottom: solid 1px #DDDDDD;width:10%;">
                            <asp:Literal ID="Literal5" runat="server" Text='<%# Eval("sku") %>'></asp:Literal>

                        </td>
                         <td style="border-bottom: solid 1px #DDDDDD;width:18%;text-align:left;" >
                            
                            <span style="word-break:break-all;"><Hishop:ProductNavigationDetails ID="productNavigationDetails1" ProductName='<%# Eval("ItemDescription") %>'
                                ProductId='<%# Eval("ProductId") %>' runat="server" />
                            <span>

                            <asp:GridView ID="grdOrderItemValues" runat="server" AutoGenerateColumns="false"
                                GridLines="None" Width="100%" ShowHeader="false"
                                DataSource='<%# DataBinder.Eval(Container.DataItem, "LookupListItems") %>'>
                                <Columns>
                                    <asp:TemplateField >
                                        <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("ListDescription") %>'/>：
                                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("ItemDescription") %>'/>
                                                <span style="color:red;">(<Hishop:FormatedMoneyLabelForAdmin ID="FormatedMoneyLabelForAdmin1" runat="server" Money='<%# Eval("AdjustedPrice") %>'/>)</span>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>

                        </td>
                        <td style="border-bottom: solid 1px #DDDDDD;">
                            <Hishop:FormatedMoneyLabelForAdmin ID="lblAmount" runat="server" Money='<%# Eval("ItemAdjustedPrice") %>' />
                        </td>
                        <td style="border-bottom: solid 1px #DDDDDD;">
                            <asp:Literal ID="lblProductPoints" runat="server" Text='<%# Eval("Points") %>'></asp:Literal>
                        </td>
                        <td style="border-bottom: solid 1px #DDDDDD;">
                            <asp:Literal ID="lblProductQuantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:Literal>
                        </td>
                        <td style="border-bottom: solid 1px #DDDDDD;">
                            <asp:Literal ID="lblShipQuantity" runat="server" Text='<%# Eval("ShipmentQuantity") %>'></asp:Literal>
                            
                        </td>
                        <td style="border-bottom: solid 1px #DDDDDD;">
                            <Hishop:FormatedMoneyLabelForAdmin ID="FormatedMoneyLabelForAdmin2"  runat="server" Money='<%# (decimal)Eval("ItemAdjustedPrice")*(int)Eval("Quantity") %>'/>
                        </td>
                        <td style="border-bottom: solid 1px #DDDDDD; padding-right: 10px;">
                            <asp:Literal ID="lblRemark" runat="server" Text='<%# Eval("Remark") %>'></asp:Literal>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:DataList>
</div>
<!--退款-->
<div class="grdHeaderStyle" style="cursor:pointer;" onclick="expItemsTable('addItemsTable');">
    <ul>
        <li class="addProductTmpt">
        <asp:Literal ID="Literal1" Text='<%$Resources:RefundOrder,IDS_Literal_RefundAmount %>' runat="server"></asp:Literal>
        </li>
    </ul>
</div>
<script>
	var isIE = !!document.all;
	function errorEventTable(tableObject)
	{			
		if (isIE)
		{
			var nextNodeObject = tableObject.parentNode.parentNode.nextSibling;
		}
		else
		{
			var nextNodeObject = tableObject.parentNode.parentNode.nextSibling.nextSibling;
		}
		(nextNodeObject.style.display == "none")?nextNodeObject.style.display = "":nextNodeObject.style.display = "none";
		(nextNodeObject.style.display == "none")?tableObject.src = '<%= Globals.ApplicationPath + "/utility/pics/plus.gif" %>':tableObject.src ='<%= Globals.ApplicationPath + "/utility/pics/minus.gif" %>';
	}
</script>

<table style="width: 100%;" cellspacing="0" cellpadding="0" class="formTableList" id="Table2">
    <tr>
        <td class="leftTD"><asp:Literal ID="litIsAdvances" runat="server" Text="<%$ Resources:RefundOrder,IDS_Literal_IsAdvances %>" />：</td>
        <td class="rightTD"><asp:Label ID="lblIsAdvances" runat="server" /></td>
    </tr>
    <tr>
        <td class="leftTD"><asp:Literal ID="litRefundReasons" runat="server" Text="<%$Resources:RefundOrder, IDS_DataField_RefundReasons%>" /></td>
        <td class="rightTD"><asp:Label ID="lblRefundReasons" runat="server" /></td>
    </tr>
    <tr>
        <td class="leftTD"><asp:Literal ID="Literal2" runat="server" Text="<%$Resources:RefundOrder, IDS_DataField_OrderAmount%>"/></td>
        <td class="rightTD"><Hishop:FormatedMoneyLabelForAdmin ID="lblOrderAmount" runat="server" /></td>        
    </tr>
    <tr>
        <td class="leftTD"><asp:Literal ID="Literal3" runat="server" Text="<%$Resources:RefundOrder, IDS_DataField_RefundMam%>" /></td>
        <td class="rightTD"><asp:Label ID="lblOrderMam" runat="server" /></td>
    </tr>
    <tr>
        <td class="bottonLeftTD">
            <asp:Button ID="btnComfirmRefund"  runat="server" Text="<%$ Resources:RefundOrder, IDS_Button_ComfirmRefund %>"  OnClientClick="return PageIsValid()"  CssClass="inp_L1"/> 
        </td>
        <td class="rightTD">
            <asp:Button ID="btnRejectRefund"  runat="server" Text="<%$ Resources:RefundOrder, IDS_Button_RejectRefund %>"  OnClientClick="return PageIsValid()"  CssClass="inp_L1"/>                                  
        </td>
        <td class="rightTD">&nbsp;</td>
    </tr>
</table>
                </SkinTemplate>
            </Hishop:RefundOrder>
        </div>
    </form>
</body>
</html>