|
|
@@ -3,12 +3,14 @@ package cc.smtweb.system.bpm.web.design.form.model; |
|
|
|
import cc.smtweb.framework.core.common.SwEnum; |
|
|
|
import cc.smtweb.framework.core.common.SwMap; |
|
|
|
import cc.smtweb.framework.core.db.DbEngine; |
|
|
|
import cc.smtweb.framework.core.exception.SwException; |
|
|
|
import cc.smtweb.framework.core.util.CommUtil; |
|
|
|
import cc.smtweb.framework.core.util.JsonUtil; |
|
|
|
import cc.smtweb.framework.core.util.StringUtil; |
|
|
|
import cc.smtweb.system.bpm.web.design.form.ModelForm; |
|
|
|
import cc.smtweb.system.bpm.web.design.form.ModelFormCache; |
|
|
|
import cc.smtweb.system.bpm.web.design.form.ModelFormHelper; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Set; |
|
|
@@ -41,7 +43,7 @@ public class BaseModelWorker { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//保存页面 |
|
|
|
//保存页面,备用 |
|
|
|
protected void savePage(ModelForm bean) { |
|
|
|
|
|
|
|
} |
|
|
@@ -73,6 +75,13 @@ public class BaseModelWorker { |
|
|
|
* @param bean |
|
|
|
*/ |
|
|
|
public void buildSaveModel(ModelForm bean) { |
|
|
|
String tmplId = getTmplId(bean); |
|
|
|
if (StringUtils.isEmpty(tmplId)) throw new SwException("此类型页面没有找到对应的模板文件!"); |
|
|
|
ModelFormHelper.buildSaveModelByTmpl(bean, tmplId); |
|
|
|
} |
|
|
|
|
|
|
|
//获取模板名 |
|
|
|
protected String getTmplId(ModelForm bean) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |