90 lines
4.0 KiB
Plaintext
90 lines
4.0 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">
|
|
@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">
|
|
@*@Html.Action("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = ViewBag.saleDeptId, salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid, currentRight = WX.CRM.WebHelper.InitRights.CONST_工单统计 })*@
|
|
<li>@Html.Action("UserSSOComBox", "Control", new { currentRight = WX.CRM.WebHelper.InitRights.CONST_组别坐席统计 })</li>
|
|
<li><input id="btnToday" type="button" name="btnToday" value="今日" /> </li>
|
|
<li><input id="btnLastday" type="button" name="btnLastday" value="昨日" /> </li>
|
|
<li><input id="btnWeek" type="button" name="btnWeek" value="本周" /> </li>
|
|
<li><input id="btnMonth" type="button" name="btnMonth" value="本月" /> </li>
|
|
<li style="display:none;">时间选择:@Html.WdatePickerText("txt_STime", DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00", true, "style='width:150px;'")-@Html.WdatePickerText("txt_ETime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), true, "style='width:150px;'")</li>
|
|
<li>
|
|
@*@Html.ToolButtonPlain("btnQuery" , "icon-search", "查询", false, "")*@
|
|
@Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.GroupList)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Ord/MemoStatistics/GetMemoStatistics',
|
|
height: $(window).height() - 130,
|
|
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");
|
|
});
|
|
var _date = CRM_Comon().GetDate();
|
|
$("#btnToday").click(function () {
|
|
$("#txt_STime").val(_date.AddDays(0, { MinDate: true }));
|
|
$("#txt_ETime").val(_date.AddDays(0, { MaxDate: true }));
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$("#btnLastday").click(function () {
|
|
$("#txt_STime").val(_date.AddDays(-1, { MinDate: true }));
|
|
$("#txt_ETime").val(_date.AddDays(-1, { MaxDate: true }));
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$("#btnWeek").click(function () {
|
|
|
|
$("#txt_STime").val(_date.getDateOfWeek(1, { MinDate: true }));
|
|
$("#txt_ETime").val(_date.getDateOfWeek(7, { MaxDate: true }));
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$("#btnMonth").click(function () {
|
|
$("#txt_STime").val(_date.getFistDate({ MinDate: true }));
|
|
$("#txt_ETime").val(_date.getLastDate({ MaxDate: true }));
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
});
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
|
|
function export_click() {
|
|
var url = "/Ord/MemoStatistics/ExportAll?" + GetQueryStr() + "&saleDeptId=" + $("#nb1_uc_org_depts").val() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val() + "&Fireguid=" + GetGuid();
|
|
this.window.open(url);
|
|
}
|
|
</script>
|