93 lines
3.3 KiB
Plaintext
93 lines
3.3 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 id="liOpMonth" style="display:none">
|
|
月结起始年月:
|
|
@Html.DropDownList("slt_opMonthStart", ViewBag.month as List<SelectListItem>)
|
|
</li>
|
|
<li>
|
|
<input type="hidden" id="hid_value" name="txt_HidValue" value="0" />
|
|
月结年月:
|
|
@Html.DropDownList("slt_opMonth", ViewBag.month as List<SelectListItem>)
|
|
</li>
|
|
<li id="liUser">@Html.Action("UserComBoxByRole", "Control", new { controlName = "nb1", type = "2", onLoadBeforeData = "onLoadBeforeData()", onLoadSucced = "onLoadSucced()", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid })</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/MonthlyGroupPerformanceQuery/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() };
|
|
}
|
|
|
|
$("#btnQuery").click(function () {
|
|
$("#liOpMonth").hide();
|
|
$("#liUser").show();
|
|
$("#hid_value").val();
|
|
$("#hid_value").val("0");
|
|
$('#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 CollectQuery_Click() {
|
|
$("#liOpMonth").show();
|
|
$("#liUser").hide();
|
|
$("#hid_value").val();
|
|
$("#hid_value").val("1");
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
function Export_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/QH/MonthlyGroupPerformanceQuery/Export?" + GetQueryStr() + "&groupId=" + $("#nb1_uc_org_groups").val())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
</script>
|