|
|
|
@ -18,12 +18,16 @@ public class HrmResourceTransMethod {
|
|
|
|
|
|
|
|
|
|
public static String getFieldTrueValue(String id, String para) {
|
|
|
|
|
HrmFieldManager hfm = new HrmFieldManager("HrmCustomFieldByInfoType", Integer.parseInt(para.split("_")[0]));
|
|
|
|
|
// hfm.getCustomFields();
|
|
|
|
|
String fieldName = para.substring(para.lastIndexOf("_") + 1);
|
|
|
|
|
JSONObject hrmFieldConf = hfm.getHrmFieldConf(fieldName);
|
|
|
|
|
User user = new User();
|
|
|
|
|
user.setUid(1);
|
|
|
|
|
try {
|
|
|
|
|
if (hfm.isBaseField(fieldName)) {
|
|
|
|
|
if ("jobactivity".equals(fieldName)) {
|
|
|
|
|
hrmFieldConf.put("type", 282);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return hfm.getFieldvalue(null, user, null, hrmFieldConf.getString("dmlurl"), hrmFieldConf.getInt("id"), hrmFieldConf.getInt("fieldhtmltype"), hrmFieldConf.getInt("type"), id, 0, fieldName);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return "";
|
|
|
|
|