|
@@ -13,6 +13,7 @@ import cc.smtweb.framework.core.mvc.service.DefaultDelHandler; |
|
|
import cc.smtweb.framework.core.mvc.service.DefaultListHandler; |
|
|
import cc.smtweb.framework.core.mvc.service.DefaultListHandler; |
|
|
import cc.smtweb.framework.core.session.UserSession; |
|
|
import cc.smtweb.framework.core.session.UserSession; |
|
|
import cc.smtweb.system.bpm.web.design.form.ModelFormHelper; |
|
|
import cc.smtweb.system.bpm.web.design.form.ModelFormHelper; |
|
|
|
|
|
import cc.smtweb.system.bpm.web.engine.flow.entity.Comment; |
|
|
import cc.smtweb.system.bpm.web.engine.flow.entity.ProcInst; |
|
|
import cc.smtweb.system.bpm.web.engine.flow.entity.ProcInst; |
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
@@ -63,5 +64,19 @@ public class ModelProcService extends AbstractCompService { |
|
|
|
|
|
|
|
|
return R.success(ret); |
|
|
return R.success(ret); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//加载审批意见的列表字段 |
|
|
|
|
|
public R loadCommentFields(@SwBody SwMap params, UserSession us) { |
|
|
|
|
|
ModelTable table = ModelTableCache.getInstance().get(Comment.ENTITY_NAME); |
|
|
|
|
|
if (table == null) return R.error("没有找到表定义信息(table=" + Comment.ENTITY_NAME + ")!"); |
|
|
|
|
|
|
|
|
|
|
|
List<SwMap> ret = new ArrayList<>(); |
|
|
|
|
|
for (ModelField field : table.getFields()) { |
|
|
|
|
|
SwMap col = new SwMap(2); |
|
|
|
|
|
ModelFormHelper.buildFieldInfo(table, field, col); |
|
|
|
|
|
ret.add(col); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return R.success(ret); |
|
|
|
|
|
} |
|
|
} |
|
|
} |