Commit be7b7df1 by Java-刘铮

ReportController:修改发送消息方法。

reportDetaol:添加dealResult=4为“举报属实”。
reportTrack:修改举报属性个状态可见“是否完成”。
parent 343f5597
......@@ -52,26 +52,25 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String transferName; //移交给
private String dealPerson;
private String lStatus; //关闭修改状态
//是否管理员
private String isAdmin;
public String getIsAdmin() {
return isAdmin;
private String isAdmin; //是否管理员
private String oaarea; //账号区域
public String getOaarea() {
return oaarea;
}
public void setIsAdmin(String isAdmin) {
this.isAdmin = isAdmin;
public void setOaarea(String oaarea) {
this.oaarea = oaarea;
}
public String getTransferDepartment() {
return transferDepartment;
}
public void setTransferDepartment(String transferDepartment) {
this.transferDepartment = transferDepartment;
public String getIsAdmin() {
return isAdmin;
}
public void setIsAdmin(String isAdmin) {
this.isAdmin = isAdmin;
}
public String getlStatus() {
return lStatus;
......@@ -82,13 +81,6 @@ public class ReportEntity extends DataEntity<ReportEntity> {
}
public String getOaname() {
return oaname;
}
public void setOaname(String oaname) {
this.oaname = oaname;
}
// private String ifDone; //是否完成
//
......@@ -108,6 +100,14 @@ public class ReportEntity extends DataEntity<ReportEntity> {
public String getReportProject() {
return reportProject;
}
@ExcelField(title = "OA账号", align = 2, sort = 26)
public String getOaname() {
return oaname;
}
public void setOaname(String oaname) {
this.oaname = oaname;
}
public void setReportProject(String reportProject) {
this.reportProject = reportProject;
......@@ -121,7 +121,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportCity = reportCity;
}
@ExcelField(title = "举报时间", align = 2, sort = 34)
@ExcelField(title = "举报时间", align = 2, sort = 38)
public String getReportTime() {
return reportTime;
}
......@@ -130,7 +130,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportTime = reportTime;
}
@ExcelField(title = "举报内容", align = 2, sort = 44)
@ExcelField(title = "举报内容", align = 2, sort = 50)
public String getReportContent() {
return reportContent;
}
......@@ -139,7 +139,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportContent = reportContent;
}
@ExcelField(title = "举报人", align = 2, sort = 26)
@ExcelField(title = "举报人", align = 2, sort = 28)
public String getReportPersonName() {
return reportPersonName;
}
......@@ -148,10 +148,19 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportPersonName = reportPersonName;
}
@ExcelField(title = "举报人电话", align = 2, sort = 28)
@ExcelField(title = "举报人电话", align = 2, sort = 30)
public String getReportPersonTel() {
return reportPersonTel;
}
@ExcelField(title = "举报途径", align = 2, sort = 36)
public String getReportSource() {
return reportSource;
}
public void setReportSource(String reportSource) {
this.reportSource = reportSource;
}
public void setReportPersonTel(String reportPersonTel) {
this.reportPersonTel = reportPersonTel;
......@@ -165,15 +174,8 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportPersonEmail = reportPersonEmail;
}
public String getReportSource() {
return reportSource;
}
public void setReportSource(String reportSource) {
this.reportSource = reportSource;
}
@ExcelField(title = "状态", align = 2, sort = 36)
@ExcelField(title = "状态", align = 2, sort = 40)
public String getReportStatus() {
return reportStatus;
}
......@@ -198,7 +200,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementDepartment = supplementDepartment;
}
@ExcelField(title = "被举报人", align = 2, sort = 32)
@ExcelField(title = "被举报人", align = 2, sort = 34)
public String getSupplementInformant() {
return supplementInformant;
}
......@@ -225,7 +227,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementType = supplementType;
}
@ExcelField(title = "区域", align = 2, sort = 30)
@ExcelField(title = "区域", align = 2, sort = 32)
public String getSupplementArea() {
return supplementArea;
}
......@@ -242,7 +244,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementProject = supplementProject;
}
@ExcelField(title = "举报信息补充内容", align = 2, sort = 46)
@ExcelField(title = "举报信息补充内容", align = 2, sort = 52)
public String getSupplementContent() {
return supplementContent;
}
......@@ -251,16 +253,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementContent = supplementContent;
}
@ExcelField(title = "处理人", align = 2, sort = 40)
public String getDealPersonName() {
return dealPersonName;
}
public void setDealPersonName(String dealPersonName) {
this.dealPersonName = dealPersonName;
}
@ExcelField(title = "处理结论", align = 2, sort = 38)
@ExcelField(title = "处理结论", align = 2, sort = 42)
public String getDealResult() {
return dealResult;
}
......@@ -269,14 +262,21 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.dealResult = dealResult;
}
public String getExchangeBeforeUser() {
return exchangeBeforeUser;
@ExcelField(title = "移交部门", align = 2, sort =44)
public String getTransferDepartment() {
return transferDepartment;
}
public void setExchangeBeforeUser(String exchangeBeforeUser) {
this.exchangeBeforeUser = exchangeBeforeUser;
@ExcelField(title = "处理人", align = 2, sort = 46)
public String getDealPersonName() {
return dealPersonName;
}
public void setDealPersonName(String dealPersonName) {
this.dealPersonName = dealPersonName;
}
@ExcelField(title = "移交给", align = 2, sort = 48)
public String getExchangeAfterUser() {
return exchangeAfterUser;
}
......@@ -285,6 +285,18 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.exchangeAfterUser = exchangeAfterUser;
}
public void setTransferDepartment(String transferDepartment) {
this.transferDepartment = transferDepartment;
}
public String getExchangeBeforeUser() {
return exchangeBeforeUser;
}
public void setExchangeBeforeUser(String exchangeBeforeUser) {
this.exchangeBeforeUser = exchangeBeforeUser;
}
public String getExchangeType() {
return exchangeType;
}
......@@ -349,7 +361,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.types = types;
}
@ExcelField(title = "移交给", align = 2, sort = 42)
public String getTransferName() {
return transferName;
}
......@@ -358,7 +370,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.transferName = transferName;
}
@ExcelField(title = "IP来源", align = 2, sort = 48)
@ExcelField(title = "IP来源", align = 2, sort =54)
public String getReportIp() {
return reportIp;
}
......@@ -367,7 +379,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportIp = reportIp;
}
@ExcelField(title = "IP所属城市", align = 2, sort = 50)
@ExcelField(title = "IP所属城市", align = 2, sort = 56)
public String getIpCity() {
return ipCity;
}
......@@ -376,7 +388,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.ipCity = ipCity;
}
@ExcelField(title = "邮件发送", align = 2, sort = 48)
@ExcelField(title = "邮件发送", align = 2, sort =58)
public String getIsSendEmail() {
return isSendEmail;
}
......
......@@ -271,21 +271,27 @@ public class ReportToWordController {
} else if (value.equals("4")) {
value = "招采";
} else if (value.equals("5")) {
value = "人力";
value = "财务";
} else if (value.equals("6")) {
value = "物业";
value = "法务";
} else if (value.equals("7")) {
value = "投诉";
} else if (value.equals("8")) {
value = "行政";
} else if (value.equals("8")) {
value = "人力";
} else if (value.equals("9")) {
value = "财务";
value = "开发";
} else if (value.equals("10")) {
value = "商业管理";
} else if (value.equals("11")) {
value = "研发";
} else if (value.equals("11")) {
value = "投资";
} else if (value.equals("12")) {
value = "投资开发";
value = "其他";
} else if (value.equals("13")) {
value = "物业管理";
} else if (value.equals("14")) {
value = "酒店管理";
} else if (value.equals("15")) {
value = "商业管理";
}
typeStr = typeStr + value + ",";
supplement_type = typeStr.substring(0, typeStr.length() - 1);
......@@ -411,6 +417,10 @@ public class ReportToWordController {
deal_result = "举报受理";
} else if (deal_result.equals("4")) {
deal_result = "举报属实";
} else if (deal_result.equals("5")) {
deal_result = "举报不实";
} else if (deal_result.equals("6")) {
deal_result = "移交其他部门";
}
} else {
deal_result = "";
......
......@@ -91,45 +91,42 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
workbench.setRepStatusTotal(workbench.getUnProcess() + workbench.getProcessing() + workbench.getProcessed() + workbench.getClosed());
List<HashMap> types = reportDao.getReportType(workbench);
for (HashMap type : types) {
// //营销
// Object sale = type.get("sale");
// workbench.setSale(Integer.valueOf(sale.toString()));
// //工程
// Object project = type.get("project");
// workbench.setProject(Integer.valueOf(project.toString()));
// //成本
// Object cost = type.get("cost");
// workbench.setCost(Integer.valueOf(cost.toString()));
// //招采
// Object forMining = type.get("forMining");
// workbench.setForMining(Integer.valueOf(forMining.toString()));
// //财务
// Object finance = type.get("finance");
// workbench.setFinance(Integer.valueOf(finance.toString()));
// //法务
// Object forensic = type.get("forensic");
// workbench.setFinance(Integer.valueOf(forensic.toString()));
// //行政
// Object administration = type.get("administration");
// workbench.setAdministration(Integer.valueOf(administration.toString()));
// //人力
// Object manpower = type.get("manpower");
// workbench.setManpower(Integer.valueOf(manpower.toString()));
// //开发
// Object businessManagement = type.get("development");
// workbench.setBusinessManagement(Integer.valueOf(businessManagement.toString()));
// //研发
// Object rAndD = type.get("rAndD");
// workbench.setrAndD(Integer.valueOf(rAndD.toString()));
// //投资
// Object iAndD = type.get("iAndD");
// workbench.setiAndD(Integer.valueOf(iAndD.toString()));
// //其他
// Object Other = type.get("Other");
// workbench.setComplain(Integer.valueOf(Other.toString()));
//地产总和
Object land = type.get("land");
workbench.setComplain(Integer.valueOf(land.toString()));
//营销
Object sale = type.get("sale");
workbench.setSale(Integer.valueOf(sale.toString()));
//工程
Object project = type.get("project");
workbench.setProject(Integer.valueOf(project.toString()));
//成本
Object cost = type.get("cost");
workbench.setCost(Integer.valueOf(cost.toString()));
//招采
Object forMining = type.get("forMining");
workbench.setForMining(Integer.valueOf(forMining.toString()));
//财务
Object finance = type.get("finance");
workbench.setFinance(Integer.valueOf(finance.toString()));
//法务
Object forensic = type.get("forensic");
workbench.setFinance(Integer.valueOf(forensic.toString()));
//行政
Object administration = type.get("administration");
workbench.setAdministration(Integer.valueOf(administration.toString()));
//人力
Object manpower = type.get("manpower");
workbench.setManpower(Integer.valueOf(manpower.toString()));
//开发
Object businessManagement = type.get("development");
workbench.setBusinessManagement(Integer.valueOf(businessManagement.toString()));
//研发
Object rAndD = type.get("rAndD");
workbench.setrAndD(Integer.valueOf(rAndD.toString()));
//投资
Object iAndD = type.get("iAndD");
workbench.setiAndD(Integer.valueOf(iAndD.toString()));
//其他
Object Other = type.get("Other");
workbench.setComplain(Integer.valueOf(Other.toString()));
//物业管理
Object propertyManagement = type.get("propertyManagement");
workbench.setiAndD(Integer.valueOf(propertyManagement.toString()));
......
......@@ -78,18 +78,18 @@ public class WorkbenchController extends BaseController {
res.put("startDate", bean.getStartDate());
res.put("endDate", bean.getEndDate());
//举报类型
res.put("land", bean.getLand());
// res.put("project", bean.getProject());
// res.put("cost", bean.getCost());
// res.put("forMining", bean.getForMining());
// res.put("finance", bean.getFinance());
// res.put("forensic", bean.getForensic());
// res.put("administration", bean.getAdministration());
// res.put("manpower", bean.getManpower());
// res.put("development", bean.getDevelopment());
// res.put("rAndD", bean.getrAndD());
// res.put("iAndD", bean.getiAndD());
// res.put("Other", bean.getOther());
res.put("sale", bean.getLand());
res.put("project", bean.getProject());
res.put("cost", bean.getCost());
res.put("forMining", bean.getForMining());
res.put("finance", bean.getFinance());
res.put("forensic", bean.getForensic());
res.put("administration", bean.getAdministration());
res.put("manpower", bean.getManpower());
res.put("development", bean.getDevelopment());
res.put("rAndD", bean.getrAndD());
res.put("iAndD", bean.getiAndD());
res.put("Other", bean.getOther());
res.put("propertyManagement", bean.getPropertyManagement());
res.put("hotelManagement", bean.getHotelManagement());
res.put("businessManagement", bean.getBusinessManagement());
......
......@@ -18,6 +18,7 @@
r.supplement_informant AS "supplementInformant",
r.supplement_title AS "supplementTitle",
r.supplement_type AS "supplementType",
r.transfer_department AS "transferDepartment",
r.supplement_area AS "supplementArea",
r.supplement_project AS "supplementProject",
r.supplement_content AS "supplementContent",
......@@ -33,7 +34,8 @@
r.oa_name AS "oaname",
r.report_ip AS "reportIp",
r.ip_city AS "ipCity",
r.is_send_email AS "isSendEmail"
r.is_send_email AS "isSendEmail",
su.area AS "oaarea"
</sql>
......@@ -55,11 +57,21 @@
<include refid="reportColumns"/>
,su.name AS "transferName"
FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id
LEFT JOIN ct_bbtc_sys_user su ON r.create_by = su.id
<where>
1 = 1
<if test="isAdmin == null">
AND r.exchange_after_user = #{exchangeAfterUser}
AND r.exchange_after_user = #{exchangeAfterUser} AND r.create_by != #{exchangeAfterUser}
</if>
<if test="isAdmin != null">
AND r.supplement_area ='Group' AND su.area NOT IN ('North China',
'BeiJing',
'ShangHai',
'SouthWest',
'SouthEast',
'Central China',
'GuangShen',
'Hainan') OR r.create_by = #{isAdmin}
</if>
<if test="reportStatus != null and reportStatus != ''">
AND r.report_status = #{reportStatus}
......@@ -126,14 +138,21 @@
<include refid="reportColumns"/>
,su.name AS "transferName"
FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id
LEFT JOIN ct_bbtc_sys_user su ON r.create_by = su.id
<where>
1 = 1
<if test="isAdmin == null">
AND r.create_by = #{exchangeAfterUser}
AND r.exchange_after_user = #{exchangeAfterUser} AND r.create_by = #{exchangeAfterUser}
</if>
<if test="isAdmin != null">
AND r.supplement_area !='Group' AND r.supplement_area IS NOT NULL
AND su.area IN ('North China',
'BeiJing',
'ShangHai',
'SouthWest',
'SouthEast',
'Central China',
'GuangShen',
'Hainan')
</if>
<if test="reportStatus != null and reportStatus != ''">
AND r.report_status = #{reportStatus}
......@@ -242,7 +261,7 @@
supplement_informant,
supplement_title,
exchange_before_user,
exchange_after_user,
exchange_after_user ,
exchange_type,
create_by,
create_date,
......@@ -555,29 +574,29 @@
<select id="getReportType" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean"
resultType="java.util.HashMap">
SELECT
SUM(CASE WHEN supplement_type||',' LIKE '1,%' OR supplement_type||',' LIKE '%,1,%' THEN 1 ELSE 0 END) AS "land",
-- SUM(CASE WHEN supplement_type||',' LIKE '2,%' OR supplement_type||',' LIKE '%,2,%' THEN 1 ELSE 0 END) AS
-- "project",
-- SUM(CASE WHEN supplement_type||',' LIKE '3,%' OR supplement_type||',' LIKE '%,3,%' THEN 1 ELSE 0 END) AS
-- "cost",
-- SUM(CASE WHEN supplement_type||',' LIKE '4,%' OR supplement_type||',' LIKE '%,4,%' THEN 1 ELSE 0 END) AS
-- "forMining",
-- SUM(CASE WHEN supplement_type||',' LIKE '5,%' OR supplement_type||',' LIKE '%,5,%' THEN 1 ELSE 0 END) AS
-- "finance",
-- SUM(CASE WHEN supplement_type||',' LIKE '6,%' OR supplement_type||',' LIKE '%,6,%' THEN 1 ELSE 0 END) AS
-- "forensic",
-- SUM(CASE WHEN supplement_type||',' LIKE '7,%' OR supplement_type||',' LIKE '%,7,%' THEN 1 ELSE 0 END) AS
-- "administration",
-- SUM(CASE WHEN supplement_type||',' LIKE '8,%' OR supplement_type||',' LIKE '%,8,%' THEN 1 ELSE 0 END) AS
-- "manpower",
-- SUM(CASE WHEN supplement_type||',' LIKE '9,%' OR supplement_type||',' LIKE '%,9,%' THEN 1 ELSE 0 END) AS
-- "development",
-- SUM(CASE WHEN supplement_type||',' LIKE '10,%' OR supplement_type||',' LIKE '%,10,%' THEN 1 ELSE 0 END) AS
-- "rAndD",
-- SUM(CASE WHEN supplement_type||',' LIKE '11,%' OR supplement_type||',' LIKE '%,11,%' THEN 1 ELSE 0 END) AS
-- "iAndD",
-- SUM(CASE WHEN supplement_type||',' LIKE '12,%' OR supplement_type||',' LIKE '%,12,%' THEN 1 ELSE 0 END) AS
-- "Other",
SUM(CASE WHEN supplement_type||',' LIKE '1,%' OR supplement_type||',' LIKE '%,1,%' THEN 1 ELSE 0 END) AS "sale",
SUM(CASE WHEN supplement_type||',' LIKE '2,%' OR supplement_type||',' LIKE '%,2,%' THEN 1 ELSE 0 END) AS
"project",
SUM(CASE WHEN supplement_type||',' LIKE '3,%' OR supplement_type||',' LIKE '%,3,%' THEN 1 ELSE 0 END) AS
"cost",
SUM(CASE WHEN supplement_type||',' LIKE '4,%' OR supplement_type||',' LIKE '%,4,%' THEN 1 ELSE 0 END) AS
"forMining",
SUM(CASE WHEN supplement_type||',' LIKE '5,%' OR supplement_type||',' LIKE '%,5,%' THEN 1 ELSE 0 END) AS
"finance",
SUM(CASE WHEN supplement_type||',' LIKE '6,%' OR supplement_type||',' LIKE '%,6,%' THEN 1 ELSE 0 END) AS
"forensic",
SUM(CASE WHEN supplement_type||',' LIKE '7,%' OR supplement_type||',' LIKE '%,7,%' THEN 1 ELSE 0 END) AS
"administration",
SUM(CASE WHEN supplement_type||',' LIKE '8,%' OR supplement_type||',' LIKE '%,8,%' THEN 1 ELSE 0 END) AS
"manpower",
SUM(CASE WHEN supplement_type||',' LIKE '9,%' OR supplement_type||',' LIKE '%,9,%' THEN 1 ELSE 0 END) AS
"development",
SUM(CASE WHEN supplement_type||',' LIKE '10,%' OR supplement_type||',' LIKE '%,10,%' THEN 1 ELSE 0 END) AS
"rAndD",
SUM(CASE WHEN supplement_type||',' LIKE '11,%' OR supplement_type||',' LIKE '%,11,%' THEN 1 ELSE 0 END) AS
"iAndD",
SUM(CASE WHEN supplement_type||',' LIKE '12,%' OR supplement_type||',' LIKE '%,12,%' THEN 1 ELSE 0 END) AS
"Other",
SUM(CASE WHEN supplement_type||',' LIKE '2,%' OR supplement_type||',' LIKE '%,2,%' THEN 1 ELSE 0 END) AS
"propertyManagement",
SUM(CASE WHEN supplement_type||',' LIKE '3,%' OR supplement_type||',' LIKE '%,3,%' THEN 1 ELSE 0 END) AS
......
......@@ -65,6 +65,7 @@
a.login_name,
a.password,
a.no,
a.area,
a.name,
a.email,
a.phone,
......
......@@ -171,6 +171,8 @@
<c:if test="${report.dealResult eq '2'}">举报无效</c:if>
<c:if test="${report.dealResult eq '3'}">举报受理</c:if>
<c:if test="${report.dealResult eq '4'}">举报属实</c:if>
<c:if test="${report.dealResult eq '5'}">举报不实</c:if>
<c:if test="${report.dealResult eq '6'}">移交其他部门</c:if>
</td>
<td><c:if test="${report.dealPersonName eq null}">--</c:if>
<c:if test="${report.dealPersonName ne null}">${report.dealPersonName}</c:if>
......
......@@ -43,8 +43,12 @@
dealResult = "举报无效";
} else if (dealResult == "3") {
dealResult = "举报受理";
}else if (dealResult == "4"){
} else if (dealResult == "4") {
dealResult = "举报属实";
} else if (dealResult == "5") {
dealResult = "举报不是";
} else if (dealResult == "6") {
dealResult = "移交其他部门";
}
$("#dealResult").val(dealResult);
});
......@@ -87,9 +91,10 @@
<li class="active"><a href="${ctx}/report/form">举报详情</a></li>
</ul>
<br/>
<form:form id="inputForm" modelAttribute="report" action="${ctx}/report/conclusion" method="post" class="form-horizontal">
<form:form id="inputForm" modelAttribute="report" action="${ctx}/report/conclusion" method="post"
class="form-horizontal">
<sys:message content="${message}"/>
<form:hidden id="reportId" path="id"/>
<form:hidden id="reportId" path="id"/>
<span class="title">举报内容</span>
<div class="control-group">
<label class="control-label">被举报项目/部门:</label>
......@@ -239,14 +244,18 @@
<c:if test="${isAdmin eq true && report.reportStatus eq '2'}"><form:select path="lStatus" class="input-small">
<form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></c:if>
<c:if test="${isAdmin eq false || report.reportStatus != '2'}"><form:input id="dealResult" path="dealResult" htmlEscape="false" maxlength="200" class="input-xlarge required"/></c:if>
<c:if test="${isAdmin eq false || report.reportStatus != '2'}"><form:input id="dealResult" path="dealResult"
htmlEscape="false" maxlength="200"
class="input-xlarge required"/></c:if>
</div>
</div>
</c:if>
<li class="btns">
<label style="width:auto;">
<c:if test="${report.reportStatus != '2' && report.reportStatus ne '3'}"><input id="btnTrack" class="btn btn-primary" type="button"
value="跟踪"/>&nbsp;&nbsp;</c:if>
<c:if test="${report.reportStatus != '2' && report.reportStatus ne '3'}"><input id="btnTrack"
class="btn btn-primary"
type="button"
value="跟踪"/>&nbsp;&nbsp;</c:if>
<input id="btnDocument" class="btn btn-primary" type="button" value="转为文档"
onclick="openDownloadDialog('${report.id}')"/>&nbsp;&nbsp;
<input id="btnReturn" class="btn btn-primary" type="button" value="返回" onclick="history.go(-1)"/>&nbsp;&nbsp;
......
......@@ -6,6 +6,19 @@
<title>举报管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
window.onload = function () {
var dealResult = $("#dealResult").val();
if (dealResult != null && dealResult != ' ') {
if (dealResult == "6") {
$("#selectType").show();
} else {
$("#selectType").hide();
}
$("#selectDone").show();
} else {
$("#selectDone").hide();
}
}
var submitCount = 0;
$(document).ready(function () {
$("#inputForm").validate({
......@@ -267,6 +280,7 @@
if (supplementType == "请选择") {
supplementType = "${report.reportProject}";
}
var supplementContent = "";
var path1 = "mailto:?subject=举报核查-" + supplementType + "-" + supplementInformant + "违规操作";
path1 += "&body=Dear,%0D%0A附件是举报核查-" + supplementType + "-" + supplementInformant + "违规操作,请核实是否属实。%0D%0A谢谢!";
......@@ -343,14 +357,18 @@
supplementArea = "集团本部";
}
path2 += "被举报区域:" + supplementArea + "%0D%0A";
var supplementContent = $("#supplementContent").val();
supplementContent = $("#supplementContent").val();
path2 += "内容:";
var path3 = "%0D%0A附件:%0D%0A";
$("#attachment2").find("[class='attachmentClass']").each(function () {
var url = $(this).text();
path3 += url;
});
}
if (path3 == null) {
path3 = "";
}
var path = path1 + reportContent + path2 + supplementContent + path3;
console.log(path);
var pathLength = "";
......@@ -572,7 +590,7 @@
<label class="control-label">业务类型:</label>
<div class="controls">
<span class="supplementType">
<form:checkboxes path="supplementType" items="${fns:getDictList('business_type')}"
<form:checkboxes path="supplementType" items="${fns:getDictList('supplement_type')}"
itemLabel="label" itemValue="value" class="required"/>
</span>
</div>
......
......@@ -101,28 +101,22 @@
},
xAxis: [{
categories: [
'地产',
'营销',
'工程',
'成本',
'招采',
'财务',
'法务',
'行政',
'人力',
'开发',
'研发',
'投资',
'其他',
'物业管理',
'酒店管理',
'商业管理'
],
// categories: [
// '营销',
// '工程',
// '成本',
// '招采',
// '财务',
// '法务',
// '行政',
// '人力',
// '开发',
// '研发',
// '投资',
// '其他',
// '物业管理',
// '酒店管理',
// '商业管理'
// ],
labels: {
enabled: false
},
......@@ -157,8 +151,41 @@
}
},
series: [{
name: '地产',
data: [result.land]
name: '营销',
data: [result.sale]
}, {
name: '工程',
data: [result.project]
}, {
name: '成本',
data: [result.cost]
}, {
name: '招采',
data: [result.forMining]
}, {
name: '财务',
data: [result.finance]
}, {
name: '法务',
data: [result.forensic]
}, {
name: '行政',
data: [result.administration]
}, {
name: '人力',
data: [result.manpower]
}, {
name: '开发',
data: [result.development]
}, {
name: '研发',
data: [result.rAndD]
}, {
name: '投资',
data: [result.iAndD]
}, {
name: '其他',
data: [result.Other]
}, {
name: '物业管理',
data: [result.propertyManagement]
......@@ -170,53 +197,6 @@
data: [result.businessManagement]
}
]
// series: [{
// name: '营销',
// data: [result.sale]
// }, {
// name: '工程',
// data: [result.project]
// }, {
// name: '成本',
// data: [result.cost]
// }, {
// name: '招采',
// data: [result.forMining]
// }, {
// name: '财务',
// data: [result.finance]
// }, {
// name: '法务',
// data: [result.forensic]
// }, {
// name: '行政',
// data: [result.administration]
// }, {
// name: '人力',
// data: [result.manpower]
// }, {
// name: '开发',
// data: [result.development]
// }, {
// name: '研发',
// data: [result.rAndD]
// }, {
// name: '投资',
// data: [result.iAndD]
// }, {
// name: '其他',
// data: [result.Other]
// }, {
// name: '物业管理',
// data: [result.propertyManagement]
// }, {
// name: '酒店管理',
// data: [result.hotelManagement]
// }, {
// name: '商业管理',
// data: [result.businessManagement]
// }
// ]
});
$('#repResult').highcharts({
navigation: {
......
......@@ -65,6 +65,7 @@
a.login_name,
a.password,
a.no,
a.area,
a.name,
a.email,
a.phone,
......
......@@ -65,6 +65,7 @@
a.login_name,
a.password,
a.no,
a.area,
a.name,
a.email,
a.phone,
......
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