105 lines
3.2 KiB
Plaintext
105 lines
3.2 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@using WX.CRM.Model.Entity;
|
|
@{
|
|
ViewBag.Title = "合规统计";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
var stime = (DateTime)ViewBag.stime;
|
|
var etime = (DateTime)ViewBag.etime;
|
|
}
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
</div>
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
<li>添加时间:@Html.WdatePickerText("stime", string.Format("{0:yyyy-MM-dd}", stime))-@Html.WdatePickerText("etime", string.Format("{0:yyyy-MM-dd}", etime))</li>
|
|
</ul>
|
|
</div>
|
|
<table class="bas_datagrid_table" id="tablist" width="100%">
|
|
<thead>
|
|
<tr class="grid_table_head">
|
|
<td width="5%"></td>
|
|
<td width="10%">客服</td>
|
|
<td width="10%">工作组</td>
|
|
|
|
@foreach (var item in ViewBag.BigTypeList as List<BAS_COMTYPE>)
|
|
{
|
|
<td><a href="javascript:ListDetail('@item.map_TYPECODE')">@item.map_TYPENAME</a></td>
|
|
}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
</tbody>
|
|
</table>
|
|
<div id="rowList" style="margin-top:20px;"></div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
loadtablegrid();
|
|
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist2').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
|
|
$("#btnQuery").click(function () {
|
|
loadtablegrid();
|
|
});
|
|
});
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
|
|
function loadtablegrid() {
|
|
$.r_ajax({
|
|
url: "/WeiXin/Message/GetCountComplianceHtml",
|
|
type: "Post",
|
|
data: { stime: $("#stime").val(),etime:$("#etime").val() },
|
|
dataType: "json",
|
|
loading: true,
|
|
|
|
success: function (data) {
|
|
$("#tablist tbody").html(data.data);
|
|
$("#rowList").html(data.rowList);
|
|
$('#tablist2').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
}, error: 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>";
|
|
}
|
|
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getAllHead");
|
|
return columns;
|
|
}
|
|
|
|
function ListDetail(typeCode) {
|
|
window.parent.ChildAddTab('合规统计详情', '/WeiXin/Message/CountComplianceList?typeCode=' + typeCode + '&stime=' + $('#stime').val() + '&etime=' + $('#etime').val(), "");
|
|
}
|
|
|
|
</script>
|