117 lines
5.2 KiB
Plaintext
117 lines
5.2 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "bas_salesDepartment";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
|
@* @if (Request.QueryString["type"] == null)
|
|
{
|
|
@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>
|
|
工号:<input type="text" name="txt_eID" />
|
|
<input name="txt_innerGroupId" type="hidden" value="@ViewBag.groupIds" />
|
|
<input name="txt_innerDeptId" type="hidden" value="@ViewBag.departMentIds" />
|
|
<input name="txt_otherFilter" type="hidden" value="@ViewBag.otherFilter" />
|
|
</li>
|
|
<li>姓名:<input type="text" name="txt_uName" /> </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=""},
|
|
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("btnQuery" , "icon-search", "查询", false, "")*@
|
|
@Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
@*ToolBar事件处理*@
|
|
<script type="text/javascript">
|
|
function GetIframeHtml(src) {
|
|
return "<iframe id='ifymbc' width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
//设置按钮
|
|
function Setting_Click() {
|
|
var selects = $("#tablist").tablegrid("getSelections");
|
|
var pkids = "";
|
|
$(selects).each(function (i, n) {
|
|
pkids += "" + n.pkid + ",";
|
|
});
|
|
if (pkids.length === 0) {
|
|
$.messageBox5s('提示', "未勾选可执行选项");
|
|
}
|
|
pkids = pkids.substr(0, pkids.length - 1);
|
|
if (pkids != "") {
|
|
$("#modalwindow").html(GetIframeHtml("/Base/Inneruser/EditSetting?pkids=" + pkids));
|
|
$("#modalwindow").window({ title: '编辑', width: 700, height: 500, iconCls: 'icon-edit' }).window('open');
|
|
|
|
} else {
|
|
$.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords');
|
|
}
|
|
}
|
|
//修改密码按钮
|
|
function ChangePassWord_Click() {
|
|
var selects = $("#tablist").tablegrid("getSelections");
|
|
var pkids = "";
|
|
$(selects).each(function (i, n) {
|
|
pkids += "" + n.pkid + ",";
|
|
});
|
|
if (pkids.length === 0) {
|
|
$.messageBox5s('提示', "未勾选可执行选项");
|
|
}
|
|
pkids = pkids.substr(0, pkids.length - 1);
|
|
if (pkids != "") {
|
|
$("#modalwindow").html(GetIframeHtml("/Base/Inneruser/EditPassWord?pkids=" + pkids));
|
|
$("#modalwindow").window({ title: '编辑', width: 700, height: 500, iconCls: 'icon-edit' }).window('open');
|
|
|
|
} else {
|
|
$.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords');
|
|
}
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Base/Inneruser/GetHtmlList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
isPage: true,
|
|
isCheckMore: true
|
|
});
|
|
$("#btnQuery").click(function () {//搜索按钮点击事件
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
});
|
|
</script>
|