94 lines
3.3 KiB
Plaintext
94 lines
3.3 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>
|
|
@*注册时间:@Html.WdatePickerText("txt_stime", DateTime.Now.ToString("yyyy-MM-dd"))-@Html.WdatePickerText("txt_etime", DateTime.Now.ToString("yyyy-MM-dd"))*@
|
|
注册时间:@Html.WdatePickerText("txt_stime", Request.QueryString["stime"])-@Html.WdatePickerText("txt_etime", Request.QueryString["etime"])
|
|
</li>
|
|
<li>@Html.Action("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = ViewBag.saleDeptId, salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid })</li>
|
|
<li><input type="hidden" id="hasMobile" name="txt_hasMobile" value="@Html.Raw(Request.QueryString["hasMobile"])" /></li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.Grid)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Soft/SoftUser/InviteCountHtml',
|
|
height: $(window).height() - 130,
|
|
loadNow: false,
|
|
data: GetControlValue
|
|
});
|
|
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
|
|
$(window).resize(function () {
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
});
|
|
|
|
function GetControlValue() {
|
|
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val() };
|
|
/*return {
|
|
stime: $('#txt_stime').val(),
|
|
etime: $('#txt_etime').val(),
|
|
hasMobile: $('#hasMobile').val(),
|
|
saleDeptId: $("#nb1_uc_org_depts").val(),
|
|
groupId: $("#nb1_uc_org_groups").val(),
|
|
userId: $("#nb1_uc_org_ids").val()
|
|
};*/
|
|
}
|
|
|
|
|
|
function ShowResDetial(url) {
|
|
window.parent.ChildAddTab("客户详细", url, "");
|
|
}
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function Export_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Soft/SoftUser/Export?" + GetQueryStr())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
|
|
|
|
</script>
|