|
|
@@ -35,14 +35,14 @@ public class FlowSingleSaveHandler<T extends DefaultEntity> extends LCSingleSave |
|
|
|
data = data.readMap("form"); |
|
|
|
if (data == null) throw new BizException("没有找到待保存的流程数据!"); |
|
|
|
|
|
|
|
FlowInstance flowInstance = new FlowInstance(this, us); |
|
|
|
flowInstance = new FlowInstance(this, us); |
|
|
|
if (bean.isNew()) { |
|
|
|
flowInstance.create(form.getBillType()); |
|
|
|
} else { |
|
|
|
flowInstance.load(id, taskId); |
|
|
|
} |
|
|
|
flowInstance.readFromPage(data); |
|
|
|
|
|
|
|
flowInstance.setBillInfo(getBillCode(), getBillInfo(), getBillUrl()); |
|
|
|
return bean; |
|
|
|
} |
|
|
|
|
|
|
@@ -51,4 +51,19 @@ public class FlowSingleSaveHandler<T extends DefaultEntity> extends LCSingleSave |
|
|
|
super.saveBean(bean); |
|
|
|
flowInstance.save(); |
|
|
|
} |
|
|
|
|
|
|
|
//单据编号 |
|
|
|
protected String getBillCode() { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
|
|
|
|
//单据信息,在待办中显示 |
|
|
|
protected String getBillInfo() { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
|
|
|
|
//单据url,待办中跳链 |
|
|
|
protected String getBillUrl() { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
} |