107 lines
4.2 KiB
Plaintext
107 lines
4.2 KiB
Plaintext
@using WX.CRM.WebHelper
|
|
<style type="text/css">
|
|
.btr {
|
|
background: antiquewhite
|
|
}
|
|
.tr_onmouser_over .btr {
|
|
background: #DEE4EC;
|
|
}
|
|
.tr_onclick .btr {
|
|
background: #FBEC88;
|
|
}
|
|
</style>
|
|
@{
|
|
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">
|
|
<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>时间选择:@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>
|
|
部门:<select id="slt_deptId" name="slt_deptId" style="width:150px;height:22px">
|
|
@{
|
|
var deptList = ViewBag.DeptList;
|
|
foreach (var item in deptList)
|
|
{
|
|
<option value="@item.Value">@item.Text</option>
|
|
}
|
|
}
|
|
</select>
|
|
</li>
|
|
<li>@Html.Action("UserComBoxByRole", "Control", new { type = "2", controlName = "nb1", onLoadSucced = "onLoadSucced()", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId, iseid = "0", currentRight = WX.CRM.WebHelper.InitRights.CONST_诊股资源工单统计 })</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.GroupList)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Ord/MemoStatistics/ZhenGuMemo',
|
|
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() };
|
|
return {};
|
|
}
|
|
$("#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/ZhenGuExport?" + GetQueryStr() + "&Fireguid=" + GetGuid();
|
|
this.window.open(url);
|
|
}
|
|
</script>
|