TG.WXCRM.V4/WEB/Views/Level2/Leve2Order/ApplyDetails.cshtml

73 lines
2.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model WX.CRM.Model.Entity.L2_SOFT_ORDER
@using WX.CRM.WebHelper;
@using WX.CRM.Common;
@{
ViewBag.Title = "Details";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<script type="text/javascript">
function openOrder() {
var mark = $("#txt_resid").val();
$.r_ajax({
url: "/Level2/Leve2Order/OpenOrder",
type: "Post",
data: { id: '@ViewBag.orderId', reson: mark },
dataType: "json",
loading: true,
success: function (data) {
if (data.type == 1) {
window.parent.frameReturnByMes(data.message);
window.parent.frameReturnByReload(true);
window.parent.frameReturnByClose()
}
else {
window.parent.frameReturnByMes(data.message);
}
}
});
}
</script>
<div>
<table class="fromEditTable setTextWidth300">
<thead>
<tr>
<td colspan="3">
投顾订单信息:
</td>
</tr>
</thead>
<tr>
<td style=" width:120px;">订单号:@Html.Label(Model.ORDERID.ToString())</td>
<td style=" width:50px;">用户名:@Html.Label(PhoneHelper.FormatPhoneUserName(Model.USERNAME))</td>
@*<td style=" width:120px;">@Html.Label(Model.PRODUCTCODE) </td>*@
<td style=" width:120px;">产品名称:@ViewBag.productName</td>
</tr>
<tr>
<td>开通天数:@ViewBag.days</td>
<td>客户ID@Html.Label(Model.RESID == null ? "" : Model.RESID)</td>
<td>支付金额:@ViewBag.price</td>
</tr>
<tr>
<td>下单人:@InnerUserHelper.Instance.GetUsername(Model.CREATEUSER) </td>
<td>下单时间:@Html.Label(Model.CTIME == null ? "" : Model.CTIME.ToString())</td>
<td>状态:@Html.Label(Model.ORDERSTATUS == 0 ? "未开通" : Model.ORDERSTATUS == 1 ? "已开通" : "已撤销")</td>
</tr>
<tr>
<td colspan="3">开通时间:@Html.Label(Model.OTIME == null ? "" : Model.OTIME.Value.ToString())</td>
</tr>
<tr>
<td>备注:</td>
<td>
@Html.TextArea("txt_resid")
</td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="button" class="class='btn btn-danger" value="开通订单" id="openOrder" onclick="openOrder()" />
</td>
</tr>
</table>
</div>