@ibiz-template/runtime 0.7.12-alpha.0 → 0.7.13-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1520 -415
- package/dist/index.system.min.js +1 -1
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +4 -4
- package/out/command/app/app-func/app-func.js +3 -3
- package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
- package/out/command/app/open-app-view/open-app-view.js +6 -4
- package/out/constant/sys-uiaction-tag.d.ts +5 -1
- package/out/constant/sys-uiaction-tag.d.ts.map +1 -1
- package/out/constant/sys-uiaction-tag.js +4 -0
- package/out/controller/common/editor/code-list-editor.controller.js +1 -1
- package/out/controller/common/index.d.ts +1 -0
- package/out/controller/common/index.d.ts.map +1 -1
- package/out/controller/common/index.js +1 -0
- package/out/controller/common/view/app-login-view.controller.d.ts +54 -0
- package/out/controller/common/view/app-login-view.controller.d.ts.map +1 -0
- package/out/controller/common/view/app-login-view.controller.js +62 -0
- package/out/controller/common/view/view.controller.d.ts +7 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +18 -1
- package/out/controller/control/app-menu/app-menu.controller.js +1 -1
- package/out/controller/control/app-menu-icon-view/app-menu-icon-view.controller.js +1 -1
- package/out/controller/control/calendar/calendar.service.js +2 -2
- package/out/controller/control/chart/chart.controller.js +2 -2
- package/out/controller/control/chart/generator/bar-series-generator.js +2 -2
- package/out/controller/control/chart/generator/chart-options-generator.js +2 -2
- package/out/controller/control/chart/generator/line-series-generator.js +2 -2
- package/out/controller/control/chart/generator/scatter-series-generator.js +2 -2
- package/out/controller/control/data-view/data-view.controller.js +2 -2
- package/out/controller/control/exp-bar/tree-exp-bar.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +1 -1
- package/out/controller/control/gantt/gantt.controller.js +2 -2
- package/out/controller/control/gantt/gantt.service.js +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +4 -4
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +1 -1
- package/out/controller/control/kanban/kanban.controller.js +2 -2
- package/out/controller/control/md-ctrl/md-ctrl.controller.js +2 -2
- package/out/controller/control/report-panel/generator/generator-factory.js +1 -1
- package/out/controller/control/search-bar/search-bar-filter-items.controller.js +1 -1
- package/out/controller/control/toolbar/toolbar.controllerr.js +1 -1
- package/out/controller/control/tree/tree.controller.js +2 -2
- package/out/controller/control/tree/tree.service.js +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.js +2 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +2 -2
- package/out/controller/utils/data-file-util/data-file-util.js +1 -1
- package/out/controller/utils/value-default/value-default.js +2 -2
- package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +2 -2
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.js +6 -3
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.js +10 -4
- package/out/de-logic/de-logic-node/append-param-node/append-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/append-param-node/append-param-node.js +4 -2
- package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.js +5 -2
- package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.js +5 -2
- package/out/de-logic/de-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/data-set-node/data-set-node.js +6 -1
- package/out/de-logic/de-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/de-action-node/de-action-node.js +8 -3
- package/out/de-logic/de-logic-node/end-node/end-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/end-node/end-node.js +7 -2
- package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.js +8 -2
- package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.js +5 -2
- package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.js +5 -2
- package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.js +7 -2
- package/out/de-logic/de-logic-node/start-node/start-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/start-node/start-node.js +3 -1
- package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.js +5 -1
- package/out/de-logic/de-logic-param/de-logic-param.d.ts.map +1 -1
- package/out/de-logic/de-logic-param/de-logic-param.js +10 -10
- package/out/de-logic/de-logic.d.ts.map +1 -1
- package/out/de-logic/de-logic.js +6 -4
- package/out/de-logic/index.d.ts.map +1 -1
- package/out/de-logic/index.js +12 -3
- package/out/de-logic/utils/handle-src-val.d.ts.map +1 -1
- package/out/de-logic/utils/handle-src-val.js +7 -3
- package/out/engine/engine-factory.d.ts.map +1 -1
- package/out/engine/engine-factory.js +1 -1
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +3 -3
- package/out/engine/view-base.engine.d.ts +1 -0
- package/out/engine/view-base.engine.d.ts.map +1 -1
- package/out/engine/view-base.engine.js +42 -5
- package/out/global/global-util/global-util.d.ts +9 -1
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +11 -3
- package/out/hub/config/app-view-config-service.js +2 -2
- package/out/interface/controller/controller/view/i-app-login-view.controller.d.ts +40 -0
- package/out/interface/controller/controller/view/i-app-login-view.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/view/i-app-login-view.controller.js +1 -0
- package/out/interface/controller/controller/view/index.d.ts +1 -0
- package/out/interface/controller/controller/view/index.d.ts.map +1 -1
- package/out/interface/controller/state/view/i-view.state.d.ts +7 -0
- package/out/interface/controller/state/view/i-view.state.d.ts.map +1 -1
- package/out/interface/service/service/i-auth.service.d.ts +1 -1
- package/out/interface/service/service/i-auth.service.d.ts.map +1 -1
- package/out/interface/util/i-short-cut/i-short-cut.d.ts +58 -0
- package/out/interface/util/i-short-cut/i-short-cut.d.ts.map +1 -0
- package/out/interface/util/i-short-cut/i-short-cut.js +1 -0
- package/out/interface/util/index.d.ts +1 -0
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-de-ui-logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-de-ui-logic-executor.js +1 -1
- package/out/logic-scheduler/executor/app-ui-action-executor.js +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.js +24 -16
- package/out/logic-scheduler/executor/logic-executor-factory.d.ts.map +1 -1
- package/out/logic-scheduler/executor/logic-executor-factory.js +3 -1
- package/out/logic-scheduler/executor/logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/logic-executor.js +1 -1
- package/out/logic-scheduler/trigger/item-dyna-logic-trigger.js +1 -1
- package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/logic-trigger-factory.js +3 -1
- package/out/logic-scheduler/trigger/logic-trigger.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/logic-trigger.js +3 -1
- package/out/logic-scheduler/trigger/timer-trigger.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/timer-trigger.js +2 -2
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +3 -3
- package/out/model/view/view.d.ts.map +1 -1
- package/out/model/view/view.js +3 -1
- package/out/platform/provider/platform-provider-base.d.ts.map +1 -1
- package/out/platform/provider/platform-provider-base.js +4 -4
- package/out/register/helper/app-counter-register.d.ts.map +1 -1
- package/out/register/helper/app-counter-register.js +7 -3
- package/out/register/helper/app-menu-item-register.d.ts.map +1 -1
- package/out/register/helper/app-menu-item-register.js +3 -1
- package/out/register/helper/async-action-register.d.ts.map +1 -1
- package/out/register/helper/async-action-register.js +3 -1
- package/out/register/helper/common-register.d.ts.map +1 -1
- package/out/register/helper/common-register.js +3 -1
- package/out/register/helper/control-register.d.ts.map +1 -1
- package/out/register/helper/control-register.js +13 -4
- package/out/register/helper/de-method-register.d.ts.map +1 -1
- package/out/register/helper/de-method-register.js +6 -2
- package/out/register/helper/editor-register.d.ts.map +1 -1
- package/out/register/helper/editor-register.js +14 -4
- package/out/register/helper/form-detail-register.d.ts.map +1 -1
- package/out/register/helper/form-detail-register.js +9 -3
- package/out/register/helper/grid-column-register.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.js +9 -3
- package/out/register/helper/internal-message-register.d.ts.map +1 -1
- package/out/register/helper/internal-message-register.js +3 -1
- package/out/register/helper/panel-item-register.d.ts.map +1 -1
- package/out/register/helper/panel-item-register.js +17 -5
- package/out/register/helper/portlet-register.d.ts.map +1 -1
- package/out/register/helper/portlet-register.js +6 -2
- package/out/register/helper/tree-grid-ex-column-register.d.ts.map +1 -1
- package/out/register/helper/tree-grid-ex-column-register.js +6 -2
- package/out/register/helper/ui-action-register.d.ts.map +1 -1
- package/out/register/helper/ui-action-register.js +6 -2
- package/out/register/helper/ui-logic-node-register.d.ts.map +1 -1
- package/out/register/helper/ui-logic-node-register.js +3 -1
- package/out/register/helper/view-register.d.ts.map +1 -1
- package/out/register/helper/view-register.js +7 -2
- package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.js +9 -3
- package/out/service/de-service-util.js +1 -1
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +4 -2
- package/out/service/service/auth/v7-auth.service.d.ts +1 -1
- package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
- package/out/service/service/auth/v7-auth.service.js +5 -5
- package/out/service/service/authority/authority.service.js +1 -1
- package/out/service/service/authority/de-authority.service.d.ts.map +1 -1
- package/out/service/service/authority/de-authority.service.js +13 -6
- package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.js +2 -2
- package/out/service/service/counter/counter.service.d.ts.map +1 -1
- package/out/service/service/counter/counter.service.js +1 -1
- package/out/service/service/entity/de.service.d.ts.map +1 -1
- package/out/service/service/entity/de.service.js +12 -4
- package/out/service/service/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +10 -5
- package/out/service/service/entity/method/fetch.d.ts.map +1 -1
- package/out/service/service/entity/method/fetch.js +4 -2
- package/out/service/service/entity/method/method.d.ts.map +1 -1
- package/out/service/service/entity/method/method.js +3 -3
- package/out/service/service/util/util.service.d.ts.map +1 -1
- package/out/service/service/util/util.service.js +6 -3
- package/out/service/service/work-flow/work-flow.service.d.ts.map +1 -1
- package/out/service/service/work-flow/work-flow.service.js +1 -1
- package/out/service/utils/app-counter/app-counter.js +1 -1
- package/out/service/utils/app-counter/app-de-counter.d.ts.map +1 -1
- package/out/service/utils/app-counter/app-de-counter.js +1 -1
- package/out/service/utils/de-cache/de-cache.d.ts.map +1 -1
- package/out/service/utils/de-cache/de-cache.js +18 -6
- package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.d.ts.map +1 -1
- package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.js +3 -3
- package/out/service/utils/de-dq-cond/ps-model-group-cond-base.js +1 -1
- package/out/service/utils/de-dq-cond-util/de-dq-cond-util.d.ts.map +1 -1
- package/out/service/utils/de-dq-cond-util/de-dq-cond-util.js +3 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.js +4 -4
- package/out/service/utils/service-exist-util/service-exist-util.d.ts.map +1 -1
- package/out/service/utils/service-exist-util/service-exist-util.js +2 -2
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-data-set-node-data.js +1 -1
- package/out/service/vo/ui-map-field.d.ts.map +1 -1
- package/out/service/vo/ui-map-field.js +3 -1
- package/out/ui-action/provider/backend-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/backend-ui-action-provider.js +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +20 -13
- package/out/ui-action/provider/loginout-ui-action-provider.js +2 -2
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +7 -4
- package/out/ui-action/provider/wf-withdraw-ui-action-provider.js +2 -2
- package/out/ui-action/uiaction-util.d.ts.map +1 -1
- package/out/ui-action/uiaction-util.js +1 -1
- package/out/ui-logic/index.d.ts.map +1 -1
- package/out/ui-logic/index.js +12 -3
- package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.js +6 -3
- package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.js +10 -4
- package/out/ui-logic/ui-logic-link/ui-logic-link.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link.js +4 -4
- package/out/ui-logic/ui-logic-node/append-param-node/append-param-node.js +2 -2
- package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.js +7 -2
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.js +8 -3
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.js +7 -2
- package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.js +2 -2
- package/out/ui-logic/ui-logic-node/end-node/end-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/end-node/end-node.js +5 -2
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.js +10 -5
- package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.js +16 -10
- package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.js +4 -1
- package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.js +10 -4
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +3 -1
- package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.js +7 -2
- package/out/ui-logic/ui-logic-node/start-node/start-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/start-node/start-node.js +3 -1
- package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.js +4 -1
- package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.js +12 -6
- package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.js +17 -7
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +10 -4
- package/out/ui-logic/ui-logic.d.ts.map +1 -1
- package/out/ui-logic/ui-logic.js +5 -3
- package/out/ui-logic/utils/handle-src-val.d.ts.map +1 -1
- package/out/ui-logic/utils/handle-src-val.js +6 -2
- package/out/utils/anime/anime-element-util.js +1 -1
- package/out/utils/anime/anime-util/anime-util.d.ts.map +1 -1
- package/out/utils/anime/anime-util/anime-util.js +2 -2
- package/out/utils/error-handler/default-error-handler.d.ts.map +1 -1
- package/out/utils/error-handler/default-error-handler.js +1 -1
- package/out/utils/error-handler/error-handler-center.d.ts.map +1 -1
- package/out/utils/error-handler/error-handler-center.js +1 -1
- package/out/utils/file-util/file-util.d.ts.map +1 -1
- package/out/utils/file-util/file-util.js +3 -3
- package/out/utils/handlebars/handlebars.js +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/modal/modal.d.ts.map +1 -1
- package/out/utils/modal/modal.js +2 -2
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +22 -9
- package/out/utils/script/script-function.d.ts.map +1 -1
- package/out/utils/script/script-function.js +1 -1
- package/out/utils/short-cut/index.d.ts +2 -0
- package/out/utils/short-cut/index.d.ts.map +1 -0
- package/out/utils/short-cut/index.js +1 -0
- package/out/utils/short-cut/short-cut-util.d.ts +89 -0
- package/out/utils/short-cut/short-cut-util.d.ts.map +1 -0
- package/out/utils/short-cut/short-cut-util.js +141 -0
- package/out/utils/ui-domain/transaction.js +2 -2
- package/out/utils/ui-domain-manager/ui-domain-manager.d.ts.map +1 -1
- package/out/utils/ui-domain-manager/ui-domain-manager.js +3 -1
- package/out/utils/verify/de-rule-verify.js +11 -11
- package/out/utils/verify/form-dynamic-logic.d.ts.map +1 -1
- package/out/utils/verify/form-dynamic-logic.js +4 -2
- package/out/utils/verify/panel-dynamic-logic.d.ts.map +1 -1
- package/out/utils/verify/panel-dynamic-logic.js +4 -2
- package/out/utils/verify/verify.d.ts.map +1 -1
- package/out/utils/verify/verify.js +3 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -96,7 +96,9 @@ var DefaultErrorHandler = class {
|
|
|
96
96
|
ibiz.message.error(error.message, 10, true);
|
|
97
97
|
} else if (error instanceof HttpError) {
|
|
98
98
|
if (error.status === 401) {
|
|
99
|
-
ibiz.message.error(
|
|
99
|
+
ibiz.message.error(
|
|
100
|
+
ibiz.i18n.t("runtime.utils.errorHandler.noPermissionless")
|
|
101
|
+
);
|
|
100
102
|
} else if (error.status === 404) {
|
|
101
103
|
ibiz.mc.error.send(error);
|
|
102
104
|
} else {
|
|
@@ -148,7 +150,10 @@ var ErrorHandlerCenter = class {
|
|
|
148
150
|
return !!item.handle(error);
|
|
149
151
|
});
|
|
150
152
|
if (!find) {
|
|
151
|
-
ibiz.log.error(
|
|
153
|
+
ibiz.log.error(
|
|
154
|
+
ibiz.i18n.t("runtime.utils.errorHandler.noProcessor"),
|
|
155
|
+
error
|
|
156
|
+
);
|
|
152
157
|
}
|
|
153
158
|
}
|
|
154
159
|
/**
|
|
@@ -594,7 +599,7 @@ var HandlebarsUtil = class {
|
|
|
594
599
|
*/
|
|
595
600
|
syncRender(template, data) {
|
|
596
601
|
if (!this.hsb) {
|
|
597
|
-
throw new Error("handlebars
|
|
602
|
+
throw new Error(ibiz.i18n.t("runtime.utils.handlebars.noInitHandlebars"));
|
|
598
603
|
}
|
|
599
604
|
const tmp = this.hsb.compile(template);
|
|
600
605
|
return tmp(data);
|
|
@@ -804,17 +809,23 @@ function parseUserParams(userParams) {
|
|
|
804
809
|
function getPFPlugin(id, appId2) {
|
|
805
810
|
const app = ibiz.hub.getApp(appId2);
|
|
806
811
|
if (!app) {
|
|
807
|
-
throw new RuntimeModelError2(
|
|
812
|
+
throw new RuntimeModelError2(
|
|
813
|
+
app,
|
|
814
|
+
ibiz.i18n.t("runtime.model.utils.noFoundApplication")
|
|
815
|
+
);
|
|
808
816
|
}
|
|
809
817
|
const { model } = app;
|
|
810
818
|
if (!model.appPFPluginRefs) {
|
|
811
|
-
throw new RuntimeModelError2(
|
|
819
|
+
throw new RuntimeModelError2(
|
|
820
|
+
model,
|
|
821
|
+
ibiz.i18n.t("runtime.model.utils.unconfiguredPlugins")
|
|
822
|
+
);
|
|
812
823
|
}
|
|
813
824
|
const plugin = model.appPFPluginRefs.find(
|
|
814
825
|
(item) => item.pluginCode.toLowerCase() === id.toLowerCase()
|
|
815
826
|
);
|
|
816
827
|
if (!plugin) {
|
|
817
|
-
throw new Error("
|
|
828
|
+
throw new Error(ibiz.i18n.t("runtime.model.utils.noFound", { id }));
|
|
818
829
|
}
|
|
819
830
|
return plugin;
|
|
820
831
|
}
|
|
@@ -1145,7 +1156,11 @@ function getViewEngines(view) {
|
|
|
1145
1156
|
return appViewEngines.filter((engine2) => {
|
|
1146
1157
|
switch (engine2.engineCat) {
|
|
1147
1158
|
case "CTRL":
|
|
1148
|
-
ibiz.log.warn(
|
|
1159
|
+
ibiz.log.warn(
|
|
1160
|
+
ibiz.i18n.t("runtime.model.view.engineClassifications", {
|
|
1161
|
+
engineType: engine2.engineType
|
|
1162
|
+
})
|
|
1163
|
+
);
|
|
1149
1164
|
return false;
|
|
1150
1165
|
default:
|
|
1151
1166
|
return true;
|
|
@@ -1216,7 +1231,13 @@ function parseViewProtocol(urlStr) {
|
|
|
1216
1231
|
try {
|
|
1217
1232
|
Object.assign(context, JSON.parse(navCtx));
|
|
1218
1233
|
} catch (error) {
|
|
1219
|
-
ibiz.log.error(
|
|
1234
|
+
ibiz.log.error(
|
|
1235
|
+
ibiz.i18n.t(
|
|
1236
|
+
"runtime.utils.openRedirectView.parseSrfnavctxParameter",
|
|
1237
|
+
{ urlStr }
|
|
1238
|
+
),
|
|
1239
|
+
error
|
|
1240
|
+
);
|
|
1220
1241
|
}
|
|
1221
1242
|
url.searchParams.delete("srfnavctx");
|
|
1222
1243
|
}
|
|
@@ -1263,12 +1284,18 @@ async function getLocalOpenWFRedirectView(context, linkUrl, opts = {}) {
|
|
|
1263
1284
|
const params = qs.parse(queryStr, { delimiter: ";" });
|
|
1264
1285
|
const deName = params.srfdename || "";
|
|
1265
1286
|
if (!deName) {
|
|
1266
|
-
throw new RuntimeError2(
|
|
1287
|
+
throw new RuntimeError2(
|
|
1288
|
+
ibiz.i18n.t("runtime.utils.openRedirectView.missingEntityName")
|
|
1289
|
+
);
|
|
1267
1290
|
}
|
|
1268
1291
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
1269
1292
|
const deCodeName = app.deName2DeCodeName.get(deName.toUpperCase());
|
|
1270
1293
|
if (!deCodeName) {
|
|
1271
|
-
throw new RuntimeError2(
|
|
1294
|
+
throw new RuntimeError2(
|
|
1295
|
+
ibiz.i18n.t("runtime.utils.openRedirectView.noFoundSpecifiedEntity", {
|
|
1296
|
+
deName
|
|
1297
|
+
})
|
|
1298
|
+
);
|
|
1272
1299
|
}
|
|
1273
1300
|
params[deCodeName.toLowerCase()] = params[deName.toLowerCase()];
|
|
1274
1301
|
const deRdViewCodeName = "".concat(deCodeName).concat(ibiz.env.isMob ? "Mob" : "", "RedirectView");
|
|
@@ -1332,7 +1359,11 @@ async function getDERedirectToView(appView, context, params = {}, opts = {}) {
|
|
|
1332
1359
|
);
|
|
1333
1360
|
return { type: "view", ...toView };
|
|
1334
1361
|
}
|
|
1335
|
-
throw new RuntimeError2(
|
|
1362
|
+
throw new RuntimeError2(
|
|
1363
|
+
ibiz.i18n.t("runtime.utils.openRedirectView.unsupportedLinkUrl", {
|
|
1364
|
+
linkUrl
|
|
1365
|
+
})
|
|
1366
|
+
);
|
|
1336
1367
|
}
|
|
1337
1368
|
}
|
|
1338
1369
|
} finally {
|
|
@@ -1375,10 +1406,15 @@ async function getDERedirectToView(appView, context, params = {}, opts = {}) {
|
|
|
1375
1406
|
opts: { ...opts, data: [curData] }
|
|
1376
1407
|
};
|
|
1377
1408
|
}
|
|
1378
|
-
throw new RuntimeModelError3(
|
|
1409
|
+
throw new RuntimeModelError3(
|
|
1410
|
+
refView,
|
|
1411
|
+
ibiz.i18n.t(
|
|
1412
|
+
"runtime.utils.openRedirectView.noConfiguredActualReference"
|
|
1413
|
+
)
|
|
1414
|
+
);
|
|
1379
1415
|
} else {
|
|
1380
1416
|
ibiz.log.error(
|
|
1381
|
-
"
|
|
1417
|
+
ibiz.i18n.t("runtime.utils.openRedirectView.redirectingViewReferences"),
|
|
1382
1418
|
allRefViews == null ? void 0 : allRefViews.map(({ refAppViewId, name, realTitle }) => ({
|
|
1383
1419
|
viewId: refAppViewId,
|
|
1384
1420
|
tag: name,
|
|
@@ -1387,7 +1423,11 @@ async function getDERedirectToView(appView, context, params = {}, opts = {}) {
|
|
|
1387
1423
|
);
|
|
1388
1424
|
throw new RuntimeModelError3(
|
|
1389
1425
|
appView,
|
|
1390
|
-
|
|
1426
|
+
ibiz.i18n.t("runtime.utils.openRedirectView.redirectionIdentifier", {
|
|
1427
|
+
rdTag,
|
|
1428
|
+
deRdTag,
|
|
1429
|
+
wfRdTag
|
|
1430
|
+
})
|
|
1391
1431
|
);
|
|
1392
1432
|
}
|
|
1393
1433
|
}
|
|
@@ -1400,7 +1440,12 @@ async function getDERedirectToView(appView, context, params = {}, opts = {}) {
|
|
|
1400
1440
|
opts: { ...opts, data: [curData] }
|
|
1401
1441
|
};
|
|
1402
1442
|
}
|
|
1403
|
-
throw new RuntimeModelError3(
|
|
1443
|
+
throw new RuntimeModelError3(
|
|
1444
|
+
appView,
|
|
1445
|
+
ibiz.i18n.t("runtime.utils.openRedirectView.noMatchActualReferenceView", {
|
|
1446
|
+
rdTag
|
|
1447
|
+
})
|
|
1448
|
+
);
|
|
1404
1449
|
}
|
|
1405
1450
|
async function openDERedirectView(appView, context, params = {}, opts = {}) {
|
|
1406
1451
|
let toView;
|
|
@@ -1443,7 +1488,10 @@ async function calcDERdTag(entity, rdView, params, data) {
|
|
|
1443
1488
|
return "".concat(value.toUpperCase());
|
|
1444
1489
|
}
|
|
1445
1490
|
ibiz.log.warn(
|
|
1446
|
-
|
|
1491
|
+
ibiz.i18n.t("runtime.utils.openRedirectView.redirectionView", {
|
|
1492
|
+
name: rdView.name,
|
|
1493
|
+
typeFieldId
|
|
1494
|
+
}),
|
|
1447
1495
|
data
|
|
1448
1496
|
);
|
|
1449
1497
|
}
|
|
@@ -1515,7 +1563,9 @@ function testCond(value, op, value2) {
|
|
|
1515
1563
|
case "RIGHTLIKE":
|
|
1516
1564
|
return strContain(value, value2, "end");
|
|
1517
1565
|
default:
|
|
1518
|
-
throw new RuntimeError3(
|
|
1566
|
+
throw new RuntimeError3(
|
|
1567
|
+
ibiz.i18n.t("runtime.utils.verify.valueOperations", { op })
|
|
1568
|
+
);
|
|
1519
1569
|
}
|
|
1520
1570
|
}
|
|
1521
1571
|
function compare(value, value2) {
|
|
@@ -1529,7 +1579,9 @@ function compare(value, value2) {
|
|
|
1529
1579
|
if (!Number.isNaN(date1) && !Number.isNaN(date2)) {
|
|
1530
1580
|
return compareNumber(date1, date2);
|
|
1531
1581
|
}
|
|
1532
|
-
throw new RuntimeError3(
|
|
1582
|
+
throw new RuntimeError3(
|
|
1583
|
+
ibiz.i18n.t("runtime.utils.verify.noCompared", { value, value2 })
|
|
1584
|
+
);
|
|
1533
1585
|
}
|
|
1534
1586
|
function compareNumber(value, value2) {
|
|
1535
1587
|
if (Number.isNaN(value)) {
|
|
@@ -1548,7 +1600,9 @@ function compareNumber(value, value2) {
|
|
|
1548
1600
|
}
|
|
1549
1601
|
function contains(value, value2) {
|
|
1550
1602
|
if (!value2 || typeof value2 !== "string") {
|
|
1551
|
-
throw new RuntimeError3(
|
|
1603
|
+
throw new RuntimeError3(
|
|
1604
|
+
ibiz.i18n.t("runtime.utils.verify.conditionalValues")
|
|
1605
|
+
);
|
|
1552
1606
|
}
|
|
1553
1607
|
if (value) {
|
|
1554
1608
|
const arr = value2.split(",");
|
|
@@ -1596,7 +1650,10 @@ var ScriptFunction = class {
|
|
|
1596
1650
|
try {
|
|
1597
1651
|
return fn.apply({}, args);
|
|
1598
1652
|
} catch (error) {
|
|
1599
|
-
ibiz.log.error(
|
|
1653
|
+
ibiz.log.error(
|
|
1654
|
+
ibiz.i18n.t("runtime.utils.script.errorReportingScript"),
|
|
1655
|
+
code
|
|
1656
|
+
);
|
|
1600
1657
|
throw error;
|
|
1601
1658
|
}
|
|
1602
1659
|
};
|
|
@@ -1932,7 +1989,7 @@ function checkFieldSimpleRule(value, op, value2, errorInfo, paramType, form, pri
|
|
|
1932
1989
|
value2 = _value2Field;
|
|
1933
1990
|
}
|
|
1934
1991
|
if (isNil4(errorInfo) || isEmpty3(errorInfo)) {
|
|
1935
|
-
errorInfo = "
|
|
1992
|
+
errorInfo = ibiz.i18n.t("runtime.utils.verify.contentConform");
|
|
1936
1993
|
}
|
|
1937
1994
|
const result = testCond(value, op, value2);
|
|
1938
1995
|
if (!result) {
|
|
@@ -1944,14 +2001,14 @@ function checkFieldSimpleRule(value, op, value2, errorInfo, paramType, form, pri
|
|
|
1944
2001
|
}
|
|
1945
2002
|
function checkFieldStringLengthRule(viewValue, minLength, indexOfMin, maxLength, indexOfMax, errorInfo, primaryModel) {
|
|
1946
2003
|
if (isNilOrEmpty4(errorInfo)) {
|
|
1947
|
-
errorInfo = "
|
|
2004
|
+
errorInfo = ibiz.i18n.t("runtime.utils.verify.scopeRules");
|
|
1948
2005
|
}
|
|
1949
2006
|
const judge = isNilOrEmpty4(viewValue);
|
|
1950
2007
|
if (judge) {
|
|
1951
2008
|
if (primaryModel) {
|
|
1952
|
-
throw new RuntimeError4("
|
|
2009
|
+
throw new RuntimeError4(ibiz.i18n.t("runtime.utils.verify.valueNull"));
|
|
1953
2010
|
}
|
|
1954
|
-
errorInfo = "
|
|
2011
|
+
errorInfo = ibiz.i18n.t("runtime.utils.verify.valueNull");
|
|
1955
2012
|
return true;
|
|
1956
2013
|
}
|
|
1957
2014
|
const viewValueLength = viewValue.length;
|
|
@@ -1990,14 +2047,14 @@ function checkFieldStringLengthRule(viewValue, minLength, indexOfMin, maxLength,
|
|
|
1990
2047
|
}
|
|
1991
2048
|
function checkFieldRegExRule(viewValue, strReg, errorInfo, primaryModel) {
|
|
1992
2049
|
if (isNilOrEmpty4(errorInfo)) {
|
|
1993
|
-
errorInfo = "
|
|
2050
|
+
errorInfo = ibiz.i18n.t("runtime.utils.verify.regularRules");
|
|
1994
2051
|
}
|
|
1995
2052
|
const judge = isNilOrEmpty4(viewValue);
|
|
1996
2053
|
if (judge) {
|
|
1997
2054
|
if (primaryModel) {
|
|
1998
|
-
throw new RuntimeError4("
|
|
2055
|
+
throw new RuntimeError4(ibiz.i18n.t("runtime.utils.verify.valueNull"));
|
|
1999
2056
|
}
|
|
2000
|
-
errorInfo = "
|
|
2057
|
+
errorInfo = ibiz.i18n.t("runtime.utils.verify.valueNull");
|
|
2001
2058
|
return true;
|
|
2002
2059
|
}
|
|
2003
2060
|
const regExp = new RegExp(strReg);
|
|
@@ -2012,14 +2069,14 @@ function checkFieldRegExRule(viewValue, strReg, errorInfo, primaryModel) {
|
|
|
2012
2069
|
}
|
|
2013
2070
|
function checkFieldValueRangeRule(viewValue, minNumber, indexOfMin, maxNumber, indexOfMax, errorInfo, primaryModel) {
|
|
2014
2071
|
if (isNilOrEmpty4(errorInfo)) {
|
|
2015
|
-
errorInfo = "
|
|
2072
|
+
errorInfo = ibiz.i18n.t("runtime.utils.verify.rangeRules");
|
|
2016
2073
|
}
|
|
2017
2074
|
const isEmptyVal = isNilOrEmpty4(viewValue);
|
|
2018
2075
|
if (isEmptyVal) {
|
|
2019
2076
|
if (primaryModel) {
|
|
2020
|
-
throw new RuntimeError4("
|
|
2077
|
+
throw new RuntimeError4(ibiz.i18n.t("runtime.utils.verify.valueNull"));
|
|
2021
2078
|
}
|
|
2022
|
-
errorInfo = "
|
|
2079
|
+
errorInfo = ibiz.i18n.t("runtime.utils.verify.valueNull");
|
|
2023
2080
|
return true;
|
|
2024
2081
|
}
|
|
2025
2082
|
const valueFormat = checkFieldRegExRule(
|
|
@@ -2067,7 +2124,7 @@ function checkFieldValueRangeRule(viewValue, minNumber, indexOfMin, maxNumber, i
|
|
|
2067
2124
|
}
|
|
2068
2125
|
function checkFieldScriptRule(value, data, scriptCode, errorInfo, primaryModel) {
|
|
2069
2126
|
if (isNilOrEmpty4(errorInfo)) {
|
|
2070
|
-
errorInfo = "
|
|
2127
|
+
errorInfo = ibiz.i18n.t("runtime.utils.verify.scriptRules");
|
|
2071
2128
|
}
|
|
2072
2129
|
const source = data;
|
|
2073
2130
|
let selfError = "";
|
|
@@ -2116,7 +2173,10 @@ function verifyFormGroupLogic(data, logic) {
|
|
|
2116
2173
|
if (isGroupLogic(logic)) {
|
|
2117
2174
|
const children = logic.defdlogics;
|
|
2118
2175
|
if (!children || children.length === 0) {
|
|
2119
|
-
throw new RuntimeModelError4(
|
|
2176
|
+
throw new RuntimeModelError4(
|
|
2177
|
+
logic,
|
|
2178
|
+
ibiz.i18n.t("runtime.utils.verify.emptyLogicGroups")
|
|
2179
|
+
);
|
|
2120
2180
|
}
|
|
2121
2181
|
let result = true;
|
|
2122
2182
|
if (logic.groupOP === "AND") {
|
|
@@ -2141,7 +2201,12 @@ function verifyFormGroupLogic(data, logic) {
|
|
|
2141
2201
|
logic.value
|
|
2142
2202
|
);
|
|
2143
2203
|
}
|
|
2144
|
-
throw new ModelError2(
|
|
2204
|
+
throw new ModelError2(
|
|
2205
|
+
logic,
|
|
2206
|
+
ibiz.i18n.t("runtime.utils.verify.unsupportedLogicTypes", {
|
|
2207
|
+
logicType: logic.logicType
|
|
2208
|
+
})
|
|
2209
|
+
);
|
|
2145
2210
|
}
|
|
2146
2211
|
|
|
2147
2212
|
// src/utils/verify/panel-dynamic-logic.ts
|
|
@@ -2156,7 +2221,10 @@ function verifyPanelGroupLogic(data, logic) {
|
|
|
2156
2221
|
if (isGroupLogic2(logic)) {
|
|
2157
2222
|
const children = logic.panelItemLogics;
|
|
2158
2223
|
if (!children || children.length === 0) {
|
|
2159
|
-
throw new RuntimeModelError5(
|
|
2224
|
+
throw new RuntimeModelError5(
|
|
2225
|
+
logic,
|
|
2226
|
+
ibiz.i18n.t("runtime.utils.verify.emptyLogicGroupsProperly")
|
|
2227
|
+
);
|
|
2160
2228
|
}
|
|
2161
2229
|
let result = true;
|
|
2162
2230
|
if (logic.groupOP === "AND") {
|
|
@@ -2181,7 +2249,12 @@ function verifyPanelGroupLogic(data, logic) {
|
|
|
2181
2249
|
logic.value
|
|
2182
2250
|
);
|
|
2183
2251
|
}
|
|
2184
|
-
throw new ModelError3(
|
|
2252
|
+
throw new ModelError3(
|
|
2253
|
+
logic,
|
|
2254
|
+
ibiz.i18n.t("runtime.utils.verify.unsupportedLogicTypes", {
|
|
2255
|
+
logicType: logic.logicType
|
|
2256
|
+
})
|
|
2257
|
+
);
|
|
2185
2258
|
}
|
|
2186
2259
|
|
|
2187
2260
|
// src/utils/layout-panel-util/layout-panel-util.ts
|
|
@@ -2527,6 +2600,7 @@ var SysUIActionTag = /* @__PURE__ */ ((SysUIActionTag2) => {
|
|
|
2527
2600
|
SysUIActionTag2["PREV_RECORD"] = "PrevRecord";
|
|
2528
2601
|
SysUIActionTag2["NEXT_RECORD"] = "NextRecord";
|
|
2529
2602
|
SysUIActionTag2["LOAD_MORE"] = "LoadMore";
|
|
2603
|
+
SysUIActionTag2["SHOTR_CUT"] = "ShortCut";
|
|
2530
2604
|
return SysUIActionTag2;
|
|
2531
2605
|
})(SysUIActionTag || {});
|
|
2532
2606
|
|
|
@@ -2767,7 +2841,10 @@ var Modal = class {
|
|
|
2767
2841
|
* @date 2023-05-12 07:06:56
|
|
2768
2842
|
*/
|
|
2769
2843
|
this._dismiss = (data) => {
|
|
2770
|
-
ibiz.log.error(
|
|
2844
|
+
ibiz.log.error(
|
|
2845
|
+
ibiz.i18n.t("runtime.utils.modal.externalClosureCapability"),
|
|
2846
|
+
data
|
|
2847
|
+
);
|
|
2771
2848
|
};
|
|
2772
2849
|
if (opts.mode) {
|
|
2773
2850
|
this.mode = opts.mode;
|
|
@@ -2797,7 +2874,7 @@ var Modal = class {
|
|
|
2797
2874
|
await this.hooks.shouldDismiss.call(context);
|
|
2798
2875
|
}
|
|
2799
2876
|
if (context.allowClose === false) {
|
|
2800
|
-
ibiz.log.debug("
|
|
2877
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.utils.modal.shouldDismissResult"));
|
|
2801
2878
|
return false;
|
|
2802
2879
|
}
|
|
2803
2880
|
await this.hooks.beforeDismiss.call(data);
|
|
@@ -2996,7 +3073,7 @@ var Transaction = class {
|
|
|
2996
3073
|
*/
|
|
2997
3074
|
open() {
|
|
2998
3075
|
if (this.state.isOpen) {
|
|
2999
|
-
ibiz.log.warn("
|
|
3076
|
+
ibiz.log.warn(ibiz.i18n.t("runtime.utils.uiDomain.transactionOpen"));
|
|
3000
3077
|
return;
|
|
3001
3078
|
}
|
|
3002
3079
|
this.state.isOpen = true;
|
|
@@ -3045,7 +3122,7 @@ var Transaction = class {
|
|
|
3045
3122
|
*/
|
|
3046
3123
|
close() {
|
|
3047
3124
|
if (this.state.isChange) {
|
|
3048
|
-
throw new Error("
|
|
3125
|
+
throw new Error(ibiz.i18n.t("runtime.utils.uiDomain.currentTransaction"));
|
|
3049
3126
|
}
|
|
3050
3127
|
this.state.isOpen = false;
|
|
3051
3128
|
}
|
|
@@ -3240,7 +3317,11 @@ var UIDomainManager = class {
|
|
|
3240
3317
|
if (this.domainMap.has(id)) {
|
|
3241
3318
|
return this.domainMap.get(id);
|
|
3242
3319
|
}
|
|
3243
|
-
throw new Error(
|
|
3320
|
+
throw new Error(
|
|
3321
|
+
ibiz.i18n.t("runtime.utils.uiDomainManager.invalidInterfaceDomain", {
|
|
3322
|
+
id
|
|
3323
|
+
})
|
|
3324
|
+
);
|
|
3244
3325
|
}
|
|
3245
3326
|
/**
|
|
3246
3327
|
* 销毁域
|
|
@@ -3385,7 +3466,7 @@ var baseStyle = {
|
|
|
3385
3466
|
function cloneElement(clone35, teleport = document.body, isRemoveChild = true) {
|
|
3386
3467
|
const element = getAnimationElement(clone35);
|
|
3387
3468
|
if (element == null) {
|
|
3388
|
-
throw new Error("
|
|
3469
|
+
throw new Error(ibiz.i18n.t("runtime.utils.anime.noClone"));
|
|
3389
3470
|
}
|
|
3390
3471
|
const clonedElement = element.cloneNode(true);
|
|
3391
3472
|
if (isRemoveChild) {
|
|
@@ -4910,12 +4991,14 @@ var AnimeUtil = class {
|
|
|
4910
4991
|
async movePoint(element, tElement, options = {}) {
|
|
4911
4992
|
const targetElement = getAnimationElement(tElement);
|
|
4912
4993
|
if (!targetElement) {
|
|
4913
|
-
ibiz.log.debug("
|
|
4994
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.utils.anime.noExistEndpointElement"));
|
|
4914
4995
|
return false;
|
|
4915
4996
|
}
|
|
4916
4997
|
const moveElement = cloneElement(element, document.body);
|
|
4917
4998
|
if (!moveElement) {
|
|
4918
|
-
ibiz.log.debug(
|
|
4999
|
+
ibiz.log.debug(
|
|
5000
|
+
ibiz.i18n.t("runtime.utils.anime.noExistAnimationElement")
|
|
5001
|
+
);
|
|
4919
5002
|
return false;
|
|
4920
5003
|
}
|
|
4921
5004
|
const { padding, width, height } = getElementAttribute(moveElement);
|
|
@@ -5059,10 +5142,10 @@ var FileUtil = class {
|
|
|
5059
5142
|
// 已经有baseURL了,这里无需再写
|
|
5060
5143
|
});
|
|
5061
5144
|
if (response.status !== 200) {
|
|
5062
|
-
throw new RuntimeError5("
|
|
5145
|
+
throw new RuntimeError5(ibiz.i18n.t("runtime.platform.failedDownload"));
|
|
5063
5146
|
}
|
|
5064
5147
|
if (!response.data) {
|
|
5065
|
-
throw new RuntimeError5("
|
|
5148
|
+
throw new RuntimeError5(ibiz.i18n.t("runtime.platform.fileStreamData"));
|
|
5066
5149
|
} else {
|
|
5067
5150
|
const fileName = name;
|
|
5068
5151
|
downloadFileFromBlob(response.data, fileName);
|
|
@@ -5089,12 +5172,150 @@ var FileUtil = class {
|
|
|
5089
5172
|
data: formData
|
|
5090
5173
|
});
|
|
5091
5174
|
if (res.status !== 200) {
|
|
5092
|
-
throw new RuntimeError5(
|
|
5175
|
+
throw new RuntimeError5(
|
|
5176
|
+
ibiz.i18n.t("runtime.utils.fileUtil.fileUploadFailed")
|
|
5177
|
+
);
|
|
5093
5178
|
}
|
|
5094
5179
|
return res.data;
|
|
5095
5180
|
}
|
|
5096
5181
|
};
|
|
5097
5182
|
|
|
5183
|
+
// src/utils/short-cut/short-cut-util.ts
|
|
5184
|
+
var ShortCutUtil = class {
|
|
5185
|
+
/**
|
|
5186
|
+
* Creates an instance of ShortCutUtil.
|
|
5187
|
+
* @memberof ShortCutUtil
|
|
5188
|
+
*/
|
|
5189
|
+
constructor() {
|
|
5190
|
+
/**
|
|
5191
|
+
* 快捷方式
|
|
5192
|
+
*
|
|
5193
|
+
* @private
|
|
5194
|
+
* @type {IShortCut[]}
|
|
5195
|
+
* @memberof ShortCutUtil
|
|
5196
|
+
*/
|
|
5197
|
+
this.$ShortCut = [];
|
|
5198
|
+
this.initShortCut();
|
|
5199
|
+
}
|
|
5200
|
+
/**
|
|
5201
|
+
* 快捷方式数据
|
|
5202
|
+
*
|
|
5203
|
+
* @memberof ShortCutUtil
|
|
5204
|
+
*/
|
|
5205
|
+
get data() {
|
|
5206
|
+
return this.$ShortCut;
|
|
5207
|
+
}
|
|
5208
|
+
/**
|
|
5209
|
+
* 初始化快捷方式数据
|
|
5210
|
+
*
|
|
5211
|
+
* @private
|
|
5212
|
+
* @memberof ShortCutUtil
|
|
5213
|
+
*/
|
|
5214
|
+
initShortCut() {
|
|
5215
|
+
const shortcut = window.localStorage.getItem("IbizShortCut");
|
|
5216
|
+
if (shortcut) {
|
|
5217
|
+
this.$ShortCut = JSON.parse(shortcut);
|
|
5218
|
+
}
|
|
5219
|
+
}
|
|
5220
|
+
/**
|
|
5221
|
+
* 持久化保存快捷方式
|
|
5222
|
+
*
|
|
5223
|
+
* @memberof ShortCutUtil
|
|
5224
|
+
*/
|
|
5225
|
+
saveShortCut() {
|
|
5226
|
+
window.localStorage.setItem("IbizShortCut", JSON.stringify(this.$ShortCut));
|
|
5227
|
+
}
|
|
5228
|
+
/**
|
|
5229
|
+
* 计算快捷方式key
|
|
5230
|
+
*
|
|
5231
|
+
* @param {{
|
|
5232
|
+
* context: IContext;
|
|
5233
|
+
* appViewId: string;
|
|
5234
|
+
* }} {
|
|
5235
|
+
* context,
|
|
5236
|
+
* appViewId,
|
|
5237
|
+
* }
|
|
5238
|
+
* @return {*} {Promise<string>}
|
|
5239
|
+
* @memberof ShortCutUtil
|
|
5240
|
+
*/
|
|
5241
|
+
async calcShortCutKey({
|
|
5242
|
+
context,
|
|
5243
|
+
appViewId
|
|
5244
|
+
}) {
|
|
5245
|
+
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
5246
|
+
let key = "".concat(context.srfappid, "-").concat(context.srfuserid, "-").concat(appViewId);
|
|
5247
|
+
if (appView.appDataEntityId) {
|
|
5248
|
+
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
5249
|
+
key += "-".concat(deName, "-").concat(context[deName]);
|
|
5250
|
+
}
|
|
5251
|
+
return key;
|
|
5252
|
+
}
|
|
5253
|
+
/**
|
|
5254
|
+
* 添加快捷方式
|
|
5255
|
+
*
|
|
5256
|
+
* @param {IShortcut} shortcut
|
|
5257
|
+
* @memberof ShortCutUtil
|
|
5258
|
+
*/
|
|
5259
|
+
addShortCut(shortCut) {
|
|
5260
|
+
const index = this.$ShortCut.findIndex((item) => item.key === shortCut.key);
|
|
5261
|
+
if (index > -1) {
|
|
5262
|
+
this.$ShortCut.splice(index, 1, shortCut);
|
|
5263
|
+
} else {
|
|
5264
|
+
this.$ShortCut.push(shortCut);
|
|
5265
|
+
}
|
|
5266
|
+
this.saveShortCut();
|
|
5267
|
+
}
|
|
5268
|
+
/**
|
|
5269
|
+
* 删除快捷方式
|
|
5270
|
+
*
|
|
5271
|
+
* @param {string} key
|
|
5272
|
+
* @memberof ShortcutUtil
|
|
5273
|
+
*/
|
|
5274
|
+
removeShortCut(key) {
|
|
5275
|
+
const index = this.$ShortCut.findIndex((item) => item.key === key);
|
|
5276
|
+
if (index > -1) {
|
|
5277
|
+
this.$ShortCut.splice(index, 1);
|
|
5278
|
+
this.saveShortCut();
|
|
5279
|
+
}
|
|
5280
|
+
}
|
|
5281
|
+
/**
|
|
5282
|
+
* 改变顺序
|
|
5283
|
+
*
|
|
5284
|
+
* @param {number} newIndex 新位置索引
|
|
5285
|
+
* @param {number} oldIndex 旧位置索引
|
|
5286
|
+
* @memberof ShortcutUtil
|
|
5287
|
+
*/
|
|
5288
|
+
changeIndex(newIndex, oldIndex) {
|
|
5289
|
+
const { length } = this.$ShortCut;
|
|
5290
|
+
if (oldIndex < 0 || oldIndex >= length || newIndex < 0 || newIndex >= length) {
|
|
5291
|
+
throw new Error(
|
|
5292
|
+
ibiz.i18n.t("runtime.utils.shortCut.invalidIndexNewIndex", {
|
|
5293
|
+
newIndex,
|
|
5294
|
+
oldIndex,
|
|
5295
|
+
length
|
|
5296
|
+
})
|
|
5297
|
+
);
|
|
5298
|
+
}
|
|
5299
|
+
const removedItem = this.$ShortCut.splice(oldIndex, 1)[0];
|
|
5300
|
+
this.$ShortCut.splice(newIndex, 0, removedItem);
|
|
5301
|
+
this.saveShortCut();
|
|
5302
|
+
}
|
|
5303
|
+
/**
|
|
5304
|
+
* 是否存在最小化
|
|
5305
|
+
*
|
|
5306
|
+
* @param {string} key
|
|
5307
|
+
* @return {*} {boolean}
|
|
5308
|
+
* @memberof ShortCutUtil
|
|
5309
|
+
*/
|
|
5310
|
+
isExist(key) {
|
|
5311
|
+
const index = this.$ShortCut.findIndex((item) => item.key === key);
|
|
5312
|
+
if (index >= 0) {
|
|
5313
|
+
return true;
|
|
5314
|
+
}
|
|
5315
|
+
return false;
|
|
5316
|
+
}
|
|
5317
|
+
};
|
|
5318
|
+
|
|
5098
5319
|
// src/command/app/open-app-view/open-app-view.ts
|
|
5099
5320
|
import { ModelError as ModelError15, RuntimeError as RuntimeError25 } from "@ibiz-template/core";
|
|
5100
5321
|
import { clone as clone18 } from "ramda";
|
|
@@ -5356,7 +5577,7 @@ var PSModelGroupCondBase = class _PSModelGroupCondBase extends PSModelCondBase {
|
|
|
5356
5577
|
}
|
|
5357
5578
|
});
|
|
5358
5579
|
} else {
|
|
5359
|
-
throw new RuntimeError6("
|
|
5580
|
+
throw new RuntimeError6(ibiz.i18n.t("runtime.service.mustArray"));
|
|
5360
5581
|
}
|
|
5361
5582
|
}
|
|
5362
5583
|
}
|
|
@@ -5431,7 +5652,7 @@ var _PSDEDQCondEngine = class _PSDEDQCondEngine extends PSModelCondEngineBase {
|
|
|
5431
5652
|
}
|
|
5432
5653
|
if (cond instanceof PSModelSingleCondBase) {
|
|
5433
5654
|
if (isEmpty4(cond.getParam())) {
|
|
5434
|
-
ibiz.log.warn("
|
|
5655
|
+
ibiz.log.warn(ibiz.i18n.t("runtime.service.noAttributeName"), cond);
|
|
5435
5656
|
}
|
|
5436
5657
|
const objValue = data[cond.getParam().toLowerCase()];
|
|
5437
5658
|
let objCondValue = null;
|
|
@@ -5439,7 +5660,7 @@ var _PSDEDQCondEngine = class _PSDEDQCondEngine extends PSModelCondEngineBase {
|
|
|
5439
5660
|
const val = cond.getValue();
|
|
5440
5661
|
if (valType != null && !isEmpty4(valType)) {
|
|
5441
5662
|
if (isEmpty4(val)) {
|
|
5442
|
-
ibiz.log.warn("
|
|
5663
|
+
ibiz.log.warn(ibiz.i18n.t("runtime.service.noContextParameterName"));
|
|
5443
5664
|
}
|
|
5444
5665
|
if (_PSDEDQCondEngine.PARAMTYPE_WEBCONTEXT === valType) {
|
|
5445
5666
|
objCondValue = filter.data[val.toLowerCase()];
|
|
@@ -5451,7 +5672,10 @@ var _PSDEDQCondEngine = class _PSDEDQCondEngine extends PSModelCondEngineBase {
|
|
|
5451
5672
|
}
|
|
5452
5673
|
return this.testSingleCond(cond.getCondOp(), objValue, objCondValue);
|
|
5453
5674
|
}
|
|
5454
|
-
ibiz.log.warn(
|
|
5675
|
+
ibiz.log.warn(
|
|
5676
|
+
ibiz.log.warn(ibiz.i18n.t("runtime.service.conditionalObjects")),
|
|
5677
|
+
cond
|
|
5678
|
+
);
|
|
5455
5679
|
return false;
|
|
5456
5680
|
}
|
|
5457
5681
|
createPSModelSingleCond() {
|
|
@@ -5488,7 +5712,11 @@ async function getPluginRegisterKey(pluginId, appId2) {
|
|
|
5488
5712
|
(item) => item.pluginCode.toLowerCase() === pluginId
|
|
5489
5713
|
);
|
|
5490
5714
|
if (!plugin) {
|
|
5491
|
-
ibiz.log.error(
|
|
5715
|
+
ibiz.log.error(
|
|
5716
|
+
ibiz.i18n.t("runtime.register.helper.matchedPlugin", {
|
|
5717
|
+
pluginId
|
|
5718
|
+
})
|
|
5719
|
+
);
|
|
5492
5720
|
return;
|
|
5493
5721
|
}
|
|
5494
5722
|
await ibiz.plugin.loadPlugin(plugin);
|
|
@@ -5514,7 +5742,9 @@ async function getAppCounterProvider(model) {
|
|
|
5514
5742
|
provider = getProvider(pluginKey);
|
|
5515
5743
|
}
|
|
5516
5744
|
if (!provider) {
|
|
5517
|
-
ibiz.log.error(
|
|
5745
|
+
ibiz.log.error(
|
|
5746
|
+
ibiz.i18n.t("runtime.register.helper.adapter", { pluginKey })
|
|
5747
|
+
);
|
|
5518
5748
|
} else {
|
|
5519
5749
|
return provider;
|
|
5520
5750
|
}
|
|
@@ -5522,14 +5752,22 @@ async function getAppCounterProvider(model) {
|
|
|
5522
5752
|
if (counterType === "CUSTOM") {
|
|
5523
5753
|
provider = getProvider(codeName);
|
|
5524
5754
|
if (!provider) {
|
|
5525
|
-
throw new RuntimeError7(
|
|
5755
|
+
throw new RuntimeError7(
|
|
5756
|
+
ibiz.i18n.t("runtime.register.helper.customizedSystemAdapter", {
|
|
5757
|
+
codeName
|
|
5758
|
+
})
|
|
5759
|
+
);
|
|
5526
5760
|
} else {
|
|
5527
5761
|
return provider;
|
|
5528
5762
|
}
|
|
5529
5763
|
}
|
|
5530
5764
|
provider = getProvider(counterType);
|
|
5531
5765
|
if (!provider) {
|
|
5532
|
-
throw new RuntimeError7(
|
|
5766
|
+
throw new RuntimeError7(
|
|
5767
|
+
ibiz.i18n.t("runtime.register.helper.noFoundSystemCounter", {
|
|
5768
|
+
counterType
|
|
5769
|
+
})
|
|
5770
|
+
);
|
|
5533
5771
|
} else {
|
|
5534
5772
|
return provider;
|
|
5535
5773
|
}
|
|
@@ -5629,7 +5867,11 @@ async function getControlProvider(model) {
|
|
|
5629
5867
|
});
|
|
5630
5868
|
provider = getProvider2(registerKey);
|
|
5631
5869
|
if (!provider) {
|
|
5632
|
-
ibiz.log.debug(
|
|
5870
|
+
ibiz.log.debug(
|
|
5871
|
+
ibiz.i18n.t("runtime.register.helper.customRegistration", {
|
|
5872
|
+
registerKey
|
|
5873
|
+
})
|
|
5874
|
+
);
|
|
5633
5875
|
} else {
|
|
5634
5876
|
return provider;
|
|
5635
5877
|
}
|
|
@@ -5639,7 +5881,11 @@ async function getControlProvider(model) {
|
|
|
5639
5881
|
provider = getProvider2(pluginKey);
|
|
5640
5882
|
}
|
|
5641
5883
|
if (!provider) {
|
|
5642
|
-
ibiz.log.error(
|
|
5884
|
+
ibiz.log.error(
|
|
5885
|
+
ibiz.i18n.t("runtime.register.helper.widgetPlugin", {
|
|
5886
|
+
pluginKey
|
|
5887
|
+
})
|
|
5888
|
+
);
|
|
5643
5889
|
} else {
|
|
5644
5890
|
return provider;
|
|
5645
5891
|
}
|
|
@@ -5649,7 +5895,10 @@ async function getControlProvider(model) {
|
|
|
5649
5895
|
provider = getProvider2(key);
|
|
5650
5896
|
if (!provider) {
|
|
5651
5897
|
ibiz.log.error(
|
|
5652
|
-
|
|
5898
|
+
ibiz.i18n.t("runtime.register.helper.widgetStyleType", {
|
|
5899
|
+
controlType,
|
|
5900
|
+
controlStyle
|
|
5901
|
+
}),
|
|
5653
5902
|
model
|
|
5654
5903
|
);
|
|
5655
5904
|
} else {
|
|
@@ -5662,7 +5911,11 @@ async function getControlProvider(model) {
|
|
|
5662
5911
|
case "DATAINFOBAR":
|
|
5663
5912
|
return;
|
|
5664
5913
|
default:
|
|
5665
|
-
ibiz.log.error(
|
|
5914
|
+
ibiz.log.error(
|
|
5915
|
+
ibiz.i18n.t("runtime.register.helper.widgetType", {
|
|
5916
|
+
controlType
|
|
5917
|
+
})
|
|
5918
|
+
);
|
|
5666
5919
|
}
|
|
5667
5920
|
} else {
|
|
5668
5921
|
return provider;
|
|
@@ -5688,7 +5941,11 @@ async function getEditorProvider(model) {
|
|
|
5688
5941
|
provider = getProvider3(pluginKey);
|
|
5689
5942
|
}
|
|
5690
5943
|
if (!provider) {
|
|
5691
|
-
ibiz.log.error(
|
|
5944
|
+
ibiz.log.error(
|
|
5945
|
+
ibiz.i18n.t("runtime.register.helper.editorPlugin", {
|
|
5946
|
+
pluginKey
|
|
5947
|
+
})
|
|
5948
|
+
);
|
|
5692
5949
|
} else {
|
|
5693
5950
|
return provider;
|
|
5694
5951
|
}
|
|
@@ -5698,7 +5955,10 @@ async function getEditorProvider(model) {
|
|
|
5698
5955
|
provider = getProvider3(key);
|
|
5699
5956
|
if (!provider) {
|
|
5700
5957
|
ibiz.log.error(
|
|
5701
|
-
|
|
5958
|
+
ibiz.i18n.t("runtime.register.helper.editorStyleType", {
|
|
5959
|
+
editorType,
|
|
5960
|
+
editorStyle
|
|
5961
|
+
}),
|
|
5702
5962
|
model
|
|
5703
5963
|
);
|
|
5704
5964
|
} else {
|
|
@@ -5713,7 +5973,10 @@ async function getEditorProvider(model) {
|
|
|
5713
5973
|
provider = getProvider3(key);
|
|
5714
5974
|
if (!provider) {
|
|
5715
5975
|
ibiz.log.error(
|
|
5716
|
-
|
|
5976
|
+
ibiz.i18n.t("runtime.register.helper.editorTypePredefinedType", {
|
|
5977
|
+
editorType,
|
|
5978
|
+
predefinedType
|
|
5979
|
+
}),
|
|
5717
5980
|
model
|
|
5718
5981
|
);
|
|
5719
5982
|
} else {
|
|
@@ -5722,7 +5985,11 @@ async function getEditorProvider(model) {
|
|
|
5722
5985
|
}
|
|
5723
5986
|
provider = getProvider3(editorType);
|
|
5724
5987
|
if (!provider) {
|
|
5725
|
-
ibiz.log.error(
|
|
5988
|
+
ibiz.log.error(
|
|
5989
|
+
ibiz.i18n.t("runtime.register.helper.editorType", {
|
|
5990
|
+
editorType
|
|
5991
|
+
})
|
|
5992
|
+
);
|
|
5726
5993
|
} else {
|
|
5727
5994
|
return provider;
|
|
5728
5995
|
}
|
|
@@ -5750,7 +6017,11 @@ async function getFormDetailProvider(model, formModel) {
|
|
|
5750
6017
|
);
|
|
5751
6018
|
provider = getProvider4(registerKey);
|
|
5752
6019
|
if (!provider) {
|
|
5753
|
-
ibiz.log.debug(
|
|
6020
|
+
ibiz.log.debug(
|
|
6021
|
+
ibiz.i18n.t("runtime.register.helper.customRegistration", {
|
|
6022
|
+
registerKey
|
|
6023
|
+
})
|
|
6024
|
+
);
|
|
5754
6025
|
} else {
|
|
5755
6026
|
return provider;
|
|
5756
6027
|
}
|
|
@@ -5760,14 +6031,22 @@ async function getFormDetailProvider(model, formModel) {
|
|
|
5760
6031
|
provider = getProvider4(pluginKey);
|
|
5761
6032
|
}
|
|
5762
6033
|
if (!provider) {
|
|
5763
|
-
ibiz.log.error(
|
|
6034
|
+
ibiz.log.error(
|
|
6035
|
+
ibiz.i18n.t("runtime.register.helper.formMemberPlugin", {
|
|
6036
|
+
pluginKey
|
|
6037
|
+
})
|
|
6038
|
+
);
|
|
5764
6039
|
} else {
|
|
5765
6040
|
return provider;
|
|
5766
6041
|
}
|
|
5767
6042
|
}
|
|
5768
6043
|
provider = getProvider4(detailType);
|
|
5769
6044
|
if (!provider) {
|
|
5770
|
-
ibiz.log.error(
|
|
6045
|
+
ibiz.log.error(
|
|
6046
|
+
ibiz.i18n.t("runtime.register.helper.formMemberType", {
|
|
6047
|
+
detailType
|
|
6048
|
+
})
|
|
6049
|
+
);
|
|
5771
6050
|
} else {
|
|
5772
6051
|
return provider;
|
|
5773
6052
|
}
|
|
@@ -5795,7 +6074,11 @@ async function getGridColumnProvider(model, gridModel) {
|
|
|
5795
6074
|
);
|
|
5796
6075
|
provider = getProvider5(registerKey);
|
|
5797
6076
|
if (!provider) {
|
|
5798
|
-
ibiz.log.debug(
|
|
6077
|
+
ibiz.log.debug(
|
|
6078
|
+
ibiz.i18n.t("runtime.register.helper.customRegistration", {
|
|
6079
|
+
registerKey
|
|
6080
|
+
})
|
|
6081
|
+
);
|
|
5799
6082
|
} else {
|
|
5800
6083
|
return provider;
|
|
5801
6084
|
}
|
|
@@ -5805,7 +6088,11 @@ async function getGridColumnProvider(model, gridModel) {
|
|
|
5805
6088
|
provider = getProvider5(pluginKey);
|
|
5806
6089
|
}
|
|
5807
6090
|
if (!provider) {
|
|
5808
|
-
ibiz.log.error(
|
|
6091
|
+
ibiz.log.error(
|
|
6092
|
+
ibiz.i18n.t("runtime.register.helper.tableColumnPlugin", {
|
|
6093
|
+
pluginKey
|
|
6094
|
+
})
|
|
6095
|
+
);
|
|
5809
6096
|
} else {
|
|
5810
6097
|
return provider;
|
|
5811
6098
|
}
|
|
@@ -5813,7 +6100,11 @@ async function getGridColumnProvider(model, gridModel) {
|
|
|
5813
6100
|
const key = enableRowEdit ? "".concat(columnType, "_EDIT") : columnType;
|
|
5814
6101
|
provider = getProvider5(key);
|
|
5815
6102
|
if (!provider) {
|
|
5816
|
-
ibiz.log.error(
|
|
6103
|
+
ibiz.log.error(
|
|
6104
|
+
ibiz.i18n.t("runtime.register.helper.tableColumnType", {
|
|
6105
|
+
key
|
|
6106
|
+
})
|
|
6107
|
+
);
|
|
5817
6108
|
} else {
|
|
5818
6109
|
return provider;
|
|
5819
6110
|
}
|
|
@@ -5843,7 +6134,11 @@ async function getPanelItemProvider(model, panelModel, viewModel) {
|
|
|
5843
6134
|
});
|
|
5844
6135
|
provider = getProvider6(registerKey);
|
|
5845
6136
|
if (!provider) {
|
|
5846
|
-
ibiz.log.debug(
|
|
6137
|
+
ibiz.log.debug(
|
|
6138
|
+
ibiz.i18n.t("runtime.register.helper.customRegistration", {
|
|
6139
|
+
registerKey
|
|
6140
|
+
})
|
|
6141
|
+
);
|
|
5847
6142
|
} else {
|
|
5848
6143
|
return provider;
|
|
5849
6144
|
}
|
|
@@ -5853,7 +6148,11 @@ async function getPanelItemProvider(model, panelModel, viewModel) {
|
|
|
5853
6148
|
provider = getProvider6(pluginKey);
|
|
5854
6149
|
}
|
|
5855
6150
|
if (!provider) {
|
|
5856
|
-
ibiz.log.error(
|
|
6151
|
+
ibiz.log.error(
|
|
6152
|
+
ibiz.i18n.t("runtime.register.helper.panelMemberPlugin", {
|
|
6153
|
+
pluginKey
|
|
6154
|
+
})
|
|
6155
|
+
);
|
|
5857
6156
|
} else {
|
|
5858
6157
|
return provider;
|
|
5859
6158
|
}
|
|
@@ -5867,7 +6166,10 @@ async function getPanelItemProvider(model, panelModel, viewModel) {
|
|
|
5867
6166
|
provider = getProvider6(key);
|
|
5868
6167
|
if (!provider) {
|
|
5869
6168
|
ibiz.log.error(
|
|
5870
|
-
"
|
|
6169
|
+
ibiz.i18n.t("runtime.register.helper.panelContainerPredefined", {
|
|
6170
|
+
predefinedType,
|
|
6171
|
+
key
|
|
6172
|
+
})
|
|
5871
6173
|
);
|
|
5872
6174
|
} else {
|
|
5873
6175
|
return provider;
|
|
@@ -5879,7 +6181,10 @@ async function getPanelItemProvider(model, panelModel, viewModel) {
|
|
|
5879
6181
|
provider = getProvider6(key);
|
|
5880
6182
|
if (!provider) {
|
|
5881
6183
|
ibiz.log.error(
|
|
5882
|
-
"
|
|
6184
|
+
ibiz.i18n.t("runtime.register.helper.panelMemberDirectContent", {
|
|
6185
|
+
predefinedType,
|
|
6186
|
+
key
|
|
6187
|
+
})
|
|
5883
6188
|
);
|
|
5884
6189
|
} else {
|
|
5885
6190
|
return provider;
|
|
@@ -5898,7 +6203,11 @@ async function getPanelItemProvider(model, panelModel, viewModel) {
|
|
|
5898
6203
|
provider = getProvider6(itemType);
|
|
5899
6204
|
}
|
|
5900
6205
|
if (!provider) {
|
|
5901
|
-
ibiz.log.error(
|
|
6206
|
+
ibiz.log.error(
|
|
6207
|
+
ibiz.i18n.t("runtime.register.helper.panelMemberType", {
|
|
6208
|
+
itemType
|
|
6209
|
+
})
|
|
6210
|
+
);
|
|
5902
6211
|
} else {
|
|
5903
6212
|
return provider;
|
|
5904
6213
|
}
|
|
@@ -5923,14 +6232,22 @@ async function getPortletProvider(model) {
|
|
|
5923
6232
|
provider = getProvider7(pluginKey);
|
|
5924
6233
|
}
|
|
5925
6234
|
if (!provider) {
|
|
5926
|
-
ibiz.log.error(
|
|
6235
|
+
ibiz.log.error(
|
|
6236
|
+
ibiz.i18n.t("runtime.register.helper.portalWidgetPlugin", {
|
|
6237
|
+
pluginKey
|
|
6238
|
+
})
|
|
6239
|
+
);
|
|
5927
6240
|
} else {
|
|
5928
6241
|
return provider;
|
|
5929
6242
|
}
|
|
5930
6243
|
}
|
|
5931
6244
|
provider = getProvider7(portletType);
|
|
5932
6245
|
if (!provider) {
|
|
5933
|
-
ibiz.log.error(
|
|
6246
|
+
ibiz.log.error(
|
|
6247
|
+
ibiz.i18n.t("runtime.register.helper.portalWidgetMemberType", {
|
|
6248
|
+
portletType
|
|
6249
|
+
})
|
|
6250
|
+
);
|
|
5934
6251
|
} else {
|
|
5935
6252
|
return provider;
|
|
5936
6253
|
}
|
|
@@ -5956,7 +6273,11 @@ async function getUIActionProvider(model) {
|
|
|
5956
6273
|
provider = getProvider8(pluginKey);
|
|
5957
6274
|
}
|
|
5958
6275
|
if (!provider) {
|
|
5959
|
-
ibiz.log.error(
|
|
6276
|
+
ibiz.log.error(
|
|
6277
|
+
ibiz.i18n.t("runtime.register.helper.interfaceBehaviorPlugin", {
|
|
6278
|
+
pluginKey
|
|
6279
|
+
})
|
|
6280
|
+
);
|
|
5960
6281
|
} else {
|
|
5961
6282
|
return provider;
|
|
5962
6283
|
}
|
|
@@ -5967,7 +6288,11 @@ async function getUIActionProvider(model) {
|
|
|
5967
6288
|
}
|
|
5968
6289
|
provider = getProvider8(uiactionMode);
|
|
5969
6290
|
if (!provider) {
|
|
5970
|
-
throw new RuntimeError8(
|
|
6291
|
+
throw new RuntimeError8(
|
|
6292
|
+
ibiz.i18n.t("runtime.register.helper.interfaceBehaviorMode", {
|
|
6293
|
+
uiactionMode
|
|
6294
|
+
})
|
|
6295
|
+
);
|
|
5971
6296
|
} else {
|
|
5972
6297
|
return provider;
|
|
5973
6298
|
}
|
|
@@ -5991,7 +6316,9 @@ async function getUILogicNodeProvider(model) {
|
|
|
5991
6316
|
return provider;
|
|
5992
6317
|
}
|
|
5993
6318
|
throw new RuntimeError9(
|
|
5994
|
-
"
|
|
6319
|
+
ibiz.i18n.t("runtime.register.helper.frontEndPluginNode", {
|
|
6320
|
+
pluginKey
|
|
6321
|
+
})
|
|
5995
6322
|
);
|
|
5996
6323
|
}
|
|
5997
6324
|
}
|
|
@@ -6013,7 +6340,11 @@ async function getViewProvider(model) {
|
|
|
6013
6340
|
provider = getProvider9(pluginKey);
|
|
6014
6341
|
}
|
|
6015
6342
|
if (!provider) {
|
|
6016
|
-
ibiz.log.error(
|
|
6343
|
+
ibiz.log.error(
|
|
6344
|
+
ibiz.i18n.t("runtime.register.helper.viewPlugin", {
|
|
6345
|
+
pluginKey
|
|
6346
|
+
})
|
|
6347
|
+
);
|
|
6017
6348
|
} else {
|
|
6018
6349
|
return provider;
|
|
6019
6350
|
}
|
|
@@ -6023,7 +6354,10 @@ async function getViewProvider(model) {
|
|
|
6023
6354
|
provider = getProvider9(key);
|
|
6024
6355
|
if (!provider) {
|
|
6025
6356
|
ibiz.log.error(
|
|
6026
|
-
|
|
6357
|
+
ibiz.i18n.t("runtime.register.helper.correspondViewTypeStyle", {
|
|
6358
|
+
viewType,
|
|
6359
|
+
viewStyle
|
|
6360
|
+
}),
|
|
6027
6361
|
model
|
|
6028
6362
|
);
|
|
6029
6363
|
} else {
|
|
@@ -6055,7 +6389,11 @@ function getAsyncActionProvider(action) {
|
|
|
6055
6389
|
action.actiontype || "DEFAULT"
|
|
6056
6390
|
);
|
|
6057
6391
|
if (!provider) {
|
|
6058
|
-
throw new RuntimeError10(
|
|
6392
|
+
throw new RuntimeError10(
|
|
6393
|
+
ibiz.i18n.t("runtime.register.helper.asynchronousAction", {
|
|
6394
|
+
actiontype: action.actiontype
|
|
6395
|
+
})
|
|
6396
|
+
);
|
|
6059
6397
|
} else {
|
|
6060
6398
|
return provider;
|
|
6061
6399
|
}
|
|
@@ -6065,10 +6403,14 @@ function getAsyncActionProvider(action) {
|
|
|
6065
6403
|
import { downloadFileFromBlob as downloadFileFromBlob2, RuntimeError as RuntimeError11 } from "@ibiz-template/core";
|
|
6066
6404
|
var PlatformProviderBase = class {
|
|
6067
6405
|
back() {
|
|
6068
|
-
throw new Error(
|
|
6406
|
+
throw new Error(
|
|
6407
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.noImplementedMethod")
|
|
6408
|
+
);
|
|
6069
6409
|
}
|
|
6070
6410
|
init() {
|
|
6071
|
-
throw new Error(
|
|
6411
|
+
throw new Error(
|
|
6412
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.noImplementedMethod")
|
|
6413
|
+
);
|
|
6072
6414
|
}
|
|
6073
6415
|
async login(loginName, passWord, _verificationCode) {
|
|
6074
6416
|
return ibiz.auth.login(loginName, passWord);
|
|
@@ -6080,10 +6422,10 @@ var PlatformProviderBase = class {
|
|
|
6080
6422
|
baseURL: ""
|
|
6081
6423
|
});
|
|
6082
6424
|
if (response.status !== 200) {
|
|
6083
|
-
throw new RuntimeError11("
|
|
6425
|
+
throw new RuntimeError11(ibiz.i18n.t("runtime.platform.failedDownload"));
|
|
6084
6426
|
}
|
|
6085
6427
|
if (!response.data) {
|
|
6086
|
-
throw new RuntimeError11("
|
|
6428
|
+
throw new RuntimeError11(ibiz.i18n.t("runtime.platform.fileStreamData"));
|
|
6087
6429
|
} else {
|
|
6088
6430
|
const fileName = name;
|
|
6089
6431
|
downloadFileFromBlob2(response.data, fileName);
|
|
@@ -6177,14 +6519,22 @@ async function getDEMethodProvider(model) {
|
|
|
6177
6519
|
provider = getProvider12(pluginKey);
|
|
6178
6520
|
}
|
|
6179
6521
|
if (!provider) {
|
|
6180
|
-
ibiz.log.error(
|
|
6522
|
+
ibiz.log.error(
|
|
6523
|
+
ibiz.i18n.t("runtime.register.helper.entityBehaviorPlugin", {
|
|
6524
|
+
pluginKey
|
|
6525
|
+
})
|
|
6526
|
+
);
|
|
6181
6527
|
} else {
|
|
6182
6528
|
return provider;
|
|
6183
6529
|
}
|
|
6184
6530
|
}
|
|
6185
6531
|
provider = getProvider12(methodType);
|
|
6186
6532
|
if (!provider) {
|
|
6187
|
-
throw new RuntimeError12(
|
|
6533
|
+
throw new RuntimeError12(
|
|
6534
|
+
ibiz.i18n.t("runtime.register.helper.entityBehaviorMethod", {
|
|
6535
|
+
methodType
|
|
6536
|
+
})
|
|
6537
|
+
);
|
|
6188
6538
|
} else {
|
|
6189
6539
|
return provider;
|
|
6190
6540
|
}
|
|
@@ -6212,14 +6562,22 @@ async function getTreeGridExColumnProvider(model) {
|
|
|
6212
6562
|
provider = getProvider13(pluginKey);
|
|
6213
6563
|
}
|
|
6214
6564
|
if (!provider) {
|
|
6215
|
-
ibiz.log.error(
|
|
6565
|
+
ibiz.log.error(
|
|
6566
|
+
ibiz.i18n.t("runtime.register.helper.treeTableColumnPlugin", {
|
|
6567
|
+
pluginKey
|
|
6568
|
+
})
|
|
6569
|
+
);
|
|
6216
6570
|
} else {
|
|
6217
6571
|
return provider;
|
|
6218
6572
|
}
|
|
6219
6573
|
}
|
|
6220
6574
|
provider = getProvider13(columnType);
|
|
6221
6575
|
if (!provider) {
|
|
6222
|
-
ibiz.log.error(
|
|
6576
|
+
ibiz.log.error(
|
|
6577
|
+
ibiz.i18n.t("runtime.register.helper.tableColumnType", {
|
|
6578
|
+
key: columnType
|
|
6579
|
+
})
|
|
6580
|
+
);
|
|
6223
6581
|
} else {
|
|
6224
6582
|
return provider;
|
|
6225
6583
|
}
|
|
@@ -6244,7 +6602,11 @@ async function getAppMenuItemProvider(model) {
|
|
|
6244
6602
|
provider = getProvider14(pluginKey);
|
|
6245
6603
|
}
|
|
6246
6604
|
if (!provider) {
|
|
6247
|
-
ibiz.log.error(
|
|
6605
|
+
ibiz.log.error(
|
|
6606
|
+
ibiz.i18n.t("runtime.register.helper.applicationMenu", {
|
|
6607
|
+
pluginKey
|
|
6608
|
+
})
|
|
6609
|
+
);
|
|
6248
6610
|
} else {
|
|
6249
6611
|
return provider;
|
|
6250
6612
|
}
|
|
@@ -6272,7 +6634,11 @@ function getInternalMessageProvider(msg) {
|
|
|
6272
6634
|
msg.content_type || "DEFAULT"
|
|
6273
6635
|
);
|
|
6274
6636
|
if (!provider) {
|
|
6275
|
-
throw new RuntimeError13(
|
|
6637
|
+
throw new RuntimeError13(
|
|
6638
|
+
ibiz.i18n.t("runtime.register.helper.messageType", {
|
|
6639
|
+
content_type: msg.content_type
|
|
6640
|
+
})
|
|
6641
|
+
);
|
|
6276
6642
|
} else {
|
|
6277
6643
|
return provider;
|
|
6278
6644
|
}
|
|
@@ -6423,7 +6789,7 @@ var AppCounter = class {
|
|
|
6423
6789
|
* @return {*} {Promise<IData>}
|
|
6424
6790
|
*/
|
|
6425
6791
|
async load() {
|
|
6426
|
-
throw new RuntimeError14("
|
|
6792
|
+
throw new RuntimeError14(ibiz.i18n.t("runtime.service.noImplementedCounter"));
|
|
6427
6793
|
}
|
|
6428
6794
|
/**
|
|
6429
6795
|
* 计数器刷新
|
|
@@ -6503,7 +6869,10 @@ var AppDECounter = class extends AppCounter {
|
|
|
6503
6869
|
this.appDataEntityId = this.model.appDataEntityId;
|
|
6504
6870
|
const action = this.model.getAppDEActionId;
|
|
6505
6871
|
if (!action) {
|
|
6506
|
-
throw new RuntimeModelError6(
|
|
6872
|
+
throw new RuntimeModelError6(
|
|
6873
|
+
this.model,
|
|
6874
|
+
ibiz.i18n.t("runtime.service.noFoundCounterBehavior")
|
|
6875
|
+
);
|
|
6507
6876
|
}
|
|
6508
6877
|
this.action = action;
|
|
6509
6878
|
await super.init(context, params);
|
|
@@ -6615,7 +6984,12 @@ var DEDQCondUtil = class {
|
|
|
6615
6984
|
condArr.push("");
|
|
6616
6985
|
}
|
|
6617
6986
|
} else {
|
|
6618
|
-
throw new ModelError4(
|
|
6987
|
+
throw new ModelError4(
|
|
6988
|
+
item,
|
|
6989
|
+
ibiz.i18n.t("runtime.service.unsupportedQueryTypes", {
|
|
6990
|
+
condType: item.condType
|
|
6991
|
+
})
|
|
6992
|
+
);
|
|
6619
6993
|
}
|
|
6620
6994
|
arr.push(condArr);
|
|
6621
6995
|
});
|
|
@@ -6735,7 +7109,7 @@ var DynamicCodeListCache = class {
|
|
|
6735
7109
|
if (!["OPERATOR", "RUNTIME", "DEMAINSTATE"].includes(predefinedType)) {
|
|
6736
7110
|
throw new ModelError5(
|
|
6737
7111
|
this.codeList,
|
|
6738
|
-
"
|
|
7112
|
+
ibiz.i18n.t("runtime.service.predefinedType", { predefinedType })
|
|
6739
7113
|
);
|
|
6740
7114
|
}
|
|
6741
7115
|
return;
|
|
@@ -6801,9 +7175,7 @@ var DynamicCodeListCache = class {
|
|
|
6801
7175
|
data[dataAppDEFieldId]
|
|
6802
7176
|
);
|
|
6803
7177
|
} catch (error) {
|
|
6804
|
-
ibiz.log.error(
|
|
6805
|
-
"\u52A8\u6001\u4EE3\u7801\u8868\u6570\u636E\u5C5E\u6027\u8FD4\u56DE\u503C\u4E0D\u4E3A\u5BF9\u8C61\u683C\u5F0F\u7684\u5B57\u7B26\u4E32\uFF0C\u65E0\u6CD5\u8F6C\u6362\uFF01"
|
|
6806
|
-
);
|
|
7178
|
+
ibiz.log.error(ibiz.i18n.t("runtime.service.dynamicCodeTable"));
|
|
6807
7179
|
}
|
|
6808
7180
|
}
|
|
6809
7181
|
return result;
|
|
@@ -6888,10 +7260,16 @@ var DynamicCodeListCache = class {
|
|
|
6888
7260
|
return Object.freeze(presetresultItems);
|
|
6889
7261
|
}
|
|
6890
7262
|
if (!appDataEntityId) {
|
|
6891
|
-
throw new RuntimeModelError7(
|
|
7263
|
+
throw new RuntimeModelError7(
|
|
7264
|
+
this.codeList,
|
|
7265
|
+
ibiz.i18n.t("runtime.controller.utils.viewMsg.unconfiguredEntities")
|
|
7266
|
+
);
|
|
6892
7267
|
}
|
|
6893
7268
|
if (!appDEDataSetId) {
|
|
6894
|
-
throw new RuntimeModelError7(
|
|
7269
|
+
throw new RuntimeModelError7(
|
|
7270
|
+
this.codeList,
|
|
7271
|
+
ibiz.i18n.t("runtime.service.unconfiguredDataset")
|
|
7272
|
+
);
|
|
6895
7273
|
}
|
|
6896
7274
|
const res = await app.deService.exec(
|
|
6897
7275
|
appDataEntityId,
|
|
@@ -7061,14 +7439,18 @@ function isExistSrfKey(funcName, entity) {
|
|
|
7061
7439
|
return true;
|
|
7062
7440
|
}
|
|
7063
7441
|
}
|
|
7064
|
-
throw new RuntimeError15(
|
|
7442
|
+
throw new RuntimeError15(
|
|
7443
|
+
ibiz.i18n.t("runtime.service.processedWithout", { funcName })
|
|
7444
|
+
);
|
|
7065
7445
|
}
|
|
7066
7446
|
function isExistSessionId(funcName, context) {
|
|
7067
7447
|
const { srfsessionid } = context;
|
|
7068
7448
|
if (!isNil6(srfsessionid) && !isEmpty5(srfsessionid)) {
|
|
7069
7449
|
return true;
|
|
7070
7450
|
}
|
|
7071
|
-
throw new RuntimeError15(
|
|
7451
|
+
throw new RuntimeError15(
|
|
7452
|
+
ibiz.i18n.t("runtime.service.noExistProcessed", { funcName })
|
|
7453
|
+
);
|
|
7072
7454
|
}
|
|
7073
7455
|
|
|
7074
7456
|
// src/service/utils/de-cache/de-cache.ts
|
|
@@ -7155,7 +7537,9 @@ var DECache = class {
|
|
|
7155
7537
|
this.calcUnionKey(entity);
|
|
7156
7538
|
if (this.checkData(context, entity.srfkey)) {
|
|
7157
7539
|
throw new RuntimeError16(
|
|
7158
|
-
|
|
7540
|
+
ibiz.i18n.t("runtime.service.createPrimaryKeyData", {
|
|
7541
|
+
srfkey: entity.srfkey
|
|
7542
|
+
})
|
|
7159
7543
|
);
|
|
7160
7544
|
}
|
|
7161
7545
|
}
|
|
@@ -7216,7 +7600,9 @@ var DECache = class {
|
|
|
7216
7600
|
this.calcUnionKey(entity);
|
|
7217
7601
|
if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
|
|
7218
7602
|
throw new RuntimeError16(
|
|
7219
|
-
|
|
7603
|
+
ibiz.i18n.t("runtime.service.updatePrimaryKeyData", {
|
|
7604
|
+
srfkey: entity.srfkey
|
|
7605
|
+
})
|
|
7220
7606
|
);
|
|
7221
7607
|
}
|
|
7222
7608
|
}
|
|
@@ -7246,7 +7632,7 @@ var DECache = class {
|
|
|
7246
7632
|
}
|
|
7247
7633
|
return _data;
|
|
7248
7634
|
}
|
|
7249
|
-
throw new Error("
|
|
7635
|
+
throw new Error(ibiz.i18n.t("runtime.service.noExistNoUpdated"));
|
|
7250
7636
|
} catch (err) {
|
|
7251
7637
|
ibiz.log.error(err);
|
|
7252
7638
|
return null;
|
|
@@ -7352,7 +7738,9 @@ var DECache = class {
|
|
|
7352
7738
|
this.calcUnionKey(entity);
|
|
7353
7739
|
if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
|
|
7354
7740
|
throw new RuntimeError16(
|
|
7355
|
-
|
|
7741
|
+
ibiz.i18n.t("runtime.service.updatePrimaryKeyData", {
|
|
7742
|
+
srfkey: entity.srfkey
|
|
7743
|
+
})
|
|
7356
7744
|
);
|
|
7357
7745
|
}
|
|
7358
7746
|
}
|
|
@@ -7373,7 +7761,11 @@ var DECache = class {
|
|
|
7373
7761
|
}
|
|
7374
7762
|
} else {
|
|
7375
7763
|
throw new Error(
|
|
7376
|
-
|
|
7764
|
+
ibiz.i18n.t("runtime.service.dataNoExistNoUpdated", {
|
|
7765
|
+
srfdename: entity.srfdename,
|
|
7766
|
+
srfmajortext: entity.srfmajortext,
|
|
7767
|
+
srfkey: entity.srfkey
|
|
7768
|
+
})
|
|
7377
7769
|
);
|
|
7378
7770
|
}
|
|
7379
7771
|
}
|
|
@@ -7408,7 +7800,9 @@ var DECache = class {
|
|
|
7408
7800
|
}
|
|
7409
7801
|
if (notRemoveKeys.length > 0) {
|
|
7410
7802
|
throw new Error(
|
|
7411
|
-
|
|
7803
|
+
ibiz.i18n.t("runtime.service.noDeleted", {
|
|
7804
|
+
notRemoveKey: notRemoveKeys.join("\u3001")
|
|
7805
|
+
})
|
|
7412
7806
|
);
|
|
7413
7807
|
}
|
|
7414
7808
|
const commit = (key) => {
|
|
@@ -7874,7 +8268,9 @@ var CodeListService = class {
|
|
|
7874
8268
|
async get(tag, context, params) {
|
|
7875
8269
|
const codeList = this.allCodeLists.get(tag);
|
|
7876
8270
|
if (!codeList) {
|
|
7877
|
-
throw new RuntimeError17(
|
|
8271
|
+
throw new RuntimeError17(
|
|
8272
|
+
ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
|
|
8273
|
+
);
|
|
7878
8274
|
}
|
|
7879
8275
|
if (codeList.codeListType === "STATIC") {
|
|
7880
8276
|
return this.getStatic(codeList);
|
|
@@ -7894,7 +8290,9 @@ var CodeListService = class {
|
|
|
7894
8290
|
let codeListInstance;
|
|
7895
8291
|
const codeList = this.allCodeLists.get(tag);
|
|
7896
8292
|
if (!codeList) {
|
|
7897
|
-
throw new RuntimeError17(
|
|
8293
|
+
throw new RuntimeError17(
|
|
8294
|
+
ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
|
|
8295
|
+
);
|
|
7898
8296
|
}
|
|
7899
8297
|
if (codeList.codeListType === "DYNAMIC") {
|
|
7900
8298
|
const codeName = codeList.codeName;
|
|
@@ -8018,7 +8416,10 @@ var CounterService = class {
|
|
|
8018
8416
|
static async getCounterByRef(model, context, params) {
|
|
8019
8417
|
const { appCounter } = model;
|
|
8020
8418
|
if (!appCounter) {
|
|
8021
|
-
throw new RuntimeModelError8(
|
|
8419
|
+
throw new RuntimeModelError8(
|
|
8420
|
+
model,
|
|
8421
|
+
ibiz.i18n.t("runtime.service.noConfiguredCounters")
|
|
8422
|
+
);
|
|
8022
8423
|
}
|
|
8023
8424
|
return this.getCounter(appCounter, context, params);
|
|
8024
8425
|
}
|
|
@@ -8364,7 +8765,9 @@ var WorkFlowService = class {
|
|
|
8364
8765
|
case "sendcopy":
|
|
8365
8766
|
return this.wfSendCopy(context, params, data);
|
|
8366
8767
|
default: {
|
|
8367
|
-
throw new RuntimeError18(
|
|
8768
|
+
throw new RuntimeError18(
|
|
8769
|
+
ibiz.i18n.t("runtime.service.noImplemented", { methodName })
|
|
8770
|
+
);
|
|
8368
8771
|
}
|
|
8369
8772
|
}
|
|
8370
8773
|
}
|
|
@@ -8469,7 +8872,11 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
8469
8872
|
}
|
|
8470
8873
|
});
|
|
8471
8874
|
} else {
|
|
8472
|
-
ibiz.log.warn(
|
|
8875
|
+
ibiz.log.warn(
|
|
8876
|
+
ibiz.i18n.t("runtime.service.noConfiguredPrimary", {
|
|
8877
|
+
codeName: entity.codeName
|
|
8878
|
+
})
|
|
8879
|
+
);
|
|
8473
8880
|
}
|
|
8474
8881
|
const majorAppField = findModelChild(
|
|
8475
8882
|
entity.appDEFields || [],
|
|
@@ -8491,7 +8898,11 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
8491
8898
|
}
|
|
8492
8899
|
});
|
|
8493
8900
|
} else {
|
|
8494
|
-
ibiz.log.warn(
|
|
8901
|
+
ibiz.log.warn(
|
|
8902
|
+
ibiz.i18n.t("runtime.service.noConfiguredField", {
|
|
8903
|
+
codeName: entity.codeName
|
|
8904
|
+
})
|
|
8905
|
+
);
|
|
8495
8906
|
}
|
|
8496
8907
|
Object.defineProperty(this, "tempsrfkey", {
|
|
8497
8908
|
enumerable: false,
|
|
@@ -8593,7 +9004,11 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
8593
9004
|
if (DataTypes.isNumber(dataType)) {
|
|
8594
9005
|
const numVal = !isNil9(value) && value !== "" ? Number(value) : value;
|
|
8595
9006
|
if (Number.isNaN(numVal)) {
|
|
8596
|
-
ibiz.log.debug(
|
|
9007
|
+
ibiz.log.debug(
|
|
9008
|
+
ibiz.i18n.t("runtime.service.convertedNumber", {
|
|
9009
|
+
value
|
|
9010
|
+
})
|
|
9011
|
+
);
|
|
8597
9012
|
return value;
|
|
8598
9013
|
}
|
|
8599
9014
|
return numVal;
|
|
@@ -8719,7 +9134,7 @@ var MethodDto = class {
|
|
|
8719
9134
|
} else {
|
|
8720
9135
|
throw new RuntimeModelError9(
|
|
8721
9136
|
field,
|
|
8722
|
-
"
|
|
9137
|
+
ibiz.i18n.t("runtime.service.subRelationships")
|
|
8723
9138
|
);
|
|
8724
9139
|
}
|
|
8725
9140
|
if (res.ok) {
|
|
@@ -8736,7 +9151,9 @@ var MethodDto = class {
|
|
|
8736
9151
|
default:
|
|
8737
9152
|
throw new ModelError6(
|
|
8738
9153
|
field,
|
|
8739
|
-
|
|
9154
|
+
ibiz.i18n.t("runtime.service.unsupportedMethod", {
|
|
9155
|
+
type: field.type
|
|
9156
|
+
})
|
|
8740
9157
|
);
|
|
8741
9158
|
}
|
|
8742
9159
|
}
|
|
@@ -8926,11 +9343,19 @@ var DEService = class {
|
|
|
8926
9343
|
}
|
|
8927
9344
|
const model = findAppDEMethod(this.model, id);
|
|
8928
9345
|
if (!model) {
|
|
8929
|
-
throw new RuntimeModelError10(
|
|
9346
|
+
throw new RuntimeModelError10(
|
|
9347
|
+
this.model,
|
|
9348
|
+
ibiz.i18n.t("runtime.service.noFoundServiceMethod", { id })
|
|
9349
|
+
);
|
|
8930
9350
|
}
|
|
8931
9351
|
const provider = await getDEMethodProvider(model);
|
|
8932
9352
|
if (!provider) {
|
|
8933
|
-
throw new ModelError7(
|
|
9353
|
+
throw new ModelError7(
|
|
9354
|
+
model,
|
|
9355
|
+
ibiz.i18n.t("runtime.service.UnsupportedServiceMethod", {
|
|
9356
|
+
methodType: model.methodType
|
|
9357
|
+
})
|
|
9358
|
+
);
|
|
8934
9359
|
}
|
|
8935
9360
|
const method = provider.create(this, this.model, model, {
|
|
8936
9361
|
acMode,
|
|
@@ -8955,7 +9380,12 @@ var DEService = class {
|
|
|
8955
9380
|
if (method) {
|
|
8956
9381
|
return method.exec(context, params, params2, header);
|
|
8957
9382
|
}
|
|
8958
|
-
throw new RuntimeError19(
|
|
9383
|
+
throw new RuntimeError19(
|
|
9384
|
+
ibiz.i18n.t("runtime.service.noSupportedMethod", {
|
|
9385
|
+
codeName: this.model.codeName,
|
|
9386
|
+
id
|
|
9387
|
+
})
|
|
9388
|
+
);
|
|
8959
9389
|
}
|
|
8960
9390
|
getDraft(context, params, params2) {
|
|
8961
9391
|
return this.exec("GetDraft", context, params, params2);
|
|
@@ -9009,7 +9439,12 @@ var DEService = class {
|
|
|
9009
9439
|
if (method) {
|
|
9010
9440
|
return method.exec(context, params, params2);
|
|
9011
9441
|
}
|
|
9012
|
-
throw new RuntimeError19(
|
|
9442
|
+
throw new RuntimeError19(
|
|
9443
|
+
ibiz.i18n.t("runtime.service.noSupportedMethod", {
|
|
9444
|
+
codeName: this.model.codeName,
|
|
9445
|
+
id
|
|
9446
|
+
})
|
|
9447
|
+
);
|
|
9013
9448
|
}
|
|
9014
9449
|
/**
|
|
9015
9450
|
* 实体级别 AI 聊天会话
|
|
@@ -9765,26 +10200,38 @@ var DeAuthorityService = class {
|
|
|
9765
10200
|
const appDataEntity = this.entityModel;
|
|
9766
10201
|
if (!appDataEntity.enableDEMainState) {
|
|
9767
10202
|
ibiz.log.debug(
|
|
9768
|
-
|
|
10203
|
+
ibiz.i18n.t("runtime.service.masterState", {
|
|
10204
|
+
codeName: appDataEntity.codeName
|
|
10205
|
+
})
|
|
9769
10206
|
);
|
|
9770
10207
|
return result;
|
|
9771
10208
|
}
|
|
9772
10209
|
ibiz.log.debug(
|
|
9773
|
-
|
|
10210
|
+
ibiz.i18n.t("runtime.service.operationIdentifier", {
|
|
10211
|
+
dataAccessAction
|
|
10212
|
+
}),
|
|
9774
10213
|
data,
|
|
9775
10214
|
appDataEntity
|
|
9776
10215
|
);
|
|
9777
10216
|
const match = matchMainState(appDataEntity, data);
|
|
9778
10217
|
if (match) {
|
|
9779
|
-
ibiz.log.debug("
|
|
10218
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.service.matchMasterState"), match);
|
|
9780
10219
|
const opprivs = calcMainStateOPPrivsStrs(match, appDataEntity);
|
|
9781
|
-
ibiz.log.debug(
|
|
10220
|
+
ibiz.log.debug(
|
|
10221
|
+
ibiz.i18n.t("runtime.service.masterStatePermissions"),
|
|
10222
|
+
opprivs
|
|
10223
|
+
);
|
|
9782
10224
|
result = opprivs.includes(dataAccessAction);
|
|
9783
10225
|
} else {
|
|
9784
|
-
ibiz.log.debug("
|
|
10226
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.service.noMatchedState"));
|
|
9785
10227
|
result = false;
|
|
9786
10228
|
}
|
|
9787
|
-
ibiz.log.debug(
|
|
10229
|
+
ibiz.log.debug(
|
|
10230
|
+
ibiz.i18n.t("runtime.service.permissionCalculation", {
|
|
10231
|
+
dataAccessAction,
|
|
10232
|
+
result
|
|
10233
|
+
})
|
|
10234
|
+
);
|
|
9788
10235
|
return result;
|
|
9789
10236
|
}
|
|
9790
10237
|
};
|
|
@@ -9858,7 +10305,7 @@ var AuthorityService = class {
|
|
|
9858
10305
|
this.appModel.appId
|
|
9859
10306
|
);
|
|
9860
10307
|
if (!entityModel) {
|
|
9861
|
-
throw new RuntimeError21("
|
|
10308
|
+
throw new RuntimeError21(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
9862
10309
|
}
|
|
9863
10310
|
const constructor = this.constructorCache.get(id);
|
|
9864
10311
|
let service;
|
|
@@ -9941,7 +10388,7 @@ var V7AuthService = class {
|
|
|
9941
10388
|
async anonymousLogin() {
|
|
9942
10389
|
const { anonymousUser, anonymousPwd } = ibiz.env;
|
|
9943
10390
|
if (!anonymousUser || !anonymousPwd) {
|
|
9944
|
-
ibiz.log.error("
|
|
10391
|
+
ibiz.log.error(ibiz.i18n.t("runtime.service.noFoundUsernamePassword"));
|
|
9945
10392
|
return false;
|
|
9946
10393
|
}
|
|
9947
10394
|
const result = await this.login(anonymousUser, anonymousPwd);
|
|
@@ -9960,13 +10407,18 @@ var V7AuthService = class {
|
|
|
9960
10407
|
}
|
|
9961
10408
|
return result;
|
|
9962
10409
|
}
|
|
9963
|
-
async login(loginName, password, remember) {
|
|
10410
|
+
async login(loginName, password, remember, headers) {
|
|
9964
10411
|
try {
|
|
9965
|
-
const res = await ibiz.net.post(
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
10412
|
+
const res = await ibiz.net.post(
|
|
10413
|
+
"/v7/login",
|
|
10414
|
+
{
|
|
10415
|
+
loginname: loginName,
|
|
10416
|
+
password,
|
|
10417
|
+
rememberme: remember
|
|
10418
|
+
},
|
|
10419
|
+
{},
|
|
10420
|
+
headers
|
|
10421
|
+
);
|
|
9970
10422
|
const { data } = res;
|
|
9971
10423
|
if (data && data.token) {
|
|
9972
10424
|
const cacheDay = remember ? 30 : 0;
|
|
@@ -9989,7 +10441,7 @@ var V7AuthService = class {
|
|
|
9989
10441
|
return true;
|
|
9990
10442
|
} catch (err) {
|
|
9991
10443
|
ibiz.notification.error({
|
|
9992
|
-
title: "
|
|
10444
|
+
title: ibiz.i18n.t("runtime.service.loginFailure"),
|
|
9993
10445
|
desc: err.message || ""
|
|
9994
10446
|
});
|
|
9995
10447
|
}
|
|
@@ -10008,7 +10460,7 @@ var V7AuthService = class {
|
|
|
10008
10460
|
return true;
|
|
10009
10461
|
} catch (err) {
|
|
10010
10462
|
ibiz.notification.error({
|
|
10011
|
-
title: "
|
|
10463
|
+
title: ibiz.i18n.t("runtime.service.logoutFailure"),
|
|
10012
10464
|
desc: err.message || ""
|
|
10013
10465
|
});
|
|
10014
10466
|
}
|
|
@@ -10335,15 +10787,21 @@ var Method = class {
|
|
|
10335
10787
|
if (requestMethod) {
|
|
10336
10788
|
throw new RuntimeModelError11(
|
|
10337
10789
|
this.method,
|
|
10338
|
-
"
|
|
10790
|
+
ibiz.i18n.t("runtime.service.requestMethods", { requestMethod })
|
|
10339
10791
|
);
|
|
10340
10792
|
} else {
|
|
10341
|
-
throw new RuntimeModelError11(
|
|
10793
|
+
throw new RuntimeModelError11(
|
|
10794
|
+
this.method,
|
|
10795
|
+
ibiz.i18n.t("runtime.service.noConfiguredRequestMethod")
|
|
10796
|
+
);
|
|
10342
10797
|
}
|
|
10343
10798
|
}
|
|
10344
10799
|
return res;
|
|
10345
10800
|
}
|
|
10346
|
-
throw new RuntimeModelError11(
|
|
10801
|
+
throw new RuntimeModelError11(
|
|
10802
|
+
this.method,
|
|
10803
|
+
ibiz.i18n.t("runtime.service.unsupportedBehaviorTypes", { actionType })
|
|
10804
|
+
);
|
|
10347
10805
|
}
|
|
10348
10806
|
/**
|
|
10349
10807
|
* 合并请求路径
|
|
@@ -10581,7 +11039,7 @@ var DELogicLinkSingleCond = class extends DELogicLinkCond {
|
|
|
10581
11039
|
if (!this.value) {
|
|
10582
11040
|
throw new RuntimeModelError12(
|
|
10583
11041
|
this.model,
|
|
10584
|
-
"
|
|
11042
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.missingConditionValue")
|
|
10585
11043
|
);
|
|
10586
11044
|
}
|
|
10587
11045
|
const value = data[this.value] != null ? data[this.value] : context[this.value];
|
|
@@ -10593,7 +11051,9 @@ var DELogicLinkSingleCond = class extends DELogicLinkCond {
|
|
|
10593
11051
|
if (!this.value) {
|
|
10594
11052
|
throw new RuntimeModelError12(
|
|
10595
11053
|
this.model,
|
|
10596
|
-
|
|
11054
|
+
ibiz.i18n.t(
|
|
11055
|
+
"runtime.deLogic.deLogicLink.sourceDataMissingConditionValue"
|
|
11056
|
+
)
|
|
10597
11057
|
);
|
|
10598
11058
|
}
|
|
10599
11059
|
const src = ctx.params[this.srcParam];
|
|
@@ -10602,18 +11062,27 @@ var DELogicLinkSingleCond = class extends DELogicLinkCond {
|
|
|
10602
11062
|
break;
|
|
10603
11063
|
}
|
|
10604
11064
|
case "CURTIME":
|
|
10605
|
-
throw new ModelError8(
|
|
11065
|
+
throw new ModelError8(
|
|
11066
|
+
this.model,
|
|
11067
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.noSupportedTime")
|
|
11068
|
+
);
|
|
10606
11069
|
default:
|
|
10607
11070
|
compareValue = this.value;
|
|
10608
11071
|
result = testCond(dst[this.dstField], this.op, this.value);
|
|
10609
11072
|
}
|
|
10610
11073
|
ibiz.log.debug(
|
|
10611
|
-
|
|
11074
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.entityLogicalConnection", {
|
|
11075
|
+
name: this.model.name,
|
|
11076
|
+
type: this.type,
|
|
11077
|
+
dstField: this.dstField
|
|
11078
|
+
}),
|
|
10612
11079
|
dst[this.dstField],
|
|
10613
|
-
|
|
10614
|
-
|
|
11080
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.comparisonCondition", {
|
|
11081
|
+
op: this.op
|
|
11082
|
+
}),
|
|
11083
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.comparisonValue"),
|
|
10615
11084
|
compareValue,
|
|
10616
|
-
"
|
|
11085
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.compareResults"),
|
|
10617
11086
|
result
|
|
10618
11087
|
);
|
|
10619
11088
|
return result;
|
|
@@ -10665,9 +11134,12 @@ var DELogicLinkGroupCond = class _DELogicLinkGroupCond extends DELogicLinkCond {
|
|
|
10665
11134
|
* @return {*} {boolean}
|
|
10666
11135
|
*/
|
|
10667
11136
|
test(ctx, context, data) {
|
|
10668
|
-
let bol =
|
|
11137
|
+
let bol = this.op !== "OR";
|
|
10669
11138
|
if (this.conds.length === 0) {
|
|
10670
|
-
throw new RuntimeModelError13(
|
|
11139
|
+
throw new RuntimeModelError13(
|
|
11140
|
+
this.model,
|
|
11141
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.connectionConditional")
|
|
11142
|
+
);
|
|
10671
11143
|
}
|
|
10672
11144
|
for (let i = 0; i < this.conds.length; i++) {
|
|
10673
11145
|
const cond = this.conds[i];
|
|
@@ -10683,7 +11155,10 @@ var DELogicLinkGroupCond = class _DELogicLinkGroupCond extends DELogicLinkCond {
|
|
|
10683
11155
|
}
|
|
10684
11156
|
const result = this.notMode ? !bol : bol;
|
|
10685
11157
|
ibiz.log.debug(
|
|
10686
|
-
|
|
11158
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.entityConnectionConditional", {
|
|
11159
|
+
name: this.model.name,
|
|
11160
|
+
id: this.model.id
|
|
11161
|
+
}),
|
|
10687
11162
|
result
|
|
10688
11163
|
);
|
|
10689
11164
|
return result;
|
|
@@ -10775,10 +11250,16 @@ var DEActionNode = class extends DELogicNode {
|
|
|
10775
11250
|
retDELogicParamId
|
|
10776
11251
|
} = this.model;
|
|
10777
11252
|
if (!dstAppDataEntityId) {
|
|
10778
|
-
throw new RuntimeModelError14(
|
|
11253
|
+
throw new RuntimeModelError14(
|
|
11254
|
+
this.model,
|
|
11255
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedEntity")
|
|
11256
|
+
);
|
|
10779
11257
|
}
|
|
10780
11258
|
if (!dstAppDEActionId) {
|
|
10781
|
-
throw new RuntimeModelError14(
|
|
11259
|
+
throw new RuntimeModelError14(
|
|
11260
|
+
this.model,
|
|
11261
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedBehavior")
|
|
11262
|
+
);
|
|
10782
11263
|
}
|
|
10783
11264
|
const requestData = ctx.params[dstDELogicParamId];
|
|
10784
11265
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -10793,7 +11274,12 @@ var DEActionNode = class extends DELogicNode {
|
|
|
10793
11274
|
ctx.params[retDELogicParamId] = res.data;
|
|
10794
11275
|
}
|
|
10795
11276
|
ibiz.log.debug(
|
|
10796
|
-
|
|
11277
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.entityActions", {
|
|
11278
|
+
id: this.model.id,
|
|
11279
|
+
dstAppDataEntityId,
|
|
11280
|
+
dstAppDEActionId,
|
|
11281
|
+
retDELogicParamId
|
|
11282
|
+
}),
|
|
10797
11283
|
ctx.params[retDELogicParamId]
|
|
10798
11284
|
);
|
|
10799
11285
|
}
|
|
@@ -10802,7 +11288,11 @@ var DEActionNode = class extends DELogicNode {
|
|
|
10802
11288
|
// src/de-logic/de-logic-node/start-node/start-node.ts
|
|
10803
11289
|
var StartNode = class extends DELogicNode {
|
|
10804
11290
|
async exec(_ctx) {
|
|
10805
|
-
ibiz.log.debug(
|
|
11291
|
+
ibiz.log.debug(
|
|
11292
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.startupNode", {
|
|
11293
|
+
id: this.model.id
|
|
11294
|
+
})
|
|
11295
|
+
);
|
|
10806
11296
|
}
|
|
10807
11297
|
};
|
|
10808
11298
|
|
|
@@ -10833,11 +11323,16 @@ var EndNode = class extends DELogicNode {
|
|
|
10833
11323
|
default:
|
|
10834
11324
|
throw new ModelError9(
|
|
10835
11325
|
this.model,
|
|
10836
|
-
"
|
|
11326
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.unsupportedReturnType", {
|
|
11327
|
+
returnType
|
|
11328
|
+
})
|
|
10837
11329
|
);
|
|
10838
11330
|
}
|
|
10839
11331
|
ibiz.log.debug(
|
|
10840
|
-
|
|
11332
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.endNode", {
|
|
11333
|
+
id: this.model.id,
|
|
11334
|
+
returnType
|
|
11335
|
+
}),
|
|
10841
11336
|
ctx.result
|
|
10842
11337
|
);
|
|
10843
11338
|
}
|
|
@@ -10883,7 +11378,10 @@ function handleSrcVal(ctx, srcValParams) {
|
|
|
10883
11378
|
break;
|
|
10884
11379
|
case "EXPRESSION":
|
|
10885
11380
|
if (!expression) {
|
|
10886
|
-
throw new ModelError10(
|
|
11381
|
+
throw new ModelError10(
|
|
11382
|
+
srcValParams,
|
|
11383
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.expressionEmpty")
|
|
11384
|
+
);
|
|
10887
11385
|
}
|
|
10888
11386
|
value = ScriptFactory.execScriptFn(ctx, expression, {
|
|
10889
11387
|
singleRowReturn: true,
|
|
@@ -10891,7 +11389,12 @@ function handleSrcVal(ctx, srcValParams) {
|
|
|
10891
11389
|
});
|
|
10892
11390
|
break;
|
|
10893
11391
|
default:
|
|
10894
|
-
throw new ModelError10(
|
|
11392
|
+
throw new ModelError10(
|
|
11393
|
+
srcValParams,
|
|
11394
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.sourceValueType", {
|
|
11395
|
+
srcValueType
|
|
11396
|
+
})
|
|
11397
|
+
);
|
|
10895
11398
|
}
|
|
10896
11399
|
if (value && srcField) {
|
|
10897
11400
|
try {
|
|
@@ -10908,7 +11411,12 @@ function handleSrcVal(ctx, srcValParams) {
|
|
|
10908
11411
|
);
|
|
10909
11412
|
}
|
|
10910
11413
|
} catch (error) {
|
|
10911
|
-
ibiz.log.error(
|
|
11414
|
+
ibiz.log.error(
|
|
11415
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.fetchingAttribute", {
|
|
11416
|
+
srcField
|
|
11417
|
+
}),
|
|
11418
|
+
value
|
|
11419
|
+
);
|
|
10912
11420
|
throw error;
|
|
10913
11421
|
}
|
|
10914
11422
|
}
|
|
@@ -10952,13 +11460,19 @@ var PrepareParamNode = class extends DELogicNode {
|
|
|
10952
11460
|
default:
|
|
10953
11461
|
throw new ModelError11(
|
|
10954
11462
|
nodeParam,
|
|
10955
|
-
|
|
11463
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.noSupportedLogic", {
|
|
11464
|
+
paramAction: nodeParam.paramAction
|
|
11465
|
+
})
|
|
10956
11466
|
);
|
|
10957
11467
|
}
|
|
10958
11468
|
ibiz.log.debug(
|
|
10959
|
-
|
|
11469
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.preparationParameter", {
|
|
11470
|
+
id: this.model.id,
|
|
11471
|
+
paramAction: nodeParam.paramAction,
|
|
11472
|
+
dstDELogicParamId: nodeParam.dstDELogicParamId
|
|
11473
|
+
}),
|
|
10960
11474
|
originValue,
|
|
10961
|
-
"
|
|
11475
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.targetParameter"),
|
|
10962
11476
|
ctx.params[nodeParam.dstDELogicParamId]
|
|
10963
11477
|
);
|
|
10964
11478
|
return result;
|
|
@@ -11096,7 +11610,12 @@ var DataSetNode = class extends DELogicNode {
|
|
|
11096
11610
|
ctx.params[retDELogicParamId] = res.data;
|
|
11097
11611
|
}
|
|
11098
11612
|
ibiz.log.debug(
|
|
11099
|
-
|
|
11613
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.dataSet", {
|
|
11614
|
+
id: this.model.id,
|
|
11615
|
+
dstAppDataEntityId,
|
|
11616
|
+
dstAppDEDataSetId,
|
|
11617
|
+
retDELogicParamId
|
|
11618
|
+
}),
|
|
11100
11619
|
ctx.params[retDELogicParamId]
|
|
11101
11620
|
);
|
|
11102
11621
|
}
|
|
@@ -11110,13 +11629,16 @@ var BindParamNode = class extends DELogicNode {
|
|
|
11110
11629
|
if (!dstDELogicParamId || !srcDELogicParamId) {
|
|
11111
11630
|
throw new RuntimeModelError15(
|
|
11112
11631
|
this.model,
|
|
11113
|
-
"
|
|
11632
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingTargetParameter")
|
|
11114
11633
|
);
|
|
11115
11634
|
}
|
|
11116
11635
|
const srcVal = handleSrcVal(ctx, this.model);
|
|
11117
11636
|
ctx.params[dstDELogicParamId] = srcVal;
|
|
11118
11637
|
ibiz.log.debug(
|
|
11119
|
-
|
|
11638
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.logicNodeParameterName", {
|
|
11639
|
+
id: this.model.id,
|
|
11640
|
+
dstDELogicParamId
|
|
11641
|
+
}),
|
|
11120
11642
|
srcVal
|
|
11121
11643
|
);
|
|
11122
11644
|
}
|
|
@@ -11128,11 +11650,17 @@ var ResetParamNode = class extends DELogicNode {
|
|
|
11128
11650
|
async exec(ctx) {
|
|
11129
11651
|
const { dstDELogicParamId } = this.model;
|
|
11130
11652
|
if (!dstDELogicParamId) {
|
|
11131
|
-
throw new RuntimeModelError16(
|
|
11653
|
+
throw new RuntimeModelError16(
|
|
11654
|
+
this.model,
|
|
11655
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
11656
|
+
);
|
|
11132
11657
|
}
|
|
11133
11658
|
ctx.resetParam(dstDELogicParamId);
|
|
11134
11659
|
ibiz.log.debug(
|
|
11135
|
-
|
|
11660
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.resetParameter", {
|
|
11661
|
+
id: this.model.id,
|
|
11662
|
+
dstDELogicParamId
|
|
11663
|
+
})
|
|
11136
11664
|
);
|
|
11137
11665
|
}
|
|
11138
11666
|
};
|
|
@@ -11143,11 +11671,17 @@ var RenewParamNode = class extends DELogicNode {
|
|
|
11143
11671
|
async exec(ctx) {
|
|
11144
11672
|
const { dstDELogicParamId } = this.model;
|
|
11145
11673
|
if (!dstDELogicParamId) {
|
|
11146
|
-
throw new RuntimeModelError17(
|
|
11674
|
+
throw new RuntimeModelError17(
|
|
11675
|
+
this.model,
|
|
11676
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
11677
|
+
);
|
|
11147
11678
|
}
|
|
11148
11679
|
ctx.renewParam(dstDELogicParamId);
|
|
11149
11680
|
ibiz.log.debug(
|
|
11150
|
-
|
|
11681
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.rebuildParameter", {
|
|
11682
|
+
id: this.model.id,
|
|
11683
|
+
dstDELogicParamId
|
|
11684
|
+
})
|
|
11151
11685
|
);
|
|
11152
11686
|
}
|
|
11153
11687
|
};
|
|
@@ -11161,13 +11695,16 @@ var CopyParamNode = class extends DELogicNode {
|
|
|
11161
11695
|
if (!dstDELogicParamId || !srcDELogicParamId) {
|
|
11162
11696
|
throw new RuntimeModelError18(
|
|
11163
11697
|
this.model,
|
|
11164
|
-
"
|
|
11698
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingTargetParameter")
|
|
11165
11699
|
);
|
|
11166
11700
|
}
|
|
11167
11701
|
const srcVal = handleSrcVal(ctx, this.model);
|
|
11168
11702
|
ctx.params[dstDELogicParamId] = clone12(srcVal);
|
|
11169
11703
|
ibiz.log.debug(
|
|
11170
|
-
|
|
11704
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.copyParameter", {
|
|
11705
|
+
id: this.model.id,
|
|
11706
|
+
dstDELogicParamId
|
|
11707
|
+
}),
|
|
11171
11708
|
srcVal
|
|
11172
11709
|
);
|
|
11173
11710
|
}
|
|
@@ -11179,7 +11716,10 @@ var SortParamNode = class extends DELogicNode {
|
|
|
11179
11716
|
async exec(ctx) {
|
|
11180
11717
|
const { dstDELogicParamId, dstSortDir, dstFieldName } = this.model;
|
|
11181
11718
|
if (!dstDELogicParamId || !dstFieldName) {
|
|
11182
|
-
throw new RuntimeModelError19(
|
|
11719
|
+
throw new RuntimeModelError19(
|
|
11720
|
+
this.model,
|
|
11721
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingParameterProperty")
|
|
11722
|
+
);
|
|
11183
11723
|
}
|
|
11184
11724
|
const key = dstFieldName.toLowerCase();
|
|
11185
11725
|
const arr = ctx.params[dstDELogicParamId];
|
|
@@ -11187,7 +11727,12 @@ var SortParamNode = class extends DELogicNode {
|
|
|
11187
11727
|
return dstSortDir === "ASC" ? a[key] - b[key] : b[key] - a[key];
|
|
11188
11728
|
});
|
|
11189
11729
|
ibiz.log.debug(
|
|
11190
|
-
|
|
11730
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.sortedArrayParameters", {
|
|
11731
|
+
id: this.model.id,
|
|
11732
|
+
dstFieldName,
|
|
11733
|
+
dstSortDir,
|
|
11734
|
+
dstDELogicParamId
|
|
11735
|
+
}),
|
|
11191
11736
|
arr
|
|
11192
11737
|
);
|
|
11193
11738
|
}
|
|
@@ -11207,7 +11752,7 @@ var AppendParamNode = class extends DELogicNode {
|
|
|
11207
11752
|
if (!dstDELogicParamId || !srcDELogicParamId) {
|
|
11208
11753
|
throw new RuntimeModelError20(
|
|
11209
11754
|
this.model,
|
|
11210
|
-
"
|
|
11755
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingTargetParameter")
|
|
11211
11756
|
);
|
|
11212
11757
|
}
|
|
11213
11758
|
const srcVal = handleSrcVal(ctx, this.model);
|
|
@@ -11220,9 +11765,11 @@ var AppendParamNode = class extends DELogicNode {
|
|
|
11220
11765
|
...srcVal.slice(_srcIndex, _srcSize)
|
|
11221
11766
|
);
|
|
11222
11767
|
ibiz.log.debug(
|
|
11223
|
-
|
|
11768
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.additionalParameter", {
|
|
11769
|
+
id: this.model.id
|
|
11770
|
+
}),
|
|
11224
11771
|
ctx.params,
|
|
11225
|
-
"
|
|
11772
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.addedValue"),
|
|
11226
11773
|
srcVal.slice(_srcIndex, _srcSize)
|
|
11227
11774
|
);
|
|
11228
11775
|
}
|
|
@@ -11234,7 +11781,11 @@ var ThrowExceptionNode = class extends DELogicNode {
|
|
|
11234
11781
|
async exec(_ctx) {
|
|
11235
11782
|
const { errorCode, errorInfo } = this.model;
|
|
11236
11783
|
ibiz.log.debug(
|
|
11237
|
-
|
|
11784
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.throwsException", {
|
|
11785
|
+
id: this.model.id,
|
|
11786
|
+
errorCode,
|
|
11787
|
+
errorInfo
|
|
11788
|
+
})
|
|
11238
11789
|
);
|
|
11239
11790
|
throw new HttpError3({
|
|
11240
11791
|
response: {
|
|
@@ -11298,21 +11849,46 @@ var DELogicParam = class {
|
|
|
11298
11849
|
} else if (m.cloneParam) {
|
|
11299
11850
|
ctx.params[tag] = clone13(ctx.data || {});
|
|
11300
11851
|
} else if (m.envParam) {
|
|
11301
|
-
throw new ModelError12(
|
|
11852
|
+
throw new ModelError12(
|
|
11853
|
+
m,
|
|
11854
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.environmentVariables")
|
|
11855
|
+
);
|
|
11302
11856
|
} else if (m.fileListParam) {
|
|
11303
|
-
throw new ModelError12(
|
|
11857
|
+
throw new ModelError12(
|
|
11858
|
+
m,
|
|
11859
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.fileObjectListVariable")
|
|
11860
|
+
);
|
|
11304
11861
|
} else if (m.fileParam) {
|
|
11305
|
-
throw new ModelError12(
|
|
11862
|
+
throw new ModelError12(
|
|
11863
|
+
m,
|
|
11864
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.fileObjectVariables")
|
|
11865
|
+
);
|
|
11306
11866
|
} else if (m.filterParam) {
|
|
11307
|
-
throw new ModelError12(
|
|
11867
|
+
throw new ModelError12(
|
|
11868
|
+
m,
|
|
11869
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.filterObjectVariables")
|
|
11870
|
+
);
|
|
11308
11871
|
} else if (m.lastParam) {
|
|
11309
|
-
throw new ModelError12(
|
|
11872
|
+
throw new ModelError12(
|
|
11873
|
+
m,
|
|
11874
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.finalDataVariables")
|
|
11875
|
+
);
|
|
11310
11876
|
} else if (m.originEntity) {
|
|
11311
|
-
throw new ModelError12(
|
|
11877
|
+
throw new ModelError12(
|
|
11878
|
+
m,
|
|
11879
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.rawDataObjects")
|
|
11880
|
+
);
|
|
11312
11881
|
} else if (m.sessionParam) {
|
|
11313
|
-
throw new ModelError12(
|
|
11882
|
+
throw new ModelError12(
|
|
11883
|
+
m,
|
|
11884
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.operationSessionVariables")
|
|
11885
|
+
);
|
|
11314
11886
|
}
|
|
11315
|
-
ibiz.log.debug(
|
|
11887
|
+
ibiz.log.debug(
|
|
11888
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.calculateEntity", { tag }),
|
|
11889
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.value"),
|
|
11890
|
+
ctx.params[tag]
|
|
11891
|
+
);
|
|
11316
11892
|
}
|
|
11317
11893
|
/**
|
|
11318
11894
|
* 重新建立变量
|
|
@@ -11328,11 +11904,14 @@ var DELogicParam = class {
|
|
|
11328
11904
|
} else if (m.simpleParam || m.entityParam) {
|
|
11329
11905
|
ctx.params[tag] = {};
|
|
11330
11906
|
} else {
|
|
11331
|
-
throw new ModelError12(
|
|
11907
|
+
throw new ModelError12(
|
|
11908
|
+
m,
|
|
11909
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.recreatingVariables")
|
|
11910
|
+
);
|
|
11332
11911
|
}
|
|
11333
11912
|
ibiz.log.debug(
|
|
11334
|
-
"
|
|
11335
|
-
"
|
|
11913
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.reEstablish", { tag }),
|
|
11914
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.value"),
|
|
11336
11915
|
ctx.params[tag]
|
|
11337
11916
|
);
|
|
11338
11917
|
}
|
|
@@ -11369,7 +11948,10 @@ var DELogic = class {
|
|
|
11369
11948
|
var _a, _b;
|
|
11370
11949
|
if (model.customCode) {
|
|
11371
11950
|
if (!model.scriptCode) {
|
|
11372
|
-
throw new RuntimeModelError21(
|
|
11951
|
+
throw new RuntimeModelError21(
|
|
11952
|
+
model,
|
|
11953
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.noScriptCode")
|
|
11954
|
+
);
|
|
11373
11955
|
}
|
|
11374
11956
|
this.scriptFn = ScriptFactory.createScriptFn([], model.scriptCode, {
|
|
11375
11957
|
isAsync: true
|
|
@@ -11377,7 +11959,10 @@ var DELogic = class {
|
|
|
11377
11959
|
return;
|
|
11378
11960
|
}
|
|
11379
11961
|
if (!((_a = model.delogicNodes) == null ? void 0 : _a.length)) {
|
|
11380
|
-
throw new RuntimeModelError21(
|
|
11962
|
+
throw new RuntimeModelError21(
|
|
11963
|
+
model,
|
|
11964
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.noConfigurationLogicNode")
|
|
11965
|
+
);
|
|
11381
11966
|
}
|
|
11382
11967
|
model.delogicNodes.forEach((node) => {
|
|
11383
11968
|
const { logicNodeType } = node;
|
|
@@ -11420,7 +12005,12 @@ var DELogic = class {
|
|
|
11420
12005
|
logicNode = new SortParamNode(node);
|
|
11421
12006
|
break;
|
|
11422
12007
|
default:
|
|
11423
|
-
throw new ModelError13(
|
|
12008
|
+
throw new ModelError13(
|
|
12009
|
+
node,
|
|
12010
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.unsupportedLogical", {
|
|
12011
|
+
logicNodeType
|
|
12012
|
+
})
|
|
12013
|
+
);
|
|
11424
12014
|
}
|
|
11425
12015
|
this.nodes.set(node.id, logicNode);
|
|
11426
12016
|
});
|
|
@@ -11476,7 +12066,10 @@ var DELogic = class {
|
|
|
11476
12066
|
const start = this.nodes.get(startDELogicNodeId);
|
|
11477
12067
|
await this.deepExec(start, ctx);
|
|
11478
12068
|
} else {
|
|
11479
|
-
throw new RuntimeModelError21(
|
|
12069
|
+
throw new RuntimeModelError21(
|
|
12070
|
+
this.model,
|
|
12071
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.noSetStartNode")
|
|
12072
|
+
);
|
|
11480
12073
|
}
|
|
11481
12074
|
if (ctx.isEndNode) {
|
|
11482
12075
|
return ctx.result;
|
|
@@ -11523,12 +12116,18 @@ async function execDELogic(deDELogic, context, data = {}, params = {}) {
|
|
|
11523
12116
|
deLogicMap.set(deDELogic, new DELogic(deDELogic));
|
|
11524
12117
|
}
|
|
11525
12118
|
ibiz.log.debug(
|
|
11526
|
-
|
|
12119
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.startExecuting", {
|
|
12120
|
+
id: deDELogic.id,
|
|
12121
|
+
name: deDELogic.name
|
|
12122
|
+
})
|
|
11527
12123
|
);
|
|
11528
12124
|
const deLogic = deLogicMap.get(deDELogic);
|
|
11529
12125
|
const result = await deLogic.exec(context, data, params);
|
|
11530
12126
|
ibiz.log.debug(
|
|
11531
|
-
|
|
12127
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.endExecution", {
|
|
12128
|
+
id: deDELogic.id,
|
|
12129
|
+
name: deDELogic.name
|
|
12130
|
+
})
|
|
11532
12131
|
);
|
|
11533
12132
|
return result;
|
|
11534
12133
|
}
|
|
@@ -11539,7 +12138,12 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
11539
12138
|
context.srfappid
|
|
11540
12139
|
);
|
|
11541
12140
|
if (!deLogic) {
|
|
11542
|
-
throw new RuntimeError22(
|
|
12141
|
+
throw new RuntimeError22(
|
|
12142
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.noFoundEntityLogic", {
|
|
12143
|
+
dataEntityId,
|
|
12144
|
+
deDELogicId
|
|
12145
|
+
})
|
|
12146
|
+
);
|
|
11543
12147
|
}
|
|
11544
12148
|
return execDELogic(deLogic, context, data, params);
|
|
11545
12149
|
}
|
|
@@ -11609,7 +12213,10 @@ var DEActionMethod = class extends Method {
|
|
|
11609
12213
|
if (this.method.actionType === "DELOGIC") {
|
|
11610
12214
|
const deLogic = findDELogic(this.method.appDELogicId, this.entity);
|
|
11611
12215
|
if (!deLogic) {
|
|
11612
|
-
throw new RuntimeModelError22(
|
|
12216
|
+
throw new RuntimeModelError22(
|
|
12217
|
+
this.method,
|
|
12218
|
+
ibiz.i18n.t("runtime.service.lackEntityLogic")
|
|
12219
|
+
);
|
|
11613
12220
|
}
|
|
11614
12221
|
result = await execDELogicAction(deLogic, context, data, params);
|
|
11615
12222
|
} else {
|
|
@@ -11685,7 +12292,7 @@ var DEActionMethod = class extends Method {
|
|
|
11685
12292
|
*/
|
|
11686
12293
|
async create(context, data, params, header) {
|
|
11687
12294
|
if (!data) {
|
|
11688
|
-
throw new RuntimeError23("
|
|
12295
|
+
throw new RuntimeError23(ibiz.i18n.t("runtime.service.createBehavior"));
|
|
11689
12296
|
}
|
|
11690
12297
|
if (this.isLocalMode) {
|
|
11691
12298
|
return this.createTemp(context, this.createEntity(data));
|
|
@@ -11728,7 +12335,7 @@ var DEActionMethod = class extends Method {
|
|
|
11728
12335
|
*/
|
|
11729
12336
|
async update(context, data, params, header) {
|
|
11730
12337
|
if (!data) {
|
|
11731
|
-
throw new RuntimeError23("
|
|
12338
|
+
throw new RuntimeError23(ibiz.i18n.t("runtime.service.updateBehavior"));
|
|
11732
12339
|
}
|
|
11733
12340
|
if (this.isLocalMode) {
|
|
11734
12341
|
return this.updateTemp(context, this.createEntity(data));
|
|
@@ -11907,7 +12514,7 @@ var DEActionMethod = class extends Method {
|
|
|
11907
12514
|
if (config.rstype !== "DER1N") {
|
|
11908
12515
|
throw new RuntimeModelError22(
|
|
11909
12516
|
config,
|
|
11910
|
-
"
|
|
12517
|
+
ibiz.i18n.t("runtime.service.deletionDeletion")
|
|
11911
12518
|
);
|
|
11912
12519
|
}
|
|
11913
12520
|
const {
|
|
@@ -11951,7 +12558,12 @@ var DEActionMethod = class extends Method {
|
|
|
11951
12558
|
case 3:
|
|
11952
12559
|
if (items.length > 0) {
|
|
11953
12560
|
const msg = items.map((item) => item.srfmajortext).join("\u3001");
|
|
11954
|
-
const message =
|
|
12561
|
+
const message = ibiz.i18n.t("runtime.service.unableDelete", {
|
|
12562
|
+
logicName: this.entity.logicName,
|
|
12563
|
+
srfmajortext: data.srfmajortext,
|
|
12564
|
+
modelLogicName: minorService.model.logicName,
|
|
12565
|
+
msg
|
|
12566
|
+
});
|
|
11955
12567
|
throw new Error(removeRejectMsg || message);
|
|
11956
12568
|
}
|
|
11957
12569
|
break;
|
|
@@ -12120,7 +12732,9 @@ var FetchMethod = class extends Method {
|
|
|
12120
12732
|
default:
|
|
12121
12733
|
throw new ModelError14(
|
|
12122
12734
|
this.method,
|
|
12123
|
-
|
|
12735
|
+
ibiz.i18n.t("runtime.service.noSupportedDataSource", {
|
|
12736
|
+
dataSetType: this.method.dataSetType
|
|
12737
|
+
})
|
|
12124
12738
|
);
|
|
12125
12739
|
}
|
|
12126
12740
|
const items = res.data || [];
|
|
@@ -12194,7 +12808,10 @@ var FetchMethod = class extends Method {
|
|
|
12194
12808
|
async fetchCodeListSet(context, params) {
|
|
12195
12809
|
const { appCodeListId } = this.method;
|
|
12196
12810
|
if (!appCodeListId) {
|
|
12197
|
-
throw new RuntimeModelError23(
|
|
12811
|
+
throw new RuntimeModelError23(
|
|
12812
|
+
this.method,
|
|
12813
|
+
ibiz.i18n.t("runtime.service.sourceCodeTable")
|
|
12814
|
+
);
|
|
12198
12815
|
}
|
|
12199
12816
|
const codeItems = await this.app.codeList.get(
|
|
12200
12817
|
appCodeListId,
|
|
@@ -12488,10 +13105,13 @@ var UtilService = class {
|
|
|
12488
13105
|
return appDEService;
|
|
12489
13106
|
}
|
|
12490
13107
|
throw new Error(
|
|
12491
|
-
|
|
13108
|
+
ibiz.i18n.t("runtime.service.noFoundStorageEntity", {
|
|
13109
|
+
name,
|
|
13110
|
+
stoageAppDataEntityId
|
|
13111
|
+
})
|
|
12492
13112
|
);
|
|
12493
13113
|
}
|
|
12494
|
-
throw new Error("
|
|
13114
|
+
throw new Error(ibiz.i18n.t("runtime.service.noExist", { name }));
|
|
12495
13115
|
}
|
|
12496
13116
|
/**
|
|
12497
13117
|
* 加载指定数据
|
|
@@ -12559,7 +13179,9 @@ var UtilService = class {
|
|
|
12559
13179
|
stoageAppDataEntityId
|
|
12560
13180
|
} = this.appUtil;
|
|
12561
13181
|
if (!this.stoageAppDataEntity) {
|
|
12562
|
-
throw new Error(
|
|
13182
|
+
throw new Error(
|
|
13183
|
+
ibiz.i18n.t("runtime.service.noFoundEntity", { stoageAppDataEntityId })
|
|
13184
|
+
);
|
|
12563
13185
|
}
|
|
12564
13186
|
const tempContext = context.clone();
|
|
12565
13187
|
const tempData = {};
|
|
@@ -12786,7 +13408,10 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
12786
13408
|
const columnKey = column.detreeColumnId;
|
|
12787
13409
|
const dataItemKey = column.dataItemName;
|
|
12788
13410
|
if (!columnKey || !dataItemKey) {
|
|
12789
|
-
ibiz.log.error(
|
|
13411
|
+
ibiz.log.error(
|
|
13412
|
+
ibiz.i18n.t("runtime.service.missingDetreeColumnId"),
|
|
13413
|
+
column
|
|
13414
|
+
);
|
|
12790
13415
|
} else {
|
|
12791
13416
|
nodeColumnKeyMap.set(columnKey, dataItemKey);
|
|
12792
13417
|
}
|
|
@@ -12994,7 +13619,11 @@ var UIMapField = class {
|
|
|
12994
13619
|
if (DataTypes2.isNumber(this.dataType)) {
|
|
12995
13620
|
const numVal = !isNil16(value) && value !== "" ? Number(value) : value;
|
|
12996
13621
|
if (Number.isNaN(numVal)) {
|
|
12997
|
-
ibiz.log.debug(
|
|
13622
|
+
ibiz.log.debug(
|
|
13623
|
+
ibiz.i18n.t("runtime.service.convertedNumber", {
|
|
13624
|
+
value
|
|
13625
|
+
})
|
|
13626
|
+
);
|
|
12998
13627
|
return value;
|
|
12999
13628
|
}
|
|
13000
13629
|
return numVal;
|
|
@@ -13544,7 +14173,7 @@ var _DEServiceUtil = class _DEServiceUtil {
|
|
|
13544
14173
|
this.appModel.appId
|
|
13545
14174
|
);
|
|
13546
14175
|
if (!entityModel) {
|
|
13547
|
-
throw new RuntimeError24("
|
|
14176
|
+
throw new RuntimeError24(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
13548
14177
|
}
|
|
13549
14178
|
const constructor = _DEServiceUtil.constructorCache.get(id.toUpperCase());
|
|
13550
14179
|
let service;
|
|
@@ -13693,7 +14322,11 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
13693
14322
|
}
|
|
13694
14323
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
13695
14324
|
if (!appView) {
|
|
13696
|
-
throw new RuntimeError25(
|
|
14325
|
+
throw new RuntimeError25(
|
|
14326
|
+
ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
|
|
14327
|
+
appViewId
|
|
14328
|
+
})
|
|
14329
|
+
);
|
|
13697
14330
|
}
|
|
13698
14331
|
if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
|
|
13699
14332
|
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
@@ -13733,11 +14366,17 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
13733
14366
|
case "INDEXVIEWTAB_POPUPMODAL":
|
|
13734
14367
|
return this.openIndexViewTabByModal(appView, context, params);
|
|
13735
14368
|
case "POPUP":
|
|
13736
|
-
throw new ModelError15(
|
|
14369
|
+
throw new ModelError15(
|
|
14370
|
+
appView,
|
|
14371
|
+
ibiz.i18n.t("runtime.command.app.unsupportedPopup")
|
|
14372
|
+
);
|
|
13737
14373
|
case "POPUPMODAL":
|
|
13738
14374
|
return this.openModal(appView, context, params);
|
|
13739
14375
|
case "POPUPAPP":
|
|
13740
|
-
throw new ModelError15(
|
|
14376
|
+
throw new ModelError15(
|
|
14377
|
+
appView,
|
|
14378
|
+
ibiz.i18n.t("runtime.command.app.unsupportedPopupapp")
|
|
14379
|
+
);
|
|
13741
14380
|
case "POPOVER":
|
|
13742
14381
|
return this.openPopover(appView, context, params, opts);
|
|
13743
14382
|
case "DRAWER_LEFT":
|
|
@@ -13806,7 +14445,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
13806
14445
|
async openPopover(appView, context, params = {}, opts = {}) {
|
|
13807
14446
|
const { event, modalOption } = opts;
|
|
13808
14447
|
if (!event) {
|
|
13809
|
-
throw new RuntimeError25("
|
|
14448
|
+
throw new RuntimeError25(ibiz.i18n.t("runtime.command.app.missingEvent"));
|
|
13810
14449
|
}
|
|
13811
14450
|
return ibiz.openView.popover(appView.id, event, context, params, {
|
|
13812
14451
|
...modalOption
|
|
@@ -13865,7 +14504,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13865
14504
|
const appFunc = app.getAppFunc(appFuncId);
|
|
13866
14505
|
if (!appFunc) {
|
|
13867
14506
|
throw new RuntimeError26(
|
|
13868
|
-
ibiz.i18n.t("runtime.command.app.
|
|
14507
|
+
ibiz.i18n.t("runtime.command.app.noFindApplicationFunction", {
|
|
13869
14508
|
appFuncId
|
|
13870
14509
|
})
|
|
13871
14510
|
);
|
|
@@ -13889,7 +14528,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13889
14528
|
default:
|
|
13890
14529
|
throw new ModelError16(
|
|
13891
14530
|
appFunc,
|
|
13892
|
-
ibiz.i18n.t("runtime.command.app.
|
|
14531
|
+
ibiz.i18n.t("runtime.command.app.noFindApplicationFunctionYype", {
|
|
13893
14532
|
appFuncType
|
|
13894
14533
|
})
|
|
13895
14534
|
);
|
|
@@ -13909,7 +14548,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13909
14548
|
async openAppView(appFunc, context, params, opts) {
|
|
13910
14549
|
if (!appFunc.appViewId) {
|
|
13911
14550
|
throw new RuntimeError26(
|
|
13912
|
-
ibiz.i18n.t("runtime.command.app.
|
|
14551
|
+
ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
|
|
13913
14552
|
appViewId: appFunc.appViewId
|
|
13914
14553
|
})
|
|
13915
14554
|
);
|
|
@@ -14279,7 +14918,7 @@ var AppViewConfigService = class {
|
|
|
14279
14918
|
try {
|
|
14280
14919
|
modalOption = JSON.parse(optionProperty);
|
|
14281
14920
|
} catch (error) {
|
|
14282
|
-
ibiz.log.error("
|
|
14921
|
+
ibiz.log.error(ibiz.i18n.t("runtime.hub.failedParse", { error }));
|
|
14283
14922
|
}
|
|
14284
14923
|
}
|
|
14285
14924
|
return { modalOption };
|
|
@@ -14297,7 +14936,7 @@ var AppViewConfigService = class {
|
|
|
14297
14936
|
if (!this.viewConfigs.has(id)) {
|
|
14298
14937
|
const model = await ibiz.hub.getAppView(id);
|
|
14299
14938
|
if (!model) {
|
|
14300
|
-
throw new RuntimeError27("
|
|
14939
|
+
throw new RuntimeError27(ibiz.i18n.t("runtime.hub.noExist", { id }));
|
|
14301
14940
|
}
|
|
14302
14941
|
this.set(model.id, {
|
|
14303
14942
|
id: model.id,
|
|
@@ -15252,7 +15891,7 @@ function getDefaultValue(opts, origins) {
|
|
|
15252
15891
|
case "APPLICATION":
|
|
15253
15892
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
15254
15893
|
throw new RuntimeError31(
|
|
15255
|
-
ibiz.i18n.t("runtime.controller.utils.valueDefault.
|
|
15894
|
+
ibiz.i18n.t("runtime.controller.utils.valueDefault.noExist")
|
|
15256
15895
|
);
|
|
15257
15896
|
}
|
|
15258
15897
|
return ibiz.appData.context[defaultValue];
|
|
@@ -15263,7 +15902,7 @@ function getDefaultValue(opts, origins) {
|
|
|
15263
15902
|
default:
|
|
15264
15903
|
throw new ModelError17(
|
|
15265
15904
|
{},
|
|
15266
|
-
ibiz.i18n.t("runtime.controller.utils.valueDefault.
|
|
15905
|
+
ibiz.i18n.t("runtime.controller.utils.valueDefault.nosupported", {
|
|
15267
15906
|
valueType
|
|
15268
15907
|
})
|
|
15269
15908
|
);
|
|
@@ -15378,7 +16017,7 @@ async function importData2(opts) {
|
|
|
15378
16017
|
async function exportData(header, data, fileName) {
|
|
15379
16018
|
if (!ibiz.util.getExcelUtil) {
|
|
15380
16019
|
throw new RuntimeError32(
|
|
15381
|
-
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.
|
|
16020
|
+
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.noExist")
|
|
15382
16021
|
);
|
|
15383
16022
|
}
|
|
15384
16023
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
@@ -15697,7 +16336,10 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
15697
16336
|
static async fetchDataSet(msgModel, context, params) {
|
|
15698
16337
|
const { appDataEntityId, appDEDataSetId } = msgModel;
|
|
15699
16338
|
if (!appDEDataSetId) {
|
|
15700
|
-
throw new RuntimeModelError24(
|
|
16339
|
+
throw new RuntimeModelError24(
|
|
16340
|
+
msgModel,
|
|
16341
|
+
ibiz.i18n.t("runtime.controller.utils.viewMsg.unconfigured")
|
|
16342
|
+
);
|
|
15701
16343
|
}
|
|
15702
16344
|
const res = await ibiz.hub.getApp(context.srfappid).deService.exec(appDataEntityId, appDEDataSetId, context, params);
|
|
15703
16345
|
if (res.data.length) {
|
|
@@ -15907,7 +16549,10 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
15907
16549
|
layoutPanel
|
|
15908
16550
|
} = msgModel;
|
|
15909
16551
|
if (!appDataEntityId) {
|
|
15910
|
-
throw new RuntimeModelError24(
|
|
16552
|
+
throw new RuntimeModelError24(
|
|
16553
|
+
msgModel,
|
|
16554
|
+
ibiz.i18n.t("runtime.controller.utils.viewMsg.unconfiguredEntities")
|
|
16555
|
+
);
|
|
15911
16556
|
}
|
|
15912
16557
|
const entity = await ibiz.hub.getAppDataEntity(
|
|
15913
16558
|
appDataEntityId,
|
|
@@ -16318,7 +16963,7 @@ var ViewController = class extends BaseController {
|
|
|
16318
16963
|
this.engines.push(ins);
|
|
16319
16964
|
} else {
|
|
16320
16965
|
ibiz.log.warn(
|
|
16321
|
-
ibiz.i18n.t("runtime.controller.common.view.
|
|
16966
|
+
ibiz.i18n.t("runtime.controller.common.view.noFoundViewEngine"),
|
|
16322
16967
|
engine2
|
|
16323
16968
|
);
|
|
16324
16969
|
}
|
|
@@ -16372,6 +17017,7 @@ var ViewController = class extends BaseController {
|
|
|
16372
17017
|
this.state.viewMessages = {};
|
|
16373
17018
|
this.state.isClosing = false;
|
|
16374
17019
|
this.state.hasError = false;
|
|
17020
|
+
this.state.isShortCut = false;
|
|
16375
17021
|
}
|
|
16376
17022
|
async onCreated() {
|
|
16377
17023
|
await super.onCreated();
|
|
@@ -16425,6 +17071,21 @@ var ViewController = class extends BaseController {
|
|
|
16425
17071
|
await Promise.all(this.engines.map((engine2) => engine2.onMounted()));
|
|
16426
17072
|
}
|
|
16427
17073
|
(_a = this.scheduler) == null ? void 0 : _a.startTimerTrigger();
|
|
17074
|
+
await this.initShortCut();
|
|
17075
|
+
}
|
|
17076
|
+
/**
|
|
17077
|
+
* 初始化最小化状态
|
|
17078
|
+
*
|
|
17079
|
+
* @protected
|
|
17080
|
+
* @memberof ViewController
|
|
17081
|
+
*/
|
|
17082
|
+
async initShortCut() {
|
|
17083
|
+
const { model, context } = this;
|
|
17084
|
+
const key = await ibiz.util.shortCut.calcShortCutKey({
|
|
17085
|
+
context,
|
|
17086
|
+
appViewId: model.id
|
|
17087
|
+
});
|
|
17088
|
+
this.state.isShortCut = ibiz.util.shortCut.isExist(key);
|
|
16428
17089
|
}
|
|
16429
17090
|
async onDestroyed() {
|
|
16430
17091
|
const srfSessionId = this.context.srfsessionid;
|
|
@@ -16720,6 +17381,58 @@ var AppDataUploadViewController = class extends ViewController {
|
|
|
16720
17381
|
var MobViewController = class extends ViewController {
|
|
16721
17382
|
};
|
|
16722
17383
|
|
|
17384
|
+
// src/controller/common/view/app-login-view.controller.ts
|
|
17385
|
+
import { AsyncSeriesHook as AsyncSeriesHook2 } from "qx-util";
|
|
17386
|
+
var AppLoginViewController = class extends ViewController {
|
|
17387
|
+
constructor() {
|
|
17388
|
+
super(...arguments);
|
|
17389
|
+
/**
|
|
17390
|
+
* 钩子
|
|
17391
|
+
*
|
|
17392
|
+
* @memberof AppLoginViewController
|
|
17393
|
+
*/
|
|
17394
|
+
this.hooks = {
|
|
17395
|
+
beforeLogin: new AsyncSeriesHook2(),
|
|
17396
|
+
afterLogin: new AsyncSeriesHook2()
|
|
17397
|
+
};
|
|
17398
|
+
}
|
|
17399
|
+
/**
|
|
17400
|
+
* 校验登录视图
|
|
17401
|
+
*
|
|
17402
|
+
* @return {*} {Promise<boolean>}
|
|
17403
|
+
* @memberof AppLoginViewController
|
|
17404
|
+
*/
|
|
17405
|
+
async validate(parentId) {
|
|
17406
|
+
const context = {
|
|
17407
|
+
validate: true,
|
|
17408
|
+
parentId
|
|
17409
|
+
};
|
|
17410
|
+
await this.hooks.beforeLogin.call(context);
|
|
17411
|
+
return context.validate;
|
|
17412
|
+
}
|
|
17413
|
+
/**
|
|
17414
|
+
* 销毁Hooks钩子
|
|
17415
|
+
*
|
|
17416
|
+
* @protected
|
|
17417
|
+
* @memberof AppLoginViewController
|
|
17418
|
+
*/
|
|
17419
|
+
destroyHooks() {
|
|
17420
|
+
this.hooks.beforeLogin.clear();
|
|
17421
|
+
this.hooks.afterLogin.clear();
|
|
17422
|
+
}
|
|
17423
|
+
/**
|
|
17424
|
+
* 生命周期-销毁完成
|
|
17425
|
+
*
|
|
17426
|
+
* @protected
|
|
17427
|
+
* @return {*} {Promise<void>}
|
|
17428
|
+
* @memberof AppLoginViewController
|
|
17429
|
+
*/
|
|
17430
|
+
async onDestroyed() {
|
|
17431
|
+
await super.onDeactivated();
|
|
17432
|
+
this.destroyHooks();
|
|
17433
|
+
}
|
|
17434
|
+
};
|
|
17435
|
+
|
|
16723
17436
|
// src/controller/common/view/wf-step-trace-view.controller.ts
|
|
16724
17437
|
var WFStepTraceViewController = class extends ViewController {
|
|
16725
17438
|
initState() {
|
|
@@ -16965,7 +17678,7 @@ var CodeListEditorController = class extends EditorController {
|
|
|
16965
17678
|
}
|
|
16966
17679
|
throw new RuntimeModelError25(
|
|
16967
17680
|
this.model,
|
|
16968
|
-
ibiz.i18n.t("runtime.controller.common.editor.
|
|
17681
|
+
ibiz.i18n.t("runtime.controller.common.editor.editorNoConfigured", {
|
|
16969
17682
|
editorType: this.model.editorType
|
|
16970
17683
|
})
|
|
16971
17684
|
);
|
|
@@ -17990,7 +18703,7 @@ var AppMenuController = class extends ControlController {
|
|
|
17990
18703
|
});
|
|
17991
18704
|
if (!menuItem) {
|
|
17992
18705
|
throw new RuntimeError37(
|
|
17993
|
-
ibiz.i18n.t("runtime.controller.control.menu.
|
|
18706
|
+
ibiz.i18n.t("runtime.controller.control.menu.noFindMenu", { id })
|
|
17994
18707
|
);
|
|
17995
18708
|
}
|
|
17996
18709
|
this.evt.emit("onClick", {
|
|
@@ -18278,7 +18991,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
18278
18991
|
});
|
|
18279
18992
|
if (!menuItem) {
|
|
18280
18993
|
throw new RuntimeError38(
|
|
18281
|
-
ibiz.i18n.t("runtime.controller.control.menu.
|
|
18994
|
+
ibiz.i18n.t("runtime.controller.control.menu.noFindMenu", { id })
|
|
18282
18995
|
);
|
|
18283
18996
|
}
|
|
18284
18997
|
this.evt.emit("onClick", {
|
|
@@ -18368,13 +19081,13 @@ var CalendarService = class extends MDControlService {
|
|
|
18368
19081
|
const { sysCalendarItems } = this.model;
|
|
18369
19082
|
if (!sysCalendarItems) {
|
|
18370
19083
|
throw new RuntimeError39(
|
|
18371
|
-
ibiz.i18n.t("runtime.controller.control.calendar.
|
|
19084
|
+
ibiz.i18n.t("runtime.controller.control.calendar.noFoundModel")
|
|
18372
19085
|
);
|
|
18373
19086
|
}
|
|
18374
19087
|
const calendarItem = sysCalendarItems[index];
|
|
18375
19088
|
if (!calendarItem) {
|
|
18376
19089
|
throw new RuntimeError39(
|
|
18377
|
-
ibiz.i18n.t("runtime.controller.control.calendar.
|
|
19090
|
+
ibiz.i18n.t("runtime.controller.control.calendar.noFoundModel")
|
|
18378
19091
|
);
|
|
18379
19092
|
}
|
|
18380
19093
|
return items.map((item) => {
|
|
@@ -19154,13 +19867,13 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
19154
19867
|
if (this.xAxisIndex === void 0) {
|
|
19155
19868
|
throw new RuntimeModelError31(
|
|
19156
19869
|
this.model,
|
|
19157
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
19870
|
+
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
19158
19871
|
);
|
|
19159
19872
|
}
|
|
19160
19873
|
if (this.yAxisIndex === void 0) {
|
|
19161
19874
|
throw new RuntimeModelError31(
|
|
19162
19875
|
this.model,
|
|
19163
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
19876
|
+
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
19164
19877
|
);
|
|
19165
19878
|
}
|
|
19166
19879
|
const options = super.calcStaticOptions();
|
|
@@ -19183,13 +19896,13 @@ var BarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
19183
19896
|
if (this.xAxisIndex === void 0) {
|
|
19184
19897
|
throw new RuntimeModelError32(
|
|
19185
19898
|
this.model,
|
|
19186
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
19899
|
+
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
19187
19900
|
);
|
|
19188
19901
|
}
|
|
19189
19902
|
if (this.yAxisIndex === void 0) {
|
|
19190
19903
|
throw new RuntimeModelError32(
|
|
19191
19904
|
this.model,
|
|
19192
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
19905
|
+
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
19193
19906
|
);
|
|
19194
19907
|
}
|
|
19195
19908
|
const options = super.calcStaticOptions();
|
|
@@ -19249,13 +19962,13 @@ var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
19249
19962
|
if (this.xAxisIndex === void 0) {
|
|
19250
19963
|
throw new RuntimeModelError33(
|
|
19251
19964
|
this.model,
|
|
19252
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
19965
|
+
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
19253
19966
|
);
|
|
19254
19967
|
}
|
|
19255
19968
|
if (this.yAxisIndex === void 0) {
|
|
19256
19969
|
throw new RuntimeModelError33(
|
|
19257
19970
|
this.model,
|
|
19258
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
19971
|
+
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
19259
19972
|
);
|
|
19260
19973
|
}
|
|
19261
19974
|
const options = super.calcStaticOptions();
|
|
@@ -19515,7 +20228,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
19515
20228
|
break;
|
|
19516
20229
|
default:
|
|
19517
20230
|
ibiz.log.error(
|
|
19518
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
20231
|
+
ibiz.i18n.t("runtime.controller.control.chart.noSupportSequence", {
|
|
19519
20232
|
seriesType: series.seriesType
|
|
19520
20233
|
})
|
|
19521
20234
|
);
|
|
@@ -19717,7 +20430,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
19717
20430
|
const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
|
|
19718
20431
|
if (!generator) {
|
|
19719
20432
|
throw new RuntimeError40(
|
|
19720
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
20433
|
+
ibiz.i18n.t("runtime.controller.control.chart.noFindSequence", {
|
|
19721
20434
|
seriesIndex: params.seriesIndex
|
|
19722
20435
|
})
|
|
19723
20436
|
);
|
|
@@ -20001,12 +20714,12 @@ var ChartController = class extends MDControlController {
|
|
|
20001
20714
|
updateChart() {
|
|
20002
20715
|
if (!this.chart) {
|
|
20003
20716
|
throw new RuntimeError41(
|
|
20004
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
20717
|
+
ibiz.i18n.t("runtime.controller.control.chart.noInitialised")
|
|
20005
20718
|
);
|
|
20006
20719
|
}
|
|
20007
20720
|
if (!this.options) {
|
|
20008
20721
|
throw new RuntimeError41(
|
|
20009
|
-
ibiz.i18n.t("runtime.controller.control.chart.
|
|
20722
|
+
ibiz.i18n.t("runtime.controller.control.chart.noCalculated")
|
|
20010
20723
|
);
|
|
20011
20724
|
}
|
|
20012
20725
|
this.chart.setOption(this.options, { notMerge: true });
|
|
@@ -20270,7 +20983,12 @@ function handleSrcVal2(ctx, srcValParams) {
|
|
|
20270
20983
|
value = clone22(ibiz.env);
|
|
20271
20984
|
break;
|
|
20272
20985
|
default:
|
|
20273
|
-
throw new ModelError18(
|
|
20986
|
+
throw new ModelError18(
|
|
20987
|
+
srcValParams,
|
|
20988
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.sourceValueType", {
|
|
20989
|
+
srcValueType
|
|
20990
|
+
})
|
|
20991
|
+
);
|
|
20274
20992
|
}
|
|
20275
20993
|
if (value && srcField) {
|
|
20276
20994
|
try {
|
|
@@ -20287,7 +21005,12 @@ function handleSrcVal2(ctx, srcValParams) {
|
|
|
20287
21005
|
);
|
|
20288
21006
|
}
|
|
20289
21007
|
} catch (error) {
|
|
20290
|
-
ibiz.log.error(
|
|
21008
|
+
ibiz.log.error(
|
|
21009
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.fetchingAttribute", {
|
|
21010
|
+
srcField
|
|
21011
|
+
}),
|
|
21012
|
+
value
|
|
21013
|
+
);
|
|
20291
21014
|
throw error;
|
|
20292
21015
|
}
|
|
20293
21016
|
}
|
|
@@ -20336,7 +21059,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
20336
21059
|
if (!this.value) {
|
|
20337
21060
|
throw new RuntimeModelError34(
|
|
20338
21061
|
this.model,
|
|
20339
|
-
"
|
|
21062
|
+
ibiz.i18n.t("runtime.uiLogic.currentConditionValue")
|
|
20340
21063
|
);
|
|
20341
21064
|
}
|
|
20342
21065
|
const value = data[this.value] != null ? data[this.value] : context[this.value];
|
|
@@ -20348,7 +21071,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
20348
21071
|
if (!this.value) {
|
|
20349
21072
|
throw new RuntimeModelError34(
|
|
20350
21073
|
this.model,
|
|
20351
|
-
"
|
|
21074
|
+
ibiz.i18n.t("runtime.uiLogic.sourceDataObjectAttribute")
|
|
20352
21075
|
);
|
|
20353
21076
|
}
|
|
20354
21077
|
const srcVal = handleSrcVal2(ctx, {
|
|
@@ -20360,18 +21083,27 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
20360
21083
|
break;
|
|
20361
21084
|
}
|
|
20362
21085
|
case "CURTIME":
|
|
20363
|
-
throw new ModelError19(
|
|
21086
|
+
throw new ModelError19(
|
|
21087
|
+
this.model,
|
|
21088
|
+
ibiz.i18n.t("runtime.uiLogic.currentTime")
|
|
21089
|
+
);
|
|
20364
21090
|
default:
|
|
20365
21091
|
compareValue = this.value;
|
|
20366
21092
|
result = testCond(dstVal, this.op, this.value);
|
|
20367
21093
|
}
|
|
20368
21094
|
ibiz.log.debug(
|
|
20369
|
-
|
|
21095
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceConnectionConditionalTypeName", {
|
|
21096
|
+
name: this.model.name,
|
|
21097
|
+
type: this.type,
|
|
21098
|
+
dstField: this.dstField
|
|
21099
|
+
}),
|
|
20370
21100
|
dstVal,
|
|
20371
|
-
|
|
20372
|
-
|
|
21101
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.comparisonCondition", {
|
|
21102
|
+
op: this.op
|
|
21103
|
+
}),
|
|
21104
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.comparisonValue"),
|
|
20373
21105
|
compareValue,
|
|
20374
|
-
"
|
|
21106
|
+
ibiz.i18n.t("runtime.deLogic.deLogicLink.compareResults"),
|
|
20375
21107
|
result
|
|
20376
21108
|
);
|
|
20377
21109
|
return result;
|
|
@@ -20423,9 +21155,12 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
20423
21155
|
* @return {*} {boolean}
|
|
20424
21156
|
*/
|
|
20425
21157
|
test(ctx, context, data) {
|
|
20426
|
-
let bol =
|
|
21158
|
+
let bol = this.op !== "OR";
|
|
20427
21159
|
if (this.conds.length === 0) {
|
|
20428
|
-
throw new RuntimeModelError35(
|
|
21160
|
+
throw new RuntimeModelError35(
|
|
21161
|
+
this.model,
|
|
21162
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceConnectionConditional")
|
|
21163
|
+
);
|
|
20429
21164
|
}
|
|
20430
21165
|
for (let i = 0; i < this.conds.length; i++) {
|
|
20431
21166
|
const cond = this.conds[i];
|
|
@@ -20441,7 +21176,10 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
20441
21176
|
}
|
|
20442
21177
|
const result = this.notMode ? !bol : bol;
|
|
20443
21178
|
ibiz.log.debug(
|
|
20444
|
-
|
|
21179
|
+
ibiz.i18n.t("runtime.uiLogic.connectionConditionGroup", {
|
|
21180
|
+
name: this.model.name,
|
|
21181
|
+
id: this.model.id
|
|
21182
|
+
}),
|
|
20445
21183
|
result
|
|
20446
21184
|
);
|
|
20447
21185
|
return result;
|
|
@@ -20518,13 +21256,25 @@ var UILogicLink = class {
|
|
|
20518
21256
|
case 1:
|
|
20519
21257
|
return true;
|
|
20520
21258
|
case 2:
|
|
20521
|
-
throw new ModelError20(
|
|
21259
|
+
throw new ModelError20(
|
|
21260
|
+
this.model,
|
|
21261
|
+
ibiz.i18n.t("runtime.uiLogic.asynchronousTermination")
|
|
21262
|
+
);
|
|
20522
21263
|
case 3:
|
|
20523
|
-
throw new ModelError20(
|
|
21264
|
+
throw new ModelError20(
|
|
21265
|
+
this.model,
|
|
21266
|
+
ibiz.i18n.t("runtime.uiLogic.asynchronousRejection")
|
|
21267
|
+
);
|
|
20524
21268
|
case 9:
|
|
20525
|
-
throw new ModelError20(
|
|
21269
|
+
throw new ModelError20(
|
|
21270
|
+
this.model,
|
|
21271
|
+
ibiz.i18n.t("runtime.uiLogic.exceptionHandling")
|
|
21272
|
+
);
|
|
20526
21273
|
default:
|
|
20527
|
-
throw new ModelError20(
|
|
21274
|
+
throw new ModelError20(
|
|
21275
|
+
this.model,
|
|
21276
|
+
ibiz.i18n.t("runtime.uiLogic.logicalLinkTypes", { linkMode })
|
|
21277
|
+
);
|
|
20528
21278
|
}
|
|
20529
21279
|
}
|
|
20530
21280
|
};
|
|
@@ -20556,10 +21306,16 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
20556
21306
|
retDEUILogicParamId
|
|
20557
21307
|
} = this.model;
|
|
20558
21308
|
if (!dstAppDataEntityId) {
|
|
20559
|
-
throw new RuntimeModelError36(
|
|
21309
|
+
throw new RuntimeModelError36(
|
|
21310
|
+
this.model,
|
|
21311
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedEntity")
|
|
21312
|
+
);
|
|
20560
21313
|
}
|
|
20561
21314
|
if (!dstAppDEActionId) {
|
|
20562
|
-
throw new RuntimeModelError36(
|
|
21315
|
+
throw new RuntimeModelError36(
|
|
21316
|
+
this.model,
|
|
21317
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedBehavior")
|
|
21318
|
+
);
|
|
20563
21319
|
}
|
|
20564
21320
|
const requestData = ctx.params[dstDEUILogicParamId];
|
|
20565
21321
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -20575,7 +21331,12 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
20575
21331
|
ctx.setLastReturn(ctx.params[retDEUILogicParamId]);
|
|
20576
21332
|
}
|
|
20577
21333
|
ibiz.log.debug(
|
|
20578
|
-
|
|
21334
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeEntityActions", {
|
|
21335
|
+
id: this.model.id,
|
|
21336
|
+
dstAppDataEntityId,
|
|
21337
|
+
dstAppDEActionId,
|
|
21338
|
+
retDEUILogicParamId
|
|
21339
|
+
}),
|
|
20579
21340
|
ctx.params[retDEUILogicParamId]
|
|
20580
21341
|
);
|
|
20581
21342
|
}
|
|
@@ -20588,7 +21349,10 @@ var DEUIActionNode = class extends UILogicNode {
|
|
|
20588
21349
|
const { dstAppDEUIActionId, dstDEUILogicParamId, dstAppDataEntityId } = this.model;
|
|
20589
21350
|
const { data, parameters } = ctx;
|
|
20590
21351
|
if (!dstAppDEUIActionId) {
|
|
20591
|
-
throw new RuntimeModelError37(
|
|
21352
|
+
throw new RuntimeModelError37(
|
|
21353
|
+
this.model,
|
|
21354
|
+
ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceBehavior")
|
|
21355
|
+
);
|
|
20592
21356
|
}
|
|
20593
21357
|
let actionData = [data];
|
|
20594
21358
|
if (dstDEUILogicParamId) {
|
|
@@ -20600,7 +21364,12 @@ var DEUIActionNode = class extends UILogicNode {
|
|
|
20600
21364
|
}
|
|
20601
21365
|
}
|
|
20602
21366
|
ibiz.log.debug(
|
|
20603
|
-
|
|
21367
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeEntityInterfaceAction", {
|
|
21368
|
+
id: this.model.id,
|
|
21369
|
+
dstAppDEUIActionId,
|
|
21370
|
+
dstAppDataEntityId,
|
|
21371
|
+
dstDEUILogicParamId
|
|
21372
|
+
})
|
|
20604
21373
|
);
|
|
20605
21374
|
await UIActionUtil.execAndResolved(
|
|
20606
21375
|
dstAppDEUIActionId,
|
|
@@ -20618,7 +21387,11 @@ var DEUIActionNode = class extends UILogicNode {
|
|
|
20618
21387
|
// src/ui-logic/ui-logic-node/start-node/start-node.ts
|
|
20619
21388
|
var StartNode2 = class extends UILogicNode {
|
|
20620
21389
|
async exec(_ctx) {
|
|
20621
|
-
ibiz.log.debug(
|
|
21390
|
+
ibiz.log.debug(
|
|
21391
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeStartupNode", {
|
|
21392
|
+
id: this.model.id
|
|
21393
|
+
})
|
|
21394
|
+
);
|
|
20622
21395
|
}
|
|
20623
21396
|
};
|
|
20624
21397
|
|
|
@@ -20649,11 +21422,14 @@ var EndNode2 = class extends UILogicNode {
|
|
|
20649
21422
|
default:
|
|
20650
21423
|
throw new ModelError21(
|
|
20651
21424
|
this.model,
|
|
20652
|
-
"
|
|
21425
|
+
ibiz.i18n.t("runtime.uiLogic.unsupportedEndNode", { returnType })
|
|
20653
21426
|
);
|
|
20654
21427
|
}
|
|
20655
21428
|
ibiz.log.debug(
|
|
20656
|
-
|
|
21429
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeEndNode", {
|
|
21430
|
+
id: this.model.id,
|
|
21431
|
+
returnType
|
|
21432
|
+
}),
|
|
20657
21433
|
ctx.result
|
|
20658
21434
|
);
|
|
20659
21435
|
}
|
|
@@ -20698,13 +21474,19 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
20698
21474
|
default:
|
|
20699
21475
|
throw new ModelError22(
|
|
20700
21476
|
nodeParam,
|
|
20701
|
-
|
|
21477
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.noSupportedLogic", {
|
|
21478
|
+
paramAction: nodeParam.paramAction
|
|
21479
|
+
})
|
|
20702
21480
|
);
|
|
20703
21481
|
}
|
|
20704
21482
|
ibiz.log.debug(
|
|
20705
|
-
|
|
21483
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodePreparationParameter", {
|
|
21484
|
+
id: this.model.id,
|
|
21485
|
+
paramAction: nodeParam.paramAction,
|
|
21486
|
+
dstDEUILogicParamId: nodeParam.dstDEUILogicParamId
|
|
21487
|
+
}),
|
|
20706
21488
|
originValue,
|
|
20707
|
-
"
|
|
21489
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.targetParameter"),
|
|
20708
21490
|
ctx.params[nodeParam.dstDEUILogicParamId]
|
|
20709
21491
|
);
|
|
20710
21492
|
}
|
|
@@ -20720,7 +21502,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
20720
21502
|
setParamValue(nodeParam, ctx) {
|
|
20721
21503
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
20722
21504
|
if (!dstDEUILogicParamId) {
|
|
20723
|
-
throw new RuntimeError42("
|
|
21505
|
+
throw new RuntimeError42(ibiz.i18n.t("runtime.uiLogic.noTargetParameter"));
|
|
20724
21506
|
}
|
|
20725
21507
|
let dstField = dstFieldName;
|
|
20726
21508
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -20739,7 +21521,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
20739
21521
|
);
|
|
20740
21522
|
} catch (error) {
|
|
20741
21523
|
ibiz.log.error(
|
|
20742
|
-
"
|
|
21524
|
+
ibiz.i18n.t("runtime.uiLogic.targetParameter", { dstFieldName }),
|
|
20743
21525
|
ctx.params[dstDEUILogicParamId]
|
|
20744
21526
|
);
|
|
20745
21527
|
throw error;
|
|
@@ -20844,27 +21626,52 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
20844
21626
|
ctx.isEndNode = true;
|
|
20845
21627
|
const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
|
|
20846
21628
|
if (!invokeCtrlId) {
|
|
20847
|
-
throw new RuntimeModelError38(
|
|
21629
|
+
throw new RuntimeModelError38(
|
|
21630
|
+
this.model,
|
|
21631
|
+
ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceObject")
|
|
21632
|
+
);
|
|
20848
21633
|
}
|
|
20849
21634
|
if (!invokeParamId) {
|
|
20850
|
-
throw new RuntimeModelError38(
|
|
21635
|
+
throw new RuntimeModelError38(
|
|
21636
|
+
this.model,
|
|
21637
|
+
ibiz.i18n.t("runtime.uiLogic.noConfiguredOperatingParameters")
|
|
21638
|
+
);
|
|
20851
21639
|
}
|
|
20852
21640
|
if (!invokeMethod) {
|
|
20853
|
-
throw new RuntimeModelError38(
|
|
21641
|
+
throw new RuntimeModelError38(
|
|
21642
|
+
this.model,
|
|
21643
|
+
ibiz.i18n.t("runtime.uiLogic.noConfiguredCallMethod")
|
|
21644
|
+
);
|
|
20854
21645
|
}
|
|
20855
21646
|
const invokeParam = ctx.params[invokeParamId];
|
|
20856
21647
|
if (!invokeParam) {
|
|
20857
|
-
throw new RuntimeError43(
|
|
21648
|
+
throw new RuntimeError43(
|
|
21649
|
+
ibiz.i18n.t("runtime.uiLogic.noFoundOperationParameter", {
|
|
21650
|
+
invokeParamId
|
|
21651
|
+
})
|
|
21652
|
+
);
|
|
20858
21653
|
}
|
|
20859
21654
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
20860
21655
|
if (!invokeCtrl) {
|
|
20861
|
-
throw new RuntimeError43(
|
|
21656
|
+
throw new RuntimeError43(
|
|
21657
|
+
ibiz.i18n.t("runtime.uiLogic.noFoundInterfaceObject", {
|
|
21658
|
+
invokeCtrlId
|
|
21659
|
+
})
|
|
21660
|
+
);
|
|
20862
21661
|
}
|
|
20863
21662
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
20864
|
-
throw new RuntimeError43(
|
|
21663
|
+
throw new RuntimeError43(
|
|
21664
|
+
ibiz.i18n.t("runtime.uiLogic.noFoundInvokeMethod", {
|
|
21665
|
+
invokeMethod
|
|
21666
|
+
})
|
|
21667
|
+
);
|
|
20865
21668
|
}
|
|
20866
21669
|
ibiz.log.debug(
|
|
20867
|
-
|
|
21670
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeViewWidgetInvocation", {
|
|
21671
|
+
id: this.model.id,
|
|
21672
|
+
invokeCtrlId,
|
|
21673
|
+
invokeMethod
|
|
21674
|
+
}),
|
|
20868
21675
|
invokeParam
|
|
20869
21676
|
);
|
|
20870
21677
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
@@ -20879,14 +21686,17 @@ var BindParamNode2 = class extends UILogicNode {
|
|
|
20879
21686
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
20880
21687
|
throw new RuntimeModelError39(
|
|
20881
21688
|
this.model,
|
|
20882
|
-
"
|
|
21689
|
+
ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
|
|
20883
21690
|
);
|
|
20884
21691
|
}
|
|
20885
21692
|
const srcVal = handleSrcVal2(ctx, this.model);
|
|
20886
21693
|
ctx.params[dstDEUILogicParamId] = srcVal;
|
|
20887
21694
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
20888
21695
|
ibiz.log.debug(
|
|
20889
|
-
|
|
21696
|
+
ibiz.i18n.t("runtime.uiLogic.bindingParameters", {
|
|
21697
|
+
id: this.model.id,
|
|
21698
|
+
dstDEUILogicParamId
|
|
21699
|
+
}),
|
|
20890
21700
|
srcVal
|
|
20891
21701
|
);
|
|
20892
21702
|
}
|
|
@@ -20907,10 +21717,16 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
20907
21717
|
async exec(ctx) {
|
|
20908
21718
|
const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
|
|
20909
21719
|
if (!msgBoxType) {
|
|
20910
|
-
throw new RuntimeModelError40(
|
|
21720
|
+
throw new RuntimeModelError40(
|
|
21721
|
+
this.model,
|
|
21722
|
+
ibiz.i18n.t("runtime.uiLogic.missingMessageTypeConfiguration")
|
|
21723
|
+
);
|
|
20911
21724
|
}
|
|
20912
21725
|
if (!buttonsType) {
|
|
20913
|
-
throw new RuntimeModelError40(
|
|
21726
|
+
throw new RuntimeModelError40(
|
|
21727
|
+
this.model,
|
|
21728
|
+
ibiz.i18n.t("runtime.uiLogic.missingButtonTypeConfiguration")
|
|
21729
|
+
);
|
|
20914
21730
|
}
|
|
20915
21731
|
let { title, message } = this.model;
|
|
20916
21732
|
if (msgBoxParamId) {
|
|
@@ -20925,36 +21741,45 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
20925
21741
|
const type = this.typeMap[msgBoxType];
|
|
20926
21742
|
const modalParams = {
|
|
20927
21743
|
type,
|
|
20928
|
-
title: title || "
|
|
21744
|
+
title: title || ibiz.i18n.t("runtime.uiLogic.message"),
|
|
20929
21745
|
desc: message
|
|
20930
21746
|
};
|
|
20931
21747
|
let resultTags = [];
|
|
20932
21748
|
switch (buttonsType) {
|
|
20933
21749
|
case "YESNO":
|
|
20934
|
-
modalParams.confirmButtonText = "
|
|
20935
|
-
modalParams.cancelButtonText = "
|
|
21750
|
+
modalParams.confirmButtonText = ibiz.i18n.t("runtime.uiLogic.yes");
|
|
21751
|
+
modalParams.cancelButtonText = ibiz.i18n.t("runtime.uiLogic.no");
|
|
20936
21752
|
modalParams.showConfirmButton = true;
|
|
20937
21753
|
modalParams.showCancelButton = true;
|
|
20938
21754
|
resultTags = ["yes", "no"];
|
|
20939
21755
|
break;
|
|
20940
21756
|
case "OK":
|
|
20941
|
-
modalParams.confirmButtonText = "
|
|
21757
|
+
modalParams.confirmButtonText = ibiz.i18n.t("control.common.determine");
|
|
20942
21758
|
modalParams.showConfirmButton = true;
|
|
20943
21759
|
modalParams.showCancelButton = false;
|
|
20944
21760
|
resultTags = ["ok"];
|
|
20945
21761
|
break;
|
|
20946
21762
|
case "OKCANCEL":
|
|
20947
|
-
modalParams.confirmButtonText = "
|
|
20948
|
-
modalParams.cancelButtonText = "
|
|
21763
|
+
modalParams.confirmButtonText = ibiz.i18n.t("control.common.determine");
|
|
21764
|
+
modalParams.cancelButtonText = ibiz.i18n.t("app.cancel");
|
|
20949
21765
|
modalParams.showConfirmButton = true;
|
|
20950
21766
|
modalParams.showCancelButton = true;
|
|
20951
21767
|
resultTags = ["ok", "cancel"];
|
|
20952
21768
|
break;
|
|
20953
21769
|
default:
|
|
20954
|
-
throw new ModelError23(
|
|
21770
|
+
throw new ModelError23(
|
|
21771
|
+
this.model,
|
|
21772
|
+
ibiz.i18n.t("control.common.noSupportItem", {
|
|
21773
|
+
name: buttonsType
|
|
21774
|
+
})
|
|
21775
|
+
);
|
|
20955
21776
|
}
|
|
20956
21777
|
ibiz.log.debug(
|
|
20957
|
-
|
|
21778
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeMessagePopup", {
|
|
21779
|
+
id: this.model.id,
|
|
21780
|
+
type,
|
|
21781
|
+
message
|
|
21782
|
+
})
|
|
20958
21783
|
);
|
|
20959
21784
|
const result = await ibiz.modal.confirm(modalParams);
|
|
20960
21785
|
ctx.setLastReturn(resultTags[result ? 0 : 1]);
|
|
@@ -20965,7 +21790,10 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
20965
21790
|
var PFPluginNode = class extends UILogicNode {
|
|
20966
21791
|
async exec(ctx) {
|
|
20967
21792
|
ibiz.log.debug(
|
|
20968
|
-
|
|
21793
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeFrontendPlugin", {
|
|
21794
|
+
id: this.model.id,
|
|
21795
|
+
sysPFPluginId: this.model.sysPFPluginId
|
|
21796
|
+
})
|
|
20969
21797
|
);
|
|
20970
21798
|
const provider = await getUILogicNodeProvider(this.model);
|
|
20971
21799
|
if (provider) {
|
|
@@ -20980,10 +21808,16 @@ var DebugParamNode = class extends UILogicNode {
|
|
|
20980
21808
|
async exec(ctx) {
|
|
20981
21809
|
const { dstDEUILogicParamId, name } = this.model;
|
|
20982
21810
|
if (!dstDEUILogicParamId) {
|
|
20983
|
-
throw new RuntimeModelError41(
|
|
21811
|
+
throw new RuntimeModelError41(
|
|
21812
|
+
this.model,
|
|
21813
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
21814
|
+
);
|
|
20984
21815
|
}
|
|
20985
21816
|
const param = ctx.params[dstDEUILogicParamId];
|
|
20986
|
-
ibiz.log.info(
|
|
21817
|
+
ibiz.log.info(
|
|
21818
|
+
ibiz.i18n.t("runtime.uiLogic.logicalNodeOperation", { name }),
|
|
21819
|
+
param
|
|
21820
|
+
);
|
|
20987
21821
|
}
|
|
20988
21822
|
};
|
|
20989
21823
|
|
|
@@ -20993,12 +21827,18 @@ var ResetParamNode2 = class extends UILogicNode {
|
|
|
20993
21827
|
async exec(ctx) {
|
|
20994
21828
|
const { dstDEUILogicParamId } = this.model;
|
|
20995
21829
|
if (!dstDEUILogicParamId) {
|
|
20996
|
-
throw new RuntimeModelError42(
|
|
21830
|
+
throw new RuntimeModelError42(
|
|
21831
|
+
this.model,
|
|
21832
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
21833
|
+
);
|
|
20997
21834
|
}
|
|
20998
21835
|
ctx.resetParam(dstDEUILogicParamId);
|
|
20999
21836
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
21000
21837
|
ibiz.log.debug(
|
|
21001
|
-
|
|
21838
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeResetParameter", {
|
|
21839
|
+
id: this.model.id,
|
|
21840
|
+
dstDEUILogicParamId
|
|
21841
|
+
})
|
|
21002
21842
|
);
|
|
21003
21843
|
}
|
|
21004
21844
|
};
|
|
@@ -21012,14 +21852,17 @@ var CopyParamNode2 = class extends UILogicNode {
|
|
|
21012
21852
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
21013
21853
|
throw new RuntimeModelError43(
|
|
21014
21854
|
this.model,
|
|
21015
|
-
"
|
|
21855
|
+
ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
|
|
21016
21856
|
);
|
|
21017
21857
|
}
|
|
21018
21858
|
const srcVal = handleSrcVal2(ctx, this.model);
|
|
21019
21859
|
ctx.params[dstDEUILogicParamId] = clone24(srcVal);
|
|
21020
21860
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
21021
21861
|
ibiz.log.debug(
|
|
21022
|
-
|
|
21862
|
+
ibiz.i18n.t("runtime.uiLogic.copyParameter", {
|
|
21863
|
+
id: this.model.id,
|
|
21864
|
+
dstDEUILogicParamId
|
|
21865
|
+
}),
|
|
21023
21866
|
srcVal
|
|
21024
21867
|
);
|
|
21025
21868
|
}
|
|
@@ -21039,7 +21882,7 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
21039
21882
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
21040
21883
|
throw new RuntimeModelError44(
|
|
21041
21884
|
this.model,
|
|
21042
|
-
"
|
|
21885
|
+
ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
|
|
21043
21886
|
);
|
|
21044
21887
|
}
|
|
21045
21888
|
const srcVal = handleSrcVal2(ctx, this.model);
|
|
@@ -21053,9 +21896,9 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
21053
21896
|
);
|
|
21054
21897
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
21055
21898
|
ibiz.log.debug(
|
|
21056
|
-
"
|
|
21899
|
+
ibiz.i18n.t("runtime.uiLogic.appendedArray", { id: this.model.id }),
|
|
21057
21900
|
ctx.params,
|
|
21058
|
-
"
|
|
21901
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.addedValue"),
|
|
21059
21902
|
srcVal.slice(_srcIndex, _srcSize)
|
|
21060
21903
|
);
|
|
21061
21904
|
}
|
|
@@ -21067,7 +21910,10 @@ var SortParamNode2 = class extends UILogicNode {
|
|
|
21067
21910
|
async exec(ctx) {
|
|
21068
21911
|
const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
|
|
21069
21912
|
if (!dstDEUILogicParamId || !dstFieldName) {
|
|
21070
|
-
throw new RuntimeModelError45(
|
|
21913
|
+
throw new RuntimeModelError45(
|
|
21914
|
+
this.model,
|
|
21915
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingParameterProperty")
|
|
21916
|
+
);
|
|
21071
21917
|
}
|
|
21072
21918
|
const key = dstFieldName;
|
|
21073
21919
|
const arr = ctx.params[dstDEUILogicParamId];
|
|
@@ -21076,7 +21922,12 @@ var SortParamNode2 = class extends UILogicNode {
|
|
|
21076
21922
|
});
|
|
21077
21923
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
21078
21924
|
ibiz.log.debug(
|
|
21079
|
-
|
|
21925
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeSortedArrayParameters", {
|
|
21926
|
+
id: this.model.id,
|
|
21927
|
+
dstFieldName,
|
|
21928
|
+
dstSortDir,
|
|
21929
|
+
dstDEUILogicParamId
|
|
21930
|
+
}),
|
|
21080
21931
|
arr
|
|
21081
21932
|
);
|
|
21082
21933
|
}
|
|
@@ -21088,12 +21939,18 @@ var RenewParamNode2 = class extends UILogicNode {
|
|
|
21088
21939
|
async exec(ctx) {
|
|
21089
21940
|
const { dstDEUILogicParamId } = this.model;
|
|
21090
21941
|
if (!dstDEUILogicParamId) {
|
|
21091
|
-
throw new RuntimeModelError46(
|
|
21942
|
+
throw new RuntimeModelError46(
|
|
21943
|
+
this.model,
|
|
21944
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
21945
|
+
);
|
|
21092
21946
|
}
|
|
21093
21947
|
ctx.renewParam(dstDEUILogicParamId);
|
|
21094
21948
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
21095
21949
|
ibiz.log.debug(
|
|
21096
|
-
|
|
21950
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeRebuildParameter", {
|
|
21951
|
+
id: this.model.id,
|
|
21952
|
+
dstDEUILogicParamId
|
|
21953
|
+
})
|
|
21097
21954
|
);
|
|
21098
21955
|
}
|
|
21099
21956
|
};
|
|
@@ -21109,7 +21966,10 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
21109
21966
|
retDEUILogicParamId
|
|
21110
21967
|
} = this.model;
|
|
21111
21968
|
if (!dstDEUILogicParamId) {
|
|
21112
|
-
throw new RuntimeModelError47(
|
|
21969
|
+
throw new RuntimeModelError47(
|
|
21970
|
+
this.model,
|
|
21971
|
+
ibiz.i18n.t("runtime.uiLogic.missingfilter")
|
|
21972
|
+
);
|
|
21113
21973
|
}
|
|
21114
21974
|
const queryParams = ctx.params[dstDEUILogicParamId];
|
|
21115
21975
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -21124,7 +21984,12 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
21124
21984
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
21125
21985
|
}
|
|
21126
21986
|
ibiz.log.debug(
|
|
21127
|
-
|
|
21987
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeDataSet", {
|
|
21988
|
+
id: this.model.id,
|
|
21989
|
+
dstAppDataEntityId,
|
|
21990
|
+
dstAppDEDataSetId,
|
|
21991
|
+
retDEUILogicParamId
|
|
21992
|
+
}),
|
|
21128
21993
|
ctx.params[retDEUILogicParamId]
|
|
21129
21994
|
);
|
|
21130
21995
|
}
|
|
@@ -21136,7 +22001,10 @@ var ThrowExceptionNode2 = class extends UILogicNode {
|
|
|
21136
22001
|
async exec(_ctx) {
|
|
21137
22002
|
const { errorInfo } = this.model;
|
|
21138
22003
|
ibiz.log.debug(
|
|
21139
|
-
|
|
22004
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeThrowingExceptions", {
|
|
22005
|
+
id: this.model.id,
|
|
22006
|
+
errorInfo
|
|
22007
|
+
})
|
|
21140
22008
|
);
|
|
21141
22009
|
throw new RuntimeError44(errorInfo);
|
|
21142
22010
|
}
|
|
@@ -21149,24 +22017,46 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
21149
22017
|
ctx.isEndNode = true;
|
|
21150
22018
|
const { eventName, eventParamId, fireCtrlId } = this.model;
|
|
21151
22019
|
if (!fireCtrlId) {
|
|
21152
|
-
throw new RuntimeModelError48(
|
|
22020
|
+
throw new RuntimeModelError48(
|
|
22021
|
+
this.model,
|
|
22022
|
+
ibiz.i18n.t("runtime.uiLogic.noConfiguredTriggerObject")
|
|
22023
|
+
);
|
|
21153
22024
|
}
|
|
21154
22025
|
if (!eventName) {
|
|
21155
|
-
throw new RuntimeModelError48(
|
|
22026
|
+
throw new RuntimeModelError48(
|
|
22027
|
+
this.model,
|
|
22028
|
+
ibiz.i18n.t("runtime.uiLogic.noConfiguredEvent")
|
|
22029
|
+
);
|
|
21156
22030
|
}
|
|
21157
22031
|
if (!eventParamId) {
|
|
21158
|
-
throw new RuntimeModelError48(
|
|
22032
|
+
throw new RuntimeModelError48(
|
|
22033
|
+
this.model,
|
|
22034
|
+
ibiz.i18n.t("runtime.uiLogic.noConfiguredEventParameters")
|
|
22035
|
+
);
|
|
21159
22036
|
}
|
|
21160
22037
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
21161
22038
|
if (!invokeCtrl) {
|
|
21162
|
-
throw new RuntimeError45(
|
|
22039
|
+
throw new RuntimeError45(
|
|
22040
|
+
ibiz.i18n.t("runtime.uiLogic.noFoundTriggerObject", { fireCtrlId })
|
|
22041
|
+
);
|
|
21163
22042
|
}
|
|
21164
22043
|
const eventParam = ctx.params[eventParamId];
|
|
21165
22044
|
if (!eventParam) {
|
|
21166
|
-
throw new RuntimeError45(
|
|
22045
|
+
throw new RuntimeError45(
|
|
22046
|
+
ibiz.i18n.t("runtime.uiLogic.noFoundEventParameterObject", {
|
|
22047
|
+
eventParamId
|
|
22048
|
+
})
|
|
22049
|
+
);
|
|
21167
22050
|
}
|
|
21168
22051
|
ibiz.log.debug(
|
|
21169
|
-
|
|
22052
|
+
ibiz.i18n.t(
|
|
22053
|
+
"runtime.uiLogic.interfaceLogicNodeViewWidgetEventTriggerLogic",
|
|
22054
|
+
{
|
|
22055
|
+
id: this.model.id,
|
|
22056
|
+
fireCtrlId,
|
|
22057
|
+
eventName
|
|
22058
|
+
}
|
|
22059
|
+
),
|
|
21170
22060
|
eventParam
|
|
21171
22061
|
);
|
|
21172
22062
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
@@ -21184,17 +22074,28 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
21184
22074
|
retDEUILogicParamId
|
|
21185
22075
|
} = this.model;
|
|
21186
22076
|
if (!dstAppDataEntityId) {
|
|
21187
|
-
throw new RuntimeModelError49(
|
|
22077
|
+
throw new RuntimeModelError49(
|
|
22078
|
+
this.model,
|
|
22079
|
+
ibiz.i18n.t("runtime.uiLogic.noEntityConfigured")
|
|
22080
|
+
);
|
|
21188
22081
|
}
|
|
21189
22082
|
if (!dstAppDELogicId) {
|
|
21190
|
-
throw new RuntimeModelError49(
|
|
22083
|
+
throw new RuntimeModelError49(
|
|
22084
|
+
this.model,
|
|
22085
|
+
ibiz.i18n.t("runtime.uiLogic.noEntityLogicConfigured")
|
|
22086
|
+
);
|
|
21191
22087
|
}
|
|
21192
22088
|
if (!dstDEUILogicParamId) {
|
|
21193
|
-
throw new RuntimeModelError49(
|
|
22089
|
+
throw new RuntimeModelError49(
|
|
22090
|
+
this.model,
|
|
22091
|
+
ibiz.i18n.t("runtime.uiLogic.noIncomingLogic")
|
|
22092
|
+
);
|
|
21194
22093
|
}
|
|
21195
22094
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
21196
22095
|
if (!dstParam) {
|
|
21197
|
-
throw new RuntimeError46(
|
|
22096
|
+
throw new RuntimeError46(
|
|
22097
|
+
ibiz.i18n.t("runtime.uiLogic.passedParameter", { dstDEUILogicParamId })
|
|
22098
|
+
);
|
|
21198
22099
|
}
|
|
21199
22100
|
const result = await execDELogicById(
|
|
21200
22101
|
dstAppDELogicId,
|
|
@@ -21208,7 +22109,12 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
21208
22109
|
ctx.setLastReturn(ctx.params[retDEUILogicParamId]);
|
|
21209
22110
|
}
|
|
21210
22111
|
ibiz.log.debug(
|
|
21211
|
-
|
|
22112
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeExecutingEntityLogic", {
|
|
22113
|
+
id: this.model.id,
|
|
22114
|
+
dstAppDELogicId,
|
|
22115
|
+
dstAppDataEntityId,
|
|
22116
|
+
retDEUILogicParamId
|
|
22117
|
+
}),
|
|
21212
22118
|
result
|
|
21213
22119
|
);
|
|
21214
22120
|
}
|
|
@@ -21218,7 +22124,9 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
21218
22124
|
var RawJSCodeNode = class extends UILogicNode {
|
|
21219
22125
|
async exec(ctx) {
|
|
21220
22126
|
ibiz.log.debug(
|
|
21221
|
-
|
|
22127
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeDirectCode", {
|
|
22128
|
+
id: this.model.id
|
|
22129
|
+
}),
|
|
21222
22130
|
this.model.code
|
|
21223
22131
|
);
|
|
21224
22132
|
ScriptFactory.execScriptFn(
|
|
@@ -21279,7 +22187,11 @@ var UILogicParam = class {
|
|
|
21279
22187
|
if (control) {
|
|
21280
22188
|
ctx.params[tag] = control;
|
|
21281
22189
|
} else {
|
|
21282
|
-
ibiz.log.error(
|
|
22190
|
+
ibiz.log.error(
|
|
22191
|
+
ibiz.i18n.t("runtime.uiLogic.viewLogicInitializationParameter", {
|
|
22192
|
+
codeName: m.codeName
|
|
22193
|
+
})
|
|
22194
|
+
);
|
|
21283
22195
|
}
|
|
21284
22196
|
} else if (m.activeViewParam) {
|
|
21285
22197
|
ctx.params[tag] = parameters.view;
|
|
@@ -21337,7 +22249,13 @@ var UILogicParam = class {
|
|
|
21337
22249
|
} else if (m.sessionParam) {
|
|
21338
22250
|
ctx.params[tag] = ctx.session;
|
|
21339
22251
|
}
|
|
21340
|
-
ibiz.log.debug(
|
|
22252
|
+
ibiz.log.debug(
|
|
22253
|
+
ibiz.i18n.t("runtime.uiLogic.calculateInterfaceLogicParameters", {
|
|
22254
|
+
tag
|
|
22255
|
+
}),
|
|
22256
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.value"),
|
|
22257
|
+
ctx.params[tag]
|
|
22258
|
+
);
|
|
21341
22259
|
}
|
|
21342
22260
|
/**
|
|
21343
22261
|
* 重新建立变量
|
|
@@ -21353,11 +22271,16 @@ var UILogicParam = class {
|
|
|
21353
22271
|
} else if (m.simpleParam || m.entityParam) {
|
|
21354
22272
|
ctx.params[tag] = {};
|
|
21355
22273
|
} else {
|
|
21356
|
-
throw new ModelError24(
|
|
22274
|
+
throw new ModelError24(
|
|
22275
|
+
m,
|
|
22276
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.recreatingVariables")
|
|
22277
|
+
);
|
|
21357
22278
|
}
|
|
21358
22279
|
ibiz.log.debug(
|
|
21359
|
-
"
|
|
21360
|
-
|
|
22280
|
+
ibiz.i18n.t("runtime.uiLogic.restablishInterfaceLogic", {
|
|
22281
|
+
tag
|
|
22282
|
+
}),
|
|
22283
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.value"),
|
|
21361
22284
|
ctx.params[tag]
|
|
21362
22285
|
);
|
|
21363
22286
|
}
|
|
@@ -21393,7 +22316,10 @@ var UILogic = class {
|
|
|
21393
22316
|
this.params = /* @__PURE__ */ new Map();
|
|
21394
22317
|
var _a;
|
|
21395
22318
|
if (!((_a = model.deuilogicNodes) == null ? void 0 : _a.length)) {
|
|
21396
|
-
throw new RuntimeModelError50(
|
|
22319
|
+
throw new RuntimeModelError50(
|
|
22320
|
+
model,
|
|
22321
|
+
ibiz.i18n.t("runtime.uiLogic.noLogicalNodesConfigured")
|
|
22322
|
+
);
|
|
21397
22323
|
}
|
|
21398
22324
|
model.deuilogicNodes.forEach((node) => {
|
|
21399
22325
|
const { logicNodeType } = node;
|
|
@@ -21460,7 +22386,12 @@ var UILogic = class {
|
|
|
21460
22386
|
logicNode = new RawJSCodeNode(node);
|
|
21461
22387
|
break;
|
|
21462
22388
|
default:
|
|
21463
|
-
throw new ModelError25(
|
|
22389
|
+
throw new ModelError25(
|
|
22390
|
+
node,
|
|
22391
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.unsupportedLogical", {
|
|
22392
|
+
logicNodeType
|
|
22393
|
+
})
|
|
22394
|
+
);
|
|
21464
22395
|
}
|
|
21465
22396
|
this.nodes.set(node.id, logicNode);
|
|
21466
22397
|
});
|
|
@@ -21513,7 +22444,10 @@ var UILogic = class {
|
|
|
21513
22444
|
const start = this.nodes.get(startDEUILogicNodeId);
|
|
21514
22445
|
await this.deepExec(start, ctx);
|
|
21515
22446
|
} else {
|
|
21516
|
-
throw new RuntimeModelError50(
|
|
22447
|
+
throw new RuntimeModelError50(
|
|
22448
|
+
this.model,
|
|
22449
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.noSetStartNode")
|
|
22450
|
+
);
|
|
21517
22451
|
}
|
|
21518
22452
|
if (ctx.isEndNode) {
|
|
21519
22453
|
return ctx.result;
|
|
@@ -21560,19 +22494,28 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
21560
22494
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
21561
22495
|
if (!deUILogic) {
|
|
21562
22496
|
throw new RuntimeError47(
|
|
21563
|
-
"
|
|
22497
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogic", {
|
|
22498
|
+
appDataEntityId,
|
|
22499
|
+
deUILogicId
|
|
22500
|
+
})
|
|
21564
22501
|
);
|
|
21565
22502
|
}
|
|
21566
22503
|
if (!uiLogicMap.has(deUILogic)) {
|
|
21567
22504
|
uiLogicMap.set(deUILogic, new UILogic(deUILogic));
|
|
21568
22505
|
}
|
|
21569
22506
|
ibiz.log.debug(
|
|
21570
|
-
|
|
22507
|
+
ibiz.i18n.t("runtime.uiLogic.startExecutingInterfaceLogic", {
|
|
22508
|
+
appDataEntityId,
|
|
22509
|
+
name: deUILogic.name
|
|
22510
|
+
})
|
|
21571
22511
|
);
|
|
21572
22512
|
const uiLogic = uiLogicMap.get(deUILogic);
|
|
21573
22513
|
const result = await uiLogic.exec(parameters);
|
|
21574
22514
|
ibiz.log.debug(
|
|
21575
|
-
|
|
22515
|
+
ibiz.i18n.t("runtime.uiLogic.endExecutionInterfaceLogic", {
|
|
22516
|
+
appDataEntityId,
|
|
22517
|
+
name: deUILogic.name
|
|
22518
|
+
})
|
|
21576
22519
|
);
|
|
21577
22520
|
return result;
|
|
21578
22521
|
}
|
|
@@ -21593,7 +22536,9 @@ var UIActionUtil = class {
|
|
|
21593
22536
|
static async exec(actionId, params, appId2) {
|
|
21594
22537
|
const action = await getUIActionById(actionId, appId2);
|
|
21595
22538
|
if (!action) {
|
|
21596
|
-
throw new RuntimeError48(
|
|
22539
|
+
throw new RuntimeError48(
|
|
22540
|
+
ibiz.i18n.t("runtime.uiAction.noFoundBehaviorModel", { actionId })
|
|
22541
|
+
);
|
|
21597
22542
|
}
|
|
21598
22543
|
if (action.actionTarget === "SINGLEDATA") {
|
|
21599
22544
|
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
@@ -21695,7 +22640,10 @@ var UIActionProviderBase = class {
|
|
|
21695
22640
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
21696
22641
|
if (uilogicAttachMode === "REPLACE") {
|
|
21697
22642
|
if (!appDEUILogicId) {
|
|
21698
|
-
throw new RuntimeModelError51(
|
|
22643
|
+
throw new RuntimeModelError51(
|
|
22644
|
+
action,
|
|
22645
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
22646
|
+
);
|
|
21699
22647
|
}
|
|
21700
22648
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
21701
22649
|
return result;
|
|
@@ -21710,7 +22658,10 @@ var UIActionProviderBase = class {
|
|
|
21710
22658
|
}
|
|
21711
22659
|
if (action.uilogicAttachMode === "AFTER") {
|
|
21712
22660
|
if (!appDEUILogicId) {
|
|
21713
|
-
throw new RuntimeModelError51(
|
|
22661
|
+
throw new RuntimeModelError51(
|
|
22662
|
+
action,
|
|
22663
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
22664
|
+
);
|
|
21714
22665
|
}
|
|
21715
22666
|
await execUILogic(
|
|
21716
22667
|
appDEUILogicId,
|
|
@@ -21780,7 +22731,10 @@ var UIActionProviderBase = class {
|
|
|
21780
22731
|
async isConfirm(action, args) {
|
|
21781
22732
|
const confirmMsg = this.calcMessage("confirm", action, args);
|
|
21782
22733
|
if (action.enableConfirm && confirmMsg) {
|
|
21783
|
-
return ibiz.confirm.warning({
|
|
22734
|
+
return ibiz.confirm.warning({
|
|
22735
|
+
title: ibiz.i18n.t("runtime.uiAction.operationConfirmation"),
|
|
22736
|
+
desc: confirmMsg
|
|
22737
|
+
});
|
|
21784
22738
|
}
|
|
21785
22739
|
return true;
|
|
21786
22740
|
}
|
|
@@ -21942,7 +22896,9 @@ var UIActionProviderBase = class {
|
|
|
21942
22896
|
delete param.modaloption;
|
|
21943
22897
|
return { modalOption };
|
|
21944
22898
|
} catch (error) {
|
|
21945
|
-
ibiz.log.error(
|
|
22899
|
+
ibiz.log.error(
|
|
22900
|
+
ibiz.i18n.t("runtime.uiAction.viewParameterModalOption", { error })
|
|
22901
|
+
);
|
|
21946
22902
|
}
|
|
21947
22903
|
}
|
|
21948
22904
|
return {};
|
|
@@ -21957,7 +22913,10 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
21957
22913
|
const entityName = action.appDataEntityId;
|
|
21958
22914
|
const methodName = action.appDEMethodId;
|
|
21959
22915
|
if (!entityName || !methodName) {
|
|
21960
|
-
throw new RuntimeModelError52(
|
|
22916
|
+
throw new RuntimeModelError52(
|
|
22917
|
+
action,
|
|
22918
|
+
ibiz.i18n.t("runtime.uiAction.noEntityOrBehavior")
|
|
22919
|
+
);
|
|
21961
22920
|
}
|
|
21962
22921
|
const { resultContext, resultParams, resultData } = await this.handleParams(
|
|
21963
22922
|
action,
|
|
@@ -22102,7 +23061,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22102
23061
|
case "WIZARD": {
|
|
22103
23062
|
const frontPSAppView = action.frontAppViewId;
|
|
22104
23063
|
if (!frontPSAppView) {
|
|
22105
|
-
throw new RuntimeModelError53(
|
|
23064
|
+
throw new RuntimeModelError53(
|
|
23065
|
+
action,
|
|
23066
|
+
ibiz.i18n.t("runtime.uiAction.noConfiguredopenView")
|
|
23067
|
+
);
|
|
22106
23068
|
}
|
|
22107
23069
|
const { resultContext, resultParams } = await this.handleParams(
|
|
22108
23070
|
action,
|
|
@@ -22138,7 +23100,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22138
23100
|
await this.executeDataExport(action, args);
|
|
22139
23101
|
break;
|
|
22140
23102
|
case "OTHER":
|
|
22141
|
-
actionResult = this.doOther(action, args);
|
|
23103
|
+
actionResult = await this.doOther(action, args);
|
|
22142
23104
|
break;
|
|
22143
23105
|
case "EDITFORM":
|
|
22144
23106
|
actionResult = await this.openEditForm(action, args);
|
|
@@ -22146,7 +23108,9 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22146
23108
|
default:
|
|
22147
23109
|
throw new ModelError26(
|
|
22148
23110
|
action,
|
|
22149
|
-
|
|
23111
|
+
ibiz.i18n.t("runtime.uiAction.frontProcessingModes", {
|
|
23112
|
+
frontProcessType: action.frontProcessType
|
|
23113
|
+
})
|
|
22150
23114
|
);
|
|
22151
23115
|
}
|
|
22152
23116
|
return actionResult;
|
|
@@ -22160,9 +23124,13 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22160
23124
|
* @param {IUILogicParams} args
|
|
22161
23125
|
* @return {*}
|
|
22162
23126
|
*/
|
|
22163
|
-
doOther(action, args) {
|
|
22164
|
-
const { scriptCode } = action;
|
|
23127
|
+
async doOther(action, args) {
|
|
23128
|
+
const { scriptCode, uiactionTag } = action;
|
|
22165
23129
|
const { context, params, data, event, view } = args;
|
|
23130
|
+
if (uiactionTag === "ShortCut" /* SHOTR_CUT */) {
|
|
23131
|
+
const result = await view.callUIAction(uiactionTag, args);
|
|
23132
|
+
return result || {};
|
|
23133
|
+
}
|
|
22166
23134
|
if (scriptCode) {
|
|
22167
23135
|
const result = ScriptFactory.execScriptFn(
|
|
22168
23136
|
{ context, params, data, el: event == null ? void 0 : event.target, view },
|
|
@@ -22170,7 +23138,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22170
23138
|
);
|
|
22171
23139
|
return result || {};
|
|
22172
23140
|
}
|
|
22173
|
-
throw new RuntimeModelError53(
|
|
23141
|
+
throw new RuntimeModelError53(
|
|
23142
|
+
action,
|
|
23143
|
+
ibiz.i18n.t("runtime.uiAction.missingConfigurationScriptCode")
|
|
23144
|
+
);
|
|
22174
23145
|
}
|
|
22175
23146
|
/**
|
|
22176
23147
|
* 执行打印行为
|
|
@@ -22199,7 +23170,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22199
23170
|
if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
|
|
22200
23171
|
requestUrl += "/".concat(appDataEntity.deapicodeName2, "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
|
|
22201
23172
|
} else {
|
|
22202
|
-
throw new RuntimeError49("
|
|
23173
|
+
throw new RuntimeError49(ibiz.i18n.t("runtime.uiAction.dataPrimaryKey"));
|
|
22203
23174
|
}
|
|
22204
23175
|
const res = await ibiz.net.request(requestUrl, {
|
|
22205
23176
|
method: "get",
|
|
@@ -22226,10 +23197,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22226
23197
|
window.open(link, "_blank");
|
|
22227
23198
|
}
|
|
22228
23199
|
} else {
|
|
22229
|
-
throw new RuntimeError49("
|
|
23200
|
+
throw new RuntimeError49(ibiz.i18n.t("runtime.uiAction.printFailure"));
|
|
22230
23201
|
}
|
|
22231
23202
|
} else {
|
|
22232
|
-
throw new RuntimeError49("
|
|
23203
|
+
throw new RuntimeError49(ibiz.i18n.t("runtime.uiAction.physicalPrint"));
|
|
22233
23204
|
}
|
|
22234
23205
|
}
|
|
22235
23206
|
/**
|
|
@@ -22248,7 +23219,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22248
23219
|
);
|
|
22249
23220
|
const { appDataEntityId, appDEDataImportId, frontAppViewId } = action;
|
|
22250
23221
|
if (!appDataEntityId || !appDEDataImportId) {
|
|
22251
|
-
throw new RuntimeModelError53(
|
|
23222
|
+
throw new RuntimeModelError53(
|
|
23223
|
+
action,
|
|
23224
|
+
ibiz.i18n.t("runtime.controller.common.control.noImportModel")
|
|
23225
|
+
);
|
|
22252
23226
|
}
|
|
22253
23227
|
await openDataImport({
|
|
22254
23228
|
appDataEntityId,
|
|
@@ -22311,10 +23285,14 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22311
23285
|
URL.revokeObjectURL(elink.href);
|
|
22312
23286
|
document.body.removeChild(elink);
|
|
22313
23287
|
} else {
|
|
22314
|
-
throw new RuntimeError49(
|
|
23288
|
+
throw new RuntimeError49(
|
|
23289
|
+
ibiz.i18n.t("runtime.uiAction.exportRequestFailed")
|
|
23290
|
+
);
|
|
22315
23291
|
}
|
|
22316
23292
|
} else {
|
|
22317
|
-
throw new RuntimeError49(
|
|
23293
|
+
throw new RuntimeError49(
|
|
23294
|
+
ibiz.i18n.t("runtime.uiAction.noEntityExportsFound")
|
|
23295
|
+
);
|
|
22318
23296
|
}
|
|
22319
23297
|
}
|
|
22320
23298
|
/**
|
|
@@ -22330,7 +23308,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
22330
23308
|
const actionResult = {};
|
|
22331
23309
|
const { context, params, data, event } = args;
|
|
22332
23310
|
if (!event) {
|
|
22333
|
-
throw new RuntimeError49("
|
|
23311
|
+
throw new RuntimeError49(ibiz.i18n.t("runtime.uiAction.lackNativeEvent"));
|
|
22334
23312
|
}
|
|
22335
23313
|
const { resultContext, resultParams } = await this.handleParams(
|
|
22336
23314
|
action,
|
|
@@ -22376,8 +23354,8 @@ var WFWithdrawUIActionProvider = class extends UIActionProviderBase {
|
|
|
22376
23354
|
async execAction(_action, args) {
|
|
22377
23355
|
const { view } = args;
|
|
22378
23356
|
const isWithdraw = await ibiz.modal.confirm({
|
|
22379
|
-
title: "
|
|
22380
|
-
desc: "
|
|
23357
|
+
title: ibiz.i18n.t("runtime.controller.control.form.prompt"),
|
|
23358
|
+
desc: ibiz.i18n.t("runtime.uiAction.withdrawalConfirmed")
|
|
22381
23359
|
});
|
|
22382
23360
|
let isCloseView = false;
|
|
22383
23361
|
if (isWithdraw && view) {
|
|
@@ -22395,8 +23373,8 @@ var WFWithdrawUIActionProvider = class extends UIActionProviderBase {
|
|
|
22395
23373
|
var LoginOutUIActionProvider = class extends UIActionProviderBase {
|
|
22396
23374
|
async execAction(_action, _params) {
|
|
22397
23375
|
const confirm = await ibiz.confirm.info({
|
|
22398
|
-
title: "
|
|
22399
|
-
desc: "
|
|
23376
|
+
title: ibiz.i18n.t("app.logout"),
|
|
23377
|
+
desc: ibiz.i18n.t("runtime.uiAction.wantLogout")
|
|
22400
23378
|
});
|
|
22401
23379
|
if (confirm) {
|
|
22402
23380
|
const bol = await ibiz.hub.controller.logout();
|
|
@@ -22454,7 +23432,7 @@ var ToolbarController = class extends ControlController {
|
|
|
22454
23432
|
const uiAction = await getUIActionById(actionId, item.appId);
|
|
22455
23433
|
if (!uiAction) {
|
|
22456
23434
|
throw new RuntimeError50(
|
|
22457
|
-
ibiz.i18n.t("runtime.controller.control.toolbar.
|
|
23435
|
+
ibiz.i18n.t("runtime.controller.control.toolbar.noFound", {
|
|
22458
23436
|
actionId
|
|
22459
23437
|
})
|
|
22460
23438
|
);
|
|
@@ -23609,7 +24587,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23609
24587
|
throw new RuntimeModelError54(
|
|
23610
24588
|
this.model,
|
|
23611
24589
|
ibiz.i18n.t(
|
|
23612
|
-
"runtime.controller.control.dataView.
|
|
24590
|
+
"runtime.controller.control.dataView.propertiesNoConfigured"
|
|
23613
24591
|
)
|
|
23614
24592
|
);
|
|
23615
24593
|
}
|
|
@@ -23680,7 +24658,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23680
24658
|
if (!groupCodeListId) {
|
|
23681
24659
|
throw new RuntimeModelError54(
|
|
23682
24660
|
this.model,
|
|
23683
|
-
ibiz.i18n.t("runtime.controller.control.dataView.
|
|
24661
|
+
ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
|
|
23684
24662
|
);
|
|
23685
24663
|
}
|
|
23686
24664
|
const { items } = this.state;
|
|
@@ -24383,7 +25361,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
24383
25361
|
const nodeModel = this.getNodeModel(node._nodeId);
|
|
24384
25362
|
if (!nodeModel) {
|
|
24385
25363
|
throw new RuntimeError52(
|
|
24386
|
-
ibiz.i18n.t("runtime.controller.control.expBar.
|
|
25364
|
+
ibiz.i18n.t("runtime.controller.control.expBar.noFindNodeModel", {
|
|
24387
25365
|
nodeId: node._nodeId
|
|
24388
25366
|
})
|
|
24389
25367
|
);
|
|
@@ -26684,7 +27662,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
26684
27662
|
this.mdController.refresh();
|
|
26685
27663
|
} else {
|
|
26686
27664
|
ibiz.log.debug(
|
|
26687
|
-
ibiz.i18n.t("runtime.controller.control.form.
|
|
27665
|
+
ibiz.i18n.t("runtime.controller.control.form.mdControllerNoExist")
|
|
26688
27666
|
);
|
|
26689
27667
|
}
|
|
26690
27668
|
}
|
|
@@ -26952,7 +27930,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
26952
27930
|
default:
|
|
26953
27931
|
throw new ModelError28(
|
|
26954
27932
|
this.model,
|
|
26955
|
-
ibiz.i18n.t("runtime.controller.control.form.
|
|
27933
|
+
ibiz.i18n.t("runtime.controller.control.form.repeaterNoSupported", {
|
|
26956
27934
|
detailStyle: this.model.detailStyle
|
|
26957
27935
|
})
|
|
26958
27936
|
);
|
|
@@ -28729,7 +29707,7 @@ var GridController = class extends MDControlController {
|
|
|
28729
29707
|
if (!this.groupFieldColumn.model.appCodeListId) {
|
|
28730
29708
|
throw new RuntimeModelError63(
|
|
28731
29709
|
this.groupFieldColumn.model,
|
|
28732
|
-
ibiz.i18n.t("runtime.controller.control.grid.
|
|
29710
|
+
ibiz.i18n.t("runtime.controller.control.grid.noCodeTable", {
|
|
28733
29711
|
groupFieldName
|
|
28734
29712
|
})
|
|
28735
29713
|
);
|
|
@@ -28759,7 +29737,7 @@ var GridController = class extends MDControlController {
|
|
|
28759
29737
|
if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
|
|
28760
29738
|
throw new RuntimeModelError63(
|
|
28761
29739
|
this.model,
|
|
28762
|
-
ibiz.i18n.t("runtime.controller.control.grid.
|
|
29740
|
+
ibiz.i18n.t("runtime.controller.control.grid.noMatchCodeTable", {
|
|
28763
29741
|
groupFieldName
|
|
28764
29742
|
})
|
|
28765
29743
|
);
|
|
@@ -29016,7 +29994,7 @@ var GridController = class extends MDControlController {
|
|
|
29016
29994
|
);
|
|
29017
29995
|
}
|
|
29018
29996
|
if (!rowState.modified) {
|
|
29019
|
-
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.
|
|
29997
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.noChange"));
|
|
29020
29998
|
return;
|
|
29021
29999
|
}
|
|
29022
30000
|
if (rowState.processing) {
|
|
@@ -29252,7 +30230,7 @@ var GridController = class extends MDControlController {
|
|
|
29252
30230
|
async toggleRowEdit() {
|
|
29253
30231
|
if (!this.model.enableRowNew) {
|
|
29254
30232
|
throw new RuntimeError56(
|
|
29255
|
-
ibiz.i18n.t("runtime.controller.control.grid.
|
|
30233
|
+
ibiz.i18n.t("runtime.controller.control.grid.noSupportRowEditing")
|
|
29256
30234
|
);
|
|
29257
30235
|
}
|
|
29258
30236
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
@@ -30000,7 +30978,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
30000
30978
|
default:
|
|
30001
30979
|
throw new ModelError29(
|
|
30002
30980
|
this.model,
|
|
30003
|
-
ibiz.i18n.t("runtime.controller.control.grid.
|
|
30981
|
+
ibiz.i18n.t("runtime.controller.control.grid.noSupportedMode", {
|
|
30004
30982
|
aggMode
|
|
30005
30983
|
})
|
|
30006
30984
|
);
|
|
@@ -31905,7 +32883,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
|
31905
32883
|
});
|
|
31906
32884
|
if (!minorDEId) {
|
|
31907
32885
|
throw new RuntimeError59(
|
|
31908
|
-
ibiz.i18n.t("runtime.controller.control.searchBar.
|
|
32886
|
+
ibiz.i18n.t("runtime.controller.control.searchBar.noFoundEntity", {
|
|
31909
32887
|
targetField
|
|
31910
32888
|
})
|
|
31911
32889
|
);
|
|
@@ -33158,7 +34136,7 @@ var TreeService = class extends MDControlService {
|
|
|
33158
34136
|
default:
|
|
33159
34137
|
throw new ModelError30(
|
|
33160
34138
|
nodeModel,
|
|
33161
|
-
ibiz.i18n.t("runtime.controller.control.gantt.
|
|
34139
|
+
ibiz.i18n.t("runtime.controller.control.gantt.noSupport", {
|
|
33162
34140
|
treeNodeType: nodeModel.treeNodeType
|
|
33163
34141
|
})
|
|
33164
34142
|
);
|
|
@@ -33856,7 +34834,7 @@ var TreeController = class extends MDControlController {
|
|
|
33856
34834
|
);
|
|
33857
34835
|
if (!currentNode) {
|
|
33858
34836
|
ibiz.log.error(
|
|
33859
|
-
ibiz.i18n.t("runtime.controller.control.tree.
|
|
34837
|
+
ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeData"),
|
|
33860
34838
|
nodeData
|
|
33861
34839
|
);
|
|
33862
34840
|
return;
|
|
@@ -34117,7 +35095,7 @@ var TreeController = class extends MDControlController {
|
|
|
34117
35095
|
const treeNode = this.getNodeModel(item._nodeId);
|
|
34118
35096
|
if (!treeNode) {
|
|
34119
35097
|
throw new RuntimeError60(
|
|
34120
|
-
ibiz.i18n.t("runtime.controller.control.tree.
|
|
35098
|
+
ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
|
|
34121
35099
|
);
|
|
34122
35100
|
}
|
|
34123
35101
|
const nodeAppDataEntityId = treeNode.appDataEntityId;
|
|
@@ -34820,7 +35798,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
34820
35798
|
throw new RuntimeModelError67(
|
|
34821
35799
|
this.model,
|
|
34822
35800
|
ibiz.i18n.t(
|
|
34823
|
-
"runtime.controller.control.dataView.
|
|
35801
|
+
"runtime.controller.control.dataView.propertiesNoConfigured"
|
|
34824
35802
|
)
|
|
34825
35803
|
);
|
|
34826
35804
|
}
|
|
@@ -34891,7 +35869,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
34891
35869
|
if (!groupCodeListId) {
|
|
34892
35870
|
throw new RuntimeModelError67(
|
|
34893
35871
|
this.model,
|
|
34894
|
-
ibiz.i18n.t("runtime.controller.control.dataView.
|
|
35872
|
+
ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
|
|
34895
35873
|
);
|
|
34896
35874
|
}
|
|
34897
35875
|
const { items } = this.state;
|
|
@@ -35196,7 +36174,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
35196
36174
|
if (!groupCodeListId) {
|
|
35197
36175
|
throw new RuntimeModelError68(
|
|
35198
36176
|
this.model,
|
|
35199
|
-
ibiz.i18n.t("runtime.controller.control.dataView.
|
|
36177
|
+
ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
|
|
35200
36178
|
);
|
|
35201
36179
|
}
|
|
35202
36180
|
const { items } = this.state;
|
|
@@ -35251,7 +36229,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
35251
36229
|
if (!this.enableEditOrder) {
|
|
35252
36230
|
if (info.from === info.to) {
|
|
35253
36231
|
ibiz.message.warning(
|
|
35254
|
-
ibiz.i18n.t("runtime.controller.control.kanban.
|
|
36232
|
+
ibiz.i18n.t("runtime.controller.control.kanban.noAllowReorder")
|
|
35255
36233
|
);
|
|
35256
36234
|
return;
|
|
35257
36235
|
}
|
|
@@ -35769,7 +36747,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
35769
36747
|
);
|
|
35770
36748
|
}
|
|
35771
36749
|
if (!rowState.modified) {
|
|
35772
|
-
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.
|
|
36750
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.noChange"));
|
|
35773
36751
|
return;
|
|
35774
36752
|
}
|
|
35775
36753
|
if (rowState.processing) {
|
|
@@ -35781,7 +36759,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
35781
36759
|
const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
|
|
35782
36760
|
if (isCreate) {
|
|
35783
36761
|
throw new RuntimeError63(
|
|
35784
|
-
ibiz.i18n.t("runtime.controller.control.treeGridEx.
|
|
36762
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.noSupportCreation")
|
|
35785
36763
|
);
|
|
35786
36764
|
}
|
|
35787
36765
|
if (!updateAppDEActionId) {
|
|
@@ -36094,7 +37072,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
36094
37072
|
if (!nodeColumn || !nodeDataItem) {
|
|
36095
37073
|
throw new RuntimeModelError70(
|
|
36096
37074
|
nodeModel,
|
|
36097
|
-
ibiz.i18n.t("runtime.controller.control.treeGridEx.
|
|
37075
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.noConfigured", {
|
|
36098
37076
|
name: this.fieldColumn.name
|
|
36099
37077
|
})
|
|
36100
37078
|
);
|
|
@@ -36266,7 +37244,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
36266
37244
|
const value = row.data[valueItem];
|
|
36267
37245
|
if (value == null) {
|
|
36268
37246
|
throw new RuntimeError64(
|
|
36269
|
-
ibiz.i18n.t("runtime.controller.control.treeGridEx.
|
|
37247
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.noPickedUp", {
|
|
36270
37248
|
valueItem
|
|
36271
37249
|
})
|
|
36272
37250
|
);
|
|
@@ -37275,7 +38253,7 @@ var ReportPanelGeneratorFactory = class {
|
|
|
37275
38253
|
return new User2ReportPanelGenerator(model);
|
|
37276
38254
|
default:
|
|
37277
38255
|
throw new Error(
|
|
37278
|
-
ibiz.i18n.t("runtime.controller.control.reportPanel.
|
|
38256
|
+
ibiz.i18n.t("runtime.controller.control.reportPanel.noImplemented", {
|
|
37279
38257
|
reportType: model.appDEReport.reportType
|
|
37280
38258
|
})
|
|
37281
38259
|
);
|
|
@@ -37572,7 +38550,7 @@ var GanttService = class extends TreeService {
|
|
|
37572
38550
|
default:
|
|
37573
38551
|
throw new ModelError31(
|
|
37574
38552
|
nodeModel,
|
|
37575
|
-
ibiz.i18n.t("runtime.controller.control.gantt.
|
|
38553
|
+
ibiz.i18n.t("runtime.controller.control.gantt.noSupport", {
|
|
37576
38554
|
treeNodeType: nodeModel.treeNodeType
|
|
37577
38555
|
})
|
|
37578
38556
|
);
|
|
@@ -37964,7 +38942,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
37964
38942
|
async modifyNodeTime(nodeData, { begin, end }) {
|
|
37965
38943
|
if (nodeData._nodeType !== "DE") {
|
|
37966
38944
|
throw new RuntimeError66(
|
|
37967
|
-
ibiz.i18n.t("runtime.controller.control.gantt.
|
|
38945
|
+
ibiz.i18n.t("runtime.controller.control.gantt.noNode")
|
|
37968
38946
|
);
|
|
37969
38947
|
}
|
|
37970
38948
|
const rowState = this.getRowState(nodeData._id);
|
|
@@ -38004,7 +38982,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
38004
38982
|
);
|
|
38005
38983
|
}
|
|
38006
38984
|
if (!rowState.modified) {
|
|
38007
|
-
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.
|
|
38985
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.noChange"));
|
|
38008
38986
|
return;
|
|
38009
38987
|
}
|
|
38010
38988
|
if (rowState.processing) {
|
|
@@ -38818,7 +39796,7 @@ var AppHub = class {
|
|
|
38818
39796
|
this.registerAppView(appView);
|
|
38819
39797
|
return appView;
|
|
38820
39798
|
}
|
|
38821
|
-
throw new RuntimeError67("
|
|
39799
|
+
throw new RuntimeError67(ibiz.i18n.t("runtime.hub.noExist", { id }));
|
|
38822
39800
|
}
|
|
38823
39801
|
/**
|
|
38824
39802
|
* 根据DrControl的名称和子应用标识获取模型
|
|
@@ -38857,7 +39835,9 @@ var AppHub = class {
|
|
|
38857
39835
|
);
|
|
38858
39836
|
return model;
|
|
38859
39837
|
}
|
|
38860
|
-
throw new RuntimeError67(
|
|
39838
|
+
throw new RuntimeError67(
|
|
39839
|
+
ibiz.i18n.t("runtime.hub.noExist", { id: modelPath })
|
|
39840
|
+
);
|
|
38861
39841
|
}
|
|
38862
39842
|
/**
|
|
38863
39843
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -38888,7 +39868,7 @@ var AppHub = class {
|
|
|
38888
39868
|
this.registerAppDataEntity(entity, appId2);
|
|
38889
39869
|
return entity;
|
|
38890
39870
|
}
|
|
38891
|
-
throw new RuntimeError67("
|
|
39871
|
+
throw new RuntimeError67(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
38892
39872
|
}
|
|
38893
39873
|
/**
|
|
38894
39874
|
* 新建 hub 应用
|
|
@@ -38903,7 +39883,7 @@ var AppHub = class {
|
|
|
38903
39883
|
return this.appMap.get(id);
|
|
38904
39884
|
}
|
|
38905
39885
|
if (!this.modelLoaderProvider) {
|
|
38906
|
-
throw new RuntimeError67("
|
|
39886
|
+
throw new RuntimeError67(ibiz.i18n.t("runtime.utils.firstregister"));
|
|
38907
39887
|
}
|
|
38908
39888
|
const appModel = await this.modelLoaderProvider.getApp(id);
|
|
38909
39889
|
const app = new Application(appModel);
|
|
@@ -39040,12 +40020,19 @@ var EngineFactory = class {
|
|
|
39040
40020
|
if (func) {
|
|
39041
40021
|
return func(...args);
|
|
39042
40022
|
}
|
|
39043
|
-
ibiz.log.error(
|
|
40023
|
+
ibiz.log.error(
|
|
40024
|
+
ibiz.i18n.t("runtime.engine.correspondingEngine", { key }),
|
|
40025
|
+
model
|
|
40026
|
+
);
|
|
39044
40027
|
}
|
|
39045
40028
|
};
|
|
39046
40029
|
|
|
39047
40030
|
// src/engine/view-base.engine.ts
|
|
39048
|
-
import {
|
|
40031
|
+
import {
|
|
40032
|
+
RuntimeError as RuntimeError68,
|
|
40033
|
+
findRecursiveChild as findRecursiveChild3,
|
|
40034
|
+
IBizContext as IBizContext7
|
|
40035
|
+
} from "@ibiz-template/core";
|
|
39049
40036
|
var ViewEngineBase = class {
|
|
39050
40037
|
/**
|
|
39051
40038
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -39149,7 +40136,12 @@ var ViewEngineBase = class {
|
|
|
39149
40136
|
*/
|
|
39150
40137
|
calcDynamicLayout() {
|
|
39151
40138
|
const names = this.calcRemoveLayoutModel();
|
|
39152
|
-
ibiz.log.debug(
|
|
40139
|
+
ibiz.log.debug(
|
|
40140
|
+
ibiz.i18n.t("runtime.engine.deleteModel", {
|
|
40141
|
+
codeName: this.view.model.codeName,
|
|
40142
|
+
name: names.join(";")
|
|
40143
|
+
})
|
|
40144
|
+
);
|
|
39153
40145
|
this.removeLayoutModel(names);
|
|
39154
40146
|
}
|
|
39155
40147
|
/**
|
|
@@ -39214,7 +40206,12 @@ var ViewEngineBase = class {
|
|
|
39214
40206
|
}
|
|
39215
40207
|
async onMounted() {
|
|
39216
40208
|
const { model, childNames } = this.view;
|
|
39217
|
-
ibiz.log.debug(
|
|
40209
|
+
ibiz.log.debug(
|
|
40210
|
+
ibiz.i18n.t("runtime.engine.childComponentsMounted", {
|
|
40211
|
+
id: model.id,
|
|
40212
|
+
childName: childNames.join(";")
|
|
40213
|
+
})
|
|
40214
|
+
);
|
|
39218
40215
|
}
|
|
39219
40216
|
async onDestroyed() {
|
|
39220
40217
|
}
|
|
@@ -39222,8 +40219,41 @@ var ViewEngineBase = class {
|
|
|
39222
40219
|
if (key === "GetData" /* GET_DATA */) {
|
|
39223
40220
|
return this.getData();
|
|
39224
40221
|
}
|
|
40222
|
+
if (key === "ShortCut" /* SHOTR_CUT */) {
|
|
40223
|
+
return this.onShortCut(_args);
|
|
40224
|
+
}
|
|
39225
40225
|
return void 0;
|
|
39226
40226
|
}
|
|
40227
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
40228
|
+
async onShortCut(args) {
|
|
40229
|
+
const { data } = args;
|
|
40230
|
+
const { context, model, params, modal } = this.view;
|
|
40231
|
+
if (!["ROUTE_MODAL", "MODAL", "DRAWER"].includes(modal.mode)) {
|
|
40232
|
+
throw new Error(
|
|
40233
|
+
ibiz.i18n.t("runtime.engine.minimization", { mode: modal.mode })
|
|
40234
|
+
);
|
|
40235
|
+
}
|
|
40236
|
+
const key = await ibiz.util.shortCut.calcShortCutKey({
|
|
40237
|
+
context,
|
|
40238
|
+
appViewId: model.id
|
|
40239
|
+
});
|
|
40240
|
+
const isExist = ibiz.util.shortCut.isExist(key);
|
|
40241
|
+
if (!isExist) {
|
|
40242
|
+
ibiz.util.shortCut.addShortCut({
|
|
40243
|
+
key,
|
|
40244
|
+
name: data && data[0].srfmajortext,
|
|
40245
|
+
appViewId: model.id,
|
|
40246
|
+
context: IBizContext7.create(context),
|
|
40247
|
+
params: { ...params },
|
|
40248
|
+
openMode: modal.mode
|
|
40249
|
+
});
|
|
40250
|
+
this.view.state.isShortCut = true;
|
|
40251
|
+
return { closeView: true };
|
|
40252
|
+
}
|
|
40253
|
+
ibiz.util.shortCut.removeShortCut(key);
|
|
40254
|
+
this.view.state.isShortCut = false;
|
|
40255
|
+
return null;
|
|
40256
|
+
}
|
|
39227
40257
|
/**
|
|
39228
40258
|
* 初始化视图state
|
|
39229
40259
|
* @author lxm
|
|
@@ -39318,7 +40348,7 @@ var ViewEngineBase = class {
|
|
|
39318
40348
|
const { appDataEntityId } = this.view.model;
|
|
39319
40349
|
const { evt, context, params } = this.view;
|
|
39320
40350
|
if (!appDataEntityId) {
|
|
39321
|
-
throw new RuntimeError68("
|
|
40351
|
+
throw new RuntimeError68(ibiz.i18n.t("runtime.engine.loadEntityData"));
|
|
39322
40352
|
}
|
|
39323
40353
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
39324
40354
|
const res = await app.deService.exec(
|
|
@@ -39596,7 +40626,10 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
39596
40626
|
view: this.view
|
|
39597
40627
|
}));
|
|
39598
40628
|
if (result === -1) {
|
|
39599
|
-
throw new RuntimeModelError73(
|
|
40629
|
+
throw new RuntimeModelError73(
|
|
40630
|
+
this.view.model,
|
|
40631
|
+
ibiz.i18n.t("runtime.engine.logicOpendata")
|
|
40632
|
+
);
|
|
39600
40633
|
} else {
|
|
39601
40634
|
return {
|
|
39602
40635
|
cancel: !result.ok
|
|
@@ -39619,7 +40652,10 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
39619
40652
|
(item) => item.id === "newdata"
|
|
39620
40653
|
);
|
|
39621
40654
|
if (!openAppViewLogic) {
|
|
39622
|
-
throw new RuntimeModelError73(
|
|
40655
|
+
throw new RuntimeModelError73(
|
|
40656
|
+
this.view.model,
|
|
40657
|
+
ibiz.i18n.t("runtime.engine.logicNewdata")
|
|
40658
|
+
);
|
|
39623
40659
|
}
|
|
39624
40660
|
const params = clone34(this.view.params);
|
|
39625
40661
|
if (copyMode) {
|
|
@@ -39633,7 +40669,10 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
39633
40669
|
view: this.view
|
|
39634
40670
|
}));
|
|
39635
40671
|
if (result === -1) {
|
|
39636
|
-
throw new RuntimeModelError73(
|
|
40672
|
+
throw new RuntimeModelError73(
|
|
40673
|
+
this.view.model,
|
|
40674
|
+
ibiz.i18n.t("runtime.engine.logicNewdata")
|
|
40675
|
+
);
|
|
39637
40676
|
} else {
|
|
39638
40677
|
return {
|
|
39639
40678
|
cancel: !result.ok
|
|
@@ -39864,6 +40903,14 @@ var GlobalUtil = class {
|
|
|
39864
40903
|
* @memberof GlobalUtil
|
|
39865
40904
|
*/
|
|
39866
40905
|
this.anime = new AnimeUtil();
|
|
40906
|
+
/**
|
|
40907
|
+
* 最小化工具类
|
|
40908
|
+
*
|
|
40909
|
+
* @author fzh
|
|
40910
|
+
* @date 2024-04-22 09:01:33
|
|
40911
|
+
* @memberof GlobalUtil
|
|
40912
|
+
*/
|
|
40913
|
+
this.shortCut = new ShortCutUtil();
|
|
39867
40914
|
/**
|
|
39868
40915
|
* 文件工具类
|
|
39869
40916
|
*
|
|
@@ -39930,7 +40977,7 @@ var GlobalUtil = class {
|
|
|
39930
40977
|
* @return {*} {IParams}
|
|
39931
40978
|
*/
|
|
39932
40979
|
getGlobalParam() {
|
|
39933
|
-
throw new RuntimeError69("
|
|
40980
|
+
throw new RuntimeError69(ibiz.i18n.t("runtime.global.noImplemented"));
|
|
39934
40981
|
}
|
|
39935
40982
|
/**
|
|
39936
40983
|
* 获取视图路由参数变量,数组类型,基于路由解析出来的,每一个对象里面都有context和params
|
|
@@ -39939,7 +40986,7 @@ var GlobalUtil = class {
|
|
|
39939
40986
|
* @return {*} {IParams}
|
|
39940
40987
|
*/
|
|
39941
40988
|
getRouterParams() {
|
|
39942
|
-
throw new RuntimeError69("
|
|
40989
|
+
throw new RuntimeError69(ibiz.i18n.t("runtime.global.noImplementedRouting"));
|
|
39943
40990
|
}
|
|
39944
40991
|
};
|
|
39945
40992
|
|
|
@@ -39965,7 +41012,9 @@ var LogicExecutor = class {
|
|
|
39965
41012
|
*/
|
|
39966
41013
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39967
41014
|
execute(_executeParams) {
|
|
39968
|
-
throw new RuntimeError70(
|
|
41015
|
+
throw new RuntimeError70(
|
|
41016
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.noImplementedMethod")
|
|
41017
|
+
);
|
|
39969
41018
|
}
|
|
39970
41019
|
/**
|
|
39971
41020
|
* 销毁方法
|
|
@@ -40007,7 +41056,12 @@ var LogicExecutorFactory = class {
|
|
|
40007
41056
|
createExecutor(logic, scheduler) {
|
|
40008
41057
|
const constructor = this.constructorMap.get(logic.logicType);
|
|
40009
41058
|
if (!constructor) {
|
|
40010
|
-
throw new ModelError32(
|
|
41059
|
+
throw new ModelError32(
|
|
41060
|
+
logic,
|
|
41061
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.logicType", {
|
|
41062
|
+
logicType: logic.logicType
|
|
41063
|
+
})
|
|
41064
|
+
);
|
|
40011
41065
|
}
|
|
40012
41066
|
return constructor(logic, scheduler);
|
|
40013
41067
|
}
|
|
@@ -40062,7 +41116,10 @@ var AppDEUILogicExecutor = class extends LogicExecutor {
|
|
|
40062
41116
|
execute(executeParams) {
|
|
40063
41117
|
const { appDEUILogicId, appDataEntityId } = this.logic;
|
|
40064
41118
|
if (!appDEUILogicId) {
|
|
40065
|
-
throw new RuntimeModelError74(
|
|
41119
|
+
throw new RuntimeModelError74(
|
|
41120
|
+
this.logic,
|
|
41121
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
41122
|
+
);
|
|
40066
41123
|
}
|
|
40067
41124
|
return execUILogic(appDEUILogicId, appDataEntityId, executeParams);
|
|
40068
41125
|
}
|
|
@@ -40355,7 +41412,12 @@ var LogicTriggerFactory = class {
|
|
|
40355
41412
|
createTrigger(logic, scheduler) {
|
|
40356
41413
|
const constructor = this.constructorMap.get(logic.triggerType);
|
|
40357
41414
|
if (!constructor) {
|
|
40358
|
-
throw new ModelError33(
|
|
41415
|
+
throw new ModelError33(
|
|
41416
|
+
logic,
|
|
41417
|
+
ibiz.i18n.t("runtime.logicScheduler.trigger.noSupportedType", {
|
|
41418
|
+
triggerType: logic.triggerType
|
|
41419
|
+
})
|
|
41420
|
+
);
|
|
40359
41421
|
}
|
|
40360
41422
|
return constructor(logic, scheduler);
|
|
40361
41423
|
}
|
|
@@ -40462,7 +41524,11 @@ var LogicTrigger = class {
|
|
|
40462
41524
|
if (this.executor) {
|
|
40463
41525
|
return this.executor.execute(executeParams);
|
|
40464
41526
|
}
|
|
40465
|
-
throw new RuntimeError71(
|
|
41527
|
+
throw new RuntimeError71(
|
|
41528
|
+
ibiz.i18n.t("runtime.logicScheduler.trigger.noExecutorBound", {
|
|
41529
|
+
id: this.logic.id
|
|
41530
|
+
})
|
|
41531
|
+
);
|
|
40466
41532
|
}
|
|
40467
41533
|
/**
|
|
40468
41534
|
* 销毁方法
|
|
@@ -40485,7 +41551,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
40485
41551
|
super.bindExecutor(executor);
|
|
40486
41552
|
if (this.executor.type !== "SCRIPT") {
|
|
40487
41553
|
throw new RuntimeError72(
|
|
40488
|
-
|
|
41554
|
+
ibiz.i18n.t("runtime.logicScheduler.trigger.triggerType")
|
|
40489
41555
|
);
|
|
40490
41556
|
}
|
|
40491
41557
|
}
|
|
@@ -40529,11 +41595,16 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
40529
41595
|
}
|
|
40530
41596
|
start() {
|
|
40531
41597
|
if (!this.logic.timer) {
|
|
40532
|
-
throw new RuntimeModelError75(
|
|
41598
|
+
throw new RuntimeModelError75(
|
|
41599
|
+
this.logic,
|
|
41600
|
+
ibiz.i18n.t("runtime.logicScheduler.trigger.timerLacks")
|
|
41601
|
+
);
|
|
40533
41602
|
}
|
|
40534
41603
|
this.timer = setInterval(() => {
|
|
40535
41604
|
if (!this.scheduler.defaultParamsCb) {
|
|
40536
|
-
throw new RuntimeError73(
|
|
41605
|
+
throw new RuntimeError73(
|
|
41606
|
+
ibiz.i18n.t("runtime.logicScheduler.trigger.parameterCallback")
|
|
41607
|
+
);
|
|
40537
41608
|
}
|
|
40538
41609
|
const params = this.scheduler.defaultParamsCb();
|
|
40539
41610
|
this.executor.execute(params);
|
|
@@ -40588,7 +41659,9 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40588
41659
|
const { context, params, ...rest } = parameters;
|
|
40589
41660
|
const { data } = parameters;
|
|
40590
41661
|
if (!(data == null ? void 0 : data[0])) {
|
|
40591
|
-
throw new RuntimeError74(
|
|
41662
|
+
throw new RuntimeError74(
|
|
41663
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.noActionableData")
|
|
41664
|
+
);
|
|
40592
41665
|
}
|
|
40593
41666
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
40594
41667
|
let openViewRef;
|
|
@@ -40599,7 +41672,9 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40599
41672
|
if (!openViewRef) {
|
|
40600
41673
|
throw new RuntimeModelError76(
|
|
40601
41674
|
appUILogic,
|
|
40602
|
-
|
|
41675
|
+
ibiz.i18n.t(
|
|
41676
|
+
"runtime.logicScheduler.executor.defaultOpendataViewLogic"
|
|
41677
|
+
)
|
|
40603
41678
|
);
|
|
40604
41679
|
}
|
|
40605
41680
|
}
|
|
@@ -40607,7 +41682,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40607
41682
|
if (!openView) {
|
|
40608
41683
|
throw new RuntimeModelError76(
|
|
40609
41684
|
appUILogic,
|
|
40610
|
-
"
|
|
41685
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.noActuallyReference")
|
|
40611
41686
|
);
|
|
40612
41687
|
}
|
|
40613
41688
|
const navContexts = openViewRef.navigateContexts || [];
|
|
@@ -40637,19 +41712,26 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40637
41712
|
if (!typeFileName) {
|
|
40638
41713
|
throw new RuntimeModelError76(
|
|
40639
41714
|
appUILogic,
|
|
40640
|
-
|
|
41715
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.attributeConfiguration", {
|
|
41716
|
+
codeName: appDataEntity.codeName
|
|
41717
|
+
})
|
|
40641
41718
|
);
|
|
40642
41719
|
}
|
|
40643
41720
|
const { data } = parameters;
|
|
40644
41721
|
const formTypeValue = data[0][typeFileName];
|
|
40645
41722
|
if (!formTypeValue) {
|
|
40646
|
-
throw new RuntimeModelError76(
|
|
41723
|
+
throw new RuntimeModelError76(
|
|
41724
|
+
appUILogic,
|
|
41725
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.entityAttributeValues")
|
|
41726
|
+
);
|
|
40647
41727
|
}
|
|
40648
41728
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
40649
41729
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
40650
41730
|
if (!findView) {
|
|
40651
41731
|
throw new RuntimeError74(
|
|
40652
|
-
"
|
|
41732
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.editViews", {
|
|
41733
|
+
formTypeValue
|
|
41734
|
+
})
|
|
40653
41735
|
);
|
|
40654
41736
|
}
|
|
40655
41737
|
return findView;
|
|
@@ -40687,17 +41769,20 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40687
41769
|
if (!newViewRef) {
|
|
40688
41770
|
throw new RuntimeModelError76(
|
|
40689
41771
|
appUILogic,
|
|
40690
|
-
"
|
|
41772
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.selectionView")
|
|
40691
41773
|
);
|
|
40692
41774
|
}
|
|
40693
41775
|
} else if (batchAddOnly) {
|
|
40694
|
-
throw new ModelError34(
|
|
41776
|
+
throw new ModelError34(
|
|
41777
|
+
appUILogic,
|
|
41778
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.noSupportedBatchAddOnly")
|
|
41779
|
+
);
|
|
40695
41780
|
} else {
|
|
40696
41781
|
newViewRef = newDataAppView;
|
|
40697
41782
|
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
40698
41783
|
throw new RuntimeModelError76(
|
|
40699
41784
|
appUILogic,
|
|
40700
|
-
"
|
|
41785
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.newdataViewLogic")
|
|
40701
41786
|
);
|
|
40702
41787
|
}
|
|
40703
41788
|
}
|
|
@@ -40759,7 +41844,10 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40759
41844
|
const { wizardAppView, newDataAppViews } = appUILogic;
|
|
40760
41845
|
const { context, params, ...rest } = parameters;
|
|
40761
41846
|
if (!wizardAppView || !wizardAppView.refAppViewId) {
|
|
40762
|
-
throw new RuntimeModelError76(
|
|
41847
|
+
throw new RuntimeModelError76(
|
|
41848
|
+
appUILogic,
|
|
41849
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.indexEntity")
|
|
41850
|
+
);
|
|
40763
41851
|
}
|
|
40764
41852
|
const result = await ibiz.commands.execute(
|
|
40765
41853
|
OpenAppViewCommand.TAG,
|
|
@@ -40773,7 +41861,9 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40773
41861
|
}
|
|
40774
41862
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
40775
41863
|
if (!selectData) {
|
|
40776
|
-
throw new RuntimeError74(
|
|
41864
|
+
throw new RuntimeError74(
|
|
41865
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.checkOne")
|
|
41866
|
+
);
|
|
40777
41867
|
}
|
|
40778
41868
|
const indexType = selectData.srfkey;
|
|
40779
41869
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find(
|
|
@@ -40784,7 +41874,9 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40784
41874
|
);
|
|
40785
41875
|
if (!findView) {
|
|
40786
41876
|
throw new RuntimeError74(
|
|
40787
|
-
"
|
|
41877
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.entitiesAssociated", {
|
|
41878
|
+
indexType
|
|
41879
|
+
})
|
|
40788
41880
|
);
|
|
40789
41881
|
}
|
|
40790
41882
|
return findView;
|
|
@@ -40810,7 +41902,10 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40810
41902
|
const minorDERs = selfDe.minorAppDERSs;
|
|
40811
41903
|
const pickParentDeName = newViewRef.refMode.toLowerCase();
|
|
40812
41904
|
if (!minorDERs) {
|
|
40813
|
-
throw new RuntimeModelError76(
|
|
41905
|
+
throw new RuntimeModelError76(
|
|
41906
|
+
selfDe,
|
|
41907
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.relationships")
|
|
41908
|
+
);
|
|
40814
41909
|
}
|
|
40815
41910
|
let pickParentFieldName = "";
|
|
40816
41911
|
minorDERs == null ? void 0 : minorDERs.forEach((item) => {
|
|
@@ -40821,7 +41916,9 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40821
41916
|
});
|
|
40822
41917
|
if (pickParentFieldName === void 0) {
|
|
40823
41918
|
throw new RuntimeError74(
|
|
40824
|
-
"
|
|
41919
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.foreignKey", {
|
|
41920
|
+
pickParentDeName
|
|
41921
|
+
})
|
|
40825
41922
|
);
|
|
40826
41923
|
}
|
|
40827
41924
|
const keyMapping = {
|
|
@@ -40839,7 +41936,10 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40839
41936
|
}
|
|
40840
41937
|
}
|
|
40841
41938
|
}
|
|
40842
|
-
ibiz.log.debug(
|
|
41939
|
+
ibiz.log.debug(
|
|
41940
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.mappingProperties"),
|
|
41941
|
+
keyMapping
|
|
41942
|
+
);
|
|
40843
41943
|
const addData = selections.map((item) => {
|
|
40844
41944
|
const tempData = {};
|
|
40845
41945
|
Object.keys(keyMapping).forEach((key) => {
|
|
@@ -40848,7 +41948,10 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
40848
41948
|
});
|
|
40849
41949
|
return tempData;
|
|
40850
41950
|
});
|
|
40851
|
-
ibiz.log.debug(
|
|
41951
|
+
ibiz.log.debug(
|
|
41952
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.newCreationData"),
|
|
41953
|
+
addData
|
|
41954
|
+
);
|
|
40852
41955
|
const service = ibiz.hub.getApp(context.srfappid).deService;
|
|
40853
41956
|
await service.exec(selfDe.id, "Create", context, addData);
|
|
40854
41957
|
}
|
|
@@ -40914,7 +42017,7 @@ var AppDEUIActionExecutor = class extends LogicExecutor {
|
|
|
40914
42017
|
if (!this.logic.appDEUIActionId) {
|
|
40915
42018
|
throw new RuntimeModelError77(
|
|
40916
42019
|
this.logic,
|
|
40917
|
-
"
|
|
42020
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.missingTrigger")
|
|
40918
42021
|
);
|
|
40919
42022
|
}
|
|
40920
42023
|
UIActionUtil.execAndResolved(
|
|
@@ -41107,6 +42210,7 @@ export {
|
|
|
41107
42210
|
AppDataEntity,
|
|
41108
42211
|
AppDataUploadViewController,
|
|
41109
42212
|
AppFuncCommand,
|
|
42213
|
+
AppLoginViewController,
|
|
41110
42214
|
AppMenuController,
|
|
41111
42215
|
AppMenuIconViewController,
|
|
41112
42216
|
Application,
|
|
@@ -41276,6 +42380,7 @@ export {
|
|
|
41276
42380
|
SearchFilter,
|
|
41277
42381
|
SearchFormController,
|
|
41278
42382
|
SearchFormService,
|
|
42383
|
+
ShortCutUtil,
|
|
41279
42384
|
Srfuf,
|
|
41280
42385
|
StudioControlEvents,
|
|
41281
42386
|
StudioPanelEvents,
|