ComplianceServer/oldcode/WEB/Views/Soft/RemoteCode/Index.cshtml

48 lines
1.5 KiB
Plaintext

@using WX.CRM.WebHelper;
@{
ViewBag.Title = "bas_agent";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<div class="mvctool">
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
</div>
<div class="bas_datagrid">
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function () {
$('#tablist').tablegrid({
url: '/Soft/RemoteCode/GetHtmlList',
height: $(window).height() - 110,
loadNow: true,
onLoadSuccess: function () {
//成功
}, onLoadError: function () {
//失败
}
});
$("#btnQuery").click(function () {//搜索按钮点击事件
$('#tablist').tablegrid("Search");
});
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
});
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
</script>
@*ToolBar事件处理*@
<script type="text/javascript">
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
}
function Create_Click() {
$("#modalwindow").html(GetIframeHtml("/Soft/RemoteCode/Edit"));
$("#modalwindow").window({ title: '申请协调授权', width: 450, height: 280, iconCls: 'icon-add' }).window('open');
}
</script>