<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin.Yun.KS_YunOrderItem" Codebehind="KS.YunOrderItem.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="server">
<div id="manage_top" class="toptitle menu_top_fixed">
        <ul>
          <li id='p9'><a href="javascript:;" onclick="location.href='KS.YunProduct.aspx';"><strong><b></b>返回</strong></a></li> 
        </ul>
    </div>
    <div class="menu_top_fixed_height"></div> 
<div class="content-area">
  <div class="myTitle">查看订单详情</div>

    <table width="100%"border="0" cellpadding="1" cellspacing="1" class="CTable no-borderTable"> 

					<tr class="tdbg">
					 <td class="lefttd">订单号：</td>
					 <td style="text-align:left"><%=dr["orderId"].ToString() %></td>
					</tr>
			
					<tr class="tdbg">
					<td class="lefttd">产品名称：</td>
					<td style="text-align:left"><%=dr["Name"].ToString() %></td>
					</tr>
					<tr class="tdbg">
					<td class="lefttd">产品类型：</td>
					<td style="text-align:left"><%=Yun.GetYunTypeName(Utils.StrToInt(dr["yuntype"].ToString ())) %></td>
					</tr>       
					<tr class="tdbg">
					<td class="lefttd">下单时间：</td>
					<td style="text-align:left"><%=dr["inputTime"].ToString() %></td>
					</tr>       
					<tr class="tdbg">
					<td class="lefttd">订单价格：</td>
					<td style="text-align:left"><%=Kesion.APPCode.Public.ReturnShopPrice(dr["totalPrice"].ToString()) %></td>
					</tr>       
					<tr class="tdbg">
					<td class="lefttd">订单状态：</td>
					<td style="text-align:left">
						<%=Kesion.BLL.Yun.GetOrderStatus(Utils.StrToInt(dr["PayStatus"].ToString()),Utils.StrToInt(dr["DeliverStatus"].ToString()),Utils.StrToInt(dr["Yuntype"].ToString ()),Utils.StrToDateTime(dr["EffectiveDate"].ToString()),Utils.StrToInt(dr["InfoID"].ToString()))%>
					</td>
					</tr>

                  <%if (dr["IsInvoice"].ToString()=="0")
                 {}else{ %>
                         <tr class="tdbg">
					        <td class="lefttd">发票信息：</td>
                           <td style="text-align:left">
                           <%=dr["Invoiced"].ToString()=="1"?"发票已开":"<font color=red>发票未开</font>"%>
                          </td>
				        </tr>
                <%} %>

                 <%
                     if (dr["DeliverStatus"].ToString() == "1")
                     { %>
					<tr class="tdbg">
					 <td class="lefttd">开通信息：</td>
					 <td style="text-align:left">
					  <%=Utils.StrToInt(dr["YunType"].ToString())==1?Utils.StrToInt(dr["videoType"].ToString())==1?"Writetoken/appId":Utils.StrToInt(dr["YunType"].ToString())==4?"appId":"":Utils.StrToInt(dr["videoType"].ToString())==21?"云服务器的IP地址":"appid" %>
                      ：<%=dr["OpenAppID"].ToString() %><br />
                     <%=Utils.StrToInt(dr["videoType"].ToString()) == 21?"远程桌面账号":Utils.StrToInt(dr["YunType"].ToString())==1?"ReadToken/appSecret":Utils.StrToInt(dr["YunType"].ToString())==4?"appSecret":"" %>：
                        <%=dr["OpenAppSerceet"].ToString() %><br />
                     <%=Utils.StrToInt(dr["videoType"].ToString()) == 21?"远程桌面密码":Utils.StrToInt(dr["YunType"].ToString())==1?"uid":Utils.StrToInt(dr["YunType"].ToString())==4?"userId":"" %>：
                         <%=dr["OpenUid"].ToString() %><br />
                        <%if (!string.IsNullOrEmpty(dr["OpenRemark"].ToString())){ %>
                        备注信息： <%=dr["OpenRemark"].ToString() %>
                         <%} %>
                     </td>
					</tr>
				<%} %>

					<tr class="tdbg">
					     <td class="lefttd"></td>
						 <td>
							  <div class="cz_btn">

                                  <%if (Utils.StrToInt(dr["PayStatus"].ToString()) > 0 && dr["YuntYPE"].ToString()=="3")
                                      { %>
                                   <script>
                                          function YunDownLoad() {
                                             location.href="<%=KSCMS.GetInstallDir() + MyCache.GetCacheConfig(4)%>/Label/KS.TemplateSkin.aspx?action=yundown&showType=-1&page=1&templateId=<%=dr["infoid"].ToString()%>";
                                            }
                                   </script>
                                   <span><input type="button" name="ctl00$KSContent$Button1" value="下载模板风格" onclick="YunDownLoad();" id="btndown" class="button" /></span>
                                  <%} %>

								  <span><input type="button" name="ctl00$KSContent$Button1" value="返回" onclick="history.back();" id="ctl00_KSContent_Button1" class="button" /></span>
							  </div>
						 </td>
					</tr>
			 </table>


		
   </div>     
</asp:Content>
