@ibiz-template/runtime 0.7.7 → 0.7.9
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 +688 -174
- package/dist/index.system.min.js +1 -1
- package/out/command/app/app-func/app-func.d.ts.map +1 -1
- package/out/command/app/app-func/app-func.js +12 -6
- package/out/controller/common/control/control.controller.d.ts.map +1 -1
- package/out/controller/common/control/control.controller.js +11 -3
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +4 -4
- package/out/controller/common/editor/code-list-editor.controller.d.ts.map +1 -1
- package/out/controller/common/editor/code-list-editor.controller.js +3 -1
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +16 -5
- package/out/controller/control/app-menu/app-menu.controller.d.ts.map +1 -1
- package/out/controller/control/app-menu/app-menu.controller.js +2 -2
- package/out/controller/control/app-menu-icon-view/app-menu-icon-view.controller.d.ts.map +1 -1
- package/out/controller/control/app-menu-icon-view/app-menu-icon-view.controller.js +2 -2
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +3 -1
- package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.service.js +2 -2
- package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
- package/out/controller/control/chart/chart.controller.js +2 -2
- package/out/controller/control/chart/generator/bar-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/bar-series-generator.js +2 -2
- package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/base-series-generator.js +2 -2
- package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/chart-options-generator.js +6 -2
- package/out/controller/control/chart/generator/line-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/line-series-generator.js +2 -2
- package/out/controller/control/chart/generator/scatter-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/scatter-series-generator.js +2 -2
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts +6 -0
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/custom-dashboard.controller.js +9 -0
- package/out/controller/control/dashboard/dashboard.controller.d.ts +7 -0
- package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.controller.js +13 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts +6 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.js +19 -0
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.d.ts +12 -2
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.js +14 -0
- package/out/controller/control/data-view/data-view.controller.d.ts.map +1 -1
- package/out/controller/control/data-view/data-view.controller.js +5 -5
- package/out/controller/control/exp-bar/calendar-exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/calendar-exp-bar.controller.js +3 -1
- package/out/controller/control/exp-bar/exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/exp-bar.controller.js +4 -2
- package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/tree-exp-bar.controller.js +6 -2
- package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.controller.js +15 -9
- package/out/controller/control/form/edit-form/edit-form.service.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.service.js +1 -1
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +5 -2
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.js +3 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +4 -2
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.js +5 -3
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +3 -1
- package/out/controller/control/form/search-form/search-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/search-form/search-form.controller.js +2 -2
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +16 -14
- package/out/controller/control/gantt/gantt.service.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.service.js +3 -1
- package/out/controller/control/grid/grid/entity-schema.d.ts.map +1 -1
- package/out/controller/control/grid/grid/entity-schema.js +3 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +27 -17
- package/out/controller/control/grid/grid/grid.service.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.service.js +3 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +13 -5
- package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.js +7 -2
- package/out/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.js +2 -2
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +9 -7
- package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts.map +1 -1
- package/out/controller/control/md-ctrl/md-ctrl.controller.js +3 -3
- package/out/controller/control/medit-view-panel/medit-view-panel.controller.d.ts.map +1 -1
- package/out/controller/control/medit-view-panel/medit-view-panel.controller.js +4 -2
- package/out/controller/control/panel/panel/panel.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel.controller.js +1 -1
- package/out/controller/control/report-panel/generator/generator-factory.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/generator-factory.js +4 -2
- package/out/controller/control/search-bar/entity-schema.d.ts.map +1 -1
- package/out/controller/control/search-bar/entity-schema.js +6 -2
- package/out/controller/control/search-bar/search-bar-filter-items.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar-filter-items.controller.js +3 -1
- package/out/controller/control/search-bar/search-bar-filter.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar-filter.controller.js +1 -1
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +7 -3
- package/out/controller/control/toolbar/toolbar.controllerr.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controllerr.js +3 -1
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +5 -5
- package/out/controller/control/tree/tree.service.d.ts.map +1 -1
- package/out/controller/control/tree/tree.service.js +3 -1
- package/out/controller/control/tree-grid/tree-grid.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid/tree-grid.controller.js +2 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.d.ts.map +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 +9 -3
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.controller.js +4 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +7 -7
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts.map +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.js +11 -7
- package/out/controller/utils/button-state/ui-action-button.state.d.ts.map +1 -1
- package/out/controller/utils/button-state/ui-action-button.state.js +5 -1
- package/out/controller/utils/counter/counter.d.ts.map +1 -1
- package/out/controller/utils/counter/counter.js +1 -1
- package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
- package/out/controller/utils/data-file-util/data-file-util.js +3 -3
- package/out/controller/utils/value-default/value-default.d.ts.map +1 -1
- package/out/controller/utils/value-default/value-default.js +4 -2
- package/out/controller/utils/value-ex/value-ex.d.ts.map +1 -1
- package/out/controller/utils/value-ex/value-ex.js +1 -1
- package/out/controller/utils/value-rule/value-rule.d.ts.map +1 -1
- package/out/controller/utils/value-rule/value-rule.js +4 -1
- package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +6 -2
- package/out/interface/controller/controller/control/portlet/i-portlet.controller.d.ts +13 -0
- package/out/interface/controller/controller/control/portlet/i-portlet.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-dashboard.event.d.ts +18 -0
- package/out/interface/controller/event/control/i-dashboard.event.d.ts.map +1 -1
- package/out/service/service/counter/counter.service.js +2 -2
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -7988,8 +7988,8 @@ var CounterService = class {
|
|
|
7988
7988
|
*/
|
|
7989
7989
|
static async getCounter(model, context, params) {
|
|
7990
7990
|
let id = model.id;
|
|
7991
|
-
if (params && params.
|
|
7992
|
-
id = params.
|
|
7991
|
+
if (params && params.srfcustomtag) {
|
|
7992
|
+
id = params.srfcustomtag;
|
|
7993
7993
|
}
|
|
7994
7994
|
if (this.counterMap.has(id)) {
|
|
7995
7995
|
const counter2 = this.counterMap.get(id);
|
|
@@ -13864,7 +13864,11 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13864
13864
|
const app = await ibiz.hub.getAppAsync(context.srfappid);
|
|
13865
13865
|
const appFunc = app.getAppFunc(appFuncId);
|
|
13866
13866
|
if (!appFunc) {
|
|
13867
|
-
throw new RuntimeError26(
|
|
13867
|
+
throw new RuntimeError26(
|
|
13868
|
+
ibiz.i18n.t("runtime.command.app.notFindApplicationFunction", {
|
|
13869
|
+
appFuncId
|
|
13870
|
+
})
|
|
13871
|
+
);
|
|
13868
13872
|
}
|
|
13869
13873
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
13870
13874
|
const _context = context.clone();
|
|
@@ -13883,7 +13887,12 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13883
13887
|
case "CUSTOM":
|
|
13884
13888
|
return this.custom(appFunc, _context, _params);
|
|
13885
13889
|
default:
|
|
13886
|
-
throw new ModelError16(
|
|
13890
|
+
throw new ModelError16(
|
|
13891
|
+
appFunc,
|
|
13892
|
+
ibiz.i18n.t("runtime.command.app.notFindApplicationFunctionYype", {
|
|
13893
|
+
appFuncType
|
|
13894
|
+
})
|
|
13895
|
+
);
|
|
13887
13896
|
}
|
|
13888
13897
|
}
|
|
13889
13898
|
/**
|
|
@@ -13899,7 +13908,11 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13899
13908
|
*/
|
|
13900
13909
|
async openAppView(appFunc, context, params, opts) {
|
|
13901
13910
|
if (!appFunc.appViewId) {
|
|
13902
|
-
throw new RuntimeError26(
|
|
13911
|
+
throw new RuntimeError26(
|
|
13912
|
+
ibiz.i18n.t("runtime.command.app.notFindApplicationView", {
|
|
13913
|
+
appViewId: appFunc.appViewId
|
|
13914
|
+
})
|
|
13915
|
+
);
|
|
13903
13916
|
}
|
|
13904
13917
|
return ibiz.commands.execute(
|
|
13905
13918
|
OpenAppViewCommand.TAG,
|
|
@@ -13933,7 +13946,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13933
13946
|
*/
|
|
13934
13947
|
openPdAppFunc(appFunc, context, params) {
|
|
13935
13948
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
13936
|
-
throw new RuntimeError26("
|
|
13949
|
+
throw new RuntimeError26(ibiz.i18n.t("runtime.common.unrealized"));
|
|
13937
13950
|
}
|
|
13938
13951
|
/**
|
|
13939
13952
|
* 执行 JavaScript 脚本
|
|
@@ -13947,7 +13960,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13947
13960
|
*/
|
|
13948
13961
|
executeJavaScript(appFunc, context, params) {
|
|
13949
13962
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
13950
|
-
throw new RuntimeError26("
|
|
13963
|
+
throw new RuntimeError26(ibiz.i18n.t("runtime.common.unrealized"));
|
|
13951
13964
|
}
|
|
13952
13965
|
/**
|
|
13953
13966
|
* 自定义应用功能
|
|
@@ -13961,7 +13974,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13961
13974
|
*/
|
|
13962
13975
|
custom(appFunc, context, params) {
|
|
13963
13976
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
13964
|
-
throw new RuntimeError26("
|
|
13977
|
+
throw new RuntimeError26(ibiz.i18n.t("runtime.common.unrealized"));
|
|
13965
13978
|
}
|
|
13966
13979
|
};
|
|
13967
13980
|
/**
|
|
@@ -14418,7 +14431,9 @@ var Counter = class {
|
|
|
14418
14431
|
return;
|
|
14419
14432
|
}
|
|
14420
14433
|
if (this.count === 0) {
|
|
14421
|
-
throw new RuntimeError28(
|
|
14434
|
+
throw new RuntimeError28(
|
|
14435
|
+
ibiz.i18n.t("runtime.controller.utils.counter.decrement")
|
|
14436
|
+
);
|
|
14422
14437
|
}
|
|
14423
14438
|
this.count -= 1;
|
|
14424
14439
|
if (this.count === 0) {
|
|
@@ -14774,7 +14789,14 @@ var UIActionButtonState = class {
|
|
|
14774
14789
|
const app = await ibiz.hub.getApp(this.appId);
|
|
14775
14790
|
if (this.appDeName && appDeId && !appDeId.includes(this.appDeName)) {
|
|
14776
14791
|
ibiz.log.warn(
|
|
14777
|
-
|
|
14792
|
+
ibiz.i18n.t(
|
|
14793
|
+
"runtime.controller.utils.buttonState.isFinitenconsistency",
|
|
14794
|
+
{
|
|
14795
|
+
uiActionId: this.uiActionId,
|
|
14796
|
+
appDeName: this.appDeName,
|
|
14797
|
+
appDeId
|
|
14798
|
+
}
|
|
14799
|
+
)
|
|
14778
14800
|
);
|
|
14779
14801
|
}
|
|
14780
14802
|
this.permitted = await app.authority.calcByDataAccessAction(
|
|
@@ -15079,7 +15101,10 @@ function generateEditorRules(editor) {
|
|
|
15079
15101
|
if (!isNil18(value) && value.length > maxLength) {
|
|
15080
15102
|
callback(
|
|
15081
15103
|
new Error(
|
|
15082
|
-
|
|
15104
|
+
ibiz.i18n.t("runtime.controller.utils.valueRule.length", {
|
|
15105
|
+
maxLength,
|
|
15106
|
+
length: value.length
|
|
15107
|
+
})
|
|
15083
15108
|
)
|
|
15084
15109
|
);
|
|
15085
15110
|
} else {
|
|
@@ -15161,7 +15186,9 @@ var ValueExUtil = class {
|
|
|
15161
15186
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
15162
15187
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
15163
15188
|
if (!objectNameField) {
|
|
15164
|
-
throw new RuntimeError30(
|
|
15189
|
+
throw new RuntimeError30(
|
|
15190
|
+
ibiz.i18n.t("runtime.controller.utils.valueEx.objectNameField")
|
|
15191
|
+
);
|
|
15165
15192
|
}
|
|
15166
15193
|
const textKey = objectNameField.toLowerCase();
|
|
15167
15194
|
if (valueType === "OBJECTS") {
|
|
@@ -15218,7 +15245,9 @@ function getDefaultValue(opts, origins) {
|
|
|
15218
15245
|
case "SESSION":
|
|
15219
15246
|
case "APPLICATION":
|
|
15220
15247
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
15221
|
-
throw new RuntimeError31(
|
|
15248
|
+
throw new RuntimeError31(
|
|
15249
|
+
ibiz.i18n.t("runtime.controller.utils.valueDefault.notExist")
|
|
15250
|
+
);
|
|
15222
15251
|
}
|
|
15223
15252
|
return ibiz.appData.context[defaultValue];
|
|
15224
15253
|
case "CONTEXT":
|
|
@@ -15226,7 +15255,12 @@ function getDefaultValue(opts, origins) {
|
|
|
15226
15255
|
case "UNIQUEID":
|
|
15227
15256
|
return createUUID8();
|
|
15228
15257
|
default:
|
|
15229
|
-
throw new ModelError17(
|
|
15258
|
+
throw new ModelError17(
|
|
15259
|
+
{},
|
|
15260
|
+
ibiz.i18n.t("runtime.controller.utils.valueDefault.notsupported", {
|
|
15261
|
+
valueType
|
|
15262
|
+
})
|
|
15263
|
+
);
|
|
15230
15264
|
}
|
|
15231
15265
|
}
|
|
15232
15266
|
|
|
@@ -15337,11 +15371,15 @@ async function importData2(opts) {
|
|
|
15337
15371
|
}
|
|
15338
15372
|
async function exportData(header, data, fileName) {
|
|
15339
15373
|
if (!ibiz.util.getExcelUtil) {
|
|
15340
|
-
throw new RuntimeError32(
|
|
15374
|
+
throw new RuntimeError32(
|
|
15375
|
+
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.notExist")
|
|
15376
|
+
);
|
|
15341
15377
|
}
|
|
15342
15378
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
15343
15379
|
if (!exportExcel) {
|
|
15344
|
-
throw new RuntimeError32(
|
|
15380
|
+
throw new RuntimeError32(
|
|
15381
|
+
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.loadError")
|
|
15382
|
+
);
|
|
15345
15383
|
}
|
|
15346
15384
|
try {
|
|
15347
15385
|
exportExcel.exportJsonToExcel({
|
|
@@ -15369,7 +15407,9 @@ async function getDataImportModels(opts) {
|
|
|
15369
15407
|
(item) => item.id === opts.deDataImportId
|
|
15370
15408
|
);
|
|
15371
15409
|
if (!deDataImport) {
|
|
15372
|
-
throw new RuntimeError32(
|
|
15410
|
+
throw new RuntimeError32(
|
|
15411
|
+
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.importData")
|
|
15412
|
+
);
|
|
15373
15413
|
}
|
|
15374
15414
|
return { deDataImport, appDataEntity };
|
|
15375
15415
|
}
|
|
@@ -15835,7 +15875,11 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
15835
15875
|
(item) => item.id === this.msgGroupId
|
|
15836
15876
|
);
|
|
15837
15877
|
if (!msgGroup) {
|
|
15838
|
-
throw new RuntimeError33(
|
|
15878
|
+
throw new RuntimeError33(
|
|
15879
|
+
ibiz.i18n.t("runtime.controller.utils.viewMsg.message", {
|
|
15880
|
+
msgGroupId: this.msgGroupId
|
|
15881
|
+
})
|
|
15882
|
+
);
|
|
15839
15883
|
}
|
|
15840
15884
|
this.msgGroup = msgGroup;
|
|
15841
15885
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -15850,7 +15894,9 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
15850
15894
|
});
|
|
15851
15895
|
if (msgDetailsViewMsgIds.length) {
|
|
15852
15896
|
throw new RuntimeError33(
|
|
15853
|
-
|
|
15897
|
+
ibiz.i18n.t("runtime.controller.utils.viewMsg.noFound", {
|
|
15898
|
+
message: msgDetailsViewMsgIds.join(",")
|
|
15899
|
+
})
|
|
15854
15900
|
);
|
|
15855
15901
|
}
|
|
15856
15902
|
}
|
|
@@ -16100,7 +16146,12 @@ var ViewController = class extends BaseController {
|
|
|
16100
16146
|
*/
|
|
16101
16147
|
onActivated() {
|
|
16102
16148
|
this.state.activated = true;
|
|
16103
|
-
ibiz.log.debug(
|
|
16149
|
+
ibiz.log.debug(
|
|
16150
|
+
ibiz.i18n.t("runtime.controller.common.view.viewActivation", {
|
|
16151
|
+
name: this.model.name,
|
|
16152
|
+
id: this.model.id
|
|
16153
|
+
})
|
|
16154
|
+
);
|
|
16104
16155
|
}
|
|
16105
16156
|
/**
|
|
16106
16157
|
* 视图暂时停用
|
|
@@ -16110,7 +16161,12 @@ var ViewController = class extends BaseController {
|
|
|
16110
16161
|
*/
|
|
16111
16162
|
onDeactivated() {
|
|
16112
16163
|
this.state.activated = false;
|
|
16113
|
-
ibiz.log.debug(
|
|
16164
|
+
ibiz.log.debug(
|
|
16165
|
+
ibiz.i18n.t("runtime.controller.common.view.viewPause", {
|
|
16166
|
+
name: this.model.name,
|
|
16167
|
+
id: this.model.id
|
|
16168
|
+
})
|
|
16169
|
+
);
|
|
16114
16170
|
}
|
|
16115
16171
|
/**
|
|
16116
16172
|
* 初始化引擎
|
|
@@ -16126,7 +16182,10 @@ var ViewController = class extends BaseController {
|
|
|
16126
16182
|
if (ins) {
|
|
16127
16183
|
this.engines.push(ins);
|
|
16128
16184
|
} else {
|
|
16129
|
-
ibiz.log.warn(
|
|
16185
|
+
ibiz.log.warn(
|
|
16186
|
+
ibiz.i18n.t("runtime.controller.common.view.notFoundViewEngine"),
|
|
16187
|
+
engine2
|
|
16188
|
+
);
|
|
16130
16189
|
}
|
|
16131
16190
|
});
|
|
16132
16191
|
} else {
|
|
@@ -16248,7 +16307,12 @@ var ViewController = class extends BaseController {
|
|
|
16248
16307
|
ibiz.uiDomainManager.destroy(srfSessionId);
|
|
16249
16308
|
}
|
|
16250
16309
|
this.context.destroy();
|
|
16251
|
-
ibiz.log.debug(
|
|
16310
|
+
ibiz.log.debug(
|
|
16311
|
+
ibiz.i18n.t("runtime.controller.common.view.viewDestroy", {
|
|
16312
|
+
name: this.model.name,
|
|
16313
|
+
id: this.model.id
|
|
16314
|
+
})
|
|
16315
|
+
);
|
|
16252
16316
|
ibiz.mc.error.off(this.handleViewError);
|
|
16253
16317
|
}
|
|
16254
16318
|
/**
|
|
@@ -16300,7 +16364,11 @@ var ViewController = class extends BaseController {
|
|
|
16300
16364
|
async callUIAction(key, args) {
|
|
16301
16365
|
const result = this.call(key, args);
|
|
16302
16366
|
if (result === void 0) {
|
|
16303
|
-
throw new RuntimeError34(
|
|
16367
|
+
throw new RuntimeError34(
|
|
16368
|
+
ibiz.i18n.t("runtime.controller.common.view.noSupportBehavior", {
|
|
16369
|
+
key
|
|
16370
|
+
})
|
|
16371
|
+
);
|
|
16304
16372
|
}
|
|
16305
16373
|
return result;
|
|
16306
16374
|
}
|
|
@@ -16749,7 +16817,9 @@ var CodeListEditorController = class extends EditorController {
|
|
|
16749
16817
|
}
|
|
16750
16818
|
throw new RuntimeModelError25(
|
|
16751
16819
|
this.model,
|
|
16752
|
-
|
|
16820
|
+
ibiz.i18n.t("runtime.controller.common.editor.editorNotConfigured", {
|
|
16821
|
+
editorType: this.model.editorType
|
|
16822
|
+
})
|
|
16753
16823
|
);
|
|
16754
16824
|
}
|
|
16755
16825
|
};
|
|
@@ -16984,7 +17054,12 @@ var ControlController = class extends BaseController {
|
|
|
16984
17054
|
});
|
|
16985
17055
|
}
|
|
16986
17056
|
this.awaitActiveCbs.clear();
|
|
16987
|
-
ibiz.log.debug(
|
|
17057
|
+
ibiz.log.debug(
|
|
17058
|
+
ibiz.i18n.t("runtime.controller.common.control.componentActivation", {
|
|
17059
|
+
name: this.model.name,
|
|
17060
|
+
id: this.model.id
|
|
17061
|
+
})
|
|
17062
|
+
);
|
|
16988
17063
|
}
|
|
16989
17064
|
/**
|
|
16990
17065
|
* 部件暂时停用
|
|
@@ -16994,7 +17069,12 @@ var ControlController = class extends BaseController {
|
|
|
16994
17069
|
*/
|
|
16995
17070
|
onDeactivated() {
|
|
16996
17071
|
this.state.activated = false;
|
|
16997
|
-
ibiz.log.debug(
|
|
17072
|
+
ibiz.log.debug(
|
|
17073
|
+
ibiz.i18n.t("runtime.controller.common.control.componentPause", {
|
|
17074
|
+
name: this.model.name,
|
|
17075
|
+
id: this.model.id
|
|
17076
|
+
})
|
|
17077
|
+
);
|
|
16998
17078
|
}
|
|
16999
17079
|
/**
|
|
17000
17080
|
* 处理数据能力方法通用参数,返回能力执行最终使用的参数
|
|
@@ -17165,7 +17245,11 @@ var ControlController = class extends BaseController {
|
|
|
17165
17245
|
ibiz.mc.command.remove.send(msg, meta);
|
|
17166
17246
|
break;
|
|
17167
17247
|
default:
|
|
17168
|
-
throw new RuntimeError35(
|
|
17248
|
+
throw new RuntimeError35(
|
|
17249
|
+
ibiz.i18n.t("runtime.controller.common.control.unsupportedType", {
|
|
17250
|
+
type
|
|
17251
|
+
})
|
|
17252
|
+
);
|
|
17169
17253
|
}
|
|
17170
17254
|
}
|
|
17171
17255
|
/**
|
|
@@ -17462,12 +17546,16 @@ var MDControlController = class extends ControlController {
|
|
|
17462
17546
|
async remove(args) {
|
|
17463
17547
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
17464
17548
|
if (!(data == null ? void 0 : data.length)) {
|
|
17465
|
-
throw new RuntimeError36(
|
|
17549
|
+
throw new RuntimeError36(
|
|
17550
|
+
ibiz.i18n.t("runtime.controller.common.control.uncheckedData")
|
|
17551
|
+
);
|
|
17466
17552
|
}
|
|
17467
17553
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
17468
17554
|
const del = await ibiz.confirm.error({
|
|
17469
|
-
title: "
|
|
17470
|
-
desc:
|
|
17555
|
+
title: ibiz.i18n.t("runtime.controller.common.control.dataDeletion"),
|
|
17556
|
+
desc: ibiz.i18n.t(
|
|
17557
|
+
"runtime.controller.common.control.confirmDataDeletion"
|
|
17558
|
+
)
|
|
17471
17559
|
});
|
|
17472
17560
|
if (!del) {
|
|
17473
17561
|
return;
|
|
@@ -17617,7 +17705,10 @@ var MDControlController = class extends ControlController {
|
|
|
17617
17705
|
async importData() {
|
|
17618
17706
|
const { appDataEntityId, dedataImportId } = this.model;
|
|
17619
17707
|
if (!appDataEntityId || !dedataImportId) {
|
|
17620
|
-
throw new RuntimeModelError26(
|
|
17708
|
+
throw new RuntimeModelError26(
|
|
17709
|
+
this.model,
|
|
17710
|
+
ibiz.i18n.t("runtime.controller.common.control.noImportModel")
|
|
17711
|
+
);
|
|
17621
17712
|
}
|
|
17622
17713
|
await openDataImport({
|
|
17623
17714
|
appDataEntityId,
|
|
@@ -17750,7 +17841,9 @@ var AppMenuController = class extends ControlController {
|
|
|
17750
17841
|
childrenFields: ["appMenuItems"]
|
|
17751
17842
|
});
|
|
17752
17843
|
if (!menuItem) {
|
|
17753
|
-
throw new RuntimeError37(
|
|
17844
|
+
throw new RuntimeError37(
|
|
17845
|
+
ibiz.i18n.t("runtime.controller.control.menu.notFindMenu", { id })
|
|
17846
|
+
);
|
|
17754
17847
|
}
|
|
17755
17848
|
this.evt.emit("onClick", {
|
|
17756
17849
|
eventArg: id,
|
|
@@ -17761,7 +17854,10 @@ var AppMenuController = class extends ControlController {
|
|
|
17761
17854
|
return provider.onClick(menuItem, event, this);
|
|
17762
17855
|
}
|
|
17763
17856
|
if (!menuItem.appFuncId) {
|
|
17764
|
-
throw new RuntimeModelError27(
|
|
17857
|
+
throw new RuntimeModelError27(
|
|
17858
|
+
menuItem,
|
|
17859
|
+
ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
|
|
17860
|
+
);
|
|
17765
17861
|
}
|
|
17766
17862
|
const tempContext = this.context.clone();
|
|
17767
17863
|
tempContext.srfappid = menuItem.appId || ibiz.env.appId;
|
|
@@ -17890,14 +17986,19 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
17890
17986
|
childrenFields: ["appMenuItems"]
|
|
17891
17987
|
});
|
|
17892
17988
|
if (!menuItem) {
|
|
17893
|
-
throw new RuntimeError38(
|
|
17989
|
+
throw new RuntimeError38(
|
|
17990
|
+
ibiz.i18n.t("runtime.controller.control.menu.notFindMenu", { id })
|
|
17991
|
+
);
|
|
17894
17992
|
}
|
|
17895
17993
|
this.evt.emit("onClick", {
|
|
17896
17994
|
eventArg: id,
|
|
17897
17995
|
event
|
|
17898
17996
|
});
|
|
17899
17997
|
if (!menuItem.appFuncId) {
|
|
17900
|
-
throw new RuntimeModelError28(
|
|
17998
|
+
throw new RuntimeModelError28(
|
|
17999
|
+
menuItem,
|
|
18000
|
+
ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
|
|
18001
|
+
);
|
|
17901
18002
|
}
|
|
17902
18003
|
const tempContext = this.context.clone();
|
|
17903
18004
|
if (this.routeDepth === 1) {
|
|
@@ -17975,11 +18076,15 @@ var CalendarService = class extends MDControlService {
|
|
|
17975
18076
|
setCalendarConfigData(items, index) {
|
|
17976
18077
|
const { sysCalendarItems } = this.model;
|
|
17977
18078
|
if (!sysCalendarItems) {
|
|
17978
|
-
throw new RuntimeError39(
|
|
18079
|
+
throw new RuntimeError39(
|
|
18080
|
+
ibiz.i18n.t("runtime.controller.control.calendar.notFoundModel")
|
|
18081
|
+
);
|
|
17979
18082
|
}
|
|
17980
18083
|
const calendarItem = sysCalendarItems[index];
|
|
17981
18084
|
if (!calendarItem) {
|
|
17982
|
-
throw new RuntimeError39(
|
|
18085
|
+
throw new RuntimeError39(
|
|
18086
|
+
ibiz.i18n.t("runtime.controller.control.calendar.notFoundModel")
|
|
18087
|
+
);
|
|
17983
18088
|
}
|
|
17984
18089
|
return items.map((item) => {
|
|
17985
18090
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -18098,7 +18203,9 @@ var CalendarController = class extends MDControlController {
|
|
|
18098
18203
|
if (result === -1) {
|
|
18099
18204
|
throw new RuntimeModelError29(
|
|
18100
18205
|
this.model,
|
|
18101
|
-
|
|
18206
|
+
ibiz.i18n.t("runtime.controller.control.calendar.missingViewLogic", {
|
|
18207
|
+
itemType: item.itemType.toLowerCase()
|
|
18208
|
+
})
|
|
18102
18209
|
);
|
|
18103
18210
|
} else {
|
|
18104
18211
|
return {
|
|
@@ -18320,10 +18427,16 @@ var BaseSeriesGenerator = class {
|
|
|
18320
18427
|
this.chartGenerator = chartGenerator;
|
|
18321
18428
|
const { chartSeriesEncode, caption, id, userParam } = model;
|
|
18322
18429
|
if (!model.catalogField) {
|
|
18323
|
-
throw new RuntimeModelError30(
|
|
18430
|
+
throw new RuntimeModelError30(
|
|
18431
|
+
model,
|
|
18432
|
+
ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
|
|
18433
|
+
);
|
|
18324
18434
|
}
|
|
18325
18435
|
if (!model.valueField) {
|
|
18326
|
-
throw new RuntimeModelError30(
|
|
18436
|
+
throw new RuntimeModelError30(
|
|
18437
|
+
model,
|
|
18438
|
+
ibiz.i18n.t("runtime.controller.control.chart.missingValue")
|
|
18439
|
+
);
|
|
18327
18440
|
}
|
|
18328
18441
|
this.catalogField = chartGenerator.getFieldKey(model.catalogField);
|
|
18329
18442
|
this.valueField = chartGenerator.getFieldKey(model.valueField);
|
|
@@ -18747,10 +18860,16 @@ var BaseSeriesGenerator = class {
|
|
|
18747
18860
|
var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
18748
18861
|
calcStaticOptions() {
|
|
18749
18862
|
if (this.xAxisIndex === void 0) {
|
|
18750
|
-
throw new RuntimeModelError31(
|
|
18863
|
+
throw new RuntimeModelError31(
|
|
18864
|
+
this.model,
|
|
18865
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredX")
|
|
18866
|
+
);
|
|
18751
18867
|
}
|
|
18752
18868
|
if (this.yAxisIndex === void 0) {
|
|
18753
|
-
throw new RuntimeModelError31(
|
|
18869
|
+
throw new RuntimeModelError31(
|
|
18870
|
+
this.model,
|
|
18871
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredY")
|
|
18872
|
+
);
|
|
18754
18873
|
}
|
|
18755
18874
|
const options = super.calcStaticOptions();
|
|
18756
18875
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -18770,10 +18889,16 @@ import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
|
18770
18889
|
var BarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
18771
18890
|
calcStaticOptions() {
|
|
18772
18891
|
if (this.xAxisIndex === void 0) {
|
|
18773
|
-
throw new RuntimeModelError32(
|
|
18892
|
+
throw new RuntimeModelError32(
|
|
18893
|
+
this.model,
|
|
18894
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredX")
|
|
18895
|
+
);
|
|
18774
18896
|
}
|
|
18775
18897
|
if (this.yAxisIndex === void 0) {
|
|
18776
|
-
throw new RuntimeModelError32(
|
|
18898
|
+
throw new RuntimeModelError32(
|
|
18899
|
+
this.model,
|
|
18900
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredY")
|
|
18901
|
+
);
|
|
18777
18902
|
}
|
|
18778
18903
|
const options = super.calcStaticOptions();
|
|
18779
18904
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -18830,10 +18955,16 @@ import { RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
|
|
|
18830
18955
|
var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
|
|
18831
18956
|
calcStaticOptions() {
|
|
18832
18957
|
if (this.xAxisIndex === void 0) {
|
|
18833
|
-
throw new RuntimeModelError33(
|
|
18958
|
+
throw new RuntimeModelError33(
|
|
18959
|
+
this.model,
|
|
18960
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredX")
|
|
18961
|
+
);
|
|
18834
18962
|
}
|
|
18835
18963
|
if (this.yAxisIndex === void 0) {
|
|
18836
|
-
throw new RuntimeModelError33(
|
|
18964
|
+
throw new RuntimeModelError33(
|
|
18965
|
+
this.model,
|
|
18966
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredY")
|
|
18967
|
+
);
|
|
18837
18968
|
}
|
|
18838
18969
|
const options = super.calcStaticOptions();
|
|
18839
18970
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -19076,7 +19207,11 @@ var ChartOptionsGenerator2 = class {
|
|
|
19076
19207
|
seriesGenerator = new RadarSeriesGenerator(series, this);
|
|
19077
19208
|
break;
|
|
19078
19209
|
default:
|
|
19079
|
-
ibiz.log.error(
|
|
19210
|
+
ibiz.log.error(
|
|
19211
|
+
ibiz.i18n.t("runtime.controller.control.chart.notSupportSequence", {
|
|
19212
|
+
seriesType: series.seriesType
|
|
19213
|
+
})
|
|
19214
|
+
);
|
|
19080
19215
|
break;
|
|
19081
19216
|
}
|
|
19082
19217
|
if (seriesGenerator) {
|
|
@@ -19274,7 +19409,11 @@ var ChartOptionsGenerator2 = class {
|
|
|
19274
19409
|
getChartDataByParams(params) {
|
|
19275
19410
|
const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
|
|
19276
19411
|
if (!generator) {
|
|
19277
|
-
throw new RuntimeError40(
|
|
19412
|
+
throw new RuntimeError40(
|
|
19413
|
+
ibiz.i18n.t("runtime.controller.control.chart.notFindSequence", {
|
|
19414
|
+
seriesIndex: params.seriesIndex
|
|
19415
|
+
})
|
|
19416
|
+
);
|
|
19278
19417
|
}
|
|
19279
19418
|
return generator.getChartDataByParams(params);
|
|
19280
19419
|
}
|
|
@@ -19554,10 +19693,14 @@ var ChartController = class extends MDControlController {
|
|
|
19554
19693
|
*/
|
|
19555
19694
|
updateChart() {
|
|
19556
19695
|
if (!this.chart) {
|
|
19557
|
-
throw new RuntimeError41(
|
|
19696
|
+
throw new RuntimeError41(
|
|
19697
|
+
ibiz.i18n.t("runtime.controller.control.chart.notInitialised")
|
|
19698
|
+
);
|
|
19558
19699
|
}
|
|
19559
19700
|
if (!this.options) {
|
|
19560
|
-
throw new RuntimeError41(
|
|
19701
|
+
throw new RuntimeError41(
|
|
19702
|
+
ibiz.i18n.t("runtime.controller.control.chart.notCalculated")
|
|
19703
|
+
);
|
|
19561
19704
|
}
|
|
19562
19705
|
this.chart.setOption(this.options, { notMerge: true });
|
|
19563
19706
|
this.resizeChart();
|
|
@@ -22003,7 +22146,11 @@ var ToolbarController = class extends ControlController {
|
|
|
22003
22146
|
const actionId = item.uiactionId;
|
|
22004
22147
|
const uiAction = await getUIActionById(actionId, item.appId);
|
|
22005
22148
|
if (!uiAction) {
|
|
22006
|
-
throw new RuntimeError50(
|
|
22149
|
+
throw new RuntimeError50(
|
|
22150
|
+
ibiz.i18n.t("runtime.controller.control.toolbar.notFound", {
|
|
22151
|
+
actionId
|
|
22152
|
+
})
|
|
22153
|
+
);
|
|
22007
22154
|
}
|
|
22008
22155
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
22009
22156
|
if (enableLoading) {
|
|
@@ -22281,6 +22428,19 @@ var DashboardController = class extends ControlController {
|
|
|
22281
22428
|
}
|
|
22282
22429
|
});
|
|
22283
22430
|
}
|
|
22431
|
+
/**
|
|
22432
|
+
* 重置门户
|
|
22433
|
+
*
|
|
22434
|
+
* @return {*} {Promise<void>}
|
|
22435
|
+
* @memberof DashboardController
|
|
22436
|
+
*/
|
|
22437
|
+
async resetPortlets() {
|
|
22438
|
+
Object.keys(this.portlets).forEach((key) => {
|
|
22439
|
+
const portlet = this.portlets[key];
|
|
22440
|
+
portlet.resetConfig();
|
|
22441
|
+
});
|
|
22442
|
+
this.evt.emit("onResetPortlet", void 0);
|
|
22443
|
+
}
|
|
22284
22444
|
/**
|
|
22285
22445
|
* 通知所有表单成员表单操作过程中的数据变更
|
|
22286
22446
|
*
|
|
@@ -22447,6 +22607,15 @@ var CustomDashboardController = class {
|
|
|
22447
22607
|
}
|
|
22448
22608
|
return { model: this.customModelData, config: this.portletConfig };
|
|
22449
22609
|
}
|
|
22610
|
+
/**
|
|
22611
|
+
* 重置自定义布局模型
|
|
22612
|
+
*
|
|
22613
|
+
* @memberof CustomDashboardController
|
|
22614
|
+
*/
|
|
22615
|
+
async resetCustomModelData() {
|
|
22616
|
+
this.portletConfig = {};
|
|
22617
|
+
return this.saveCustomModelData([]);
|
|
22618
|
+
}
|
|
22450
22619
|
/**
|
|
22451
22620
|
* 保存自定义布局模型数据
|
|
22452
22621
|
*
|
|
@@ -22601,6 +22770,7 @@ var PortletPartController = class {
|
|
|
22601
22770
|
this.state.title = title;
|
|
22602
22771
|
}
|
|
22603
22772
|
this.config = { srftitle: this.state.title };
|
|
22773
|
+
Object.assign(this.params, this.config);
|
|
22604
22774
|
await this.initActionStates();
|
|
22605
22775
|
}
|
|
22606
22776
|
/**
|
|
@@ -22638,6 +22808,22 @@ var PortletPartController = class {
|
|
|
22638
22808
|
config: this.config
|
|
22639
22809
|
});
|
|
22640
22810
|
}
|
|
22811
|
+
/**
|
|
22812
|
+
* 重置自定义配置
|
|
22813
|
+
*
|
|
22814
|
+
* @memberof PortletPartController
|
|
22815
|
+
*/
|
|
22816
|
+
resetConfig() {
|
|
22817
|
+
const { title, titleLanguageRes } = this.model;
|
|
22818
|
+
this.params = new IBizParams2({}, this.dashboard.params);
|
|
22819
|
+
if (titleLanguageRes) {
|
|
22820
|
+
this.state.title = ibiz.i18n.t(titleLanguageRes.lanResTag, title);
|
|
22821
|
+
} else {
|
|
22822
|
+
this.state.title = title;
|
|
22823
|
+
}
|
|
22824
|
+
this.config = { srftitle: this.state.title };
|
|
22825
|
+
Object.assign(this.params, this.config);
|
|
22826
|
+
}
|
|
22641
22827
|
/**
|
|
22642
22828
|
* 数据改变方法
|
|
22643
22829
|
* @param {DataChangeEvent} event
|
|
@@ -22758,6 +22944,20 @@ var ContainerPortletController = class extends PortletPartController {
|
|
|
22758
22944
|
|
|
22759
22945
|
// src/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.ts
|
|
22760
22946
|
var ViewPortletController = class extends PortletPartController {
|
|
22947
|
+
/**
|
|
22948
|
+
* 内容控制器
|
|
22949
|
+
*
|
|
22950
|
+
* @author tony001
|
|
22951
|
+
* @date 2024-05-07 14:05:02
|
|
22952
|
+
* @readonly
|
|
22953
|
+
* @type {(IController | undefined)}
|
|
22954
|
+
*/
|
|
22955
|
+
get contentController() {
|
|
22956
|
+
const { portletAppView } = this.model;
|
|
22957
|
+
if (portletAppView && portletAppView.codeName) {
|
|
22958
|
+
return this.dashboard.getController(portletAppView.codeName);
|
|
22959
|
+
}
|
|
22960
|
+
}
|
|
22761
22961
|
/**
|
|
22762
22962
|
* 刷新门户部件
|
|
22763
22963
|
*
|
|
@@ -23038,10 +23238,17 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23038
23238
|
const optItemModel = this.getOptItemModel();
|
|
23039
23239
|
if (optItemModel) {
|
|
23040
23240
|
if (!optItemModel.deuiactionGroup) {
|
|
23041
|
-
throw new RuntimeModelError54(
|
|
23241
|
+
throw new RuntimeModelError54(
|
|
23242
|
+
this.model,
|
|
23243
|
+
ibiz.i18n.t("runtime.controller.control.dataView.noBehaviourGroup")
|
|
23244
|
+
);
|
|
23042
23245
|
}
|
|
23043
23246
|
if (!((_a = optItemModel.deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
23044
|
-
ibiz.log.debug(
|
|
23247
|
+
ibiz.log.debug(
|
|
23248
|
+
ibiz.i18n.t(
|
|
23249
|
+
"runtime.controller.control.dataView.noBehaviourGroupAction"
|
|
23250
|
+
)
|
|
23251
|
+
);
|
|
23045
23252
|
return containerState;
|
|
23046
23253
|
}
|
|
23047
23254
|
optItemModel.deuiactionGroup.uiactionGroupDetails.forEach((detail) => {
|
|
@@ -23091,7 +23298,12 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23091
23298
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
23092
23299
|
if (enableGroup && groupMode) {
|
|
23093
23300
|
if (!groupAppDEFieldId) {
|
|
23094
|
-
throw new RuntimeModelError54(
|
|
23301
|
+
throw new RuntimeModelError54(
|
|
23302
|
+
this.model,
|
|
23303
|
+
ibiz.i18n.t(
|
|
23304
|
+
"runtime.controller.control.dataView.propertiesNotConfigured"
|
|
23305
|
+
)
|
|
23306
|
+
);
|
|
23095
23307
|
}
|
|
23096
23308
|
if (groupMode === "AUTO") {
|
|
23097
23309
|
this.handleAutoGroup();
|
|
@@ -23158,7 +23370,10 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23158
23370
|
async handleCodeListGroup() {
|
|
23159
23371
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
23160
23372
|
if (!groupCodeListId) {
|
|
23161
|
-
throw new RuntimeModelError54(
|
|
23373
|
+
throw new RuntimeModelError54(
|
|
23374
|
+
this.model,
|
|
23375
|
+
ibiz.i18n.t("runtime.controller.control.dataView.tableNotConfigured")
|
|
23376
|
+
);
|
|
23162
23377
|
}
|
|
23163
23378
|
const { items } = this.state;
|
|
23164
23379
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -23264,7 +23479,10 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23264
23479
|
caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
23265
23480
|
}
|
|
23266
23481
|
if (!item.appDEFieldId) {
|
|
23267
|
-
throw new RuntimeModelError54(
|
|
23482
|
+
throw new RuntimeModelError54(
|
|
23483
|
+
item,
|
|
23484
|
+
ibiz.i18n.t("runtime.controller.control.dataView.sortingItems")
|
|
23485
|
+
);
|
|
23268
23486
|
}
|
|
23269
23487
|
const tempItem = {
|
|
23270
23488
|
caption,
|
|
@@ -23342,7 +23560,9 @@ var ExpBarControlController = class extends ControlController {
|
|
|
23342
23560
|
if (!controller) {
|
|
23343
23561
|
throw new RuntimeModelError55(
|
|
23344
23562
|
this.model,
|
|
23345
|
-
|
|
23563
|
+
ibiz.i18n.t("runtime.controller.control.expBar.unableMore", {
|
|
23564
|
+
xdataControlName: this.model.xdataControlName
|
|
23565
|
+
})
|
|
23346
23566
|
);
|
|
23347
23567
|
}
|
|
23348
23568
|
return controller;
|
|
@@ -23616,7 +23836,9 @@ var ExpBarControlController = class extends ControlController {
|
|
|
23616
23836
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
23617
23837
|
return this.XDataModel.navAppViewId;
|
|
23618
23838
|
}
|
|
23619
|
-
throw new RuntimeError51(
|
|
23839
|
+
throw new RuntimeError51(
|
|
23840
|
+
ibiz.i18n.t("runtime.controller.control.expBar.multiNode")
|
|
23841
|
+
);
|
|
23620
23842
|
}
|
|
23621
23843
|
/**
|
|
23622
23844
|
* 获取导航视图
|
|
@@ -23706,7 +23928,9 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
23706
23928
|
if (!controller) {
|
|
23707
23929
|
throw new RuntimeModelError56(
|
|
23708
23930
|
this.model,
|
|
23709
|
-
|
|
23931
|
+
ibiz.i18n.t("runtime.controller.control.expBar.unableMore", {
|
|
23932
|
+
xdataControlName: this.model.xdataControlName
|
|
23933
|
+
})
|
|
23710
23934
|
);
|
|
23711
23935
|
}
|
|
23712
23936
|
return controller;
|
|
@@ -23784,7 +24008,9 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
23784
24008
|
if (!controller) {
|
|
23785
24009
|
throw new RuntimeModelError57(
|
|
23786
24010
|
this.model,
|
|
23787
|
-
|
|
24011
|
+
ibiz.i18n.t("runtime.controller.control.expBar.unableMore", {
|
|
24012
|
+
xdataControlName: this.model.xdataControlName
|
|
24013
|
+
})
|
|
23788
24014
|
);
|
|
23789
24015
|
}
|
|
23790
24016
|
return controller;
|
|
@@ -23848,7 +24074,11 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
23848
24074
|
const deData = node._deData || node;
|
|
23849
24075
|
const nodeModel = this.getNodeModel(node._nodeId);
|
|
23850
24076
|
if (!nodeModel) {
|
|
23851
|
-
throw new RuntimeError52(
|
|
24077
|
+
throw new RuntimeError52(
|
|
24078
|
+
ibiz.i18n.t("runtime.controller.control.expBar.notFindNodeModel", {
|
|
24079
|
+
nodeId: node._nodeId
|
|
24080
|
+
})
|
|
24081
|
+
);
|
|
23852
24082
|
}
|
|
23853
24083
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
23854
24084
|
result.context.currentSrfNav = nodeId;
|
|
@@ -24182,7 +24412,13 @@ var FormController = class extends ControlController {
|
|
|
24182
24412
|
if (form.details[detail.id]) {
|
|
24183
24413
|
throw new RuntimeModelError58(
|
|
24184
24414
|
detail,
|
|
24185
|
-
|
|
24415
|
+
ibiz.i18n.t(
|
|
24416
|
+
"runtime.controller.control.form.initializationException",
|
|
24417
|
+
{
|
|
24418
|
+
id: detail.id,
|
|
24419
|
+
detailType: detail.detailType
|
|
24420
|
+
}
|
|
24421
|
+
)
|
|
24186
24422
|
);
|
|
24187
24423
|
}
|
|
24188
24424
|
form.providers[detail.id] = detailProvider;
|
|
@@ -24322,7 +24558,7 @@ var FormController = class extends ControlController {
|
|
|
24322
24558
|
const counter = await CounterService.getCounterByRef(
|
|
24323
24559
|
counterRef,
|
|
24324
24560
|
this.context,
|
|
24325
|
-
dataKey ? {
|
|
24561
|
+
dataKey ? { srfcustomtag: dataKey, ...this.params } : { ...this.params }
|
|
24326
24562
|
);
|
|
24327
24563
|
this.counters[counterRef.id] = counter;
|
|
24328
24564
|
})
|
|
@@ -24679,7 +24915,9 @@ var SearchFormController = class extends FormController {
|
|
|
24679
24915
|
applyStoredFilter(index) {
|
|
24680
24916
|
const filter = this.state.storedFilters[index];
|
|
24681
24917
|
if (!filter) {
|
|
24682
|
-
throw new RuntimeError53(
|
|
24918
|
+
throw new RuntimeError53(
|
|
24919
|
+
ibiz.i18n.t("runtime.controller.control.form.searchTerms")
|
|
24920
|
+
);
|
|
24683
24921
|
}
|
|
24684
24922
|
if (filter.data) {
|
|
24685
24923
|
Object.assign(this.data, filter.data);
|
|
@@ -24695,7 +24933,9 @@ var SearchFormController = class extends FormController {
|
|
|
24695
24933
|
async removeStoredFilter(index) {
|
|
24696
24934
|
const filter = this.state.storedFilters[index];
|
|
24697
24935
|
if (!filter) {
|
|
24698
|
-
throw new RuntimeError53(
|
|
24936
|
+
throw new RuntimeError53(
|
|
24937
|
+
ibiz.i18n.t("runtime.controller.control.form.saveSearch")
|
|
24938
|
+
);
|
|
24699
24939
|
}
|
|
24700
24940
|
this.state.storedFilters.splice(index, 1);
|
|
24701
24941
|
await this.saveConfig();
|
|
@@ -25406,7 +25646,10 @@ var FormDRUIPartController = class extends FormDetailController {
|
|
|
25406
25646
|
if (["LOAD", "LOADDRAFT"].includes(event.actionType)) {
|
|
25407
25647
|
return;
|
|
25408
25648
|
}
|
|
25409
|
-
ibiz.log.debug(
|
|
25649
|
+
ibiz.log.debug(
|
|
25650
|
+
ibiz.i18n.t("runtime.controller.control.form.relationshipInterface"),
|
|
25651
|
+
event
|
|
25652
|
+
);
|
|
25410
25653
|
if (this.model.deformItemUpdateId) {
|
|
25411
25654
|
this.form.updateFormItem(
|
|
25412
25655
|
this.model.deformItemUpdateId
|
|
@@ -25791,7 +26034,9 @@ var FormItemController = class extends FormDetailController {
|
|
|
25791
26034
|
return true;
|
|
25792
26035
|
}
|
|
25793
26036
|
if (this.state.required && (typeof this.data[this.name] === "string" ? isNilOrEmpty7(this.data[this.name].trimEnd()) : isNilOrEmpty7(this.data[this.name]))) {
|
|
25794
|
-
this.state.error =
|
|
26037
|
+
this.state.error = ibiz.i18n.t("runtime.controller.control.form.fillIn", {
|
|
26038
|
+
caption: this.model.caption || ""
|
|
26039
|
+
});
|
|
25795
26040
|
return false;
|
|
25796
26041
|
}
|
|
25797
26042
|
if (this.validator) {
|
|
@@ -26065,7 +26310,10 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
26065
26310
|
await super.onInit();
|
|
26066
26311
|
const { contentControl } = this.model;
|
|
26067
26312
|
if (!contentControl) {
|
|
26068
|
-
throw new RuntimeModelError59(
|
|
26313
|
+
throw new RuntimeModelError59(
|
|
26314
|
+
this.model,
|
|
26315
|
+
ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
|
|
26316
|
+
);
|
|
26069
26317
|
}
|
|
26070
26318
|
if (contentControl.controlType === "GRID") {
|
|
26071
26319
|
mergeInLeft(contentControl, {
|
|
@@ -26117,7 +26365,9 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
26117
26365
|
} else {
|
|
26118
26366
|
throw new ModelError27(
|
|
26119
26367
|
this.model,
|
|
26120
|
-
|
|
26368
|
+
ibiz.i18n.t("runtime.controller.control.form.multiDataAddData", {
|
|
26369
|
+
contentType: this.model.contentType
|
|
26370
|
+
})
|
|
26121
26371
|
);
|
|
26122
26372
|
}
|
|
26123
26373
|
}
|
|
@@ -26125,7 +26375,9 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
26125
26375
|
if (this.mdController) {
|
|
26126
26376
|
this.mdController.refresh();
|
|
26127
26377
|
} else {
|
|
26128
|
-
ibiz.log.debug(
|
|
26378
|
+
ibiz.log.debug(
|
|
26379
|
+
ibiz.i18n.t("runtime.controller.control.form.mdControllerNotExist")
|
|
26380
|
+
);
|
|
26129
26381
|
}
|
|
26130
26382
|
}
|
|
26131
26383
|
/**
|
|
@@ -26203,7 +26455,10 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
26203
26455
|
super.onInit();
|
|
26204
26456
|
const { contentControl } = this.model;
|
|
26205
26457
|
if (!contentControl) {
|
|
26206
|
-
throw new RuntimeModelError60(
|
|
26458
|
+
throw new RuntimeModelError60(
|
|
26459
|
+
this.model,
|
|
26460
|
+
ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
|
|
26461
|
+
);
|
|
26207
26462
|
}
|
|
26208
26463
|
contentControl.enableAutoSave = this.enableCreate || this.enableUpdate;
|
|
26209
26464
|
const controlProvider = await getControlProvider(contentControl);
|
|
@@ -26279,7 +26534,11 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
26279
26534
|
async remove(id) {
|
|
26280
26535
|
const controller = this.formMap.get(id);
|
|
26281
26536
|
if (!controller) {
|
|
26282
|
-
throw new RuntimeError54(
|
|
26537
|
+
throw new RuntimeError54(
|
|
26538
|
+
ibiz.i18n.t("runtime.controller.control.form.noFoundFormController", {
|
|
26539
|
+
id
|
|
26540
|
+
})
|
|
26541
|
+
);
|
|
26283
26542
|
}
|
|
26284
26543
|
await controller.remove();
|
|
26285
26544
|
const index = this.state.items.findIndex((item) => item.id === id);
|
|
@@ -26385,7 +26644,9 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
26385
26644
|
default:
|
|
26386
26645
|
throw new ModelError28(
|
|
26387
26646
|
this.model,
|
|
26388
|
-
|
|
26647
|
+
ibiz.i18n.t("runtime.controller.control.form.repeaterNotSupported", {
|
|
26648
|
+
detailStyle: this.model.detailStyle
|
|
26649
|
+
})
|
|
26389
26650
|
);
|
|
26390
26651
|
}
|
|
26391
26652
|
this.prepareRepeatedForm();
|
|
@@ -26729,7 +26990,10 @@ var EditFormService = class extends FormService {
|
|
|
26729
26990
|
const wizardForm = this.model;
|
|
26730
26991
|
const methodName = (_a = wizardForm.goBackControlAction) == null ? void 0 : _a.appDEMethodId;
|
|
26731
26992
|
if (!methodName) {
|
|
26732
|
-
throw new RuntimeModelError61(
|
|
26993
|
+
throw new RuntimeModelError61(
|
|
26994
|
+
this.model,
|
|
26995
|
+
ibiz.i18n.t("runtime.controller.control.form.lackBehavior")
|
|
26996
|
+
);
|
|
26733
26997
|
}
|
|
26734
26998
|
let res = await this.exec(
|
|
26735
26999
|
methodName,
|
|
@@ -27061,7 +27325,9 @@ var EditFormController = class extends FormController {
|
|
|
27061
27325
|
}
|
|
27062
27326
|
const isValid = await this.validate();
|
|
27063
27327
|
if (!isValid) {
|
|
27064
|
-
throw new RuntimeError55(
|
|
27328
|
+
throw new RuntimeError55(
|
|
27329
|
+
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
27330
|
+
);
|
|
27065
27331
|
}
|
|
27066
27332
|
if (!silent) {
|
|
27067
27333
|
await this.startLoading();
|
|
@@ -27102,7 +27368,10 @@ var EditFormController = class extends FormController {
|
|
|
27102
27368
|
}
|
|
27103
27369
|
if (!silent) {
|
|
27104
27370
|
this.actionNotification("".concat(isCreate ? "CREATE" : "UPDATE", "SUCCESS"), {
|
|
27105
|
-
default:
|
|
27371
|
+
default: ibiz.i18n.t(
|
|
27372
|
+
"runtime.controller.control.form.savedSuccessfully",
|
|
27373
|
+
{ srfmajortext: this.data.srfmajortext || "" }
|
|
27374
|
+
)
|
|
27106
27375
|
});
|
|
27107
27376
|
}
|
|
27108
27377
|
this.emitDEDataChange(isCreate ? "create" : "update", res.data);
|
|
@@ -27122,8 +27391,8 @@ var EditFormController = class extends FormController {
|
|
|
27122
27391
|
await this.evt.emit("onBeforeRemove", { args: this.data });
|
|
27123
27392
|
if (this.data.srfuf === 1 /* UPDATE */) {
|
|
27124
27393
|
ok = await ibiz.modal.confirm({
|
|
27125
|
-
title: "
|
|
27126
|
-
desc: "
|
|
27394
|
+
title: ibiz.i18n.t("runtime.controller.control.form.prompt"),
|
|
27395
|
+
desc: ibiz.i18n.t("runtime.controller.control.form.deletion")
|
|
27127
27396
|
});
|
|
27128
27397
|
if (!ok) {
|
|
27129
27398
|
return false;
|
|
@@ -27183,7 +27452,11 @@ var EditFormController = class extends FormController {
|
|
|
27183
27452
|
(item) => item.id === formItemUpdateId
|
|
27184
27453
|
);
|
|
27185
27454
|
if (!formItemUpdate) {
|
|
27186
|
-
throw new RuntimeError55(
|
|
27455
|
+
throw new RuntimeError55(
|
|
27456
|
+
ibiz.i18n.t("runtime.controller.control.form.itemUpdate", {
|
|
27457
|
+
formItemUpdateId
|
|
27458
|
+
})
|
|
27459
|
+
);
|
|
27187
27460
|
}
|
|
27188
27461
|
const {
|
|
27189
27462
|
appDEMethodId,
|
|
@@ -27242,7 +27515,9 @@ var EditFormController = class extends FormController {
|
|
|
27242
27515
|
async wfStart(args) {
|
|
27243
27516
|
const isValid = await this.validate();
|
|
27244
27517
|
if (!isValid) {
|
|
27245
|
-
throw new RuntimeError55(
|
|
27518
|
+
throw new RuntimeError55(
|
|
27519
|
+
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
27520
|
+
);
|
|
27246
27521
|
}
|
|
27247
27522
|
await this.startLoading();
|
|
27248
27523
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -27258,7 +27533,9 @@ var EditFormController = class extends FormController {
|
|
|
27258
27533
|
} finally {
|
|
27259
27534
|
await this.endLoading();
|
|
27260
27535
|
}
|
|
27261
|
-
this.actionNotification("WFSTARTSUCCESS", {
|
|
27536
|
+
this.actionNotification("WFSTARTSUCCESS", {
|
|
27537
|
+
default: ibiz.i18n.t("runtime.controller.control.form.processStarted")
|
|
27538
|
+
});
|
|
27262
27539
|
}
|
|
27263
27540
|
/**
|
|
27264
27541
|
* 工作流提交(调用前先确保调用保存)
|
|
@@ -27271,7 +27548,9 @@ var EditFormController = class extends FormController {
|
|
|
27271
27548
|
async wfSubmit(args) {
|
|
27272
27549
|
const isValid = await this.validate();
|
|
27273
27550
|
if (!isValid) {
|
|
27274
|
-
throw new RuntimeError55(
|
|
27551
|
+
throw new RuntimeError55(
|
|
27552
|
+
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
27553
|
+
);
|
|
27275
27554
|
}
|
|
27276
27555
|
await this.startLoading();
|
|
27277
27556
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -27287,7 +27566,9 @@ var EditFormController = class extends FormController {
|
|
|
27287
27566
|
} finally {
|
|
27288
27567
|
await this.endLoading();
|
|
27289
27568
|
}
|
|
27290
|
-
this.actionNotification("WFSUBMITSUCCESS", {
|
|
27569
|
+
this.actionNotification("WFSUBMITSUCCESS", {
|
|
27570
|
+
default: ibiz.i18n.t("runtime.controller.control.form.processSubmitted")
|
|
27571
|
+
});
|
|
27291
27572
|
}
|
|
27292
27573
|
async dataChangeNotify(names) {
|
|
27293
27574
|
await super.dataChangeNotify(names);
|
|
@@ -27692,7 +27973,9 @@ var GridService = class extends MDControlService {
|
|
|
27692
27973
|
} else {
|
|
27693
27974
|
throw new RuntimeModelError62(
|
|
27694
27975
|
column,
|
|
27695
|
-
"
|
|
27976
|
+
ibiz.i18n.t("runtime.controller.control.grid.corresponding", {
|
|
27977
|
+
deField
|
|
27978
|
+
})
|
|
27696
27979
|
);
|
|
27697
27980
|
}
|
|
27698
27981
|
} else {
|
|
@@ -27756,7 +28039,11 @@ async function calcColumnModelBySchema(json, c) {
|
|
|
27756
28039
|
type = "number";
|
|
27757
28040
|
break;
|
|
27758
28041
|
default:
|
|
27759
|
-
ibiz.log.error(
|
|
28042
|
+
ibiz.log.error(
|
|
28043
|
+
ibiz.i18n.t("runtime.controller.control.grid.unsupported", {
|
|
28044
|
+
type: properties[key].type
|
|
28045
|
+
})
|
|
28046
|
+
);
|
|
27760
28047
|
return;
|
|
27761
28048
|
}
|
|
27762
28049
|
addFields.push({
|
|
@@ -28125,13 +28412,18 @@ var GridController = class extends MDControlController {
|
|
|
28125
28412
|
(item) => item.model.appDEFieldId === groupAppDEFieldId
|
|
28126
28413
|
);
|
|
28127
28414
|
if (!this.groupFieldColumn) {
|
|
28128
|
-
throw new RuntimeModelError63(
|
|
28415
|
+
throw new RuntimeModelError63(
|
|
28416
|
+
this.model,
|
|
28417
|
+
ibiz.i18n.t("runtime.controller.control.grid.attributeColumns")
|
|
28418
|
+
);
|
|
28129
28419
|
}
|
|
28130
28420
|
const groupFieldName = this.groupFieldColumn.model.id;
|
|
28131
28421
|
if (!this.groupFieldColumn.model.appCodeListId) {
|
|
28132
28422
|
throw new RuntimeModelError63(
|
|
28133
28423
|
this.groupFieldColumn.model,
|
|
28134
|
-
"
|
|
28424
|
+
ibiz.i18n.t("runtime.controller.control.grid.notCodeTable", {
|
|
28425
|
+
groupFieldName
|
|
28426
|
+
})
|
|
28135
28427
|
);
|
|
28136
28428
|
}
|
|
28137
28429
|
const index = this.state.columnStates.findIndex(
|
|
@@ -28141,7 +28433,9 @@ var GridController = class extends MDControlController {
|
|
|
28141
28433
|
if (this.isMultistageHeader) {
|
|
28142
28434
|
throw new RuntimeModelError63(
|
|
28143
28435
|
this.model,
|
|
28144
|
-
"
|
|
28436
|
+
ibiz.i18n.t("runtime.controller.control.grid.configureFirstColumn", {
|
|
28437
|
+
groupFieldName
|
|
28438
|
+
})
|
|
28145
28439
|
);
|
|
28146
28440
|
}
|
|
28147
28441
|
const removeEls = this.state.columnStates.splice(index, 1);
|
|
@@ -28149,12 +28443,17 @@ var GridController = class extends MDControlController {
|
|
|
28149
28443
|
}
|
|
28150
28444
|
if (groupMode === "CODELIST") {
|
|
28151
28445
|
if (!groupCodeListId) {
|
|
28152
|
-
throw new RuntimeModelError63(
|
|
28446
|
+
throw new RuntimeModelError63(
|
|
28447
|
+
this.model,
|
|
28448
|
+
ibiz.i18n.t("runtime.controller.control.grid.requiresCodeTable")
|
|
28449
|
+
);
|
|
28153
28450
|
}
|
|
28154
28451
|
if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
|
|
28155
28452
|
throw new RuntimeModelError63(
|
|
28156
28453
|
this.model,
|
|
28157
|
-
"
|
|
28454
|
+
ibiz.i18n.t("runtime.controller.control.grid.notMatchCodeTable", {
|
|
28455
|
+
groupFieldName
|
|
28456
|
+
})
|
|
28158
28457
|
);
|
|
28159
28458
|
}
|
|
28160
28459
|
}
|
|
@@ -28179,7 +28478,9 @@ var GridController = class extends MDControlController {
|
|
|
28179
28478
|
const toNum = Number(sortValue);
|
|
28180
28479
|
if (Number.isNaN(toNum)) {
|
|
28181
28480
|
throw new RuntimeError56(
|
|
28182
|
-
|
|
28481
|
+
ibiz.i18n.t("runtime.controller.control.grid.convertedValue", {
|
|
28482
|
+
srfmajortext: item.srfmajortext
|
|
28483
|
+
})
|
|
28183
28484
|
);
|
|
28184
28485
|
}
|
|
28185
28486
|
}
|
|
@@ -28282,7 +28583,10 @@ var GridController = class extends MDControlController {
|
|
|
28282
28583
|
return;
|
|
28283
28584
|
}
|
|
28284
28585
|
if (!aggAppDEDataSetId || !aggAppDataEntityId) {
|
|
28285
|
-
throw new RuntimeModelError63(
|
|
28586
|
+
throw new RuntimeModelError63(
|
|
28587
|
+
this.model,
|
|
28588
|
+
ibiz.i18n.t("runtime.controller.control.grid.missingConfiguration")
|
|
28589
|
+
);
|
|
28286
28590
|
}
|
|
28287
28591
|
const params = await this.getFetchParams();
|
|
28288
28592
|
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
@@ -28350,13 +28654,15 @@ var GridController = class extends MDControlController {
|
|
|
28350
28654
|
const { enableRowEdit, enableRowNew } = this.model;
|
|
28351
28655
|
const { editShowMode } = ibiz.config.grid;
|
|
28352
28656
|
if (!enableRowEdit || !enableRowNew || !["row", "all"].includes(editShowMode)) {
|
|
28353
|
-
ibiz.log.error("
|
|
28657
|
+
ibiz.log.error(ibiz.i18n.t("runtime.controller.control.grid.newRows"));
|
|
28354
28658
|
return;
|
|
28355
28659
|
}
|
|
28356
28660
|
if (editShowMode === "row") {
|
|
28357
28661
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
28358
28662
|
if (editingRow) {
|
|
28359
|
-
throw new RuntimeError56(
|
|
28663
|
+
throw new RuntimeError56(
|
|
28664
|
+
ibiz.i18n.t("runtime.controller.control.gantt.firstComplete")
|
|
28665
|
+
);
|
|
28360
28666
|
}
|
|
28361
28667
|
}
|
|
28362
28668
|
const queryParams = { ...this.params };
|
|
@@ -28397,10 +28703,12 @@ var GridController = class extends MDControlController {
|
|
|
28397
28703
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
28398
28704
|
const rowState = this.findRowState(data);
|
|
28399
28705
|
if (!rowState) {
|
|
28400
|
-
throw new RuntimeError56(
|
|
28706
|
+
throw new RuntimeError56(
|
|
28707
|
+
ibiz.i18n.t("runtime.controller.control.gantt.rowData")
|
|
28708
|
+
);
|
|
28401
28709
|
}
|
|
28402
28710
|
if (!rowState.modified) {
|
|
28403
|
-
ibiz.log.debug("
|
|
28711
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.notChange"));
|
|
28404
28712
|
return;
|
|
28405
28713
|
}
|
|
28406
28714
|
if (rowState.processing) {
|
|
@@ -28409,7 +28717,9 @@ var GridController = class extends MDControlController {
|
|
|
28409
28717
|
}
|
|
28410
28718
|
const isValid = await this.validate(rowState);
|
|
28411
28719
|
if (!isValid) {
|
|
28412
|
-
throw new RuntimeError56(
|
|
28720
|
+
throw new RuntimeError56(
|
|
28721
|
+
ibiz.i18n.t("runtime.controller.control.grid.saveCancel")
|
|
28722
|
+
);
|
|
28413
28723
|
}
|
|
28414
28724
|
if (this.model.enableRowEditChangedOnly) {
|
|
28415
28725
|
data = rowState.getDiffData();
|
|
@@ -28633,7 +28943,9 @@ var GridController = class extends MDControlController {
|
|
|
28633
28943
|
}
|
|
28634
28944
|
async toggleRowEdit() {
|
|
28635
28945
|
if (!this.model.enableRowNew) {
|
|
28636
|
-
throw new RuntimeError56(
|
|
28946
|
+
throw new RuntimeError56(
|
|
28947
|
+
ibiz.i18n.t("runtime.controller.control.grid.notSupportRowEditing")
|
|
28948
|
+
);
|
|
28637
28949
|
}
|
|
28638
28950
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
28639
28951
|
}
|
|
@@ -28666,7 +28978,9 @@ var GridController = class extends MDControlController {
|
|
|
28666
28978
|
} else {
|
|
28667
28979
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
28668
28980
|
if (editingRow) {
|
|
28669
|
-
throw new RuntimeError56(
|
|
28981
|
+
throw new RuntimeError56(
|
|
28982
|
+
ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
|
|
28983
|
+
);
|
|
28670
28984
|
}
|
|
28671
28985
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
28672
28986
|
row.cacheData = clone27(row.data);
|
|
@@ -28721,7 +29035,11 @@ var GridController = class extends MDControlController {
|
|
|
28721
29035
|
(item) => item.id === updateId
|
|
28722
29036
|
);
|
|
28723
29037
|
if (!findUpdate) {
|
|
28724
|
-
throw new RuntimeError56(
|
|
29038
|
+
throw new RuntimeError56(
|
|
29039
|
+
ibiz.i18n.t("runtime.controller.control.grid.updateColumns", {
|
|
29040
|
+
updateId
|
|
29041
|
+
})
|
|
29042
|
+
);
|
|
28725
29043
|
}
|
|
28726
29044
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
28727
29045
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -28861,7 +29179,9 @@ var GridController = class extends MDControlController {
|
|
|
28861
29179
|
data = this.getData();
|
|
28862
29180
|
}
|
|
28863
29181
|
if (data.length === 0) {
|
|
28864
|
-
throw new RuntimeError56(
|
|
29182
|
+
throw new RuntimeError56(
|
|
29183
|
+
ibiz.i18n.t("runtime.controller.control.grid.exported")
|
|
29184
|
+
);
|
|
28865
29185
|
}
|
|
28866
29186
|
return data;
|
|
28867
29187
|
}
|
|
@@ -28875,7 +29195,9 @@ var GridController = class extends MDControlController {
|
|
|
28875
29195
|
async exportData(args) {
|
|
28876
29196
|
const { header } = this.dataExportParam;
|
|
28877
29197
|
if (!header) {
|
|
28878
|
-
throw new RuntimeError56(
|
|
29198
|
+
throw new RuntimeError56(
|
|
29199
|
+
ibiz.i18n.t("runtime.controller.control.grid.tabularColumns")
|
|
29200
|
+
);
|
|
28879
29201
|
}
|
|
28880
29202
|
await this.fillExportCodelistMap();
|
|
28881
29203
|
const data = await this.getExportData(args.params);
|
|
@@ -29257,7 +29579,12 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
29257
29579
|
const valueItem = this.model.linkValueItem || "srfkey";
|
|
29258
29580
|
const value = row.data[valueItem];
|
|
29259
29581
|
if (value == null) {
|
|
29260
|
-
throw new ModelError29(
|
|
29582
|
+
throw new ModelError29(
|
|
29583
|
+
this.model,
|
|
29584
|
+
ibiz.i18n.t("runtime.controller.control.grid.pickedUpData", {
|
|
29585
|
+
valueItem
|
|
29586
|
+
})
|
|
29587
|
+
);
|
|
29261
29588
|
}
|
|
29262
29589
|
const { linkAppViewId } = this.model;
|
|
29263
29590
|
if (!linkAppViewId) {
|
|
@@ -29363,14 +29690,24 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
29363
29690
|
aggValue = Math.min(...items.map((item) => item[fieldName]));
|
|
29364
29691
|
break;
|
|
29365
29692
|
default:
|
|
29366
|
-
throw new ModelError29(
|
|
29693
|
+
throw new ModelError29(
|
|
29694
|
+
this.model,
|
|
29695
|
+
ibiz.i18n.t("runtime.controller.control.grid.notSupportedMode", {
|
|
29696
|
+
aggMode
|
|
29697
|
+
})
|
|
29698
|
+
);
|
|
29367
29699
|
}
|
|
29368
29700
|
} else if (this.grid.model.aggMode === "ALL") {
|
|
29369
|
-
throw new ModelError29(
|
|
29701
|
+
throw new ModelError29(
|
|
29702
|
+
this.model,
|
|
29703
|
+
ibiz.i18n.t("runtime.controller.control.grid.remoteAggregation")
|
|
29704
|
+
);
|
|
29370
29705
|
} else {
|
|
29371
29706
|
throw new ModelError29(
|
|
29372
29707
|
this.grid.model,
|
|
29373
|
-
|
|
29708
|
+
ibiz.i18n.t("runtime.controller.control.grid.aggregateMode", {
|
|
29709
|
+
aggMode: this.grid.model.aggMode
|
|
29710
|
+
})
|
|
29374
29711
|
);
|
|
29375
29712
|
}
|
|
29376
29713
|
let value = "".concat(aggValue);
|
|
@@ -29378,7 +29715,11 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
29378
29715
|
try {
|
|
29379
29716
|
value = ibiz.util.text.format("".concat(aggValue), aggValueFormat);
|
|
29380
29717
|
} catch (error) {
|
|
29381
|
-
ibiz.log.error(
|
|
29718
|
+
ibiz.log.error(
|
|
29719
|
+
ibiz.i18n.t("runtime.controller.control.grid.formattingError", {
|
|
29720
|
+
aggValue
|
|
29721
|
+
})
|
|
29722
|
+
);
|
|
29382
29723
|
}
|
|
29383
29724
|
}
|
|
29384
29725
|
if (value && unitName) {
|
|
@@ -29452,10 +29793,15 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
29452
29793
|
var _a;
|
|
29453
29794
|
const { deuiactionGroup } = this.model;
|
|
29454
29795
|
if (!deuiactionGroup) {
|
|
29455
|
-
throw new RuntimeModelError64(
|
|
29796
|
+
throw new RuntimeModelError64(
|
|
29797
|
+
this.model,
|
|
29798
|
+
ibiz.i18n.t("runtime.controller.control.grid.behaviorGroup")
|
|
29799
|
+
);
|
|
29456
29800
|
}
|
|
29457
29801
|
if (!((_a = deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
29458
|
-
ibiz.log.debug(
|
|
29802
|
+
ibiz.log.debug(
|
|
29803
|
+
ibiz.i18n.t("runtime.controller.control.grid.interfaceBehavior")
|
|
29804
|
+
);
|
|
29459
29805
|
return;
|
|
29460
29806
|
}
|
|
29461
29807
|
const containerState = new ButtonContainerState();
|
|
@@ -29638,7 +29984,10 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
29638
29984
|
const result = await this.validate(row);
|
|
29639
29985
|
if (!result) {
|
|
29640
29986
|
throw new RuntimeError57(
|
|
29641
|
-
|
|
29987
|
+
ibiz.i18n.t("runtime.controller.control.grid.checksumErrors", {
|
|
29988
|
+
codeName: this.editItem.codeName,
|
|
29989
|
+
fieldName: row.errors[this.fieldName]
|
|
29990
|
+
})
|
|
29642
29991
|
);
|
|
29643
29992
|
}
|
|
29644
29993
|
}
|
|
@@ -29741,7 +30090,12 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
29741
30090
|
async validate(row) {
|
|
29742
30091
|
const editName = this.fieldName;
|
|
29743
30092
|
if (ibiz.config.grid.editShowMode !== "cell" && row.editColStates[editName].required === true && (typeof row.data[editName] === "string" ? isNilOrEmpty8(row.data[editName].trimEnd()) : isNilOrEmpty8(row.data[editName]))) {
|
|
29744
|
-
row.errors[editName] =
|
|
30093
|
+
row.errors[editName] = ibiz.i18n.t(
|
|
30094
|
+
"runtime.controller.control.form.fillIn",
|
|
30095
|
+
{
|
|
30096
|
+
caption: this.model.caption || ""
|
|
30097
|
+
}
|
|
30098
|
+
);
|
|
29745
30099
|
return false;
|
|
29746
30100
|
}
|
|
29747
30101
|
if (this.rules.length && this.validator) {
|
|
@@ -30065,7 +30419,9 @@ var PanelController = class extends ControlController {
|
|
|
30065
30419
|
var _a, _b;
|
|
30066
30420
|
const data = await this.prepareData();
|
|
30067
30421
|
if (!data) {
|
|
30068
|
-
throw new RuntimeError58(
|
|
30422
|
+
throw new RuntimeError58(
|
|
30423
|
+
ibiz.i18n.t("runtime.controller.control.panel.panelData")
|
|
30424
|
+
);
|
|
30069
30425
|
}
|
|
30070
30426
|
const panelData = this.convertData(data);
|
|
30071
30427
|
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
@@ -30780,7 +31136,10 @@ var SearchBarFilterController = class {
|
|
|
30780
31136
|
async init() {
|
|
30781
31137
|
if (!this.noEditor) {
|
|
30782
31138
|
if (!this.model.editor) {
|
|
30783
|
-
throw new RuntimeModelError65(
|
|
31139
|
+
throw new RuntimeModelError65(
|
|
31140
|
+
this.model,
|
|
31141
|
+
ibiz.i18n.t("runtime.controller.control.searchBar.missingModel")
|
|
31142
|
+
);
|
|
30784
31143
|
}
|
|
30785
31144
|
this.editorProvider = await getEditorProvider(this.model.editor);
|
|
30786
31145
|
if (this.editorProvider) {
|
|
@@ -31125,7 +31484,11 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
|
|
|
31125
31484
|
type = "number";
|
|
31126
31485
|
break;
|
|
31127
31486
|
default:
|
|
31128
|
-
ibiz.log.error(
|
|
31487
|
+
ibiz.log.error(
|
|
31488
|
+
ibiz.i18n.t("runtime.controller.control.grid.unsupported", {
|
|
31489
|
+
type: properties[key].type
|
|
31490
|
+
})
|
|
31491
|
+
);
|
|
31129
31492
|
return;
|
|
31130
31493
|
}
|
|
31131
31494
|
addFields.push({
|
|
@@ -31147,7 +31510,12 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
|
|
|
31147
31510
|
addFields.forEach((item) => {
|
|
31148
31511
|
const ops = typeToOPs[item.type];
|
|
31149
31512
|
if (!ops) {
|
|
31150
|
-
ibiz.log.error(
|
|
31513
|
+
ibiz.log.error(
|
|
31514
|
+
ibiz.i18n.t("runtime.controller.control.grid.unsupported", {
|
|
31515
|
+
type: ""
|
|
31516
|
+
}),
|
|
31517
|
+
item.type
|
|
31518
|
+
);
|
|
31151
31519
|
return;
|
|
31152
31520
|
}
|
|
31153
31521
|
ops.forEach((op) => {
|
|
@@ -31228,7 +31596,11 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
|
31228
31596
|
return false;
|
|
31229
31597
|
});
|
|
31230
31598
|
if (!minorDEId) {
|
|
31231
|
-
throw new RuntimeError59(
|
|
31599
|
+
throw new RuntimeError59(
|
|
31600
|
+
ibiz.i18n.t("runtime.controller.control.searchBar.notFoundEntity", {
|
|
31601
|
+
targetField
|
|
31602
|
+
})
|
|
31603
|
+
);
|
|
31232
31604
|
}
|
|
31233
31605
|
this.minorAppDE = await ibiz.hub.getAppDataEntity(
|
|
31234
31606
|
minorDEId,
|
|
@@ -31918,7 +32290,13 @@ var SearchBarController = class extends ControlController {
|
|
|
31918
32290
|
tempGroup.show = tempData.valid_flag === "1";
|
|
31919
32291
|
}
|
|
31920
32292
|
} catch (error) {
|
|
31921
|
-
ibiz.log.error(
|
|
32293
|
+
ibiz.log.error(
|
|
32294
|
+
ibiz.i18n.t(
|
|
32295
|
+
"runtime.controller.control.searchBar.JSONFormat",
|
|
32296
|
+
{ data: item.data }
|
|
32297
|
+
),
|
|
32298
|
+
error
|
|
32299
|
+
);
|
|
31922
32300
|
}
|
|
31923
32301
|
}
|
|
31924
32302
|
if (item.defaultGroup) {
|
|
@@ -32003,7 +32381,11 @@ var SearchBarController = class extends ControlController {
|
|
|
32003
32381
|
show: this.state.selectedSearchGroupItem.show,
|
|
32004
32382
|
order: this.state.selectedSearchGroupItem.order
|
|
32005
32383
|
});
|
|
32006
|
-
ibiz.message.success(
|
|
32384
|
+
ibiz.message.success(
|
|
32385
|
+
ibiz.i18n.t("runtime.controller.control.form.savedSuccessfully", {
|
|
32386
|
+
srfmajortext: ""
|
|
32387
|
+
})
|
|
32388
|
+
);
|
|
32007
32389
|
} else {
|
|
32008
32390
|
const res = await this.service.createWithParams(
|
|
32009
32391
|
this.state.selectedSearchGroupItem,
|
|
@@ -32017,7 +32399,11 @@ var SearchBarController = class extends ControlController {
|
|
|
32017
32399
|
mergeInLeft3(savedGroup, res.data);
|
|
32018
32400
|
savedGroup.saved = true;
|
|
32019
32401
|
}
|
|
32020
|
-
ibiz.message.success(
|
|
32402
|
+
ibiz.message.success(
|
|
32403
|
+
ibiz.i18n.t("runtime.controller.control.form.savedSuccessfully", {
|
|
32404
|
+
srfmajortext: ""
|
|
32405
|
+
})
|
|
32406
|
+
);
|
|
32021
32407
|
}
|
|
32022
32408
|
}
|
|
32023
32409
|
}
|
|
@@ -32464,7 +32850,9 @@ var TreeService = class extends MDControlService {
|
|
|
32464
32850
|
default:
|
|
32465
32851
|
throw new ModelError30(
|
|
32466
32852
|
nodeModel,
|
|
32467
|
-
|
|
32853
|
+
ibiz.i18n.t("runtime.controller.control.gantt.notSupport", {
|
|
32854
|
+
treeNodeType: nodeModel.treeNodeType
|
|
32855
|
+
})
|
|
32468
32856
|
);
|
|
32469
32857
|
}
|
|
32470
32858
|
const { expandFirstOnly, expanded, rootNode } = nodeModel;
|
|
@@ -33159,7 +33547,10 @@ var TreeController = class extends MDControlController {
|
|
|
33159
33547
|
(item) => item[key] === nodeData[key]
|
|
33160
33548
|
);
|
|
33161
33549
|
if (!currentNode) {
|
|
33162
|
-
ibiz.log.error(
|
|
33550
|
+
ibiz.log.error(
|
|
33551
|
+
ibiz.i18n.t("runtime.controller.control.tree.notFoundTreeData"),
|
|
33552
|
+
nodeData
|
|
33553
|
+
);
|
|
33163
33554
|
return;
|
|
33164
33555
|
}
|
|
33165
33556
|
if (refreshParent) {
|
|
@@ -33305,7 +33696,10 @@ var TreeController = class extends MDControlController {
|
|
|
33305
33696
|
const { sortAppDEFieldId, sortDir, allowOrder } = orderNodeModel;
|
|
33306
33697
|
if (allowOrder === true) {
|
|
33307
33698
|
if (!sortAppDEFieldId) {
|
|
33308
|
-
throw new RuntimeModelError66(
|
|
33699
|
+
throw new RuntimeModelError66(
|
|
33700
|
+
orderNodeModel,
|
|
33701
|
+
ibiz.i18n.t("runtime.controller.control.tree.sortAttribute")
|
|
33702
|
+
);
|
|
33309
33703
|
}
|
|
33310
33704
|
const sortField = sortAppDEFieldId.toLowerCase();
|
|
33311
33705
|
const isAsc = sortDir === "ASC";
|
|
@@ -33390,10 +33784,15 @@ var TreeController = class extends MDControlController {
|
|
|
33390
33784
|
async modifyNodeText(nodeData, text) {
|
|
33391
33785
|
const model = this.getNodeModel(nodeData._nodeId);
|
|
33392
33786
|
if (!model.allowEditText) {
|
|
33393
|
-
throw new RuntimeModelError66(
|
|
33787
|
+
throw new RuntimeModelError66(
|
|
33788
|
+
model,
|
|
33789
|
+
ibiz.i18n.t("runtime.controller.control.tree.editMode")
|
|
33790
|
+
);
|
|
33394
33791
|
}
|
|
33395
33792
|
if (nodeData._nodeType !== "DE") {
|
|
33396
|
-
throw new RuntimeError60(
|
|
33793
|
+
throw new RuntimeError60(
|
|
33794
|
+
ibiz.i18n.t("runtime.controller.control.tree.nodeData")
|
|
33795
|
+
);
|
|
33397
33796
|
}
|
|
33398
33797
|
nodeData._text = text;
|
|
33399
33798
|
await this.updateDeNodeData([nodeData]);
|
|
@@ -33409,7 +33808,9 @@ var TreeController = class extends MDControlController {
|
|
|
33409
33808
|
let needRefresh = false;
|
|
33410
33809
|
const treeNode = this.getNodeModel(item._nodeId);
|
|
33411
33810
|
if (!treeNode) {
|
|
33412
|
-
throw new RuntimeError60(
|
|
33811
|
+
throw new RuntimeError60(
|
|
33812
|
+
ibiz.i18n.t("runtime.controller.control.tree.notFoundTreeNode")
|
|
33813
|
+
);
|
|
33413
33814
|
}
|
|
33414
33815
|
const nodeAppDataEntityId = treeNode.appDataEntityId;
|
|
33415
33816
|
if (nodeAppDataEntityId) {
|
|
@@ -33621,7 +34022,11 @@ var WizardPanelController = class extends ControlController {
|
|
|
33621
34022
|
}
|
|
33622
34023
|
);
|
|
33623
34024
|
if (!form) {
|
|
33624
|
-
ibiz.log.debug(
|
|
34025
|
+
ibiz.log.debug(
|
|
34026
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.wizardForm", {
|
|
34027
|
+
activeFormTag
|
|
34028
|
+
})
|
|
34029
|
+
);
|
|
33625
34030
|
}
|
|
33626
34031
|
return form;
|
|
33627
34032
|
}
|
|
@@ -33637,7 +34042,11 @@ var WizardPanelController = class extends ControlController {
|
|
|
33637
34042
|
const { activeFormTag } = this.state;
|
|
33638
34043
|
const controller = this.formControllers.get(activeFormTag);
|
|
33639
34044
|
if (!controller) {
|
|
33640
|
-
throw new RuntimeError61(
|
|
34045
|
+
throw new RuntimeError61(
|
|
34046
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.formController", {
|
|
34047
|
+
activeFormTag
|
|
34048
|
+
})
|
|
34049
|
+
);
|
|
33641
34050
|
}
|
|
33642
34051
|
return controller;
|
|
33643
34052
|
}
|
|
@@ -33683,7 +34092,9 @@ var WizardPanelController = class extends ControlController {
|
|
|
33683
34092
|
getWizardFormByTag(tag) {
|
|
33684
34093
|
var _a;
|
|
33685
34094
|
if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
|
|
33686
|
-
throw new RuntimeError61(
|
|
34095
|
+
throw new RuntimeError61(
|
|
34096
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.noConfiguration")
|
|
34097
|
+
);
|
|
33687
34098
|
return;
|
|
33688
34099
|
}
|
|
33689
34100
|
const wizardForm = this.model.dewizard.dewizardForms.find(
|
|
@@ -33692,7 +34103,12 @@ var WizardPanelController = class extends ControlController {
|
|
|
33692
34103
|
}
|
|
33693
34104
|
);
|
|
33694
34105
|
if (!wizardForm) {
|
|
33695
|
-
throw new RuntimeError61(
|
|
34106
|
+
throw new RuntimeError61(
|
|
34107
|
+
ibiz.i18n.t(
|
|
34108
|
+
"runtime.controller.control.wizardPanel.wizardFormIdentifier",
|
|
34109
|
+
{ tag }
|
|
34110
|
+
)
|
|
34111
|
+
);
|
|
33696
34112
|
}
|
|
33697
34113
|
return wizardForm;
|
|
33698
34114
|
}
|
|
@@ -33763,7 +34179,9 @@ var WizardPanelController = class extends ControlController {
|
|
|
33763
34179
|
prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
33764
34180
|
}
|
|
33765
34181
|
if (!prevTag) {
|
|
33766
|
-
throw new RuntimeError61(
|
|
34182
|
+
throw new RuntimeError61(
|
|
34183
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.noPreviousForm")
|
|
34184
|
+
);
|
|
33767
34185
|
}
|
|
33768
34186
|
this.state.activeFormTag = prevTag;
|
|
33769
34187
|
}
|
|
@@ -33799,7 +34217,9 @@ var WizardPanelController = class extends ControlController {
|
|
|
33799
34217
|
});
|
|
33800
34218
|
const nextWizardStep = wizardSteps[index + 1];
|
|
33801
34219
|
if (!nextWizardStep) {
|
|
33802
|
-
throw new RuntimeError61(
|
|
34220
|
+
throw new RuntimeError61(
|
|
34221
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.nextStep")
|
|
34222
|
+
);
|
|
33803
34223
|
}
|
|
33804
34224
|
const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
|
|
33805
34225
|
if (nextWizardForm && nextWizardForm.formTag) {
|
|
@@ -33808,7 +34228,9 @@ var WizardPanelController = class extends ControlController {
|
|
|
33808
34228
|
}
|
|
33809
34229
|
}
|
|
33810
34230
|
if (!nextTag) {
|
|
33811
|
-
throw new RuntimeError61(
|
|
34231
|
+
throw new RuntimeError61(
|
|
34232
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.nextForm")
|
|
34233
|
+
);
|
|
33812
34234
|
}
|
|
33813
34235
|
this.state.activeFormTag = nextTag;
|
|
33814
34236
|
this.tagHistory.push(nextTag);
|
|
@@ -34058,7 +34480,9 @@ var MDCtrlController = class extends MDControlController {
|
|
|
34058
34480
|
initUIActionGroup(row, group) {
|
|
34059
34481
|
var _a;
|
|
34060
34482
|
if (!((_a = group.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
34061
|
-
ibiz.log.debug(
|
|
34483
|
+
ibiz.log.debug(
|
|
34484
|
+
ibiz.i18n.t("runtime.controller.control.grid.interfaceBehavior")
|
|
34485
|
+
);
|
|
34062
34486
|
}
|
|
34063
34487
|
const containerState = new ButtonContainerState();
|
|
34064
34488
|
const details = group.uiactionGroupDetails || [];
|
|
@@ -34085,7 +34509,12 @@ var MDCtrlController = class extends MDControlController {
|
|
|
34085
34509
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
34086
34510
|
if (enableGroup && groupMode) {
|
|
34087
34511
|
if (!groupAppDEFieldId) {
|
|
34088
|
-
throw new RuntimeModelError67(
|
|
34512
|
+
throw new RuntimeModelError67(
|
|
34513
|
+
this.model,
|
|
34514
|
+
ibiz.i18n.t(
|
|
34515
|
+
"runtime.controller.control.dataView.propertiesNotConfigured"
|
|
34516
|
+
)
|
|
34517
|
+
);
|
|
34089
34518
|
}
|
|
34090
34519
|
if (groupMode === "AUTO") {
|
|
34091
34520
|
this.handleAutoGroup();
|
|
@@ -34152,7 +34581,10 @@ var MDCtrlController = class extends MDControlController {
|
|
|
34152
34581
|
async handleCodeListGroup() {
|
|
34153
34582
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
34154
34583
|
if (!groupCodeListId) {
|
|
34155
|
-
throw new RuntimeModelError67(
|
|
34584
|
+
throw new RuntimeModelError67(
|
|
34585
|
+
this.model,
|
|
34586
|
+
ibiz.i18n.t("runtime.controller.control.dataView.tableNotConfigured")
|
|
34587
|
+
);
|
|
34156
34588
|
}
|
|
34157
34589
|
const { items } = this.state;
|
|
34158
34590
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -34261,10 +34693,16 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34261
34693
|
const sortField = this.model.minorSortAppDEFieldId;
|
|
34262
34694
|
const { minorSortDir } = this.model;
|
|
34263
34695
|
if (!sortField) {
|
|
34264
|
-
throw new RuntimeModelError68(
|
|
34696
|
+
throw new RuntimeModelError68(
|
|
34697
|
+
this.model,
|
|
34698
|
+
ibiz.i18n.t("runtime.controller.control.kanban.sortingProperties")
|
|
34699
|
+
);
|
|
34265
34700
|
}
|
|
34266
34701
|
if (!minorSortDir) {
|
|
34267
|
-
throw new RuntimeModelError68(
|
|
34702
|
+
throw new RuntimeModelError68(
|
|
34703
|
+
this.model,
|
|
34704
|
+
ibiz.i18n.t("runtime.controller.control.kanban.sortDirection")
|
|
34705
|
+
);
|
|
34268
34706
|
}
|
|
34269
34707
|
const isAsc = minorSortDir === "ASC";
|
|
34270
34708
|
items.forEach((item) => {
|
|
@@ -34275,7 +34713,9 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34275
34713
|
const toNum = Number(sortValue);
|
|
34276
34714
|
if (Number.isNaN(toNum)) {
|
|
34277
34715
|
throw new RuntimeError62(
|
|
34278
|
-
|
|
34716
|
+
ibiz.i18n.t("runtime.controller.control.grid.convertedValue", {
|
|
34717
|
+
srfmajortext: item.srfmajortext
|
|
34718
|
+
})
|
|
34279
34719
|
);
|
|
34280
34720
|
}
|
|
34281
34721
|
}
|
|
@@ -34396,7 +34836,9 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34396
34836
|
}
|
|
34397
34837
|
handleDataGroup() {
|
|
34398
34838
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
34399
|
-
throw new RuntimeError62(
|
|
34839
|
+
throw new RuntimeError62(
|
|
34840
|
+
ibiz.i18n.t("runtime.controller.control.kanban.groupedOn")
|
|
34841
|
+
);
|
|
34400
34842
|
}
|
|
34401
34843
|
return super.handleDataGroup();
|
|
34402
34844
|
}
|
|
@@ -34444,7 +34886,10 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34444
34886
|
async handleCodeListGroup() {
|
|
34445
34887
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
34446
34888
|
if (!groupCodeListId) {
|
|
34447
|
-
throw new RuntimeModelError68(
|
|
34889
|
+
throw new RuntimeModelError68(
|
|
34890
|
+
this.model,
|
|
34891
|
+
ibiz.i18n.t("runtime.controller.control.dataView.tableNotConfigured")
|
|
34892
|
+
);
|
|
34448
34893
|
}
|
|
34449
34894
|
const { items } = this.state;
|
|
34450
34895
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -34482,7 +34927,9 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34482
34927
|
async onDragChange(info) {
|
|
34483
34928
|
if (!this.enableEditGroup) {
|
|
34484
34929
|
if (info.from !== info.to) {
|
|
34485
|
-
ibiz.message.warning(
|
|
34930
|
+
ibiz.message.warning(
|
|
34931
|
+
ibiz.i18n.t("runtime.controller.control.kanban.adjustmentsGroup")
|
|
34932
|
+
);
|
|
34486
34933
|
return;
|
|
34487
34934
|
}
|
|
34488
34935
|
}
|
|
@@ -34495,7 +34942,9 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34495
34942
|
const toGroup = this.state.groups.find((x) => x.key === to);
|
|
34496
34943
|
if (!this.enableEditOrder) {
|
|
34497
34944
|
if (info.from === info.to) {
|
|
34498
|
-
ibiz.message.warning(
|
|
34945
|
+
ibiz.message.warning(
|
|
34946
|
+
ibiz.i18n.t("runtime.controller.control.kanban.notAllowReorder")
|
|
34947
|
+
);
|
|
34499
34948
|
return;
|
|
34500
34949
|
}
|
|
34501
34950
|
const draggedItem2 = fromGroup.children[fromIndex];
|
|
@@ -34995,18 +35444,24 @@ var TreeGridExController = class extends TreeController {
|
|
|
34995
35444
|
}
|
|
34996
35445
|
async save(nodeData) {
|
|
34997
35446
|
if (this.state.isSimple) {
|
|
34998
|
-
ibiz.log.debug(
|
|
35447
|
+
ibiz.log.debug(
|
|
35448
|
+
ibiz.i18n.t("runtime.controller.control.gantt.simpleMode")
|
|
35449
|
+
);
|
|
34999
35450
|
return;
|
|
35000
35451
|
}
|
|
35001
35452
|
if (nodeData._nodeType !== "DE") {
|
|
35002
|
-
throw new RuntimeError63(
|
|
35453
|
+
throw new RuntimeError63(
|
|
35454
|
+
ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
|
|
35455
|
+
);
|
|
35003
35456
|
}
|
|
35004
35457
|
const rowState = this.state.rows[nodeData._uuid];
|
|
35005
35458
|
if (!rowState) {
|
|
35006
|
-
throw new RuntimeError63(
|
|
35459
|
+
throw new RuntimeError63(
|
|
35460
|
+
ibiz.i18n.t("runtime.controller.control.gantt.rowData")
|
|
35461
|
+
);
|
|
35007
35462
|
}
|
|
35008
35463
|
if (!rowState.modified) {
|
|
35009
|
-
ibiz.log.debug("
|
|
35464
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.notChange"));
|
|
35010
35465
|
return;
|
|
35011
35466
|
}
|
|
35012
35467
|
if (rowState.processing) {
|
|
@@ -35017,10 +35472,15 @@ var TreeGridExController = class extends TreeController {
|
|
|
35017
35472
|
const { appDataEntityId, updateAppDEActionId } = nodeModel;
|
|
35018
35473
|
const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
|
|
35019
35474
|
if (isCreate) {
|
|
35020
|
-
throw new RuntimeError63(
|
|
35475
|
+
throw new RuntimeError63(
|
|
35476
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.notSupportCreation")
|
|
35477
|
+
);
|
|
35021
35478
|
}
|
|
35022
35479
|
if (!updateAppDEActionId) {
|
|
35023
|
-
throw new RuntimeModelError69(
|
|
35480
|
+
throw new RuntimeModelError69(
|
|
35481
|
+
nodeModel,
|
|
35482
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.updateBehavior")
|
|
35483
|
+
);
|
|
35024
35484
|
}
|
|
35025
35485
|
const deName = calcDeCodeNameById(appDataEntityId);
|
|
35026
35486
|
const tempContext = this.context.clone();
|
|
@@ -35177,7 +35637,9 @@ var TreeGridExController = class extends TreeController {
|
|
|
35177
35637
|
(item) => item.showRowEdit
|
|
35178
35638
|
);
|
|
35179
35639
|
if (editingRow) {
|
|
35180
|
-
throw new RuntimeError63(
|
|
35640
|
+
throw new RuntimeError63(
|
|
35641
|
+
ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
|
|
35642
|
+
);
|
|
35181
35643
|
}
|
|
35182
35644
|
if (row.data._deData.srfuf === 1 /* UPDATE */) {
|
|
35183
35645
|
row.cacheData = clone31(row.data);
|
|
@@ -35324,7 +35786,9 @@ var TreeGridExNodeColumnController = class {
|
|
|
35324
35786
|
if (!nodeColumn || !nodeDataItem) {
|
|
35325
35787
|
throw new RuntimeModelError70(
|
|
35326
35788
|
nodeModel,
|
|
35327
|
-
|
|
35789
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.notConfigured", {
|
|
35790
|
+
name: this.fieldColumn.name
|
|
35791
|
+
})
|
|
35328
35792
|
);
|
|
35329
35793
|
}
|
|
35330
35794
|
this.nodeColumn = nodeColumn;
|
|
@@ -35338,7 +35802,9 @@ var TreeGridExNodeColumnController = class {
|
|
|
35338
35802
|
if (!nodeEditItem) {
|
|
35339
35803
|
throw new RuntimeModelError70(
|
|
35340
35804
|
nodeModel,
|
|
35341
|
-
|
|
35805
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.editItem", {
|
|
35806
|
+
name: this.fieldColumn.name
|
|
35807
|
+
})
|
|
35342
35808
|
);
|
|
35343
35809
|
}
|
|
35344
35810
|
this.nodeEditItem = nodeEditItem;
|
|
@@ -35491,7 +35957,11 @@ var TreeGridExNodeColumnController = class {
|
|
|
35491
35957
|
const valueItem = this.nodeColumn.linkValueItem || "srfkey";
|
|
35492
35958
|
const value = row.data[valueItem];
|
|
35493
35959
|
if (value == null) {
|
|
35494
|
-
throw new RuntimeError64(
|
|
35960
|
+
throw new RuntimeError64(
|
|
35961
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.notPickedUp", {
|
|
35962
|
+
valueItem
|
|
35963
|
+
})
|
|
35964
|
+
);
|
|
35495
35965
|
}
|
|
35496
35966
|
const { linkAppViewId } = this.nodeColumn;
|
|
35497
35967
|
if (!linkAppViewId) {
|
|
@@ -35791,11 +36261,17 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
|
|
|
35791
36261
|
var _a;
|
|
35792
36262
|
const deuiactionGroup = this.getUIActionGroup(row);
|
|
35793
36263
|
if (!deuiactionGroup) {
|
|
35794
|
-
ibiz.log.warn(
|
|
36264
|
+
ibiz.log.warn(
|
|
36265
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.behaviorGroup", {
|
|
36266
|
+
id: this.model.id
|
|
36267
|
+
})
|
|
36268
|
+
);
|
|
35795
36269
|
return;
|
|
35796
36270
|
}
|
|
35797
36271
|
if (!((_a = deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
35798
|
-
ibiz.log.debug(
|
|
36272
|
+
ibiz.log.debug(
|
|
36273
|
+
ibiz.i18n.t("runtime.controller.control.grid.interfaceBehavior")
|
|
36274
|
+
);
|
|
35799
36275
|
return;
|
|
35800
36276
|
}
|
|
35801
36277
|
const containerState = new ButtonContainerState();
|
|
@@ -35881,10 +36357,16 @@ var TreeGridController = class extends GridController {
|
|
|
35881
36357
|
return item.treeColumnMode === 2 || item.treeColumnMode === 3;
|
|
35882
36358
|
});
|
|
35883
36359
|
if (!treeGridParent) {
|
|
35884
|
-
throw new RuntimeModelError71(
|
|
36360
|
+
throw new RuntimeModelError71(
|
|
36361
|
+
this.model,
|
|
36362
|
+
ibiz.i18n.t("runtime.controller.control.treeGrid.columnsSchema")
|
|
36363
|
+
);
|
|
35885
36364
|
}
|
|
35886
36365
|
if (!treeGridValue) {
|
|
35887
|
-
throw new RuntimeModelError71(
|
|
36366
|
+
throw new RuntimeModelError71(
|
|
36367
|
+
this.model,
|
|
36368
|
+
ibiz.i18n.t("runtime.controller.control.treeGrid.columnMode")
|
|
36369
|
+
);
|
|
35888
36370
|
}
|
|
35889
36371
|
this.treeGridValueField = treeGridValue.appDEFieldId.toLowerCase();
|
|
35890
36372
|
this.treeGridParentField = treeGridParent.appDEFieldId.toLowerCase();
|
|
@@ -36010,7 +36492,11 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
36010
36492
|
if (arg.srfmajortext && !Object.is(arg.srfmajortext, "")) {
|
|
36011
36493
|
Object.assign(item, { srfmajortext: arg.srfmajortext });
|
|
36012
36494
|
} else if (arg.srfuf === 0) {
|
|
36013
|
-
Object.assign(item, {
|
|
36495
|
+
Object.assign(item, {
|
|
36496
|
+
srfmajortext: ibiz.i18n.t(
|
|
36497
|
+
"runtime.controller.control.meditViewPanel.DraftNew"
|
|
36498
|
+
)
|
|
36499
|
+
});
|
|
36014
36500
|
}
|
|
36015
36501
|
});
|
|
36016
36502
|
return item;
|
|
@@ -36120,7 +36606,9 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
36120
36606
|
(item) => item.id === id
|
|
36121
36607
|
);
|
|
36122
36608
|
if (panelUiItemIndex < 0) {
|
|
36123
|
-
throw new RuntimeError65(
|
|
36609
|
+
throw new RuntimeError65(
|
|
36610
|
+
ibiz.i18n.t("runtime.controller.control.meditViewPanel.dataExist")
|
|
36611
|
+
);
|
|
36124
36612
|
}
|
|
36125
36613
|
const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
|
|
36126
36614
|
if (tempUiItem.id.startsWith("mockId:")) {
|
|
@@ -36468,7 +36956,9 @@ var ReportPanelGeneratorFactory = class {
|
|
|
36468
36956
|
*/
|
|
36469
36957
|
static getInstance(model) {
|
|
36470
36958
|
if (!model || !model.appDEReport || !model.appDEReport.reportType) {
|
|
36471
|
-
throw new Error(
|
|
36959
|
+
throw new Error(
|
|
36960
|
+
ibiz.i18n.t("runtime.controller.control.reportPanel.reportType")
|
|
36961
|
+
);
|
|
36472
36962
|
}
|
|
36473
36963
|
switch (model.appDEReport.reportType) {
|
|
36474
36964
|
case "USER":
|
|
@@ -36477,7 +36967,9 @@ var ReportPanelGeneratorFactory = class {
|
|
|
36477
36967
|
return new User2ReportPanelGenerator(model);
|
|
36478
36968
|
default:
|
|
36479
36969
|
throw new Error(
|
|
36480
|
-
|
|
36970
|
+
ibiz.i18n.t("runtime.controller.control.reportPanel.notImplemented", {
|
|
36971
|
+
reportType: model.appDEReport.reportType
|
|
36972
|
+
})
|
|
36481
36973
|
);
|
|
36482
36974
|
}
|
|
36483
36975
|
}
|
|
@@ -36772,7 +37264,9 @@ var GanttService = class extends TreeService {
|
|
|
36772
37264
|
default:
|
|
36773
37265
|
throw new ModelError31(
|
|
36774
37266
|
nodeModel,
|
|
36775
|
-
|
|
37267
|
+
ibiz.i18n.t("runtime.controller.control.gantt.notSupport", {
|
|
37268
|
+
treeNodeType: nodeModel.treeNodeType
|
|
37269
|
+
})
|
|
36776
37270
|
);
|
|
36777
37271
|
}
|
|
36778
37272
|
const { expandFirstOnly, expanded, rootNode } = nodeModel;
|
|
@@ -37030,7 +37524,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
37030
37524
|
if (result === -1) {
|
|
37031
37525
|
throw new RuntimeModelError72(
|
|
37032
37526
|
nodeModel,
|
|
37033
|
-
|
|
37527
|
+
ibiz.i18n.t("runtime.controller.control.calendar.missingViewLogic", {
|
|
37528
|
+
itemType: nodeModel.id.toLowerCase()
|
|
37529
|
+
})
|
|
37034
37530
|
);
|
|
37035
37531
|
} else {
|
|
37036
37532
|
return {
|
|
@@ -37074,11 +37570,15 @@ var GanttController = class extends TreeGridExController {
|
|
|
37074
37570
|
*/
|
|
37075
37571
|
async modifyNodeTime(nodeData, { begin, end }) {
|
|
37076
37572
|
if (nodeData._nodeType !== "DE") {
|
|
37077
|
-
throw new RuntimeError66(
|
|
37573
|
+
throw new RuntimeError66(
|
|
37574
|
+
ibiz.i18n.t("runtime.controller.control.gantt.notNode")
|
|
37575
|
+
);
|
|
37078
37576
|
}
|
|
37079
37577
|
const rowState = this.getRowState(nodeData._id);
|
|
37080
37578
|
if (!rowState) {
|
|
37081
|
-
throw new RuntimeError66(
|
|
37579
|
+
throw new RuntimeError66(
|
|
37580
|
+
ibiz.i18n.t("runtime.controller.control.gantt.rowData")
|
|
37581
|
+
);
|
|
37082
37582
|
}
|
|
37083
37583
|
const { beginDataItemName, endDataItemName } = this.model;
|
|
37084
37584
|
this.setRowValue(rowState, beginDataItemName, begin);
|
|
@@ -37094,18 +37594,24 @@ var GanttController = class extends TreeGridExController {
|
|
|
37094
37594
|
*/
|
|
37095
37595
|
async save(nodeData) {
|
|
37096
37596
|
if (this.state.isSimple) {
|
|
37097
|
-
ibiz.log.debug(
|
|
37597
|
+
ibiz.log.debug(
|
|
37598
|
+
ibiz.i18n.t("runtime.controller.control.gantt.simpleMode")
|
|
37599
|
+
);
|
|
37098
37600
|
return;
|
|
37099
37601
|
}
|
|
37100
37602
|
if (nodeData._nodeType !== "DE") {
|
|
37101
|
-
throw new RuntimeError66(
|
|
37603
|
+
throw new RuntimeError66(
|
|
37604
|
+
ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
|
|
37605
|
+
);
|
|
37102
37606
|
}
|
|
37103
37607
|
const rowState = this.state.rows[nodeData._uuid];
|
|
37104
37608
|
if (!rowState) {
|
|
37105
|
-
throw new RuntimeError66(
|
|
37609
|
+
throw new RuntimeError66(
|
|
37610
|
+
ibiz.i18n.t("runtime.controller.control.gantt.rowData")
|
|
37611
|
+
);
|
|
37106
37612
|
}
|
|
37107
37613
|
if (!rowState.modified) {
|
|
37108
|
-
ibiz.log.debug("
|
|
37614
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.notChange"));
|
|
37109
37615
|
return;
|
|
37110
37616
|
}
|
|
37111
37617
|
if (rowState.processing) {
|
|
@@ -37150,12 +37656,16 @@ var GanttController = class extends TreeGridExController {
|
|
|
37150
37656
|
async remove(args) {
|
|
37151
37657
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
37152
37658
|
if (!(data == null ? void 0 : data.length)) {
|
|
37153
|
-
throw new RuntimeError66(
|
|
37659
|
+
throw new RuntimeError66(
|
|
37660
|
+
ibiz.i18n.t("runtime.controller.common.control.uncheckedData")
|
|
37661
|
+
);
|
|
37154
37662
|
}
|
|
37155
37663
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
37156
37664
|
const del = await ibiz.confirm.error({
|
|
37157
|
-
title: "
|
|
37158
|
-
desc:
|
|
37665
|
+
title: ibiz.i18n.t("runtime.controller.common.control.dataDeletion"),
|
|
37666
|
+
desc: ibiz.i18n.t(
|
|
37667
|
+
"runtime.controller.common.control.confirmDataDeletion"
|
|
37668
|
+
)
|
|
37159
37669
|
});
|
|
37160
37670
|
if (!del) {
|
|
37161
37671
|
return;
|
|
@@ -37197,7 +37707,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
37197
37707
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
37198
37708
|
this.actionNotification("REMOVESUCCESS", {
|
|
37199
37709
|
data,
|
|
37200
|
-
default:
|
|
37710
|
+
default: ibiz.i18n.t("runtime.controller.control.gantt.dataDeleted", {
|
|
37711
|
+
str: data.map((item) => item.srfmajortext).join("\u3001")
|
|
37712
|
+
})
|
|
37201
37713
|
});
|
|
37202
37714
|
}
|
|
37203
37715
|
if (needRefresh && refreshNode && !(args == null ? void 0 : args.notRefresh)) {
|
|
@@ -37259,7 +37771,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
37259
37771
|
(item) => item.showRowEdit
|
|
37260
37772
|
);
|
|
37261
37773
|
if (editingRow) {
|
|
37262
|
-
throw new RuntimeError66(
|
|
37774
|
+
throw new RuntimeError66(
|
|
37775
|
+
ibiz.i18n.t("runtime.controller.control.gantt.firstComplete")
|
|
37776
|
+
);
|
|
37263
37777
|
}
|
|
37264
37778
|
}
|
|
37265
37779
|
let parentModel;
|