<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderDetil.aspx.cs" MasterPageFile="../Global.Master" Inherits="Web.AdminManager.Product.OrderDetil" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form action="" method="post">
        <table class="ui-table ui-table-bordered">
            <colgroup>
                <col style="width: 100px;" />
                <col />
            </colgroup>
            <thead>
                <tr>
                    <th colspan="2">订单信息</th>
                </tr>
            </thead>
            <tr>
                <td>订单名称</td>
                <td><%=OrderInfo[0]["OrderName"] %></td>
            </tr>
            <tr>
                <td>下单时间</td>
                <td><%=((DateTime)OrderInfo[0]["BuyDate"]).ToString("yyyy-MM-dd") %></td>
            </tr>
            <tr>
                <td>订单状态</td>
                <td>
                    <select name="state">
                        <%=CommonLib.Helper.StringFromEnum(typeof(CommonLib.Enums.RentSate),"<option value=\"{1}\" {2}>{0}</option>",(int)OrderInfo[0]["state"],"selected") %>
                    </select>
                </td>
            </tr>
            <tr>
                <td>上架时间</td>
                <td>
                    <input type="text" class="ui-input-small" value="<%=((DateTime)OrderInfo[0]["OKDate"]).ToString("yyyy-MM-dd") %>" name="OKDate" /></td>
            </tr>

            <%if (ct == CommonLib.Enums.ClassType.服务器租用)
              { %>
            <tr>
                <td colspan="2" style="background-color: #f5f5f5; font-weight: 700; text-align: center; line-height: 38px; padding: 0px;">主机信息</td>
            </tr>
            <tr>
                <td>机箱</td>
                <td>
                    <textarea rows="8" name="BOX"><%=OrderInfo[0]["BOX"] %></textarea></td>
            </tr>
            <tr>
                <td>主板</td>
                <td>
                    <textarea rows="8" name="CPT"><%=OrderInfo[0]["CPT"] %></textarea></td>
            </tr>
            <tr>
                <td>CPU</td>
                <td>
                    <textarea rows="8" name="CPU"><%=OrderInfo[0]["CPU"] %></textarea></td>
            </tr>
            <tr>
                <td>内存</td>
                <td>
                    <textarea rows="8" name="DDR"><%=OrderInfo[0]["DDR"] %></textarea></td>
            </tr>
            <tr>
                <td>硬盘</td>
                <td>
                    <textarea rows="8" name="SATA"><%=OrderInfo[0]["SATA"] %></textarea></td>
            </tr>
            <%}
              if (ct == CommonLib.Enums.ClassType.服务器托管)
              {
            %>
            <tr>
                <td colspan="2" style="background-color: #f5f5f5; font-weight: 700; text-align: center; line-height: 38px; padding: 0px;">托管信息</td>
            </tr>
            <tr>
                <td>机箱</td>
                <td>
                    <textarea name="Box" rows="8"><%=OrderInfo[0]["Box"] %></textarea></td>
            </tr>
            <%
              }
              if (ct == CommonLib.Enums.ClassType.VPS)
              {
            %>
            <tr>
                <td colspan="2" style="background-color: #f5f5f5; font-weight: 700; text-align: center; line-height: 38px; padding: 0px;">主机信息</td>
            </tr>
            <tr>
                <td>操作系统</td>
                <td>
                    <select name="system">
                        <%=CommonLib.Helper.StringFromEnum(typeof(CommonLib.Enums.SystemType),"<option value=\"{1}\" {2}>{0}</option>",CommonLib.ToObj.GetInt32((string)OrderInfo[0]["System"],0),"selected") %>
                    </select>
                </td>
            </tr>
            <tr>
                <td>CPU</td>
                <td><input type="text" class="ui-input-mini" value="<%=OrderInfo[0]["CPUNum"] %>" name="CPUNum" /> 核</td>
            </tr>
            <tr>
                <td>内存</td>
                <td><input type="text" class="ui-input-mini" value="<%=OrderInfo[0]["DDR"] %>" name="DDR" /> MB</td>
            </tr>
            <tr>
                <td>硬盘</td>
                <td><input type="text" class="ui-input-mini" value="<%=OrderInfo[0]["SATA"] %>" name="SATA" /> GB</td>
            </tr>
            <%
              }
            %>

            <tr>
                <td colspan="2" style="background-color: #f5f5f5; font-weight: 700; text-align: center; line-height: 38px; padding: 0px;">硬件环境</td>
            </tr>
            <tr>
                <td>机房</td>
                <td><%=OrderInfo[0]["HomeName"] %></td>
            </tr>
            <tr>
                <td>带宽</td>
                <td>
                    <input type="text" class="ui-input-mini" name="BW" value="<%=OrderInfo[0]["BW"] %>" />
                    Mbps</td>
            </tr>
            <tr>
                <td>流量</td>
                <td>
                    <input type="text" class="ui-input-mini" name="Flow" value="<%=OrderInfo[0]["Flow"] %>" />
                    GB/月</td>
            </tr>
            <tr>
                <td>IP数量</td>
                <td>
                    <input type="text" class="ui-input-mini" name="IPNum" value="<%=OrderInfo[0]["IPNum"] %>" />
                    个</td>
            </tr>

            <tr>
                <td>IP列表</td>
                <td>
                    <textarea rows="8" name="IPs"><%=OrderInfo[0]["IPs"] %></textarea></td>
            </tr>
            <tr>
                <td colspan="2" style="background-color: #f5f5f5; font-weight: 700; text-align: center; line-height: 38px; padding: 0px;">其它信息</td>
            </tr>
            <%if (ct == CommonLib.Enums.ClassType.服务器租用)
              { %>
            <tr>
                <td>产权信息</td>
                <td>
                    <textarea rows="8" name="PTR"><%=OrderInfo[0]["PTR"] %></textarea></td>
            </tr>
            <%} %>
            <tr>
                <td>备注</td>
                <td>
                    <textarea rows="8" name="Memo"><%=OrderInfo[0]["Memo"] %></textarea></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <div>
                        <button type="submit" class="ui-btn ui-btn-primary">提交保存</button>
                        <button type="button" class="ui-btn" onclick="location.href='orders.aspx?SClassType=<%=ct.GetHashCode() %>';">返回</button>
                    </div>
                </td>
            </tr>
        </table>
    </form>
</asp:Content>
