|
|
@@ -193,7 +193,7 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
/**
|
|
|
* start 提交部分
|
|
|
*/
|
|
|
- /*变更处理人 submiting*/
|
|
|
+ /*变更处理人 submiting*/
|
|
|
public void updateAssignee(String emCode, String nodeLog) {
|
|
|
if (StringUtil.isEmpty(nodeLog)) {
|
|
|
iApproval.showToast(R.string.approval_opinion_error, R.color.load_submit);
|
|
|
@@ -287,6 +287,9 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
/*同意 submiting end loadProcessUpdate*/
|
|
|
private void agree(String nodeLog) {
|
|
|
LogUtil.i("agree");
|
|
|
+ if (1 == 1) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
iApproval.showLoading();
|
|
|
String points = StringUtil.getMessage(chchePoints);
|
|
|
points.replaceAll("@", "").replaceAll("\\@", "").replaceAll("\\\\@", "");
|
|
|
@@ -1146,13 +1149,13 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
*/
|
|
|
for (int i = 0; i < approvals.size(); i++) {
|
|
|
Approval a = approvals.get(i);
|
|
|
- LogUtil.i("a.getIdKey()="+a.getIdKey());
|
|
|
+ LogUtil.i("a.getIdKey()=" + a.getIdKey());
|
|
|
if (!a.getIdKey().startsWith("已审批")
|
|
|
&& !a.getIdKey().startsWith("未通过")
|
|
|
&& !a.getIdKey().startsWith("不同意")
|
|
|
&& !a.getIdKey().startsWith("已结束")) {
|
|
|
hanNotApproval = true;
|
|
|
- if (a.getIdKey().startsWith("待审批")){
|
|
|
+ if (a.getIdKey().startsWith("待审批")) {
|
|
|
a.setValues("");
|
|
|
}
|
|
|
} else if (a.getIdKey().startsWith("未通过") && i == 0) {
|
|
|
@@ -1292,14 +1295,14 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
if (a.getValuesKey().equals(record.nodeName)) {
|
|
|
hanEnd = true;
|
|
|
}
|
|
|
- LogUtil.i("gong","name="+name);
|
|
|
- LogUtil.i("gong","a.getValuesKey()="+a.getValuesKey());
|
|
|
+ LogUtil.i("gong", "name=" + name);
|
|
|
+ LogUtil.i("gong", "a.getValuesKey()=" + a.getValuesKey());
|
|
|
if (name.equals(a.getValuesKey())) {//为当前结点
|
|
|
- LogUtil.i("gong","为当前结点="+nodeDealName);
|
|
|
+ LogUtil.i("gong", "为当前结点=" + nodeDealName);
|
|
|
if (!isLog) {
|
|
|
a.setDfType(nodeDealCode);
|
|
|
a.setCaption(nodeDealName);
|
|
|
- a.setIdKey( status);
|
|
|
+ a.setIdKey(status);
|
|
|
} else {
|
|
|
if (launchTime > 0) {
|
|
|
a.setValues(DateFormatUtil.long2Str(launchTime, "MM-dd"));
|
|
|
@@ -1307,7 +1310,7 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
}
|
|
|
if (a.isDftypeEQ(nodeDealCode)) {
|
|
|
if (status.equals("不同意")) {
|
|
|
- a.setIdKey( "未通过");
|
|
|
+ a.setIdKey("未通过");
|
|
|
} else if (status.equals("同意")) {
|
|
|
a.setIdKey("已审批");
|
|
|
}
|
|
|
@@ -1551,14 +1554,18 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
}
|
|
|
}
|
|
|
Map<String, Object> formstore = putItem2Params(true, mainList);
|
|
|
- if (formstore == null)
|
|
|
+ if (formstore == null) {
|
|
|
return false;
|
|
|
+ }
|
|
|
formStore.putAll(formstore);
|
|
|
|
|
|
for (List<Approval> details : detailList) {
|
|
|
Map<String, Object> param = putItem2Params(false, details);
|
|
|
- if (param == null || param.isEmpty() || param.keySet().size() <= 1)
|
|
|
+ if (param == null || param.isEmpty() || param.keySet().size() <= 1) {
|
|
|
+// iApproval.showToast("明细行邮必填字段未填写");
|
|
|
+// return false;
|
|
|
continue;
|
|
|
+ }
|
|
|
params.add(param);
|
|
|
}
|
|
|
}
|
|
|
@@ -1575,12 +1582,6 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
iApproval.showToast(message);
|
|
|
}
|
|
|
return null;
|
|
|
- } else if (StringUtil.isEmpty(approval.getValues())) {
|
|
|
- String message = StringUtil.getMessage(R.string.must_input_key) + " " + approval.getCaption() + " " + StringUtil.getMessage(R.string.limit_unno_zijie);
|
|
|
- if (showTocat) {
|
|
|
- iApproval.showToast(message);
|
|
|
- }
|
|
|
- return null;
|
|
|
} else {
|
|
|
if (approval.getValues().equals(Approval.VALUES_UNKNOWN)) {
|
|
|
formstore.put(approval.getValuesKey(), "1");//添加特殊字符判断
|
|
|
@@ -1617,7 +1618,7 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
approvals.addAll(enclosureList);
|
|
|
approvals.addAll(pointsList);
|
|
|
approvals.addAll(nodeList);
|
|
|
- LogUtil.i("gong","setData2ListThread="+approvals.size());
|
|
|
+ LogUtil.i("gong", "setData2ListThread=" + approvals.size());
|
|
|
|
|
|
OAHttpHelper.getInstance().post(new Runnable() {
|
|
|
@Override
|