
<div id="divDetail" title="订单详细信息" style="display: none">
    <div id="divDetailContent" style="overflow-y: auto; max-height: 720px;">
        <div class="FL" style="margin-bottom: 5px;">
            <span class="OrderStatus">订单状态：</span><span class="OrderStatus" id="dStatus"></span>
        </div>
        <div class="FR" style="margin-bottom: 5px;">
            <span class="OrderStatus">支付状态：</span> <span id="dPaymentStatus" class="OrderStatus" ></span>
        </div>
        <table class="tableDetail">
            <tr>
                <td class="label">
                    订单编号
                </td>
                <td style="width:240px;" id="dOrderNo"></td>
                <td class="label">
                    订单名称
                </td>
                <td id="dOrderName"></td>
            </tr>
            <tr>
                <td class="label">
                    客户
                </td>
                <td id="dCustomer"></td>
                <td class="label">
                    联系人
                </td>
                <td id="dContact"></td>
            </tr>
            <tr>
                <td class="label">
                    安装费
                </td>
                <td id="dFeeInstallation"></td>
                <td class="label">
                    送货费
                </td>
                <td id="dFeeDelivery"></td>
            </tr>
            <tr>
                <td class="label">
                    设计费
                </td>
                <td id="dFeeDesign"></td>
                <td class="label">
                    其它费用
                </td>
                <td id="dFeeOther"></td>
            </tr>
            <tr>
                <td class="label">
                    标价金额
                </td>
                <td id="dMarketAmount"></td>
                <td class="label">
                    折扣金额
                </td>
                <td id="dDiscount"></td>
            </tr>
            <tr>
                <td class="label">
                    实际金额
                </td>
                <td id="dAmount"></td>
                <td class="label">
                    已付金额
                </td>
                <td id="dPaid"></td>
            </tr>

            <tr>
                <td class="label">
                    预计完工
                </td>
                <td id="dExpectDeliveryDate"></td>
                <td class="label">
                    交易日期
                </td>
                <td id="dTransactionDate"></td>
            </tr>

            <tr>
                <td class="label">
                    送货方式
                </td>
                <td id="dDeliveryType"></td>
                <td class="label">
                    送货地址
                </td>
                <td id="dDeliveryAddress"></td>
            </tr>

            @*<tr>
                <td class="label">
                    自助查询
                </td>
                <td colspan="3" id="dQueryURL"></td>
            </tr>*@
            <tr>
                <td class="label">
                    开单人
                </td>
                <td id="dCreator"></td>
                <td class="label">
                    开单时间
                </td>
                <td id="dCreatedTime"></td>
            </tr>
            <tr>
                <td class="label">发票状态</td>
                <td id="dIsInvoiced"></td>
                <td class="label">
                    开票信息
                </td>
                <td id="dTaxInfo"></td>
            </tr>
            <tr>
                <td class="label">
                    完工日期
                </td>
                <td id="dCompletionDate"></td>
                <td class="label">
                    备注
                </td>
                <td colspan="3" id="dMemo"></td>
            </tr>
            <tr>
                <td class="label">
                    明细
                </td>
                <td colspan="3" id="dDetail">

                    <table class="tableDetail small-control" style="width:100%;max-width:1000px;">
                        <thead>
                            <tr class="title">
                                <th>订单名称</th>
                                <th>业务类型</th>
                                <th>材料</th>
                                <th style="width:60px">单位</th>
                                <th style="width:60px">数量</th>
                                <th style="width:60px">单价</th>
                                <th style="width:80px">金额</th>
                                <th>详细规格</th>
                                <th>备注</th>
                            </tr>
                        </thead>
                        <tbody id="tableDetail"></tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="label">
                    流程
                </td>
                <td colspan="3">
                    <table class="tableDetail small-control" style="width:100%;max-width:1000px;">
                        <thead>
                            <tr class="title">
                                <th style="width:120px">步骤名称</th>
                                <th style="width:120px">经办人</th>
                                <th>完成日期</th>
                            </tr>
                        </thead>
                        <tbody id="tdWorkFlow"></tbody>
                    </table>
                </td>
            </tr>
           
                <tr>
                    <td class="label">
                        关联外协订单
                    </td>
                    <td colspan="3">
                        <table class="tableDetail" id="tableFactory" style="width:100%;max-width:1000px;"></table>
                    </td>
                </tr>
            

            <tr>
                <td class="label">
                    支付记录
                </td>
                <td colspan="3" id="dPayment"></td>
            </tr>
            <tr>
                <td class="label">
                    修改历史
                </td>
                <td colspan="3" id="dHistory"></td>
            </tr>


            <tr>
                <td class="label">
                    附件
                </td>
                <td colspan="3" id='tdAttachment'></td>
            </tr>
            <tr>
                <td class="label">
                    备忘
                </td>
                <td colspan="3" class="list" id="MemoPanel">

                    <input type="text" style="width:400px" id="OrderMemo" />
                    <span class="redStar"></span>
                    <button id="btnOrderMemo" type="button" class="btn-add">添加备忘</button>
                    <div class="error-msg"></div>

                    <table style="width: 100%" id="MemoPanel">
                        <thead>
                            <tr class="title">
                                <th style="width: 70%;">
                                    内容
                                </th>
                                <th style="width: 15%">
                                    添加者
                                </th>
                                <th style="width: 15%">
                                    时间
                                </th>
                            </tr>
                        </thead>
                        <tbody id="dOrderMemo"></tbody>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div style="text-align: right;">
        <button id="btnClose" type="button" class="btn btn-default" onclick="$('#divDetail').dialog('close');">关闭</button>
    </div>
</div>
