|
|
@@ -969,7 +969,7 @@ public class ExcelTabController extends BladeController {
|
|
|
.eq(WbsTreeContract::getContractId, wbsTreeContract.getContractId())
|
|
|
.eq(WbsTreeContract::getWbsId, wbsTreeContract.getWbsId()).last("limit 1"));
|
|
|
if (process != null) {
|
|
|
- this.excelTabService.gsColor(pkeyId, process.getPKeyId().toString(), wbsTreeContract.getProjectId(), doc);
|
|
|
+ this.excelTabService.gsColor(pkeyId, process.getPKeyId().toString(), wbsTreeContract.getProjectId(), doc, ExecuteType.INSPECTION);
|
|
|
//设置自动获取的单元格添加html标识
|
|
|
this.excelTabService.setAutomatic(pkeyId,process.getPKeyId().toString(),doc);
|
|
|
}
|
|
|
@@ -1132,26 +1132,29 @@ public class ExcelTabController extends BladeController {
|
|
|
Document doc = Jsoup.parse(htmlString);
|
|
|
Element table = doc.select("table").first();
|
|
|
|
|
|
-
|
|
|
- //获取公式颜色
|
|
|
- String tabName = wbsTreePrivate.getInitTableName();
|
|
|
- //字段查询、获取公式字段
|
|
|
- String colKeys = "SELECT e_key from m_table_info a ,m_wbs_form_element b WHERE a.tab_en_name = '" + tabName + "' and a.id=b.f_id and b.id in(SELECT element_id from m_element_formula_mapping c where c.is_deleted=0) ";
|
|
|
- List<Map<String, Object>> maps = jdbcTemplate.queryForList(colKeys);
|
|
|
- if (maps.size() > 0) {
|
|
|
- for (Map<String, Object> keys : maps) {
|
|
|
- String key = keys.get("e_key") + "__";
|
|
|
- Elements gsColor = doc.select("el-input[keyname~=^" + key + "]");
|
|
|
- for (Element element : gsColor) {
|
|
|
- element.parent().attr("gscolor", "11");
|
|
|
- }
|
|
|
-
|
|
|
- Elements dateColor = doc.select("el-date-picker[keyname~=^" + key + "]");
|
|
|
- for (Element element : dateColor) {
|
|
|
- element.parent().attr("gscolor", "11");
|
|
|
- }
|
|
|
- }
|
|
|
+ WbsTreePrivate process = this.wbsTreePrivateMapper.getByPKeyId(wbsTreePrivate.getPId());
|
|
|
+ if (process != null) {
|
|
|
+ this.excelTabService.gsColor(pkeyId, process.getPKeyId().toString(), wbsTreePrivate.getProjectId(), doc, ExecuteType.LOGINFO);
|
|
|
}
|
|
|
+// //获取公式颜色
|
|
|
+// String tabName = wbsTreePrivate.getInitTableName();
|
|
|
+// //字段查询、获取公式字段
|
|
|
+// String colKeys = "SELECT e_key from m_table_info a ,m_wbs_form_element b WHERE a.tab_en_name = '" + tabName + "' and a.id=b.f_id and b.id in(SELECT element_id from m_element_formula_mapping c where c.is_deleted=0) ";
|
|
|
+// List<Map<String, Object>> maps = jdbcTemplate.queryForList(colKeys);
|
|
|
+// if (maps.size() > 0) {
|
|
|
+// for (Map<String, Object> keys : maps) {
|
|
|
+// String key = keys.get("e_key") + "__";
|
|
|
+// Elements gsColor = doc.select("el-input[keyname~=^" + key + "]");
|
|
|
+// for (Element element : gsColor) {
|
|
|
+// element.parent().attr("gscolor", "11");
|
|
|
+// }
|
|
|
+//
|
|
|
+// Elements dateColor = doc.select("el-date-picker[keyname~=^" + key + "]");
|
|
|
+// for (Element element : dateColor) {
|
|
|
+// element.parent().attr("gscolor", "11");
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
|
|
|
doc.select("Col").remove();
|