87 lines
3.5 KiB
Plaintext
87 lines
3.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>月结年月:
|
|
@*@Html.DropDownList("slt_opMonth", ViewBag.monList as List<SelectListItem>)*@
|
|
@Html.DropDownList("slt_opMonth", new WX.CRM.WEB.Handler.ControlResource().GetAllQHMonthAndYearList())
|
|
</li>
|
|
<li>@Html.Action("UserComBoxByRole", "Control", new { controlName = "nb1",type="1",onLoadBeforeData = "onLoadBeforeData()", onLoadSucced = "onLoadSucced()", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid })</li>
|
|
<li>经纪人工号:<input type="text" name="txt_SaleEid" /> </li>
|
|
<li>
|
|
在离职:@Html.DropDownList("slt_isDismiss", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="全部",Value="-1",Selected=true},
|
|
new SelectListItem(){ Text="在职",Value="0"},
|
|
new SelectListItem(){ Text="离职",Value="1"},
|
|
})
|
|
</li>
|
|
@*<li>
|
|
@Html.CheckBox("ckb_SumIsZero")
|
|
月结月前已离职且各项数值均为0</li>*@
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.GroupList)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function onLoadBeforeData() {
|
|
return "&balanceCode=" + $("#slt_opMonth").val();
|
|
}
|
|
$(function () {
|
|
$("#slt_opMonth").change(function () {
|
|
nb1_ComBoxLoad();
|
|
});
|
|
$('#tablist').tablegrid({
|
|
url: '/QH/MonthlyUserPerformanceQuery/GetHtmlList',
|
|
height: $(window).height() - 130,
|
|
loadNow: false,
|
|
isPage: 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");
|
|
});
|
|
});
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function ExportAllPage_Click1() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/QH/MonthlyUserPerformanceQuery/Export?" + GetQueryStr() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
</script>
|