Commit 9831dc18 by Java-李昕颖

举报移交

parent ad8e3800
...@@ -214,13 +214,15 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -214,13 +214,15 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} }
/** /**
* 移交举报 * 移交后发送消息
* @param userId * @param reportId
* @param id * @param supplementTitle
* @return * @return
*/ */
@Transactional(readOnly = false) // @Transactional(readOnly = false)
public int modifyExchangeAfterUser(String userId,String id){ // public int addNotice(String reportId,String supplementTitle){
return reportDao.modifyExchangeAfterUser(userId,id); //
} // if ()
// return reportDao.modifyExchangeAfterUser(userId,id);
// }
} }
package com.ejweb.modules.report.web; package com.ejweb.modules.report.web;
import com.alibaba.fastjson.JSONObject;
import com.ejweb.core.base.BaseController; import com.ejweb.core.base.BaseController;
import com.ejweb.core.persistence.Page; import com.ejweb.core.persistence.Page;
import com.ejweb.core.utils.StringUtils; import com.ejweb.core.utils.StringUtils;
...@@ -20,6 +21,8 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes; ...@@ -20,6 +21,8 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List; import java.util.List;
/** /**
...@@ -144,16 +147,28 @@ public class ReportController extends BaseController { ...@@ -144,16 +147,28 @@ public class ReportController extends BaseController {
* @return * @return
*/ */
@RequestMapping(value = "track") @RequestMapping(value = "track")
public String track(ReportEntity reportEntity, Model model) { public String track(ReportEntity reportEntity,HttpServletRequest request, HttpServletResponse response, Model model) {
User user = UserUtils.getUser(); User user = UserUtils.getUser();
String roleName = reportService.findRole(user); String roleName = reportService.findRole(user);
String transferFlag = "0"; String transferFlag = "0";
if (roleName.equals("系统管理员")){ if (roleName.equals("系统管理员")){
transferFlag = "1"; transferFlag = "1";
} }
List<Office> companyList = reportService.getCompanyList();
List<Office> officeList = reportService.getOfficeList();
List<User> positionList = reportService.getPositionList();
Page<User> page = reportService.findUserPage(new Page<User>(request, response), user);
User userEntity = new User();
Page<User> userPage = reportService.findUserPage(new Page<User>(request, response), userEntity);
model.addAttribute("page", page);
model.addAttribute("user", userEntity);
model.addAttribute("currentUser", user.getName()); model.addAttribute("currentUser", user.getName());
model.addAttribute("transferFlag", transferFlag); model.addAttribute("transferFlag", transferFlag);
model.addAttribute("report", reportEntity); model.addAttribute("report", reportEntity);
model.addAttribute("companyList", companyList);
model.addAttribute("officeList", officeList);
model.addAttribute("positionList", positionList);
model.addAttribute("userPage", userPage);
return "modules/report/reportTrack"; return "modules/report/reportTrack";
} }
...@@ -178,37 +193,58 @@ public class ReportController extends BaseController { ...@@ -178,37 +193,58 @@ public class ReportController extends BaseController {
* 移交列表 * 移交列表
* *
* @param user * @param user
* @param model
* @param request * @param request
* @param response * @param response
* @return * @return
*/ */
@RequestMapping(value = "viewTransfer") @RequestMapping(value = "viewTransfer")
public String viewTransfer(ReportEntity reportEntity,User user,HttpServletRequest request, HttpServletResponse response, Model model) { public void viewTransfer(User user,HttpServletRequest request, HttpServletResponse response, Model model) throws IOException {
Page<User> page = reportService.findUserPage(new Page<User>(request, response), user); Page<User> page = reportService.findUserPage(new Page<User>(request, response), user);
List<Office> companyList = reportService.getCompanyList(); StringBuffer html = new StringBuffer();
List<Office> officeList = reportService.getOfficeList(); html.append("<table id='contentTable' class='table table-striped table-bordered table-condensed'>");
List<User> positionList = reportService.getPositionList(); html.append(" <thead>");
model.addAttribute("page", page); html.append(" <tr>");
model.addAttribute("companyList", companyList); html.append(" <th>选择</th>");
model.addAttribute("officeList", officeList); html.append(" <th>ID</th>");
model.addAttribute("positionList", positionList); html.append(" <th>员工号</th>");
model.addAttribute("User", user); html.append(" <th>姓名</th>");
model.addAttribute("report", reportEntity); html.append(" <th>手机号</th>");
return "modules/report/reportTransfer"; html.append(" <th>所属公司</th>");
} html.append(" <th>所属部门</th>");
html.append(" <th>职位</th>");
html.append(" </tr>");
html.append(" </thead>");
html.append(" <tbody>");
if (page.getList().size() > 0){
int i = 1;
for (User userEntity : page.getList()){
html.append(" <tr>");
html.append(" <td><input type='radio' value='"+userEntity.getId()+"' onclick='chooseRen(this);'></td>");
html.append(" <td>"+i+"</td>");
html.append(" <td>"+(userEntity.getNo()==null?"":userEntity.getNo())+"</td>");
html.append(" <td>"+(userEntity.getName()==null?"":userEntity.getName())+"</td>");
html.append(" <td>"+(userEntity.getMobile()==null?"":userEntity.getMobile())+"</td>");
html.append(" <td>"+(userEntity.getCompany()==null?"":userEntity.getCompany().getName())+ "</td>");
html.append(" <td>"+(userEntity.getOffice()==null?"":userEntity.getOffice().getName())+ "</td>");
html.append(" <td>"+(userEntity.getPositionName()==null?"":userEntity.getPositionName())+"</td>");
html.append(" </tr>");
i++;
}
}
html.append(" </tbody>");
html.append("</table>");
html.append("<span id='chooseItem'></span>");
if (page.getList().size() == 0){
html.append(" <span style='color: #999999;margin: 20px 0 70px 20px;display: block;'>未查询到相关内容</span>");
}
if (page.getList().size() > 0){
html.append(" <div class='pagination'>"+page+"</div>");
}
PrintWriter out = response.getWriter();
response.setContentType("application/json;charset=utf-8");
out.write(html.toString());
out.close();
/**
* 移交操作
*
* @param userId
* @param model
* @return
*/
@RequestMapping(value = "transfer")
public String transfer(ReportEntity reportEntity,String userId, Model model, RedirectAttributes redirectAttributes) {
reportService.modifyExchangeAfterUser(userId,reportEntity.getId());
addMessage(redirectAttributes, "移交举报"+ reportEntity.getReportProject() + "'成功");
return "redirect:" + adminPath + "/report/list/?repage&flag=0";
} }
} }
...@@ -194,6 +194,7 @@ ...@@ -194,6 +194,7 @@
supplement_project = #{supplementProject}, supplement_project = #{supplementProject},
supplement_content = #{supplementContent}, supplement_content = #{supplementContent},
deal_person_name = #{dealPersonName}, deal_person_name = #{dealPersonName},
exchange_after_user = #{exchangeAfterUser},
deal_result = #{dealResult}, deal_result = #{dealResult},
update_by = #{updateBy.id}, update_by = #{updateBy.id},
update_date = #{updateDate} update_date = #{updateDate}
...@@ -276,12 +277,6 @@ ...@@ -276,12 +277,6 @@
FROM sys_position FROM sys_position
</select> </select>
<update id="modifyExchangeAfterUser" parameterType="HashMap">
UPDATE report SET
exchange_after_user = #{0}
WHERE id = #{1}
</update>
<select id="getReportStatus" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" resultType="java.util.HashMap"> <select id="getReportStatus" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" resultType="java.util.HashMap">
select report_status,COUNT(report_status) select report_status,COUNT(report_status)
FROM report FROM report
......
...@@ -32,146 +32,303 @@ ...@@ -32,146 +32,303 @@
} }
} }
}); });
$("#btnTransfer").click(function () { //弹出隐藏层
var flag = ${transferFlag}; $("#chooseUser").click(function () {
if (flag == "1"){ $("#chooseDiv").show();
var id = "${report.id}"; $("#fade").show();
var url = "${ctx}/report/viewTransfer?id="+id; $("#fade").style.width = document.body.scrollWidth;
window.open( $("#fade").height($(document).height());
url, });
'newwindow', //关闭隐藏层
'height=600, width=800, left=300, toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=no' $("#btnClose").click(function () {
); $("#chooseDiv").hide();
} $("#fade").show();
});
//选中用户并关闭
$("#btnConfirm").click(function () {
$("#chooseUser").val($("input:radio:checked").parent().next().next().next().html());
$("#userId").val($("input:radio:checked").val());
$("#chooseDiv").hide();
$("#fade").show();
}); });
}); });
</script> </script>
<style type="text/css"> <style type="text/css">
.title{ .title{
font-size:16px; font-size:16px;
font-weight:bold; font-weight:bold;
} }
.black_overlay{
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
z-index:1001;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=80);
}
.white_content {
display: none;
position: absolute;
top: 10%;
left: 10%;
width: 80%;
height: 80%;
border: 1px solid;
background-color: white;
z-index:1002;
overflow: auto;
}
#chooseContent{
margin: 20px 20px 20px 20px;
}
</style> </style>
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/report/track">跟踪举报信息</a></li> <li class="active"><a href="${ctx}/report/track">跟踪举报信息</a></li>
</ul> </ul>
<br/> <br/>
<form:form id="inputForm" modelAttribute="report" action="${ctx}/report/addTrack" method="post" class="form-horizontal"> <form:form id="inputForm" modelAttribute="report" action="${ctx}/report/addTrack" method="post" class="form-horizontal">
<form:hidden path="id"/>
<sys:message content="${message}"/> <form:hidden path="id"/>
<span class="title">举报信息补充</span> <sys:message content="${message}"/>
<div class="control-group"> <span class="title">举报信息补充</span>
<label class="control-label">被举报公司:</label> <div class="control-group">
<div class="controls"> <label class="control-label">被举报公司:</label>
<form:input path="supplementCompany" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <div class="controls">
<span class="help-inline"><font color="red">*</font> </span> <form:input path="supplementCompany" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div> </div>
</div> <div class="control-group">
<div class="control-group"> <label class="control-label">被举报部门:</label>
<label class="control-label">被举报部门:</label> <div class="controls">
<div class="controls"> <form:input path="supplementDepartment" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<form:input path="supplementDepartment" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <span class="help-inline"><font color="red">*</font> </span>
<span class="help-inline"><font color="red">*</font> </span> </div>
</div> </div>
</div> <div class="control-group">
<div class="control-group"> <label class="control-label">被举报人:</label>
<label class="control-label">被举报人:</label> <div class="controls">
<div class="controls"> <form:input path="supplementInformant" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<form:input path="supplementInformant" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <span class="help-inline"><font color="red">*</font> </span>
<span class="help-inline"><font color="red">*</font> </span> </div>
</div> </div>
</div> <div class="control-group">
<div class="control-group"> <label class="control-label">标题:</label>
<label class="control-label">标题:</label> <div class="controls">
<div class="controls"> <form:input path="supplementTitle" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<form:input path="supplementTitle" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <span class="help-inline"><font color="red">*</font> </span>
<span class="help-inline"><font color="red">*</font> </span> </div>
</div> </div>
</div> <div class="control-group">
<div class="control-group"> <label class="control-label">业务类型:</label>
<label class="control-label">业务类型:</label> <div class="controls">
<div class="controls"> <form:select path="supplementType" class="input-small required">
<form:select path="supplementType" class="input-small required"> <form:option value=" ">请选择</form:option>
<form:option value=" ">请选择</form:option> <form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"
<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/></form:select>
htmlEscape="false"/></form:select> <span class="help-inline"><font color="red">*</font> </span>
<span class="help-inline"><font color="red">*</font> </span> </div>
</div> </div>
</div> <div class="control-group">
<div class="control-group"> <label class="control-label">被举报区域:</label>
<label class="control-label">被举报区域:</label> <div class="controls">
<div class="controls"> <form:radiobutton path="supplementArea" value="North China" checked="true"/>华北区域公司
<form:radiobutton path="supplementArea" value="North China" checked="true"/>华北区域公司 <form:radiobutton path="supplementArea" value="BeiJing"/>北京区域公司
<form:radiobutton path="supplementArea" value="BeiJing"/>北京区域公司 <form:radiobutton path="supplementArea" value="ShangHai"/>上海区域公司
<form:radiobutton path="supplementArea" value="ShangHai"/>上海区域公司 <span class="help-inline"><font color="red">*</font> </span>
<span class="help-inline"><font color="red">*</font> </span> </div>
</div> </div>
</div> <div class="control-group">
<div class="control-group"> <label class="control-label">被举报项目:</label>
<label class="control-label">被举报项目:</label> <div class="controls">
<div class="controls"> <form:input path="supplementProject" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<form:input path="supplementProject" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <span class="help-inline"><font color="red">*</font> </span>
<span class="help-inline"><font color="red">*</font> </span> </div>
</div> </div>
</div> <div class="control-group">
<div class="control-group"> <label class="control-label">内容:</label>
<label class="control-label">内容:</label> <div class="controls">
<div class="controls"> <form:textarea id="supplementContent" htmlEscape="true" path="supplementContent" rows="4" maxlength="500" class="input-xxlarge"/>
<form:textarea id="supplementContent" htmlEscape="true" path="supplementContent" rows="4" maxlength="500" class="input-xxlarge"/> <span class="help-inline"><font color="red">*</font> </span>
<span class="help-inline"><font color="red">*</font> </span> </div>
</div> </div>
</div> <div class="control-group">
</div> <label class="control-label">附件:</label>
<div class="control-group"> <div class="controls">
<label class="control-label">附件:</label> <form:hidden id="nameFile" path="supplementAttachment" htmlEscape="false"
<div class="controls"> maxlength="255" class="input-xlarge"/>
<form:hidden id="nameFile" path="supplementAttachment" htmlEscape="false" <sys:ckfinder input="nameFile" type="files" uploadPath="/file"
maxlength="255" class="input-xlarge"/> selectMultiple="true" maxWidth="100" maxHeight="100"/>
<sys:ckfinder input="nameFile" type="files" uploadPath="/file" <label id="checkFile" class="error" style="display: none;">必填信息</label>
selectMultiple="true" maxWidth="100" maxHeight="100"/> </div>
<label id="checkFile" class="error" style="display: none;">必填信息</label>
</div> </div>
</div> <span class="title">处理结果</span>
<span class="title">处理结果</span> <div class="control-group">
<div class="control-group"> <label class="control-label">处理人:</label>
<label class="control-label">处理人:</label> <div class="controls">
<div class="controls"> <form:input path="dealPersonName" value="${currentUser}" disabled="true" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<form:input path="dealPersonName" value="${currentUser}" disabled="true" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <span class="help-inline"><font color="red">*</font> </span>
<span class="help-inline"><font color="red">*</font> </span> </div>
</div> </div>
</div> <div class="control-group">
<div class="control-group"> <label class="control-label">处理成果文件:</label>
<label class="control-label">处理成果文件:</label> <div class="controls">
<div class="controls"> <form:hidden id="nameFile" path="dealAttachment" htmlEscape="false"
<form:hidden id="nameFile" path="dealAttachment" htmlEscape="false" maxlength="255" class="input-xlarge"/>
maxlength="255" class="input-xlarge"/> <sys:ckfinder input="nameFile" type="files" uploadPath="/file"
<sys:ckfinder input="nameFile" type="files" uploadPath="/file" selectMultiple="true" maxWidth="100" maxHeight="100"/>
selectMultiple="true" maxWidth="100" maxHeight="100"/> <label id="checkFile" class="error" style="display: none;">必填信息</label>
<label id="checkFile" class="error" style="display: none;">必填信息</label> </div>
</div> </div>
</div> <div class="control-group">
<div class="control-group"> <label class="control-label">处理结论:</label>
<label class="control-label">处理结论:</label> <div class="controls">
<div class="controls"> <form:select path="dealResult" class="input-small required">
<form:select path="dealResult" class="input-small required"> <form:option value=" ">请选择</form:option>
<form:option value=" ">请选择</form:option> <form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value"
<form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value" htmlEscape="false"/></form:select>
htmlEscape="false"/></form:select> <span class="help-inline"><font color="red">*</font> </span>
<span class="help-inline"><font color="red">*</font> </span> </div>
</div> </div>
</div> <span class="title">移交他人处理</span>
<span class="title">移交他人处理</span> <div class="control-group">
<div class="control-group"> <label class="control-label">移交:</label>
<label class="control-label">移交:</label> <div class="controls">
<div class="controls"> <form:hidden id="userId" path="exchangeAfterUser"/>
<input id="btnTransfer" class="btn btn-primary" type="button" value="选择移交人员"/> <input id="chooseUser" type="text" value="选择移交人员" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="form-actions">
<input id="btnSubmit" class="btn btn-primary" type="submit" value="提交"/>&nbsp;
</div>
</form:form>
<div id="fade" class="black_overlay"></div>
<div id="chooseDiv" class="white_content">
<div id="chooseContent">
<script type="text/javascript">
$(document).ready(function() {
$("#btnSearch").click(function () {
$.ajax({
url: "${ctx}/report/viewTransfer",
dataType: "html",
data: $('#searchForm').serialize(),
cache: false,
success: function(data) { //登录成功后返回的数据
$("#userList").empty();
$("#userList").html($(data));
},
error:function(){
alert("数据错误!");
}
});
});
$("input:radio").click(function () {
$("input:radio").attr("checked",false);
$("#chooseItem").empty();
$(this).attr("checked",true);
$("#chooseItem").html("已选择 " + $("input:radio:checked").parent().next().next().next().html()+"<span onclick='remove();'><font size='5'> ×</font></span>");
});
});
function chooseRen(obj) {
$("input:radio").attr("checked",false);
$("#chooseItem").empty();
obj.checked = true;
$("#chooseItem").html("已选择 " + $("input:radio:checked").parent().next().next().next().html()+"<span onclick='remove();'><font size='5'> ×</font></span>");
}
function remove(){
$("input:radio").attr("checked",false);
$("#chooseItem").empty();
}
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").attr("action", "${ctx}/report/viewTransfer");
$("#searchForm").submit();
return false;
}
function resetPageNo() {
$("#pageNo").val(0);
}
</script>
<span class="title">选择移交人员</span>
<form:form id="searchForm" modelAttribute="user" action="#" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${userPage.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${userPage.pageSize}"/>
<ul class="ul-form">
<li><label>员工号:</label><form:input onchange="resetPageNo();" path="no" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>姓名:</label><form:input onchange="resetPageNo();" path="name" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>手机号:</label><form:input onchange="resetPageNo();" path="mobile" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>公司:</label><form:select onchange="resetPageNo();" path="company.id" class="input-small ">
<form:option value=" ">请选择</form:option>
<form:options items="${companyList}" itemLabel="name" itemValue="id" htmlEscape="false"/>
</form:select></li>
<li class="clearfix"></li>
<li><label>部门:</label><form:select onchange="resetPageNo();" path="office.id" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${officeList}" itemLabel="name" itemValue="id" htmlEscape="false"/></form:select></li>
<li><label>职位:</label><form:select onchange="resetPageNo();" path="positionName" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${positionList}" itemLabel="positionName" itemValue="positionName" htmlEscape="false"/></form:select></li>
<li class="btns">
<label style="width:auto;"><input id="btnSearch" class="btn btn-primary" type="button" value="筛选"/>&nbsp;&nbsp;</label>
</li>
<li class="clearfix"></li>
</ul>
</form:form>
<div id="userList">
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>选择</th>
<th>ID</th>
<th>员工号</th>
<th>姓名</th>
<th>手机号</th>
<th>所属公司</th>
<th>所属部门</th>
<th>职位</th>
</tr>
</thead>
<tbody>
<c:if test="${userPage.list.size()>0}">
<c:forEach items="${userPage.list}" var="user" varStatus="vs">
<tr>
<td id="radioBtn"><input type="radio" value="${user.id}"></td>
<td>${vs.count}</td>
<td>${user.no}</td>
<td>${user.name}</td>
<td>${user.mobile}</td>
<td>${user.company.name}</td>
<td>${user.office.name}</td>
<td>${user.positionName}</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>
<span id="chooseItem"></span>
<c:if test="${userPage.list.size()=='0'}">
<span style="color: #999999;margin: 20px 0 70px 20px;display: block;">未查询到相关内容</span>
</c:if>
<c:if test="${userPage.list.size()>0}">
<div class="pagination">${page}</div>
</c:if>
</div>
<li class="btns">
<label style="width:auto;"><input id="btnConfirm" class="btn btn-primary" type="button" value="确定"/>&nbsp;&nbsp;
<input id="btnClose" class="btn btn-primary" type="button" value="关闭"/></label>
</li>
</div> </div>
</div> </div>
<div class="form-actions">
<input id="btnSubmit" class="btn btn-primary" type="submit" value="提交"/>&nbsp;
</div>
</form:form>
</body> </body>
</html> </html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>举报管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
$(document).ready(function() {
$("#btnConfirm").click(function () {
var userId = $('input:radio:checked').val();
var id = "${report.id}";
window.location.href = "${ctx}/report/transfer?id="+id+"&userId="+userId;
});
$("input:radio").click(function () {
$("input:radio").attr("checked",false);
$("#chooseItem").empty();
$(this).attr("checked",true);
$("#chooseItem").html("已选择 " + $("input:radio:checked").parent().next().next().next().html()+"<span onclick='remove();'><font size='5'> ×</font></span>");
});
});
function remove(){
$("input:radio").attr("checked",false);
$("#chooseItem").empty();
}
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").attr("action", "${ctx}/report/viewTransfer");
$("#searchForm").submit();
return false;
}
function resetPageNo() {
$("#pageNo").val(0);
}
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/report/viewTransfer">选择移交人员</a></li>
</ul>
<form:form id="searchForm" modelAttribute="user" action="${ctx}/report/viewTransfer?id=${report.id}" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<ul class="ul-form">
<li><label>员工号:</label><form:input onchange="resetPageNo();" path="no" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>姓名:</label><form:input onchange="resetPageNo();" path="name" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>手机号:</label><form:input onchange="resetPageNo();" path="mobile" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>公司:</label><form:select onchange="resetPageNo();" path="company.id" class="input-small ">
<form:option value=" ">请选择</form:option>
<form:options items="${companyList}" itemLabel="name" itemValue="id" htmlEscape="false"/>
</form:select></li>
<li class="clearfix"></li>
<li><label>部门:</label><form:select onchange="resetPageNo();" path="office.id" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${officeList}" itemLabel="name" itemValue="id" htmlEscape="false"/></form:select></li>
<li><label>职位:</label><form:select onchange="resetPageNo();" path="positionName" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${positionList}" itemLabel="positionName" itemValue="positionName" htmlEscape="false"/></form:select></li>
<li class="btns">
<label style="width:auto;"><input id="btnSubmit" class="btn btn-primary" type="submit" value="筛选"/>&nbsp;&nbsp;</label>
</li>
<li class="clearfix"></li>
</ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>选择</th>
<th>ID</th>
<th>员工号</th>
<th>姓名</th>
<th>手机号</th>
<th>所属公司</th>
<th>所属部门</th>
<th>职位</th>
</tr>
</thead>
<tbody>
<c:if test="${page.list.size()>0}">
<c:forEach items="${page.list}" var="user" varStatus="vs">
<tr>
<td><input type="radio" value="${user.id}"></td>
<td>${vs.count}</td>
<td>${user.no}</td>
<td>${user.name}</td>
<td>${user.mobile}</td>
<td>${user.company.name}</td>
<td>${user.office.name}</td>
<td>${user.positionName}</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>
<span id="chooseItem"></span>
<c:if test="${page.list.size()=='0'}">
<span style="color: #999999;margin: 20px 0 70px 20px;display: block;">未查询到相关内容</span>
</c:if>
<c:if test="${page.list.size()>0}">
<div class="pagination">${page}</div>
</c:if>
<li class="btns">
<label style="width:auto;"><input id="btnConfirm" class="btn btn-primary" type="button" value="确定"/>&nbsp;&nbsp;
<input id="btnClose" class="btn btn-primary" type="button" value="关闭" onclick="javascript:window.close();"/></label>
</li>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment