|
@@ -320,8 +320,9 @@ public class ProjectController {
|
|
|
operationRecord.setProjectName(project1.getProjectName());
|
|
|
operationRecord.setOperationTime(LocalDateTime.now());
|
|
|
//operationRecord.setModuleName("项目管理");
|
|
|
- operationRecord.setModuleName("项目管理");
|
|
|
- operationRecord.setContent("完成了项目");
|
|
|
+ operationRecord.setModuleName(MessageUtils.message("Template.projectManage"));
|
|
|
+ //operationRecord.setContent("完成了项目");
|
|
|
+ operationRecord.setContent(MessageUtils.message("Template.finishProject"));
|
|
|
operationRecord.setOperatorName(user.getName());
|
|
|
operationRecord.setCompanyId(user.getCompanyId());
|
|
|
operationRecordService.save(operationRecord);
|
|
@@ -345,8 +346,10 @@ public class ProjectController {
|
|
|
OperationRecord operationRecord=new OperationRecord();
|
|
|
operationRecord.setProjectName(project1.getProjectName());
|
|
|
operationRecord.setOperationTime(LocalDateTime.now());
|
|
|
- operationRecord.setContent("撤销了项目");
|
|
|
- operationRecord.setModuleName("项目管理");
|
|
|
+ //operationRecord.setContent("撤销了项目");
|
|
|
+ operationRecord.setContent(MessageUtils.message("Template.revokeProject"));
|
|
|
+ //operationRecord.setModuleName("项目管理");
|
|
|
+ operationRecord.setModuleName(MessageUtils.message("Template.projectManage"));
|
|
|
operationRecord.setOperatorName(user.getName());
|
|
|
operationRecord.setCompanyId(user.getCompanyId());
|
|
|
operationRecordService.save(operationRecord);
|
|
@@ -832,8 +835,10 @@ public class ProjectController {
|
|
|
HSSFDataValidation data_validation_list =null;
|
|
|
switch (rowList.get(i)){
|
|
|
case "是否为公共项目":
|
|
|
+ case "Whether it is a public project":
|
|
|
// 加载下拉列表内容
|
|
|
- textList= new String[]{"是", "否"};
|
|
|
+ //textList= new String[]{"是", "否"};
|
|
|
+ textList= new String[]{MessageUtils.message("excel.yes"), MessageUtils.message("excel.no")};
|
|
|
constraint = DVConstraint
|
|
|
.createExplicitListConstraint(textList);
|
|
|
// 设置数据有效性加载在哪个单元格上,四个参数分别是:起始行、终止行、起始列、终止列
|
|
@@ -845,12 +850,16 @@ public class ProjectController {
|
|
|
sheet.addValidationData(data_validation_list);
|
|
|
comment = drawing.createCellComment(anchor);
|
|
|
// 输入批注信息
|
|
|
- comment.setString(new HSSFRichTextString("是否为公共项目\n" +
|
|
|
- "是:公共项目\n" +
|
|
|
- "否:普通项目"));
|
|
|
+ //comment.setString(new HSSFRichTextString("是否为公共项目\n" +
|
|
|
+ //"是:公共项目\n" +
|
|
|
+ //"否:普通项目"));
|
|
|
+ comment.setString(new HSSFRichTextString(MessageUtils.message("excel.publicProject")+"\n" +
|
|
|
+ MessageUtils.message("excel.yesPublic")+"\n" +
|
|
|
+ MessageUtils.message("excel.noPublic")));
|
|
|
cell.setCellComment(comment);
|
|
|
break;
|
|
|
case "级别":
|
|
|
+ case "level":
|
|
|
// 加载下拉列表内容
|
|
|
if(timeType.getProjectLevelState()==1){
|
|
|
List<String> list = projectLevelList.stream().map(pl -> pl.getProjectLevelName()).collect(Collectors.toList());
|
|
@@ -860,7 +869,8 @@ public class ProjectController {
|
|
|
textList[i1]=array[i1].toString();
|
|
|
}
|
|
|
}else {
|
|
|
- textList= new String[]{"正常", "紧急","重要","重要且紧急"};
|
|
|
+ //textList= new String[]{"正常", "紧急","重要","重要且紧急"};
|
|
|
+ textList= new String[]{MessageUtils.message("excel.normal"), MessageUtils.message("excel.urgent"),MessageUtils.message("excel.important"),MessageUtils.message("excel.impAndUrg")};
|
|
|
}
|
|
|
constraint = DVConstraint
|
|
|
.createExplicitListConstraint(textList);
|
|
@@ -873,35 +883,45 @@ public class ProjectController {
|
|
|
sheet.addValidationData(data_validation_list);
|
|
|
break;
|
|
|
case "项目名称":
|
|
|
+ case "project name":
|
|
|
comment = drawing.createCellComment(anchor);
|
|
|
// 输入批注信息
|
|
|
- comment.setString(new HSSFRichTextString("项目名称必填"));
|
|
|
+ comment.setString(new HSSFRichTextString(MessageUtils.message("excel.projectName")));
|
|
|
cell.setCellComment(comment);
|
|
|
break;
|
|
|
case "参与人":
|
|
|
+ case "Participants":
|
|
|
comment = drawing.createCellComment(anchor);
|
|
|
// 输入批注信息
|
|
|
- comment.setString(new HSSFRichTextString("多个参与人使用中文逗号(,)隔开"));
|
|
|
+ comment.setString(new HSSFRichTextString(MessageUtils.message("excel.manyPeople")));
|
|
|
cell.setCellComment(comment);
|
|
|
break;
|
|
|
case "项目经理":
|
|
|
+ case "project manager":
|
|
|
comment = drawing.createCellComment(anchor);
|
|
|
// 输入批注信息
|
|
|
- comment.setString(new HSSFRichTextString("项目经理需存在于参与人中"));
|
|
|
+ //comment.setString(new HSSFRichTextString("项目经理需存在于参与人中"));
|
|
|
+ comment.setString(new HSSFRichTextString(MessageUtils.message("excel.projectManager")));
|
|
|
cell.setCellComment(comment);
|
|
|
break;
|
|
|
case "开始日期":
|
|
|
+ case "Start Date":
|
|
|
case "截止日期":
|
|
|
+ case "end date":
|
|
|
// 输入批注信息
|
|
|
comment = drawing.createCellComment(anchor);
|
|
|
// 输入批注信息
|
|
|
- comment.setString(new HSSFRichTextString("日期格式:yyyy-MM-dd\n" +
|
|
|
- "例如: 2021-01-01"));
|
|
|
+ //comment.setString(new HSSFRichTextString("日期格式:yyyy-MM-dd\n" +
|
|
|
+ // "例如: 2021-01-01"));
|
|
|
+ comment.setString(new HSSFRichTextString(MessageUtils.message("excel.dateFormat")+"\n" +
|
|
|
+ MessageUtils.message("excel.forExample")));
|
|
|
cell.setCellComment(comment);
|
|
|
break;
|
|
|
case "项目状态":
|
|
|
+ case "Project Status":
|
|
|
// 加载下拉列表内容
|
|
|
- textList= new String[]{"全部", "进行中", "已完成", "已撤销", "暂停"};
|
|
|
+ //textList= new String[]{"全部", "进行中", "已完成", "已撤销", "暂停"};
|
|
|
+ textList= new String[]{MessageUtils.message("excel.whole"), MessageUtils.message("excel.onGoing"), MessageUtils.message("excel.complete"), MessageUtils.message("excel.revoke"), MessageUtils.message("excel.pause")};
|
|
|
constraint = DVConstraint
|
|
|
.createExplicitListConstraint(textList);
|
|
|
// 设置数据有效性加载在哪个单元格上,四个参数分别是:起始行、终止行、起始列、终止列
|
|
@@ -913,6 +933,7 @@ public class ProjectController {
|
|
|
sheet.addValidationData(data_validation_list);
|
|
|
break;
|
|
|
case "项目阶段":
|
|
|
+ case "Project Phase":
|
|
|
// 加载下拉列表内容
|
|
|
List<String> list = projectStageList.stream().map(pc -> pc.getProjectStageName()).collect(Collectors.toList());
|
|
|
textList= new String[list.size()];
|
|
@@ -930,9 +951,11 @@ public class ProjectController {
|
|
|
sheet.addValidationData(data_validation_list);
|
|
|
break;
|
|
|
}
|
|
|
- if(rowList.get(i).contains("节点状态")){
|
|
|
+ //if(rowList.get(i).contains("节点状态")){
|
|
|
+ if(rowList.get(i).contains(MessageUtils.message("excel.nodeStatus"))){
|
|
|
// 加载下拉列表内容
|
|
|
- textList= new String[]{"正常", "延期", "完成"};
|
|
|
+ //textList= new String[]{"正常", "延期", "完成"};
|
|
|
+ textList= new String[]{MessageUtils.message("excel.normal"), MessageUtils.message("excel.postpone"), MessageUtils.message("excel.finish")};
|
|
|
constraint = DVConstraint
|
|
|
.createExplicitListConstraint(textList);
|
|
|
// 设置数据有效性加载在哪个单元格上,四个参数分别是:起始行、终止行、起始列、终止列
|