151 lines
6.5 KiB
Plaintext
151 lines
6.5 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 type="text" name="txt_alias" style="width:120px" /> </li>
|
||
<li>审核状态:<select id="slt_auditStatus" name="slt_auditStatus" style="width:220px">
|
||
<option value="" selected>全部</option>
|
||
<option value="0">待审核</option>
|
||
<option value="1">审核通过</option>
|
||
<option value="-1">审核未通过</option>
|
||
</select>
|
||
</li>
|
||
<li>
|
||
微信状态:<select id="slt_isValid" name="slt_isValid" style="width:220px">
|
||
<option value="">全部</option>
|
||
<option value="0">下线</option>
|
||
<option value="1">正常</option>
|
||
<option value="2">手工暂停</option>
|
||
<option value="3">系统暂停</option>
|
||
</select>
|
||
</li>
|
||
<li>客户ID:<input type="text" name="txt_resID" style="width:150px" /> </li>
|
||
<li>员工工号:<input type="text" name="txt_eid" value="@Html.Raw(Request.QueryString["eid"]==null?"":Request.QueryString["eid"])" style="width:120px" /> </li>
|
||
<li style="display:none;">时间:@Html.WdatePickerText("txt_stime", "")-@Html.WdatePickerText("txt_etime", "")</li>
|
||
<li>
|
||
@Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.gridTable)
|
||
</div>
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
loadtablegrid();
|
||
|
||
$(window).resize(function () {//自动适应大小
|
||
$('#tablist').tablegrid('resize', {
|
||
height: $(window).height() - 110
|
||
});
|
||
});
|
||
|
||
$("#btnQuery").click(function () {
|
||
$('#tablist').tablegrid("Search");
|
||
});
|
||
});
|
||
function frameReturnByClose() {
|
||
$("#modalwindow").window('close');
|
||
}
|
||
function frameReturnByReload(flag) {
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
function frameReturnByMes(mes) {
|
||
$.messageBox5s('提示', mes);
|
||
}
|
||
|
||
function loadtablegrid() {
|
||
$('#tablist').tablegrid({
|
||
url: '/WeiXin/WorkAccountInit/GetAuditWorkAccountHtmlList',
|
||
height: $(window).height() - 110,
|
||
loadNow: true,
|
||
onLoadError: function () {
|
||
$.messager.alert("警告", "信息加载失败!", "error");
|
||
}
|
||
});
|
||
}
|
||
</script>
|
||
@*ToolBar事件处理*@
|
||
<script type="text/javascript">
|
||
function GetIframeHtml(src) {
|
||
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
||
}
|
||
|
||
function Audit_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$("#modalwindow").html(GetIframeHtml("/WeiXin/WorkAccountInit/AuditEdit?id=" + row.PKID + "&Ieguid=" + GetGuid()));
|
||
$("#modalwindow").window({ title: '编辑', width: 700, height: 700, iconCls: 'icon-edit' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
//获取datagrid头部及字段
|
||
function getDataGridHeader() {
|
||
var columns = $('#tablist').tablegrid("getAllHead");
|
||
return columns;
|
||
}
|
||
|
||
function Valid_Click() {
|
||
$.messager.confirm('提示', '你确定要执行下线操作吗?', function (r) {
|
||
if (r) {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$.r_post("/WeiXin/WorkAccountInit/ModifyWorkAccountIsValid?alias=" + row.ALIAS, function (data) {
|
||
if (data.type == 1) {
|
||
$("#tablist").tablegrid('Load');
|
||
}
|
||
$.messageBox5s('提示', data.message);
|
||
}, "json");
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
});
|
||
}
|
||
|
||
function Pause_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$("#modalwindow").html(GetIframeHtml("/WeiXin/WorkAccountInit/AuditPause?id=" + row.PKID + "&Ieguid=" + GetGuid()));
|
||
$("#modalwindow").window({ title: '暂停', width: 600, height: 500, iconCls: 'icon-edit' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
|
||
function Stop_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$("#modalwindow").html(GetIframeHtml("/WeiXin/WorkAccountInit/AuditStop?id=" + row.PKID + "&Ieguid=" + GetGuid()));
|
||
$("#modalwindow").window({ title: '停用', width: 600, height: 500, iconCls: 'icon-edit' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
|
||
function ReUse_Click() {
|
||
$.messager.confirm('提示', '你确定要重新启用该微信号吗?', function (r) {
|
||
if (r) {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$.r_post("/WeiXin/WorkAccountInit/ReUseWorkAccount?alias=" + row.ALIAS, function (data) {
|
||
if (data.type == 1) {
|
||
$("#tablist").tablegrid('Load');
|
||
}
|
||
$.messageBox5s('提示', data.message);
|
||
}, "json");
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
});
|
||
}
|
||
|
||
function QRCode_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$("#modalwindow").html(GetIframeHtml("/WeiXin/WorkAccountInit/QRCodeEdit?id=" + row.PKID + "&Ieguid=" + GetGuid()));
|
||
$("#modalwindow").window({ title: '修改二维码', width: 700, height: 700, iconCls: 'icon-edit' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
|
||
</script>
|