70 lines
2.6 KiB
Plaintext
70 lines
2.6 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>
|
|
类型:
|
|
<select name="slt_ntype" id="slt_ntype" onchange="ChangeSlt()">
|
|
<option value="1">微信记录违规</option>
|
|
<option value="2">录音违规</option>
|
|
<option value="3">企业微信</option>
|
|
</select>
|
|
</li>
|
|
<li>违规提交时间:@Html.WdatePickerText("txt_stime", new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd"))~@Html.WdatePickerText("txt_etime", DateTime.Now.ToString("yyyy-MM-dd"))</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/WeiXin/MyIllegalRecord/GetHtmlList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true
|
|
});
|
|
$("#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 ChangeSlt() {
|
|
if ($("#slt_ntype").val() == "1") {
|
|
window.location.href = "/WeiXin/MyIllegalRecord/MesageIllegal?urlTitle=" + encodeURI("我的违规记录--微信违规");
|
|
}
|
|
else if ($("#slt_ntype").val() == "2") {
|
|
window.location.href = "/WeiXin/MyIllegalRecord/RecodeIllegal?urlTitle=" + encodeURI("我的违规记录--录音违规");
|
|
}
|
|
else if ($("#slt_ntype").val() == "3") {
|
|
window.location.href = "/WeiXin/MyIllegalRecord/QWllegal?urlTitle=" + encodeURI("我的违规记录--企业微信违规");
|
|
}
|
|
}
|
|
</script>
|
|
@*ToolBar事件处理*@
|
|
<script type="text/javascript">
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
</script>
|