92 lines
4.0 KiB
Plaintext
92 lines
4.0 KiB
Plaintext
@using WX.CRM.WebHelper;
|
||
@{
|
||
ViewBag.Title = "员工质检";
|
||
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
||
}
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
$('#tablist').tablegrid({
|
||
url: '/Quality/UserCheck/GetUserList',
|
||
height: $(window).height() - 110,
|
||
loadNow: false,
|
||
data: GetControlValue
|
||
});
|
||
//function GetControlValue() {
|
||
// return { groupId: user.getGroups(), userId: user.getUser() };
|
||
//}
|
||
function GetControlValue() {
|
||
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val() };
|
||
}
|
||
$(window).resize(function () {//自动适应大小
|
||
$('#tablist').tablegrid('resize', {
|
||
height: $(window).height() - 110
|
||
});
|
||
});
|
||
$("#btnQuery").click(function () {
|
||
$('#tablist').tablegrid("Search");
|
||
});
|
||
|
||
|
||
});
|
||
//ifram 返回
|
||
function frameReturnByClose() {
|
||
$("#modalwindow").window('close');
|
||
}
|
||
function frameReturnByReload(flag) {
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
function frameReturnByMes(mes) {
|
||
$.messageBox5s('提示', mes);
|
||
}
|
||
function onLoadSucced() {
|
||
$('#tablist').tablegrid("Search");
|
||
}
|
||
//获取datagrid头部及字段
|
||
function getDataGridHeader() {
|
||
var columns = $('#tablist').tablegrid("getHead");
|
||
return columns;
|
||
}
|
||
function Export() {
|
||
var columns = getDataGridHeader();
|
||
var checkedFilds = "";
|
||
var checkedTitle = "";
|
||
$.each(columns, function (i, ex) {
|
||
checkedFilds += "[" + ex.field + "]";
|
||
checkedTitle += ex.title + ',';
|
||
});
|
||
var url = '/Quality/UserCheck/UserExport?checkedFilds=' + checkedFilds + "&checkedTitle=" + checkedTitle + '&' + GetQueryStr();
|
||
this.window.open(url);
|
||
}
|
||
|
||
</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.DropDownList("slt_dismiss", new List<SelectListItem>() {
|
||
new SelectListItem(){ Text="离职",Value="1"},
|
||
new SelectListItem(){ Text="在职",Value="0"},
|
||
new SelectListItem(){ Text="所有",Value="所有"}
|
||
})
|
||
</li>
|
||
<li>离职时间:@Html.WdatePickerText("txt_dismissctime", "")~@Html.WdatePickerText("txt_dismissetime", "")</li>
|
||
<li>入职时间:@Html.WdatePickerText("txt_entryctime", "")~@Html.WdatePickerText("txt_entryetime", "")</li>
|
||
<li>转正时间:@Html.WdatePickerText("txt_positvectime", "")~@Html.WdatePickerText("txt_positveetime", "")</li>
|
||
<li>质检审核时间 :@Html.WdatePickerText("txt_qualityctime", "")~@Html.WdatePickerText("txt_qualityetime", "")</li>
|
||
<li>
|
||
质检状态:@Html.DropDownList("slt_qualitystatus", new List<SelectListItem>() {
|
||
new SelectListItem(){ Text="所有",Value="所有"},
|
||
new SelectListItem(){ Text="审核通过",Value="200"},
|
||
new SelectListItem(){ Text="审核不通过",Value="60"}
|
||
})
|
||
</li>
|
||
<li>@Html.Action("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", controlName = "ComBox", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid, currentRight = WX.CRM.WebHelper.InitRights.CONST_员工质检 })</li>
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.List)
|
||
</div>
|