ComplianceServer/oldcode/WEB/Views/WeiXin/OrderDeposit/Info.cshtml

49 lines
1.5 KiB
Plaintext

@{
ViewBag.Title = "退款订单";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<div class="bas_datagrid">
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function () {
loadtablegrid();
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
});
function frameReturnByClose() {
$("#modalwindow").window('close');
}
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes) {
$.messageBox5s('提示', mes);
}
function loadtablegrid() {
var resid = "@Request.QueryString["CustomerId"]";
$('#tablist').tablegrid({
url: '/WeiXin/OrderDeposit/Info',
height: $(window).height() - 110,
loadNow: true,
data: { resid: resid },
onLoadError: function () {
$.messager.alert("警告", "信息加载失败!", "error");
}
});
}
function ApplyDepositRefund(id) {
$("#modalwindow").html(GetIframeHtml("/WeiXin/OrderDeposit/Refund?id=" + id));
$("#modalwindow").window({ title: "订金退款申请", width: 500, height: 400, iconCls: 'icon-add' }).window('open');
}
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
}
</script>