104 lines
3.7 KiB
Plaintext
104 lines
3.7 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<style>
|
|
.txt-expand {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.expand-activity {
|
|
background: url("/Content/Images/tools.png") no-repeat scroll 0 0;
|
|
}
|
|
|
|
.close-activity {
|
|
background: url("/Content/Images/icon/edit_remove.png") no-repeat;
|
|
}
|
|
</style>
|
|
|
|
<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.Action("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = ViewBag.saleDeptId, salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid })</li>*@
|
|
<li>@Html.Action("UserSSOComBox", "Control", new { currentRight = WX.CRM.WebHelper.InitRights.CONST_我的注册邀请 })</li>
|
|
<li>
|
|
注册时间:@Html.WdatePickerText("txt_stime", DateTime.Now.ToString("yyyy-MM-dd"))-@Html.WdatePickerText("txt_etime", DateTime.Now.ToString("yyyy-MM-dd"))
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: 'MyInviteListHtml',
|
|
height: $(window).height() - 110,
|
|
loadNow: false,
|
|
data: GetControlValue
|
|
});
|
|
function GetControlValue() {
|
|
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val() };
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$(window).resize(function () {
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
$(".txt-expand").live("click", function () {
|
|
if ($(this).hasClass("expand-activity")) {
|
|
$(this).removeClass("expand-activity").addClass("close-activity");
|
|
$("[typeName='" + $(this).attr("title") + "']").css("display", "");
|
|
}
|
|
else {
|
|
$(this).removeClass("close-activity").addClass("expand-activity");
|
|
$("[typeName='" + $(this).attr("title") + "']").css("display", "none");
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
|
|
function frameReturnByClose()
|
|
{
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag)
|
|
{
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes)
|
|
{
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
|
|
function ShowResDetial(url) {
|
|
window.parent.ChildAddTab("客户详细", url, "");
|
|
}
|
|
function Export_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Soft/SoftUser/MyInviteExport?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> |