|
|
|
@ -367,7 +367,9 @@ public class DepartmentServiceImpl extends Service implements DepartmentService
|
|
|
|
|
itemList.add(searchConditionItem);
|
|
|
|
|
}
|
|
|
|
|
groupList.add(new SearchConditionGroup(SystemEnv.getHtmlLabelNames(groupLabel, user.getLanguage()), true, itemList));
|
|
|
|
|
groupList.add(new SearchConditionGroup("拓展信息", true, extendItemList));
|
|
|
|
|
if (CollectionUtils.isNotEmpty(extendItemList)) {
|
|
|
|
|
groupList.add(new SearchConditionGroup("拓展信息", true, extendItemList));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -411,12 +413,9 @@ public class DepartmentServiceImpl extends Service implements DepartmentService
|
|
|
|
|
isCheckItem.setDetailtype(2);
|
|
|
|
|
SearchConditionItem copySubDeptItem = OrganizationFormItemUtil.selectItem(user, Lists.newArrayList(new SearchConditionOption("1", "")), 2, 5, 10, false, "复制子部门信息", "copySubDept");
|
|
|
|
|
copySubDeptItem.setDetailtype(2);
|
|
|
|
|
SearchConditionItem copySubJob = OrganizationFormItemUtil.selectItem(user, Lists.newArrayList(new SearchConditionOption("1", "")), 2, 5, 10, false, "复制子部门岗位信息", "copySubJob");
|
|
|
|
|
copySubJob.setDetailtype(2);
|
|
|
|
|
condition.add(compBrowserItem);
|
|
|
|
|
condition.add(isCheckItem);
|
|
|
|
|
condition.add(copySubDeptItem);
|
|
|
|
|
condition.add(copySubJob);
|
|
|
|
|
addGroups.add(new SearchConditionGroup("", true, condition));
|
|
|
|
|
return addGroups;
|
|
|
|
|
}
|
|
|
|
@ -693,7 +692,8 @@ public class DepartmentServiceImpl extends Service implements DepartmentService
|
|
|
|
|
return !(StringUtil.isEmpty(departmentPO.getDepartmentCode())
|
|
|
|
|
&& StringUtil.isEmpty(departmentPO.getDepartmentName())
|
|
|
|
|
&& null == departmentPO.getSubCompanyId1()
|
|
|
|
|
&& null == departmentPO.getSupDepId());
|
|
|
|
|
&& null == departmentPO.getSupDepId()
|
|
|
|
|
&& null == departmentPO.getDepartmentId());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -880,32 +880,14 @@ public class DepartmentServiceImpl extends Service implements DepartmentService
|
|
|
|
|
|
|
|
|
|
String id = Util.null2String(params.get("id"));
|
|
|
|
|
int viewAttr = Util.getIntValue(Util.null2String(params.get("viewattr")), 1);
|
|
|
|
|
String nodeType = Util.null2String(params.get("type"));
|
|
|
|
|
String addType = Util.null2String(params.get("addType"));
|
|
|
|
|
DepartmentComInfo departmentComInfo = new DepartmentComInfo();
|
|
|
|
|
String subcompanyid1 = "";
|
|
|
|
|
String supDepId = "";
|
|
|
|
|
|
|
|
|
|
switch (addType) {
|
|
|
|
|
case "normal":
|
|
|
|
|
if ("subcompany".equals(nodeType)) {
|
|
|
|
|
subcompanyid1 = id;
|
|
|
|
|
} else {
|
|
|
|
|
subcompanyid1 = departmentComInfo.getSubcompanyid1(id);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "sibling":
|
|
|
|
|
subcompanyid1 = departmentComInfo.getSubcompanyid1(id);
|
|
|
|
|
supDepId = departmentComInfo.getDepartmentsupdepid(id);
|
|
|
|
|
break;
|
|
|
|
|
case "child":
|
|
|
|
|
subcompanyid1 = departmentComInfo.getSubcompanyid1(id);
|
|
|
|
|
supDepId = id;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
String subcompanyid1 = Util.null2String(params.get("subcompanyid1"));
|
|
|
|
|
String supDepId = Util.null2String(params.get("departmentid"));
|
|
|
|
|
if (StringUtils.isNotBlank(supDepId)) {
|
|
|
|
|
subcompanyid1 = new DepartmentComInfo().getSubcompanyid1(supDepId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HrmFieldGroupComInfo HrmFieldGroupComInfo = new HrmFieldGroupComInfo();
|
|
|
|
|
HrmFieldComInfo HrmFieldComInfo = new HrmFieldComInfo();
|
|
|
|
|
HrmFieldSearchConditionComInfo hrmFieldSearchConditionComInfo = new HrmFieldSearchConditionComInfo();
|
|
|
|
@ -1018,7 +1000,9 @@ public class DepartmentServiceImpl extends Service implements DepartmentService
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
groupList.add(new SearchConditionGroup(SystemEnv.getHtmlLabelNames(grouplabel, user.getLanguage()), true, itemList));
|
|
|
|
|
groupList.add(new SearchConditionGroup("拓展信息", true, extendItemList));
|
|
|
|
|
if (CollectionUtils.isNotEmpty(extendItemList)) {
|
|
|
|
|
groupList.add(new SearchConditionGroup("拓展信息", true, extendItemList));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return groupList;
|
|
|
|
|
}
|
|
|
|
|