自定义导出模板-3.0
This commit is contained in:
parent
ff5df9b25d
commit
580353a7e6
|
@ -3,6 +3,7 @@ package shkd.repc.repmd.template;
|
|||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||
import kd.bos.dataentity.utils.StringUtils;
|
||||
import kd.bos.form.FormShowParameter;
|
||||
import kd.bos.form.control.Button;
|
||||
import kd.bos.form.control.Control;
|
||||
import kd.bos.form.control.EntryGrid;
|
||||
|
@ -24,6 +25,7 @@ public class AreaTemplateFromPlugin extends AbstractFormPlugin implements Plugin
|
|||
@Override
|
||||
public void afterBindData(EventObject e) {
|
||||
super.afterBindData(e);
|
||||
ENTRY_COLLECTION.clear();
|
||||
DynamicObjectCollection entry = this.getModel().getEntryEntity("qeug_entryentity");
|
||||
if (entry == null || entry.size() == 0) {
|
||||
DynamicObjectCollection query = QueryServiceHelper.query("qeug_areatemplate", "id,qeug_number,qeug_remark", null);
|
||||
|
@ -62,6 +64,8 @@ public class AreaTemplateFromPlugin extends AbstractFormPlugin implements Plugin
|
|||
DynamicObject dynamicObject = entity.get(selectRow);
|
||||
ENTRY_COLLECTION.add(dynamicObject);
|
||||
}
|
||||
FormShowParameter showParameter = this.getView().getFormShowParameter();
|
||||
showParameter.setCustomParam("isOK",true);
|
||||
this.getView().close();
|
||||
} else {
|
||||
this.getView().showMessage("请选中一条数据!");
|
||||
|
|
Loading…
Reference in New Issue