220 lines
8.4 KiB
Plaintext
220 lines
8.4 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "工作微信在线列表";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script src="~/Scripts/op/tablegrid.sort.js"></script>
|
|
<div class="mvctool">
|
|
<a style="float: left;" class="l-btn l-btn-plain" onclick='Refresh_Click(1)'>
|
|
<span class="l-btn-left">
|
|
<span class="l-btn-text icon-search" style="padding-left: 20px;">
|
|
在线列表
|
|
</span>
|
|
</span>
|
|
</a>
|
|
|
|
<a style="float: left;" class="l-btn l-btn-plain" onclick='Refresh_Click(2)'>
|
|
<span class="l-btn-left">
|
|
<span class="l-btn-text icon-search" style="padding-left: 20px;">
|
|
手工暂停列表
|
|
</span>
|
|
</span>
|
|
</a>
|
|
<a style="float: left;" class="l-btn l-btn-plain" onclick='Refresh_Click(3)'>
|
|
<span class="l-btn-left">
|
|
<span class="l-btn-text icon-search" style="padding-left: 20px;">
|
|
下线列表
|
|
</span>
|
|
</span>
|
|
</a>
|
|
<a style="float: left;" class="l-btn l-btn-plain" onclick='Refresh_Click(10)'>
|
|
<span class="l-btn-left">
|
|
<span class="l-btn-text icon-search" style="padding-left: 20px;">
|
|
24小时未反馈量用户
|
|
</span>
|
|
</span>
|
|
</a>
|
|
<a style="float: left;" class="l-btn l-btn-plain" onclick='FengHao_Click()'>
|
|
<span class="l-btn-left">
|
|
<span class="l-btn-text icon-edit" style="padding-left: 20px;">
|
|
标记是否封号
|
|
</span>
|
|
</span>
|
|
</a>
|
|
<style>
|
|
.WeiXinIcon {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
</style>
|
|
<a style="float: left;" class="l-btn l-btn-plain" onclick='WeiHu_Click()'>
|
|
<span class="l-btn-left">
|
|
<span class="l-btn-text csicon WeiXinIcon" style="padding-left: 20px;">
|
|
维护
|
|
</span>
|
|
</span>
|
|
</a>
|
|
@*<div class="datagrid-btn-separator"></div>
|
|
<a style="float: left;" class="l-btn l-btn-plain">
|
|
显示主管信息:<input type="checkbox" onclick="showLeaderList()" id="leaderBox" /></a>
|
|
<div class="datagrid-btn-separator"></div>*@
|
|
|
|
|
|
</div>
|
|
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
<li class="show_condition">
|
|
工号或姓名:
|
|
<input name="txt_eid" style="width:80px;" />
|
|
<input name="txt_type" id="txt_type" value="1" type="hidden" />
|
|
</li>
|
|
<li class="show_condition">
|
|
微信号:
|
|
<input name="txt_alias" style="width:120px;" />
|
|
</li>
|
|
<li class="show_condition">
|
|
<li>组别:<input name="txt_GroupName" style="width:120px;" /></li>
|
|
<li class="show_condition">
|
|
版本号:
|
|
<select name="slt_version" style="width:200px">
|
|
<option value="">全部</option>
|
|
@if (ViewBag.AllVersion != null)
|
|
{
|
|
foreach (var item in ViewBag.AllVersion as List<string>)
|
|
{
|
|
<option value="@item">@item</option>
|
|
}
|
|
}
|
|
</select>
|
|
|
|
</li>
|
|
<li class="show_condition">
|
|
微信状态:<select name="slt_zaixian">
|
|
<option value="">全部</option>
|
|
<option value="1">---在线---</option>
|
|
<option value="2">---离线---</option>
|
|
<option value="3">---微信离线---</option>
|
|
</select>
|
|
</li>
|
|
<li class="show_condition">
|
|
好友反馈:
|
|
<select name="slt_friendfankui">
|
|
<option value="">全部</option>
|
|
<option value="1">当天有反馈</option>
|
|
<option value="2">1天未反馈</option>
|
|
<option value="3">2-5天未反馈</option>
|
|
<option value="5">5天以上未反馈</option>
|
|
</select>
|
|
</li>
|
|
<li class="show_condition">
|
|
数据反馈:
|
|
<select name="slt_datafankui">
|
|
<option value="">全部</option>
|
|
<option value="1">当天有反馈</option>
|
|
<option value="2">1天未反馈</option>
|
|
<option value="3">2-5天未反馈</option>
|
|
<option value="5">5天以上未反馈</option>
|
|
</select>
|
|
</li>
|
|
<li class="show_condition">
|
|
微信用户名:
|
|
<select name="slt_username">
|
|
<option value="">全部</option>
|
|
<option value="1">有上传</option>
|
|
<option value="2">--空--</option>
|
|
</select>
|
|
</li>
|
|
<li style="display:none;">
|
|
<input id="fenghaoguolv" checked="checked" name="ckb_fenghaoguolv" type="checkbox" value="1" />
|
|
<label for="fenghaoguolv">过滤封号</label>
|
|
</li>
|
|
<li>
|
|
@Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
var showLeader = 0;
|
|
$(function () {
|
|
//datagridLoad(1);
|
|
$('#tablist').tablegrid({
|
|
url: '/WeiXin/WorkAccount/GetAliveHtmlList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
onLoadSuccess: function () {
|
|
/*if (showLeader == 0) {
|
|
var list = $("#tablist").tablegrid("getAllRows");
|
|
list.forEach(function (value, index, array) {
|
|
if (value.LeaderType > 0) {
|
|
var m = index + 1;
|
|
$('#tablist tr:eq(' + m + ')').css('display', 'none');
|
|
}
|
|
});
|
|
}*/
|
|
},
|
|
onLoadError: function () {
|
|
$.messager.alert("警告", "信息加载失败!", "error");
|
|
}
|
|
});
|
|
$(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 FengHao_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
$("#modalwindow").html(GetIframeHtml("/WeiXin/WorkAccount/Fenghao?alias=" + row.Alias + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '编辑', width: 500, height: 300, iconCls: 'icon-edit' }).window('open');
|
|
} else {
|
|
|
|
$("#modalwindow").html(GetIframeHtml("/WeiXin/WorkAccount/Fenghao?Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '编辑', width: 500, height: 300, iconCls: 'icon-edit' }).window('open');
|
|
}
|
|
}
|
|
function WeiHu_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
var width = $(window).width()*0.8;
|
|
var height = $(window).height() * 0.8;
|
|
$("#modalwindow").html(GetIframeHtml("/WeiXin/WorkAccount/WeiHu?UserName=" + row.UserName + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '维护', width: width, height: height, iconCls: 'WeiXinIcon' }).window('open');
|
|
} else {
|
|
$.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords');
|
|
|
|
}
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
function showLeaderList() {
|
|
if ($('#leaderBox').is(':checked')) {
|
|
showLeader = 1;
|
|
} else {
|
|
showLeader = 0;
|
|
}
|
|
datagridLoad();
|
|
}
|
|
|
|
function Refresh_Click(type) {
|
|
$("#txt_type").val(type);
|
|
$('#tablist').tablegrid("Search");
|
|
//datagridLoad(type);
|
|
}
|
|
</script>
|