138 lines
7.0 KiB
Plaintext
138 lines
7.0 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", new WX.CRM.WEB.Handler.ControlResource().GetAllOpMonthByBackOrg())
|
|
</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_eID" /> </li>
|
|
<li>姓名:<input type="text" name="txt_uName" /> </li>
|
|
<li style="display:none;">
|
|
是否有效人数:@Html.DropDownList("slt_isEffect", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="全部",Value="-1",Selected=true},
|
|
new SelectListItem(){ Text="是",Value="1"},
|
|
new SelectListItem(){ Text="否",Value="0"},
|
|
})
|
|
</li>
|
|
<li style="display:none;">
|
|
是否经纪人:@Html.DropDownList("slt_futures", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="全部",Value="-1",Selected=true},
|
|
new SelectListItem(){ Text="是",Value="1"},
|
|
new SelectListItem(){ Text="否",Value="0"}
|
|
})
|
|
</li>
|
|
<li style="display:none;">
|
|
是否操盘手:@Html.DropDownList("slt_trader", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="全部",Value="-1",Selected=true},
|
|
new SelectListItem(){ Text="是",Value="1"},
|
|
new SelectListItem(){ Text="否",Value="0"}
|
|
})
|
|
</li>
|
|
<li style="display:none;">
|
|
是否导师:@Html.DropDownList("slt_tutor", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="全部",Value="-1",Selected=true},
|
|
new SelectListItem(){ Text="是",Value="1"},
|
|
new SelectListItem(){ Text="否",Value="0"}
|
|
})
|
|
</li>
|
|
<li style="display:none;">
|
|
性别:@Html.DropDownList("slt_gender", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="全部",Value="0"},
|
|
new SelectListItem(){ Text="男",Value="m"},
|
|
new SelectListItem(){ Text="女",Value="f"}
|
|
})
|
|
</li>
|
|
<li style="display:none;">
|
|
是否离职:@Html.DropDownList("slt_isDismiss", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="全部",Value="-1"},
|
|
new SelectListItem(){ Text="没有离职",Value="0",Selected=true},
|
|
new SelectListItem(){ Text="已经离职",Value="1"},
|
|
})
|
|
</li>
|
|
<li style="display:none;">
|
|
离职类型:@Html.DropDownList("slt_dismissType", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="全部",Value="-1"},
|
|
new SelectListItem(){ Text="正常离职",Value="1"},
|
|
new SelectListItem(){ Text="其他离职",Value="0"},
|
|
})
|
|
</li>
|
|
<li style="display:none;">离职时间:@Html.WdatePickerText("txt_dismissTime1", "")~@Html.WdatePickerText("txt_dismissTime2", "")</li>
|
|
<li style="display:none;">入职时间:@Html.WdatePickerText("txt_EntryDate1", "")~@Html.WdatePickerText("txt_EntryDate2", "")</li>
|
|
<li style="display:none;">转正时间:@Html.WdatePickerText("txt_PositiveTime1", "")~@Html.WdatePickerText("txt_PositiveTime2", "")</li>
|
|
<li>
|
|
@Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
function onLoadBeforeData() {
|
|
return "&balanceCode=" + $("#slt_opMonth").val();
|
|
}
|
|
$(function () {
|
|
$("#slt_opMonth").change(function () {
|
|
nb1_ComBoxLoad();
|
|
});
|
|
$('#tablist').tablegrid({
|
|
url: '/QH/BasMonInnerUser/GetHtmlList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
isPage: true,
|
|
data: GetControlValue
|
|
});
|
|
function GetControlValue() {
|
|
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_ids").val(), userId: $("#nb1_uc_org_ids").val() };
|
|
}
|
|
$("#btnQuery").click(function () {//搜索按钮点击事件
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
});
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
</script>
|
|
@*ToolBar事件处理*@
|
|
<script type="text/javascript">
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
function Export_Click() {
|
|
//$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/QH/BasMonInnerUser/Export?" + GetQueryStr() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val())));
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/QH/BasMonInnerUser/Export?" + GetQueryStr())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
</script>
|
|
|