70 lines
2.2 KiB
Plaintext
70 lines
2.2 KiB
Plaintext
@using WX.CRM.WebHelper;
|
||
@{
|
||
ViewBag.Title = "开户短信查询";
|
||
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
||
}
|
||
<div class="mvctool">
|
||
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
||
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
||
</div>
|
||
<div class="bas_datagrid">
|
||
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
||
<ul class="toolBar_ul">
|
||
<li id="Li_verifyResId">客户ID:<input type="text" name="txt_verifyResId" style="width:150px;" /> </li>
|
||
<li id="Li_username">用户名:<input type="text" name="txt_username" style="width:150px;" /> </li>
|
||
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.gridTable)
|
||
</div>
|
||
<script type="text/javascript">
|
||
|
||
|
||
$(function () {
|
||
|
||
$('#tablist').tablegrid({
|
||
url: '/Sms/SmsMessage/GetOpenSmsHtml',
|
||
height: $(window).height() - 110,
|
||
loadNow: false,
|
||
});
|
||
|
||
$("#btnQuery").click(function () {//搜索按钮点击事件
|
||
$('#tablist').tablegrid({
|
||
url: '/Sms/SmsMessage/GetOpenSmsHtml',
|
||
height: $(window).height() - 110,
|
||
loadNow: true
|
||
});
|
||
});
|
||
|
||
$(window).resize(function () {//自动适应大小
|
||
$('#tablist').tablegrid('resize', {
|
||
height: $(window).height() - 110
|
||
});
|
||
});
|
||
});
|
||
|
||
function GetIframeHtml(src) {
|
||
return "<iframe width='100%' height='98%' scrolling='auto' frameborder='0'' src='" + src + "'></iframe>";
|
||
}
|
||
function frameReturnByClose() {
|
||
$("#modalwindow").window('close');
|
||
}
|
||
function frameReturnByReload(flag) {
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
|
||
function getPageOptions(gridID) {
|
||
var option = $("#tablist").tablepage('getPagination');
|
||
var str = "rows=" + option.rows + "&page=" + option.page + "&order=" + option.order + "&sort=" + option.sort;
|
||
return str;
|
||
}
|
||
//获取datagrid头部及字段
|
||
function getDataGridHeader() {
|
||
var columns = $('#tablist').tablegrid("getHead");
|
||
var list = eval(columns);
|
||
list.splice(1, 4);
|
||
return list;
|
||
}
|
||
|
||
</script>
|