Przeglądaj źródła

流程引擎-listhandler

4.0
郑根木 2 lat temu
rodzic
commit
950ca07324
1 zmienionych plików z 5 dodań i 0 usunięć
  1. +5
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/db/ModelCatalogTreeHandler.java

+ 5
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/db/ModelCatalogTreeHandler.java Wyświetl plik

@@ -36,6 +36,7 @@ public class ModelCatalogTreeHandler extends AbstractTreeHandler<DefaultEntity>
private int type;//查询类型:0-目录;1-表定义;2-页面定义
private boolean exc_empty;//排除空目录,type非目录时有效
private boolean exc_depend;//排除依赖项目的目录
private boolean only_bill;//仅限单据页面(billType>0)
private ModelCatalogTreeHelper mcTreeHelper = null;

//模块子页面,暂存
@@ -48,6 +49,7 @@ public class ModelCatalogTreeHandler extends AbstractTreeHandler<DefaultEntity>
prj_id = params.readLong("prj_id");
exc_empty = params.readBool("exc_empty");
exc_depend = params.readBool("exc_depend");
only_bill = params.readBool("only_bill");
mcTreeHelper = (ModelCatalogTreeHelper) TreeHelper.getTreeHelper(ModelCatalog.ENTITY_NAME);
}

@@ -185,6 +187,9 @@ public class ModelCatalogTreeHandler extends AbstractTreeHandler<DefaultEntity>
private void addForm(List<DefaultEntity> listRet, List<ModelForm> lf, boolean exc_widget) {
for (ModelForm mf : lf) {
if (exc_widget && mf.getType() == SwEnum.FormType.WIDGET.value) continue;
if (only_bill && mf.getBillType() <= 0L) {//清除非单据页面
continue;
}
if (mf.getParent() > 0) {
List<DefaultEntity> ch = mapFormChild.computeIfAbsent(mf.getParent(), k -> new ArrayList<>());
ch.add(mf);


Ładowanie…
Anuluj
Zapisz