83 lines
3.4 KiB
Plaintext
83 lines
3.4 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script src="~/Scripts/op/tablegrid.sort.js?t=1"></script>
|
|
<script src="~/Scripts/op/ofixedtable.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>@Html.Action("UserComBoxByRole", "Control", new { controlName = "nb1", 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"}, }, new { width = "60px" })</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
//var ofix1 = null;
|
|
//$(window).resize(function () {
|
|
// if (ofix1 != null)
|
|
// ofix1.resize();
|
|
//});
|
|
$('#tablist').tablegrid({
|
|
url: '/weiXin/CommissionUserMonth/SaleUserReportHtml',
|
|
height: $(window).height() - 130,
|
|
loadNow: false,
|
|
isPage: false,
|
|
data: GetControlValue,
|
|
onLoadSuccess: function (data) {
|
|
//if (ofix1 == null) {
|
|
// ofix1 = new oFixedTable('ofix1', document.getElementById('tablist'), { cols:1 });
|
|
//}
|
|
//else {
|
|
// ofix1.resize();
|
|
//}
|
|
}
|
|
});
|
|
function GetControlValue() {
|
|
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val()};
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
//if ($("#txt_SltYearMonth").attr("disabled") != "disabled")
|
|
// $("#txt_SearchType").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 ExportAllPage_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport_cookie?Query=" + encodeURIComponent("/WeiXin/CommissionUserMonth/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>
|