<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<jsp:include page="../../../common/admin/modal_content_pre.jsp">
    <jsp:param name="modal_title" value="详情"/>
</jsp:include>
<form id="publisResourceDetailFormId" action="/admin/datapublish_mgr/publisResourceDetail.action" method="post" role="form" class="form-horizontal">
                <div class="form-group">
                    <label class="col-md-3 col-sm-3 control-label">订单号：</label>
                    <div class="col-md-7 col-sm-7"> ${busiModel.orderListModel.orderNumber}
                    </div>
                    <span class="field-validation-valid help-block"></span>
                </div>
                <div class="form-group">
                    <label class="col-md-3 col-sm-3 control-label">使用方：</label>
                    <div class="col-md-7 col-sm-7">
                        ${busiModel.orderListModel.userName}
                    </div>
                    <span class="field-validation-valid help-block"></span>
                </div>
                <div class="form-group">
                    <label class="col-md-3 col-sm-3 control-label">下单日期：</label>
                    <div class="col-md-7 col-sm-7">
                        <fmt:formatDate value='${busiModel.orderListModel.paymentTime}' pattern='yyyy-MM-dd'></fmt:formatDate>
                    </div>
                    <span class="field-validation-valid help-block"></span>
                </div>
                <div class="form-group">
                    <label class="col-md-3 col-sm-3 control-label">订单类型：</label>
                    <div class="col-md-7 col-sm-7">
                        ${busiModel.orderListModel.orderType}
                    </div>
                    <span class="field-validation-valid help-block"></span>
                </div>
                <div class="form-group">
                    <label class="col-md-3 col-sm-3 control-label">订单金额：</label>
                    <div class="col-md-7 col-sm-7">
                        ${busiModel.orderListModel.orderAmount}
                    </div>
                    <span class="field-validation-valid help-block"></span>
                </div>
                <div class="form-group">
                    <label class="col-md-3 col-sm-3 control-label">已付款金额：</label>
                    <div class="col-md-7 col-sm-7">
                        ${busiModel.orderListModel.orderState=="已付款"? busiModel.orderListModel.orderAmount:"0.00"}
                    </div>
                    <span class="field-validation-valid help-block"></span>
                </div>
                <div>
                    <table id="fixedPriceTable" class="table table-hover  table-condensed table-bordered "
                           align="center">
                        <thead>
                        <tr>
                            <td>资源类型</td>
                            <td>资源名称</td>
                            <td>套餐价格</td>
                            <td>生效日期</td>
                            <td>失效日期</td>
                            <td>使用次数</td>
                            <td>金额</td>
                        </tr>
                        </thead>
                        <tbody>
                            <c:if test="${busiModel.orderGoodDetailModelList !=null}">
                                <c:forEach items="${busiModel.orderGoodDetailModelList}" var="item" varStatus="status">
                                    <tr id="fixedPriceTrId">
                                        <td>${item.resourceType}</td>
                                        <td>${item.resourceName}</td>
                                        <td>${item.packagePrice}</td>
                                        <td><fmt:formatDate value="${item.effectiveDate}" pattern="yyyy/MM/dd" /></td>
                                        <td><fmt:formatDate value="${item.expiriedDate}" pattern="yyyy/MM/dd"  /></td>
                                        <td>${item.useTimes}</td>
                                        <td>${item.orderAmount}</td>
                                    </tr>
                                </c:forEach>
                            </c:if>
                        </tbody>
                    </table>
                </div>
</form>
<jsp:include page="../../../common/admin/modal_content_post.jsp"></jsp:include>
<jsp:include page="../../../common/admin/modal_footer_pre.jsp"></jsp:include>
<jsp:include page="../../../common/admin/modal_footer_post.jsp"></jsp:include>