<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_PreOrder, HoWaveVGO" title="Untitled Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" src="../Js/HowaveAjax.js" ></script>
<div class="pageTitle"><asp:Literal ID="OrderTitle" runat="server" /><asp:Label ID="LabOrderFromID" runat="server" Visible="False" /></div>
<div id="order_content">
   <table class="ShopOrderStyle">
        <caption><%=OrderTitleName %>状态信息</caption>
        <tr>
            <td><b>买家：</b><asp:HyperLink ID="BuyerLink" runat="server" Target="_blank" /></td>
            <td><b>卖家：</b><asp:HyperLink ID="SalerLink" runat="server" Target="_blank"/></td>          
            <td>&nbsp;</td>
            <td><b>下单时间：</b><asp:literal runat="server" ID="Order_InputTime"/></td>
            <td>&nbsp;&nbsp;</td>
        </tr>
        <tr>
            <td><asp:CheckBox ID="CheckNeedInvoice" runat="server" Enabled="False" Text="需要发票" /></td>
            <td><asp:CheckBox ID="CheckInvoied" runat="server" Enabled="False" Text="已开发票" /></td>
            <td><b>订单状态：</b><asp:Literal ID="OrderStatus" runat="server" /></td>            
            <td><b>付款状态：</b><asp:Literal ID="PayStatus" runat="server" /></td>
            <td><b>物流状态：</b><asp:Literal ID="DeliverStatus" runat="server" /></td>
        </tr>
    </table>
    <table class="ShopOrderStyle">
        <caption><%=OrderTitleName %>联系信息</caption>
        <tr>
            <td class="OrderTitle">收货人姓名：</td>
            <td  width="30%"><asp:Literal ID="Contacter_Name" runat="server" /></td>
            <td class="OrderTitle">联系电话：</td>
            <td  width="30%"><asp:Literal ID="Contacter_Phone" runat="server" /></td>
        </tr>
        <tr>
            <td class="OrderTitle">收货人地址：</td>
            <td><asp:Literal ID="Contacter_Address" runat="server" /></td>
            <td class="OrderTitle">邮政编码：</td>
            <td><asp:Literal ID="Contacter_ZipCode" runat="server" /></td>
        </tr>
        <tr>
            <td class="OrderTitle">收货人邮箱：</td>
            <td><asp:Literal ID="Contacter_Email" runat="server" /></td>
            <td class="OrderTitle">收货人手机：</td>
            <td><asp:Literal ID="Contacter_Mobile" runat="server" /></td>
        </tr>
        <tr>
            <td class="OrderTitle">支付方式：</td>
            <td><asp:HyperLink ID="Pay_Type" runat="server" NavigateUrl="#"/></td>
            <td class="OrderTitle">送货方式：</td>
            <td><asp:Literal ID="Deliver_Type" runat="server" />：<asp:Literal ID="Deliver_Charge" runat="server" />元<asp:Literal ID="Deliver_ChargePaymentType" runat="server" /></td>
        </tr>
        <tr>
            <td class="OrderTitle">发票信息：</td>
            <td><asp:Literal ID="Need_Invoiced" runat="server" /></td>
            <td class="OrderTitle">备注/留言：</td>
            <td><asp:Literal ID="Order_Remark" runat="server" /></td>
        </tr>
    </table>
     <table class="ShopOrderStyle">
        <caption><%=OrderTitleName %>商品信息</caption>
        <tr>
            <th>商 品 名 称</th>
            <th>单位</th>
            <th>数量</th>
            <th><asp:literal ID="Pd_OriginPrice_Title" runat="server"/></th>
            <th><asp:literal ID="Pd_TruePrice_Title" runat="server"/></th>
            <th><asp:literal ID="Pd_TargetPrice_Title" runat="server"/></th>
            <th>金 额</th>
            <th>服务期限</th>
        </tr>
        <tr class="ShopProductOrderStyle">
            <td><asp:HyperLink ID="Pd_Name" runat="server"  Target="_blank"/></td>
            <td><asp:Literal ID="Pd_Puit" runat="server" /></td>
            <td><asp:Literal ID="Pd_Quantity" runat="server" /></td>
            <td><span style="color:Blue"><asp:Literal ID="Pd_OriginPrice" runat="server" /></span></td>
            <td><span style="color:green"><asp:Literal ID="Pd_TruePrice" runat="server" /></span></td>
            <td><span style="color:red"><asp:Literal ID="Pd_TargetPrice" runat="server" /></span></td>
            <td><asp:Literal ID="Pd_Total" runat="server" /></td>
            <td><asp:Literal ID="Pd_ServiceTerm" runat="server" /></td>
        </tr>
        <tr>
            <td align="right" colspan="6" >
                <b>合计：</b></td>
            <td align="left" colspan="2">
                <b><asp:Literal ID="Pd_Total1" runat="server" /></b>
            </td>
        </tr>
        <tr>
           <td colspan="4">
                付款方式折扣率：<asp:Literal ID="Pd_PayDiscount" runat="server" /> &nbsp; &nbsp;运费：<asp:Literal ID="DeliverCharge" runat="server" /> 元 &nbsp; &nbsp;税率：<asp:Literal ID="LiteralTaxRate" runat="server"></asp:Literal>% &nbsp; &nbsp;价格含税：否<asp:Panel ID="PanelPayFee" runat="server" Height="50px" Visible="False"
                  >
                   商城货币支付手续费:<asp:Literal ID="LiteralPayFee" runat="server"></asp:Literal>%</asp:Panel><br />
               实际金额：<asp:Literal ID="Pd_Total2" runat="server" />
             <br />
                返还 <font color="red"><asp:Literal ID="Pd_PresentMoney" runat="server" /></font> 元现金券，赠送 <font color="red"><asp:Literal ID="Pd_PresentExp" runat="server" /></font> 点积分，赠送 <font color="red">
                    <asp:Literal ID="Pd_Point" runat="server" /></font> 点点券
            </td>
            <td colspan="2">
               <asp:Literal ID="OrderMoneyTitle" runat="server" Text="<b>定金金额：</b>"  Visible="false"/><br />              
               <b>实际金额：</b>
              
            </td>
            <td>
                <asp:Literal ID="OrderMoney" runat="server" /><br />  
                <b><asp:Literal ID="Pd_Total3" runat="server" /></b>
            </td>
            <td>
               <b>已付款：</b><asp:Literal ID="Pd_ReceiveMoney" runat="server" /><br />
               <b style="color:Green">尚欠款：</b><asp:Literal ID="Pd_OwnMoney" runat="server" />
            </td>                 
        </tr>
    </table>
</div>
<div style="text-align:center">   
            <asp:Button ID="ButUpdate" runat="server" Text="修改订单" OnClick="ButUpdate_Click" Visible="false"/>
            <asp:Button ID="Pay_OrderMoney" runat="server" Text="预付定金"  OnCommand="PayMoney"  Visible="false"/>
            <%--<asp:Button ID="Pay_OutLineMoney" runat="server" Text="线下支付" OnCommand="PayMoney" CommandName="pay_outlinemoney" Visible="false"/>
            <asp:Button ID="Pay_OnLineMoney" runat="server" Text="在线支付" OnCommand="PayMoney" CommandName="pay_onlinemoney" Visible="false"/>
            <asp:Button ID="Pay_ShopMoney" runat="server" Text="商城货币支付" OnCommand="PayMoney" CommandName="pay_shopmoney" Visible="false"/>--%>
            <asp:Button ID="ButReturnMoney" runat="server" Text="退款" OnClick="ButReturnMoney_Click" Visible="false"/> 
            <asp:Button ID="ButReturn" runat="server" Text="退货" OnClick="ButReturn_Click" Visible="false"/>           
            <input type="button" value="打印订单" onclick="PrintOrder()" /> 
</div>           
    <br />
    <div class="ShopOrderTips"><div style="padding:5px;">
    <b>注：</b>“<font color="blue">原价</font>”指商品的原始零售价，“<font color="green">实价</font>”指系统根据
     <span>
        最终价格计算公式表</span>  自动计算出来的商品最终价格，“<font color="red">指定价</font>”指管理员手动指定的最终价格。商品的最终销售价格以“指定价”为准。<br />
    &nbsp;（指定价格＊数量（１＋税率）＋运费）＊付款方式折扣率＝订单总金额&nbsp;&nbsp;
   </div></div>
   <div class="FloatDivStyle"  id="SureDiv" >
         <div  class="pageTitle">确认订单</div>             
            <asp:CheckBox ID="CheckSendMobileMesToCus" runat="server" Text="同时发送手机短信通知会员已经确认订单" /><br />
            <asp:CheckBox ID="CheckSendMobileMesToRe" runat="server" Text="同时发送手机短信通知收货人已经确认订单" /><br />
            <asp:CheckBox ID="CheckSendMesMesToCus" runat="server" Checked="True" Text="同时使用站内短信通知会员已经确认订单" /><br /> 
            <asp:CheckBox ID="CheckSendEmailMesToCus" runat="server" Text="同时使用Email通知会员已经确认订单" /><br />
            <asp:CheckBox ID="CheckSendEmailMesToRe" runat="server" Text="同时使用Email通知收货人已经确认订单" /><br />
         <div style="text-align:center">
           
            <input type="button" value="关闭" onclick="document.getElementById('SureDiv').style.display='none'" />
         </div>      
         <div style=" background:#D3E7F6; color:#448AD0; "> 请仔细检查此订单的所有信息，特别是实际销售价、
                        售后服务期限等信息，确定无误后点“确认订单”按
                        钮，否则请点击“取消”按钮。
         </div>    
   </div>
   <div id="MainMenu">
	<div class="TabMenu">
		<!--一级导航-->				
       <ul id="M1" >
          <li><a href="javascript:GetShopOrder('bank','<%=OrderFormID %>','OrderOtherInfo')"  onclick="setButtonActive(0)">付款信息</a></li>         　
       </ul>
    </div>
    <div class="OrderOtherInfoStyle">
        <div id="OrderOtherInfo" style="width:98%; height:auto; text-align:center; vertical-align:middle;"></div> 
    </div> 
  </div>
  <div id="showPayInfo" style="position:absolute;z-index:1000; border:solid 1px black; padding:10px; background:white; display:none;width:250px; filter:alpha(opacity=90)" onmouseover="this.style.display='';" onmouseout="this.style.display='none'">
      <asp:Literal ID="PayInfo" runat="server" />
   </div> 
  <asp:HiddenField ID="h_productID" runat="server" />
  <asp:HiddenField ID="h_orderFormID" runat="server" />
  <asp:HiddenField ID="h_salerID" runat="server" />
  <asp:HiddenField ID="h_buyerID" runat="server" />
  <asp:HiddenField ID="h_salerName" runat="server" />
  <asp:HiddenField ID="h_buyerName" runat="server" />
  <asp:HiddenField ID="h_deliverChargePayType" runat="server" />
  <asp:HiddenField ID="h_buyerEmail" runat="server" />
  <input type="hidden" name="PrintContent" id="PrintContent" /> 
  
  <br />
  <script type="text/javascript">
  function PrintOrder()
  {
    var old_action,old_target;
    var _form=document.forms["aspnetForm"];
    old_action=_form.action;
    old_target=_form.target;
    _form.action="Shop_PrintOrder.aspx";
    _form.target="blank";
    var _printContent=document.getElementById("PrintContent");
    _printContent.value=document.getElementById("order_content").innerHTML;
    _form.submit();
    _form.action=old_action;
    _form.target=old_target;
    _printContent.value="";
    
  }
  </script>
</asp:Content>

