|
|
@@ -896,13 +896,13 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
Approval enclosure = new Approval(Approval.ENCLOSURE);
|
|
|
String path = TextUtils.isEmpty(newValues) ? values : newValues;
|
|
|
enclosure.setIdKey(getImageUrl(path));
|
|
|
- LogUtil.i("gong","path="+path+"||\ngetIdKey="+enclosure.getIdKey());
|
|
|
+ LogUtil.i("gong", "path=" + path + "||\ngetIdKey=" + enclosure.getIdKey());
|
|
|
String[] splits = path.split("\\.");
|
|
|
String suffix = "jpg";
|
|
|
if (splits != null && splits.length > 1) {
|
|
|
suffix = splits[splits.length - 1];
|
|
|
}
|
|
|
- enclosure.setCaption(caption+"."+suffix);
|
|
|
+ enclosure.setCaption(caption + "." + suffix);
|
|
|
List<Approval> enclosureList = new ArrayList<>();
|
|
|
enclosureList.add(enclosure);
|
|
|
addEnclosure(enclosureList);
|
|
|
@@ -1288,7 +1288,7 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
}
|
|
|
|
|
|
private void mergeNode(JSONArray array, List<Approval> approvals, boolean isLog) {
|
|
|
- String myCode=CommonUtil.getEmcode();
|
|
|
+ String myCode = CommonUtil.getEmcode();
|
|
|
for (int i = 0; i < array.size(); i++) {
|
|
|
JSONObject o = array.getJSONObject(i);
|
|
|
String name = JSONUtil.getText(o, "jp_nodeName", "jn_name");//节点名称
|
|
|
@@ -1314,14 +1314,14 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
if (!isLog) {
|
|
|
a.setDfType(nodeDealCode);
|
|
|
a.setCaption(nodeDealName);
|
|
|
- if (status.equals("待审批")){
|
|
|
- LogUtil.i("gong","status="+status);
|
|
|
- if (myCode.equals(nodeDealCode)){
|
|
|
+ if (status.equals("待审批")) {
|
|
|
+ LogUtil.i("gong", "status=" + status);
|
|
|
+ if (myCode.equals(nodeDealCode)) {
|
|
|
a.setIdKey(status);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
a.setIdKey("");
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
a.setIdKey(status);
|
|
|
}
|
|
|
} else {
|
|
|
@@ -1474,6 +1474,11 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
approval.setMustInput(neer.startsWith("Y"));
|
|
|
if (neer.contains("@A")) {
|
|
|
approval.setDfType("@A");
|
|
|
+ } else if (neer.contains("@")) {
|
|
|
+ String[] rets = neer.split("@");
|
|
|
+ if (rets != null && rets.length > 1) {
|
|
|
+ approval.setDfType("@" + rets[1]);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1512,7 +1517,7 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
}
|
|
|
|
|
|
private String getImageUrl(String path) {
|
|
|
- return CommonUtil.getAppBaseUrl(MyApplication.getInstance()) + "common/download.action?path=" + path+ "&sessionId=" +
|
|
|
+ return CommonUtil.getAppBaseUrl(MyApplication.getInstance()) + "common/download.action?path=" + path + "&sessionId=" +
|
|
|
CommonUtil.getSharedPreferences(MyApplication.getInstance(), "sessionId") +
|
|
|
"&sessionUser=" + CommonUtil.getSharedPreferences(MyApplication.getInstance(), "erp_username") +
|
|
|
"&master=" + CommonUtil.getSharedPreferences(MyApplication.getInstance(), "erp_master");
|
|
|
@@ -1552,6 +1557,8 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
}
|
|
|
if (approval.isDftypeEQ("@A")) {
|
|
|
customDes.append(approval.getCaption() + "(" + approval.getValues() + ")" + "@A@;");
|
|
|
+ } else if (!StringUtil.isEmpty(approval.getDfType()) && approval.getDfType().contains("@")) {
|
|
|
+ customDes.append(approval.getCaption() + "(" + approval.getValues() + ")" + approval.getDfType() + "@;");
|
|
|
} else {
|
|
|
customDes.append(approval.getCaption() + "(" + approval.getValues() + ");");
|
|
|
}
|