90 lines
2.9 KiB
Plaintext
90 lines
2.9 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>
|
|
开始时间:
|
|
<input id='txt_Stime' name='txt_Stime' class='Wdate' type='text' value='@DateTime.Now.ToString("yyy-MM-dd")' onclick='javascript: WdatePicker(); ;' />
|
|
|
|
</li>
|
|
<li>
|
|
结束时间:
|
|
<input id='txt_Etime' name='txt_Etime' class='Wdate' type='text' value='@DateTime.Now.ToString("yyy-MM-dd")' onclick='javascript: WdatePicker(); ' />
|
|
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
|
|
|
|
$(function () {
|
|
|
|
$('#tablist').tablegrid({
|
|
url: '/Sms/SmsMessage/SmsRptUserHtml',
|
|
height: $(window).height() - 110,
|
|
loadNow: false,
|
|
});
|
|
|
|
$("#btnQuery").click(function () {//搜索按钮点击事件
|
|
$('#tablist').tablegrid({
|
|
url: '/Sms/SmsMessage/SmsRptUserHtml',
|
|
height: $(window).height() - 110,
|
|
loadNow: true
|
|
});
|
|
});
|
|
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
//导出订单列表
|
|
function btnexport_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Sms/SmsMessage/SmsRptUserExport?" + GetQueryStr() + "&" + getPageOptions("tablist"))));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
};
|
|
|
|
function ShowResDetial(url) {
|
|
window.parent.ChildAddTab("客户详细", url, "");
|
|
}
|
|
|
|
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>
|