ComplianceServer/oldcode/WEB/Views/Csvr/CustomerUC/CustomerOrderUC.cshtml

65 lines
2.2 KiB
Plaintext

@{
Layout = null;
}
<div class="group content_title_width">
<img src="~/Content/Images/communication.gif">
<span>客户订单</span>
<div class="togglebtn"></div>
</div>
<div class="content_div">
<table class="layui-table content_width">
<thead>
<tr>
<td>
<input id="AddAtiverOrder" class="btn btn-primary" value="添加活动订单" type="button">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input id="refreshOrder" class="btn btn-primary" value="刷新活动订单" onclick="refreshOrder()" type="button">
</td>
</tr>
</thead>
</table>
<div id="orderlists">
@Html.Action("OrderList", "SoftOrder", new { ResId = ViewBag.CustomerId })
</div>
</div>
<script type="text/javascript">
$("#AddAtiverOrder").click(function () {
window.parent.ChildAddTab("活动下单", "../Soft/SoftOrder/CreateActiveOrder?CustomerId=@ViewBag.CustomerId", "");
});
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
}
$(".cancelOrder").click(function () {
var $this = $(this);
var statu = $this.attr("status");
var orderId = $this.attr("OrderId");
if (statu == "0") {
$.messageBox5s("提示", "未开通订单无法撤消");
}
else if (statu == "2") {
$.messageBox5s("提示", "该订单已撤销");
}
else {
var src = "/Soft/SoftOrder/OrderRevApply?status=" + statu + "&OrderId=" + orderId;
$("#modalwindow").html(GetIframeHtml(src));
$("#modalwindow").window({ title: '编辑', width:500, height: 250, iconCls: 'icon-edit' }).window('open');
}
});
function refreshOrder() {
$.r_ajax({
url: "/Soft/SoftOrder/OrderList",
type: "Post",
data: { ResId: '@ViewBag.CustomerId' },
dataType: "html",
loading: true,
success: function (data) {
$("#orderlists").html(data);
}
});
}
</script>