55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
@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>
|