ComplianceServer/oldcode/WEB/Views/Soft/SoftOrder/Details.cshtml

69 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.SOFT_ACTIVEORDER
@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: "/Soft/SoftOrder/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;">下单人:@InnerUserHelper.Instance.GetUsername(Model.CREATEUSER) </td>
<td style=" width:120px;">渠道标签:@Html.Label(Model.PRODUCTCODE) </td>
</tr>
<tr>
<td style=" width:120px;">活动名称:@ViewBag.productName</td>
<td style=" width:60px;">状态:@Html.Label(Model.ORDERSTATUS == 0 ? "未开通" : Model.ORDERSTATUS == 1 ? "已开通" : "已撤销")</td>
<td style="width:120px;">开通时间:@Html.Label(Model.OTIME == null ? "" : Model.OTIME.Value.ToString())</td>
</tr>
<tr>
<td style=" width:120px;">客户ID@Html.Label(Model.RESID == null ? "" : Model.RESID)</td>
<td style=" width:60px;">用户名:@Html.Label(PhoneHelper.FormatPhoneUserName(Model.USERNAME))</td>
<td style=" width:120px;">下单时间:@Html.Label(Model.CTIME == null ? "" : Model.CTIME.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>