ComplianceServer/oldcode/WEB/Views/Res/Customer/Trace.cshtml

55 lines
1.6 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.

@using WX.CRM.WebHelper;
@{
ViewBag.Title = "bas_agent";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<div class="mvctool">
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
</div>
<div class="bas_datagrid">
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
<ul class="toolBar_ul">
<li>
客户ID<input type="text" id="txt_resId" name="txt_resId" style="width: 200px;"/>
</li>
</ul>
</div>
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function() {
$('#tablist').tablegrid({
url: '/Res/Customer/Trace',
height: $(window).height() - 110,
loadNow: false
});
$("#btnQuery").click(function () { //搜索按钮点击事件
var resid = $("#txt_resId").val();
if (resid == '') {
$.messager.alert("警告", "客户ID不能为空", "error");
return;
}
$('#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>";
}
</script>