64 lines
2.5 KiB
Plaintext
64 lines
2.5 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
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>日期:@Html.WdatePickerText("sdCTime", new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd"))~@Html.WdatePickerText("edCTime", (new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1)).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"))</li>
|
|
<li style="padding-left:50px;">备注:推广注册数=注册数-邀请注册数,推广注册手机数=手机注册数-邀请注册手机数</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: 'DayReportHtml',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
data: GetControlValue
|
|
});
|
|
function GetControlValue() {
|
|
return {
|
|
sdCTime: $("#sdCTime").val(),
|
|
edCTime: $("#edCTime").val()
|
|
};
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$(window).resize(function () {
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
});
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
function Export_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Soft/SoftUser/DayReportExport?sdCTime=" + $("#sdCTime").val() + "&edCTime=" + $("#edCTime").val()+"&"+ GetQueryStr())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe id='ifymbc' width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
</script> |