@baosight/er4j 0.0.16 → 0.0.17

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.
@@ -5,19 +5,19 @@ var ji = (l) => {
5
5
  var oa = (l, C, r) => C in l ? ta(l, C, { enumerable: !0, configurable: !0, writable: !0, value: r }) : l[C] = r;
6
6
  var I = (l, C, r) => oa(l, typeof C != "symbol" ? C + "" : C, r), Pi = (l, C, r) => C.has(l) || ji("Cannot " + r);
7
7
  var Te = (l, C, r) => (Pi(l, C, "read from private field"), r ? r.call(l) : C.get(l)), bo = (l, C, r) => C.has(l) ? ji("Cannot add the same private member more than once") : C instanceof WeakSet ? C.add(l) : C.set(l, r), jt = (l, C, r, f) => (Pi(l, C, "write to private field"), f ? f.call(l, r) : C.set(l, r), r), wo = (l, C, r) => (Pi(l, C, "access private method"), r);
8
- import { defineComponent as Ot, ref as P, onMounted as Xt, nextTick as io, h as $e, resolveComponent as Ve, resolveDirective as yr, createBlock as de, openBlock as x, withCtx as Y, withDirectives as $t, createSlots as oo, createVNode as Fe, resolveDynamicComponent as zo, onBeforeMount as Fr, createElementBlock as Ze, normalizeStyle as _t, createElementVNode as be, createCommentVNode as je, createTextVNode as eo, toDisplayString as nt, vModelText as ia, withKeys as ra, Fragment as Oo, renderList as xo, withModifiers as vr, onUnmounted as fi, normalizeClass as Gt, render as ri, isProxy as Ji, toRaw as Ki, reactive as po, isRef as Ar, createApp as oi, vShow as Zt, getCurrentInstance as aa, computed as Lo, renderSlot as $o, onBeforeUnmount as Mr, createStaticVNode as la, watch as Jo, vModelSelect as Zi, useAttrs as vi, unref as Ae, mergeProps as go } from "vue";
8
+ import { defineComponent as Dt, ref as P, onMounted as Xt, nextTick as io, h as $e, resolveComponent as Ve, resolveDirective as yr, createBlock as de, openBlock as x, withCtx as Y, withDirectives as $t, createSlots as oo, createVNode as Fe, resolveDynamicComponent as Qo, onBeforeMount as Fr, createElementBlock as Ze, normalizeStyle as _t, createElementVNode as be, createCommentVNode as je, createTextVNode as eo, toDisplayString as nt, vModelText as ia, withKeys as ra, Fragment as Oo, renderList as xo, withModifiers as vr, onUnmounted as fi, normalizeClass as Gt, render as ri, isProxy as Ji, toRaw as Ki, reactive as po, isRef as Ar, createApp as oi, vShow as Zt, getCurrentInstance as aa, computed as Lo, renderSlot as Wo, onBeforeUnmount as Mr, createStaticVNode as la, watch as Jo, vModelSelect as Zi, useAttrs as vi, unref as Ae, mergeProps as go } from "vue";
9
9
  import na, { ConfigProvider as _o, Input as Vo, DatePicker as br, Button as Ko, Tooltip as Yo, InputGroup as Ui, Textarea as Ai, Badge as Vi, Tag as Mi, Image as sa, Modal as ai, message as ki, Spin as da, Checkbox as Yi, Radio as wr, SelectOption as ua, Select as Rr, CheckboxGroup as ca, RadioGroup as Nr, Popover as Pr, Form as kr, FormItem as pa, Divider as fa, Switch as ga, Dropdown as ha, TimePicker as ma, InputNumber as Lr, Menu as Ca, InputPassword as Ea, Tree as _a, TabPane as Ta, Tabs as Ia } from "ant-design-vue";
10
10
  import { ExclamationCircleOutlined as ni, CloseCircleOutlined as $i, CheckCircleOutlined as Si, EllipsisOutlined as Li, WindowsOutlined as er, DatabaseOutlined as tr, ClusterOutlined as or, InsertRowAboveOutlined as ir, ConsoleSqlOutlined as rr, FunctionOutlined as ar, LayoutOutlined as lr, GoldOutlined as nr, PartitionOutlined as sr, OrderedListOutlined as dr, FieldNumberOutlined as ur, BlockOutlined as cr, ProjectOutlined as pr, FolderOpenOutlined as yi, FolderOutlined as Fi, createFromIconfontCN as xr, CopyOutlined as bi, CloseOutlined as wi, StepBackwardOutlined as Oa, CaretLeftOutlined as Da, CaretRightOutlined as Sa, StepForwardOutlined as ya, PrinterOutlined as Fa, SyncOutlined as Br, PlusOutlined as Gr, CheckOutlined as Hr, CaretDownOutlined as va, CaretUpOutlined as Aa, UndoOutlined as Ur, FileExcelOutlined as Ma, UploadOutlined as ba, MoreOutlined as wa, FileOutlined as Vr, UnlockOutlined as Ra, ScissorOutlined as Na, FieldBinaryOutlined as Pa, TagOutlined as ka, InsertRowBelowOutlined as La, SwapOutlined as xa, RetweetOutlined as Ba, BuildOutlined as Ga, ColumnWidthOutlined as Ha, ToTopOutlined as Ua, CreditCardOutlined as Va, GlobalOutlined as Ya, SettingOutlined as $a, ReloadOutlined as Wa, SaveOutlined as za, LockOutlined as Qa, SearchOutlined as xi, TranslationOutlined as Xa } from "@ant-design/icons-vue";
11
11
  import Qt from "dayjs";
12
12
  import { createI18n as qa } from "vue-i18n";
13
13
  import ja from "jquery";
14
14
  import si from "axios";
15
- import { EiInfo as St, EiBlock as vo, EiBlockMeta as Ja, EiColumn as mi, EiCommunicator as Ka } from "@eplat/ei";
15
+ import { EiInfo as It, EiBlock as vo, EiBlockMeta as Ja, EiColumn as mi, EiCommunicator as Ka } from "@eplat/ei";
16
16
  import Za from "vue-clipboard3";
17
17
  import Bt from "decimal.js";
18
18
  import { AgGridVue as li } from "@ag-grid-community/vue3";
19
19
  import { Splitpanes as Ei, Pane as ci } from "splitpanes";
20
- import jo, { filter as el } from "lodash";
20
+ import $o, { filter as el } from "lodash";
21
21
  import Ho from "crypto-js";
22
22
  import { debounce as tl } from "lodash-es";
23
23
  import { Codemirror as Ri } from "vue-codemirror";
@@ -4125,7 +4125,7 @@ const Ll = (l) => {
4125
4125
  break;
4126
4126
  }
4127
4127
  return C;
4128
- }, Wo = () => window.__POWERED_BY_WUJIE__ ? window.top._PlatInterOp.isRTL : gi() === "ar", Gl = {
4128
+ }, zo = () => window.__POWERED_BY_WUJIE__ ? window.top._PlatInterOp.isRTL : gi() === "ar", Gl = {
4129
4129
  token: {
4130
4130
  fontSize: 12,
4131
4131
  sizeStep: 4,
@@ -4271,7 +4271,7 @@ const Ll = (l) => {
4271
4271
  (U = document.querySelector(r)) == null || U.classList.add(G);
4272
4272
  };
4273
4273
  Qt.locale("zh-cn");
4274
- const Yl = Ot({
4274
+ const Yl = Dt({
4275
4275
  name: "DatetimeEditor",
4276
4276
  components: {
4277
4277
  "a-date-picker": br,
@@ -4380,7 +4380,7 @@ function $l(l, C, r, f, V, ee) {
4380
4380
  title: l.ER.Core.$t("ERX.InputEmptyMessage")
4381
4381
  }, {
4382
4382
  default: Y(() => [
4383
- (x(), de(zo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
4383
+ (x(), de(Qo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
4384
4384
  ]),
4385
4385
  _: 1
4386
4386
  }, 8, ["title"])
@@ -4392,7 +4392,7 @@ function $l(l, C, r, f, V, ee) {
4392
4392
  _: 1
4393
4393
  }, 8, ["theme", "locale"]);
4394
4394
  }
4395
- const Wl = /* @__PURE__ */ lo(Yl, [["render", $l]]), zl = Ot({
4395
+ const Wl = /* @__PURE__ */ lo(Yl, [["render", $l]]), zl = Dt({
4396
4396
  name: "DropdownEditor",
4397
4397
  components: {
4398
4398
  "a-button": Ko,
@@ -4546,7 +4546,7 @@ const Wl = /* @__PURE__ */ lo(Yl, [["render", $l]]), zl = Ot({
4546
4546
  l.params.multiple && (U.unshift(
4547
4547
  {
4548
4548
  colId: g.SysInfo.GridCheckColumnFieldName,
4549
- pinned: Wo() ? "right" : "left",
4549
+ pinned: zo() ? "right" : "left",
4550
4550
  headerCheckboxSelection: (ge) => !0,
4551
4551
  headerCheckboxSelectionFilteredOnly: ((Me = l.params) == null ? void 0 : Me.headerCheckboxSelectionFilteredOnly) !== void 0 ? (Qe = l.params) == null ? void 0 : Qe.headerCheckboxSelectionFilteredOnly : !0,
4552
4552
  checkboxSelection: (ge) => !ge.node.group && !ge.node.footer,
@@ -4557,7 +4557,7 @@ const Wl = /* @__PURE__ */ lo(Yl, [["render", $l]]), zl = Ot({
4557
4557
  suppressMenu: !0,
4558
4558
  resizable: !1,
4559
4559
  sortable: !1,
4560
- lockPosition: Wo() ? "right" : "left"
4560
+ lockPosition: zo() ? "right" : "left"
4561
4561
  }
4562
4562
  ), we += 30);
4563
4563
  let Xe = 15;
@@ -4590,7 +4590,7 @@ const Wl = /* @__PURE__ */ lo(Yl, [["render", $l]]), zl = Ot({
4590
4590
  }
4591
4591
  }), {
4592
4592
  h: $e,
4593
- isRTL: Wo,
4593
+ isRTL: zo,
4594
4594
  ER: g,
4595
4595
  editorType: z,
4596
4596
  dropDownStyle: G,
@@ -4699,7 +4699,7 @@ function ql(l, C, r, f, V, ee) {
4699
4699
  ])) : je("", !0)
4700
4700
  ], 4));
4701
4701
  }
4702
- const jl = /* @__PURE__ */ lo(zl, [["render", ql]]), Jl = Ot({
4702
+ const jl = /* @__PURE__ */ lo(zl, [["render", ql]]), Jl = Dt({
4703
4703
  name: "ButtonEditor",
4704
4704
  props: ["params"],
4705
4705
  components: {
@@ -4799,7 +4799,7 @@ function Kl(l, C, r, f, V, ee) {
4799
4799
  title: l.ER.Core.$t("ERX.InputEmptyMessage")
4800
4800
  }, {
4801
4801
  default: Y(() => [
4802
- (x(), de(zo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
4802
+ (x(), de(Qo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
4803
4803
  ]),
4804
4804
  _: 1
4805
4805
  }, 8, ["title"])
@@ -4812,7 +4812,7 @@ function Kl(l, C, r, f, V, ee) {
4812
4812
  onClick: l.addButtonClick
4813
4813
  }, {
4814
4814
  icon: Y(() => [
4815
- (x(), de(zo(l.h(l.EllipsisOutlined))))
4815
+ (x(), de(Qo(l.h(l.EllipsisOutlined))))
4816
4816
  ]),
4817
4817
  _: 1
4818
4818
  }, 8, ["onClick"])
@@ -4823,7 +4823,7 @@ function Kl(l, C, r, f, V, ee) {
4823
4823
  _: 1
4824
4824
  }, 8, ["theme", "locale"]);
4825
4825
  }
4826
- const Zl = /* @__PURE__ */ lo(Jl, [["render", Kl]]), en = Ot({
4826
+ const Zl = /* @__PURE__ */ lo(Jl, [["render", Kl]]), en = Dt({
4827
4827
  name: "ColorEditor",
4828
4828
  props: ["params"],
4829
4829
  setup: (l) => {
@@ -4876,7 +4876,7 @@ function rn(l, C, r, f, V, ee) {
4876
4876
  ])
4877
4877
  ]);
4878
4878
  }
4879
- const an = /* @__PURE__ */ lo(en, [["render", rn]]), ln = Ot({
4879
+ const an = /* @__PURE__ */ lo(en, [["render", rn]]), ln = Dt({
4880
4880
  name: "NumberEditor",
4881
4881
  props: ["params"],
4882
4882
  components: {
@@ -4954,7 +4954,7 @@ function nn(l, C, r, f, V, ee) {
4954
4954
  title: l.ER.Core.$t("ERX.InputEmptyMessage")
4955
4955
  }, {
4956
4956
  default: Y(() => [
4957
- (x(), de(zo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
4957
+ (x(), de(Qo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
4958
4958
  ]),
4959
4959
  _: 1
4960
4960
  }, 8, ["title"])
@@ -4966,7 +4966,7 @@ function nn(l, C, r, f, V, ee) {
4966
4966
  _: 1
4967
4967
  }, 8, ["theme", "locale"]);
4968
4968
  }
4969
- const sn = /* @__PURE__ */ lo(ln, [["render", nn]]), dn = Ot({
4969
+ const sn = /* @__PURE__ */ lo(ln, [["render", nn]]), dn = Dt({
4970
4970
  name: "TextEditor",
4971
4971
  props: ["params"],
4972
4972
  components: {
@@ -5049,7 +5049,7 @@ function un(l, C, r, f, V, ee) {
5049
5049
  title: l.ER.Core.$t("ERX.InputEmptyMessage")
5050
5050
  }, {
5051
5051
  default: Y(() => [
5052
- (x(), de(zo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
5052
+ (x(), de(Qo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
5053
5053
  ]),
5054
5054
  _: 1
5055
5055
  }, 8, ["title"])
@@ -5061,7 +5061,7 @@ function un(l, C, r, f, V, ee) {
5061
5061
  _: 1
5062
5062
  }, 8, ["theme", "locale"]);
5063
5063
  }
5064
- const cn = /* @__PURE__ */ lo(dn, [["render", un]]), pn = Ot({
5064
+ const cn = /* @__PURE__ */ lo(dn, [["render", un]]), pn = Dt({
5065
5065
  name: "LargeTextEditor",
5066
5066
  props: ["params"],
5067
5067
  components: {
@@ -5158,7 +5158,7 @@ function fn(l, C, r, f, V, ee) {
5158
5158
  title: l.ER.Core.$t("ERX.InputEmptyMessage")
5159
5159
  }, {
5160
5160
  default: Y(() => [
5161
- (x(), de(zo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
5161
+ (x(), de(Qo(l.h(l.ExclamationCircleOutlined, { style: { color: "red" } }))))
5162
5162
  ]),
5163
5163
  _: 1
5164
5164
  }, 8, ["title"])
@@ -5170,7 +5170,7 @@ function fn(l, C, r, f, V, ee) {
5170
5170
  _: 1
5171
5171
  }, 8, ["theme", "locale"]);
5172
5172
  }
5173
- const gn = /* @__PURE__ */ lo(pn, [["render", fn]]), hn = Ot({
5173
+ const gn = /* @__PURE__ */ lo(pn, [["render", fn]]), hn = Dt({
5174
5174
  name: "ColorCell",
5175
5175
  props: ["params"],
5176
5176
  setup: (l) => {
@@ -5192,7 +5192,7 @@ function Cn(l, C, r, f, V, ee) {
5192
5192
  eo(nt(l.value), 1)
5193
5193
  ]);
5194
5194
  }
5195
- const En = /* @__PURE__ */ lo(hn, [["render", Cn]]), _n = Ot({
5195
+ const En = /* @__PURE__ */ lo(hn, [["render", Cn]]), _n = Dt({
5196
5196
  name: "ButtonGroup",
5197
5197
  components: {
5198
5198
  "a-button": Ko,
@@ -5269,7 +5269,7 @@ function On(l, C, r, f, V, ee) {
5269
5269
  _: 1
5270
5270
  }, 8, ["theme", "locale"]);
5271
5271
  }
5272
- const Dn = /* @__PURE__ */ lo(_n, [["render", On]]), Sn = Ot({
5272
+ const Dn = /* @__PURE__ */ lo(_n, [["render", On]]), Sn = Dt({
5273
5273
  name: "ProgressBar",
5274
5274
  props: ["params"],
5275
5275
  setup: (l) => {
@@ -5324,7 +5324,7 @@ function Fn(l, C, r, f, V, ee) {
5324
5324
  }, null, 4)
5325
5325
  ], 4)) : je("", !0);
5326
5326
  }
5327
- const vn = /* @__PURE__ */ lo(Sn, [["render", Fn]]), An = Ot({
5327
+ const vn = /* @__PURE__ */ lo(Sn, [["render", Fn]]), An = Dt({
5328
5328
  name: "DefaultRender",
5329
5329
  components: {
5330
5330
  "a-tag": Mi,
@@ -5401,7 +5401,7 @@ function kn(l, C, r, f, V, ee) {
5401
5401
  }, nt(l.props.params.displayText), 9, Nn)) : (x(), Ze("span", Pn, nt(l.props.params.displayText), 1))
5402
5402
  ], 4);
5403
5403
  }
5404
- const ui = /* @__PURE__ */ lo(An, [["render", kn]]), Ln = Ot({
5404
+ const ui = /* @__PURE__ */ lo(An, [["render", kn]]), Ln = Dt({
5405
5405
  name: "ImagePreview",
5406
5406
  components: {
5407
5407
  "a-image": sa
@@ -5438,7 +5438,7 @@ function xn(l, C, r, f, V, ee) {
5438
5438
  }, null, 8, ["src", "width", "height"])
5439
5439
  ]);
5440
5440
  }
5441
- const zi = /* @__PURE__ */ lo(Ln, [["render", xn]]), Bn = Ot({
5441
+ const zi = /* @__PURE__ */ lo(Ln, [["render", xn]]), Bn = Dt({
5442
5442
  name: "CustomCellRenderer",
5443
5443
  props: ["params"],
5444
5444
  components: {
@@ -5491,7 +5491,7 @@ function Gn(l, C, r, f, V, ee) {
5491
5491
  var z, q, J, X, K, ae;
5492
5492
  return [
5493
5493
  be("div", null, [
5494
- (x(), de(zo(l.nodeIconComponent))),
5494
+ (x(), de(Qo(l.nodeIconComponent))),
5495
5495
  (q = (z = l.data) == null ? void 0 : z.NODE_TYPE) != null && q.toUpperCase().endsWith("VIEW") ? (x(), de(G, {
5496
5496
  key: 0,
5497
5497
  style: { margin: "auto" }
@@ -5519,7 +5519,7 @@ function Gn(l, C, r, f, V, ee) {
5519
5519
  _: 1
5520
5520
  }, 8, ["theme", "locale"]);
5521
5521
  }
5522
- const pi = /* @__PURE__ */ lo(Bn, [["render", Gn]]), Hn = Ot({
5522
+ const pi = /* @__PURE__ */ lo(Bn, [["render", Gn]]), Hn = Dt({
5523
5523
  name: "HeaderGroup",
5524
5524
  // 或 MyGroupHeaderComponent
5525
5525
  props: ["params"],
@@ -5783,8 +5783,8 @@ var g;
5783
5783
  const i = /* @__PURE__ */ new Date(), a = i.getFullYear().toString();
5784
5784
  let s = (i.getMonth() + 1).toString(), d = i.getDate().toString(), u = i.getHours().toString(), c = i.getMinutes().toString(), p = i.getSeconds().toString();
5785
5785
  s = s.length === 1 ? "0" + s : s, d = d.length === 1 ? "0" + d : d, u = u.length === 1 ? "0" + u : u, c = c.length === 1 ? "0" + c : c, p = p.length === 1 ? "0" + p : p, e = e.trim().replaceAll(" ", "").replaceAll("/", "").replaceAll("-", "").replaceAll(":", "").replaceAll("T", "").replaceAll("yyyy", a).replaceAll("MM", s).replaceAll("dd", d).replaceAll("HH", u).replaceAll("mm", c).replaceAll("ss", p);
5786
- let m = 1, T = 1, v = 1, O = 0, F = 0, S = 0;
5787
- e.length >= 4 && (m = this.toNumber(e.substring(0, 4)) || 1), e.length >= 6 && (T = this.toNumber(e.substring(4, 6)) || 1), e.length >= 8 && (v = this.toNumber(e.substring(6, 8)) || 1), e.length >= 10 && (O = this.toNumber(e.substring(8, 10))), e.length >= 12 && (F = this.toNumber(e.substring(10, 12))), e.length >= 14 && (S = this.toNumber(e.substring(12, 14))), m !== 1 && m !== 1900 && (o = new Date(m, T - 1, v, O, F, S));
5786
+ let h = 1, T = 1, v = 1, O = 0, F = 0, S = 0;
5787
+ e.length >= 4 && (h = this.toNumber(e.substring(0, 4)) || 1), e.length >= 6 && (T = this.toNumber(e.substring(4, 6)) || 1), e.length >= 8 && (v = this.toNumber(e.substring(6, 8)) || 1), e.length >= 10 && (O = this.toNumber(e.substring(8, 10))), e.length >= 12 && (F = this.toNumber(e.substring(10, 12))), e.length >= 14 && (S = this.toNumber(e.substring(12, 14))), h !== 1 && h !== 1900 && (o = new Date(h, T - 1, v, O, F, S));
5788
5788
  } else if (e instanceof Date)
5789
5789
  o = e;
5790
5790
  else if (Qt.isDayjs(e)) {
@@ -5985,7 +5985,7 @@ var g;
5985
5985
  width: s = 450,
5986
5986
  okText: d = this.$t("ERX.OK") || "OK",
5987
5987
  cancelText: u = this.$t("ERX.Cancel") || "Cancel"
5988
- } = e, c = P([]), p = P({}), m = () => $e("div", {}, [
5988
+ } = e, c = P([]), p = P({}), h = () => $e("div", {}, [
5989
5989
  o.length > 0 && $e("div", { style: "margin-bottom: 24px;" }, [
5990
5990
  $e(Yi.Group, {
5991
5991
  options: o,
@@ -6012,7 +6012,7 @@ var g;
6012
6012
  title: a,
6013
6013
  // centered: true,
6014
6014
  icon: $e(ni),
6015
- content: m,
6015
+ content: h,
6016
6016
  width: s,
6017
6017
  okText: d,
6018
6018
  cancelText: u,
@@ -6162,8 +6162,8 @@ var g;
6162
6162
  }, u = (v) => {
6163
6163
  const O = d(v);
6164
6164
  return O.boxSizing === "border-box" ? O.width - O.paddingLeft - O.paddingRight : O.width;
6165
- }, c = e.gridOptions.api.gridBodyCtrl.scrollVisibleService, p = e.gridOptions.api.gridBodyCtrl.eGridBody, m = c.verticalScrollShowing ? c.gridOptionsService.getScrollbarWidth() : 0;
6166
- return u(p) - m > 0;
6165
+ }, c = e.gridOptions.api.gridBodyCtrl.scrollVisibleService, p = e.gridOptions.api.gridBodyCtrl.eGridBody, h = c.verticalScrollShowing ? c.gridOptionsService.getScrollbarWidth() : 0;
6166
+ return u(p) - h > 0;
6167
6167
  }
6168
6168
  return !1;
6169
6169
  }
@@ -6373,8 +6373,8 @@ var g;
6373
6373
  * @returns EIInfo
6374
6374
  */
6375
6375
  static getGridChangedRowsAsEiInfo(e, t, o, i = !1, a) {
6376
- var c, p, m;
6377
- o = o || new St(), t = t || ((m = (p = (c = e == null ? void 0 : e.gridOptions) == null ? void 0 : c.context) == null ? void 0 : p.bindingSource) == null ? void 0 : m.tableName) || "Table0";
6376
+ var c, p, h;
6377
+ o = o || new It(), t = t || ((h = (p = (c = e == null ? void 0 : e.gridOptions) == null ? void 0 : c.context) == null ? void 0 : p.bindingSource) == null ? void 0 : h.tableName) || "Table0";
6378
6378
  const s = this.getGridDeletedRowsAsBlock(e, i, a);
6379
6379
  s.getRows().length > 0 && (s.rename(t + "_DELETE"), o.addBlock(s));
6380
6380
  const d = this.getGridModifyRowsAsBlock(e, i, a);
@@ -6391,7 +6391,7 @@ var g;
6391
6391
  * @returns ObservableObject or Json array
6392
6392
  */
6393
6393
  static getGridRows(e, t, o = !1, i = !1) {
6394
- var s, d, u, c, p, m, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j, Q, R;
6394
+ var s, d, u, c, p, h, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j, Q, R;
6395
6395
  let a = [];
6396
6396
  if ((s = e == null ? void 0 : e.gridOptions) != null && s.api && t && t.toString().length > 0) {
6397
6397
  const D = (d = e == null ? void 0 : e.gridOptions) == null ? void 0 : d.api, _e = (u = e == null ? void 0 : e.gridOptions) == null ? void 0 : u.columnApi;
@@ -6419,7 +6419,7 @@ var g;
6419
6419
  case "select":
6420
6420
  if (e != null && e.gridOptions) {
6421
6421
  const ce = this.getGridColumn(e, l.SysInfo.GridCheckColumnFieldName);
6422
- return ce && !ce.hide && ((m = e == null ? void 0 : e.gridOptions.context) == null ? void 0 : m.viewConfig.SHOW_SELECTION) === "1" ? this.getGridRows(e, "checked", o, i) : this.getGridRows(e, "current", o, i);
6422
+ return ce && !ce.hide && ((h = e == null ? void 0 : e.gridOptions.context) == null ? void 0 : h.viewConfig.SHOW_SELECTION) === "1" ? this.getGridRows(e, "checked", o, i) : this.getGridRows(e, "current", o, i);
6423
6423
  }
6424
6424
  break;
6425
6425
  case "delete":
@@ -6468,7 +6468,7 @@ var g;
6468
6468
  * @returns EiBlock
6469
6469
  */
6470
6470
  static getGridRowsAsBlock(e, t, o = !1, i) {
6471
- var d, u, c, p, m, T;
6471
+ var d, u, c, p, h, T;
6472
6472
  const a = new vo("Table0"), s = this.getGridRows(e, t, i || !0, o);
6473
6473
  if (s && s.length > 0) {
6474
6474
  const v = (u = (d = e == null ? void 0 : e.gridOptions) == null ? void 0 : d.context) == null ? void 0 : u.bindingSource;
@@ -6477,7 +6477,7 @@ var g;
6477
6477
  const A = new mi(S.name);
6478
6478
  return A.type = S.type === "number" ? "N" : "C", A.name = S.name, A.descName = S.caption, A;
6479
6479
  }, F = [];
6480
- o ? (m = (p = e == null ? void 0 : e.gridOptions) == null ? void 0 : p.columnApi.getAllGridColumns()) == null || m.forEach((S) => {
6480
+ o ? (h = (p = e == null ? void 0 : e.gridOptions) == null ? void 0 : p.columnApi.getAllGridColumns()) == null || h.forEach((S) => {
6481
6481
  var A, H, k, Z, w, ie;
6482
6482
  if ((H = v == null ? void 0 : v.options) != null && H.schema[(A = S.colDef) == null ? void 0 : A.field]) {
6483
6483
  const b = O((Z = v == null ? void 0 : v.options) == null ? void 0 : Z.schema[(k = S.colDef) == null ? void 0 : k.field]);
@@ -6519,7 +6519,7 @@ var g;
6519
6519
  let i = -1;
6520
6520
  if (t && t instanceof J) {
6521
6521
  let a = [];
6522
- e instanceof St ? a = e.getBlockByIndex(0).getMappedRows() : e instanceof vo ? a = e.getMappedRows() : e instanceof l.Model ? a = [e.toJSON()] : e instanceof Array && (a = e), a ? a instanceof Array ? (t.merge(a, o), i = t.totalCount()) : console.error("ER: Data is not EiInfo、EiBlock、ER.Model or Array") : console.error("ER: Data is undefined");
6522
+ e instanceof It ? a = e.getBlockByIndex(0).getMappedRows() : e instanceof vo ? a = e.getMappedRows() : e instanceof l.Model ? a = [e.toJSON()] : e instanceof Array && (a = e), a ? a instanceof Array ? (t.merge(a, o), i = t.totalCount()) : console.error("ER: Data is not EiInfo、EiBlock、ER.Model or Array") : console.error("ER: Data is undefined");
6523
6523
  } else
6524
6524
  console.error("ER: DataTable is undefined");
6525
6525
  return i;
@@ -6531,11 +6531,11 @@ var g;
6531
6531
  * @returns rowsCount
6532
6532
  */
6533
6533
  static mergeDataToGrid(e, t, o = !0) {
6534
- var a, s, d, u, c, p, m;
6534
+ var a, s, d, u, c, p, h;
6535
6535
  let i = 0;
6536
6536
  if (e && ((a = t == null ? void 0 : t.gridOptions) != null && a.api) && ((d = (s = t == null ? void 0 : t.gridOptions) == null ? void 0 : s.context) != null && d.bindingSource)) {
6537
- const T = (c = (u = t == null ? void 0 : t.gridOptions) == null ? void 0 : u.context) == null ? void 0 : c.bindingSource, v = (m = (p = t == null ? void 0 : t.gridOptions) == null ? void 0 : p.context) == null ? void 0 : m.bindTableName;
6538
- e instanceof St && (e = e.getBlock(v) ?? e.getBlockByIndex(0)), T && e && (i = this.mergeDataToDataTable(e, T, o));
6537
+ const T = (c = (u = t == null ? void 0 : t.gridOptions) == null ? void 0 : u.context) == null ? void 0 : c.bindingSource, v = (h = (p = t == null ? void 0 : t.gridOptions) == null ? void 0 : p.context) == null ? void 0 : h.bindTableName;
6538
+ e instanceof It && (e = e.getBlock(v) ?? e.getBlockByIndex(0)), T && e && (i = this.mergeDataToDataTable(e, T, o));
6539
6539
  }
6540
6540
  return i;
6541
6541
  }
@@ -6786,32 +6786,32 @@ var g;
6786
6786
  }
6787
6787
  var a = t.split("."), s = a.length > 1 ? a[1].length : 0;
6788
6788
  e = B.round(Number(e), s);
6789
- for (var d = e ? B.toString(e).split(".") : ["0"], u = "", c = d[0], p = a[0], m = c.length - 1, T = !1, v = p.length - 1; v >= 0; v--)
6789
+ for (var d = e ? B.toString(e).split(".") : ["0"], u = "", c = d[0], p = a[0], h = c.length - 1, T = !1, v = p.length - 1; v >= 0; v--)
6790
6790
  switch (p.substr(v, 1)) {
6791
6791
  case "#":
6792
- m >= 0 && (u = c.substr(m--, 1) + u);
6792
+ h >= 0 && (u = c.substr(h--, 1) + u);
6793
6793
  break;
6794
6794
  case "0":
6795
- m >= 0 ? u = c.substr(m--, 1) + u : u = "0" + u;
6795
+ h >= 0 ? u = c.substr(h--, 1) + u : u = "0" + u;
6796
6796
  break;
6797
6797
  case ",":
6798
6798
  T = !0, u = "," + u;
6799
6799
  break;
6800
6800
  }
6801
- if (m >= 0)
6801
+ if (h >= 0)
6802
6802
  if (T)
6803
- for (var O = c.length; m >= 0; m--)
6804
- u = c.substr(m, 1) + u, m > 0 && (O - m) % 3 == 0 && (u = "," + u);
6803
+ for (var O = c.length; h >= 0; h--)
6804
+ u = c.substr(h, 1) + u, h > 0 && (O - h) % 3 == 0 && (u = "," + u);
6805
6805
  else
6806
- u = c.substr(0, m + 1) + u;
6807
- u = u + ".", c = d.length > 1 ? d[1] : "", p = a.length > 1 ? a[1] : "", m = 0;
6806
+ u = c.substr(0, h + 1) + u;
6807
+ u = u + ".", c = d.length > 1 ? d[1] : "", p = a.length > 1 ? a[1] : "", h = 0;
6808
6808
  for (let H = 0; H < p.length; H++)
6809
6809
  switch (p.substr(H, 1)) {
6810
6810
  case "#":
6811
- m < c.length && (u += c.substr(m++, 1));
6811
+ h < c.length && (u += c.substr(h++, 1));
6812
6812
  break;
6813
6813
  case "0":
6814
- m < c.length ? u += c.substr(m++, 1) : u += "0";
6814
+ h < c.length ? u += c.substr(h++, 1) : u += "0";
6815
6815
  break;
6816
6816
  }
6817
6817
  i = u.replace(/^,+/, "").replace(/\.$/, ""), i.startsWith("-,") && (i = "-" + i.substring(2));
@@ -6838,32 +6838,32 @@ var g;
6838
6838
  const a = this.buildEiInfo([{ QUERY_TYPE: "tsi00datatable", DATASET_NAME: t, TABLE_NAME: o }]), s = await B.callService(l.SysInfo.queryDevConfigService, a), d = {}, u = s.getBlock("TSI00DATATABLE");
6839
6839
  if (((c = u == null ? void 0 : u.rows) == null ? void 0 : c.length) > 0) {
6840
6840
  const p = {};
6841
- u.getMappedRows().forEach((m) => {
6842
- if (m.TABLE_NAME === o.trim()) {
6841
+ u.getMappedRows().forEach((h) => {
6842
+ if (h.TABLE_NAME === o.trim()) {
6843
6843
  const T = {
6844
- name: m.COL_NAME,
6845
- caption: m.COL_CAPTION,
6846
- maxLength: m.MAX_LENGTH,
6847
- camelCaseName: this.camelCase(m.COL_NAME)
6844
+ name: h.COL_NAME,
6845
+ caption: h.COL_CAPTION,
6846
+ maxLength: h.MAX_LENGTH,
6847
+ camelCaseName: this.camelCase(h.COL_NAME)
6848
6848
  };
6849
- switch (m.DATA_TYPE) {
6849
+ switch (h.DATA_TYPE) {
6850
6850
  case "2":
6851
- T.type = "number", T.defaultValue = B.toNumber(m.DEFAULT_VALUE);
6851
+ T.type = "number", T.defaultValue = B.toNumber(h.DEFAULT_VALUE);
6852
6852
  break;
6853
6853
  case "3":
6854
- T.type = "datetime", T.defaultValue = B.getDateTimeByString(m.DEFAULT_VALUE, "Dayjs");
6854
+ T.type = "datetime", T.defaultValue = B.getDateTimeByString(h.DEFAULT_VALUE, "Dayjs");
6855
6855
  break;
6856
6856
  case "4":
6857
- T.type = "boolean", T.defaultValue = B.toBoolean(m.DEFAULT_VALUE);
6857
+ T.type = "boolean", T.defaultValue = B.toBoolean(h.DEFAULT_VALUE);
6858
6858
  break;
6859
6859
  case "5":
6860
- T.type = "time", T.defaultValue = B.getDateTimeByString(m.DEFAULT_VALUE, "Dayjs");
6860
+ T.type = "time", T.defaultValue = B.getDateTimeByString(h.DEFAULT_VALUE, "Dayjs");
6861
6861
  break;
6862
6862
  default:
6863
- T.type = "string", T.defaultValue = B.getSystemFormatString(m.DEFAULT_VALUE).trim();
6863
+ T.type = "string", T.defaultValue = B.getSystemFormatString(h.DEFAULT_VALUE).trim();
6864
6864
  break;
6865
6865
  }
6866
- p[m.COL_NAME] = T;
6866
+ p[h.COL_NAME] = T;
6867
6867
  }
6868
6868
  }), Object.keys(p).length > 0 && (d.schema = p, i = new J(d));
6869
6869
  }
@@ -6882,15 +6882,15 @@ var g;
6882
6882
  const u = t.options.schema;
6883
6883
  let c = [];
6884
6884
  if (e instanceof vo ? c = e.getMappedRows() : e instanceof Array && e.length > 0 && (c = e), c && c.length > 0) {
6885
- const p = Object.keys(c[0]), m = [], T = [], v = [], O = {};
6885
+ const p = Object.keys(c[0]), h = [], T = [], v = [], O = {};
6886
6886
  for (const F of p)
6887
- ((a = u[F]) == null ? void 0 : a.type) === "boolean" && (i === "all" || i === "boolean") ? m.push(F) : ((s = u[F]) == null ? void 0 : s.type) === "datetime" && (i === "all" || i === "datetime") ? T.push(F) : ((d = u[F]) == null ? void 0 : d.type) === "number" && typeof c[0][F] != "number" && v.push(F);
6887
+ ((a = u[F]) == null ? void 0 : a.type) === "boolean" && (i === "all" || i === "boolean") ? h.push(F) : ((s = u[F]) == null ? void 0 : s.type) === "datetime" && (i === "all" || i === "datetime") ? T.push(F) : ((d = u[F]) == null ? void 0 : d.type) === "number" && typeof c[0][F] != "number" && v.push(F);
6888
6888
  o === "strongly" && Object.keys(u).forEach((F) => {
6889
6889
  c[0][F] === void 0 && (u[F].type === "datetime" ? O[F] = null : u[F].type === "boolean" ? O[F] = u[F].default ? u[F].default : !1 : u[F].type === "number" ? O[F] = B.toNumber(u[F].default) : O[F] = "");
6890
6890
  });
6891
6891
  for (let F = 0; F < c.length; F++) {
6892
6892
  c[F] instanceof l.Model && (c[F] = c[F].toJSON());
6893
- for (const S of m)
6893
+ for (const S of h)
6894
6894
  if (o === "weakly")
6895
6895
  c[F][S] = c[F][S] ? "1" : "0";
6896
6896
  else {
@@ -6924,7 +6924,7 @@ var g;
6924
6924
  * @returns EIInfo
6925
6925
  */
6926
6926
  static buildEiInfo(e, t) {
6927
- const o = new St(), i = this.buildEiBlock(e, t);
6927
+ const o = new It(), i = this.buildEiBlock(e, t);
6928
6928
  return o.addBlock(i), o;
6929
6929
  }
6930
6930
  /**
@@ -6959,10 +6959,10 @@ var g;
6959
6959
  */
6960
6960
  static async querySql(e, t, ...o) {
6961
6961
  return new Promise((i, a) => {
6962
- let s = new St();
6962
+ let s = new It();
6963
6963
  if (o.length > 0) {
6964
6964
  t.trim().length === 0 && (t = "JAER01/query");
6965
- const d = new St(), u = new vo("SQL_LIST");
6965
+ const d = new It(), u = new vo("SQL_LIST");
6966
6966
  u.addColumn("SQL"), o.forEach((c) => {
6967
6967
  u.addRow([c]);
6968
6968
  }), d.addBlock(u), l.Core.callService(t, d).then((c) => {
@@ -6981,9 +6981,9 @@ var g;
6981
6981
  */
6982
6982
  static async queryTopRows(e, t, o) {
6983
6983
  return new Promise((i, a) => {
6984
- let s = new St();
6984
+ let s = new It();
6985
6985
  if (t.trim().length > 0) {
6986
- const d = new St(), u = B.buildEiBlock([{ QUERY_SQL: t, TOP_ROWS: o }]);
6986
+ const d = new It(), u = B.buildEiBlock([{ QUERY_SQL: t, TOP_ROWS: o }]);
6987
6987
  d.addBlock(u), l.Core.callService("si00_toprows_inq", d).then((c) => {
6988
6988
  s = c, i(s);
6989
6989
  });
@@ -7001,27 +7001,27 @@ var g;
7001
7001
  * @param tableName 相关表
7002
7002
  * @returns Promise EiInfo
7003
7003
  */
7004
- static async queryDataByService(e, t, o) {
7005
- return new Promise((i, a) => {
7006
- let s = new St();
7007
- if (t.length > 0) {
7008
- const d = new St(), u = [];
7009
- o && o.queryFilter && o.queryFilter.length > 0 && u.push(...o.queryFilter), o && o.customFilter && o.customFilter.trim().length > 0 && u.push({
7004
+ static async queryDataByService(e, t) {
7005
+ return new Promise((o, i) => {
7006
+ let a = new It();
7007
+ if (e.length > 0) {
7008
+ const s = new It(), d = [];
7009
+ t && t.queryFilter && t.queryFilter.length > 0 && d.push(...t.queryFilter), t && t.customFilter && t.customFilter.trim().length > 0 && d.push({
7010
7010
  ITEM_CODE: "SQL",
7011
7011
  FIELD_NAME: "*",
7012
7012
  ORIGIN_CODE: "*",
7013
7013
  OPERATOR: "para",
7014
7014
  PARA_GROUP: "1",
7015
- SQL_CONTENT: this.getSystemFormatString(o.customFilter),
7015
+ SQL_CONTENT: this.getSystemFormatString(t.customFilter),
7016
7016
  DATA_TYPE: "",
7017
7017
  OP_VALUE: "*"
7018
7018
  });
7019
- const c = this.buildEiBlock(u, "QUERY_FILTER");
7020
- d.addBlock(c), this.callService(t, d).then((p) => {
7021
- s = p, i(s);
7019
+ const u = this.buildEiBlock(d, "QUERY_FILTER");
7020
+ s.addBlock(u), this.callService(e, s).then((c) => {
7021
+ a = c, o(a);
7022
7022
  });
7023
7023
  } else
7024
- s.SysInfo.Flag = -603, s.SysInfo.Msg = "No service available", i(s);
7024
+ a.SysInfo.Flag = -603, a.SysInfo.Msg = "No service available", o(a);
7025
7025
  });
7026
7026
  }
7027
7027
  /**
@@ -7031,7 +7031,7 @@ var g;
7031
7031
  * @param rows 需要删除的行
7032
7032
  */
7033
7033
  static async deleteGridRows(e, t = !1, o) {
7034
- var i, a, s, d, u, c, p, m, T, v;
7034
+ var i, a, s, d, u, c, p, h, T, v;
7035
7035
  if ((i = e == null ? void 0 : e.gridOptions) != null && i.api) {
7036
7036
  const O = o || this.getGridRows(e, "select");
7037
7037
  if ((O == null ? void 0 : O.length) > 0) {
@@ -7044,7 +7044,7 @@ var g;
7044
7044
  O[H][f.TreeHierarchyFieldName].every((k) => new Set(A.data[f.TreeHierarchyFieldName]).has(k)) && S.push(A.data);
7045
7045
  }), (p = (c = (u = e == null ? void 0 : e.gridOptions) == null ? void 0 : u.context) == null ? void 0 : c.bindingSource) == null || p.remove(S);
7046
7046
  } else
7047
- (v = (T = (m = e == null ? void 0 : e.gridOptions) == null ? void 0 : m.context) == null ? void 0 : T.bindingSource) == null || v.remove(O);
7047
+ (v = (T = (h = e == null ? void 0 : e.gridOptions) == null ? void 0 : h.context) == null ? void 0 : T.bindingSource) == null || v.remove(O);
7048
7048
  return !0;
7049
7049
  }
7050
7050
  }
@@ -7416,15 +7416,15 @@ var g;
7416
7416
  static async callService(e, t, o, i) {
7417
7417
  return new Promise((a, s) => {
7418
7418
  const d = (i == null ? void 0 : i.messageError) ?? !1;
7419
- let u = new St();
7419
+ let u = new It();
7420
7420
  e.trim().length === 0 && (u.SysInfo.Flag = -603, u.SysInfo.Msg = "No service available", a(u));
7421
7421
  const c = e.split(/[\/.]/).filter((p) => p.trim().length > 0);
7422
7422
  c.length < 2 && (u.SysInfo.Flag = -603, u.SysInfo.Msg = "Service name error", a(u)), o != null && o.show && this.loading(!0, o), i != null && i.toCamelCase && Object.keys(t.getBlocks()).forEach((p) => {
7423
- const m = t.getBlock(p), T = m.getBlockMeta().getMetas(), v = new Ja(m.getBlockId());
7423
+ const h = t.getBlock(p), T = h.getBlockMeta().getMetas(), v = new Ja(h.getBlockId());
7424
7424
  Object.keys(T).forEach((O) => {
7425
7425
  const F = new mi(B.camelCase(O));
7426
7426
  F.descName = T[O].name, F.type = T[O].type, v.addMeta(F);
7427
- }), m.setBlockMeta(v);
7427
+ }), h.setBlockMeta(v);
7428
7428
  }), Ka.send(c[0], c[1], t, {
7429
7429
  onSuccess: (p) => {
7430
7430
  this.loading(!1), u = p, u.getStatus() < 0 && d && this.messageError(u.getMsg(), d === "modal"), a(u);
@@ -7542,7 +7542,7 @@ var g;
7542
7542
  }
7543
7543
  }
7544
7544
  l.SysInfo = f;
7545
- class V extends St {
7545
+ class V extends It {
7546
7546
  constructor(t) {
7547
7547
  var o;
7548
7548
  super();
@@ -7614,8 +7614,8 @@ var g;
7614
7614
  var u, c;
7615
7615
  if (((u = d == null ? void 0 : d.data) == null ? void 0 : u.length) === s.length) {
7616
7616
  for (let p = 0; p < d.data.length; p++)
7617
- ((c = d.data[p].translations) == null ? void 0 : c.length) > 0 && d.data[p].translations.forEach((m) => {
7618
- m.to && (s[p][m.to] = m.text);
7617
+ ((c = d.data[p].translations) == null ? void 0 : c.length) > 0 && d.data[p].translations.forEach((h) => {
7618
+ h.to && (s[p][h.to] = h.text);
7619
7619
  });
7620
7620
  i({ flag: !0, message: "success", result: typeof t == "string" ? s[0] : s });
7621
7621
  } else
@@ -7671,8 +7671,8 @@ var g;
7671
7671
  pathInfo: [{ key: t, name: t }]
7672
7672
  };
7673
7673
  si.post(this._uploadOptions.url + `?command=GetDirContents&arguments=${JSON.stringify(s)}&_=${(/* @__PURE__ */ new Date()).valueOf()}&rootDirectory=${this._uploadOptions.rootDirectory}`).then((c) => {
7674
- var p, m, T;
7675
- (p = c.data) != null && p.success ? i({ flag: !0, message: "获取文件成功", result: c.data.result }) : (console.error("no files," + ((m = c.data) == null ? void 0 : m.result)), i({ flag: !0, message: (T = c.data) == null ? void 0 : T.result, result: [] }));
7674
+ var p, h, T;
7675
+ (p = c.data) != null && p.success ? i({ flag: !0, message: "获取文件成功", result: c.data.result }) : (console.error("no files," + ((h = c.data) == null ? void 0 : h.result)), i({ flag: !0, message: (T = c.data) == null ? void 0 : T.result, result: [] }));
7676
7676
  }).catch((c) => {
7677
7677
  console.error("get files failed", c), i({ flag: !1, message: "获取文件失败", result: [] });
7678
7678
  });
@@ -7683,11 +7683,11 @@ var g;
7683
7683
  var u;
7684
7684
  const a = (u = t.key) == null ? void 0 : u.split("/"), s = [];
7685
7685
  a.forEach((c, p) => {
7686
- const m = {
7686
+ const h = {
7687
7687
  key: a.slice(0, p + 1).join("/"),
7688
7688
  name: c
7689
7689
  };
7690
- m.key !== "" && m.name !== "" && s.push(m);
7690
+ h.key !== "" && h.name !== "" && s.push(h);
7691
7691
  });
7692
7692
  const d = new URLSearchParams();
7693
7693
  d.append("command", "Download"), d.append("arguments", JSON.stringify({ pathInfoList: [s] })), d.append("rootDirectory", this._uploadOptions.rootDirectory || ""), si.post(
@@ -7719,8 +7719,8 @@ var g;
7719
7719
  }
7720
7720
  uploadFile(t, o, i) {
7721
7721
  return new Promise(async (a, s) => {
7722
- var c, p, m, T, v, O;
7723
- if (this._initialized || await this.getUploadConfigInfo(i), i && (i == null ? void 0 : i.trim().length) > 0 && (this._uploadOptions.url = (c = this._uploadConfigInfo[i.trim()]) == null ? void 0 : c.url, this._uploadOptions.rootDirectory = (p = this._uploadConfigInfo[i.trim()]) == null ? void 0 : p.rootDirectory, this._uploadOptions.maxBlobSize = (m = this._uploadConfigInfo[i.trim()]) == null ? void 0 : m.maxBlobSize, this._uploadOptions.maxFileSize = (T = this._uploadConfigInfo[i.trim()]) == null ? void 0 : T.maxFileSize), o.size > (this._uploadOptions.maxFileSize || this._maxFileSize)) {
7722
+ var c, p, h, T, v, O;
7723
+ if (this._initialized || await this.getUploadConfigInfo(i), i && (i == null ? void 0 : i.trim().length) > 0 && (this._uploadOptions.url = (c = this._uploadConfigInfo[i.trim()]) == null ? void 0 : c.url, this._uploadOptions.rootDirectory = (p = this._uploadConfigInfo[i.trim()]) == null ? void 0 : p.rootDirectory, this._uploadOptions.maxBlobSize = (h = this._uploadConfigInfo[i.trim()]) == null ? void 0 : h.maxBlobSize, this._uploadOptions.maxFileSize = (T = this._uploadConfigInfo[i.trim()]) == null ? void 0 : T.maxFileSize), o.size > (this._uploadOptions.maxFileSize || this._maxFileSize)) {
7724
7724
  l.Core.messageError("文件大小超过限制"), a({ flag: !1, message: "文件大小超过限制" });
7725
7725
  return;
7726
7726
  }
@@ -7757,8 +7757,8 @@ var g;
7757
7757
  }
7758
7758
  removeFile(t, o, i) {
7759
7759
  return new Promise(async (a, s) => {
7760
- var p, m;
7761
- this._initialized || await this.getUploadConfigInfo(i), i && (i == null ? void 0 : i.trim().length) > 0 && (this._uploadOptions.url = (p = this._uploadConfigInfo[i.trim()]) == null ? void 0 : p.url, this._uploadOptions.rootDirectory = (m = this._uploadConfigInfo[i.trim()]) == null ? void 0 : m.rootDirectory);
7760
+ var p, h;
7761
+ this._initialized || await this.getUploadConfigInfo(i), i && (i == null ? void 0 : i.trim().length) > 0 && (this._uploadOptions.url = (p = this._uploadConfigInfo[i.trim()]) == null ? void 0 : p.url, this._uploadOptions.rootDirectory = (h = this._uploadConfigInfo[i.trim()]) == null ? void 0 : h.rootDirectory);
7762
7762
  const d = o && (o == null ? void 0 : o.trim().length) > 0 ? `${t}/${o}`.split("/") : [t], u = [];
7763
7763
  d.forEach((T, v) => {
7764
7764
  const O = {
@@ -7814,13 +7814,13 @@ var g;
7814
7814
  e && e.trim().length > 0 && (this._partition = e), o && o.trim().length > 0 && (this._companyCode = o), t && (this._paraFilter = t);
7815
7815
  let d = "", u = "";
7816
7816
  if (this._paraFilter && this._paraFilter.ParaCodes) {
7817
- let m = [];
7818
- if (this._paraFilter.ParaCodes instanceof Array ? m = this._paraFilter.ParaCodes : typeof this._paraFilter.ParaCodes == "string" && (m = this._paraFilter.ParaCodes.split(",")), m.length > 1)
7819
- for (let T = 0; T < m.length; T++)
7820
- m[T].trim().length > 0 && (u.length === 0 ? u = `'${m[T]}'` : u += `,'${m[T]}'`);
7821
- else m.length > 0 && (d = m[0].trim());
7817
+ let h = [];
7818
+ if (this._paraFilter.ParaCodes instanceof Array ? h = this._paraFilter.ParaCodes : typeof this._paraFilter.ParaCodes == "string" && (h = this._paraFilter.ParaCodes.split(",")), h.length > 1)
7819
+ for (let T = 0; T < h.length; T++)
7820
+ h[T].trim().length > 0 && (u.length === 0 ? u = `'${h[T]}'` : u += `,'${h[T]}'`);
7821
+ else h.length > 0 && (d = h[0].trim());
7822
7822
  }
7823
- const c = new St(), p = r.buildEiBlock([
7823
+ const c = new It(), p = r.buildEiBlock([
7824
7824
  {
7825
7825
  COMPANY_CODE: this._companyCode,
7826
7826
  QUERY_TYPE: "system_paras",
@@ -7830,8 +7830,8 @@ var g;
7830
7830
  }
7831
7831
  ]);
7832
7832
  c.addBlock(p), i && i.trim().length > 0 && (this._serviceName = i.trim()), r.callService(this._serviceName, c).then(
7833
- (m) => {
7834
- this._initializeSuccessed = m.SysInfo.Flag >= 0, this._initializeSuccessed && m.getBlockByIndex(0).getMappedRows().forEach((T) => {
7833
+ (h) => {
7834
+ this._initializeSuccessed = h.SysInfo.Flag >= 0, this._initializeSuccessed && h.getBlockByIndex(0).getMappedRows().forEach((T) => {
7835
7835
  this._sysParasValue[T.CTRL_CODE] = T.CTRL_NUM;
7836
7836
  }), a(this._initializeSuccessed);
7837
7837
  },
@@ -7979,10 +7979,10 @@ var g;
7979
7979
  (s = u.BingdingInfo) == null || s.forEach((p) => {
7980
7980
  if (p.formHelper && p.configId && p.configId !== i)
7981
7981
  if (p.controlType === "Grid") {
7982
- const m = p.formHelper.getGrid(p.configId);
7983
- if (m) {
7982
+ const h = p.formHelper.getGrid(p.configId);
7983
+ if (h) {
7984
7984
  const T = {};
7985
- T[t] = o, p.formHelper.setGridRowData(m, this.uid, T);
7985
+ T[t] = o, p.formHelper.setGridRowData(h, this.uid, T);
7986
7986
  }
7987
7987
  } else p.controlType;
7988
7988
  });
@@ -8276,10 +8276,10 @@ var g;
8276
8276
  return jt(this, $, []), jt(this, le, []), jt(this, Me, []), jt(this, Qe, []), jt(this, Ie, void 0), wo(this, ge, Uo).call(this, "dataCleared", { bindingInfo: Te(this, we) }), this;
8277
8277
  }
8278
8278
  merge(t, o = !0, i = !1) {
8279
- var d, u, c, p, m;
8279
+ var d, u, c, p, h;
8280
8280
  const a = [], s = Te(this, $).length > 0;
8281
8281
  if (o && (jt(this, $, []), jt(this, le, []), jt(this, Me, []), jt(this, Qe, [])), t !== void 0 && t.length > 0 && ((d = this.options) != null && d.schema)) {
8282
- const T = this.options.schema, v = Object.keys(t[0]), O = Object.keys(T), F = O.filter((w) => v.includes(w) || v.includes(r.camelCase(w))), S = O.filter((w) => !v.includes(w) && !v.includes(r.camelCase(w))), A = /* @__PURE__ */ new Map(), H = r.toString((c = (u = Te(this, Ye)) == null ? void 0 : u.hierarchy) == null ? void 0 : c.primaryField, !0), k = r.toString((m = (p = Te(this, Ye)) == null ? void 0 : p.hierarchy) == null ? void 0 : m.parentField, !0), Z = H.length > 0 && k.length > 0 && T[H] && T[k];
8282
+ const T = this.options.schema, v = Object.keys(t[0]), O = Object.keys(T), F = O.filter((w) => v.includes(w) || v.includes(r.camelCase(w))), S = O.filter((w) => !v.includes(w) && !v.includes(r.camelCase(w))), A = /* @__PURE__ */ new Map(), H = r.toString((c = (u = Te(this, Ye)) == null ? void 0 : u.hierarchy) == null ? void 0 : c.primaryField, !0), k = r.toString((h = (p = Te(this, Ye)) == null ? void 0 : p.hierarchy) == null ? void 0 : h.parentField, !0), Z = H.length > 0 && k.length > 0 && T[H] && T[k];
8283
8283
  for (let w = 0; w < t.length; w++) {
8284
8284
  const ie = new q(void 0, void 0, this);
8285
8285
  ie.setSchema(T, !1), F.forEach((b) => {
@@ -8349,7 +8349,7 @@ var g;
8349
8349
  }), wo(this, ge, Hi).call(this), this;
8350
8350
  }
8351
8351
  cancelChanges() {
8352
- return Te(this, Ne) && (jt(this, Me, []), jt(this, Qe, []), jt(this, $, jo.cloneDeep(Te(this, le))), wo(this, ge, Uo).call(this, "dataMerged", { bindingInfo: Te(this, we), models: Te(this, $), current: void 0 })), this;
8352
+ return Te(this, Ne) && (jt(this, Me, []), jt(this, Qe, []), jt(this, $, $o.cloneDeep(Te(this, le))), wo(this, ge, Uo).call(this, "dataMerged", { bindingInfo: Te(this, we), models: Te(this, $), current: void 0 })), this;
8353
8353
  }
8354
8354
  totalCount() {
8355
8355
  return Te(this, $).length;
@@ -8358,18 +8358,18 @@ var g;
8358
8358
  return t !== void 0 && t.length > 0 && this.merge(t, !0, !1), Te(this, $);
8359
8359
  }
8360
8360
  originalCopy() {
8361
- return jo.cloneDeep(Te(this, le));
8361
+ return $o.cloneDeep(Te(this, le));
8362
8362
  }
8363
8363
  originalModel(t) {
8364
8364
  for (let o = 0; o < Te(this, le).length; o++)
8365
8365
  if (Te(this, le)[o].uid === t)
8366
- return jo.cloneDeep(Te(this, le)[o]);
8366
+ return $o.cloneDeep(Te(this, le)[o]);
8367
8367
  }
8368
8368
  }
8369
8369
  $ = new WeakMap(), le = new WeakMap(), Me = new WeakMap(), Qe = new WeakMap(), Ye = new WeakMap(), Ie = new WeakMap(), Ne = new WeakMap(), xe = new WeakMap(), we = new WeakMap(), Xe = new WeakMap(), ge = new WeakSet(), Uo = function(t, o) {
8370
8370
  var a;
8371
8371
  (a = Te(this, we)) == null || a.forEach((s) => {
8372
- var d, u, c, p, m, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j, Q, R, D, _e, ce, qe, dt, ct, ot, _;
8372
+ var d, u, c, p, h, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j, Q, R, D, _e, ce, qe, dt, ct, ot, _;
8373
8373
  if (s.formHelper && s.configId)
8374
8374
  if (s.controlType === "Grid") {
8375
8375
  const ye = s.formHelper.getGrid(s.configId);
@@ -8377,7 +8377,7 @@ var g;
8377
8377
  switch (t) {
8378
8378
  case "dataMerged": {
8379
8379
  const st = ye.gridOptions.api.getFilterModel(), gt = ye.gridOptions.columnApi.getColumnState().filter((We) => We.sort !== null);
8380
- Object.keys(st).length === 0 && gt.length === 0 && ye.gridOptions.context.calculateRowSpan && ye.gridOptions.context.calculateRowSpan instanceof Function && ye.gridOptions.context.calculateRowSpan(!0), (c = (u = ye.gridOptions) == null ? void 0 : u.api) == null || c.clearRangeSelection(), ye.gridOptions.context.focusRowId = "", ye.gridOptions.context.focusColId = "", ye.gridOptions.context.dataMerged = !0, (m = (p = ye.gridOptions) == null ? void 0 : p.api) == null || m.setRowData(Te(this, $));
8380
+ Object.keys(st).length === 0 && gt.length === 0 && ye.gridOptions.context.calculateRowSpan && ye.gridOptions.context.calculateRowSpan instanceof Function && ye.gridOptions.context.calculateRowSpan(!0), (c = (u = ye.gridOptions) == null ? void 0 : u.api) == null || c.clearRangeSelection(), ye.gridOptions.context.focusRowId = "", ye.gridOptions.context.focusColId = "", ye.gridOptions.context.dataMerged = !0, (h = (p = ye.gridOptions) == null ? void 0 : p.api) == null || h.setRowData(Te(this, $));
8381
8381
  let ve = Te(this, $).length.toString().length * 7 + 20;
8382
8382
  ((v = (T = ye.gridOptions.context) == null ? void 0 : T.viewConfig) == null ? void 0 : v.SHOW_SELECTION) === "1" && (ve += 20), (O = ye.gridOptions.context) != null && O.allowDragRow && (ve += 21), ((S = (F = ye.gridOptions.context) == null ? void 0 : F.options) == null ? void 0 : S.masterDetail) === !0 && (ve += 22);
8383
8383
  const et = (H = (A = ye.gridOptions.columnApi) == null ? void 0 : A.columnModel) == null ? void 0 : H.gridColumns, at = et == null ? void 0 : et.find((We) => We.colId === f.GridCheckColumnFieldName);
@@ -8426,7 +8426,7 @@ var g;
8426
8426
  const i = Te(this, Xe)[t];
8427
8427
  i && i instanceof Function && i(o);
8428
8428
  }, Hi = function() {
8429
- Te(this, xe) || Te(this, xe) === void 0 && Te(this, $).length <= 500 ? (jt(this, le, jo.cloneDeep(Te(this, $))), jt(this, Ne, !0)) : (jt(this, le, []), jt(this, Ne, !1));
8429
+ Te(this, xe) || Te(this, xe) === void 0 && Te(this, $).length <= 500 ? (jt(this, le, $o.cloneDeep(Te(this, $))), jt(this, Ne, !0)) : (jt(this, le, []), jt(this, Ne, !1));
8430
8430
  }, l.DataTable = J;
8431
8431
  class X {
8432
8432
  constructor(e) {
@@ -8742,7 +8742,7 @@ var g;
8742
8742
  * 是否Rtl
8743
8743
  */
8744
8744
  get IsRtl() {
8745
- return Wo();
8745
+ return zo();
8746
8746
  }
8747
8747
  /**
8748
8748
  * 画面配置所属一级模块代码[2位]
@@ -8973,12 +8973,12 @@ var g;
8973
8973
  var d, u, c, p;
8974
8974
  this._erxGlobalConfig = await l.Core.getErxGlobalConfig(), (u = (d = this._erxGlobalConfig) == null ? void 0 : d.License) != null && u[l.SysInfo.CompanyCode] && (this._formConfigLicens = (p = (c = this._erxGlobalConfig) == null ? void 0 : c.License) == null ? void 0 : p[l.SysInfo.CompanyCode]);
8975
8975
  const s = r.decryptData(this._formConfigLicens, l.SysInfo.GridCheckColumnFieldName, r.decryptData(this._privateEncryptKey, l.SysInfo.GridCheckColumnFieldName, l.SysInfo.GridCheckColumnFieldName));
8976
- return this._erxGlobalConfig && (!this._formConfigLicens || s !== f.CompanyName) && this.messageWarning(r.decryptData(this._formConfigLicensErrorMsg, l.SysInfo.GridCheckColumnFieldName, l.SysInfo.GridCheckColumnFieldName)), new Promise((m, T) => {
8976
+ return this._erxGlobalConfig && (!this._formConfigLicens || s !== f.CompanyName) && this.messageWarning(r.decryptData(this._formConfigLicensErrorMsg, l.SysInfo.GridCheckColumnFieldName, l.SysInfo.GridCheckColumnFieldName)), new Promise((h, T) => {
8977
8977
  var F;
8978
8978
  this._serverPartition = (e == null ? void 0 : e.trim()) || this._serverPartition, this._serviceName = (i == null ? void 0 : i.trim()) || this._serviceName, this._formName = (t == null ? void 0 : t.trim()) || this._formName, this._initialConfiParas = a || this._initialConfiParas || {}, this._layoutIds = o || this._layoutIds;
8979
8979
  let v = "";
8980
8980
  this._layoutIds && (typeof this._layoutIds == "string" ? v = this._layoutIds : this._layoutIds instanceof Array && (v = this._layoutIds.join(","))), this._dataSetName = ((F = this._dataSetName) == null ? void 0 : F.trim()) || "#";
8981
- const O = new St();
8981
+ const O = new It();
8982
8982
  if (O.addBlock(
8983
8983
  r.buildEiBlock(
8984
8984
  [
@@ -9005,10 +9005,10 @@ var g;
9005
9005
  var A, H, k;
9006
9006
  S.getStatus() >= 0 ? (Object.keys(S.getBlocks()).forEach((Z) => {
9007
9007
  this._configInfo[Z] = S.getBlock(Z);
9008
- }), ((k = (H = (A = this._configInfo) == null ? void 0 : A.TSI00FORM) == null ? void 0 : H.getMappedRows()) == null ? void 0 : k.length) > 0 ? (this.InitializeWithData(), m({ flag: this._initializeFlag, msg: "success" })) : (this._initializeFlag = -1, m({ flag: this._initializeFlag, msg: `The configuration information for the form [${this._formName}] was not found!` }))) : (this._initializeFlag = -1, m({ flag: this._initializeFlag, msg: S.getMsg() ?? "unknown error" }));
9008
+ }), ((k = (H = (A = this._configInfo) == null ? void 0 : A.TSI00FORM) == null ? void 0 : H.getMappedRows()) == null ? void 0 : k.length) > 0 ? (this.InitializeWithData(), h({ flag: this._initializeFlag, msg: "success" })) : (this._initializeFlag = -1, h({ flag: this._initializeFlag, msg: `The configuration information for the form [${this._formName}] was not found!` }))) : (this._initializeFlag = -1, h({ flag: this._initializeFlag, msg: S.getMsg() ?? "unknown error" }));
9009
9009
  },
9010
9010
  (S) => {
9011
- m({ ...S, flag: -1, msg: "unknown error" });
9011
+ h({ ...S, flag: -1, msg: "unknown error" });
9012
9012
  }
9013
9013
  );
9014
9014
  });
@@ -9032,8 +9032,8 @@ var g;
9032
9032
  if (e) {
9033
9033
  const u = (t = e == null ? void 0 : e.attrs) == null ? void 0 : t.__eiInfo;
9034
9034
  this._currentFormRegitInfo.formInfo = u == null ? void 0 : u.extAttr, this._currentFormRegitInfo.formQueryParams = l.Core.getQueryParams((o = u == null ? void 0 : u.extAttr) == null ? void 0 : o.efFormLoadPath), this._currentFormRegitInfo.formButtons = {}, (a = (i = e == null ? void 0 : e.attrs) == null ? void 0 : i.__buttonsEi) != null && a.blocks && Object.keys((d = (s = e == null ? void 0 : e.attrs) == null ? void 0 : s.__buttonsEi) == null ? void 0 : d.blocks).forEach((c) => {
9035
- var p, m;
9036
- this._currentFormRegitInfo.formButtons[c] = (m = (p = e == null ? void 0 : e.attrs) == null ? void 0 : p.__buttonsEi) == null ? void 0 : m.getBlock(c).getMappedRows();
9035
+ var p, h;
9036
+ this._currentFormRegitInfo.formButtons[c] = (h = (p = e == null ? void 0 : e.attrs) == null ? void 0 : p.__buttonsEi) == null ? void 0 : h.getBlock(c).getMappedRows();
9037
9037
  });
9038
9038
  }
9039
9039
  }
@@ -9053,7 +9053,7 @@ var g;
9053
9053
  for (let p = 0; p < u.length; p++)
9054
9054
  this.containsConfig(u[p].trim()) || (c = c.length === 0 ? u[p].trim() : c + "," + u[p].trim());
9055
9055
  if (c.length > 0) {
9056
- const p = new St();
9056
+ const p = new It();
9057
9057
  if (p.addBlock(
9058
9058
  r.buildEiBlock(
9059
9059
  [
@@ -9070,14 +9070,14 @@ var g;
9070
9070
  "Table0"
9071
9071
  )
9072
9072
  ), this._initialConfiParas && Object.keys(this._initialConfiParas).length > 0) {
9073
- const m = new vo("InitializeFormParas");
9074
- m.addColumn("PARA_NAME"), m.addColumn("PARA_VALUE"), Object.keys(this._initialConfiParas).forEach((T) => {
9075
- m.addRow([{ PARA_NAME: T, PARA_VALUE: this._initialConfiParas ? this._initialConfiParas[T] : "" }]);
9076
- }), p.addBlock(m);
9073
+ const h = new vo("InitializeFormParas");
9074
+ h.addColumn("PARA_NAME"), h.addColumn("PARA_VALUE"), Object.keys(this._initialConfiParas).forEach((T) => {
9075
+ h.addRow([{ PARA_NAME: T, PARA_VALUE: this._initialConfiParas ? this._initialConfiParas[T] : "" }]);
9076
+ }), p.addBlock(h);
9077
9077
  }
9078
9078
  l.Core.callService(this._serviceName, p).then(
9079
- (m) => {
9080
- m.getStatus() >= 0 && (Object.keys(m.getBlocks()).forEach((O) => {
9079
+ (h) => {
9080
+ h.getStatus() >= 0 && (Object.keys(h.getBlocks()).forEach((O) => {
9081
9081
  [
9082
9082
  "BM2A_SYSTEM_INFO",
9083
9083
  "TESCOMPANYINFO",
@@ -9090,22 +9090,22 @@ var g;
9090
9090
  "TSI00GRIDSTYLE",
9091
9091
  "TSI00GRIDBAND",
9092
9092
  "TSI00GRIDCONDITION"
9093
- ].includes(O) || (this._configInfo[O] = m.getBlock(O));
9093
+ ].includes(O) || (this._configInfo[O] = h.getBlock(O));
9094
9094
  }), ["TSI00GRIDVIEW", "TSI00GRIDCOLUMN", "TSI00GRIDCOLUMNURL", "TSI00GRIDSTYLE", "TSI00GRIDBAND", "TSI00GRIDCONDITION"].forEach((O) => {
9095
- m.getBlock(O) && this._configInfo[O] && m.getBlock(O).getMappedRows().length > 0 && this._configInfo[O].addRow(m.getBlock(O).getRows());
9095
+ h.getBlock(O) && this._configInfo[O] && h.getBlock(O).getMappedRows().length > 0 && this._configInfo[O].addRow(h.getBlock(O).getRows());
9096
9096
  }), c.split(",").forEach((O) => {
9097
9097
  var A;
9098
9098
  const F = this.getSingleViewConfigInfo(O), S = r.toString(F.TABLE_NAME).trim();
9099
9099
  if (F && S.length > 0 && !this._formDataSet.contains(S)) {
9100
- this._configInfo.TSI00DATATABLE.data.some((k) => k.TABLE_NAME === S) || m.getBlock("TSI00DATATABLE").getMappedRows().length > 0 && this._configInfo.TSI00DATATABLE.addRow(m.getBlock("TSI00DATATABLE").getRows());
9100
+ this._configInfo.TSI00DATATABLE.data.some((k) => k.TABLE_NAME === S) || h.getBlock("TSI00DATATABLE").getMappedRows().length > 0 && this._configInfo.TSI00DATATABLE.addRow(h.getBlock("TSI00DATATABLE").getRows());
9101
9101
  const H = {};
9102
9102
  F.FUNCTION_TYPE === "T" && ((A = F.CURRENT_NODE_DESC) == null ? void 0 : A.trim().length) > 0 && F.FATHER_NODE_DESC.trim().length > 0 && (H.hierarchy = { primaryField: F.CURRENT_NODE_DESC.trim(), parentField: F.CURRENT_NODE_DESC }), this.createDataTable(S, H);
9103
9103
  }
9104
9104
  this.setDropDownBindSourceAndRequiredFields(F);
9105
- })), o({ flag: m.getStatus() >= 0 ? 1 : -1, msg: m.getMsg() ?? "unknown error" });
9105
+ })), o({ flag: h.getStatus() >= 0 ? 1 : -1, msg: h.getMsg() ?? "unknown error" });
9106
9106
  },
9107
- (m) => {
9108
- o({ ...m, flag: -1, msg: "unknown error" });
9107
+ (h) => {
9108
+ o({ ...h, flag: -1, msg: "unknown error" });
9109
9109
  }
9110
9110
  );
9111
9111
  } else
@@ -9169,8 +9169,8 @@ var g;
9169
9169
  if (c.ORIGIN_CODE !== "0" && c.SVC_NAME.trim().length > 0) {
9170
9170
  if (t[c.ITEM_CODE] = this.setDropDownBindOptions(e.FUNCTION_TYPE, c), c.FATHER_FIELD.trim().length > 0 && c.FORM_FILTER.trim().length > 0 && c.FORM_FILTER.trim() !== "0") {
9171
9171
  c.LAYOUT_ID.trim().length === 0 && (c.LAYOUT_ID = e.FUNCTION_ID), this._dropDownCascader[c.LAYOUT_ID.trim() + c.FATHER_FIELD.trim()] || (this._dropDownCascader[c.LAYOUT_ID.trim() + c.FATHER_FIELD.trim()] = []);
9172
- const m = {};
9173
- m.COLUMN_EDIT = c.COLUMN_EDIT, m.FUNCTION_ID = c.FUNCTION_ID, m.ITEM_CODE = c.ITEM_CODE, m.FORM_FILTER = c.FORM_FILTER, m.FUNCTION_TYPE = e.FUNCTION_TYPE, this._dropDownCascader[c.LAYOUT_ID.trim() + c.FATHER_FIELD.trim()].push(m);
9172
+ const h = {};
9173
+ h.COLUMN_EDIT = c.COLUMN_EDIT, h.FUNCTION_ID = c.FUNCTION_ID, h.ITEM_CODE = c.ITEM_CODE, h.FORM_FILTER = c.FORM_FILTER, h.FUNCTION_TYPE = e.FUNCTION_TYPE, this._dropDownCascader[c.LAYOUT_ID.trim() + c.FATHER_FIELD.trim()].push(h);
9174
9174
  }
9175
9175
  o[c.ITEM_CODE] = r.guid();
9176
9176
  } else
@@ -9404,9 +9404,9 @@ var g;
9404
9404
  const o = this.getLayoutBindModel(e);
9405
9405
  if (o && this._layoutConditionStyleInfo[e == null ? void 0 : e.trim()]) {
9406
9406
  const i = (s) => {
9407
- var u, c, p, m, T, v, O, F;
9407
+ var u, c, p, h, T, v, O, F;
9408
9408
  const d = this._layoutConditionStyleInfo[e == null ? void 0 : e.trim()][s];
9409
- d && (l.Core.checkExpressionValid(o, l.Core.getSystemFormatString(d.condition)) ? (((u = d.labelForeColor) == null ? void 0 : u.trim().length) > 0 && this.setLayoutItemCaptionForeColor(e, s, d.labelForeColor), ((c = d.labelBackgroundColor) == null ? void 0 : c.trim().length) > 0 && this.setLayoutItemCaptionBackColor(e, s, d.labelBackgroundColor), ((p = d.textForeColor) == null ? void 0 : p.trim().length) > 0 && this.setLayoutItemContentForeColor(e, s, d.textForeColor), ((m = d.textBackgroundColor) == null ? void 0 : m.trim().length) > 0 && this.setLayoutItemContentBackColor(e, s, d.textBackgroundColor)) : (((T = d.labelForeColor) == null ? void 0 : T.trim().length) > 0 && this.setLayoutItemCaptionForeColor(e, s, ""), ((v = d.labelBackgroundColor) == null ? void 0 : v.trim().length) > 0 && this.setLayoutItemCaptionBackColor(e, s, ""), ((O = d.textForeColor) == null ? void 0 : O.trim().length) > 0 && this.setLayoutItemContentForeColor(e, s, ""), ((F = d.textBackgroundColor) == null ? void 0 : F.trim().length) > 0 && this.setLayoutItemContentBackColor(e, s, "")));
9409
+ d && (l.Core.checkExpressionValid(o, l.Core.getSystemFormatString(d.condition)) ? (((u = d.labelForeColor) == null ? void 0 : u.trim().length) > 0 && this.setLayoutItemCaptionForeColor(e, s, d.labelForeColor), ((c = d.labelBackgroundColor) == null ? void 0 : c.trim().length) > 0 && this.setLayoutItemCaptionBackColor(e, s, d.labelBackgroundColor), ((p = d.textForeColor) == null ? void 0 : p.trim().length) > 0 && this.setLayoutItemContentForeColor(e, s, d.textForeColor), ((h = d.textBackgroundColor) == null ? void 0 : h.trim().length) > 0 && this.setLayoutItemContentBackColor(e, s, d.textBackgroundColor)) : (((T = d.labelForeColor) == null ? void 0 : T.trim().length) > 0 && this.setLayoutItemCaptionForeColor(e, s, ""), ((v = d.labelBackgroundColor) == null ? void 0 : v.trim().length) > 0 && this.setLayoutItemCaptionBackColor(e, s, ""), ((O = d.textForeColor) == null ? void 0 : O.trim().length) > 0 && this.setLayoutItemContentForeColor(e, s, ""), ((F = d.textBackgroundColor) == null ? void 0 : F.trim().length) > 0 && this.setLayoutItemContentBackColor(e, s, "")));
9410
9410
  };
9411
9411
  let a;
9412
9412
  t instanceof Array ? a = t : t && (t == null ? void 0 : t.trim().length) > 0 ? a = t.split(",") : a = Object.keys(this._layoutConditionStyleInfo[e]), (a == null ? void 0 : a.length) > 0 && a.forEach((s) => {
@@ -9455,10 +9455,10 @@ var g;
9455
9455
  var i, a, s, d, u, c;
9456
9456
  if (this.InitializeFlag > 0 && e.trim().length > 0 && t.trim().length > 0 && o.trim().length > 0 && !((i = this._formDataSet) != null && i.contains(t.trim())))
9457
9457
  if (o = o.trim(), e = e.trim(), t = t.trim(), (a = this._formDataSet) != null && a.contains(e) || (e = this.getBindingTableName(e)), e.length > 0 && ((s = this._formDataSet) != null && s.contains(e))) {
9458
- const p = (d = this._formDataSet) == null ? void 0 : d.getDataTable(e), m = (u = this._formDataSet) == null ? void 0 : u.cloneDataTable(p, t);
9459
- (c = this._formDataSet) == null || c.addDataTable(t, m), this._configInfo.TSI00GRIDVIEW.getMappedRows().every((v) => v.FUNCTION_ID === o ? (v.TABLE_NAME = t, !1) : !0), this._formBindingRelation[o] = t;
9458
+ const p = (d = this._formDataSet) == null ? void 0 : d.getDataTable(e), h = (u = this._formDataSet) == null ? void 0 : u.cloneDataTable(p, t);
9459
+ (c = this._formDataSet) == null || c.addDataTable(t, h), this._configInfo.TSI00GRIDVIEW.getMappedRows().every((v) => v.FUNCTION_ID === o ? (v.TABLE_NAME = t, !1) : !0), this._formBindingRelation[o] = t;
9460
9460
  const T = this.getGrid(o);
9461
- T && (p.removeBindingInfo(this, o), T.gridOptions.context.bindingSource = m, T.gridOptions.context.bindTableName = t, m.setBindingInfo(this, o, "Grid"));
9461
+ T && (p.removeBindingInfo(this, o), T.gridOptions.context.bindingSource = h, T.gridOptions.context.bindTableName = t, h.setBindingInfo(this, o, "Grid"));
9462
9462
  } else
9463
9463
  this.messageError(`ER: The origin table [${e}] does not exist!`);
9464
9464
  return this;
@@ -9582,17 +9582,17 @@ var g;
9582
9582
  var k, Z;
9583
9583
  const i = r.toString(t.DISPLAY_COLS).toUpperCase();
9584
9584
  let a = r.toString(t.DISPLAY_CAPTIONS).trim(), s = !1;
9585
- const d = r.toString(t.VALUE_MEMBER).toUpperCase(), u = r.toString(t.DISPLAY_MEMBER).toUpperCase(), c = r.toNumber(t.VALUE_POSITION), p = r.toNumber(t.DISPLAY_POSITION), m = [], T = l.Core.$t("ERX.CodeColumn") || "代码", v = l.Core.$t("ERX.DescriptionColumn") || "描述";
9585
+ const d = r.toString(t.VALUE_MEMBER).toUpperCase(), u = r.toString(t.DISPLAY_MEMBER).toUpperCase(), c = r.toNumber(t.VALUE_POSITION), p = r.toNumber(t.DISPLAY_POSITION), h = [], T = l.Core.$t("ERX.CodeColumn") || "代码", v = l.Core.$t("ERX.DescriptionColumn") || "描述";
9586
9586
  a.startsWith("$t(") && a.endsWith(")") && (a = a.substring(3, a.length - 1), s = !0);
9587
9587
  let O = "CODE";
9588
9588
  d.trim().length > 0 && (O = d.trim());
9589
9589
  let F = "CODE_DESC_1_CONTENT";
9590
- u.trim().length > 0 && (F = u.trim()), m.push(O, F);
9590
+ u.trim().length > 0 && (F = u.trim()), h.push(O, F);
9591
9591
  const S = {
9592
9592
  dataValueField: "",
9593
9593
  dataTextField: "",
9594
9594
  dataSource: [],
9595
- filterFields: m,
9595
+ filterFields: h,
9596
9596
  columns: [
9597
9597
  { field: O, title: T, width: 150 },
9598
9598
  { field: F, title: v, width: 150 }
@@ -9612,7 +9612,7 @@ var g;
9612
9612
  const b = [];
9613
9613
  for (let Ce = 0; Ce < w.length; Ce++) {
9614
9614
  const he = { field: w[Ce], title: ie[Ce].trim(), width: 150 };
9615
- he.title.startsWith("$t(") && he.title.endsWith(")") ? he.title = this.$t(he.title.substring(3, he.title.length - 1)) : s && (he.title = this.$t(he.title)), b.push(he), m.push(he.field);
9615
+ he.title.startsWith("$t(") && he.title.endsWith(")") ? he.title = this.$t(he.title.substring(3, he.title.length - 1)) : s && (he.title = this.$t(he.title)), b.push(he), h.push(he.field);
9616
9616
  }
9617
9617
  d.trim().length > 0 && u.trim().length > 0 ? (O = d.trim(), F = u.trim()) : (c >= 0 && c < w.length ? O = w[c] : O = w[0], p >= 0 && c < w.length ? F = w[p] : w.length > 1 ? F = w[1] : F = w[0]), S.columns = b, S.dropDownWidth = b.length * 150, S.dataValueField = O, S.dataTextField = F;
9618
9618
  }
@@ -9621,12 +9621,12 @@ var g;
9621
9621
  (H[0][O] === void 0 || H[0][F] === void 0) && (H[0][O] === void 0 && (O = w[0]), H[0][F] === void 0 && (w.length > 1 ? F = w[1] : F = w[0])), S.columns = t.VALUE_VISIBLE === "1" ? [
9622
9622
  { field: O, title: T, width: 150 },
9623
9623
  { field: F, title: v, width: 150 }
9624
- ] : [{ field: F, title: v, width: 150 }], t.VALUE_VISIBLE === "1" && m.push(O);
9624
+ ] : [{ field: F, title: v, width: 150 }], t.VALUE_VISIBLE === "1" && h.push(O);
9625
9625
  } else d.trim().length > 0 && u.trim().length > 0 && (O = d.trim(), F = u.trim(), S.columns = t.VALUE_VISIBLE === "1" ? [
9626
9626
  { field: O, title: T, width: 150 },
9627
9627
  { field: F, title: v, width: 150 }
9628
- ] : [{ field: F, title: v, width: 150 }], t.VALUE_VISIBLE === "1" && m.push(O));
9629
- return t.ADD_EMPTY_ITEM === "1" && (S.optionLabel = "—-—"), t.FORMAT_TYPE === "Custom" && ((k = t.FORMAT_STRING) == null ? void 0 : k.trim().length) > 0 ? S.displayFormat = (Z = t.FORMAT_STRING) == null ? void 0 : Z.trim() : t.DISPLAY_POSITION === t.VALUE_POSITION && r.toNumber(t.VALUE_POSITION) >= 0 || t.DISPLAY_MEMBER === t.VALUE_MEMBER && t.VALUE_MEMBER.trim().length > 0 ? S.displayFormat = "{0}" : t.VALUE_VISIBLE === "1" ? S.displayFormat = "{0}|{1}" : S.displayFormat = "{1}", H && H instanceof Array && (A = H.map((w) => ({ ...w, value: w[O], label: w[F] }))), m.push(F), S.autoWidth = !0, S.dataSource = A, S.dataValueField = O, S.dataTextField = F, S;
9628
+ ] : [{ field: F, title: v, width: 150 }], t.VALUE_VISIBLE === "1" && h.push(O));
9629
+ return t.ADD_EMPTY_ITEM === "1" && (S.optionLabel = "—-—"), t.FORMAT_TYPE === "Custom" && ((k = t.FORMAT_STRING) == null ? void 0 : k.trim().length) > 0 ? S.displayFormat = (Z = t.FORMAT_STRING) == null ? void 0 : Z.trim() : t.DISPLAY_POSITION === t.VALUE_POSITION && r.toNumber(t.VALUE_POSITION) >= 0 || t.DISPLAY_MEMBER === t.VALUE_MEMBER && t.VALUE_MEMBER.trim().length > 0 ? S.displayFormat = "{0}" : t.VALUE_VISIBLE === "1" ? S.displayFormat = "{0}|{1}" : S.displayFormat = "{1}", H && H instanceof Array && (A = H.map((w) => ({ ...w, value: w[O], label: w[F] }))), h.push(F), S.autoWidth = !0, S.dataSource = A, S.dataValueField = O, S.dataTextField = F, S;
9630
9630
  }
9631
9631
  /**
9632
9632
  * 设置下拉框及联筛选
@@ -9641,24 +9641,24 @@ var g;
9641
9641
  if (s.length === 2) {
9642
9642
  const d = s[0].trim().toUpperCase(), u = s[1].trim().toUpperCase(), c = [];
9643
9643
  return e.forEach((p) => {
9644
- const m = l.Core.toString(p[d]).trim();
9645
- if (m.length > 0) {
9644
+ const h = l.Core.toString(p[d]).trim();
9645
+ if (h.length > 0) {
9646
9646
  for (let T = 0; T < i.length; T++)
9647
9647
  if (a === "like") {
9648
- if (u.startsWith("'%") && u.endsWith("%'") && m.indexOf(i[T]) >= 0) {
9648
+ if (u.startsWith("'%") && u.endsWith("%'") && h.indexOf(i[T]) >= 0) {
9649
9649
  c.push(p);
9650
9650
  break;
9651
- } else if (u.startsWith("'%") && m.endsWith(i[T])) {
9651
+ } else if (u.startsWith("'%") && h.endsWith(i[T])) {
9652
9652
  c.push(p);
9653
9653
  break;
9654
- } else if (m.startsWith(i[T])) {
9654
+ } else if (h.startsWith(i[T])) {
9655
9655
  c.push(p);
9656
9656
  break;
9657
9657
  }
9658
- } else if (a === "<>" && m !== i[T]) {
9658
+ } else if (a === "<>" && h !== i[T]) {
9659
9659
  c.push(p);
9660
9660
  break;
9661
- } else if (m === i[T]) {
9661
+ } else if (h === i[T]) {
9662
9662
  c.push(p);
9663
9663
  break;
9664
9664
  }
@@ -9715,15 +9715,15 @@ var g;
9715
9715
  s.forEach((u) => {
9716
9716
  if (u.trim().length > 0) {
9717
9717
  const c = u.split("="), p = c[0].trim().toUpperCase();
9718
- let m = c[0].trim().toUpperCase();
9719
- if (c.length > 1 && (m = c[1].trim().toUpperCase()), d && d instanceof Array) {
9718
+ let h = c[0].trim().toUpperCase();
9719
+ if (c.length > 1 && (h = c[1].trim().toUpperCase()), d && d instanceof Array) {
9720
9720
  let T = "";
9721
9721
  d.forEach((v) => {
9722
9722
  const O = l.Core.toString(v[p]).trim();
9723
9723
  O.length > 0 && (T = T.length === 0 ? O : T + "," + O);
9724
- }), this.setControlValue(e, m, T);
9724
+ }), this.setControlValue(e, h, T);
9725
9725
  } else
9726
- this.setControlValue(e, m, d[p]);
9726
+ this.setControlValue(e, h, d[p]);
9727
9727
  }
9728
9728
  });
9729
9729
  }
@@ -9735,12 +9735,12 @@ var g;
9735
9735
  * @param rowNode 对应的rowNode对象
9736
9736
  */
9737
9737
  setDropDownAutoFillFieldsForGrid(e, t, o) {
9738
- var a, s, d, u, c, p, m, T, v, O;
9738
+ var a, s, d, u, c, p, h, T, v, O;
9739
9739
  const i = this.getGrid(e);
9740
9740
  if (i && ((a = o == null ? void 0 : o.data) != null && a.uid)) {
9741
9741
  const F = (s = i.gridOptions.context) == null ? void 0 : s.configId, S = (u = (d = i.gridOptions.context) == null ? void 0 : d.viewConfig) == null ? void 0 : u.AUTO_SELECT_MODE, A = this.getGridColumn(e, t);
9742
9742
  if ((p = (c = A == null ? void 0 : A.colDef) == null ? void 0 : c.context) != null && p.columnConfig) {
9743
- const H = (T = (m = A == null ? void 0 : A.colDef) == null ? void 0 : m.context) == null ? void 0 : T.columnConfig;
9743
+ const H = (T = (h = A == null ? void 0 : A.colDef) == null ? void 0 : h.context) == null ? void 0 : T.columnConfig;
9744
9744
  let k = [], Z = {};
9745
9745
  if (H && H.AUTOFILL_COLS && H.COLUMN_EDIT !== "3") {
9746
9746
  const w = H.AUTOFILL_COLS;
@@ -9855,19 +9855,19 @@ var g;
9855
9855
  else if (o instanceof Array)
9856
9856
  c = o;
9857
9857
  else if (u.ORIGIN_CODE === "2" && u.SVC_NAME.trim().length > 0) {
9858
- const m = await this.queryDataByDataSource(u.SVC_NAME.trim());
9859
- l.Core.toNumber((i = m.SysInfo) == null ? void 0 : i.Flag) >= 0 && (c = m.getBlockByIndex(0).getMappedRows());
9858
+ const h = await this.queryDataByDataSource(u.SVC_NAME.trim());
9859
+ l.Core.toNumber((i = h.SysInfo) == null ? void 0 : i.Flag) >= 0 && (c = h.getBlockByIndex(0).getMappedRows());
9860
9860
  }
9861
9861
  const p = this.setDropDownBindOptions(u.FUNCTION_TYPE, u, c);
9862
9862
  if (this._dropDownBindSource[e.trim()] = this._dropDownBindSource[e.trim()] || {}, this._dropDownBindSource[e.trim()][t.trim()] = p, u.FUNCTION_TYPE === "F") {
9863
- const m = this.getControlValue(e, t);
9864
- m && !((a = p == null ? void 0 : p.dataSource) != null && a.some((T) => T[p.dataValueField] === m)) && this.setControlEmptyValue(e, t);
9863
+ const h = this.getControlValue(e, t);
9864
+ h && !((a = p == null ? void 0 : p.dataSource) != null && a.some((T) => T[p.dataValueField] === h)) && this.setControlEmptyValue(e, t);
9865
9865
  } else if (u.FUNCTION_TYPE === "G" || u.FUNCTION_TYPE === "P") {
9866
- const m = this.getGridColumn(e, t);
9867
- if (m != null && m.colDef) {
9868
- this.setGridColumnDropdown(e, m.colDef, c, (s = m.colDef.context) == null ? void 0 : s.valueField, (d = m.colDef.context) == null ? void 0 : d.textField, p.displayFormat);
9866
+ const h = this.getGridColumn(e, t);
9867
+ if (h != null && h.colDef) {
9868
+ this.setGridColumnDropdown(e, h.colDef, c, (s = h.colDef.context) == null ? void 0 : s.valueField, (d = h.colDef.context) == null ? void 0 : d.textField, p.displayFormat);
9869
9869
  const T = this.getGridApi(e);
9870
- T == null || T.refreshCells({ columns: [m.colId] });
9870
+ T == null || T.refreshCells({ columns: [h.colId] });
9871
9871
  }
9872
9872
  }
9873
9873
  this._dropDownRefreshKey[e][t] = r.guid();
@@ -9885,8 +9885,8 @@ var g;
9885
9885
  this._configInfo.TSI00GRIDVIEW.getMappedRows().forEach((d) => {
9886
9886
  var u, c, p;
9887
9887
  if (((u = d.TABLE_NAME) == null ? void 0 : u.trim().length) > 0 && ((c = d.DATASET_NAME) == null ? void 0 : c.trim().length) > 0) {
9888
- const m = {};
9889
- d.FUNCTION_TYPE === "T" && ((p = d.CURRENT_NODE_DESC) == null ? void 0 : p.trim().length) > 0 && d.FATHER_NODE_DESC.trim().length > 0 && (m.hierarchy = { primaryField: d.CURRENT_NODE_DESC.trim(), parentField: d.FATHER_NODE_DESC }), this.createDataTable(d.TABLE_NAME.trim(), m) && e.push({ tableName: d.TABLE_NAME.trim() }), t = d.DATASET_NAME.trim();
9888
+ const h = {};
9889
+ d.FUNCTION_TYPE === "T" && ((p = d.CURRENT_NODE_DESC) == null ? void 0 : p.trim().length) > 0 && d.FATHER_NODE_DESC.trim().length > 0 && (h.hierarchy = { primaryField: d.CURRENT_NODE_DESC.trim(), parentField: d.FATHER_NODE_DESC }), this.createDataTable(d.TABLE_NAME.trim(), h) && e.push({ tableName: d.TABLE_NAME.trim() }), t = d.DATASET_NAME.trim();
9890
9890
  }
9891
9891
  }), ((a = (i = (o = this._configInfo) == null ? void 0 : o.TSI00DATARELATION) == null ? void 0 : i.getMappedRows()) == null ? void 0 : a.length) > 0 && this._configInfo.TSI00DATARELATION.getMappedRows().forEach((d) => {
9892
9892
  e.findIndex((u) => u.tableName === d.RESERVE1) >= 0 && e.findIndex((u) => u.tableName === d.RESERVE7) >= 0 && (this._formDataSet.relations[d.RELATION_NAME] = this._formDataSet.relations[d.RELATION_NAME] || [], this._formDataSet.relations[d.RELATION_NAME].push({
@@ -9903,7 +9903,7 @@ var g;
9903
9903
  * @returns DataTable
9904
9904
  */
9905
9905
  createDataTable(e, t) {
9906
- var a, s, d, u, c, p, m;
9906
+ var a, s, d, u, c, p, h;
9907
9907
  let o;
9908
9908
  const i = {
9909
9909
  ...t
@@ -9936,7 +9936,7 @@ var g;
9936
9936
  }), Object.keys(T).length > 0 && (T[f.IdFieldName] = { name: f.IdFieldName, type: "string" }, i.schema = T, o = new J(i), this._formDataSet.addDataTable(e.trim(), o));
9937
9937
  } else
9938
9938
  o = (d = this._formDataSet) == null ? void 0 : d.dataTables[e.trim()], i.schema = (u = o == null ? void 0 : o.options) == null ? void 0 : u.schema, i.hierarchy = i.hierarchy || ((c = o == null ? void 0 : o.options) == null ? void 0 : c.hierarchy);
9939
- return (p = t == null ? void 0 : t.hierarchy) != null && p.primaryField && ((m = t == null ? void 0 : t.hierarchy) != null && m.parentField) && (i.schema[t.hierarchy.primaryField] === void 0 && console.error(`ER: Hierarchy DataTable's PrimaryField [${t.hierarchy.primaryField}] not exists!`), i.schema[t.hierarchy.parentField] === void 0 && console.error(`ER: Hierarchy DataTable's ParentField [${t.hierarchy.parentField}] not exists!`)), o || console.error(`ER: DataTable [${e}] creation failed!`), o;
9939
+ return (p = t == null ? void 0 : t.hierarchy) != null && p.primaryField && ((h = t == null ? void 0 : t.hierarchy) != null && h.parentField) && (i.schema[t.hierarchy.primaryField] === void 0 && console.error(`ER: Hierarchy DataTable's PrimaryField [${t.hierarchy.primaryField}] not exists!`), i.schema[t.hierarchy.parentField] === void 0 && console.error(`ER: Hierarchy DataTable's ParentField [${t.hierarchy.parentField}] not exists!`)), o || console.error(`ER: DataTable [${e}] creation failed!`), o;
9940
9940
  }
9941
9941
  /**
9942
9942
  * 根据dataTable获取对应的表名
@@ -10030,17 +10030,17 @@ var g;
10030
10030
  if (this.isNullOrEmpty(o) ? o = Object.keys(this._formBindingRelation) : o.length === 1 && o[0] && typeof o[0] == "string" && (o = o[0].split(",")), o.length > 0) {
10031
10031
  if (o.length === 1 && o[0].trim().length > 0) {
10032
10032
  const u = this.getBindingTableName(o[0]);
10033
- (u == null ? void 0 : u.trim().length) > 0 && (e instanceof vo ? (i = this._formDataSet) == null || i.mergeData(u.trim(), e.getMappedRows(), t) : e instanceof St ? e.getBlock(u.trim()) ? (a = this._formDataSet) == null || a.mergeData(
10033
+ (u == null ? void 0 : u.trim().length) > 0 && (e instanceof vo ? (i = this._formDataSet) == null || i.mergeData(u.trim(), e.getMappedRows(), t) : e instanceof It ? e.getBlock(u.trim()) ? (a = this._formDataSet) == null || a.mergeData(
10034
10034
  u.trim(),
10035
10035
  e.getBlock(u.trim()).getMappedRows(),
10036
10036
  t
10037
10037
  ) : Object.keys(e).length > 0 && ((s = this._formDataSet) == null || s.mergeData(u.trim(), e.getBlockByIndex(0).getMappedRows(), t)) : e instanceof Array && e && e.length > 0 && ((d = this._formDataSet) == null || d.mergeData(u.trim(), e, t)), this.autoBestFit(o[0]));
10038
- } else if (e instanceof St) {
10038
+ } else if (e instanceof It) {
10039
10039
  const u = {};
10040
10040
  o.forEach((c) => {
10041
- var m;
10041
+ var h;
10042
10042
  const p = this.getBindingTableName(c);
10043
- (p == null ? void 0 : p.trim().length) > 0 && e.getBlock(p.trim()) && (u[p] || ((m = this._formDataSet) == null || m.mergeData(
10043
+ (p == null ? void 0 : p.trim().length) > 0 && e.getBlock(p.trim()) && (u[p] || ((h = this._formDataSet) == null || h.mergeData(
10044
10044
  p.trim(),
10045
10045
  e.getBlock(p.trim()).getMappedRows(),
10046
10046
  t
@@ -10072,7 +10072,7 @@ var g;
10072
10072
  * @returns Model
10073
10073
  */
10074
10074
  addRowToGrid(e, t = !0, o = "default", i = !1) {
10075
- var d, u, c, p, m, T;
10075
+ var d, u, c, p, h, T;
10076
10076
  let a;
10077
10077
  const s = this.getGrid(e);
10078
10078
  if ((d = s == null ? void 0 : s.gridOptions.context) != null && d.bindingSource) {
@@ -10080,7 +10080,7 @@ var g;
10080
10080
  o === "default" && (o = this.getGridOptions(e, "insertAtTop") || "default"), o === "default" && (o = ((p = (c = (u = s == null ? void 0 : s.gridOptions) == null ? void 0 : u.context) == null ? void 0 : c.options) == null ? void 0 : p.insertAtTop) || "default");
10081
10081
  const O = this.getGridOptions(e, "autoGuidField");
10082
10082
  (t === !0 || (t == null ? void 0 : t.setDefaultValue) === !0) && (v = this.getGridConfigDefaultValues(e) || {}), this._customDefaultValues[e] && (v = { ...v, ...this._customDefaultValues[e] }), t != null && t.data && (v = { ...v, ...t.data });
10083
- const F = (m = s.gridOptions.context) == null ? void 0 : m.bindingSource;
10083
+ const F = (h = s.gridOptions.context) == null ? void 0 : h.bindingSource;
10084
10084
  if (o === !0 || o === "top")
10085
10085
  a = F.insert(0, v, O);
10086
10086
  else if (o === "afterCurrent" || o === "beforeCurrent") {
@@ -10110,16 +10110,16 @@ var g;
10110
10110
  t === "default" && (t = this.getGridOptions(e, "insertAtTop") || "default"), t === "default" && (t = ((u = (d = (s = i == null ? void 0 : i.gridOptions) == null ? void 0 : s.context) == null ? void 0 : d.options) == null ? void 0 : u.insertAtTop) || "default"), (i == null ? void 0 : i.gridOptions.api).stopEditing();
10111
10111
  const p = this.getGridSelectRows(i);
10112
10112
  if (p.length === 0) {
10113
- const m = this.getGridCurrentRow(i);
10114
- m && p.push(m);
10113
+ const h = this.getGridCurrentRow(i);
10114
+ h && p.push(h);
10115
10115
  }
10116
10116
  if (p.length === 0)
10117
10117
  a = [this.addRowToGrid(e, !0, t, o)];
10118
10118
  else {
10119
- const m = this.getGridBindingTable(e);
10120
- if (m) {
10119
+ const h = this.getGridBindingTable(e);
10120
+ if (h) {
10121
10121
  let T = -1;
10122
- t === "top" || t === !0 ? T = 0 : t === "afterCurrent" || t === "default" ? (T = m.indexOf(p[p.length - 1]), T < m.rowCount && (T = T + 1)) : t === "beforeCurrent" ? (T = m.indexOf(p[0]), T > 0 && (T = T - 1)) : typeof t == "number" && t >= 0 && (T = t), a = m.import(p, T, !0, this.getGridOptions(e, "autoGuidField"));
10122
+ t === "top" || t === !0 ? T = 0 : t === "afterCurrent" || t === "default" ? (T = h.indexOf(p[p.length - 1]), T < h.rowCount && (T = T + 1)) : t === "beforeCurrent" ? (T = h.indexOf(p[0]), T > 0 && (T = T - 1)) : typeof t == "number" && t >= 0 && (T = t), a = h.import(p, T, !0, this.getGridOptions(e, "autoGuidField"));
10123
10123
  }
10124
10124
  }
10125
10125
  }
@@ -10584,8 +10584,8 @@ var g;
10584
10584
  if ((i = o == null ? void 0 : o.gridOptions) != null && i.api) {
10585
10585
  const c = o.gridOptions.api.getColumnDef(f.GridCheckColumnFieldName);
10586
10586
  c && (t === !1 ? (c.rowDrag = void 0, (a = o == null ? void 0 : o.gridOptions) == null || a.columnApi.setColumnWidth(c.colId, 55)) : (t === !0 || (s = o.gridOptions.context) != null && s.allowDragRow) && (o.gridOptions.context.allowDragRow = !0, (d = o == null ? void 0 : o.gridOptions) == null || d.columnApi.setColumnWidth(c.colId, 75), c.rowDrag = (p) => {
10587
- var m;
10588
- return ((m = p.context) == null ? void 0 : m.allowDragRow) && !p.node.group && !p.node.footer;
10587
+ var h;
10588
+ return ((h = p.context) == null ? void 0 : h.allowDragRow) && !p.node.group && !p.node.footer;
10589
10589
  }), o.gridOptions.rowDragManaged = t), o.gridOptions.api.redrawRows();
10590
10590
  }
10591
10591
  return this;
@@ -10616,12 +10616,12 @@ var g;
10616
10616
  a.addField(c), d.colId = d.colId || d.field, o.gridOptions.api.getColumnDef(d.colId) || (d.headerComponentParams = {
10617
10617
  template: `${this.getGridHeaderTemplate({ color: d.headerTextColor, backColor: d.headerBackColor, fontSize: d.fontSize, title: d.headerName || d.title || d.caption })}`
10618
10618
  }, d.headerClass = () => {
10619
- var m, T, v, O, F;
10619
+ var h, T, v, O, F;
10620
10620
  let p = "er-grid-header-align-center";
10621
- return ((m = d.headerAlignment) == null ? void 0 : m.toLowerCase()) === "near" || ((T = d.headerAlignment) == null ? void 0 : T.toLowerCase()) === "left" ? p = "er-grid-header-align-left" : (((v = d.headerAlignment) == null ? void 0 : v.toLowerCase()) === "far" || ((O = d.headerAlignment) == null ? void 0 : O.toLowerCase()) === "right") && (p = "er-grid-header-align-right"), d.required && ((F = d.requiredCondition) == null ? void 0 : F.trim().length) > 0 ? p = p + " er-grid-header-maroon-star" : d.required && (p = p + " er-grid-header-red-star"), p;
10621
+ return ((h = d.headerAlignment) == null ? void 0 : h.toLowerCase()) === "near" || ((T = d.headerAlignment) == null ? void 0 : T.toLowerCase()) === "left" ? p = "er-grid-header-align-left" : (((v = d.headerAlignment) == null ? void 0 : v.toLowerCase()) === "far" || ((O = d.headerAlignment) == null ? void 0 : O.toLowerCase()) === "right") && (p = "er-grid-header-align-right"), d.required && ((F = d.requiredCondition) == null ? void 0 : F.trim().length) > 0 ? p = p + " er-grid-header-maroon-star" : d.required && (p = p + " er-grid-header-red-star"), p;
10622
10622
  }, d.editable = d.editable === void 0 ? !0 : d.editable, d.autoHeaderHeight = d.autoHeaderHeight === void 0 ? !0 : d.autoHeaderHeight, d.enableRowGroup = d.enableRowGroup === void 0 ? !0 : d.enableRowGroup, typeof d.editable != "function" && (d.context = d.context || {}, d.context.editable = d.editable, d.headerTooltip = d.headerName || d.title || d.caption, d.editable = (p) => {
10623
- var m, T;
10624
- return ((m = p.context) == null ? void 0 : m.editable) && ((T = p.colDef.context) == null ? void 0 : T.editable) && !p.node.rowPinned;
10623
+ var h, T;
10624
+ return ((h = p.context) == null ? void 0 : h.editable) && ((T = p.colDef.context) == null ? void 0 : T.editable) && !p.node.rowPinned;
10625
10625
  }), d.filter = d.filter === void 0 ? "agSetColumnFilter" : d.filter, d.filterParams = { excelMode: "windows" }, s.push(d));
10626
10626
  }
10627
10627
  }), o.gridOptions.api.setColumnDefs(s);
@@ -10699,7 +10699,7 @@ var g;
10699
10699
  if (e && t && Object.keys(t).length > 0) {
10700
10700
  const i = this.getGrid(e);
10701
10701
  setTimeout(() => {
10702
- var a, s, d, u, c, p, m;
10702
+ var a, s, d, u, c, p, h;
10703
10703
  if ((a = i == null ? void 0 : i.gridOptions) != null && a.api && ((d = (s = i == null ? void 0 : i.gridOptions) == null ? void 0 : s.context) != null && d.bindingSource)) {
10704
10704
  const T = (u = i == null ? void 0 : i.gridOptions) == null ? void 0 : u.api, O = ((p = (c = i == null ? void 0 : i.gridOptions) == null ? void 0 : c.context) == null ? void 0 : p.bindingSource).data().find((F) => {
10705
10705
  for (const S in t)
@@ -10709,7 +10709,7 @@ var g;
10709
10709
  });
10710
10710
  if (O != null && O.uid) {
10711
10711
  T.clearFocusedCell();
10712
- const F = (m = i == null ? void 0 : i.gridOptions) == null ? void 0 : m.api.getRowNode(O == null ? void 0 : O.uid);
10712
+ const F = (h = i == null ? void 0 : i.gridOptions) == null ? void 0 : h.api.getRowNode(O == null ? void 0 : O.uid);
10713
10713
  F && this.setGridFocusedCell(e, F.rowIndex, l.SysInfo.GridCheckColumnFieldName, o);
10714
10714
  }
10715
10715
  }
@@ -10912,7 +10912,7 @@ var g;
10912
10912
  enableRangeSelection: !0,
10913
10913
  stopEditingWhenCellsLoseFocus: !0,
10914
10914
  suppressRowTransform: !0,
10915
- enableRtl: Wo(),
10915
+ enableRtl: zo(),
10916
10916
  statusBar: {
10917
10917
  statusPanels: [
10918
10918
  {
@@ -11003,8 +11003,8 @@ var g;
11003
11003
  const p = this._configInfo.TSI00GRIDCONDITION.data[c];
11004
11004
  if (r.toString(p.FUNCTION_ID, !0) !== e || (t == null ? void 0 : t.trim().length) > 0 && r.toString(p.OPERATE_NAME, !0) !== (t == null ? void 0 : t.trim()) || u.MATCH_FLAG === "1" && r.toString(p.COMPANY_CODE, !0) !== f.CompanyCode || r.toString(p.FIELD_NAME_ARRAY, !0).length === 0)
11005
11005
  continue;
11006
- const m = r.toString(p.FIELD_NAME_ARRAY, !0).split(",");
11007
- p.FIELD_NAME_ARRAY = m, d.push(p);
11006
+ const h = r.toString(p.FIELD_NAME_ARRAY, !0).split(",");
11007
+ p.FIELD_NAME_ARRAY = h, d.push(p);
11008
11008
  }
11009
11009
  }
11010
11010
  if (d.length > 0) {
@@ -11012,11 +11012,11 @@ var g;
11012
11012
  const u = this.getAllControlValue(e);
11013
11013
  d.forEach((c) => {
11014
11014
  const p = c.FIELD_NAME_ARRAY;
11015
- let m = i ?? c.PROP_VALUE ?? "default";
11015
+ let h = i ?? c.PROP_VALUE ?? "default";
11016
11016
  p.forEach((T) => {
11017
11017
  if (T && !(a != null && a.includes(T))) {
11018
11018
  const v = r.toString(c.REGULAR_EXPRESS, !0), O = v.length === 0 || v.replaceAll(" ", "") === "1=1" || r.checkExpressionValid(u, r.getSystemFormatString(v));
11019
- m = m == !0 || m === "1" || r.toString(m).toLowerCase() === "true", o === "ReadOnly" && this.setControlReadOnly(e, O ? m : "default", T);
11019
+ h = h == !0 || h === "1" || r.toString(h).toLowerCase() === "true", o === "ReadOnly" && this.setControlReadOnly(e, O ? h : "default", T);
11020
11020
  }
11021
11021
  });
11022
11022
  });
@@ -11064,8 +11064,8 @@ var g;
11064
11064
  const u = a[d].trim();
11065
11065
  if (o = null, u.length === 0)
11066
11066
  continue;
11067
- const c = this.getLayoutItemOption(e, u, "field"), p = this.getLayoutItemOption(e, u, "controlType"), m = this.getLayoutItemOption(e, u, "format");
11068
- (c == null ? void 0 : c.trim().length) > 0 ? o = s[c.trim()] : this._hiddenFields[e.trim()] ? o = this._hiddenFields[e.trim()][u] || "" : o = s[u], ["antMultiSelect", "erMultiSelect", "erSelect", "erTreeSelect", "erMultiTreeSelect"].includes(p) ? o = this.getDropDownSelectedText(e, u, o) : p === "antDateTimePicker" || p === "antDatePicker" || p === "antMonthPicker" || p === "antYearPicker" ? o = r.toDateTime(o, "Dayjs").format(m || "YYYY-MM-DD") : p === "antInputNumber" && (o = l.Core.formatNumberValue(o, m)), a.length > 1 ? i[u] = o : i = o;
11067
+ const c = this.getLayoutItemOption(e, u, "field"), p = this.getLayoutItemOption(e, u, "controlType"), h = this.getLayoutItemOption(e, u, "format");
11068
+ (c == null ? void 0 : c.trim().length) > 0 ? o = s[c.trim()] : this._hiddenFields[e.trim()] ? o = this._hiddenFields[e.trim()][u] || "" : o = s[u], ["antMultiSelect", "erMultiSelect", "erSelect", "erTreeSelect", "erMultiTreeSelect"].includes(p) ? o = this.getDropDownSelectedText(e, u, o) : p === "antDateTimePicker" || p === "antDatePicker" || p === "antMonthPicker" || p === "antYearPicker" ? o = r.toDateTime(o, "Dayjs").format(h || "YYYY-MM-DD") : p === "antInputNumber" && (o = l.Core.formatNumberValue(o, h)), a.length > 1 ? i[u] = o : i = o;
11069
11069
  }
11070
11070
  }
11071
11071
  return i;
@@ -11344,15 +11344,15 @@ var g;
11344
11344
  return this;
11345
11345
  const p = r.toString(d.DEFAULT_VALUE, !0);
11346
11346
  if (s && p.length > 0) {
11347
- let m = this.getDefaultStringValue(p), T = null;
11347
+ let h = this.getDefaultStringValue(p), T = null;
11348
11348
  const v = this.getLayoutItemOption(e.trim(), t, "controlType");
11349
11349
  if (["antMultiSelect", "erMultiSelect", "erSelect", "erTreeSelect", "erMultiTreeSelect", "antRadioGroup", "erRadioGroup", "erCheckboxGroup"].includes(v) && ["$FIRST_ROW$", "$LAST_ROW$", "$ALL_VALUES$"].includes(p) && this._dropDownBindSource[e] && this._dropDownBindSource[e][t]) {
11350
11350
  const O = this._dropDownBindSource[e][t];
11351
- ((a = O.dataSource) == null ? void 0 : a.length) > 0 && O.dataValueField && (p === "$FIRST_ROW$" ? m = O.dataSource[0][O.dataValueField] : p === "$LAST_ROW$" ? m = O.dataSource[O.dataSource.length - 1][O.dataValueField] : ["antMultiSelect", "erMultiSelect"].includes(v) && p === "$ALL_VALUES$" && (m = "", O.dataSource.forEach((F) => {
11352
- m = m.length === 0 ? F[O.dataValueField] : m + "," + F[O.dataValueField];
11351
+ ((a = O.dataSource) == null ? void 0 : a.length) > 0 && O.dataValueField && (p === "$FIRST_ROW$" ? h = O.dataSource[0][O.dataValueField] : p === "$LAST_ROW$" ? h = O.dataSource[O.dataSource.length - 1][O.dataValueField] : ["antMultiSelect", "erMultiSelect"].includes(v) && p === "$ALL_VALUES$" && (h = "", O.dataSource.forEach((F) => {
11352
+ h = h.length === 0 ? F[O.dataValueField] : h + "," + F[O.dataValueField];
11353
11353
  })));
11354
11354
  }
11355
- ["antDatePicker", "antDateTimePicker", "antMonthPicker", "antYearPicker"].includes(v) ? T = r.getDateTimeByString(m) : v === "antInputNumber" ? T = r.toNumber(m) : ["antMultiSelect", "erMultiSelect", "erCheckboxGroup"].includes(v) ? T = m.split(",") : v === "antCheckbox" || v === "antSwitch" ? T = m === "1" || m.toLowerCase() === "true" : T = m, this.setControlValue(e, t, T);
11355
+ ["antDatePicker", "antDateTimePicker", "antMonthPicker", "antYearPicker"].includes(v) ? T = r.getDateTimeByString(h) : v === "antInputNumber" ? T = r.toNumber(h) : ["antMultiSelect", "erMultiSelect", "erCheckboxGroup"].includes(v) ? T = h.split(",") : v === "antCheckbox" || v === "antSwitch" ? T = h === "1" || h.toLowerCase() === "true" : T = h, this.setControlValue(e, t, T);
11356
11356
  }
11357
11357
  }
11358
11358
  return this;
@@ -11422,7 +11422,7 @@ var g;
11422
11422
  if (s) {
11423
11423
  const d = this.getConfigInfo(a.trim());
11424
11424
  d.TSI00GRIDVIEW && d.TSI00GRIDCOLUMN && d.TSI00GRIDCOLUMN.forEach((u) => {
11425
- const c = this.getLayoutItemOption(a, u.ITEM_CODE, "controlType"), p = this.getLayoutItemOption(a, u.ITEM_CODE, "field") || u.ITEM_CODE, m = r.toNumber(u.MAX_LENGTH);
11425
+ const c = this.getLayoutItemOption(a, u.ITEM_CODE, "controlType"), p = this.getLayoutItemOption(a, u.ITEM_CODE, "field") || u.ITEM_CODE, h = r.toNumber(u.MAX_LENGTH);
11426
11426
  if (p) {
11427
11427
  let T = s[p];
11428
11428
  if (c === "antCheckbox" || c === "antSwitch")
@@ -11431,7 +11431,7 @@ var g;
11431
11431
  T = T || 0;
11432
11432
  else if (["antDatePicker", "antDateTimePicker", "antMonthPicker", "antYearPicker"].includes(c) && T) {
11433
11433
  const v = r.toString(u.DATE_TIME_FORMAT, !0) || "yyyyMMddHHmmss", O = r.getDateTimeFormatString(T, v);
11434
- O.substring(0, 4) === "0001" || O.substring(0, 4) === "1900" || O.substring(0, 4) === "1901" ? T = "" : (T = O, m > 0 && m < T.length && (T = T.substring(0, m)));
11434
+ O.substring(0, 4) === "0001" || O.substring(0, 4) === "1900" || O.substring(0, 4) === "1901" ? T = "" : (T = O, h > 0 && h < T.length && (T = T.substring(0, h)));
11435
11435
  } else ["antMultiSelect", "erMultiSelect", "erCheckboxGroup"].includes(c) && T && T instanceof Array ? T = T.join(",") : T = T || "";
11436
11436
  o[p] = T;
11437
11437
  }
@@ -11472,7 +11472,7 @@ var g;
11472
11472
  t && Object.keys(t).length > 0 ? Object.keys(t).forEach((O) => {
11473
11473
  p[O] = t[O];
11474
11474
  }) : p.QUERY_TYPE = "", p.COMPANY_CODE = u.COMPANY_CODE, p.FORM_NAME = u.FORM_NAME, p.FUNCTION_ID = u.FUNCTION_ID, p.ITEM_CODE = r.toString(u.ITEM_CODE, !0, "toLower"), p.ORIGIN_CODE = u.ORIGIN_CODE, p.TABLE_NAME = u.TABLE_NAME, p.FIELD_NAME = r.toString(u.PARA_NAME, !0, "toLower"), p.OPERATOR = u.OPERATOR, p.PARA_GROUP = u.PARA_GROUP, p.SQL_CONTENT = u.SQL_CONTENT, p.OP_VALUE = null, p.DATA_TYPE = "String";
11475
- const m = r.toString(p.PARA_GROUP, !0), T = r.toString(p.OPERATOR, !0);
11475
+ const h = r.toString(p.PARA_GROUP, !0), T = r.toString(p.OPERATOR, !0);
11476
11476
  let v = this.getControlValue(s, u.ITEM_CODE) || "";
11477
11477
  if (T.length > 0)
11478
11478
  switch (c) {
@@ -11480,23 +11480,23 @@ var g;
11480
11480
  case "erRadioGroup":
11481
11481
  case "erSelect":
11482
11482
  case "erTreeSelect": {
11483
- p.OP_VALUE = v, p.ORIGIN_CODE === "4" && u.SVC_NAME.trim().length > 0 && p.OP_VALUE.trim().length > 0 && p.OPERATOR === "SQL" && (p.ORIGIN_CODE = "SIU", p.SQL_CONTENT = this.getFormCodeSetFilter(u.SVC_NAME, p.OP_VALUE)), (m === "2" || p.OP_VALUE.trim().length > 0) && i.push(p);
11483
+ p.OP_VALUE = v, p.ORIGIN_CODE === "4" && u.SVC_NAME.trim().length > 0 && p.OP_VALUE.trim().length > 0 && p.OPERATOR === "SQL" && (p.ORIGIN_CODE = "SIU", p.SQL_CONTENT = this.getFormCodeSetFilter(u.SVC_NAME, p.OP_VALUE)), (h === "2" || p.OP_VALUE.trim().length > 0) && i.push(p);
11484
11484
  break;
11485
11485
  }
11486
11486
  case "antInputNumber": {
11487
- p.DATA_TYPE = "Decimal", p.OP_VALUE = v, p.OP_VALUE === null && (p.OP_VALUE = 0), (m === "2" || r.toNumber(p.OP_VALUE) !== 0) && i.push(p);
11487
+ p.DATA_TYPE = "Decimal", p.OP_VALUE = v, p.OP_VALUE === null && (p.OP_VALUE = 0), (h === "2" || r.toNumber(p.OP_VALUE) !== 0) && i.push(p);
11488
11488
  break;
11489
11489
  }
11490
11490
  case "antCheckbox":
11491
11491
  case "antSwitch": {
11492
- p.OPERATOR = "=", p.OP_VALUE = v === !0 ? "1" : v === !1 ? "0" : "", (m === "2" || p.OP_VALUE.trim().length > 0) && i.push(p);
11492
+ p.OPERATOR = "=", p.OP_VALUE = v === !0 ? "1" : v === !1 ? "0" : "", (h === "2" || p.OP_VALUE.trim().length > 0) && i.push(p);
11493
11493
  break;
11494
11494
  }
11495
11495
  case "antMultiSelect":
11496
11496
  case "erMultiSelect":
11497
11497
  case "erCheckboxGroup":
11498
11498
  case "erMultiTreeSelect": {
11499
- p.OPERATOR = "IN", v && v instanceof Array && v.length > 0 ? v = "'" + v.join("','") + "'" : v = "", p.OP_VALUE = v, (m === "2" || v.length > 0) && i.push(p);
11499
+ p.OPERATOR = "IN", v && v instanceof Array && v.length > 0 ? v = "'" + v.join("','") + "'" : v = "", p.OP_VALUE = v, (h === "2" || v.length > 0) && i.push(p);
11500
11500
  break;
11501
11501
  }
11502
11502
  case "antYearPicker":
@@ -11505,12 +11505,12 @@ var g;
11505
11505
  case "antDateTimePicker": {
11506
11506
  if (v) {
11507
11507
  const O = r.toString(u.DATE_TIME_FORMAT, !0) || "yyyyMMddHHmmss";
11508
- p.OP_VALUE = r.getDateTimeFormatString(v, O), p.OP_VALUE.length >= 4 && (p.OP_VALUE.substring(0, 4) === "0001" || p.OP_VALUE.substring(0, 4) === "1900") && (p.OP_VALUE = ""), (m === "2" || p.OP_VALUE.trim().length > 0) && i.push(p);
11508
+ p.OP_VALUE = r.getDateTimeFormatString(v, O), p.OP_VALUE.length >= 4 && (p.OP_VALUE.substring(0, 4) === "0001" || p.OP_VALUE.substring(0, 4) === "1900") && (p.OP_VALUE = ""), (h === "2" || p.OP_VALUE.trim().length > 0) && i.push(p);
11509
11509
  }
11510
11510
  break;
11511
11511
  }
11512
11512
  default: {
11513
- r.toString(v, !0).length > 0 && T === "IN" && (v = "'" + v.split(/\n|\t|,|,/).join("','") + "'"), p.OP_VALUE = v, (m === "2" || p.OP_VALUE.trim().length > 0) && i.push(p);
11513
+ r.toString(v, !0).length > 0 && T === "IN" && (v = "'" + v.split(/\n|\t|,|,/).join("','") + "'"), p.OP_VALUE = v, (h === "2" || p.OP_VALUE.trim().length > 0) && i.push(p);
11514
11514
  break;
11515
11515
  }
11516
11516
  }
@@ -11585,14 +11585,14 @@ var g;
11585
11585
  */
11586
11586
  async queryDataByButton(e, t, o, i) {
11587
11587
  return new Promise((a, s) => {
11588
- let d = new St();
11588
+ let d = new It();
11589
11589
  const u = this.getFormButtonConfigInfo(e);
11590
11590
  if (u && u.SVC_NAME.trim().length > 0) {
11591
- const c = new St(), p = u.SVC_NAME, m = {};
11592
- u.TYPE_DESC && u.TYPE_DESC.trim().length > 0 && (m[u.TYPE_DESC] = u.TYPE), i && Object.keys(i).length > 0 && Object.keys(i).forEach((F) => {
11593
- m[F] = i[F];
11591
+ const c = new It(), p = u.SVC_NAME, h = {};
11592
+ u.TYPE_DESC && u.TYPE_DESC.trim().length > 0 && (h[u.TYPE_DESC] = u.TYPE), i && Object.keys(i).length > 0 && Object.keys(i).forEach((F) => {
11593
+ h[F] = i[F];
11594
11594
  });
11595
- const T = this.getAllControlValueAsEiBlock(t, m), v = this.getAllControlValueAsFilter(t, m);
11595
+ const T = this.getAllControlValueAsEiBlock(t, h), v = this.getAllControlValueAsFilter(t, h);
11596
11596
  let O = u.FILTER_STRING;
11597
11597
  o && o.trim().length > 0 && (O.trim().length > 0 ? O = O + " and " + o : O = o), O.trim().length > 0 && this.getQuerySqlFormat(O), c.addBlock(T), c.addBlock(v), this.callService(p, c, { show: !0 }).then((F) => {
11598
11598
  d = F, a(d);
@@ -11609,9 +11609,9 @@ var g;
11609
11609
  */
11610
11610
  async queryDataByService(e, t) {
11611
11611
  return new Promise((o, i) => {
11612
- let a = new St();
11612
+ let a = new It();
11613
11613
  if (e.trim().length > 0) {
11614
- const s = new St();
11614
+ const s = new It();
11615
11615
  if (t && t.filterConfigId && t.filterConfigId.trim().length > 0) {
11616
11616
  let d = this.getAllControlValueAsEiBlock(
11617
11617
  t.filterConfigId,
@@ -11647,7 +11647,7 @@ var g;
11647
11647
  }
11648
11648
  }
11649
11649
  this.callService(e, s).then((d) => {
11650
- var u, c, p, m;
11650
+ var u, c, p, h;
11651
11651
  if (a = d, l.Core.toNumber((u = a.SysInfo) == null ? void 0 : u.Flag) >= 0 && t && t.dataTable) {
11652
11652
  if (t.dataTable instanceof J)
11653
11653
  this.mergeDataToDataTable(a, t.dataTable, t.clearTable);
@@ -11656,7 +11656,7 @@ var g;
11656
11656
  this.mergeDataToDataTable(a, (p = this._formDataSet) == null ? void 0 : p.getDataTable(t.dataTable.trim()), t.clearTable);
11657
11657
  else {
11658
11658
  const T = this.getBindingTableName(t.dataTable.trim());
11659
- T.trim().length > 0 && this.mergeDataToDataTable(a, (m = this._formDataSet) == null ? void 0 : m.getDataTable(T.trim()), t.clearTable);
11659
+ T.trim().length > 0 && this.mergeDataToDataTable(a, (h = this._formDataSet) == null ? void 0 : h.getDataTable(T.trim()), t.clearTable);
11660
11660
  }
11661
11661
  }
11662
11662
  o(a);
@@ -11673,13 +11673,13 @@ var g;
11673
11673
  */
11674
11674
  async queryDataByDataSource(e, t, o = "") {
11675
11675
  return new Promise(async (i, a) => {
11676
- var c, p, m, T;
11677
- let s = new St(), d = !1, u = "";
11676
+ var c, p, h, T;
11677
+ let s = new It(), d = !1, u = "";
11678
11678
  if (e.trim().length > 0) {
11679
11679
  let v = "";
11680
11680
  const O = this.getGridConfig(e);
11681
11681
  ((c = O == null ? void 0 : O.SVC_NAME) == null ? void 0 : c.trim().length) > 0 && (u = e, e = O.SVC_NAME.trim(), v = O.FILTER_STRING.trim(), d = !0);
11682
- const F = new St();
11682
+ const F = new It();
11683
11683
  if (t && t.filterConfigId && t.filterConfigId.trim().length > 0) {
11684
11684
  let H = this.getAllControlValueAsEiBlock(
11685
11685
  t.filterConfigId,
@@ -11714,7 +11714,7 @@ var g;
11714
11714
  F.addBlock(k);
11715
11715
  }
11716
11716
  }
11717
- const S = (T = (m = (p = this._configInfo) == null ? void 0 : p.TSI00DATASOURCE) == null ? void 0 : m.getMappedRows()) == null ? void 0 : T.find((H) => H.FUNC_ID === e), A = (H) => {
11717
+ const S = (T = (h = (p = this._configInfo) == null ? void 0 : p.TSI00DATASOURCE) == null ? void 0 : h.getMappedRows()) == null ? void 0 : T.find((H) => H.FUNC_ID === e), A = (H) => {
11718
11718
  this.callService(H, F, { show: t == null ? void 0 : t.showLoading }, { messageError: !0 }).then((k) => {
11719
11719
  var Z, w, ie;
11720
11720
  s = k, l.Core.toNumber((Z = s.SysInfo) == null ? void 0 : Z.Flag) >= 0 && (t && t.dataTable ? t.dataTable instanceof J ? this.mergeDataToDataTable(s, t.dataTable, t.clearTable) : typeof t.dataTable == "string" && t.dataTable.trim().length > 0 && ((w = this._formDataSet) != null && w.contains(t.dataTable.trim())) && this.mergeDataToDataTable(s, (ie = this._formDataSet) == null ? void 0 : ie.getDataTable(t.dataTable.trim()), t.clearTable) : d === !0 && this.mergeDataToGrid(s, u, t == null ? void 0 : t.clearTable)), i(s);
@@ -11745,6 +11745,79 @@ var g;
11745
11745
  s.SysInfo.Flag = -603, s.SysInfo.Msg = "DataSoureId is null or empty!", i(s);
11746
11746
  });
11747
11747
  }
11748
+ /**
11749
+ * 查询数据并合并到Grid
11750
+ * @param serviceName 服务名称
11751
+ * @param filterConfId 过滤配置ID
11752
+ * @param gridConfId Grid配置ID
11753
+ * @param options 选项
11754
+ */
11755
+ async queryDataToGrid(e, t, o, i) {
11756
+ const a = this.getAllControlValueAsEiBlock(t, void 0, i == null ? void 0 : i.filterBlockId), s = this.getGridStructureAsBlock(o, !1, i == null ? void 0 : i.gridBlockId);
11757
+ let d = new It();
11758
+ d.addBlock(a), d.addBlock(s), i != null && i.processInInfo && i.processInInfo instanceof Function && (d = i.processInInfo(d));
11759
+ const u = (i == null ? void 0 : i.loadingOptions) || { show: !0 }, c = (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }, p = await this.callService(e, d, u, c);
11760
+ i != null && i.mergeToGrid && i.mergeToGrid instanceof Function ? i.mergeToGrid(p) : this.mergeDataToGrid(p.getBlock((i == null ? void 0 : i.gridBlockId) || "result"), o);
11761
+ }
11762
+ /**
11763
+ * 保存Grid数据
11764
+ * @param saveSerivce 保存服务
11765
+ * @param filterConfId 过滤配置ID
11766
+ * @param gridConfId Grid配置ID
11767
+ * @param options 选项
11768
+ */
11769
+ saveGridData(e, t, o, i) {
11770
+ const a = [];
11771
+ return new Promise(async (s, d) => {
11772
+ if ((o == null ? void 0 : o.trim().length) > 0)
11773
+ if (this.hasDataChange(o)) {
11774
+ if (i = i || {}, i.messageConfirm = i.messageConfirm ?? "是否确认保存", i.messageConfirm) {
11775
+ const p = typeof i.messageConfirm == "string" ? i.messageConfirm : "是否确认保存";
11776
+ if (!await this.messageConfirm(p)) {
11777
+ s({ results: [], success: !0, message: "保存取消" });
11778
+ return;
11779
+ }
11780
+ }
11781
+ if (typeof e == "string") {
11782
+ const p = this.getGridChangedRowsAsEiInfo(o);
11783
+ p.addBlock(this.getAllControlValueAsEiBlock(t, void 0, i == null ? void 0 : i.filterBlockId)), a.push(this.callService(e, p, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11784
+ } else if ($o.isPlainObject(e)) {
11785
+ const p = this.getAllControlValueAsEiBlock(t, void 0, i == null ? void 0 : i.filterBlockId);
11786
+ if (e.deleteService && e.deleteService.trim().length > 0) {
11787
+ const h = this.getGridDeletedRowsAsBlock(o);
11788
+ if (h.getMappedRows().length > 0) {
11789
+ h.rename("result");
11790
+ const T = new It();
11791
+ T.addBlock(p), T.addBlock(h), a.push(this.callService(e.deleteService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11792
+ }
11793
+ }
11794
+ if (e.updateService && e.updateService.trim().length > 0) {
11795
+ const h = this.getGridModifyRowsAsBlock(o);
11796
+ if (h.getMappedRows().length > 0) {
11797
+ h.rename("result");
11798
+ const T = new It();
11799
+ T.addBlock(p), T.addBlock(h), a.push(this.callService(e.updateService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11800
+ }
11801
+ }
11802
+ if (e.insertService && e.insertService.trim().length > 0) {
11803
+ const h = this.getGridCreatedRowsAsBlock(o);
11804
+ if (h.getMappedRows().length > 0) {
11805
+ h.rename("result");
11806
+ const T = new It();
11807
+ T.addBlock(p), T.addBlock(h), a.push(this.callService(e.insertService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11808
+ }
11809
+ }
11810
+ }
11811
+ const u = await Promise.allSettled(a), c = u.every((p) => p.status === "fulfilled");
11812
+ c && (i != null && i.queryService) && this.queryDataToGrid(i.queryService, t, o, i), s({ results: u, success: c, message: c ? "保存成功" : "保存失败" });
11813
+ } else {
11814
+ s({ results: [], success: !0, message: "没有数据变更,无需保存" }), this.messageInfo("没有数据变更,无需保存");
11815
+ return;
11816
+ }
11817
+ else
11818
+ d(new Error("gridConfId is null or empty!"));
11819
+ });
11820
+ }
11748
11821
  /**
11749
11822
  * 获取画面配置代码对应的SQL条件脚本
11750
11823
  * @param codeClass 代码定义
@@ -11791,7 +11864,7 @@ var g;
11791
11864
  if (this._sysParaInfo && this._sysParaInfo[e] !== void 0 && this._sysParaInfo[e][t] !== void 0)
11792
11865
  i(this._sysParaInfo[e][t].toString());
11793
11866
  else if (t && t.trim().length > 0) {
11794
- const s = new St();
11867
+ const s = new It();
11795
11868
  let d = "";
11796
11869
  const u = r.buildEiBlock([
11797
11870
  {
@@ -11900,7 +11973,7 @@ var g;
11900
11973
  * @returns Options
11901
11974
  */
11902
11975
  async loadGrid(e, t, o, i, a) {
11903
- var s, d, u, c, p, m, T, v, O;
11976
+ var s, d, u, c, p, h, T, v, O;
11904
11977
  if (!this.containsConfig(e) && (o == null ? void 0 : o.forceLoadConfig) !== !1 && await this.loadConfig(e), this.containsConfig(e)) {
11905
11978
  if (this._gridInstanceInfo[e])
11906
11979
  return console.error(`Grid instance ${e} already exists!`), !1;
@@ -11926,7 +11999,7 @@ var g;
11926
11999
  const Z = this.getGridConfigOptions(e, o, i, a);
11927
12000
  if (Z.context = { ...t.gridOptions.context, ...Z.context }, Z && Object.keys(Z).forEach((w) => {
11928
12001
  t.gridOptions[w] = Z[w] !== void 0 ? Z[w] : t.gridOptions[w];
11929
- }), t.gridOptions.defaultColDef = t.gridOptions.defaultColDef || {}, t.gridOptions.rowSelection = S.TSI00GRIDVIEW[0].MULTI_SELECT_MODE.toString() !== "1" ? "multiple" : "single", t.gridOptions.api.selectionService.rowSelection = S.TSI00GRIDVIEW[0].MULTI_SELECT_MODE.toString() !== "1" ? "multiple" : "single", t.gridOptions.api.selectionService.groupSelectsChildren = !0, t.gridOptions.api.setColumnDefs(Z.columnDefs), t.gridOptions.api.setRowData([]), A.ALLOW_CELLMERGE === "1" && ((m = t.gridOptions.context.mergeColumns) == null ? void 0 : m.length) > 0) {
12002
+ }), t.gridOptions.defaultColDef = t.gridOptions.defaultColDef || {}, t.gridOptions.rowSelection = S.TSI00GRIDVIEW[0].MULTI_SELECT_MODE.toString() !== "1" ? "multiple" : "single", t.gridOptions.api.selectionService.rowSelection = S.TSI00GRIDVIEW[0].MULTI_SELECT_MODE.toString() !== "1" ? "multiple" : "single", t.gridOptions.api.selectionService.groupSelectsChildren = !0, t.gridOptions.api.setColumnDefs(Z.columnDefs), t.gridOptions.api.setRowData([]), A.ALLOW_CELLMERGE === "1" && ((h = t.gridOptions.context.mergeColumns) == null ? void 0 : h.length) > 0) {
11930
12003
  let w = [];
11931
12004
  t.gridOptions.context.calculateRowSpan = (ie = !0) => {
11932
12005
  var he, j, Q, R, D, _e;
@@ -12017,8 +12090,8 @@ var g;
12017
12090
  checkbox: c === "multiple" && d.SHOW_SELECTION.toString() === "1",
12018
12091
  suppressCount: t.aggDataInGroupRow === !0,
12019
12092
  innerRenderer: (p) => {
12020
- var m, T, v, O, F, S, A, H, k;
12021
- if ((T = (m = p.node) == null ? void 0 : m.rowGroupColumn) != null && T.colDef) {
12093
+ var h, T, v, O, F, S, A, H, k;
12094
+ if ((T = (h = p.node) == null ? void 0 : h.rowGroupColumn) != null && T.colDef) {
12022
12095
  const Z = (O = (v = p.node) == null ? void 0 : v.rowGroupColumn) == null ? void 0 : O.colDef;
12023
12096
  let w = p.node.key;
12024
12097
  if (Z.cellDataType === "number" ? w = r.formatNumberValue(p.value, (S = (F = Z.context) == null ? void 0 : F.columnConfig) == null ? void 0 : S.FORMAT_STRING) : ((A = Z.cellEditor) == null ? void 0 : A.name) === "DatetimeEditor" ? w = r.getDateTimeFormatString(p.value, (k = (H = Z.context) == null ? void 0 : H.columnConfig) == null ? void 0 : k.FORMAT_STRING) : Z.refData && (w = Z.refData[p.value] || p.value), t.aggDataInGroupRow === !0) {
@@ -12028,7 +12101,7 @@ var g;
12028
12101
  return p.node.aggData && Object.keys(p.node.aggData).length > 0 && Object.keys(p.node.aggData).forEach((Ce) => {
12029
12102
  var D, _e, ce, qe;
12030
12103
  const he = (D = p.columnApi.getColumn(Ce)) == null ? void 0 : D.colDef, j = ((_e = he.headerName) == null ? void 0 : _e.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", "")) || Ce, Q = (qe = (ce = he.context) == null ? void 0 : ce.columnConfig) == null ? void 0 : qe.FORMAT_STRING, R = p.node.aggData[Ce];
12031
- b += `<span class="er-grid-group-row-col">${j}:</span>`, jo.isPlainObject(R) ? b += `<span class="er-grid-group-row-agg">${r.formatNumberValue(R.aggValueOfChecked, Q) + "/" + r.formatNumberValue(R.aggValue, Q)}</span>` : b += `<span class="er-grid-group-row-agg">${r.formatNumberValue(R, Q)}</span>`;
12104
+ b += `<span class="er-grid-group-row-col">${j}:</span>`, $o.isPlainObject(R) ? b += `<span class="er-grid-group-row-agg">${r.formatNumberValue(R.aggValueOfChecked, Q) + "/" + r.formatNumberValue(R.aggValue, Q)}</span>` : b += `<span class="er-grid-group-row-agg">${r.formatNumberValue(R, Q)}</span>`;
12032
12105
  }), b += "</div>", b;
12033
12106
  } else
12034
12107
  return w;
@@ -12069,7 +12142,7 @@ var g;
12069
12142
  if ((i = (o = e == null ? void 0 : e.gridOptions) == null ? void 0 : o.context) != null && i.configId) {
12070
12143
  const a = e.gridOptions.context.configId, s = this.getConfigInfo(a);
12071
12144
  e.gridOptions.api.addEventListener("firstDataRendered", (d) => {
12072
- var m, T, v, O, F;
12145
+ var h, T, v, O, F;
12073
12146
  s.TSI00GRIDVIEW[0].AUTO_EXPAND_GROUP === "1" && d.api.expandAll();
12074
12147
  const u = e.gridOptions.api.getFilterModel(), c = e.gridOptions.columnApi.getColumnState().filter((S) => S.sort !== null);
12075
12148
  if (Object.keys(u).length > 0 || c.length > 0)
@@ -12082,7 +12155,7 @@ var g;
12082
12155
  const S = e.gridOptions.context.bindingSource.data()[0];
12083
12156
  e.gridOptions.context.bindingSource.setCurrent(S);
12084
12157
  }
12085
- if ((T = (m = e == null ? void 0 : e.gridOptions) == null ? void 0 : m.context) != null && T.showPreview && ((O = (v = e == null ? void 0 : e.gridOptions) == null ? void 0 : v.context) != null && O.previewField) && !t.detailConfigId) {
12158
+ if ((T = (h = e == null ? void 0 : e.gridOptions) == null ? void 0 : h.context) != null && T.showPreview && ((O = (v = e == null ? void 0 : e.gridOptions) == null ? void 0 : v.context) != null && O.previewField) && !t.detailConfigId) {
12086
12159
  const S = e.gridOptions.context.previewField.split(","), A = {};
12087
12160
  S.forEach((k) => {
12088
12161
  var Z;
@@ -12107,12 +12180,12 @@ var g;
12107
12180
  const p = (F = d.api) == null ? void 0 : F.getStatusPanel("InformationPanel");
12108
12181
  p && p.setInformation();
12109
12182
  }), e.gridOptions.api.addEventListener("selectionChanged", (d) => {
12110
- var u, c, p, m;
12183
+ var u, c, p, h;
12111
12184
  if (e.gridOptions.context.aggForChecked && ((u = d.api) == null || u.refreshCells({ force: !0 }), this.refreshGridFooterData(e), ((c = e.gridOptions.context.options) == null ? void 0 : c.aggDataInGroupRow) === !0 && d.columnApi.getRowGroupColumns().length > 0)) {
12112
12185
  const v = [];
12113
12186
  (p = d.api) == null || p.forEachNode((O) => {
12114
12187
  O.group && v.push(O);
12115
- }), (m = d.api) == null || m.redrawRows({ rowNodes: v });
12188
+ }), (h = d.api) == null || h.redrawRows({ rowNodes: v });
12116
12189
  }
12117
12190
  }), e.gridOptions.api.addEventListener("rowSelected", (d) => {
12118
12191
  d.source === "checkboxSelected" && this.processRowSelectedEvent(d);
@@ -12121,15 +12194,15 @@ var g;
12121
12194
  }), e.gridOptions.api.addEventListener("cellEditingStopped", (d) => {
12122
12195
  e.gridOptions.suppressContextMenu = !1;
12123
12196
  }), e.gridOptions.api.addEventListener("sortChanged", (d) => {
12124
- var p, m;
12197
+ var p, h;
12125
12198
  let u;
12126
12199
  e.gridOptions.context.calculateRowSpan && e.gridOptions.context.calculateRowSpan instanceof Function && (u = e.gridOptions.context.calculateRowSpan(!1)), (t == null ? void 0 : t.showRowNo) !== !1 && ((p = d.api) == null || p.redrawRows()), u ? e.gridOptions.context.bindingSource.setCurrent(u) : r.setGridFocusedCell(e, 0);
12127
- const c = (m = d.api) == null ? void 0 : m.getStatusPanel("InformationPanel");
12200
+ const c = (h = d.api) == null ? void 0 : h.getStatusPanel("InformationPanel");
12128
12201
  c && c.setInformation();
12129
12202
  }), e.gridOptions.api.addEventListener("filterChanged", (d) => {
12130
- var p, m, T, v, O;
12203
+ var p, h, T, v, O;
12131
12204
  let u;
12132
- if (e.gridOptions.context.calculateRowSpan && e.gridOptions.context.calculateRowSpan instanceof Function && (u = e.gridOptions.context.calculateRowSpan(!1)), (t == null ? void 0 : t.showRowNo) !== !1 && ((p = d.api) == null || p.redrawRows()), u ? e.gridOptions.context.bindingSource.setCurrent(u) : r.setGridFocusedCell(e, 0), ((m = d == null ? void 0 : d.context) == null ? void 0 : m.viewConfig.SHOW_FOOTER) === "1") {
12205
+ if (e.gridOptions.context.calculateRowSpan && e.gridOptions.context.calculateRowSpan instanceof Function && (u = e.gridOptions.context.calculateRowSpan(!1)), (t == null ? void 0 : t.showRowNo) !== !1 && ((p = d.api) == null || p.redrawRows()), u ? e.gridOptions.context.bindingSource.setCurrent(u) : r.setGridFocusedCell(e, 0), ((h = d == null ? void 0 : d.context) == null ? void 0 : h.viewConfig.SHOW_FOOTER) === "1") {
12133
12206
  const F = d.api.getModel();
12134
12207
  (v = d.api) == null || v.setPinnedBottomRowData([{ ...(T = F == null ? void 0 : F.rootNode) == null ? void 0 : T.aggData, pinndeRowType: "ErGridSummaryFooter" }]);
12135
12208
  }
@@ -12148,7 +12221,7 @@ var g;
12148
12221
  var u;
12149
12222
  (t == null ? void 0 : t.showRowNo) !== !1 && ((u = d.api) == null || u.refreshCells({ columns: [f.GridCheckColumnFieldName] }));
12150
12223
  }), e.gridOptions.api.addEventListener("cellValueChanged", (d) => {
12151
- var u, c, p, m, T, v;
12224
+ var u, c, p, h, T, v;
12152
12225
  if (d.data && d.colDef && d.colDef.field) {
12153
12226
  d.data.dirty = !0, d.data.dirtyFields[d.colDef.field] = !0, this.setDropDownAutoFillFieldsForGrid(e, d.colDef.colId, d.node), this.DropDownCascader[a + d.colDef.colId] && this.DropDownCascader[a + d.colDef.colId].forEach((F) => {
12154
12227
  F.FUNCTION_TYPE && F.FUNCTION_ID && F.ITEM_CODE && (F.FUNCTION_TYPE === "F" ? this.setControlEmptyValue(F.FUNCTION_ID, F.ITEM_CODE) : F.FUNCTION_ID === a && (d.data[F.ITEM_CODE] = null));
@@ -12160,7 +12233,7 @@ var g;
12160
12233
  }
12161
12234
  if (O === "2" || O === "3")
12162
12235
  this.checkGridRow(a, d.data.uid);
12163
- else if (((p = (c = (u = d.colDef) == null ? void 0 : u.context) == null ? void 0 : c.columnConfig) == null ? void 0 : p.MULTI_ROW_EDIT) === "1" && ((m = d.node) != null && m.selected)) {
12236
+ else if (((p = (c = (u = d.colDef) == null ? void 0 : u.context) == null ? void 0 : c.columnConfig) == null ? void 0 : p.MULTI_ROW_EDIT) === "1" && ((h = d.node) != null && h.selected)) {
12164
12237
  const F = this.getGridOptions(a, "multiRowEdit");
12165
12238
  if (F !== !1 && F !== "0") {
12166
12239
  let S = !1;
@@ -12208,7 +12281,7 @@ var g;
12208
12281
  }
12209
12282
  }
12210
12283
  getGridContextMenuItems(e, t) {
12211
- var i, a, s, d, u, c, p, m, T, v, O, F, S, A, H, k, Z;
12284
+ var i, a, s, d, u, c, p, h, T, v, O, F, S, A, H, k, Z;
12212
12285
  const o = [];
12213
12286
  if (e.api.getDisplayedRowCount() > 0) {
12214
12287
  o.push("copy", "copyWithHeaders");
@@ -12272,7 +12345,7 @@ var g;
12272
12345
  }), (ct = (dt = e.context) == null ? void 0 : dt.options) != null && ct.detailItemButtonClick && ((_ = (ot = e.context) == null ? void 0 : ot.options) == null ? void 0 : _.detailItemButtonClick) instanceof Function && b.setEvent("itemButtonClick", (st = (ye = e.context) == null ? void 0 : ye.options) == null ? void 0 : st.detailItemButtonClick), b.ReceiveData(e.node.data), b.EditType = (gt = e.context) != null && gt.editable ? "Modify" : "Query", b.show(null);
12273
12346
  },
12274
12347
  icon: l.Core.createErSvgElement("show-detail")
12275
- })), ((a = (i = e.node) == null ? void 0 : i.childrenAfterFilter) == null ? void 0 : a.length) > 0 && e.node.group === !0 && e.node.footer !== !0 && o.push("separator", "expandAll", "contractAll"), t != null && t.allowImageUpload && ((u = (d = (s = e.column) == null ? void 0 : s.colDef) == null ? void 0 : d.cellRenderer) == null ? void 0 : u.name) === "ImagePreview" && ((p = (c = e.node) == null ? void 0 : c.data) != null && p.uid) && !((T = (m = e.node) == null ? void 0 : m.data) != null && T.isNew) && ((O = (v = e.column) == null ? void 0 : v.colDef.context.columnConfig.EXT_OPTIONS) == null ? void 0 : O.trim().length) > 0) {
12348
+ })), ((a = (i = e.node) == null ? void 0 : i.childrenAfterFilter) == null ? void 0 : a.length) > 0 && e.node.group === !0 && e.node.footer !== !0 && o.push("separator", "expandAll", "contractAll"), t != null && t.allowImageUpload && ((u = (d = (s = e.column) == null ? void 0 : s.colDef) == null ? void 0 : d.cellRenderer) == null ? void 0 : u.name) === "ImagePreview" && ((p = (c = e.node) == null ? void 0 : c.data) != null && p.uid) && !((T = (h = e.node) == null ? void 0 : h.data) != null && T.isNew) && ((O = (v = e.column) == null ? void 0 : v.colDef.context.columnConfig.EXT_OPTIONS) == null ? void 0 : O.trim().length) > 0) {
12276
12349
  const b = JSON.parse((F = e.column) == null ? void 0 : F.colDef.context.columnConfig.EXT_OPTIONS);
12277
12350
  if (((S = b == null ? void 0 : b.imageUploadDir) == null ? void 0 : S.trim().length) > 0 && ((A = b.imageUploadKeyField) == null ? void 0 : A.trim().length) > 0) {
12278
12351
  const Ce = e.node.data[b.imageUploadKeyField];
@@ -12347,12 +12420,12 @@ var g;
12347
12420
  ROW_GUID: i,
12348
12421
  COMPANY_CODE: s || this.DefaultConfigCompanyCode,
12349
12422
  ITEM_CODE: c
12350
- }, m = async () => {
12423
+ }, h = async () => {
12351
12424
  const A = l.Core.buildEiInfo([p]);
12352
12425
  return await l.Core.callService(l.SysInfo.queryDevConfigService, A);
12353
12426
  };
12354
12427
  let T = "";
12355
- const v = await m();
12428
+ const v = await h();
12356
12429
  v.getStatus() >= 0 && (T = l.Core.toString((S = (F = (O = v.getBlockByIndex(0)) == null ? void 0 : O.getMappedRows()) == null ? void 0 : F[0]) == null ? void 0 : S.EXT_OPTIONS, !0)), u.CancelButtonCaption = l.Core.$t("ERX.Close") || "关闭", u.CloseDialogWhenOkClick = d, u.setEvent("ok", async () => {
12357
12430
  const A = u.Content, H = l.Core.buildEiInfo([{ ...p, EXT_OPTIONS: A }], p.QUERY_TYPE.toUpperCase()), k = await l.Core.callService(l.SysInfo.saveDevConfigService, H);
12358
12431
  return k.getStatus() < 0 ? l.Core.messageError(k.getMsg()) : l.Core.messageSuccess(l.Core.$t("ERX.OperateSuccess") || "操作成功!"), k.getStatus() >= 0;
@@ -12370,13 +12443,13 @@ var g;
12370
12443
  * @returns
12371
12444
  */
12372
12445
  async showViewOptionsEdit(e, t, o, i = !1, a) {
12373
- var p, m, T, v;
12446
+ var p, h, T, v;
12374
12447
  let s = {};
12375
12448
  const d = l.Core.buildEiInfo({ QUERY_TYPE: "tsi00gridview", FORM_NAME: e, FUNCTION_ID: t }), u = await this.callService(l.SysInfo.queryDevConfigService, d);
12376
12449
  if (u.getStatus() < 0) {
12377
12450
  l.Core.messageError(u.getMsg());
12378
12451
  return;
12379
- } else if (((m = (p = u.getBlockByIndex(0)) == null ? void 0 : p.getMappedRows()) == null ? void 0 : m.length) === 0) {
12452
+ } else if (((h = (p = u.getBlockByIndex(0)) == null ? void 0 : p.getMappedRows()) == null ? void 0 : h.length) === 0) {
12380
12453
  l.Core.messageError("Data not found!");
12381
12454
  return;
12382
12455
  } else
@@ -12412,13 +12485,13 @@ var g;
12412
12485
  * @param options 自定义options
12413
12486
  */
12414
12487
  async showFormOptionsEdit(e, t, o = !1, i) {
12415
- var p, m, T, v, O, F;
12488
+ var p, h, T, v, O, F;
12416
12489
  let a = {}, s = [], d = l.Core.buildEiInfo([{ QUERY_TYPE: "TSI00MODULE", MODULE_TYPE: "15" }]), u = await this.callService(l.SysInfo.queryDevConfigService, d);
12417
12490
  if (u.getStatus() < 0) {
12418
12491
  l.Core.messageError(u.getMsg());
12419
12492
  return;
12420
12493
  } else
12421
- s = (m = (p = u.getBlockByIndex(0)) == null ? void 0 : p.getMappedRows()) == null ? void 0 : m.map((S) => ({
12494
+ s = (h = (p = u.getBlockByIndex(0)) == null ? void 0 : p.getMappedRows()) == null ? void 0 : h.map((S) => ({
12422
12495
  CODE: S.MODULE_ENAME,
12423
12496
  CODE_DESC_1_CONTENT: S.MODULE_CNAME
12424
12497
  }));
@@ -12475,7 +12548,7 @@ var g;
12475
12548
  }));
12476
12549
  }));
12477
12550
  });
12478
- const m = this.getModelFields(c), T = [], v = {};
12551
+ const h = this.getModelFields(c), T = [], v = {};
12479
12552
  let O, F;
12480
12553
  (((H = i == null ? void 0 : i.viewType) == null ? void 0 : H.toLowerCase()) === "band" || ((k = i == null ? void 0 : i.viewType) == null ? void 0 : k.toLowerCase()) === "bandview" && t.TSI00GRIDBAND && t.TSI00GRIDBAND.length > 0) && this.createGridBandColumn(t.TSI00GRIDBAND, T, v, void 0, i), T.length > 0 && (a = T);
12481
12554
  let S = {};
@@ -12484,8 +12557,8 @@ var g;
12484
12557
  if (D.FUNCTION_TYPE = s.FUNCTION_TYPE, this._gridColumnsConfigInfo[e][D.ITEM_CODE] = D, T.length > 0 && (D.BAND_NAME.toString().trim().length === 0 || v[D.BAND_NAME.toString().trim()] === void 0))
12485
12558
  continue;
12486
12559
  let _e;
12487
- if (m && m[D.FIELD_NAME] && m[D.FIELD_NAME].type)
12488
- _e = m[D.FIELD_NAME].type, D.ITEM_MUST_FLAG === "1" && (m[D.FIELD_NAME].validation = {
12560
+ if (h && h[D.FIELD_NAME] && h[D.FIELD_NAME].type)
12561
+ _e = h[D.FIELD_NAME].type, D.ITEM_MUST_FLAG === "1" && (h[D.FIELD_NAME].validation = {
12489
12562
  required: !0
12490
12563
  });
12491
12564
  else if (D.UNBOUND_TYPE !== "0")
@@ -12646,10 +12719,10 @@ var g;
12646
12719
  }
12647
12720
  }
12648
12721
  return (wt = We.node) != null && wt.group && (fe.fontWeight = "bold"), (Nt = We.node) != null && Nt.rowPinned && (fe.fontWeight = "bold", delete fe.color, delete fe.background), fe;
12649
- }), m && m[D.FIELD_NAME]) {
12722
+ }), h && h[D.FIELD_NAME]) {
12650
12723
  const We = (fe) => {
12651
12724
  let rt = "";
12652
- return fe == null || (typeof fe == "string" ? rt = r.toString(fe) : typeof fe == "number" ? rt = r.formatNumberValue(fe, "") : jo.isPlainObject(fe) && (rt = `☑️ ${r.formatNumberValue(fe.aggValueOfChecked, "")}
12725
+ return fe == null || (typeof fe == "string" ? rt = r.toString(fe) : typeof fe == "number" ? rt = r.formatNumberValue(fe, "") : $o.isPlainObject(fe) && (rt = `☑️ ${r.formatNumberValue(fe.aggValueOfChecked, "")}
12653
12726
  ∑ ${r.formatNumberValue(fe.aggValue, "")}`)), rt;
12654
12727
  };
12655
12728
  if (S.valueFormatter = (fe) => {
@@ -12962,7 +13035,7 @@ var g;
12962
13035
  * @returns colDef
12963
13036
  */
12964
13037
  setGridColumnAggFunc(e, t, o, i, a) {
12965
- var s, d, u, c, p, m, T, v, O, F, S, A;
13038
+ var s, d, u, c, p, h, T, v, O, F, S, A;
12966
13039
  if (o instanceof Function)
12967
13040
  t.aggFunc = o;
12968
13041
  else if ((o == null ? void 0 : o.trim().length) > 0) {
@@ -13092,7 +13165,7 @@ var g;
13092
13165
  if (((u = a.WEIGHT_COLUMN) == null ? void 0 : u.trim().length) > 0) {
13093
13166
  let k = "", Z = "";
13094
13167
  const w = (c = a.WEIGHT_COLUMN) == null ? void 0 : c.trim().split("/");
13095
- w.length > 1 ? (k = w[0], Z = w[1]) : (k = a.FIELD_NAME, Z = w[0]), (v = (T = (m = (p = i.context) == null ? void 0 : p.bindingSource) == null ? void 0 : m.options) == null ? void 0 : T.schema) != null && v[k] && ((A = (S = (F = (O = i.context) == null ? void 0 : O.bindingSource) == null ? void 0 : F.options) == null ? void 0 : S.schema) != null && A[Z]) && (t.context.weightColumnField = Z, t.aggFunc = (ie) => {
13168
+ w.length > 1 ? (k = w[0], Z = w[1]) : (k = a.FIELD_NAME, Z = w[0]), (v = (T = (h = (p = i.context) == null ? void 0 : p.bindingSource) == null ? void 0 : h.options) == null ? void 0 : T.schema) != null && v[k] && ((A = (S = (F = (O = i.context) == null ? void 0 : O.bindingSource) == null ? void 0 : F.options) == null ? void 0 : S.schema) != null && A[Z]) && (t.context.weightColumnField = Z, t.aggFunc = (ie) => {
13096
13169
  try {
13097
13170
  let b = new Bt(0), Ce = new Bt(0);
13098
13171
  const he = [];
@@ -13160,8 +13233,8 @@ var g;
13160
13233
  * @returns this
13161
13234
  */
13162
13235
  setGridColumnDropdown(e, t, o, i = "CODE", a, s = "default") {
13163
- var p, m, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j;
13164
- t.cellEditorPopup = ((m = (p = t.context) == null ? void 0 : p.columnConfig) == null ? void 0 : m.READ_ONLY) !== "1", t.cellEditor = jl, t.cellEditorParams = {
13236
+ var p, h, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j;
13237
+ t.cellEditorPopup = ((h = (p = t.context) == null ? void 0 : p.columnConfig) == null ? void 0 : h.READ_ONLY) !== "1", t.cellEditor = jl, t.cellEditorParams = {
13165
13238
  readonly: ((v = (T = t.context) == null ? void 0 : T.columnConfig) == null ? void 0 : v.READ_ONLY) === "1",
13166
13239
  formHelper: this,
13167
13240
  configId: e,
@@ -13180,7 +13253,7 @@ var g;
13180
13253
  let R = "";
13181
13254
  if (Q.node.rowPinned || Q.node.group) {
13182
13255
  const st = Q.value, gt = (Q.node.rowPinned ? (qe = (ce = (_e = (D = Q.column) == null ? void 0 : D.colDef) == null ? void 0 : _e.context) == null ? void 0 : ce.columnConfig) == null ? void 0 : qe.SUMMARY_FORMAT_STRING : (ot = (ct = (dt = Q.column.colDef) == null ? void 0 : dt.context) == null ? void 0 : ct.columnConfig) == null ? void 0 : ot.GROUP_FORMAT_STRING) || "";
13183
- typeof st == "string" ? R = r.toString(st) : typeof st == "number" ? R = r.formatNumberValue(st, gt) : jo.isPlainObject(st) && (R = `${r.formatNumberValue(st.aggValueOfChecked, gt)}<br>${r.formatNumberValue(st.aggValue, gt)}`);
13256
+ typeof st == "string" ? R = r.toString(st) : typeof st == "number" ? R = r.formatNumberValue(st, gt) : $o.isPlainObject(st) && (R = `${r.formatNumberValue(st.aggValueOfChecked, gt)}<br>${r.formatNumberValue(st.aggValue, gt)}`);
13184
13257
  } else {
13185
13258
  let st = l.Core.toString(Q.value).trim();
13186
13259
  Q.data && Q.colDef && (st = l.Core.toString(Q.data[Q.colDef.field]).trim()), st.length > 0 && (((_ = t.context) == null ? void 0 : _.cellEditType) === "checkGridLookUpEdit" && i !== a ? st.split(",").forEach((ve) => {
@@ -13261,7 +13334,7 @@ var g;
13261
13334
  * @returns this
13262
13335
  */
13263
13336
  setGridColumnDateTimePicker(e, t, o = "yyyy-MM-dd HH:mm:ss") {
13264
- var a, s, d, u, c, p, m, T, v, O, F, S, A;
13337
+ var a, s, d, u, c, p, h, T, v, O, F, S, A;
13265
13338
  t.enablePivot = !0, t.context.cellEditType = "dateEditor", t.cellDataType = !1, t.cellEditor = Wl, t.cellEditorParams = {
13266
13339
  readonly: ((s = (a = t.context) == null ? void 0 : a.columnConfig) == null ? void 0 : s.READ_ONLY) === "1",
13267
13340
  formHelper: this,
@@ -13291,7 +13364,7 @@ var g;
13291
13364
  {
13292
13365
  filter: "agSetColumnFilter",
13293
13366
  filterParams: {
13294
- buttons: ((T = (m = t.context) == null ? void 0 : m.viewOptions) == null ? void 0 : T.showApplyFilterButton) !== !1 ? ["reset", "apply"] : void 0,
13367
+ buttons: ((T = (h = t.context) == null ? void 0 : h.viewOptions) == null ? void 0 : T.showApplyFilterButton) !== !1 ? ["reset", "apply"] : void 0,
13295
13368
  closeOnApply: (O = (v = t.context) == null ? void 0 : v.viewOptions) == null ? void 0 : O.closeOnApplyFilter
13296
13369
  }
13297
13370
  }
@@ -13305,7 +13378,7 @@ var g;
13305
13378
  return t.valueFormatter = (H) => {
13306
13379
  var ie, b, Ce, he, j, Q, R, D, _e, ce;
13307
13380
  let k, Z = i, w = "";
13308
- return (b = (ie = H.node) == null ? void 0 : ie.rowGroupColumn) != null && b.colDef && H.value ? k = H.value : H.node.rowPinned || H.node.group ? (k = H.value, Z = (H.node.rowPinned ? (Q = (j = (he = (Ce = H.column) == null ? void 0 : Ce.colDef) == null ? void 0 : he.context) == null ? void 0 : j.columnConfig) == null ? void 0 : Q.SUMMARY_FORMAT_STRING : (ce = (_e = (D = (R = H.column) == null ? void 0 : R.colDef) == null ? void 0 : D.context) == null ? void 0 : _e.columnConfig) == null ? void 0 : ce.GROUP_FORMAT_STRING) || Z) : H.value && (k = H.value), k !== void 0 && (typeof k == "string" || Qt.isDayjs(k) || k instanceof Date ? w = r.getDateTimeFormatString(k, Z) : typeof k == "number" ? w = r.formatNumberValue(k, Z) : jo.isPlainObject(k) && (w = `☑️ ${r.formatNumberValue(k.aggValueOfChecked, Z)}
13381
+ return (b = (ie = H.node) == null ? void 0 : ie.rowGroupColumn) != null && b.colDef && H.value ? k = H.value : H.node.rowPinned || H.node.group ? (k = H.value, Z = (H.node.rowPinned ? (Q = (j = (he = (Ce = H.column) == null ? void 0 : Ce.colDef) == null ? void 0 : he.context) == null ? void 0 : j.columnConfig) == null ? void 0 : Q.SUMMARY_FORMAT_STRING : (ce = (_e = (D = (R = H.column) == null ? void 0 : R.colDef) == null ? void 0 : D.context) == null ? void 0 : _e.columnConfig) == null ? void 0 : ce.GROUP_FORMAT_STRING) || Z) : H.value && (k = H.value), k !== void 0 && (typeof k == "string" || Qt.isDayjs(k) || k instanceof Date ? w = r.getDateTimeFormatString(k, Z) : typeof k == "number" ? w = r.formatNumberValue(k, Z) : $o.isPlainObject(k) && (w = `☑️ ${r.formatNumberValue(k.aggValueOfChecked, Z)}
13309
13382
  ∑ ${r.formatNumberValue(k.aggValue, Z)}`)), w;
13310
13383
  }, ((S = (F = t.context) == null ? void 0 : F.columnConfig) == null ? void 0 : S.CALL_FORM.trim().length) > 0 && (t.cellRenderer = (H) => {
13311
13384
  var k, Z, w;
@@ -13338,7 +13411,7 @@ var g;
13338
13411
  * @returns this
13339
13412
  */
13340
13413
  setGridColumnNumberEditor(e, t, o) {
13341
- var i, a, s, d, u, c, p, m, T, v, O, F, S;
13414
+ var i, a, s, d, u, c, p, h, T, v, O, F, S;
13342
13415
  return t.context.cellEditType = "numberEditor", t.enableValue = !0, t.cellEditor = sn, t.cellDataType = "number", t.cellEditorParams = {
13343
13416
  readonly: ((a = (i = t.context) == null ? void 0 : i.columnConfig) == null ? void 0 : a.READ_ONLY) === "1",
13344
13417
  formHelper: this,
@@ -13355,7 +13428,7 @@ var g;
13355
13428
  {
13356
13429
  filter: "agSetColumnFilter",
13357
13430
  filterParams: {
13358
- buttons: ((m = (p = t.context) == null ? void 0 : p.viewOptions) == null ? void 0 : m.showApplyFilterButton) !== !1 ? ["reset", "apply"] : void 0,
13431
+ buttons: ((h = (p = t.context) == null ? void 0 : p.viewOptions) == null ? void 0 : h.showApplyFilterButton) !== !1 ? ["reset", "apply"] : void 0,
13359
13432
  closeOnApply: (v = (T = t.context) == null ? void 0 : T.viewOptions) == null ? void 0 : v.closeOnApplyFilter
13360
13433
  }
13361
13434
  }
@@ -13363,7 +13436,7 @@ var g;
13363
13436
  }, t.context.columnConfig.AUTO_FILTER_CONDITION === "Contains" ? t.filterParams.defaultOption = "inRange" : t.context.columnConfig.AUTO_FILTER_CONDITION === "Like" || t.context.columnConfig.AUTO_FILTER_CONDITION === "StartsWith" ? t.filterParams.defaultOption = "greaterThan" : t.context.columnConfig.AUTO_FILTER_CONDITION === "EndsWith" ? t.filterParams.defaultOption = "lessThan" : t.filterParams.defaultOption = "equals"), t.valueFormatter = (A) => {
13364
13437
  var w, ie, b, Ce, he, j, Q, R, D, _e;
13365
13438
  let H, k = (w = o == null ? void 0 : o.format) == null ? void 0 : w.trim(), Z = "";
13366
- return (b = (ie = A.node) == null ? void 0 : ie.rowGroupColumn) != null && b.colDef && A.value !== void 0 ? (H = A.value, k = ((he = (Ce = t.context) == null ? void 0 : Ce.columnConfig) == null ? void 0 : he.FORMAT_STRING) || k) : A.node.rowPinned || A.node.group ? (H = A.value, k = (A.node.rowPinned ? (j = o == null ? void 0 : o.summaryFormat) == null ? void 0 : j.trim() : (Q = o == null ? void 0 : o.groupFormat) == null ? void 0 : Q.trim()) || ((R = o == null ? void 0 : o.format) == null ? void 0 : R.trim()) || "") : A.value !== void 0 && (H = A.value, k = ((_e = (D = t.context) == null ? void 0 : D.columnConfig) == null ? void 0 : _e.FORMAT_STRING) || k), H !== void 0 && (typeof H == "number" ? Z = r.formatNumberValue(H, k) : jo.isPlainObject(H) ? Z = `☑️ ${r.formatNumberValue(H.aggValueOfChecked, k)}
13439
+ return (b = (ie = A.node) == null ? void 0 : ie.rowGroupColumn) != null && b.colDef && A.value !== void 0 ? (H = A.value, k = ((he = (Ce = t.context) == null ? void 0 : Ce.columnConfig) == null ? void 0 : he.FORMAT_STRING) || k) : A.node.rowPinned || A.node.group ? (H = A.value, k = (A.node.rowPinned ? (j = o == null ? void 0 : o.summaryFormat) == null ? void 0 : j.trim() : (Q = o == null ? void 0 : o.groupFormat) == null ? void 0 : Q.trim()) || ((R = o == null ? void 0 : o.format) == null ? void 0 : R.trim()) || "") : A.value !== void 0 && (H = A.value, k = ((_e = (D = t.context) == null ? void 0 : D.columnConfig) == null ? void 0 : _e.FORMAT_STRING) || k), H !== void 0 && (typeof H == "number" ? Z = r.formatNumberValue(H, k) : $o.isPlainObject(H) ? Z = `☑️ ${r.formatNumberValue(H.aggValueOfChecked, k)}
13367
13440
  ∑ ${r.formatNumberValue(H.aggValue, k)}` : Z = r.formatNumberValue(H, k)), Z;
13368
13441
  }, o.progressBar ? (t.cellRenderer = vn, t.cellRendererParams = (A) => {
13369
13442
  var k;
@@ -13879,7 +13952,7 @@ var g;
13879
13952
  // return menuItems;
13880
13953
  // }
13881
13954
  getGridMenuItems(e) {
13882
- var d, u, c, p, m, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j, Q, R, D, _e, ce, qe, dt, ct, ot, _, ye, st, gt, ve, et, at, We, fe, rt, pt, wt, Nt, vt, yt, ht, no, Jt, to, Lt, qt, Wt, Ut, Fo, Ao, Qo, E, L, pe, Ue, tt, Et, it, Mt, At, y, M, h, W, Se, ne, oe, Pe, Le, re, ze, Ke, ft, It, n, kt, Vt, so, ho, uo, ei, To, Go, ti;
13955
+ var d, u, c, p, h, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j, Q, R, D, _e, ce, qe, dt, ct, ot, _, ye, st, gt, ve, et, at, We, fe, rt, pt, wt, Nt, vt, yt, ht, no, Jt, to, Lt, qt, Wt, Ut, Fo, Ao, Xo, E, L, pe, Ue, tt, Et, it, Mt, At, y, M, m, W, Se, ne, oe, Pe, Le, re, ze, Ke, ft, Ot, n, kt, Vt, so, ho, uo, ei, To, Go, ti;
13883
13956
  const t = (u = (d = e.column) == null ? void 0 : d.gridOptionsService) == null ? void 0 : u.gridOptions, o = (c = e == null ? void 0 : e.context) == null ? void 0 : c.options, i = (p = t == null ? void 0 : t.context) == null ? void 0 : p.configId, a = e.defaultItems;
13884
13957
  a.length = 0, a.push("pinSubMenu", "separator", "autoSizeThis", "autoSizeAll", "separator");
13885
13958
  const s = (Ct = !1) => {
@@ -13888,22 +13961,22 @@ var g;
13888
13961
  Yt.AutoRefresh = !0, Yt.AutoQuery = !0, Yt.DefaultValues = { values: { DATASET_NAME: this._formDataSet.Name, TABLE_NAME: (ut = e.context) == null ? void 0 : ut.bindTableName }, readonly: { DATASET_NAME: !0, TABLE_NAME: !0 } }, Yt.ShowCheckBoxColumn = !0, Yt.setFormOptions({
13889
13962
  beforeBindData: (bt) => (bt = bt.filter((Rt) => !e.columnApi.columnModel.gridColumns.some((te) => te.colId === Rt.COL_NAME)), bt)
13890
13963
  }), Yt.setEvent("ok", async (bt) => {
13891
- var qo, me;
13964
+ var jo, me;
13892
13965
  const Rt = (Tt, ro) => {
13893
- var ao, Kt, Je, Dt;
13966
+ var ao, Kt, Je, St;
13894
13967
  return ((ao = Tt.FIELD_NAME) == null ? void 0 : ao.trim().length) === 0 || (Tt.DATA_TYPE === "2" ? (Tt.FORMAT_TYPE = "Numeric", ["金额", "税额", "发生额", "款"].some((Pt) => {
13895
13968
  var zt;
13896
13969
  return (zt = Tt.COL_CAPTION) == null ? void 0 : zt.includes(Pt);
13897
13970
  }) ? Tt.FORMAT_STRING = "#,##0.00" : Tt.FORMAT_STRING = "#,##0", ["数量", "件数", "重量", "毛重", "净重"].some((Pt) => {
13898
13971
  var zt;
13899
13972
  return (zt = Tt.COL_CAPTION) == null ? void 0 : zt.includes(Pt);
13900
- }) && (Tt.FORMAT_STRING = "#,##0.###")) : Tt.DATA_TYPE === "3" ? (Tt.FORMAT_TYPE = "DateTime", (Kt = Tt.COL_CAPTION) != null && Kt.includes("日期") ? Tt.FORMAT_STRING = "yyyy-MM-dd" : ((Je = Tt.COL_CAPTION) != null && Je.includes("时间") || (Dt = Tt.COL_CAPTION) != null && Dt.includes("时刻")) && (Tt.FORMAT_STRING = "yyyy-MM-dd HH:mm:ss")) : Tt.DATA_TYPE === "5" && (Tt.FORMAT_TYPE = "Time", Tt.FORMAT_STRING = "HH:mm:ss")), Tt;
13973
+ }) && (Tt.FORMAT_STRING = "#,##0.###")) : Tt.DATA_TYPE === "3" ? (Tt.FORMAT_TYPE = "DateTime", (Kt = Tt.COL_CAPTION) != null && Kt.includes("日期") ? Tt.FORMAT_STRING = "yyyy-MM-dd" : ((Je = Tt.COL_CAPTION) != null && Je.includes("时间") || (St = Tt.COL_CAPTION) != null && St.includes("时刻")) && (Tt.FORMAT_STRING = "yyyy-MM-dd HH:mm:ss")) : Tt.DATA_TYPE === "5" && (Tt.FORMAT_TYPE = "Time", Tt.FORMAT_STRING = "HH:mm:ss")), Tt;
13901
13974
  }, te = e.columnApi.columnModel.gridColumns;
13902
13975
  let mo = te.length;
13903
- const Mo = [], Xo = await l.Core.createDataTable("Master", "DataSet_SI000", "TSI00GRIDCOLUMN");
13904
- (qo = bt.checkedItemArray) == null || qo.forEach((Tt) => {
13976
+ const Mo = [], qo = await l.Core.createDataTable("Master", "DataSet_SI000", "TSI00GRIDCOLUMN");
13977
+ (jo = bt.checkedItemArray) == null || jo.forEach((Tt) => {
13905
13978
  if (!te.some((ro) => ro.colId === Tt.COL_NAME)) {
13906
- const ro = Xo.add(Rt({
13979
+ const ro = qo.add(Rt({
13907
13980
  COMPANY_CODE: this.DefaultConfigCompanyCode,
13908
13981
  COMPANY_CNAME: this.DefaultConfigCompanyName,
13909
13982
  ROW_GUID: l.Core.guid(),
@@ -13929,7 +14002,7 @@ var g;
13929
14002
  });
13930
14003
  }
13931
14004
  });
13932
- const Co = Xo.getRowsAsBlock("all");
14005
+ const Co = qo.getRowsAsBlock("all");
13933
14006
  Co.rename("TSI00GRIDCOLUMN_ADD");
13934
14007
  const yo = new V();
13935
14008
  yo.addBlock(Co);
@@ -13939,7 +14012,7 @@ var g;
13939
14012
  }), console.info("ER: The grid custom configuration synchronization was successful!")) : this.messageError(this.$t("ERX.ErGrid.SaveUserConfigFailed") || "保存用户配置失败"));
13940
14013
  }), Yt.show(null);
13941
14014
  };
13942
- if (e.api.getDisplayedRowCount() > 0 && ((T = (m = e.columnApi) == null ? void 0 : m.getRowGroupColumns()) == null ? void 0 : T.length) > 0 && a.push("expandAll", "contractAll", "separator"), e.context.isDetailGrid !== !0 && ((o == null ? void 0 : o.allowAdvanceFilter) !== !1 && ((v = o == null ? void 0 : o.advanceFilter) == null ? void 0 : v.allow) !== !1 && (((O = o == null ? void 0 : o.advanceFilterService) == null ? void 0 : O.length) > 0 || ((S = (F = o == null ? void 0 : o.advanceFilter) == null ? void 0 : F.service) == null ? void 0 : S.length) > 0), this.getGridOptions(i, "ShowQuickFilter", !0) !== "2" && (this.getGridOptions(i, "ShowQuickFilter", !0) === "1" ? a.push({
14015
+ if (e.api.getDisplayedRowCount() > 0 && ((T = (h = e.columnApi) == null ? void 0 : h.getRowGroupColumns()) == null ? void 0 : T.length) > 0 && a.push("expandAll", "contractAll", "separator"), e.context.isDetailGrid !== !0 && ((o == null ? void 0 : o.allowAdvanceFilter) !== !1 && ((v = o == null ? void 0 : o.advanceFilter) == null ? void 0 : v.allow) !== !1 && (((O = o == null ? void 0 : o.advanceFilterService) == null ? void 0 : O.length) > 0 || ((S = (F = o == null ? void 0 : o.advanceFilter) == null ? void 0 : F.service) == null ? void 0 : S.length) > 0), this.getGridOptions(i, "ShowQuickFilter", !0) !== "2" && (this.getGridOptions(i, "ShowQuickFilter", !0) === "1" ? a.push({
13943
14016
  name: this.$t("ERX.ErGrid.HideQuickFilter") || "隐藏快速搜索栏",
13944
14017
  action: () => {
13945
14018
  this.setGridOptions(i, "ShowQuickFilter", "0", !0);
@@ -13997,8 +14070,8 @@ var g;
13997
14070
  var ut, bt, Rt;
13998
14071
  const Ct = (this.$t("ERX.ErGrid.CustomColumnTitle") || "自定义列标题") + "->" + ((Rt = (bt = (ut = e.column.colDef.context) == null ? void 0 : ut.columnConfig) == null ? void 0 : bt.COL_CAPTION) == null ? void 0 : Rt.trim()), Yt = new l.PopRichEditor({ extension: "text", width: 300, height: 120, title: Ct });
13999
14072
  Yt.CancelButtonCaption = l.Core.$t("ERX.Close") || "关闭", Yt.setEvent("ok", async () => {
14000
- var Mo, Xo, Co, yo;
14001
- const mo = { title: ((Mo = Yt.Content) == null ? void 0 : Mo.trim()) || ((yo = (Co = (Xo = e.column.colDef.context) == null ? void 0 : Xo.columnConfig) == null ? void 0 : Co.COL_CAPTION) == null ? void 0 : yo.trim()) };
14073
+ var Mo, qo, Co, yo;
14074
+ const mo = { title: ((Mo = Yt.Content) == null ? void 0 : Mo.trim()) || ((yo = (Co = (qo = e.column.colDef.context) == null ? void 0 : qo.columnConfig) == null ? void 0 : Co.COL_CAPTION) == null ? void 0 : yo.trim()) };
14002
14075
  this.setGridColumnOptions(i, (fo) => {
14003
14076
  fo.colId === e.column.colDef.colId && (fo.headerName = mo.title, fo.headerTooltip = mo.title.trim().replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", ""), fo.headerComponentParams = {
14004
14077
  template: `${this.getGridHeaderTemplate(mo)}`
@@ -14420,7 +14493,7 @@ var g;
14420
14493
  }
14421
14494
  ];
14422
14495
  if (((no = (ht = e.column.colDef.context) == null ? void 0 : ht.columnConfig) == null ? void 0 : no.ORIGIN_CODE) !== "0" && ((Lt = (to = (Jt = e.column.colDef.context) == null ? void 0 : Jt.columnConfig) == null ? void 0 : to.SVC_NAME) == null ? void 0 : Lt.trim().length) > 0) {
14423
- const ut = ((Wt = (qt = e.column.colDef.context) == null ? void 0 : qt.columnConfig) == null ? void 0 : Wt.ORIGIN_CODE) === "2" ? "DataSource" : ((Fo = (Ut = e.column.colDef.context) == null ? void 0 : Ut.columnConfig) == null ? void 0 : Fo.ORIGIN_CODE) === "4" ? "CodeSets" : ((Qo = (Ao = e.column.colDef.context) == null ? void 0 : Ao.columnConfig) == null ? void 0 : Qo.ORIGIN_CODE) === "5" ? "SI->Code" : ((L = (E = e.column.colDef.context) == null ? void 0 : E.columnConfig) == null ? void 0 : L.ORIGIN_CODE) === "6" ? "EP->Code" : ((Ue = (pe = e.column.colDef.context) == null ? void 0 : pe.columnConfig) == null ? void 0 : Ue.ORIGIN_CODE) === "7" ? "PM->Code" : "BasicCode";
14496
+ const ut = ((Wt = (qt = e.column.colDef.context) == null ? void 0 : qt.columnConfig) == null ? void 0 : Wt.ORIGIN_CODE) === "2" ? "DataSource" : ((Fo = (Ut = e.column.colDef.context) == null ? void 0 : Ut.columnConfig) == null ? void 0 : Fo.ORIGIN_CODE) === "4" ? "CodeSets" : ((Xo = (Ao = e.column.colDef.context) == null ? void 0 : Ao.columnConfig) == null ? void 0 : Xo.ORIGIN_CODE) === "5" ? "SI->Code" : ((L = (E = e.column.colDef.context) == null ? void 0 : E.columnConfig) == null ? void 0 : L.ORIGIN_CODE) === "6" ? "EP->Code" : ((Ue = (pe = e.column.colDef.context) == null ? void 0 : pe.columnConfig) == null ? void 0 : Ue.ORIGIN_CODE) === "7" ? "PM->Code" : "BasicCode";
14424
14497
  Yt.push({
14425
14498
  name: "DropDownSource->" + ut + "." + ((it = (Et = (tt = e.column.colDef.context) == null ? void 0 : tt.columnConfig) == null ? void 0 : Et.SVC_NAME) == null ? void 0 : it.trim()),
14426
14499
  action: () => {
@@ -14476,7 +14549,7 @@ var g;
14476
14549
  },
14477
14550
  {
14478
14551
  name: "False",
14479
- disabled: ((W = (h = e.column.colDef.context) == null ? void 0 : h.columnConfig) == null ? void 0 : W.ALLOW_EDIT) === "0",
14552
+ disabled: ((W = (m = e.column.colDef.context) == null ? void 0 : m.columnConfig) == null ? void 0 : W.ALLOW_EDIT) === "0",
14480
14553
  action: () => {
14481
14554
  this.uploadGridColumnProps(i, e.column.colDef.colId, "ALLOW_EDIT", "0").then(() => {
14482
14555
  e.column.colDef.context.columnConfig.ALLOW_EDIT = "0", this.setGridColumnEditable(i, !1, e.column.colDef.colId);
@@ -14511,7 +14584,7 @@ var g;
14511
14584
  subMenu: [
14512
14585
  {
14513
14586
  name: "True",
14514
- disabled: ((It = (ft = e.column.colDef.context) == null ? void 0 : ft.columnConfig) == null ? void 0 : It.READ_ONLY) === "1",
14587
+ disabled: ((Ot = (ft = e.column.colDef.context) == null ? void 0 : ft.columnConfig) == null ? void 0 : Ot.READ_ONLY) === "1",
14515
14588
  action: () => {
14516
14589
  this.uploadGridColumnProps(i, e.column.colDef.colId, "READ_ONLY", "1").then(() => {
14517
14590
  e.column.colDef.context.columnConfig.READ_ONLY = "1";
@@ -14734,19 +14807,19 @@ var g;
14734
14807
  if (this._dropDownBindSource[e] && this._dropDownBindSource[e][t]) {
14735
14808
  const u = this._dropDownBindSource[e][t];
14736
14809
  if (((a = u == null ? void 0 : u.dataSource) == null ? void 0 : a.length) > 0 && ((s = u == null ? void 0 : u.dataValueField) == null ? void 0 : s.trim().length) > 0 && ((d = u == null ? void 0 : u.dataTextField) == null ? void 0 : d.trim().length) > 0) {
14737
- const c = u.dataValueField.trim(), p = u.dataTextField.trim(), m = u.dataSource;
14810
+ const c = u.dataValueField.trim(), p = u.dataTextField.trim(), h = u.dataSource;
14738
14811
  o == null && (o = this.getControlValue(e, t)), o === !0 && (o = "1");
14739
14812
  let T = [];
14740
- if (o && typeof o == "string" ? T = o.split(",") : o instanceof Array && (T = o), (m == null ? void 0 : m.length) > 0 && T.length > 0) {
14813
+ if (o && typeof o == "string" ? T = o.split(",") : o instanceof Array && (T = o), (h == null ? void 0 : h.length) > 0 && T.length > 0) {
14741
14814
  i = [];
14742
- for (let v = 0; v < m.length; v++)
14743
- if (m[v])
14815
+ for (let v = 0; v < h.length; v++)
14816
+ if (h[v])
14744
14817
  if (T.length > 1) {
14745
- if (T.includes(r.toString(m[v][c])) && i.push(m[v][p]), i.length === T.length || v === m.length - 1) {
14818
+ if (T.includes(r.toString(h[v][c])) && i.push(h[v][p]), i.length === T.length || v === h.length - 1) {
14746
14819
  i = i.join(",");
14747
14820
  break;
14748
14821
  }
14749
- } else r.toString(m[v][c]) === r.toString(o) && (i = m[v][p]);
14822
+ } else r.toString(h[v][c]) === r.toString(o) && (i = h[v][p]);
14750
14823
  }
14751
14824
  }
14752
14825
  }
@@ -14760,7 +14833,7 @@ var g;
14760
14833
  */
14761
14834
  async uploadGridColumnSeq(e, t) {
14762
14835
  return new Promise((o, i) => {
14763
- let a = new St();
14836
+ let a = new It();
14764
14837
  const s = [];
14765
14838
  if ((e == null ? void 0 : e.trim().length) > 0 && t) {
14766
14839
  e = e.trim();
@@ -14768,13 +14841,13 @@ var g;
14768
14841
  t.columnApi.columnModel.gridColumns.forEach((u) => {
14769
14842
  var c, p;
14770
14843
  if (u.colId && u.colId !== l.SysInfo.GridCheckColumnFieldName && u.colDef.cellRenderer !== "agGroupCellRenderer") {
14771
- const m = (p = (c = u.colDef) == null ? void 0 : c.context) == null ? void 0 : p.columnConfig;
14772
- m && m.ROW_GUID && (m.IS_VISIBLE = u.visible === !1 ? "0" : "1", m.COL_WIDTH_WEB = u.width, m.GROUP_SORT_TYPE = "0", m.C_SEQ_ID = `${++d}`.padStart(4, "0"), m.COL_FIX_TYPE = u.pinned === "left" ? "L" : u.pinned === "right" ? "R" : "N", u.rowGroupActive && (m.GROUP_SORT_TYPE = "1"), s.push(m));
14844
+ const h = (p = (c = u.colDef) == null ? void 0 : c.context) == null ? void 0 : p.columnConfig;
14845
+ h && h.ROW_GUID && (h.IS_VISIBLE = u.visible === !1 ? "0" : "1", h.COL_WIDTH_WEB = u.width, h.GROUP_SORT_TYPE = "0", h.C_SEQ_ID = `${++d}`.padStart(4, "0"), h.COL_FIX_TYPE = u.pinned === "left" ? "L" : u.pinned === "right" ? "R" : "N", u.rowGroupActive && (h.GROUP_SORT_TYPE = "1"), s.push(h));
14773
14846
  }
14774
14847
  });
14775
14848
  }
14776
14849
  if (s.length > 0) {
14777
- const d = this.buildEiBlock(s, "TSI00GRIDCOLUMN_VISIBLEINDEX"), u = new St();
14850
+ const d = this.buildEiBlock(s, "TSI00GRIDCOLUMN_VISIBLEINDEX"), u = new It();
14778
14851
  u.addBlock(d), r.messageConfirm("是否确定同步列顺序?").then((c) => {
14779
14852
  c ? r.callService(l.SysInfo.saveDevConfigService, u).then(
14780
14853
  (p) => {
@@ -14801,7 +14874,7 @@ var g;
14801
14874
  t,
14802
14875
  this._currentConfigCompanyCode["TSI00GRIDCOLUMN" + e]
14803
14876
  );
14804
- let u = new St();
14877
+ let u = new It();
14805
14878
  const c = r.buildEiBlock([
14806
14879
  {
14807
14880
  COMPANY_CODE: d.COMPANY_CODE,
@@ -14814,8 +14887,8 @@ var g;
14814
14887
  ], "TSI00GRIDCOLUMN_PROPERTY");
14815
14888
  r.messageConfirm("是否确定更改配置?").then((p) => {
14816
14889
  if (p) {
14817
- const m = new St();
14818
- m.addBlock(c), r.callService(l.SysInfo.saveDevConfigService, m).then((T) => {
14890
+ const h = new It();
14891
+ h.addBlock(c), r.callService(l.SysInfo.saveDevConfigService, h).then((T) => {
14819
14892
  u = T, a(u);
14820
14893
  });
14821
14894
  } else
@@ -14830,11 +14903,11 @@ var g;
14830
14903
  */
14831
14904
  async uploadGridColumnPropsEx(e) {
14832
14905
  return new Promise((t, o) => {
14833
- let i = new St();
14906
+ let i = new It();
14834
14907
  const a = r.buildEiBlock(e, "TSI00GRIDCOLUMN_PROPERTY");
14835
14908
  r.messageConfirm("是否确定更改配置?").then((s) => {
14836
14909
  if (s) {
14837
- const d = new St();
14910
+ const d = new It();
14838
14911
  d.addBlock(a), r.callService(l.SysInfo.saveDevConfigService, d).then((u) => {
14839
14912
  i = u, t(i);
14840
14913
  });
@@ -14853,7 +14926,7 @@ var g;
14853
14926
  async uploadGridViewProps(e, t, o) {
14854
14927
  return new Promise((i, a) => {
14855
14928
  const s = this.getSingleViewConfigInfo(e);
14856
- let d = new St();
14929
+ let d = new It();
14857
14930
  const u = r.buildEiBlock([
14858
14931
  {
14859
14932
  COMPANY_CODE: this.DefaultConfigCompanyCode,
@@ -14865,9 +14938,9 @@ var g;
14865
14938
  ], "TSI00GRIDVIEW_PROPERTY");
14866
14939
  r.messageConfirm("是否确定更改配置?").then((c) => {
14867
14940
  if (c) {
14868
- const p = new St();
14869
- p.addBlock(u), r.callService(l.SysInfo.saveDevConfigService, p).then((m) => {
14870
- d = m, i(d);
14941
+ const p = new It();
14942
+ p.addBlock(u), r.callService(l.SysInfo.saveDevConfigService, p).then((h) => {
14943
+ d = h, i(d);
14871
14944
  });
14872
14945
  } else
14873
14946
  d.SysInfo.Flag = 999, d.SysInfo.Msg = "Cancel operation", i(d);
@@ -14881,11 +14954,11 @@ var g;
14881
14954
  */
14882
14955
  async uploadGridViewPropsEx(e) {
14883
14956
  return new Promise((t, o) => {
14884
- let i = new St();
14957
+ let i = new It();
14885
14958
  const a = r.buildEiBlock(e, "TSI00GRIDVIEW_PROPERTY");
14886
14959
  r.messageConfirm("是否确定更改配置?").then((s) => {
14887
14960
  if (s) {
14888
- const d = new St();
14961
+ const d = new It();
14889
14962
  d.addBlock(a), r.callService(l.SysInfo.saveDevConfigService, d).then((u) => {
14890
14963
  i = u, t(i);
14891
14964
  });
@@ -14902,7 +14975,7 @@ var g;
14902
14975
  */
14903
14976
  async uploadGridColumnWidth(e, t) {
14904
14977
  return new Promise((o, i) => {
14905
- let a = new St();
14978
+ let a = new It();
14906
14979
  const s = [];
14907
14980
  if (t.forEach((d) => {
14908
14981
  var u, c;
@@ -14911,7 +14984,7 @@ var g;
14911
14984
  p && p.ROW_GUID && (p.COL_WIDTH_WEB = d.actualWidth, s.push(p));
14912
14985
  }
14913
14986
  }), s.length > 0) {
14914
- const d = this.buildEiBlock(s, "TSI00GRIDCOLUMN_WIDTH_WEB"), u = new St();
14987
+ const d = this.buildEiBlock(s, "TSI00GRIDCOLUMN_WIDTH_WEB"), u = new It();
14915
14988
  u.addBlock(d), r.messageConfirm("是否确定同步列宽?").then((c) => {
14916
14989
  c ? r.callService(l.SysInfo.saveDevConfigService, u).then(
14917
14990
  (p) => {
@@ -14933,19 +15006,19 @@ var g;
14933
15006
  return new Promise(async (i, a) => {
14934
15007
  if ((e == null ? void 0 : e.trim().length) > 0 && t) {
14935
15008
  e = e.trim();
14936
- let s = new St();
15009
+ let s = new It();
14937
15010
  const d = [];
14938
15011
  let u = 0;
14939
15012
  if (t.columnApi.columnModel.gridColumns.forEach((c) => {
14940
- var p, m;
14941
- if (c.colId && c.colId !== l.SysInfo.GridCheckColumnFieldName && ((m = (p = c.colDef) == null ? void 0 : p.context) != null && m.columnConfig) && c.colDef.cellRenderer !== "agGroupCellRenderer") {
15013
+ var p, h;
15014
+ if (c.colId && c.colId !== l.SysInfo.GridCheckColumnFieldName && ((h = (p = c.colDef) == null ? void 0 : p.context) != null && h.columnConfig) && c.colDef.cellRenderer !== "agGroupCellRenderer") {
14942
15015
  const T = { ...c.colDef.context.columnConfig };
14943
15016
  T && T.ROW_GUID && (delete T.extendOptions, T.IS_VISIBLE = c.visible === !1 ? "0" : "1", T.TYPE_CODE = l.SysInfo.Culture, T.COL_WIDTH = c.actualWidth, T.GROUP_SORT_TYPE = "0", T.C_SEQ_ID = `${++u}`.padStart(4, "0"), T.COL_FIX_TYPE = c.pinned === "left" ? "L" : c.pinned === "right" ? "R" : "N", T.COL_CAPTION = c.colDef.headerName, c.rowGroupActive && (T.GROUP_SORT_TYPE = "1"), d.push(T));
14944
15017
  }
14945
15018
  }), d.length > 0) {
14946
- const c = this.buildEiBlock(d, "TSI00GRIDCOLUMN_CUS_UPLOAD"), p = new St();
15019
+ const c = this.buildEiBlock(d, "TSI00GRIDCOLUMN_CUS_UPLOAD"), p = new It();
14947
15020
  p.addBlock(c);
14948
- const m = {
15021
+ const h = {
14949
15022
  COMPANY_CODE: this.DefaultConfigCompanyCode,
14950
15023
  COMPANY_CNAME: this.DefaultConfigCompanyName,
14951
15024
  FORM_NAME: this._formName,
@@ -14956,10 +15029,10 @@ var g;
14956
15029
  T.length > 0 && (T.forEach((S) => {
14957
15030
  const A = S.sort === "desc" ? S.colId + " desc" : S.colId;
14958
15031
  v += A + ",";
14959
- }), v = v.substring(0, v.length - 1)), m.EXT_OPTIONS = JSON.stringify({
15032
+ }), v = v.substring(0, v.length - 1)), h.EXT_OPTIONS = JSON.stringify({
14960
15033
  SORT_FIELD_NAME: v
14961
15034
  });
14962
- const O = r.buildEiBlock([m], "TSI00GRIDVIEWCUS_ADD");
15035
+ const O = r.buildEiBlock([h], "TSI00GRIDVIEWCUS_ADD");
14963
15036
  p.addBlock(O);
14964
15037
  let F = !0;
14965
15038
  o && (F = await r.messageConfirm(this.$t("ERX.ErGrid.SaveUserConfig") || "是否确定同步个人配置?")), F ? r.callService(l.SysInfo.saveDevConfigService, p).then(
@@ -14980,10 +15053,10 @@ var g;
14980
15053
  */
14981
15054
  async deleteGridColumnCustomConfig(e, t) {
14982
15055
  return new Promise((o, i) => {
14983
- let a = new St();
15056
+ let a = new It();
14984
15057
  const s = {};
14985
15058
  s.COMPANY_CODE = this._currentConfigCompanyCode["TSI00GRIDCOLUMN" + e], s.FORM_NAME = this._formName, s.FUNCTION_ID = e, s.TYPE_CODE = "zh_Hans", t && t.trim().length > 0 && (s.REC_CREATOR = l.SysInfo.UserId);
14986
- const d = this.buildEiBlock([s], "TSI00GRIDCOLUMN_CUS_DELETE"), u = new St();
15059
+ const d = this.buildEiBlock([s], "TSI00GRIDCOLUMN_CUS_DELETE"), u = new It();
14987
15060
  u.addBlock(d), r.messageConfirm(t ? "是否确定重置个人配置?" : "是否确定重置所有个人配置?").then((c) => {
14988
15061
  c ? r.callService(l.SysInfo.saveDevConfigService, u).then((p) => {
14989
15062
  a = p, o(a);
@@ -15030,10 +15103,10 @@ var g;
15030
15103
  let a = !0, s = [];
15031
15104
  e && (e instanceof Array ? s = e : typeof e == "string" ? s = e.split(",") : s = [e]);
15032
15105
  for (let p = 0; p < s.length; p++) {
15033
- const m = this.getGrid(s[p]);
15034
- if ((d = m == null ? void 0 : m.gridOptions) != null && d.api) {
15106
+ const h = this.getGrid(s[p]);
15107
+ if ((d = h == null ? void 0 : h.gridOptions) != null && d.api) {
15035
15108
  (!t || t.trim().length === 0) && (t = "ChangedRows");
15036
- const T = m.gridOptions.api, v = (c = (u = m.gridOptions) == null ? void 0 : u.context) == null ? void 0 : c.columnsConfig, O = [];
15109
+ const T = h.gridOptions.api, v = (c = (u = h.gridOptions) == null ? void 0 : u.context) == null ? void 0 : c.columnsConfig, O = [];
15037
15110
  if (v == null || v.forEach((F) => {
15038
15111
  F.UNBOUND_TYPE === "0" && F.ITEM_MUST_FLAG === "1" && O.push(F);
15039
15112
  }), O.length > 0)
@@ -15064,11 +15137,11 @@ var g;
15064
15137
  checkGridRowInput(e, t, o, i = !1, a = !0) {
15065
15138
  var d, u, c, p;
15066
15139
  if (e && (t != null && t.data))
15067
- for (let m = 0; m < o.length; m++) {
15068
- const T = o[m].ITEM_CODE, v = o[m].FIELD_NAME, O = o[m].CONDITION_TABLE;
15140
+ for (let h = 0; h < o.length; h++) {
15141
+ const T = o[h].ITEM_CODE, v = o[h].FIELD_NAME, O = o[h].CONDITION_TABLE;
15069
15142
  let F = {};
15070
- r.toString(o[m].EXT_OPTIONS).trim().length > 0 && (F = JSON.parse(r.toString(o[m].EXT_OPTIONS)));
15071
- const S = F.requireCondition || o[m].MUST_INPUT_CONDITION, A = e.getColumnDef(T);
15143
+ r.toString(o[h].EXT_OPTIONS).trim().length > 0 && (F = JSON.parse(r.toString(o[h].EXT_OPTIONS)));
15144
+ const S = F.requireCondition || o[h].MUST_INPUT_CONDITION, A = e.getColumnDef(T);
15072
15145
  if (A && (!A.visible || !i))
15073
15146
  if (S.trim().length === 0) {
15074
15147
  if (t.rowIndex && (t == null ? void 0 : t.data[v]) === void 0 || (t == null ? void 0 : t.data[v]) === null || r.toString(t == null ? void 0 : t.data[v]).trim().length === 0 || ((d = A.context) == null ? void 0 : d.dataType) === "number" && (t == null ? void 0 : t.data[v]) === 0)
@@ -15507,17 +15580,17 @@ var g;
15507
15580
  const p = (T) => {
15508
15581
  const v = new mi(T.name);
15509
15582
  return v.type = T.type === "number" ? "N" : "C", v.name = T.name, v.descName = T.caption, v;
15510
- }, m = [];
15583
+ }, h = [];
15511
15584
  t ? (u = (d = e == null ? void 0 : e.gridOptions) == null ? void 0 : d.columnApi.getAllGridColumns()) == null || u.forEach((T) => {
15512
15585
  var v, O, F, S, A, H, k;
15513
15586
  if ((F = (v = a == null ? void 0 : a.options) == null ? void 0 : v.schema) != null && F[(O = T.colDef) == null ? void 0 : O.field]) {
15514
15587
  const Z = p((A = a == null ? void 0 : a.options) == null ? void 0 : A.schema[(S = T.colDef) == null ? void 0 : S.field]);
15515
- Z.descName = (k = (H = T.colDef) == null ? void 0 : H.headerName) == null ? void 0 : k.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", ""), i.addColumn(Z), m.push({ name: Z.name, type: Z.type });
15588
+ Z.descName = (k = (H = T.colDef) == null ? void 0 : H.headerName) == null ? void 0 : k.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", ""), i.addColumn(Z), h.push({ name: Z.name, type: Z.type });
15516
15589
  }
15517
15590
  }) : Object.keys((c = a == null ? void 0 : a.options) == null ? void 0 : c.schema).forEach((T) => {
15518
15591
  var O, F;
15519
15592
  const v = p((F = (O = a == null ? void 0 : a.options) == null ? void 0 : O.schema) == null ? void 0 : F[T]);
15520
- i.addColumn(v), m.push({ name: v.name, type: v.type });
15593
+ i.addColumn(v), h.push({ name: v.name, type: v.type });
15521
15594
  });
15522
15595
  }
15523
15596
  return i.setAttr({ offset: 0, limit: -1, orderBy: "" }), i;
@@ -15703,7 +15776,7 @@ var g;
15703
15776
  * @returns EIInfo
15704
15777
  */
15705
15778
  getGridChangedRowsAsEiInfo(e, t, o, i = !1, a) {
15706
- t == null && (t = new St());
15779
+ t == null && (t = new It());
15707
15780
  let s;
15708
15781
  return e instanceof Array ? s = e : typeof e == "string" ? s = e.split(",") : s = [e], s && s.length > 0 && s.forEach((d) => {
15709
15782
  const u = this.getGrid(d);
@@ -15858,7 +15931,7 @@ var g;
15858
15931
  * @returns rowsCount
15859
15932
  */
15860
15933
  mergeEiInfoToGrid(e, ...t) {
15861
- this.isNullOrEmpty(t) ? t = Object.keys(this._gridOptions) : t.length === 1 && t[0] && typeof t[0] == "string" && (t = t[0].split(",")), new St(), t.forEach((o) => {
15934
+ this.isNullOrEmpty(t) ? t = Object.keys(this._gridOptions) : t.length === 1 && t[0] && typeof t[0] == "string" && (t = t[0].split(",")), new It(), t.forEach((o) => {
15862
15935
  var s, d, u, c;
15863
15936
  const i = this.getGrid(o), a = (c = (u = (d = (s = i == null ? void 0 : i.gridOptions) == null ? void 0 : s.context) == null ? void 0 : d.bindingSource) == null ? void 0 : u.tableName) == null ? void 0 : c.trim();
15864
15937
  (a == null ? void 0 : a.trim().length) > 0 && e.getBlock(a.trim()) ? this.mergeEiBlockToGrid(e.getBlock(a.trim()), i) : t.length === 1 && this.mergeEiBlockToGrid(e.getBlockByIndex(0), i);
@@ -15962,12 +16035,12 @@ var g;
15962
16035
  setGridServerPagingService(e, t, o, i = !0) {
15963
16036
  e && (o == null ? void 0 : o.trim().length) > 0 && this.setGridServerPagingQuery(e, t, (a) => new Promise(async (s, d) => {
15964
16037
  var T, v;
15965
- const u = new St();
16038
+ const u = new It();
15966
16039
  Object.keys(t.getBlocks()).forEach((O) => {
15967
16040
  u.addBlock(t.getBlock(O));
15968
16041
  });
15969
- const c = { flag: -1, msg: "", data: void 0, total: 0 }, m = (v = (T = this.getGrid(e).gridOptions.context) == null ? void 0 : T.pageOptions) == null ? void 0 : v.pageSize;
15970
- u.addBlock(l.Core.buildEiBlock([{ PAGE_NUM: a, PAGE_SIZE: m }], "PAGEINFO")), await this.callService(o.trim(), u, void 0, { messageError: !0 }).then((O) => {
16042
+ const c = { flag: -1, msg: "", data: void 0, total: 0 }, h = (v = (T = this.getGrid(e).gridOptions.context) == null ? void 0 : T.pageOptions) == null ? void 0 : v.pageSize;
16043
+ u.addBlock(l.Core.buildEiBlock([{ PAGE_NUM: a, PAGE_SIZE: h }], "PAGEINFO")), await this.callService(o.trim(), u, void 0, { messageError: !0 }).then((O) => {
15971
16044
  O.sys.status >= 0 && (c.flag = 0, c.data = O.getBlock(0), c.total = O.getBlock(0).length, O.contains("PAGEINFO") && (c.total = O.getBlock("PAGEINFO").data[0].TOTAL_RECORD));
15972
16045
  }), s(c);
15973
16046
  }), i);
@@ -15983,7 +16056,7 @@ var g;
15983
16056
  setGridServerPagingDataSource(e, t, o, i, a = !0) {
15984
16057
  e && (o == null ? void 0 : o.trim().length) > 0 && (i == null ? void 0 : i.trim().length) > 0 && this.setGridServerPagingQuery(e, t, (s) => new Promise(async (d, u) => {
15985
16058
  var v, O;
15986
- const c = new St();
16059
+ const c = new It();
15987
16060
  Object.keys(t.getBlocks()).forEach((F) => {
15988
16061
  c.addBlock(t.getBlock(F));
15989
16062
  });
@@ -16248,10 +16321,10 @@ var g;
16248
16321
  this._serviceName,
16249
16322
  this._sysConfiParas
16250
16323
  ).then((a) => {
16251
- var s, d, u, c, p, m, T;
16324
+ var s, d, u, c, p, h, T;
16252
16325
  if (a.flag === 1)
16253
16326
  if (((c = (u = (d = (s = this._formHelper) == null ? void 0 : s.ConfigInfo) == null ? void 0 : d.TSI00FORM) == null ? void 0 : u.getMappedRows()) == null ? void 0 : c.length) > 0) {
16254
- const v = (T = (m = (p = this._formHelper) == null ? void 0 : p.ConfigInfo) == null ? void 0 : m.TSI00FORM) == null ? void 0 : T.getMappedRows()[0];
16327
+ const v = (T = (h = (p = this._formHelper) == null ? void 0 : p.ConfigInfo) == null ? void 0 : h.TSI00FORM) == null ? void 0 : T.getMappedRows()[0];
16255
16328
  this._formOptions.value.title = this._formOptions.value.title ?? v.FORM_FUNC_DESC, this._formOptions.value.width = this._formOptions.value.width ?? r.toNumber(v.FORM_WIDTH), this._formOptions.value.height = this._formOptions.value.height ?? r.toNumber(v.FORM_HEIGHT), this.BordStyle = this.BordStyle ?? (v.FORM_STYLE === "3" ? "Fixed" : "Sizable");
16256
16329
  const O = this._formHelper.getSingleViewConfigInfo(this.MainViewConfigId);
16257
16330
  O && (this._mainTableame = O.TABLE_NAME, this._queryService = O.SVC_NAME, this._serviceFilter = O.FILTER_STRING, this.KeyFieldName.trim().length === 0 && (this.KeyFieldName = O.KEY_FIELDS)), this._formHelper.containsConfig(this.DetailViewConfigId) || (this.DetailViewConfigId = ""), this.ShowCheckBoxColumn !== void 0 && (O.SHOW_SELECTION = this.ShowCheckBoxColumn ? "1" : "0", O.MULTI_SELECT_MODE = this.ShowCheckBoxColumn ? "2" : "1"), this._initializeFlag = 1;
@@ -16330,8 +16403,8 @@ var g;
16330
16403
  t && this.setEvent("ok", t), o && this.setEvent("cancel", o), this.app ? this.WindowOpened.value = !0 : this.Initialize().then(async (s) => {
16331
16404
  var c, p;
16332
16405
  if (this._component || (this._component = e, this._component || (this._component = await import("./ErPopQuery-DWj-lb5u.js"), (c = this._component) != null && c.default && (this._component = this._component.default))), this.doEvent("initial", this), this.FormConfigQueryService.trim().length === 0) {
16333
- const m = this._formHelper.getFormButtonConfigInfo("btnQuery");
16334
- this.FormConfigQueryService = ((p = m == null ? void 0 : m.SVC_NAME) == null ? void 0 : p.trim()) || "";
16406
+ const h = this._formHelper.getFormButtonConfigInfo("btnQuery");
16407
+ this.FormConfigQueryService = ((p = h == null ? void 0 : h.SVC_NAME) == null ? void 0 : p.trim()) || "";
16335
16408
  }
16336
16409
  this.MainViewOptions.masterDetail = this.MasterDetailView, this._initializeFlag = 1;
16337
16410
  const d = oi(this._component, {
@@ -16557,10 +16630,10 @@ var g;
16557
16630
  this._serviceName,
16558
16631
  this._sysConfiParas
16559
16632
  ).then((a) => {
16560
- var s, d, u, c, p, m, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j;
16633
+ var s, d, u, c, p, h, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he, j;
16561
16634
  if (a.flag === 1) {
16562
16635
  if (((c = (u = (d = (s = this._formHelper) == null ? void 0 : s.ConfigInfo) == null ? void 0 : d.TSI00FORM) == null ? void 0 : u.getMappedRows()) == null ? void 0 : c.length) > 0) {
16563
- const Q = (T = (m = (p = this._formHelper) == null ? void 0 : p.ConfigInfo) == null ? void 0 : m.TSI00FORM) == null ? void 0 : T.getMappedRows()[0];
16636
+ const Q = (T = (h = (p = this._formHelper) == null ? void 0 : p.ConfigInfo) == null ? void 0 : h.TSI00FORM) == null ? void 0 : T.getMappedRows()[0];
16564
16637
  if (this._formOptions.value.title = this._formOptions.value.title ?? Q.FORM_FUNC_DESC, this._formOptions.value.width = this._formOptions.value.width ?? r.toNumber(Q.FORM_WIDTH), this._formOptions.value.height = this._formOptions.value.height ?? r.toNumber(Q.FORM_HEIGHT), this.BordStyle = this.BordStyle ?? (Q.FORM_STYLE === "3" ? "Fixed" : "Sizable"), ((S = (F = (O = (v = this._formHelper) == null ? void 0 : v.ConfigInfo) == null ? void 0 : O.TSI00FORMBUTTON) == null ? void 0 : F.getMappedRows()) == null ? void 0 : S.length) > 0 && this._formHelper.ConfigInfo.TSI00FORMBUTTON.getMappedRows().every((R) => R.BUTTON_NAME === "btnOk" ? (this.OkButtonService = R.SVC_NAME, !1) : !0), ((Z = (k = (H = (A = this._formHelper) == null ? void 0 : A.ConfigInfo) == null ? void 0 : H.TSI00GRIDVIEW) == null ? void 0 : k.getMappedRows()) == null ? void 0 : Z.length) > 0)
16565
16638
  for (let R = 0; R < ((b = (ie = (w = this._formHelper) == null ? void 0 : w.ConfigInfo) == null ? void 0 : ie.TSI00GRIDVIEW) == null ? void 0 : b.getMappedRows().length); R++) {
16566
16639
  const D = (j = (he = (Ce = this._formHelper) == null ? void 0 : Ce.ConfigInfo) == null ? void 0 : he.TSI00GRIDVIEW) == null ? void 0 : j.getMappedRows()[R];
@@ -16917,9 +16990,9 @@ var g;
16917
16990
  this._serviceName,
16918
16991
  this._sysConfiParas
16919
16992
  ).then((a) => {
16920
- var s, d, u, c, p, m, T, v;
16993
+ var s, d, u, c, p, h, T, v;
16921
16994
  if (a.flag === 1)
16922
- this._mainTableName = this._formHelper.setBindingTableName(this._layoutConfigId), this._detailTableName = this._formHelper.setBindingTableName(this._gridConfigId), this._dataSet = this._formHelper.FormDataSet, this._mainDataTable = this._formHelper.getBindingTable(this._layoutConfigId), this._detailDataTable = this._formHelper.getBindingTable(this._gridConfigId), ((c = (u = (d = (s = this._formHelper) == null ? void 0 : s.ConfigInfo) == null ? void 0 : d.TSI00FORM) == null ? void 0 : u.getMappedRows()) == null ? void 0 : c.length) > 0 && (this._formOptions.value.title = this._formOptions.value.title ?? this._formHelper.ConfigInfo.TSI00FORM.getMappedRows()[0].FORM_FUNC_DESC, this._formOptions.value.width = this._formOptions.value.width ?? this._formHelper.ConfigInfo.TSI00FORM.getMappedRows()[0].FORM_WIDTH, this._formOptions.value.height = this._formOptions.value.height ?? this._formHelper.ConfigInfo.TSI00FORM.getMappedRows()[0].FORM_HEIGHT, this.BordStyle = this.BordStyle ?? (this._formHelper.ConfigInfo.TSI00FORM.data[0].FORM_STYLE === "3" ? "Fixed" : "Sizable"), ((v = (T = (m = (p = this._formHelper) == null ? void 0 : p.ConfigInfo) == null ? void 0 : m.TSI00FORMBUTTON) == null ? void 0 : T.getMappedRows()) == null ? void 0 : v.length) > 0 && this._formHelper.ConfigInfo.TSI00FORMBUTTON.getMappedRows().every((O) => O.BUTTON_NAME === "btnOk" ? (this.OkButtonService = O.SVC_NAME, !1) : !0), this._initializeFlag = 1);
16995
+ this._mainTableName = this._formHelper.setBindingTableName(this._layoutConfigId), this._detailTableName = this._formHelper.setBindingTableName(this._gridConfigId), this._dataSet = this._formHelper.FormDataSet, this._mainDataTable = this._formHelper.getBindingTable(this._layoutConfigId), this._detailDataTable = this._formHelper.getBindingTable(this._gridConfigId), ((c = (u = (d = (s = this._formHelper) == null ? void 0 : s.ConfigInfo) == null ? void 0 : d.TSI00FORM) == null ? void 0 : u.getMappedRows()) == null ? void 0 : c.length) > 0 && (this._formOptions.value.title = this._formOptions.value.title ?? this._formHelper.ConfigInfo.TSI00FORM.getMappedRows()[0].FORM_FUNC_DESC, this._formOptions.value.width = this._formOptions.value.width ?? this._formHelper.ConfigInfo.TSI00FORM.getMappedRows()[0].FORM_WIDTH, this._formOptions.value.height = this._formOptions.value.height ?? this._formHelper.ConfigInfo.TSI00FORM.getMappedRows()[0].FORM_HEIGHT, this.BordStyle = this.BordStyle ?? (this._formHelper.ConfigInfo.TSI00FORM.data[0].FORM_STYLE === "3" ? "Fixed" : "Sizable"), ((v = (T = (h = (p = this._formHelper) == null ? void 0 : p.ConfigInfo) == null ? void 0 : h.TSI00FORMBUTTON) == null ? void 0 : T.getMappedRows()) == null ? void 0 : v.length) > 0 && this._formHelper.ConfigInfo.TSI00FORMBUTTON.getMappedRows().every((O) => O.BUTTON_NAME === "btnOk" ? (this.OkButtonService = O.SVC_NAME, !1) : !0), this._initializeFlag = 1);
16923
16996
  else {
16924
16997
  const O = "ErPopFormHelper initialize faild, error msg is [" + a.msg + "]";
16925
16998
  r.messageError(O);
@@ -17785,9 +17858,9 @@ var g;
17785
17858
  */
17786
17859
  async getApprovalInfo(e, t, o, i, a, s) {
17787
17860
  return new Promise(async (d, u) => {
17788
- let c = [], p = [], m = 0;
17861
+ let c = [], p = [], h = 0;
17789
17862
  this._partition = e, this._instanceId = t, this._companyCode = o, this._bizBillNo = i, this._tableName = a, this._sysInfoFlag = 0, this._sysInfoMsg = "", s === void 0 && (s = {}), s.WF_REC_ID = t, s.BIZ_BILL_NO = i, s.COMPANY_CODE = o, s.TABLE_NAME = a;
17790
- const T = new St(), v = r.buildEiBlock([s]);
17863
+ const T = new It(), v = r.buildEiBlock([s]);
17791
17864
  T.addBlock(v), await r.callService("si00wf_inq", T).then((O) => {
17792
17865
  var F, S, A, H, k;
17793
17866
  if (l.Core.toNumber((F = O == null ? void 0 : O.SysInfo) == null ? void 0 : F.Flag) !== 0)
@@ -17798,7 +17871,7 @@ var g;
17798
17871
  let Z = !1;
17799
17872
  c = O.getBlock("WORKFLOW").getMappedRows(), c.forEach((w) => {
17800
17873
  if (r.toString(w.EXEC_PERSON).length > 0)
17801
- m++;
17874
+ h++;
17802
17875
  else if (O.getBlock("EXCUTEUSERINFO") && !Z) {
17803
17876
  let ie = O.getBlock("EXCUTEUSERINFO").getMappedRows().length;
17804
17877
  ie > 5 && (ie = 5);
@@ -17816,7 +17889,7 @@ var g;
17816
17889
  } else
17817
17890
  w.EXEC_DATETIME = "";
17818
17891
  w.title = w.NODE_NAME, w.description = w.EXEC_PERSON + " " + w.EXEC_DATETIME;
17819
- }), this._haveSteps.value = !0, this._workStepsInfo.value = c, this._activeSteps.value = m;
17892
+ }), this._haveSteps.value = !0, this._workStepsInfo.value = c, this._activeSteps.value = h;
17820
17893
  } else
17821
17894
  this._haveSteps.value = !1, this._workStepsInfo.value = [], this._activeSteps.value = -1;
17822
17895
  ((k = O.getBlock("TSI00APPROVEINFO")) == null ? void 0 : k.getMappedRows().length) > 0 ? (O.getBlock("TSI00APPROVEINFO").getMappedRows().forEach((Z) => {
@@ -17907,14 +17980,14 @@ var g;
17907
17980
  }
17908
17981
  l.AttachmentHelper = ue;
17909
17982
  })(g || (g = {}));
17910
- const Wn = { style: { display: "inline-block" } }, zn = Ot({
17983
+ const Wn = { style: { display: "inline-block" } }, zn = Dt({
17911
17984
  name: "ErFormToolbar",
17912
17985
  components: {
17913
17986
  "a-button": Ko,
17914
17987
  "a-tooltip": Yo,
17915
17988
  "a-config-providver": _o
17916
17989
  }
17917
- }), qr = /* @__PURE__ */ Ot({
17990
+ }), qr = /* @__PURE__ */ Dt({
17918
17991
  ...zn,
17919
17992
  props: {
17920
17993
  height: {
@@ -18056,7 +18129,7 @@ function Jn(l, C, r) {
18056
18129
  const f = l.random || (l.rng || Xn)();
18057
18130
  return f[6] = f[6] & 15 | 64, f[8] = f[8] & 63 | 128, qn(f);
18058
18131
  }
18059
- const Kn = Ot({
18132
+ const Kn = Dt({
18060
18133
  name: "ErPanel",
18061
18134
  components: {
18062
18135
  CaretUpOutlined: Aa,
@@ -18161,7 +18234,7 @@ function ns(l, C, r, f, V, ee) {
18161
18234
  be("div", ts, nt(l.title ? l.title : l.tI18n("ERX.Title")), 1),
18162
18235
  be("div", os, [
18163
18236
  be("div", is, [
18164
- $o(l.$slots, "customButtonSlot")
18237
+ Wo(l.$slots, "customButtonSlot")
18165
18238
  ]),
18166
18239
  $t(be("button", {
18167
18240
  id: l.searchButtonId,
@@ -18196,7 +18269,7 @@ function ns(l, C, r, f, V, ee) {
18196
18269
  style: _t(`padding: ${l.innerPadding};`)
18197
18270
  }, [
18198
18271
  $t(be("div", ls, [
18199
- $o(l.$slots, "contentSlot")
18272
+ Wo(l.$slots, "contentSlot")
18200
18273
  ], 512), [
18201
18274
  [Zt, l.openHeader]
18202
18275
  ])
@@ -18204,7 +18277,7 @@ function ns(l, C, r, f, V, ee) {
18204
18277
  ], 2)
18205
18278
  ], 12, Zn);
18206
18279
  }
18207
- const So = /* @__PURE__ */ lo(Kn, [["render", ns]]), ss = Ot({
18280
+ const So = /* @__PURE__ */ lo(Kn, [["render", ns]]), ss = Dt({
18208
18281
  props: {
18209
18282
  sameApp: {
18210
18283
  type: Boolean,
@@ -18484,7 +18557,7 @@ function fs(l, C, r, f, V, ee) {
18484
18557
  be("div", null, [
18485
18558
  l.sameApp ? (x(), Ze(Oo, { key: 0 }, [
18486
18559
  eo(nt(l.title ? l.title : l.getDialogTitle) + " ", 1),
18487
- $o(l.$slots, "title")
18560
+ Wo(l.$slots, "title")
18488
18561
  ], 64)) : (x(), Ze(Oo, { key: 1 }, [
18489
18562
  eo(nt(l.title ? l.title : l.getDialogTitle), 1)
18490
18563
  ], 64))
@@ -18505,11 +18578,11 @@ function fs(l, C, r, f, V, ee) {
18505
18578
  l.sameApp ? (x(), Ze(Oo, { key: 0 }, [
18506
18579
  be("div", ds, [
18507
18580
  be("div", us, [
18508
- $o(l.$slots, "content")
18581
+ Wo(l.$slots, "content")
18509
18582
  ])
18510
18583
  ]),
18511
18584
  l.$slots.footer ? (x(), Ze("div", cs, [
18512
- $o(l.$slots, "footer")
18585
+ Wo(l.$slots, "footer")
18513
18586
  ])) : je("", !0)
18514
18587
  ], 64)) : (x(), Ze("div", ps))
18515
18588
  ], 2),
@@ -18518,7 +18591,7 @@ function fs(l, C, r, f, V, ee) {
18518
18591
  [Zt, l.dialogVisible]
18519
18592
  ]);
18520
18593
  }
18521
- const gs = /* @__PURE__ */ lo(ss, [["render", fs]]), hs = Ot({
18594
+ const gs = /* @__PURE__ */ lo(ss, [["render", fs]]), hs = Dt({
18522
18595
  components: {
18523
18596
  dialogBase: gs
18524
18597
  },
@@ -18728,17 +18801,17 @@ function Cs(l, C, r, f, V, ee) {
18728
18801
  onOpen: l.onOpen
18729
18802
  }, oo({
18730
18803
  title: Y(() => [
18731
- $o(l.$slots, "title", {}, void 0, !0)
18804
+ Wo(l.$slots, "title", {}, void 0, !0)
18732
18805
  ]),
18733
18806
  content: Y(() => [
18734
- $o(l.$slots, "default", {}, void 0, !0)
18807
+ Wo(l.$slots, "default", {}, void 0, !0)
18735
18808
  ]),
18736
18809
  _: 2
18737
18810
  }, [
18738
18811
  l.$slots["footer-left"] || l.$slots["footer-right"] || l.defaultFooter ? {
18739
18812
  name: "footer",
18740
18813
  fn: Y(() => [
18741
- $o(l.$slots, "footer-left", {}, void 0, !0),
18814
+ Wo(l.$slots, "footer-left", {}, void 0, !0),
18742
18815
  l.defaultFooter ? (x(), Ze(Oo, { key: 0 }, [
18743
18816
  l.showConfirm ? (x(), Ze("button", {
18744
18817
  key: 0,
@@ -18751,7 +18824,7 @@ function Cs(l, C, r, f, V, ee) {
18751
18824
  onClick: C[1] || (C[1] = (...U) => l.cancelClick && l.cancelClick(...U))
18752
18825
  }, nt(l.tI18n("ERX.cancel")), 1)) : je("", !0)
18753
18826
  ], 64)) : je("", !0),
18754
- $o(l.$slots, "footer-right", {}, void 0, !0)
18827
+ Wo(l.$slots, "footer-right", {}, void 0, !0)
18755
18828
  ]),
18756
18829
  key: "0"
18757
18830
  } : void 0
@@ -18761,7 +18834,7 @@ function Cs(l, C, r, f, V, ee) {
18761
18834
  ])
18762
18835
  ], 64)) : je("", !0);
18763
18836
  }
18764
- const Zo = /* @__PURE__ */ lo(hs, [["render", Cs], ["__scopeId", "data-v-9d9eb986"]]), Es = Ot({
18837
+ const Zo = /* @__PURE__ */ lo(hs, [["render", Cs], ["__scopeId", "data-v-9d9eb986"]]), Es = Dt({
18765
18838
  name: "ToolbarPanel",
18766
18839
  props: ["params"],
18767
18840
  components: {
@@ -18808,7 +18881,7 @@ const Zo = /* @__PURE__ */ lo(hs, [["render", Cs], ["__scopeId", "data-v-9d9eb98
18808
18881
  let q = !1, J = z.action, X = !1;
18809
18882
  const K = {};
18810
18883
  l.params[z.name] ? (J = l.params[z.name].action, q = l.params[z.name].preventDefault, X = l.params[z.name].messageConfirm) : J || (J = G(z.name, "action"), q = G(z.name, "preventDefault"), X = G(z.name, "messageConfirm")), (Ee = (ae = l.params) == null ? void 0 : ae.formHelper) == null || Ee.stopGridEditing((Oe = l.params) == null ? void 0 : Oe.configId, async () => {
18811
- var ke, De, Be, N, Re, lt, Ge, ue, se, B, $, le, Me, Qe, Ye, Ie, Ne, xe, we, Xe, ge, mt, Ft, He, e, t, o, i, a, s, d, u, c, p, m, T, v, O;
18884
+ var ke, De, Be, N, Re, lt, Ge, ue, se, B, $, le, Me, Qe, Ye, Ie, Ne, xe, we, Xe, ge, mt, Ft, He, e, t, o, i, a, s, d, u, c, p, h, T, v, O;
18812
18885
  if (q !== !0)
18813
18886
  switch (z.name) {
18814
18887
  case "refresh":
@@ -18845,7 +18918,7 @@ const Zo = /* @__PURE__ */ lo(hs, [["render", Cs], ["__scopeId", "data-v-9d9eb98
18845
18918
  titleType: "both"
18846
18919
  }
18847
18920
  }, k = (d = l.params) == null ? void 0 : d.formHelper.getGridOptions((s = l.params) == null ? void 0 : s.configId, "excel");
18848
- (k == null ? void 0 : k.fileName.trim().length) > 0 ? H.fileName = k == null ? void 0 : k.fileName.trim() : H.fileName = (c = (u = l.params) == null ? void 0 : u.formHelper) == null ? void 0 : c.getFormSysInfo("GRIDEXPORTFILENAME"), H.fileName = (H.fileName || "{formName}-{dateNow}").replace("{formName}", F).replace("{formCaption}", S).replace("{dateNow}", g.Core.getDateTimeFormatString(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH-mm-ss")), (p = k == null ? void 0 : k.header) != null && p.titleType && (H.header.titleType = (m = k == null ? void 0 : k.header) == null ? void 0 : m.titleType);
18921
+ (k == null ? void 0 : k.fileName.trim().length) > 0 ? H.fileName = k == null ? void 0 : k.fileName.trim() : H.fileName = (c = (u = l.params) == null ? void 0 : u.formHelper) == null ? void 0 : c.getFormSysInfo("GRIDEXPORTFILENAME"), H.fileName = (H.fileName || "{formName}-{dateNow}").replace("{formName}", F).replace("{formCaption}", S).replace("{dateNow}", g.Core.getDateTimeFormatString(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH-mm-ss")), (p = k == null ? void 0 : k.header) != null && p.titleType && (H.header.titleType = (h = k == null ? void 0 : k.header) == null ? void 0 : h.titleType);
18849
18922
  const Z = (w) => {
18850
18923
  l.params.api.exportDataAsExcel({
18851
18924
  fileName: H.fileName,
@@ -18937,7 +19010,7 @@ function Ts(l, C, r, f, V, ee) {
18937
19010
  }, 8, ["theme", "locale"])
18938
19011
  ]);
18939
19012
  }
18940
- const Is = /* @__PURE__ */ lo(Es, [["render", Ts]]), Os = Ot({
19013
+ const Is = /* @__PURE__ */ lo(Es, [["render", Ts]]), Os = Dt({
18941
19014
  name: "PaginationPanel",
18942
19015
  props: ["params"],
18943
19016
  setup(l) {
@@ -19066,7 +19139,7 @@ function Ns(l, C, r, f, V, ee) {
19066
19139
  ])
19067
19140
  ]);
19068
19141
  }
19069
- const Ps = /* @__PURE__ */ lo(Os, [["render", Ns], ["__scopeId", "data-v-e4676776"]]), ks = Ot({
19142
+ const Ps = /* @__PURE__ */ lo(Os, [["render", Ns], ["__scopeId", "data-v-e4676776"]]), ks = Dt({
19070
19143
  name: "AggregationPanel",
19071
19144
  props: ["params"],
19072
19145
  setup(l) {
@@ -19163,7 +19236,7 @@ function Qs(l, C, r, f, V, ee) {
19163
19236
  ])) : je("", !0)
19164
19237
  ]);
19165
19238
  }
19166
- const Xs = /* @__PURE__ */ lo(ks, [["render", Qs], ["__scopeId", "data-v-73cdb637"]]), qs = Ot({
19239
+ const Xs = /* @__PURE__ */ lo(ks, [["render", Qs], ["__scopeId", "data-v-73cdb637"]]), qs = Dt({
19167
19240
  name: "InformationPanel",
19168
19241
  props: ["params"],
19169
19242
  components: {
@@ -19237,7 +19310,7 @@ function td(l, C, r, f, V, ee) {
19237
19310
  ])) : je("", !0)
19238
19311
  ]);
19239
19312
  }
19240
- const od = /* @__PURE__ */ lo(qs, [["render", td], ["__scopeId", "data-v-e727ce9e"]]), id = Ot({
19313
+ const od = /* @__PURE__ */ lo(qs, [["render", td], ["__scopeId", "data-v-e727ce9e"]]), id = Dt({
19241
19314
  name: "PreviewDetail",
19242
19315
  props: ["params"],
19243
19316
  setup: (l) => (Xt(() => {
@@ -19261,7 +19334,7 @@ function dd(l, C, r, f, V, ee) {
19261
19334
  const Jr = /* @__PURE__ */ lo(id, [["render", dd]]), ud = {
19262
19335
  key: 0,
19263
19336
  class: "er-grid-find-panel-input"
19264
- }, cd = Ot({
19337
+ }, cd = Dt({
19265
19338
  name: "ErGrid",
19266
19339
  components: {
19267
19340
  PaginationPanel: Ps,
@@ -19272,7 +19345,7 @@ const Jr = /* @__PURE__ */ lo(id, [["render", dd]]), ud = {
19272
19345
  "a-input": Vo,
19273
19346
  "a-config-providver": _o
19274
19347
  }
19275
- }), co = /* @__PURE__ */ Ot({
19348
+ }), co = /* @__PURE__ */ Dt({
19276
19349
  ...cd,
19277
19350
  props: {
19278
19351
  erFormHelperProp: {
@@ -19412,12 +19485,12 @@ const Jr = /* @__PURE__ */ lo(id, [["render", dd]]), ud = {
19412
19485
  const t = e.api.getModel().getRow(e.rowIndex), o = ((a = e == null ? void 0 : e.context) == null ? void 0 : a.focusRowId) || "", i = ((s = e == null ? void 0 : e.context) == null ? void 0 : s.focusColId) || "";
19413
19486
  if (t != null && t.id && (t.id !== o || e.column.colId !== i)) {
19414
19487
  if (t.data && t.data.uid !== o) {
19415
- const m = (d = e == null ? void 0 : e.context) == null ? void 0 : d.bindingSource;
19416
- m && o && (t.data = po(t.data), m.setCurrent(t.data, r.configId));
19488
+ const h = (d = e == null ? void 0 : e.context) == null ? void 0 : d.bindingSource;
19489
+ h && o && (t.data = po(t.data), h.setCurrent(t.data, r.configId));
19417
19490
  }
19418
19491
  const p = () => {
19419
19492
  var T, v, O, F, S, A;
19420
- const m = {
19493
+ const h = {
19421
19494
  ...e,
19422
19495
  rowChanged: t.id !== o,
19423
19496
  columnChanged: e.column.colId !== i,
@@ -19426,12 +19499,12 @@ const Jr = /* @__PURE__ */ lo(id, [["render", dd]]), ud = {
19426
19499
  configId: r.configId,
19427
19500
  erFormHelper: r.erFormHelperProp
19428
19501
  };
19429
- m.colDefEditable = ((F = (O = (v = e.column) == null ? void 0 : v.colDef) == null ? void 0 : O.context) == null ? void 0 : F.ALLOW_EDIT) === "1" && ((A = (S = e.column) == null ? void 0 : S.colDef) == null ? void 0 : A.context.READ_ONLY) !== "1" || !1, ee("focusChanged", m), e.context.focusRowId = t.id, e.context.focusColId = e.column.colId;
19502
+ h.colDefEditable = ((F = (O = (v = e.column) == null ? void 0 : v.colDef) == null ? void 0 : O.context) == null ? void 0 : F.ALLOW_EDIT) === "1" && ((A = (S = e.column) == null ? void 0 : S.colDef) == null ? void 0 : A.context.READ_ONLY) !== "1" || !1, ee("focusChanged", h), e.context.focusRowId = t.id, e.context.focusColId = e.column.colId;
19430
19503
  };
19431
19504
  ((c = (u = U.value) == null ? void 0 : u.gridOptions) == null ? void 0 : c.rowSelection) === "single" ? setTimeout(p, 250) : p();
19432
19505
  }
19433
19506
  }), U.value.gridOptions.api.addEventListener("rowDataUpdated", (e) => {
19434
- var i, a, s, d, u, c, p, m, T, v, O;
19507
+ var i, a, s, d, u, c, p, h, T, v, O;
19435
19508
  const t = e.api.getFilterModel(), o = e.columnApi.getColumnState().filter((F) => F.sort !== null);
19436
19509
  if ((Object.keys(t).length > 0 || o.length > 0) && U.value.gridOptions.context.calculateRowSpan && U.value.gridOptions.context.calculateRowSpan instanceof Function) {
19437
19510
  const F = U.value.gridOptions.context.calculateRowSpan(!1);
@@ -19452,7 +19525,7 @@ const Jr = /* @__PURE__ */ lo(id, [["render", dd]]), ud = {
19452
19525
  erFormHelper: r.erFormHelperProp
19453
19526
  }));
19454
19527
  }
19455
- if ((m = e == null ? void 0 : e.context) != null && m.showPreview && ((T = e.context) != null && T.previewFieldMap) && !r.detailConfigId) {
19528
+ if ((h = e == null ? void 0 : e.context) != null && h.showPreview && ((T = e.context) != null && T.previewFieldMap) && !r.detailConfigId) {
19456
19529
  const F = Object.keys(e.context.previewFieldMap);
19457
19530
  F.length > 0 && e.api.forEachNode((S) => {
19458
19531
  const A = [];
@@ -19609,7 +19682,7 @@ const Jr = /* @__PURE__ */ lo(id, [["render", dd]]), ud = {
19609
19682
  paginationAutoPageSize: !1,
19610
19683
  enableRangeSelection: !0,
19611
19684
  stopEditingWhenCellsLoseFocus: !0,
19612
- enableRtl: Ae(Wo)(),
19685
+ enableRtl: Ae(zo)(),
19613
19686
  masterDetail: z.value,
19614
19687
  detailRowAutoHeight: X.value,
19615
19688
  detailRowHeight: K.value,
@@ -19624,7 +19697,7 @@ const Jr = /* @__PURE__ */ lo(id, [["render", dd]]), ud = {
19624
19697
  ], 2);
19625
19698
  };
19626
19699
  }
19627
- }), pd = Ot({
19700
+ }), pd = Dt({
19628
19701
  name: "NodeRenderer",
19629
19702
  props: ["params"],
19630
19703
  setup: (l) => {
@@ -19639,14 +19712,14 @@ const Jr = /* @__PURE__ */ lo(id, [["render", dd]]), ud = {
19639
19712
  });
19640
19713
  function fd(l, C, r, f, V, ee) {
19641
19714
  return x(), Ze("div", null, [
19642
- (x(), de(zo(l.nodeIconComponent))),
19715
+ (x(), de(Qo(l.nodeIconComponent))),
19643
19716
  eo(" " + nt(l.props.params.value), 1)
19644
19717
  ]);
19645
19718
  }
19646
19719
  const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-left": "3px", "vertical-align": "middle" } }, hd = {
19647
19720
  key: 0,
19648
19721
  class: "dropDownFooter"
19649
- }, md = Ot({
19722
+ }, md = Dt({
19650
19723
  name: "ErSelect",
19651
19724
  components: {
19652
19725
  ImagePreview: zi,
@@ -19658,7 +19731,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
19658
19731
  "a-tooltip": Yo,
19659
19732
  "a-tag": Mi
19660
19733
  }
19661
- }), ii = /* @__PURE__ */ Ot({
19734
+ }), ii = /* @__PURE__ */ Dt({
19662
19735
  ...md,
19663
19736
  props: {
19664
19737
  modelValue: {
@@ -19700,8 +19773,8 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
19700
19773
  },
19701
19774
  emits: ["dropdownOpen", "update:modelValue", "change", "focus", "blur"],
19702
19775
  setup(l, { expose: C, emit: r }) {
19703
- var p, m, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he;
19704
- const f = l, V = r, ee = vi(), G = P(null), U = P([]), z = P(!1), q = {}, J = P(null), X = P(f.multiple ? "multiple" : "single"), K = [], ae = P(""), Oe = ((p = f.dataSource) == null ? void 0 : p.length) > 10, Ee = ((m = f.options) == null ? void 0 : m.valueField) || ((T = f.options) == null ? void 0 : T.dataValueField) || ((v = f.options) == null ? void 0 : v.valueMember) || "CODE", ke = ((O = f.options) == null ? void 0 : O.textField) || ((F = f.options) == null ? void 0 : F.dataTextField) || ((S = f.options) == null ? void 0 : S.displayMember) || "CODE_DESC_1_CONTENT", De = ((A = f.options) == null ? void 0 : A.parentField) || ((k = (H = f.options) == null ? void 0 : H.dropdownOptions) == null ? void 0 : k.parentField) || "PARENT_NODE", Be = [];
19776
+ var p, h, T, v, O, F, S, A, H, k, Z, w, ie, b, Ce, he;
19777
+ const f = l, V = r, ee = vi(), G = P(null), U = P([]), z = P(!1), q = {}, J = P(null), X = P(f.multiple ? "multiple" : "single"), K = [], ae = P(""), Oe = ((p = f.dataSource) == null ? void 0 : p.length) > 10, Ee = ((h = f.options) == null ? void 0 : h.valueField) || ((T = f.options) == null ? void 0 : T.dataValueField) || ((v = f.options) == null ? void 0 : v.valueMember) || "CODE", ke = ((O = f.options) == null ? void 0 : O.textField) || ((F = f.options) == null ? void 0 : F.dataTextField) || ((S = f.options) == null ? void 0 : S.displayMember) || "CODE_DESC_1_CONTENT", De = ((A = f.options) == null ? void 0 : A.parentField) || ((k = (H = f.options) == null ? void 0 : H.dropdownOptions) == null ? void 0 : k.parentField) || "PARENT_NODE", Be = [];
19705
19778
  let N = ((Z = f.options) == null ? void 0 : Z.displayRows) || 0, Re = 500, lt = 500, Ge = !0, ue, se;
19706
19779
  const B = Lo({
19707
19780
  get() {
@@ -19794,7 +19867,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
19794
19867
  }
19795
19868
  });
19796
19869
  }, we = () => {
19797
- var j, Q, R, D, _e, ce, qe, dt, ct, ot, _, ye, st, gt, ve, et, at, We, fe, rt, pt, wt, Nt, vt, yt, ht, no, Jt, to, Lt, qt, Wt, Ut, Fo, Ao, Qo, E, L;
19870
+ var j, Q, R, D, _e, ce, qe, dt, ct, ot, _, ye, st, gt, ve, et, at, We, fe, rt, pt, wt, Nt, vt, yt, ht, no, Jt, to, Lt, qt, Wt, Ut, Fo, Ao, Xo, E, L;
19798
19871
  if (ue) {
19799
19872
  if (f.multiple) {
19800
19873
  const it = ue.getColumnDef(g.SysInfo.GridCheckColumnFieldName);
@@ -19817,7 +19890,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
19817
19890
  )), pe = y, Ge = !0;
19818
19891
  }
19819
19892
  } else (yt = (Nt = f.options) == null ? void 0 : Nt.erFormHelper) != null && yt.DropDownRefreshKey[(vt = f.options) == null ? void 0 : vt.configId] && ((Jt = (ht = f.options) == null ? void 0 : ht.erFormHelper) != null && Jt.DropDownBindSource[(no = f.options) == null ? void 0 : no.configId]) && ((to = f.options) != null && to.itemCode) ? pe = ((Fo = (Ut = (Lt = f.options) == null ? void 0 : Lt.erFormHelper) == null ? void 0 : Ut.DropDownBindSource[(qt = f.options) == null ? void 0 : qt.configId][(Wt = f.options) == null ? void 0 : Wt.itemCode]) == null ? void 0 : Fo.dataSource) || [] : f.dataSource && (pe = f.dataSource);
19820
- pe.length === 0 ? N = 3 : pe.length < 15 ? N = pe.length + 1 : N = 15, N < 5 && ((Qo = (Ao = f.options) == null ? void 0 : Ao.groupFields) != null && Qo.length || Oe) && (N = 5), lt = N * 24 + 10, ((E = f.columns) == null ? void 0 : E.length) > 1 ? (Re = 0, K.forEach((it) => {
19893
+ pe.length === 0 ? N = 3 : pe.length < 15 ? N = pe.length + 1 : N = 15, N < 5 && ((Xo = (Ao = f.options) == null ? void 0 : Ao.groupFields) != null && Xo.length || Oe) && (N = 5), lt = N * 24 + 10, ((E = f.columns) == null ? void 0 : E.length) > 1 ? (Re = 0, K.forEach((it) => {
19821
19894
  Re += it.width;
19822
19895
  }), J.value = Re + 20, ae.value = {
19823
19896
  padding: "0px",
@@ -19971,7 +20044,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
19971
20044
  ve.autoHeight = ve.autoHeight || et, ve.wrapText = ve.wrapText || et, ve.hide = ve.hide || f.treeDropdown, R += ve.width;
19972
20045
  }), !f.treeDropdown && f.multiple && (K.unshift({
19973
20046
  colId: g.SysInfo.GridCheckColumnFieldName,
19974
- pinned: Wo() ? "right" : "left",
20047
+ pinned: zo() ? "right" : "left",
19975
20048
  headerCheckboxSelection: (ve) => f.readonly !== !0,
19976
20049
  checkboxSelection: (ve) => f.readonly !== !0 && !ve.node.group && !ve.node.footer,
19977
20050
  headerCheckboxSelectionFilteredOnly: ((_ = f.options) == null ? void 0 : _.headerCheckboxSelectionFilteredOnly) ?? !0,
@@ -19980,7 +20053,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
19980
20053
  suppressMenu: !0,
19981
20054
  resizable: !0,
19982
20055
  sortable: !1,
19983
- lockPosition: Wo() ? "right" : "left"
20056
+ lockPosition: zo() ? "right" : "left"
19984
20057
  }), R += 50), ue.selectionService.rowSelection = f.multiple ? "multiple" : "single", ue.setColumnDefs(K), f.treeDropdown && ($.width = R, ue.setAutoGroupColumnDef($)), (ye = f.options) != null && ye.gridReady && typeof ((st = f.options) == null ? void 0 : st.gridReady) == "function" && ((gt = f.options) == null || gt.gridReady({ gridApi: ue, columnApi: se })), we();
19985
20058
  }, d = (j) => {
19986
20059
  var R, D, _e;
@@ -20066,7 +20139,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
20066
20139
  style: { height: "100%", width: "100%" },
20067
20140
  groupDisplayType: ((st = (ye = f.options) == null ? void 0 : ye.groupFields) == null ? void 0 : st.length) > 0 && !f.treeDropdown ? "groupRows" : void 0,
20068
20141
  groupDefaultExpanded: f.treeDropdown ? void 0 : -1,
20069
- enableRtl: Ae(Wo)(),
20142
+ enableRtl: Ae(zo)(),
20070
20143
  localeText: Ae(hi)(),
20071
20144
  "header-height": f.treeDropdown || K.length === 1 ? 0 : void 0,
20072
20145
  treeData: f.treeDropdown,
@@ -20130,7 +20203,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
20130
20203
  label: ye.label
20131
20204
  }, {
20132
20205
  default: Y(() => [
20133
- (x(), de(zo(i(ye.value)), { style: { "vertical-align": "middle" } })),
20206
+ (x(), de(Qo(i(ye.value)), { style: { "vertical-align": "middle" } })),
20134
20207
  be("span", gd, nt(ye.label), 1)
20135
20208
  ]),
20136
20209
  _: 2
@@ -20154,21 +20227,21 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
20154
20227
  (ot = f.options) != null && ot.suffixIcon ? {
20155
20228
  name: "suffixIcon",
20156
20229
  fn: Y(() => [
20157
- (x(), de(zo(f.options.suffixIcon)))
20230
+ (x(), de(Qo(f.options.suffixIcon)))
20158
20231
  ]),
20159
20232
  key: "1"
20160
20233
  } : void 0
20161
20234
  ]), 1040, ["value", "options", "open", "dropdown-match-select-width", "show-search", "mode", "disabled", "maxTagCount", "menuItemSelectedIcon"]);
20162
20235
  };
20163
20236
  }
20164
- }), Cd = Ot({
20237
+ }), Cd = Dt({
20165
20238
  name: "ErCheckboxGroup",
20166
20239
  components: {
20167
20240
  "a-config-providver": _o,
20168
20241
  "a-checkbox": Yi,
20169
20242
  "a-checkbox-group": ca
20170
20243
  }
20171
- }), Kr = /* @__PURE__ */ Ot({
20244
+ }), Kr = /* @__PURE__ */ Dt({
20172
20245
  ...Cd,
20173
20246
  props: {
20174
20247
  modelValue: {
@@ -20291,14 +20364,14 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
20291
20364
  }, 8, ["theme", "locale"]);
20292
20365
  };
20293
20366
  }
20294
- }), Ed = Ot({
20367
+ }), Ed = Dt({
20295
20368
  name: "ErRadioGroup",
20296
20369
  components: {
20297
20370
  "a-config-providver": _o,
20298
20371
  "a-radio": wr,
20299
20372
  "a-radio-group": Nr
20300
20373
  }
20301
- }), Zr = /* @__PURE__ */ Ot({
20374
+ }), Zr = /* @__PURE__ */ Dt({
20302
20375
  ...Ed,
20303
20376
  props: {
20304
20377
  modelValue: {
@@ -20421,7 +20494,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
20421
20494
  }, 8, ["theme", "locale"]);
20422
20495
  };
20423
20496
  }
20424
- }), _d = { style: { display: "flex", "flex-direction": "column" } }, Td = { class: "erMemoEditorFooter" }, Id = Ot({
20497
+ }), _d = { style: { display: "flex", "flex-direction": "column" } }, Td = { class: "erMemoEditorFooter" }, Id = Dt({
20425
20498
  name: "ErMemoEditor",
20426
20499
  components: {
20427
20500
  "a-button": Ko,
@@ -20430,7 +20503,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
20430
20503
  "a-popover": Pr,
20431
20504
  "a-config-providver": _o
20432
20505
  }
20433
- }), ea = /* @__PURE__ */ Ot({
20506
+ }), ea = /* @__PURE__ */ Dt({
20434
20507
  ...Id,
20435
20508
  props: {
20436
20509
  modelValue: {
@@ -20573,7 +20646,7 @@ const Qi = /* @__PURE__ */ lo(pd, [["render", fd]]), gd = { style: { "padding-le
20573
20646
  style: { position: "relative", display: "flex", "flex-direction": "row-reverse", "margin-top": "-5px" }
20574
20647
  };
20575
20648
  Qt.locale("zh-cn");
20576
- const $d = Ot({
20649
+ const $d = Dt({
20577
20650
  name: "ErLayout",
20578
20651
  components: {
20579
20652
  codemirror: Ri,
@@ -20604,7 +20677,7 @@ const $d = Ot({
20604
20677
  console.log(l);
20605
20678
  }
20606
20679
  }
20607
- }), Ni = /* @__PURE__ */ Ot({
20680
+ }), Ni = /* @__PURE__ */ Dt({
20608
20681
  ...$d,
20609
20682
  props: {
20610
20683
  layoutName: {
@@ -20768,7 +20841,7 @@ const $d = Ot({
20768
20841
  const tt = ge[pe];
20769
20842
  ge[pe] = ge[Ue], ge[Ue] = tt;
20770
20843
  }
20771
- }, m = (E, L) => {
20844
+ }, h = (E, L) => {
20772
20845
  const pe = ge.findIndex((tt) => tt.ROW_GUID === E), Ue = ge.findIndex((tt) => tt.ROW_GUID === L);
20773
20846
  pe >= 0 && Ue >= 0 && pe !== Ue && (pe < Ue, ge.splice(Ue, 0, ge.splice(pe, 1)[0]));
20774
20847
  }, T = () => {
@@ -20801,7 +20874,7 @@ const $d = Ot({
20801
20874
  });
20802
20875
  }
20803
20876
  }, S = (E, L) => {
20804
- V.value && (T(), v(), He.ROW_GUID !== L.ROW_GUID && (z.value === "insert" ? m(He.ROW_GUID, L.ROW_GUID) : p(He.ROW_GUID, L.ROW_GUID), Re.value = yt(ge), X.value = [], U.value = !0, io(() => {
20877
+ V.value && (T(), v(), He.ROW_GUID !== L.ROW_GUID && (z.value === "insert" ? h(He.ROW_GUID, L.ROW_GUID) : p(He.ROW_GUID, L.ROW_GUID), Re.value = yt(ge), X.value = [], U.value = !0, io(() => {
20805
20878
  to();
20806
20879
  })));
20807
20880
  }, A = (E) => {
@@ -20989,7 +21062,7 @@ const $d = Ot({
20989
21062
  V.value = !V.value;
20990
21063
  }, 250);
20991
21064
  }, ce = (E, L) => {
20992
- var pe, Ue, tt, Et, it, Mt, At, y, M, h;
21065
+ var pe, Ue, tt, Et, it, Mt, At, y, M, m;
20993
21066
  if (L.key === "copySelection")
20994
21067
  g.Core.copyText(G.value);
20995
21068
  else if (L.key === "copyLabel")
@@ -21038,7 +21111,7 @@ const $d = Ot({
21038
21111
  Re.value = yt(ge), U.value = !0;
21039
21112
  } else if (L.key === "layoutItemExtOptions")
21040
21113
  r.erFormHelperProp.showExtOptionsEdit("tsi00gridcolumnext", E.FORM_NAME, E.FUNCTION_ID, E.ROW_GUID + "," + E.ITEM_CODE, "", E.COMPANY_CODE, !1);
21041
- else if ((h = L.key) != null && h.startsWith("controlRowSize")) {
21114
+ else if ((m = L.key) != null && m.startsWith("controlRowSize")) {
21042
21115
  for (let W = 0; W < ge.length; W++)
21043
21116
  if (ge[W].ITEM_CODE === E.ITEM_CODE) {
21044
21117
  ge[W].ROWHIGH = g.Core.toNumber(L.key.replace("controlRowSize-", ""));
@@ -21153,7 +21226,7 @@ const $d = Ot({
21153
21226
  }, rt = (E) => {
21154
21227
  r.erFormHelperProp.setAllControlDefalutValue(r.configId, !1), f("resetClick", { ...E, erFormHelper: r.erFormHelperProp, data: N.value, configId: r.configId });
21155
21228
  }, pt = async (E) => {
21156
- var pe, Ue, tt, Et, it, Mt, At, y, M, h, W, Se, ne, oe, Pe;
21229
+ var pe, Ue, tt, Et, it, Mt, At, y, M, m, W, Se, ne, oe, Pe;
21157
21230
  let L = !1;
21158
21231
  if (E.preventDefault = () => {
21159
21232
  L = !0;
@@ -21161,7 +21234,7 @@ const $d = Ot({
21161
21234
  const Le = (At = E.itemConfig) == null ? void 0 : At.AUTOFILL_COLS;
21162
21235
  Me[E.itemCode] = !0;
21163
21236
  let re = "", ze = !0;
21164
- (M = (y = E.itemConfig) == null ? void 0 : y.POP_FORM) != null && M.trim().startsWith("MenuForm:") ? re = (W = (h = E.itemConfig) == null ? void 0 : h.POP_FORM) == null ? void 0 : W.trim().substring(9) : (ne = (Se = E.itemConfig) == null ? void 0 : Se.POP_FORM) != null && ne.trim().startsWith("PopFormINQ:") && (re = (Pe = (oe = E.itemConfig) == null ? void 0 : oe.POP_FORM) == null ? void 0 : Pe.trim().substring(11), ze = !1);
21237
+ (M = (y = E.itemConfig) == null ? void 0 : y.POP_FORM) != null && M.trim().startsWith("MenuForm:") ? re = (W = (m = E.itemConfig) == null ? void 0 : m.POP_FORM) == null ? void 0 : W.trim().substring(9) : (ne = (Se = E.itemConfig) == null ? void 0 : Se.POP_FORM) != null && ne.trim().startsWith("PopFormINQ:") && (re = (Pe = (oe = E.itemConfig) == null ? void 0 : oe.POP_FORM) == null ? void 0 : Pe.trim().substring(11), ze = !1);
21165
21238
  const Ke = (ft) => {
21166
21239
  Le.length > 0 && Le.split(";").forEach((n) => {
21167
21240
  if (n.trim().length > 0) {
@@ -21173,8 +21246,8 @@ const $d = Ot({
21173
21246
  };
21174
21247
  if (!ze) {
21175
21248
  const ft = new g.PopQueryHelper(r.erFormHelperProp.ServerPartition, re, "", r.erFormHelperProp.InitialService);
21176
- ft.SelectMode = "single", await ft.show(null, (It) => {
21177
- It.checkedItem && Ke(It.checkedItem);
21249
+ ft.SelectMode = "single", await ft.show(null, (Ot) => {
21250
+ Ot.checkedItem && Ke(Ot.checkedItem);
21178
21251
  }), Me[E.itemCode] = !1;
21179
21252
  }
21180
21253
  } else E.itemCode === "erQueryButton" ? fe(E) : f("itemButtonClick", {
@@ -21223,7 +21296,7 @@ const $d = Ot({
21223
21296
  else E.WIDGET_TYPE === "antTimePicker" ? E.FORMAT_STRING.trim() === "HH:mm" || E.FORMAT_STRING.trim() === "HH" ? L.format = E.FORMAT_STRING.trim() : L.format = "HH:mm:ss" : (E.WIDGET_TYPE === "antMultiSelect" || E.WIDGET_TYPE === "erMultiSelect" || E.WIDGET_TYPE === "erCheckboxGroup") && B.push(E.FIELD_NAME);
21224
21297
  return ["antMultiSelect", "erMultiSelect", "antTextarea", "antRadioGroup", "scriptEditor", "erCheckboxGroup", "erRadioGroup"].includes(E.WIDGET_TYPE) ? L.rows = E.ROWHIGH || 1 : ["erMemoEditor"].includes(E.WIDGET_TYPE) ? L.rows = E.ROWHIGH <= 1 ? 8 : E.ROWHIGH : (L.rows = 1, E.ROWHIGH = 1), E.WIDGET_TYPE === "erSelect" && (L.displayFormat = (Ue = (pe = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : pe[E.ITEM_CODE]) == null ? void 0 : Ue.displayFormat), $.push({ itemCode: E.ITEM_CODE, widgetType: E.WIDGET_TYPE, field: E.FIELD_NAME }), L;
21225
21298
  }, yt = (E) => {
21226
- var tt, Et, it, Mt, At, y, M, h, W, Se, ne, oe, Pe, Le, re, ze, Ke, ft, It, n, kt, Vt, so, ho, uo, ei;
21299
+ var tt, Et, it, Mt, At, y, M, m, W, Se, ne, oe, Pe, Le, re, ze, Ke, ft, Ot, n, kt, Vt, so, ho, uo, ei;
21227
21300
  const L = [], pe = ["addonAfter", "addonBefore", "controls", "prefix", "step", "size", "upIcon", "keyboard", "allowClear", "suffix", "showCount", "bordered", "clearIcon", "clearText", "dateInputReadOnly", "inputReadOnly", "disabledDate", "disabledTime", "validator", "hasFeedback"], Ue = {};
21228
21301
  if (le.value && Object.keys(le.value).forEach((To) => {
21229
21302
  pe.includes(To) && (Ue[To] = le.value[To]);
@@ -21248,38 +21321,38 @@ const $d = Ot({
21248
21321
  (Je == null ? void 0 : Je.type) === "boolean" ? mo = "F4" : te.COLUMN_EDIT === "0" ? (Je == null ? void 0 : Je.type) === "datetime" ? mo = "F5" : (Je == null ? void 0 : Je.type) === "number" ? mo = "F2" : mo = "F0" : mo = "G" + te.COLUMN_EDIT;
21249
21322
  }
21250
21323
  te.WIDGET_TYPE = (M = r.erFormHelperProp) == null ? void 0 : M.getControlName(mo, te.FORMAT_STRING.trim(), te);
21251
- let Mo = ((h = te.COL_CAPTION) == null ? void 0 : h.trim()) || ((W = te.COL_CAPTION_DEFAULT) == null ? void 0 : W.trim());
21324
+ let Mo = ((m = te.COL_CAPTION) == null ? void 0 : m.trim()) || ((W = te.COL_CAPTION_DEFAULT) == null ? void 0 : W.trim());
21252
21325
  (Se = le.value) != null && Se.bilingual && ((ne = te.COL_CAPTION_DEFAULT) != null && ne.trim()) && ((oe = te.COL_CAPTION) != null && oe.trim()) && ((Pe = te.COL_CAPTION_DEFAULT) == null ? void 0 : Pe.trim()) !== ((Le = te.COL_CAPTION) == null ? void 0 : Le.trim()) && (Mo = ((re = te.COL_CAPTION_DEFAULT) == null ? void 0 : re.trim()) + "<br>" + ((ze = te.COL_CAPTION) == null ? void 0 : ze.trim())), Mo.split(/<br\s*\/?>/gi).forEach((Je) => {
21253
21326
  if (te.HEAD_TEXTVISIBLE !== "0" && te.WIDGET_TYPE !== "label") {
21254
- let Dt = g.Core.getTextWidth(`${(te.ITEM_MUST_FLAG === "1" ? "*" : "") + Je}`, "13px Arial") + 12;
21255
- te.TOOL_TIP.trim().length > 0 && (Dt = Dt + 20), xe < Dt && (xe = Dt);
21327
+ let St = g.Core.getTextWidth(`${(te.ITEM_MUST_FLAG === "1" ? "*" : "") + Je}`, "13px Arial") + 12;
21328
+ te.TOOL_TIP.trim().length > 0 && (St = St + 20), xe < St && (xe = St);
21256
21329
  }
21257
21330
  }), we = we || /<br\s*\/?>/i.test(Mo), g.Core.toNumber((ft = (Ke = le.value) == null ? void 0 : Ke[te.ITEM_CODE]) == null ? void 0 : ft.labelWidth) > 0 && (te.labelWidth = g.Core.toNumber(le.value[te.ITEM_CODE].labelWidth));
21258
21331
  let Co = 1, yo = 1;
21259
21332
  if (Number(te.ROWHIGH) > 1 && ["3", "8", "B", "D", "E", "M"].includes(te.COLUMN_EDIT) ? yo = Number(te.ROWHIGH) || 1 : te.ROWHIGH = 1, Yt < yo && (Yt = yo), Ne === "F" && +(te.COL_WIDTH > 1) ? Co = Number(te.COL_WIDTH) : te.COL_WIDTH = 1, bt + Co > Ie && (Co = Ie - bt), Co > 1) {
21260
21333
  const Je = Co - 1;
21261
21334
  Co = 1;
21262
- for (let Dt = 0; Dt < Je; Dt++) {
21263
- const Pt = Ct.toString() + "," + (bt + Dt).toString();
21335
+ for (let St = 0; St < Je; St++) {
21336
+ const Pt = Ct.toString() + "," + (bt + St).toString();
21264
21337
  if (To.indexOf(Pt) >= 0)
21265
21338
  break;
21266
21339
  To.push(Pt), Co++;
21267
21340
  }
21268
21341
  }
21269
21342
  for (let Je = 0; Je < Co; Je++)
21270
- for (let Dt = 0; Dt < yo; Dt++) {
21271
- const Pt = (Ct + Dt).toString() + "," + (bt + Je).toString();
21343
+ for (let St = 0; St < yo; St++) {
21344
+ const Pt = (Ct + St).toString() + "," + (bt + Je).toString();
21272
21345
  To.indexOf(Pt) >= 0 || To.push(Pt);
21273
21346
  }
21274
- te.ROW_START = Ct + 1, te.ROW_END = Ct + 1 + yo, te.COL_START = bt + 1, te.COL_END = bt + 1 + Co, te.Props = vt(te), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, te.Props), le.value[te.ITEM_CODE] = { ...(It = le.value) == null ? void 0 : It[te.ITEM_CODE], ...te.extendOptions };
21347
+ te.ROW_START = Ct + 1, te.ROW_END = Ct + 1 + yo, te.COL_START = bt + 1, te.COL_END = bt + 1 + Co, te.Props = vt(te), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, te.Props), le.value[te.ITEM_CODE] = { ...(Ot = le.value) == null ? void 0 : Ot[te.ITEM_CODE], ...te.extendOptions };
21275
21348
  const fo = { ...Ue, ...(n = le.value) == null ? void 0 : n[te.ITEM_CODE] };
21276
21349
  r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, fo), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { field: te.FIELD_NAME }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { controlType: te.WIDGET_TYPE }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { visible: te.IS_VISIBLE }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { placeholder: te.TOOL_TIP }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { labelText: Mo }), r.autoBind ? (r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { readOnly: !0 }), te.COLUMN_EDIT === "1" && r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { buttonEnable: !1 })) : (r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { readOnly: te.READ_ONLY === "1" }), te.COLUMN_EDIT === "1" && r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { buttonEnable: te.ALLOW_EDIT === "1" })), Rt.Props = te.Props, r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { rows: (kt = Rt.Props) == null ? void 0 : kt.rows });
21277
- const qo = g.Core.toHexColor(te.HEAD_TEXTCOLOR), me = g.Core.toHexColor(te.HEAD_BACKCOLOR), Tt = g.Core.toHexColor(te.CELL_TEXTCOLOR), ro = g.Core.toHexColor(te.CELL_BACKCOLOR);
21350
+ const jo = g.Core.toHexColor(te.HEAD_TEXTCOLOR), me = g.Core.toHexColor(te.HEAD_BACKCOLOR), Tt = g.Core.toHexColor(te.CELL_TEXTCOLOR), ro = g.Core.toHexColor(te.CELL_BACKCOLOR);
21278
21351
  if (((Vt = Rt.UNBOUND_EXPRESSION) == null ? void 0 : Vt.trim().length) === 0)
21279
- te.LabelForeColor = qo, te.LabelBackColor = me, te.TextForeColor = Tt, te.TextBackColor = ro, r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { TextForeColor: te.TextForeColor }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { TextBackColor: te.TextBackColor }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { LabelForeColor: te.LabelForeColor }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { LabelBackColor: te.LabelBackColor });
21352
+ te.LabelForeColor = jo, te.LabelBackColor = me, te.TextForeColor = Tt, te.TextBackColor = ro, r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { TextForeColor: te.TextForeColor }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { TextBackColor: te.TextBackColor }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { LabelForeColor: te.LabelForeColor }), r.erFormHelperProp.setLayoutItemOption(r.configId, te.ITEM_CODE, { LabelBackColor: te.LabelBackColor });
21280
21353
  else {
21281
21354
  const Je = {};
21282
- g.Core.colorIsTransparentOrEmpty(qo) || (Je.labelForeColor = qo), g.Core.colorIsTransparentOrEmpty(me) || (Je.labelBackgroundColor = me), g.Core.colorIsTransparentOrEmpty(Tt) || (Je.textForeColor = Tt), g.Core.colorIsTransparentOrEmpty(ro) || (Je.textBackgroundColor = ro), Object.keys(Je).length > 0 && (Je.condition = (so = Rt.UNBOUND_EXPRESSION) == null ? void 0 : so.trim(), r.erFormHelperProp.setLayoutConditionStyleConfigInfo(r.configId, te.ITEM_CODE, Je));
21355
+ g.Core.colorIsTransparentOrEmpty(jo) || (Je.labelForeColor = jo), g.Core.colorIsTransparentOrEmpty(me) || (Je.labelBackgroundColor = me), g.Core.colorIsTransparentOrEmpty(Tt) || (Je.textForeColor = Tt), g.Core.colorIsTransparentOrEmpty(ro) || (Je.textBackgroundColor = ro), Object.keys(Je).length > 0 && (Je.condition = (so = Rt.UNBOUND_EXPRESSION) == null ? void 0 : so.trim(), r.erFormHelperProp.setLayoutConditionStyleConfigInfo(r.configId, te.ITEM_CODE, Je));
21283
21356
  }
21284
21357
  ["erSelect", "erMultiSelect", "antSelect", "antMultiSelect", "antInput"].includes(te.WIDGET_TYPE) && (((ho = te.TextBackColor) == null ? void 0 : ho.trim().length) > 0 || ((uo = te.TextForeColor) == null ? void 0 : uo.trim().length) > 0) && ae.push({
21285
21358
  itemCode: te.ITEM_CODE,
@@ -21296,9 +21369,9 @@ const $d = Ot({
21296
21369
  trigger: "change",
21297
21370
  customType: "required",
21298
21371
  widgetType: te.WIDGET_TYPE,
21299
- validator: async (Je, Dt) => {
21372
+ validator: async (Je, St) => {
21300
21373
  const Pt = te.MUST_INPUT_CONDITION.trim();
21301
- if (Dt = Je.widgetType === "antInputNumber" ? g.Core.toNumber(Dt) : Dt, g.Core.isNullOrEmpty(Dt))
21374
+ if (St = Je.widgetType === "antInputNumber" ? g.Core.toNumber(St) : St, g.Core.isNullOrEmpty(St))
21302
21375
  if (Pt.length > 0 && N.value.uid) {
21303
21376
  let zt;
21304
21377
  return te.CONDITION_TABLE.trim().length > 0 && te.CONDITION_TABLE.trim().toUpperCase() !== Ee ? await io(() => {
@@ -21315,7 +21388,7 @@ const $d = Ot({
21315
21388
  itemCode: te.FIELD_NAME,
21316
21389
  formatter: _(te.FIELD_NAME, "formatter"),
21317
21390
  parser: _(te.FIELD_NAME, "parser"),
21318
- validator: (Je, Dt) => fo.validator(Je, Dt) ? (r.erFormHelperProp.setLayoutItemOption(r.configId, Je.itemCode, { validatorMsg: void 0, formatter: Je.formatterr, parser: Je.parser }), Promise.resolve()) : (r.erFormHelperProp.setLayoutItemOption(r.configId, Je.itemCode, { formatter: void 0 }), Promise.reject(new Error("Invalid value")))
21391
+ validator: (Je, St) => fo.validator(Je, St) ? (r.erFormHelperProp.setLayoutItemOption(r.configId, Je.itemCode, { validatorMsg: void 0, formatter: Je.formatterr, parser: Je.parser }), Promise.resolve()) : (r.erFormHelperProp.setLayoutItemOption(r.configId, Je.itemCode, { formatter: void 0 }), Promise.reject(new Error("Invalid value")))
21319
21392
  }) : te.WIDGET_TYPE === "antInputNumber" ? (te.decimals = -1, te.DATA_ACCU >= 0 && te.DATA_ACCU <= te.MAX_LENGTH && (te.decimals = te.DATA_ACCU), te.max = g.Core.getMaxNumber(te.MAX_LENGTH, te.DATA_ACCU), te.min = -1 * g.Core.getMaxNumber(te.MAX_LENGTH, te.DATA_ACCU), te.MAX_VAL !== -1 && te.MAX_VAL < te.max && (te.max = te.MAX_VAL), te.MIN_VAL !== -1 && te.MIN_VAL > te.min && (te.min = te.MIN_VAL), ao.push({
21320
21393
  message: "",
21321
21394
  trigger: "change",
@@ -21326,12 +21399,12 @@ const $d = Ot({
21326
21399
  decimals: te.decimals,
21327
21400
  formatter: _(te.FIELD_NAME, "formatter"),
21328
21401
  parser: _(te.FIELD_NAME, "parser"),
21329
- validator: (Je, Dt) => {
21330
- if (Dt > Je.max || Dt < Je.min)
21402
+ validator: (Je, St) => {
21403
+ if (St > Je.max || St < Je.min)
21331
21404
  return Je.message = g.Core.$t("ERX.InputValueOutOfRange") + `[${Je.min} ~ ${Je.max}]`, Promise.reject(new Error("Invalid value"));
21332
- if (Je.decimals >= 0 && g.Core.toString(Dt).length > 0) {
21405
+ if (Je.decimals >= 0 && g.Core.toString(St).length > 0) {
21333
21406
  let Pt = 0;
21334
- const zt = g.Core.toString(Dt).split(".");
21407
+ const zt = g.Core.toString(St).split(".");
21335
21408
  if (zt.length > 1 && (Pt = zt[1].length), Pt > Je.decimals)
21336
21409
  return Je.message = g.Core.$t("ERX.InputValueOutOfPrecision") + `[${Je.decimals}]`, Promise.reject(new Error("Invalid value"));
21337
21410
  }
@@ -21343,9 +21416,9 @@ const $d = Ot({
21343
21416
  pattern: te.FORMAT_TYPE === "Custom" || te.FORMAT_TYPE === "RegEx" ? te.FORMAT_STRING : "",
21344
21417
  maxLength: te.MAX_LENGTH,
21345
21418
  itemCode: te.FIELD_NAME,
21346
- validator: (Je, Dt) => {
21419
+ validator: (Je, St) => {
21347
21420
  var zt;
21348
- const Pt = g.Core.toString(Dt).trim();
21421
+ const Pt = g.Core.toString(St).trim();
21349
21422
  if (Pt.length > 0) {
21350
21423
  if (Je.maxLength > 0 && Je.maxLength < no(Pt))
21351
21424
  return Je.message = g.Core.$t("ERX.InputValueOutOfLength") + `[${Je.maxLength}]`, Promise.reject(new Error("Invalid value"));
@@ -21361,8 +21434,8 @@ const $d = Ot({
21361
21434
  if (Kt > 0 && (Kt + ut > Ie && (Kt = Ie - ut), Kt > 0)) {
21362
21435
  const Je = { ...te };
21363
21436
  Je.FIELD_NAME = "EMPTY" + Ct.toString(), Je.COL_CAPTION = "", Je.WIDGET_TYPE = "NA", Je.COLUMN_EDIT = "NA", Je.ITEM_MUST_FLAG = "0", Je.ROW_START = Ct + 1, Je.ROW_END = Ct + 1 + yo, Je.COL_START = bt + 1 + 1, Je.COL_END = bt + 1 + 1 + Kt, Je.LabelForeColor = "", Je.LabelBackColor = "", Je.TextForeColor = "", Je.TextBackColor = "", L.push(Je);
21364
- for (let Dt = 0; Dt < Kt; Dt++) {
21365
- const Pt = Ct.toString() + "," + (bt + 1 + Dt).toString();
21437
+ for (let St = 0; St < Kt; St++) {
21438
+ const Pt = Ct.toString() + "," + (bt + 1 + St).toString();
21366
21439
  To.indexOf(Pt) >= 0 || To.push(Pt);
21367
21440
  }
21368
21441
  if (ut = ut + Kt, ut >= Ie)
@@ -21380,7 +21453,7 @@ const $d = Ot({
21380
21453
  }
21381
21454
  return L;
21382
21455
  }, ht = () => {
21383
- var E, L, pe, Ue, tt, Et, it, Mt, At, y, M, h, W, Se, ne;
21456
+ var E, L, pe, Ue, tt, Et, it, Mt, At, y, M, m, W, Se, ne;
21384
21457
  if (r.erFormHelperProp) {
21385
21458
  const oe = r.erFormHelperProp.getConfigInfo(r.configId.trim());
21386
21459
  if (((E = oe == null ? void 0 : oe.TSI00GRIDVIEW) == null ? void 0 : E.length) > 0) {
@@ -21390,9 +21463,9 @@ const $d = Ot({
21390
21463
  (re == null ? void 0 : re.trim().length) > 0 && (Pe = JSON.parse(re)), ((pe = Xe.EXT_OPTIONS) == null ? void 0 : pe.trim().length) > 0 && (Le = JSON.parse(Xe.EXT_OPTIONS)), le.value = { ...Pe, ...Le, ...le.value }, e = le.value.hasFeedback !== "false", Ee.value = Xe.TABLE_NAME, r.configCaption === void 0 || r.configCaption.length === 0 ? ue.value = Xe.FUNCNAME : ue.value = r.configCaption, lt.value = Xe.ROWHIGH || -1, ke.value = Ne === "F" && Xe.BESTFIT === "1", g.Core.toNumber(Xe.FORM_WIDTH) > 0 && (Ft = Xe.FORM_WIDTH + "px"), Ne !== "F" ? (Ie = g.Core.toNumber(Xe.EDIT_COLS_COUNT), Ie = Ie > 0 ? Ie : 3) : (Ie = g.Core.toNumber(Xe.DISPLAY_WIDTH), Ie = Ie > 0 ? Ie : 4), Qe = g.Core.toNumber((Ue = le.value) == null ? void 0 : Ue.gridGap), Qe = Qe > 0 ? Qe : g.Core.toNumber(r.erFormHelperProp.getFormSysInfo("LAYOUTPADDING")), Qe = Qe > 0 ? Qe : 5;
21391
21464
  const ze = Ne !== "F" ? r.erFormHelperProp.getBindingTable(r.configId) : void 0;
21392
21465
  ze ? ge = (Et = (tt = oe.TSI00GRIDCOLUMN) == null ? void 0 : tt.filter((Ke) => {
21393
- var ft, It;
21394
- return Ke.IS_VISIBLE === "1" && Ke.FIELD_NAME && ((It = (ft = ze.options) == null ? void 0 : ft.schema) == null ? void 0 : It[Ke.FIELD_NAME]);
21395
- })) == null ? void 0 : Et.map((Ke) => ({ ...Ke })) : ge = (Mt = (it = oe.TSI00GRIDCOLUMN) == null ? void 0 : it.filter((Ke) => Ke.IS_VISIBLE === "1")) == null ? void 0 : Mt.map((Ke) => ({ ...Ke })), Re.value = yt(ge), r.erFormHelperProp.setLayoutConfigRelationInfo(r.configId.trim(), r.layoutName.trim()), g.Core.toNumber((At = le.value) == null ? void 0 : At.labelWidth) > 0 ? De.value = g.Core.toNumber((y = le.value) == null ? void 0 : y.labelWidth) : g.Core.toNumber((M = le.value) == null ? void 0 : M.maxLabelWidth) > 0 && g.Core.toNumber((h = le.value) == null ? void 0 : h.maxLabelWidth) < xe ? De.value = g.Core.toNumber((W = le.value) == null ? void 0 : W.maxLabelWidth) : De.value = xe, Be.value = we ? !0 : ((Se = le.value) == null ? void 0 : Se.labelWrap) ?? g.Core.toNumber((ne = le.value) == null ? void 0 : ne.maxLabelWidth) < xe, r.displayRows > 0 && r.displayRows < mt ? lt.value = r.displayRows : lt.value = -1, Ne === "F" && (Ge.value = r.labelAlignTop === !0 ? !0 : oe.TSI00GRIDVIEW[0].SHOW_COLUMN_HEADER === "1"), r.autoBind && r.erFormHelperProp.setBindingTableName(r.configId.trim());
21466
+ var ft, Ot;
21467
+ return Ke.IS_VISIBLE === "1" && Ke.FIELD_NAME && ((Ot = (ft = ze.options) == null ? void 0 : ft.schema) == null ? void 0 : Ot[Ke.FIELD_NAME]);
21468
+ })) == null ? void 0 : Et.map((Ke) => ({ ...Ke })) : ge = (Mt = (it = oe.TSI00GRIDCOLUMN) == null ? void 0 : it.filter((Ke) => Ke.IS_VISIBLE === "1")) == null ? void 0 : Mt.map((Ke) => ({ ...Ke })), Re.value = yt(ge), r.erFormHelperProp.setLayoutConfigRelationInfo(r.configId.trim(), r.layoutName.trim()), g.Core.toNumber((At = le.value) == null ? void 0 : At.labelWidth) > 0 ? De.value = g.Core.toNumber((y = le.value) == null ? void 0 : y.labelWidth) : g.Core.toNumber((M = le.value) == null ? void 0 : M.maxLabelWidth) > 0 && g.Core.toNumber((m = le.value) == null ? void 0 : m.maxLabelWidth) < xe ? De.value = g.Core.toNumber((W = le.value) == null ? void 0 : W.maxLabelWidth) : De.value = xe, Be.value = we ? !0 : ((Se = le.value) == null ? void 0 : Se.labelWrap) ?? g.Core.toNumber((ne = le.value) == null ? void 0 : ne.maxLabelWidth) < xe, r.displayRows > 0 && r.displayRows < mt ? lt.value = r.displayRows : lt.value = -1, Ne === "F" && (Ge.value = r.labelAlignTop === !0 ? !0 : oe.TSI00GRIDVIEW[0].SHOW_COLUMN_HEADER === "1"), r.autoBind && r.erFormHelperProp.setBindingTableName(r.configId.trim());
21396
21469
  }
21397
21470
  }
21398
21471
  };
@@ -21488,7 +21561,7 @@ const $d = Ot({
21488
21561
  }), fi(() => {
21489
21562
  r.configId && r.autoBind && r.erFormHelperProp.getBindingTable(r.configId).removeBindingInfo(r.erFormHelperProp, r.configId);
21490
21563
  });
21491
- const Qo = Lo(() => (E) => Jt(E));
21564
+ const Xo = Lo(() => (E) => Jt(E));
21492
21565
  return Jo(() => r.erFormHelperProp.LayoutBindModelUid[r.configId], async (E, L) => {
21493
21566
  var pe;
21494
21567
  if (r.autoBind && Ee.value.trim().length > 0) {
@@ -21501,7 +21574,7 @@ const $d = Ot({
21501
21574
  d.validate(), d.clearValidate(), !t && N.value.uid ? (r.erFormHelperProp.setAllControlReadOnly(r.configId, "default"), t = !0) : t && N.value.uid.length === 0 && (r.erFormHelperProp.setAllControlReadOnly(r.configId, !0), t = !1);
21502
21575
  });
21503
21576
  }), (E, L) => {
21504
- const pe = Ve("a-button"), Ue = Ve("a-input"), tt = Ve("a-input-group"), Et = Ve("a-tooltip"), it = Ve("a-form-item"), Mt = Ve("a-radio-group"), At = Ve("a-tag"), y = Ve("a-select"), M = Ve("a-textarea"), h = Ve("a-checkbox"), W = Ve("a-switch"), Se = Ve("a-input-number"), ne = Ve("a-date-picker"), oe = Ve("a-time-picker"), Pe = Ve("a-divider"), Le = Ve("a-menu"), re = Ve("a-dropdown"), ze = Ve("a-form"), Ke = Ve("a-config-providver");
21577
+ const pe = Ve("a-button"), Ue = Ve("a-input"), tt = Ve("a-input-group"), Et = Ve("a-tooltip"), it = Ve("a-form-item"), Mt = Ve("a-radio-group"), At = Ve("a-tag"), y = Ve("a-select"), M = Ve("a-textarea"), m = Ve("a-checkbox"), W = Ve("a-switch"), Se = Ve("a-input-number"), ne = Ve("a-date-picker"), oe = Ve("a-time-picker"), Pe = Ve("a-divider"), Le = Ve("a-menu"), re = Ve("a-dropdown"), ze = Ve("a-form"), Ke = Ve("a-config-providver");
21505
21578
  return x(), Ze("div", null, [
21506
21579
  Fe(Ke, {
21507
21580
  theme: s.value,
@@ -21569,14 +21642,14 @@ const $d = Ot({
21569
21642
  ]),
21570
21643
  _: 1
21571
21644
  }, 8, ["id", "name", "icon"])) : je("", !0),
21572
- $o(E.$slots, "borderSlot")
21645
+ Wo(E.$slots, "borderSlot")
21573
21646
  ]),
21574
21647
  _: 2
21575
21648
  }, [
21576
21649
  Re.value.length > 0 ? {
21577
21650
  name: "contentSlot",
21578
21651
  fn: Y(() => {
21579
- var ft, It;
21652
+ var ft, Ot;
21580
21653
  return [
21581
21654
  (x(), de(ze, {
21582
21655
  ref_key: "formRef",
@@ -21584,7 +21657,7 @@ const $d = Ot({
21584
21657
  model: N.value,
21585
21658
  hideRequiredMark: !0,
21586
21659
  key: ((ft = r.erFormHelperProp) == null ? void 0 : ft.FormId) + l.configId + "_content",
21587
- id: ((It = r.erFormHelperProp) == null ? void 0 : It.FormId) + l.configId + "_content",
21660
+ id: ((Ot = r.erFormHelperProp) == null ? void 0 : Ot.FormId) + l.configId + "_content",
21588
21661
  colon: !1,
21589
21662
  "label-wrap": Be.value,
21590
21663
  layout: Ge.value ? "vertical" : "horizontal",
@@ -21617,7 +21690,7 @@ const $d = Ot({
21617
21690
  }, null, 8, ["items", "onClick"])) : je("", !0)
21618
21691
  ]),
21619
21692
  default: Y(() => {
21620
- var Vt, so, ho, uo, ei, To, Go, ti, Ct, Yt, ut, bt, Rt, te, mo, Mo, Xo, Co, yo, fo, qo;
21693
+ var Vt, so, ho, uo, ei, To, Go, ti, Ct, Yt, ut, bt, Rt, te, mo, Mo, qo, Co, yo, fo, jo;
21621
21694
  return [
21622
21695
  n.WIDGET_TYPE === "antInputGroup" ? $t((x(), de(it, go({
21623
21696
  key: 0,
@@ -21700,7 +21773,7 @@ const $d = Ot({
21700
21773
  ref_for: !0
21701
21774
  }, Ae(d).validateInfos[n.ITEM_CODE]), oo({
21702
21775
  default: Y(() => {
21703
- var me, Tt, ro, ao, Kt, Je, Dt, Pt, zt, Eo;
21776
+ var me, Tt, ro, ao, Kt, Je, St, Pt, zt, Eo;
21704
21777
  return [
21705
21778
  (x(), de(ii, {
21706
21779
  modelValue: N.value[n.FIELD_NAME],
@@ -21727,7 +21800,7 @@ const $d = Ot({
21727
21800
  beforeDropdownOpen: le.value.beforeDropdownOpen,
21728
21801
  ...le.value[n.ITEM_CODE],
21729
21802
  valueField: (Je = (Kt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Kt[n.ITEM_CODE]) == null ? void 0 : Je.dataValueField,
21730
- textField: (Pt = (Dt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Dt[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
21803
+ textField: (Pt = (St = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : St[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
21731
21804
  displayFormat: (Eo = (zt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : zt[n.ITEM_CODE]) == null ? void 0 : Eo.displayFormat,
21732
21805
  imageCombo: n.COLUMN_EDIT === "P",
21733
21806
  configId: r.configId.trim(),
@@ -21772,7 +21845,7 @@ const $d = Ot({
21772
21845
  ref_for: !0
21773
21846
  }, Ae(d).validateInfos[n.ITEM_CODE]), oo({
21774
21847
  default: Y(() => {
21775
- var me, Tt, ro, ao, Kt, Je, Dt, Pt, zt, Eo;
21848
+ var me, Tt, ro, ao, Kt, Je, St, Pt, zt, Eo;
21776
21849
  return [
21777
21850
  (x(), de(ii, {
21778
21851
  modelValue: N.value[n.FIELD_NAME],
@@ -21801,7 +21874,7 @@ const $d = Ot({
21801
21874
  beforeDropdownOpen: le.value.beforeDropdownOpen,
21802
21875
  ...le.value[n.ITEM_CODE],
21803
21876
  valueField: (Je = (Kt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Kt[n.ITEM_CODE]) == null ? void 0 : Je.dataValueField,
21804
- textField: (Pt = (Dt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Dt[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
21877
+ textField: (Pt = (St = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : St[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
21805
21878
  displayFormat: (Eo = (zt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : zt[n.ITEM_CODE]) == null ? void 0 : Eo.displayFormat,
21806
21879
  imageCombo: n.COLUMN_EDIT === "P",
21807
21880
  configId: r.configId.trim(),
@@ -21846,7 +21919,7 @@ const $d = Ot({
21846
21919
  ref_for: !0
21847
21920
  }, Ae(d).validateInfos[n.ITEM_CODE]), oo({
21848
21921
  default: Y(() => {
21849
- var me, Tt, ro, ao, Kt, Je, Dt, Pt, zt, Eo;
21922
+ var me, Tt, ro, ao, Kt, Je, St, Pt, zt, Eo;
21850
21923
  return [
21851
21924
  (x(), de(ii, {
21852
21925
  modelValue: N.value[n.FIELD_NAME],
@@ -21874,7 +21947,7 @@ const $d = Ot({
21874
21947
  beforeDropdownOpen: le.value.beforeDropdownOpen,
21875
21948
  ...le.value[n.ITEM_CODE],
21876
21949
  valueField: (Je = (Kt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Kt[n.ITEM_CODE]) == null ? void 0 : Je.dataValueField,
21877
- textField: (Pt = (Dt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Dt[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
21950
+ textField: (Pt = (St = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : St[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
21878
21951
  displayFormat: (Eo = (zt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : zt[n.ITEM_CODE]) == null ? void 0 : Eo.displayFormat,
21879
21952
  configId: r.configId.trim(),
21880
21953
  itemCode: n.ITEM_CODE,
@@ -21976,7 +22049,7 @@ const $d = Ot({
21976
22049
  "allow-clear": _(n.ITEM_CODE, "readOnly") !== !0 && _(n.ITEM_CODE, "allowClear") !== !1,
21977
22050
  disabled: _(n.ITEM_CODE, "allowEdit") === !1,
21978
22051
  placeholder: n.HEAD_TEXTVISIBLE === "0" ? _(n.ITEM_CODE, "placeholder") : void 0,
21979
- options: Qo.value(n.ITEM_CODE),
22052
+ options: Xo.value(n.ITEM_CODE),
21980
22053
  dropdownStyle: { pointerEvents: _(n.ITEM_CODE, "readOnly") ? "none" : "auto" },
21981
22054
  style: _t({ width: "100%", minHeight: _(n.ITEM_CODE, "rows") > 1 ? (_(n.ITEM_CODE, "rows") * 24 + 5).toString() + "px" : void 0, color: _(n.ITEM_CODE, "TextForeColor"), backgroundColor: _(n.ITEM_CODE, "TextBackColor") })
21982
22055
  }, oo({ _: 2 }, [
@@ -22027,7 +22100,7 @@ const $d = Ot({
22027
22100
  ref_for: !0
22028
22101
  }, Ae(d).validateInfos[n.ITEM_CODE]), oo({
22029
22102
  default: Y(() => {
22030
- var me, Tt, ro, ao, Kt, Je, Dt, Pt, zt, Eo;
22103
+ var me, Tt, ro, ao, Kt, Je, St, Pt, zt, Eo;
22031
22104
  return [
22032
22105
  (x(), de(Kr, {
22033
22106
  modelValue: N.value[n.FIELD_NAME],
@@ -22048,7 +22121,7 @@ const $d = Ot({
22048
22121
  floatingFilter: le.value.floatingFilter,
22049
22122
  ...le.value[n.ITEM_CODE],
22050
22123
  valueField: (Je = (Kt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Kt[n.ITEM_CODE]) == null ? void 0 : Je.dataValueField,
22051
- textField: (Pt = (Dt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Dt[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
22124
+ textField: (Pt = (St = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : St[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
22052
22125
  displayFormat: (Eo = (zt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : zt[n.ITEM_CODE]) == null ? void 0 : Eo.displayFormat,
22053
22126
  configId: r.configId.trim(),
22054
22127
  itemCode: n.ITEM_CODE,
@@ -22092,7 +22165,7 @@ const $d = Ot({
22092
22165
  ref_for: !0
22093
22166
  }, Ae(d).validateInfos[n.ITEM_CODE]), oo({
22094
22167
  default: Y(() => {
22095
- var me, Tt, ro, ao, Kt, Je, Dt, Pt, zt, Eo;
22168
+ var me, Tt, ro, ao, Kt, Je, St, Pt, zt, Eo;
22096
22169
  return [
22097
22170
  (x(), de(Zr, {
22098
22171
  modelValue: N.value[n.FIELD_NAME],
@@ -22113,7 +22186,7 @@ const $d = Ot({
22113
22186
  floatingFilter: le.value.floatingFilter,
22114
22187
  ...le.value[n.ITEM_CODE],
22115
22188
  valueField: (Je = (Kt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Kt[n.ITEM_CODE]) == null ? void 0 : Je.dataValueField,
22116
- textField: (Pt = (Dt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : Dt[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
22189
+ textField: (Pt = (St = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : St[n.ITEM_CODE]) == null ? void 0 : Pt.dataTextField,
22117
22190
  displayFormat: (Eo = (zt = r.erFormHelperProp.DropDownBindSource[r.configId.trim()]) == null ? void 0 : zt[n.ITEM_CODE]) == null ? void 0 : Eo.displayFormat,
22118
22191
  configId: r.configId.trim(),
22119
22192
  itemCode: n.ITEM_CODE,
@@ -22315,7 +22388,7 @@ const $d = Ot({
22315
22388
  tooltip: _(n.ITEM_CODE, "placeholder")
22316
22389
  }, oo({
22317
22390
  default: Y(() => [
22318
- (x(), de(h, {
22391
+ (x(), de(m, {
22319
22392
  checked: N.value[n.FIELD_NAME],
22320
22393
  "onUpdate:checked": (me) => N.value[n.FIELD_NAME] = me,
22321
22394
  onChange: (me) => Lt({ itemCode: n.ITEM_CODE, field: n.FIELD_NAME, widgetType: "antCheckbox" }),
@@ -22616,7 +22689,7 @@ const $d = Ot({
22616
22689
  [Zt, _(n.ITEM_CODE, "visible")]
22617
22690
  ]) : n.WIDGET_TYPE === "label" ? $t((x(), Ze("div", {
22618
22691
  key: 17,
22619
- id: ((Xo = r.erFormHelperProp) == null ? void 0 : Xo.FormId) + l.configId + n.ITEM_CODE + "_span",
22692
+ id: ((qo = r.erFormHelperProp) == null ? void 0 : qo.FormId) + l.configId + n.ITEM_CODE + "_span",
22620
22693
  "label-col": n.labelWidth ? { style: { width: `${n.labelWidth}px` } } : void 0,
22621
22694
  style: _t({ textAlign: n.HALIGNMENT === "Near" ? "left" : n.HALIGNMENT === "Far" ? "right" : "center", color: _(n.ITEM_CODE, "LabelForeColor"), backgroundColor: _(n.ITEM_CODE, "LabelBackColor") })
22622
22695
  }, nt(n.HEAD_TEXTVISIBLE === "1" ? _(n.ITEM_CODE, "labelText") : V.value ? _(n.ITEM_CODE, "labelText") + "(dev mode)" : ""), 13, Gd)), [
@@ -22646,7 +22719,7 @@ const $d = Ot({
22646
22719
  ]), 8, Ud)) : $t((x(), de(it, go({
22647
22720
  key: 20,
22648
22721
  "has-feedback": _(n.ITEM_CODE, "hasFeedback") !== !1,
22649
- id: ((qo = r.erFormHelperProp) == null ? void 0 : qo.FormId) + l.configId + n.ITEM_CODE + "_span",
22722
+ id: ((jo = r.erFormHelperProp) == null ? void 0 : jo.FormId) + l.configId + n.ITEM_CODE + "_span",
22650
22723
  "label-col": n.labelWidth ? { style: { width: `${n.labelWidth}px` } } : void 0,
22651
22724
  tooltip: _(n.ITEM_CODE, "placeholder"),
22652
22725
  ref_for: !0
@@ -22744,13 +22817,13 @@ const $d = Ot({
22744
22817
  }), Wd = {
22745
22818
  key: 0,
22746
22819
  class: "er-tree-find-panel-input"
22747
- }, zd = Ot({
22820
+ }, zd = Dt({
22748
22821
  name: "ErTree",
22749
22822
  components: {
22750
22823
  "a-input": Vo,
22751
22824
  "a-config-providver": _o
22752
22825
  }
22753
- }), Xi = /* @__PURE__ */ Ot({
22826
+ }), Xi = /* @__PURE__ */ Dt({
22754
22827
  ...zd,
22755
22828
  props: {
22756
22829
  dataSource: {
@@ -22928,7 +23001,7 @@ const $d = Ot({
22928
23001
  }, Ae(G), {
22929
23002
  class: "ag-theme-balham er-devtree-grid",
22930
23003
  localeText: Ae(hi)(),
22931
- enableRtl: Ae(Wo)(),
23004
+ enableRtl: Ae(zo)(),
22932
23005
  rowSelection: "single",
22933
23006
  style: { height: "100%", width: "100%" },
22934
23007
  columnDefs: q.value,
@@ -22950,12 +23023,12 @@ const $d = Ot({
22950
23023
  ], 2);
22951
23024
  };
22952
23025
  }
22953
- }), Qd = { key: 0 }, Xd = Ot({
23026
+ }), Qd = { key: 0 }, Xd = Dt({
22954
23027
  name: "er-pop-free",
22955
23028
  components: {
22956
23029
  ErDialog: Zo
22957
23030
  }
22958
- }), qd = /* @__PURE__ */ Ot({
23031
+ }), qd = /* @__PURE__ */ Dt({
22959
23032
  ...Xd,
22960
23033
  props: {
22961
23034
  popFreeHelperProp: {
@@ -23023,7 +23096,7 @@ const $d = Ot({
23023
23096
  if (!await V.checkRequiredInput(X))
23024
23097
  return;
23025
23098
  if (((Ie = r.popFreeHelperProp) == null ? void 0 : Ie.OkButtonService.trim().length) > 0) {
23026
- var B = new St(), $ = V.convertModelAsBlock(r.popFreeHelperProp.DataModel, r.popFreeHelperProp.ExtendJsonData);
23099
+ var B = new It(), $ = V.convertModelAsBlock(r.popFreeHelperProp.DataModel, r.popFreeHelperProp.ExtendJsonData);
23027
23100
  if (((Ne = r.popFreeHelperProp) == null ? void 0 : Ne.EditType) === "Modify" ? (xe = r.popFreeHelperProp) != null && xe.TableName && ((we = r.popFreeHelperProp) == null ? void 0 : we.TableName.trim().length) > 0 ? $.rename(((Xe = r.popFreeHelperProp) == null ? void 0 : Xe.TableName.trim()) + "_MODIFY") : ee && ee.TABLE_NAME && ee.TABLE_NAME.trim().length > 0 && $.rename(ee.TABLE_NAME.trim() + "_MODIFY") : ((mt = (ge = r.popFreeHelperProp) == null ? void 0 : ge.TableName) == null ? void 0 : mt.trim().length) > 0 ? $.rename(((Ft = r.popFreeHelperProp) == null ? void 0 : Ft.TableName.trim()) + "_ADD") : ((He = ee.TABLE_NAME) == null ? void 0 : He.trim().length) > 0 && $.rename(ee.TABLE_NAME.trim() + "_ADD"), B.addBlock($), (e = r.popFreeHelperProp) != null && e.BeforeCallService && (B = r.popFreeHelperProp.BeforeCallService(B)), !await V.messageConfirm(""))
23028
23101
  return;
23029
23102
  const s = await V.callService((t = r.popFreeHelperProp) == null ? void 0 : t.OkButtonService.trim(), B);
@@ -23122,7 +23195,7 @@ const $d = Ot({
23122
23195
  _: 1
23123
23196
  }, 8, ["visible", "title", "height", "width", "destroy-on-close", "resizable", "actions"]));
23124
23197
  }
23125
- }), jd = { style: { display: "flex", height: "100%", width: "100%", "flex-direction": "column", padding: "5px" } }, Jd = Ot({
23198
+ }), jd = { style: { display: "flex", height: "100%", width: "100%", "flex-direction": "column", padding: "5px" } }, Jd = Dt({
23126
23199
  name: "er-pop-rich-editor",
23127
23200
  components: {
23128
23201
  ErDialog: Zo,
@@ -23132,7 +23205,7 @@ const $d = Ot({
23132
23205
  InputNumber: Lr,
23133
23206
  Textarea: Ai
23134
23207
  }
23135
- }), Kd = /* @__PURE__ */ Ot({
23208
+ }), Kd = /* @__PURE__ */ Dt({
23136
23209
  ...Jd,
23137
23210
  props: {
23138
23211
  popRichEditorProps: {
@@ -23270,14 +23343,14 @@ const $d = Ot({
23270
23343
  }, 8, ["visible", "title", "height", "width", "resizable", "actions"]);
23271
23344
  };
23272
23345
  }
23273
- }), Zd = { style: { display: "flex", height: "100%", "flex-direction": "column" } }, eu = { key: 0 }, tu = { style: { flex: "1" } }, ou = Ot({
23346
+ }), Zd = { style: { display: "flex", height: "100%", "flex-direction": "column" } }, eu = { key: 0 }, tu = { style: { flex: "1" } }, ou = Dt({
23274
23347
  name: "ErPopQuery",
23275
23348
  components: {
23276
23349
  "er-dialog": Zo,
23277
23350
  "er-panel": So,
23278
23351
  "a-button": Ko
23279
23352
  }
23280
- }), iu = /* @__PURE__ */ Ot({
23353
+ }), iu = /* @__PURE__ */ Dt({
23281
23354
  ...ou,
23282
23355
  props: {
23283
23356
  popQueryHelperProp: {
@@ -23324,10 +23397,10 @@ const $d = Ot({
23324
23397
  xe.trim().length > 0 && (xe += " and "), xe = xe + a.ChildColumn + " = '" + e[a.ParentColumn] + "'", we[a.ChildColumn] = e[a.ParentColumn];
23325
23398
  }), we.QUERY_TYPE = Be;
23326
23399
  const t = g.Core.buildEiBlock([we], "Table0");
23327
- var Xe = new St();
23400
+ var Xe = new It();
23328
23401
  const o = V.getFormButtonConfigInfo("btnQuery");
23329
23402
  if (o.SVC_NAME && o.SVC_NAME.trim().length > 0) {
23330
- var ge = new St();
23403
+ var ge = new It();
23331
23404
  ge.addBlock(t), Xe = await V.callService(o.SVC_NAME.trim(), ge);
23332
23405
  } else {
23333
23406
  var mt = `select * from ${Be} where ${xe}`;
@@ -23585,13 +23658,13 @@ const $d = Ot({
23585
23658
  }, 8, ["visible", "title", "height", "width", "destroy-on-close", "resizable", "actions"]);
23586
23659
  };
23587
23660
  }
23588
- }), ru = Ot({
23661
+ }), ru = Dt({
23589
23662
  name: "ErPopTree",
23590
23663
  components: {
23591
23664
  ErDialog: Zo,
23592
23665
  ErPanel: So
23593
23666
  }
23594
- }), au = /* @__PURE__ */ Ot({
23667
+ }), au = /* @__PURE__ */ Dt({
23595
23668
  ...ru,
23596
23669
  props: {
23597
23670
  popTreeHelperProp: {
@@ -23752,7 +23825,7 @@ const $d = Ot({
23752
23825
  }, fu = { style: { display: "grid", "grid-template-columns": "1fr", "grid-template-rows": "auto auto", gap: "5px" } }, gu = { style: { display: "flex", "flex-direction": "row-reverse" } }, hu = { style: { padding: "5px 3px 5px 0px", height: "100%" } }, mu = { class: "content symbol" }, Cu = { class: "icon_lists dib-box" }, Eu = { class: "dib" }, _u = {
23753
23826
  class: "icon svg-icon",
23754
23827
  "aria-hidden": "true"
23755
- }, Tu = ["xlink:href"], Iu = { class: "name" }, Ou = { class: "name" }, Du = { class: "code-name" }, Su = { style: { height: "100%", display: "flex", "flex-direction": "column", overflow: "auto" } }, yu = { style: { flex: "1" } }, Fu = Ot({
23828
+ }, Tu = ["xlink:href"], Iu = { class: "name" }, Ou = { class: "name" }, Du = { class: "code-name" }, Su = { style: { height: "100%", display: "flex", "flex-direction": "column", overflow: "auto" } }, yu = { style: { flex: "1" } }, Fu = Dt({
23756
23829
  name: "ErMenuDevPlat",
23757
23830
  components: {
23758
23831
  "a-badge": Vi,
@@ -23765,7 +23838,7 @@ const $d = Ot({
23765
23838
  "a-config-providver": _o,
23766
23839
  "er-grid": co
23767
23840
  }
23768
- }), vu = /* @__PURE__ */ Ot({
23841
+ }), vu = /* @__PURE__ */ Dt({
23769
23842
  ...Fu,
23770
23843
  props: {
23771
23844
  options: {
@@ -23785,7 +23858,7 @@ const $d = Ot({
23785
23858
  const Ye = window.lang ?? { list: [] }, Ie = P([]), Ne = P({}), xe = P(""), we = P("zh_Hans"), Xe = P(!0), ge = P("");
23786
23859
  let mt = "", Ft = "", He = "";
23787
23860
  const e = "JAER01/queryDevConfig", t = "JAER01/saveDevConfig", o = new g.FormHelper(), i = P(0);
23788
- let a = [], s, d, u, c = "JAER01/query", p, m, T, v, O, F, S, A, H, k, Z;
23861
+ let a = [], s, d, u, c = "JAER01/query", p, h, T, v, O, F, S, A, H, k, Z;
23789
23862
  const w = new g.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "DataSet Config List", nodeRenderer: pi }), ie = new g.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "Form Config List", nodeRenderer: pi });
23790
23863
  let b;
23791
23864
  const Ce = () => {
@@ -23802,8 +23875,8 @@ const $d = Ot({
23802
23875
  if (B && (le = -1, $ = a.filter((M) => (M.MODULE_TYPE === s.MODULE_TYPE || s.CURRENT_NODE_CODE === "DEVTREE_ROOT") && M.CURRENT_NODE_DESC.indexOf(lt.value.trim()) > -1)), ($ == null ? void 0 : $.length) > 0) {
23803
23876
  const M = $[++le];
23804
23877
  Ge.value = `${le + 1}/${$.length}`, b == null || b.setRowNodeSelected(M.uid), u = M, le === $.length - 1 && (le = -1), setTimeout(() => {
23805
- var h;
23806
- (h = g.Core.jQuery(ee.value)) == null || h.focus();
23878
+ var m;
23879
+ (m = g.Core.jQuery(ee.value)) == null || m.focus();
23807
23880
  }, 500);
23808
23881
  } else
23809
23882
  Ge.value = "No match found";
@@ -23811,14 +23884,14 @@ const $d = Ot({
23811
23884
  }
23812
23885
  }, R = async (y) => {
23813
23886
  var M;
23814
- b = y.api, (M = y.api) == null || M.addEventListener("selectionChanged", async (h) => {
23815
- if (h.source === "api")
23887
+ b = y.api, (M = y.api) == null || M.addEventListener("selectionChanged", async (m) => {
23888
+ if (m.source === "api")
23816
23889
  return;
23817
- const W = h.api.getSelectedNodes();
23818
- (W == null ? void 0 : W.length) > 0 ? o.hasDataChange() && !await g.Core.messageConfirm("The data has been changed, unsaved data will be lost if you continue?") ? (W[0].setSelected(!1), d == null || d.setSelected(!0), h.api.setFocusedCell(d.rowIndex, "CURRENT_NODE_DESC")) : (d = W[0], u = W[0].data, vt(u)) : Nt();
23890
+ const W = m.api.getSelectedNodes();
23891
+ (W == null ? void 0 : W.length) > 0 ? o.hasDataChange() && !await g.Core.messageConfirm("The data has been changed, unsaved data will be lost if you continue?") ? (W[0].setSelected(!1), d == null || d.setSelected(!0), m.api.setFocusedCell(d.rowIndex, "CURRENT_NODE_DESC")) : (d = W[0], u = W[0].data, vt(u)) : Nt();
23819
23892
  });
23820
23893
  }, D = (y) => {
23821
- const { orgHierarchy: M, ...h } = y.node.data, W = [];
23894
+ const { orgHierarchy: M, ...m } = y.node.data, W = [];
23822
23895
  return W.push({
23823
23896
  name: g.Core.$t("ERX.ErMenuDevPlat.Search") || "Search",
23824
23897
  action: () => {
@@ -23860,28 +23933,28 @@ const $d = Ot({
23860
23933
  },
23861
23934
  icon: g.Core.createErSvgElement("copy-text"),
23862
23935
  disabled: !1
23863
- }), h.NODE_TYPE.endsWith("_ROOT") || W.push("separator"), h.NODE_TYPE !== "DEVTREE_ROOT" && (h.NODE_TYPE.endsWith("_ROOT") || h.NODE_TYPE.endsWith("_MODULE")) && W.push({
23936
+ }), m.NODE_TYPE.endsWith("_ROOT") || W.push("separator"), m.NODE_TYPE !== "DEVTREE_ROOT" && (m.NODE_TYPE.endsWith("_ROOT") || m.NODE_TYPE.endsWith("_MODULE")) && W.push({
23864
23937
  name: g.Core.$t("ERX.ErMenuDevPlat.AddModule") || "Add Module",
23865
23938
  action: () => {
23866
23939
  ht("SI00ModuleEdit", "Add", y.node, "addModule", !0);
23867
23940
  },
23868
23941
  icon: g.Core.createErSvgElement("add-folder"),
23869
23942
  disabled: !1
23870
- }), h.NODE_TYPE === "SI0112_MODULE" ? W.push({
23943
+ }), m.NODE_TYPE === "SI0112_MODULE" ? W.push({
23871
23944
  name: g.Core.$t("ERX.ErMenuDevPlat.AddDataSource") || "Add DataSource",
23872
23945
  action: () => {
23873
23946
  ht("SI00DataSourceEdit", "Add", y.node, "addDataSource", !0);
23874
23947
  },
23875
23948
  icon: g.Core.createErSvgElement("add-sql"),
23876
23949
  disabled: !1
23877
- }) : h.NODE_TYPE === "SI0114_MODULE" ? W.push({
23950
+ }) : m.NODE_TYPE === "SI0114_MODULE" ? W.push({
23878
23951
  name: g.Core.$t("ERX.ErMenuDevPlat.AddDataSet") || "Add DataSet",
23879
23952
  action: () => {
23880
23953
  ht("SI00DataSetEdit", "Add", y.node, "addDataSet", !0);
23881
23954
  },
23882
23955
  icon: g.Core.createErSvgElement("add-dataset"),
23883
23956
  disabled: !1
23884
- }) : h.NODE_TYPE === "SI0114_DATASET" ? (W.push({
23957
+ }) : m.NODE_TYPE === "SI0114_DATASET" ? (W.push({
23885
23958
  name: g.Core.$t("ERX.ErMenuDevPlat.AddDataTable") || "Add DataTable",
23886
23959
  action: () => {
23887
23960
  ht("SI00DataTableEdit", "Add", y.node, "addDataTable", !0);
@@ -23891,15 +23964,15 @@ const $d = Ot({
23891
23964
  }), W.push({
23892
23965
  name: g.Core.$t("ERX.ErMenuDevPlat.AddDataRelation") || "Add DataRelations",
23893
23966
  action: async () => {
23894
- yt(h.DATASET_NAME), A.Context.IsChanged && vt(u);
23967
+ yt(m.DATASET_NAME), A.Context.IsChanged && vt(u);
23895
23968
  },
23896
23969
  icon: g.Core.createErSvgElement("add-relation"),
23897
23970
  disabled: !1
23898
- })) : h.NODE_TYPE === "SI0114_DATATABLE" ? W.push({
23971
+ })) : m.NODE_TYPE === "SI0114_DATATABLE" ? W.push({
23899
23972
  name: g.Core.$t("ERX.ErMenuDevPlat.ReferenceFromDatabase") || "Reference From Database",
23900
23973
  action: () => {
23901
23974
  const Se = g.Core.getLocalStorage("ERX.ErMenuDevPlat.DataBaseOwner." + E()) || "";
23902
- O.setQueryPartition(E()), O.AutoRefresh = !0, O.AutoQuery = !0, O.DefaultValues = { values: { TABLE_NAME: h.TABLE_NAME, DATABASE_OWNER: Se } }, O.ShowCheckBoxColumn = !0, O.setEvent("beforeQuery", () => {
23975
+ O.setQueryPartition(E()), O.AutoRefresh = !0, O.AutoQuery = !0, O.DefaultValues = { values: { TABLE_NAME: m.TABLE_NAME, DATABASE_OWNER: Se } }, O.ShowCheckBoxColumn = !0, O.setEvent("beforeQuery", () => {
23903
23976
  const ne = O.ErFormHelper.getControlValue(O.LayoutGroupFilterId, "DATABASE_OWNER");
23904
23977
  ne && g.Core.setLocalStorage("ERX.ErMenuDevPlat.DataBaseOwner." + E(), ne);
23905
23978
  }), O.setEvent("ok", (ne) => {
@@ -23909,13 +23982,13 @@ const $d = Ot({
23909
23982
  const Le = [];
23910
23983
  (re = ne.checkedItemArray) == null || re.forEach((Ke) => {
23911
23984
  var ft;
23912
- oe.some((It) => It.COL_NAME === Ke.COLUMN_NAME) || Le.push({
23913
- DATASET_NAME: h.DATASET_NAME,
23914
- TABLE_NAME: h.TABLE_NAME,
23985
+ oe.some((Ot) => Ot.COL_NAME === Ke.COLUMN_NAME) || Le.push({
23986
+ DATASET_NAME: m.DATASET_NAME,
23987
+ TABLE_NAME: m.TABLE_NAME,
23915
23988
  ROW_GUID: g.Core.guid(),
23916
23989
  COL_NAME: (ft = Ke.COLUMN_NAME) == null ? void 0 : ft.toUpperCase(),
23917
23990
  COL_CAPTION: Ke.COMMENTS,
23918
- DATA_TYPE: ["NUMBER", "BIGINT", "DECIMAL", "DOUBLE", "INTEGER", "SMALLINT", "REAL", "DECFLOAT", "2"].includes(Ke.DATA_TYPE) ? "2" : ["3", "4"].includes(Ke.DATA_TYPE) ? Ke.DATA_TYPE : ["日期", "时间", "时刻", "Date", "Time"].some((It) => Ke.COMMENTS.includes(It) && (g.Core.toNumber(Ke.DATA_LENGTH) === 8 || g.Core.toNumber(Ke.DATA_LENGTH) === 14 || g.Core.toNumber(Ke.DATA_LENGTH) === 20)) ? "3" : "1",
23991
+ DATA_TYPE: ["NUMBER", "BIGINT", "DECIMAL", "DOUBLE", "INTEGER", "SMALLINT", "REAL", "DECFLOAT", "2"].includes(Ke.DATA_TYPE) ? "2" : ["3", "4"].includes(Ke.DATA_TYPE) ? Ke.DATA_TYPE : ["日期", "时间", "时刻", "Date", "Time"].some((Ot) => Ke.COMMENTS.includes(Ot) && (g.Core.toNumber(Ke.DATA_LENGTH) === 8 || g.Core.toNumber(Ke.DATA_LENGTH) === 14 || g.Core.toNumber(Ke.DATA_LENGTH) === 20)) ? "3" : "1",
23919
23992
  MAX_LENGTH: g.Core.toNumber(Ke.DATA_LENGTH) || -1,
23920
23993
  DEFAULT_VALUE: "",
23921
23994
  C_SEQ_ID: String(++Pe).padStart(3, "0")
@@ -23925,28 +23998,28 @@ const $d = Ot({
23925
23998
  },
23926
23999
  icon: g.Core.createErSvgElement("from-database"),
23927
24000
  disabled: !1
23928
- }) : h.NODE_TYPE === "SI0115_MODULE" ? W.push({
24001
+ }) : m.NODE_TYPE === "SI0115_MODULE" ? W.push({
23929
24002
  name: g.Core.$t("ERX.ErMenuDevPlat.AddForm") || "Add Form",
23930
24003
  action: () => {
23931
24004
  ht("SI00FormEdit", "Add", y.node, "addForm", !0);
23932
24005
  },
23933
24006
  icon: g.Core.createErSvgElement("add-page"),
23934
24007
  disabled: !1
23935
- }) : h.NODE_TYPE === "SI0116_MODULE" ? W.push({
24008
+ }) : m.NODE_TYPE === "SI0116_MODULE" ? W.push({
23936
24009
  name: g.Core.$t("ERX.ErMenuDevPlat.AddBasicCode") || "Add Basic Code",
23937
24010
  action: () => {
23938
24011
  ht("SI00CodeClassEdit", "Add", y.node, "addCodeClass", !0);
23939
24012
  },
23940
24013
  icon: g.Core.createErSvgElement("code-set"),
23941
24014
  disabled: !1
23942
- }) : h.NODE_TYPE === "SI0117_MODULE" ? W.push({
24015
+ }) : m.NODE_TYPE === "SI0117_MODULE" ? W.push({
23943
24016
  name: g.Core.$t("ERX.ErMenuDevPlat.AddSequence") || "Add Sequence",
23944
24017
  action: () => {
23945
24018
  ht("SI00SequenceEdit", "Add", y.node, "addSequence", !0);
23946
24019
  },
23947
24020
  icon: g.Core.createErSvgElement("sequence"),
23948
24021
  disabled: !1
23949
- }) : h.NODE_TYPE === "SI0115_FORM" ? (W.push({
24022
+ }) : m.NODE_TYPE === "SI0115_FORM" ? (W.push({
23950
24023
  name: g.Core.$t("ERX.ErMenuDevPlat.CopyForm") || "Copy Form",
23951
24024
  action: () => {
23952
24025
  ht("SI00FormEdit", "Add", y.node, "copyForm", !0);
@@ -23983,18 +24056,18 @@ const $d = Ot({
23983
24056
  ],
23984
24057
  icon: g.Core.createErSvgElement("add"),
23985
24058
  disabled: !1
23986
- })) : h.NODE_TYPE === "SI0115_VIEW" && W.push({
23987
- name: (h == null ? void 0 : h.FUNC_TYPE) === "F" ? g.Core.$t("ERX.ErMenuDevPlat.CopyLayout") || "Copy Layout" : (h == null ? void 0 : h.FUNC_TYPE) === "T" ? g.Core.$t("ERX.ErMenuDevPlat.CopyTree") || "Copy Tree" : g.Core.$t("ERX.ErMenuDevPlat.CopyGrid") || "Copy Grid",
24059
+ })) : m.NODE_TYPE === "SI0115_VIEW" && W.push({
24060
+ name: (m == null ? void 0 : m.FUNC_TYPE) === "F" ? g.Core.$t("ERX.ErMenuDevPlat.CopyLayout") || "Copy Layout" : (m == null ? void 0 : m.FUNC_TYPE) === "T" ? g.Core.$t("ERX.ErMenuDevPlat.CopyTree") || "Copy Tree" : g.Core.$t("ERX.ErMenuDevPlat.CopyGrid") || "Copy Grid",
23988
24061
  action: () => {
23989
- ht((h == null ? void 0 : h.FUNC_TYPE) === "F" ? "SI00LayoutEdit" : (h == null ? void 0 : h.FUNC_TYPE) === "T" ? "SI00TreeListEdit" : (h == null ? void 0 : h.FUNC_TYPE) === "P" ? "SI00PivotViewEdit" : "SI00GridViewEdit", "Add", y.node, "copyView", !0);
24062
+ ht((m == null ? void 0 : m.FUNC_TYPE) === "F" ? "SI00LayoutEdit" : (m == null ? void 0 : m.FUNC_TYPE) === "T" ? "SI00TreeListEdit" : (m == null ? void 0 : m.FUNC_TYPE) === "P" ? "SI00PivotViewEdit" : "SI00GridViewEdit", "Add", y.node, "copyView", !0);
23990
24063
  },
23991
24064
  icon: g.Core.createErSvgElement("add-copy"),
23992
24065
  disabled: !1
23993
- }), h.NODE_TYPE.endsWith("_ROOT") || (W.push({
24066
+ }), m.NODE_TYPE.endsWith("_ROOT") || (W.push({
23994
24067
  name: g.Core.$t("ERX.ErMenuDevPlat.Modify") || "Modify",
23995
24068
  action: () => {
23996
24069
  var Se;
23997
- (Se = h == null ? void 0 : h.NODE_TYPE) != null && Se.endsWith("_MODULE") ? ht("SI00ModuleEdit", "Modify", y.node, "editModule", !0) : (h == null ? void 0 : h.NODE_TYPE) === "SI0114_DATASET" ? ht("SI00DataSetEdit", "Modify", y.node, "editDataSet", !1) : (h == null ? void 0 : h.NODE_TYPE) === "SI0114_DATATABLE" ? ht("SI00DataTableEdit", "Modify", y.node, "editDataTable", !1) : (h == null ? void 0 : h.NODE_TYPE) === "SI0112_DATASOURCE" ? ht("SI00DataSourceEdit", "Modify", y.node, "editDataSource", !1) : (h == null ? void 0 : h.NODE_TYPE) === "SI0115_FORM" ? ht("SI00FormEdit", "Modify", y.node, "editForm", !1) : (h == null ? void 0 : h.NODE_TYPE) === "SI0115_VIEW" && (h == null ? void 0 : h.FUNC_TYPE) === "G" ? ht("SI00GridViewEdit", "Modify", y.node, "editGridView", !1) : (h == null ? void 0 : h.NODE_TYPE) === "SI0115_VIEW" && (h == null ? void 0 : h.FUNC_TYPE) === "P" ? ht("SI00PivotViewEdit", "Modify", y.node, "editPivotView", !1) : (h == null ? void 0 : h.NODE_TYPE) === "SI0115_VIEW" && (h == null ? void 0 : h.FUNC_TYPE) === "T" ? ht("SI00TreeListEdit", "Modify", y.node, "editTreeList", !1) : (h == null ? void 0 : h.NODE_TYPE) === "SI0115_VIEW" && (h == null ? void 0 : h.FUNC_TYPE) === "F" ? ht("SI00LayoutEdit", "Modify", y.node, "editLayout", !1) : (h == null ? void 0 : h.NODE_TYPE) === "SI0116_BASICCODE" ? ht("SI00CodeClassEdit", "Modify", y.node, "editBasicCode", !1) : (h == null ? void 0 : h.NODE_TYPE) === "SI0117_SEQUENCE" && ht("SI00SequenceEdit", "Modify", y.node, "editSequence", !1);
24070
+ (Se = m == null ? void 0 : m.NODE_TYPE) != null && Se.endsWith("_MODULE") ? ht("SI00ModuleEdit", "Modify", y.node, "editModule", !0) : (m == null ? void 0 : m.NODE_TYPE) === "SI0114_DATASET" ? ht("SI00DataSetEdit", "Modify", y.node, "editDataSet", !1) : (m == null ? void 0 : m.NODE_TYPE) === "SI0114_DATATABLE" ? ht("SI00DataTableEdit", "Modify", y.node, "editDataTable", !1) : (m == null ? void 0 : m.NODE_TYPE) === "SI0112_DATASOURCE" ? ht("SI00DataSourceEdit", "Modify", y.node, "editDataSource", !1) : (m == null ? void 0 : m.NODE_TYPE) === "SI0115_FORM" ? ht("SI00FormEdit", "Modify", y.node, "editForm", !1) : (m == null ? void 0 : m.NODE_TYPE) === "SI0115_VIEW" && (m == null ? void 0 : m.FUNC_TYPE) === "G" ? ht("SI00GridViewEdit", "Modify", y.node, "editGridView", !1) : (m == null ? void 0 : m.NODE_TYPE) === "SI0115_VIEW" && (m == null ? void 0 : m.FUNC_TYPE) === "P" ? ht("SI00PivotViewEdit", "Modify", y.node, "editPivotView", !1) : (m == null ? void 0 : m.NODE_TYPE) === "SI0115_VIEW" && (m == null ? void 0 : m.FUNC_TYPE) === "T" ? ht("SI00TreeListEdit", "Modify", y.node, "editTreeList", !1) : (m == null ? void 0 : m.NODE_TYPE) === "SI0115_VIEW" && (m == null ? void 0 : m.FUNC_TYPE) === "F" ? ht("SI00LayoutEdit", "Modify", y.node, "editLayout", !1) : (m == null ? void 0 : m.NODE_TYPE) === "SI0116_BASICCODE" ? ht("SI00CodeClassEdit", "Modify", y.node, "editBasicCode", !1) : (m == null ? void 0 : m.NODE_TYPE) === "SI0117_SEQUENCE" && ht("SI00SequenceEdit", "Modify", y.node, "editSequence", !1);
23998
24071
  },
23999
24072
  icon: g.Core.createErSvgElement("modify"),
24000
24073
  disabled: !1
@@ -24004,18 +24077,18 @@ const $d = Ot({
24004
24077
  let Se, ne;
24005
24078
  Se = async () => {
24006
24079
  var oe;
24007
- if ((oe = h == null ? void 0 : h.NODE_TYPE) != null && oe.endsWith("_MODULE") ? ne = g.Core.buildEiInfo([h], "TSI00MODULE_DELETE") : (h == null ? void 0 : h.NODE_TYPE) == "SI0112_DATASOURCE" ? ne = g.Core.buildEiInfo([{ FUNC_ID: h.FUNCTION_ID }], "TSI00DATASOURCE_DELETE") : (h == null ? void 0 : h.NODE_TYPE) == "SI0114_DATASET" ? ne = g.Core.buildEiInfo([
24008
- { TYPE: "DataSet", MODULE_NAME: h.MODULE_ENAME, DATASET_NAME: h.DATASET_NAME }
24009
- ], "TSI00DATASET_DELETE") : (h == null ? void 0 : h.NODE_TYPE) == "SI0114_DATATABLE" ? (ne = g.Core.buildEiInfo([
24010
- { TYPE: "DataTable", MODULE_NAME: h.DATASET_NAME, DATASET_NAME: h.TABLE_NAME }
24011
- ], "TSI00DATASET_DELETE"), o.clearGridData("gridView7")) : (h == null ? void 0 : h.NODE_TYPE) == "SI0115_FORM" ? ne = g.Core.buildEiInfo([
24012
- { FORM_NAME: h.FORM_NAME }
24013
- ], "TSI00FORM_DELETE") : (h == null ? void 0 : h.NODE_TYPE) == "SI0115_VIEW" ? ne = g.Core.buildEiInfo([
24014
- { FORM_NAME: h.FORM_NAME, FUNCTION_ID: h.FUNCTION_ID }
24015
- ], "TSI00GRIDVIEW_DELETE") : (h == null ? void 0 : h.NODE_TYPE) == "SI0116_BASICCODE" ? ne = g.Core.buildEiInfo([
24016
- { CODE_CLASS: h.FUNCTION_ID }
24017
- ], "TSI00CODE01_DELETE") : (h == null ? void 0 : h.NODE_TYPE) == "SI0117_SEQUENCE" && (ne = g.Core.buildEiInfo([
24018
- { SEQ_CODE: h.FUNCTION_ID }
24080
+ if ((oe = m == null ? void 0 : m.NODE_TYPE) != null && oe.endsWith("_MODULE") ? ne = g.Core.buildEiInfo([m], "TSI00MODULE_DELETE") : (m == null ? void 0 : m.NODE_TYPE) == "SI0112_DATASOURCE" ? ne = g.Core.buildEiInfo([{ FUNC_ID: m.FUNCTION_ID }], "TSI00DATASOURCE_DELETE") : (m == null ? void 0 : m.NODE_TYPE) == "SI0114_DATASET" ? ne = g.Core.buildEiInfo([
24081
+ { TYPE: "DataSet", MODULE_NAME: m.MODULE_ENAME, DATASET_NAME: m.DATASET_NAME }
24082
+ ], "TSI00DATASET_DELETE") : (m == null ? void 0 : m.NODE_TYPE) == "SI0114_DATATABLE" ? (ne = g.Core.buildEiInfo([
24083
+ { TYPE: "DataTable", MODULE_NAME: m.DATASET_NAME, DATASET_NAME: m.TABLE_NAME }
24084
+ ], "TSI00DATASET_DELETE"), o.clearGridData("gridView7")) : (m == null ? void 0 : m.NODE_TYPE) == "SI0115_FORM" ? ne = g.Core.buildEiInfo([
24085
+ { FORM_NAME: m.FORM_NAME }
24086
+ ], "TSI00FORM_DELETE") : (m == null ? void 0 : m.NODE_TYPE) == "SI0115_VIEW" ? ne = g.Core.buildEiInfo([
24087
+ { FORM_NAME: m.FORM_NAME, FUNCTION_ID: m.FUNCTION_ID }
24088
+ ], "TSI00GRIDVIEW_DELETE") : (m == null ? void 0 : m.NODE_TYPE) == "SI0116_BASICCODE" ? ne = g.Core.buildEiInfo([
24089
+ { CODE_CLASS: m.FUNCTION_ID }
24090
+ ], "TSI00CODE01_DELETE") : (m == null ? void 0 : m.NODE_TYPE) == "SI0117_SEQUENCE" && (ne = g.Core.buildEiInfo([
24091
+ { SEQ_CODE: m.FUNCTION_ID }
24019
24092
  ], "TSI00SEQ01_DELETE")), ne) {
24020
24093
  const Pe = await g.Core.callService(t, ne);
24021
24094
  if (Pe.getStatus() < 0) {
@@ -24035,19 +24108,19 @@ const $d = Ot({
24035
24108
  },
24036
24109
  icon: g.Core.createErSvgElement("delete"),
24037
24110
  disabled: !1
24038
- })), (h.NODE_TYPE === "SI0115_FORM" || h.NODE_TYPE === "SI0115_VIEW") && W.push({
24111
+ })), (m.NODE_TYPE === "SI0115_FORM" || m.NODE_TYPE === "SI0115_VIEW") && W.push({
24039
24112
  name: g.Core.$t("ERX.ErMenuDevPlat.ExtendOptions") || "Edit Extended Options",
24040
24113
  action: () => {
24041
- h.NODE_TYPE === "SI0115_FORM" ? o.showExtOptionsEdit("tsi00formext", h.FORM_NAME, "", "", E(), "", !1) : h.NODE_TYPE === "SI0115_VIEW" && o.showExtOptionsEdit("tsi00gridviewext", h.FORM_NAME, h.FUNCTION_ID, "", E(), "", !1);
24114
+ m.NODE_TYPE === "SI0115_FORM" ? o.showExtOptionsEdit("tsi00formext", m.FORM_NAME, "", "", E(), "", !1) : m.NODE_TYPE === "SI0115_VIEW" && o.showExtOptionsEdit("tsi00gridviewext", m.FORM_NAME, m.FUNCTION_ID, "", E(), "", !1);
24042
24115
  },
24043
24116
  icon: g.Core.createErSvgElement("json-options"),
24044
24117
  disabled: !1
24045
- }), h.NODE_TYPE === "SI0117_SEQUENCE" && (W.push("separator"), W.push(
24118
+ }), m.NODE_TYPE === "SI0117_SEQUENCE" && (W.push("separator"), W.push(
24046
24119
  {
24047
24120
  name: g.Core.$t("ERX.ErMenuDevPlat.ResetSequence") || "Reset Sequence",
24048
24121
  action: () => {
24049
24122
  o.messageConfirm("Are you sure you want to reset the sequence?", async () => {
24050
- const Se = g.Core.buildEiInfo({ ...h, SEQ_CODE: h.FUNCTION_ID }, "TSI00SEQ01_RESET"), ne = await g.Core.callService(t, Se);
24123
+ const Se = g.Core.buildEiInfo({ ...m, SEQ_CODE: m.FUNCTION_ID }, "TSI00SEQ01_RESET"), ne = await g.Core.callService(t, Se);
24051
24124
  if (ne.SysInfo && ne.SysInfo.Flag < 0) {
24052
24125
  g.Core.messageError(ne.SysInfo.Msg);
24053
24126
  return;
@@ -24058,7 +24131,7 @@ const $d = Ot({
24058
24131
  icon: g.Core.createErSvgElement("reset"),
24059
24132
  disabled: !1
24060
24133
  }
24061
- )), ["SI0114_DATATABLE", "SI0115_VIEW", "DEVTREE_ROOT"].includes(h.NODE_TYPE) || (h.NODE_TYPE.endsWith("_ROOT") || (W.push("separator"), W.push(
24134
+ )), ["SI0114_DATATABLE", "SI0115_VIEW", "DEVTREE_ROOT"].includes(m.NODE_TYPE) || (m.NODE_TYPE.endsWith("_ROOT") || (W.push("separator"), W.push(
24062
24135
  {
24063
24136
  name: g.Core.$t("ERX.ErMenuDevPlat.ApplyToPartition") || "Apply To Partition",
24064
24137
  action: () => {
@@ -24071,22 +24144,22 @@ const $d = Ot({
24071
24144
  {
24072
24145
  name: g.Core.$t("ERX.ErMenuDevPlat.Export") || "Export",
24073
24146
  action: () => {
24074
- to({ ...h, children: y.node.childrenAfterFilter });
24147
+ to({ ...m, children: y.node.childrenAfterFilter });
24075
24148
  },
24076
24149
  icon: g.Core.createErSvgElement("json-file"),
24077
24150
  disabled: !1
24078
24151
  }
24079
- ), (h.NODE_TYPE.endsWith("_ROOT") || h.NODE_TYPE.endsWith("_MODULE")) && W.push({
24152
+ ), (m.NODE_TYPE.endsWith("_ROOT") || m.NODE_TYPE.endsWith("_MODULE")) && W.push({
24080
24153
  name: g.Core.$t("ERX.ErMenuDevPlat.Import") || "Import",
24081
24154
  action: () => {
24082
- no(h);
24155
+ no(m);
24083
24156
  },
24084
24157
  icon: g.Core.createErSvgElement("import-json"),
24085
24158
  disabled: !1
24086
- })), h.NODE_TYPE === "SI0115_VIEW" && (W.push("separator"), W.push({
24159
+ })), m.NODE_TYPE === "SI0115_VIEW" && (W.push("separator"), W.push({
24087
24160
  name: g.Core.$t("ERX.ErMenuDevPlat.ReferenceFromDataSet") || "Reference From DataSet",
24088
24161
  action: () => {
24089
- F.setQueryPartition(E()), F.AutoRefresh = !0, F.AutoQuery = !0, F.DefaultValues = { values: { DATASET_NAME: h.DATASET_NAME, TABLE_NAME: h.TABLE_NAME } }, F.ShowCheckBoxColumn = !0, F.setEvent("ok", (Se) => {
24162
+ F.setQueryPartition(E()), F.AutoRefresh = !0, F.AutoQuery = !0, F.DefaultValues = { values: { DATASET_NAME: m.DATASET_NAME, TABLE_NAME: m.TABLE_NAME } }, F.ShowCheckBoxColumn = !0, F.setEvent("ok", (Se) => {
24090
24163
  var Le;
24091
24164
  const ne = o.getGridAllRows(De.value);
24092
24165
  let oe = (ne == null ? void 0 : ne.length) || 0;
@@ -24096,8 +24169,8 @@ const $d = Ot({
24096
24169
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24097
24170
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24098
24171
  ROW_GUID: g.Core.guid(),
24099
- FORM_NAME: h.FORM_NAME,
24100
- FUNCTION_ID: h.FUNCTION_ID,
24172
+ FORM_NAME: m.FORM_NAME,
24173
+ FUNCTION_ID: m.FUNCTION_ID,
24101
24174
  ITEM_CODE: re.COL_NAME,
24102
24175
  COL_CAPTION: re.COL_CAPTION,
24103
24176
  FIELD_NAME: re.COL_NAME,
@@ -24105,7 +24178,7 @@ const $d = Ot({
24105
24178
  DATA_ACCU: re.PRECISION || -1,
24106
24179
  DATA_TYPE: re.DATA_TYPE,
24107
24180
  C_SEQ_ID: String(oe++).padStart(3, "0")
24108
- }, h.FUNC_TYPE));
24181
+ }, m.FUNC_TYPE));
24109
24182
  }), Pe.length > 0 && o.importRowsToGrid(De.value, Pe);
24110
24183
  }), F.show(null);
24111
24184
  },
@@ -24115,7 +24188,7 @@ const $d = Ot({
24115
24188
  name: g.Core.$t("ERX.ErMenuDevPlat.ReferenceFromDatabase") || "Reference From Database",
24116
24189
  action: () => {
24117
24190
  const Se = g.Core.getLocalStorage("ERX.ErMenuDevPlat.DataBaseOwner." + E()) || "";
24118
- O.setQueryPartition(E()), O.AutoRefresh = !0, O.AutoQuery = !0, O.DefaultValues = { values: { TABLE_NAME: h.TABLE_NAME, DATABASE_OWNER: Se } }, O.ShowCheckBoxColumn = !0, O.setEvent("beforeQuery", () => {
24191
+ O.setQueryPartition(E()), O.AutoRefresh = !0, O.AutoQuery = !0, O.DefaultValues = { values: { TABLE_NAME: m.TABLE_NAME, DATABASE_OWNER: Se } }, O.ShowCheckBoxColumn = !0, O.setEvent("beforeQuery", () => {
24119
24192
  const ne = O.ErFormHelper.getControlValue(O.LayoutGroupFilterId, "DATABASE_OWNER");
24120
24193
  ne && g.Core.setLocalStorage("ERX.ErMenuDevPlat.DataBaseOwner." + E(), ne);
24121
24194
  }), O.setEvent("ok", (ne) => {
@@ -24129,8 +24202,8 @@ const $d = Ot({
24129
24202
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24130
24203
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24131
24204
  ROW_GUID: g.Core.guid(),
24132
- FORM_NAME: h.FORM_NAME,
24133
- FUNCTION_ID: h.FUNCTION_ID,
24205
+ FORM_NAME: m.FORM_NAME,
24206
+ FUNCTION_ID: m.FUNCTION_ID,
24134
24207
  ITEM_CODE: (Ke = ze.COLUMN_NAME) == null ? void 0 : Ke.toUpperCase(),
24135
24208
  COL_CAPTION: ze.COMMENTS,
24136
24209
  FIELD_NAME: ze.COLUMN_NAME,
@@ -24138,7 +24211,7 @@ const $d = Ot({
24138
24211
  DATA_ACCU: g.Core.toNumber(ze.PRECISION || -1),
24139
24212
  DATA_TYPE: ze.DATA_TYPE,
24140
24213
  C_SEQ_ID: String(Pe++).padStart(3, "0")
24141
- }, h.FUNC_TYPE));
24214
+ }, m.FUNC_TYPE));
24142
24215
  }), Le.length > 0 && o.importRowsToGrid(De.value, Le);
24143
24216
  }), O.show(null);
24144
24217
  },
@@ -24147,14 +24220,14 @@ const $d = Ot({
24147
24220
  }), W.push({
24148
24221
  name: g.Core.$t("ERX.ErMenuDevPlat.Preview") || "Preview",
24149
24222
  action: () => {
24150
- if ((h == null ? void 0 : h.FUNC_TYPE) === "F") {
24151
- T = new g.PopFreeHelper(E(), h.FORM_NAME, h.FUNCTION_ID, He);
24223
+ if ((m == null ? void 0 : m.FUNC_TYPE) === "F") {
24224
+ T = new g.PopFreeHelper(E(), m.FORM_NAME, m.FUNCTION_ID, He);
24152
24225
  const Se = () => {
24153
24226
  var ne;
24154
24227
  (ne = T.Context) != null && ne.configUpdate && vt(u);
24155
24228
  };
24156
24229
  T.setEvent("close", Se), T.ShowOkButton = !1, T.ShowCancelButton = !1, T.show(null, Se, Se);
24157
- } else ((h == null ? void 0 : h.FUNC_TYPE) === "G" || (h == null ? void 0 : h.FUNC_TYPE) === "P") && (v = new g.PopQueryHelper(E(), h.FORM_NAME, h.FUNCTION_ID, He), v.MainViewConfigId = h.FUNCTION_ID, v.DetailViewConfigId = "", v.setEvent("close", () => {
24230
+ } else ((m == null ? void 0 : m.FUNC_TYPE) === "G" || (m == null ? void 0 : m.FUNC_TYPE) === "P") && (v = new g.PopQueryHelper(E(), m.FORM_NAME, m.FUNCTION_ID, He), v.MainViewConfigId = m.FUNCTION_ID, v.DetailViewConfigId = "", v.setEvent("close", () => {
24158
24231
  vt(u);
24159
24232
  }), v.ShowOkButton = !1, v.ShowCancelButton = !1, v.ShowQueryButton = !1, v.show(null));
24160
24233
  },
@@ -24169,8 +24242,8 @@ const $d = Ot({
24169
24242
  var y;
24170
24243
  if (ge.value.trim().length > 0) {
24171
24244
  let M = ge.value;
24172
- const h = g.Core.toString(window.getSelection());
24173
- h.length > 0 && ge.value.includes(h) && (M = h);
24245
+ const m = g.Core.toString(window.getSelection());
24246
+ m.length > 0 && ge.value.includes(m) && (M = m);
24174
24247
  const W = await g.Core.querySql(E(), c, M);
24175
24248
  if (W.getStatus() < 0) {
24176
24249
  g.Core.messageError(W.getMsg());
@@ -24180,7 +24253,7 @@ const $d = Ot({
24180
24253
  g.Core.setGridData(ue, Se, !0, { showRowNo: !0 }), se.autoSizeAllColumns(), N.value = `Excute Result -> [${((y = Se.getMappedRows()) == null ? void 0 : y.length) || 0} records matched]`;
24181
24254
  }
24182
24255
  }, dt = async (y) => {
24183
- const M = Ie.value.find((h) => h.CODE === xe.value);
24256
+ const M = Ie.value.find((m) => m.CODE === xe.value);
24184
24257
  ct(M), await L(), $ = [], le = -1, lt.value = "", Re.value = !1, ae.value = !1, K.value = !1, Oe.value = !1, Ee.value = !1, J.value = !1, q.value = !1, X.value = !1, N.value = "Excute Result", z.value = !0, o.clearGridData("gridView0");
24185
24258
  }, ct = (y) => {
24186
24259
  Ne.value = {
@@ -24189,7 +24262,7 @@ const $d = Ot({
24189
24262
  };
24190
24263
  }, ot = (y) => {
24191
24264
  u && vt(u);
24192
- }, _ = (y, M, h) => ({
24265
+ }, _ = (y, M, m) => ({
24193
24266
  name: "Translate",
24194
24267
  icon: g.Core.createErIconElement($e(Xa)),
24195
24268
  action: () => {
@@ -24198,22 +24271,22 @@ const $d = Ot({
24198
24271
  const W = new g.TranslateHelper({ ocpApimSubscriptionKey: o.getFormSysInfo("AzureTranslateKey") }), Se = o.getGridCheckedRows(y.context.configId), ne = [], oe = [];
24199
24272
  Se.forEach((Pe) => {
24200
24273
  var Le;
24201
- ((Le = Pe[M]) == null ? void 0 : Le.trim().length) > 0 && g.Core.toString(Pe[h]).trim().length === 0 && (ne.push(Pe[M].trim()), oe.push(Pe));
24274
+ ((Le = Pe[M]) == null ? void 0 : Le.trim().length) > 0 && g.Core.toString(Pe[m]).trim().length === 0 && (ne.push(Pe[M].trim()), oe.push(Pe));
24202
24275
  }), W.translate(ne, {
24203
24276
  from: "zh-Hans",
24204
24277
  to: we.value
24205
24278
  }).then((Pe) => {
24206
24279
  if (Pe.flag)
24207
24280
  for (let Le = 0; Le < oe.length; Le++)
24208
- o.setGridRowData(y.context.configId, oe[Le].uid, { [h]: Pe.result[Le][we.value] });
24281
+ o.setGridRowData(y.context.configId, oe[Le].uid, { [m]: Pe.result[Le][we.value] });
24209
24282
  });
24210
24283
  }
24211
24284
  }), ye = (y) => ({
24212
24285
  name: "Apply To",
24213
24286
  icon: g.Core.createErSvgElement("apply-to"),
24214
24287
  action: async () => {
24215
- var h, W, Se;
24216
- let M = (Se = (W = (h = y.context) == null ? void 0 : h.viewConfig) == null ? void 0 : W.TABLE_NAME) == null ? void 0 : Se.trim();
24288
+ var m, W, Se;
24289
+ let M = (Se = (W = (m = y.context) == null ? void 0 : m.viewConfig) == null ? void 0 : W.TABLE_NAME) == null ? void 0 : Se.trim();
24217
24290
  if (M.length > 0) {
24218
24291
  const ne = async () => {
24219
24292
  const oe = await g.Core.callService(e, g.Core.buildEiInfo({ OPERATE_TYPE: "tsi00formtree" }), { show: !0, delay: 1e3 });
@@ -24245,16 +24318,16 @@ const $d = Ot({
24245
24318
  }
24246
24319
  }), st = (y) => {
24247
24320
  y.configId === "gridView1_Layout" && y.api.addEventListener("cellValueChanged", (M) => {
24248
- var h, W, Se, ne, oe, Pe, Le, re, ze, Ke;
24321
+ var m, W, Se, ne, oe, Pe, Le, re, ze, Ke;
24249
24322
  if (M.column.colId === "OPERATOR") {
24250
- const ft = {}, It = g.Core.toString(M.value);
24251
- It.length > 0 && It != "None" ? (((W = (h = M.data) == null ? void 0 : h.PARA_NAME) == null ? void 0 : W.trim().length) == 0 && (ft.PARA_NAME = M.data.FIELD_NAME), (((ne = (Se = M.data) == null ? void 0 : Se.PARA_GROUP) == null ? void 0 : ne.trim().length) == 0 || ((oe = M.data) == null ? void 0 : oe.PARA_GROUP) === "0") && (ft.PARA_GROUP = "1")) : (ft.PARA_NAME = "", ft.PARA_GROUP = "0"), ((Pe = M.data) == null ? void 0 : Pe.COLUMN_EDIT) == "5" && (((re = (Le = M.data) == null ? void 0 : Le.DATE_TIME_FORMAT) == null ? void 0 : re.trim().length) == 0 && (It === ">" || It === ">=") ? ft.DATE_TIME_FORMAT = "yyyyMMdd000000" : ((Ke = (ze = M.data) == null ? void 0 : ze.DATE_TIME_FORMAT) == null ? void 0 : Ke.trim().length) == 0 && (It === "<" || It === "<=") ? ft.DATE_TIME_FORMAT = "yyyyMMdd235959" : It === "None" && (ft.DATE_TIME_FORMAT = "")), y.erFormHelper.setGridRowData(y.configId, M.node.data.uid, ft);
24323
+ const ft = {}, Ot = g.Core.toString(M.value);
24324
+ Ot.length > 0 && Ot != "None" ? (((W = (m = M.data) == null ? void 0 : m.PARA_NAME) == null ? void 0 : W.trim().length) == 0 && (ft.PARA_NAME = M.data.FIELD_NAME), (((ne = (Se = M.data) == null ? void 0 : Se.PARA_GROUP) == null ? void 0 : ne.trim().length) == 0 || ((oe = M.data) == null ? void 0 : oe.PARA_GROUP) === "0") && (ft.PARA_GROUP = "1")) : (ft.PARA_NAME = "", ft.PARA_GROUP = "0"), ((Pe = M.data) == null ? void 0 : Pe.COLUMN_EDIT) == "5" && (((re = (Le = M.data) == null ? void 0 : Le.DATE_TIME_FORMAT) == null ? void 0 : re.trim().length) == 0 && (Ot === ">" || Ot === ">=") ? ft.DATE_TIME_FORMAT = "yyyyMMdd000000" : ((Ke = (ze = M.data) == null ? void 0 : ze.DATE_TIME_FORMAT) == null ? void 0 : Ke.trim().length) == 0 && (Ot === "<" || Ot === "<=") ? ft.DATE_TIME_FORMAT = "yyyyMMdd235959" : Ot === "None" && (ft.DATE_TIME_FORMAT = "")), y.erFormHelper.setGridRowData(y.configId, M.node.data.uid, ft);
24252
24325
  }
24253
24326
  });
24254
24327
  }, gt = (y) => {
24255
- var h, W;
24328
+ var m, W;
24256
24329
  const M = [];
24257
- if ((h = y.context) != null && h.configId) {
24330
+ if ((m = y.context) != null && m.configId) {
24258
24331
  const Se = o.getGridCheckedRows(y.context.configId);
24259
24332
  (Se == null ? void 0 : Se.length) > 0 && (M.push(ye(y)), we.value !== "zh_Hans" && (M.push("separator"), M.push(_(y, "COL_CAPTION", "COL_CAPTION_RES")))), o.DevelopPermisson === "1" && M.push({
24260
24333
  name: `Batch Edit Propertis [${y.node.data.ITEM_CODE}]`,
@@ -24301,9 +24374,9 @@ const $d = Ot({
24301
24374
  }
24302
24375
  return M;
24303
24376
  }, ve = (y) => {
24304
- var h;
24377
+ var m;
24305
24378
  const M = [];
24306
- if ((h = y.context) != null && h.configId) {
24379
+ if ((m = y.context) != null && m.configId) {
24307
24380
  const W = o.getGridCheckedRows(y.context.configId);
24308
24381
  (W == null ? void 0 : W.length) > 0 && M.push(ye(y));
24309
24382
  }
@@ -24324,25 +24397,25 @@ const $d = Ot({
24324
24397
  }
24325
24398
  })), M;
24326
24399
  }, at = (y) => {
24327
- var h;
24400
+ var m;
24328
24401
  const M = [];
24329
- if ((h = y.context) != null && h.configId) {
24402
+ if ((m = y.context) != null && m.configId) {
24330
24403
  const W = o.getGridCheckedRows(y.context.configId);
24331
24404
  (W == null ? void 0 : W.length) > 0 && M.push(ye(y));
24332
24405
  }
24333
24406
  return M;
24334
24407
  }, We = (y) => {
24335
- var h;
24408
+ var m;
24336
24409
  const M = [];
24337
- if ((h = y.context) != null && h.configId) {
24410
+ if ((m = y.context) != null && m.configId) {
24338
24411
  const W = o.getGridCheckedRows(y.context.configId);
24339
24412
  we.value !== "zh_Hans" && (W == null ? void 0 : W.length) > 0 && M.push(_(y, "CODE_DESC_1_CONTENT", "CODE_DESC_1_CONTENT_RES"));
24340
24413
  }
24341
24414
  return M;
24342
24415
  }, fe = (y) => {
24343
- var h, W;
24416
+ var m, W;
24344
24417
  const M = [];
24345
- return (h = y.context) != null && h.configId && ((W = y.node) != null && W.childrenAfterFilter) && M.push(
24418
+ return (m = y.context) != null && m.configId && ((W = y.node) != null && W.childrenAfterFilter) && M.push(
24346
24419
  {
24347
24420
  name: "Edit Relation",
24348
24421
  icon: g.Core.createErSvgElement("relation"),
@@ -24368,24 +24441,24 @@ const $d = Ot({
24368
24441
  }
24369
24442
  ), M;
24370
24443
  }, rt = (y) => {
24371
- var h;
24444
+ var m;
24372
24445
  const M = [];
24373
- if ((h = y.context) != null && h.configId) {
24446
+ if ((m = y.context) != null && m.configId) {
24374
24447
  const W = o.getGridCheckedRows(y.context.configId);
24375
24448
  (W == null ? void 0 : W.length) > 0 && M.push(ye(y));
24376
24449
  }
24377
24450
  return M;
24378
24451
  }, pt = (y) => {
24379
- var h;
24452
+ var m;
24380
24453
  const M = [];
24381
- if ((h = y.context) != null && h.configId) {
24454
+ if ((m = y.context) != null && m.configId) {
24382
24455
  const W = o.getGridCheckedRows(y.context.configId);
24383
24456
  (W == null ? void 0 : W.length) > 0 && (M.push(ye(y)), we.value !== "zh_Hans" && (M.push("separator"), M.push(_(y, "ITEM_VALUE", "ITEM_VALUE_RES"))));
24384
24457
  }
24385
24458
  return M;
24386
24459
  }, wt = (y, M) => {
24387
- var h, W, Se, ne, oe, Pe, Le;
24388
- return ((h = y.FIELD_NAME) == null ? void 0 : h.trim().length) === 0 || (M === "F" && (y.COLUMN_EDIT = ["NUMBER", "BIGINT", "DECIMAL", "DOUBLE", "INTEGER", "SMALLINT", "REAL", "DECFLOAT", "2"].includes(y.DATA_TYPE) ? "9" : y.DATA_TYPE === "3" || ((W = y.COL_CAPTION) != null && W.includes("日期") || (Se = y.COL_CAPTION) != null && Se.includes("时间") || (ne = y.COL_CAPTION) != null && ne.includes("时刻")) && (g.Core.toNumber(y.MAX_LENGTH) === 8 || g.Core.toNumber(y.MAX_LENGTH) === 14 || g.Core.toNumber(y.MAX_LENGTH) === 20) ? "5" : "0"), y.DATA_TYPE === "2" ? (y.FORMAT_TYPE = "Numeric", ["金额", "税额", "发生额", "款"].some((re) => {
24460
+ var m, W, Se, ne, oe, Pe, Le;
24461
+ return ((m = y.FIELD_NAME) == null ? void 0 : m.trim().length) === 0 || (M === "F" && (y.COLUMN_EDIT = ["NUMBER", "BIGINT", "DECIMAL", "DOUBLE", "INTEGER", "SMALLINT", "REAL", "DECFLOAT", "2"].includes(y.DATA_TYPE) ? "9" : y.DATA_TYPE === "3" || ((W = y.COL_CAPTION) != null && W.includes("日期") || (Se = y.COL_CAPTION) != null && Se.includes("时间") || (ne = y.COL_CAPTION) != null && ne.includes("时刻")) && (g.Core.toNumber(y.MAX_LENGTH) === 8 || g.Core.toNumber(y.MAX_LENGTH) === 14 || g.Core.toNumber(y.MAX_LENGTH) === 20) ? "5" : "0"), y.DATA_TYPE === "2" ? (y.FORMAT_TYPE = "Numeric", ["金额", "税额", "发生额", "款"].some((re) => {
24389
24462
  var ze;
24390
24463
  return (ze = y.COL_CAPTION) == null ? void 0 : ze.includes(re);
24391
24464
  }) ? y.FORMAT_STRING = "#,##0.00" : y.FORMAT_STRING = "#,##0", ["数量", "件数", "重量", "毛重", "净重"].some((re) => {
@@ -24396,15 +24469,15 @@ const $d = Ot({
24396
24469
  ae.value = !1, K.value = !1, Oe.value = !1, Ee.value = !1, J.value = !1, q.value = !1, X.value = !1, N.value = "Excute Result", z.value = !0, o.clearGridData("gridView0");
24397
24470
  }, vt = (y) => {
24398
24471
  var W, Se;
24399
- let { orgHierarchy: M, ...h } = y;
24400
- (W = h.NODE_TYPE) != null && W.endsWith("_ROOT") || (Se = h.NODE_TYPE) != null && Se.endsWith("_MODULE") ? (ae.value = !1, K.value = !1, Oe.value = !1, Ee.value = !1, J.value = !1, q.value = !1, X.value = !1, N.value = "Excute Result", z.value = !0, h = { ...h, CULTURE: we.value, QUERY_TYPE: "tsi00trace", FUNCTION_ID: "DevOps" }) : h.NODE_TYPE === "SI0112_DATASOURCE" ? (K.value = !1, z.value = !1, ae.value = !1, Oe.value = !1, Ee.value = !1, q.value = !1, X.value = !1, J.value = !0, h = { ...h, CULTURE: we.value, QUERY_TYPE: "si0112_details", COMPANY_CODE: "BS" }) : h.NODE_TYPE === "SI0114_DATASET" || h.NODE_TYPE === "SI0114_DATATABLE" ? (K.value = !1, z.value = !1, ae.value = !1, Oe.value = !1, Ee.value = !1, J.value = !1, X.value = !1, N.value = "Excute Result", q.value = !0, qt("gridView7", h), h = { ...h, CULTURE: we.value, QUERY_TYPE: "si0114_details", COMPANY_CODE: "BS" }) : h.NODE_TYPE === "SI0115_FORM" ? (o.reloadDropDownDataSource("gridView3", "BUTTON_NAME", () => {
24472
+ let { orgHierarchy: M, ...m } = y;
24473
+ (W = m.NODE_TYPE) != null && W.endsWith("_ROOT") || (Se = m.NODE_TYPE) != null && Se.endsWith("_MODULE") ? (ae.value = !1, K.value = !1, Oe.value = !1, Ee.value = !1, J.value = !1, q.value = !1, X.value = !1, N.value = "Excute Result", z.value = !0, m = { ...m, CULTURE: we.value, QUERY_TYPE: "tsi00trace", FUNCTION_ID: "DevOps" }) : m.NODE_TYPE === "SI0112_DATASOURCE" ? (K.value = !1, z.value = !1, ae.value = !1, Oe.value = !1, Ee.value = !1, q.value = !1, X.value = !1, J.value = !0, m = { ...m, CULTURE: we.value, QUERY_TYPE: "si0112_details", COMPANY_CODE: "BS" }) : m.NODE_TYPE === "SI0114_DATASET" || m.NODE_TYPE === "SI0114_DATATABLE" ? (K.value = !1, z.value = !1, ae.value = !1, Oe.value = !1, Ee.value = !1, J.value = !1, X.value = !1, N.value = "Excute Result", q.value = !0, qt("gridView7", m), m = { ...m, CULTURE: we.value, QUERY_TYPE: "si0114_details", COMPANY_CODE: "BS" }) : m.NODE_TYPE === "SI0115_FORM" ? (o.reloadDropDownDataSource("gridView3", "BUTTON_NAME", () => {
24401
24474
  const ne = o.getItemDropDownDataSource("gridView3", "BUTTON_NAME");
24402
- return ne == null ? void 0 : ne.filter((oe) => h.FUNC_TYPE === "M" ? oe.CODE.startsWith("F") : oe.CODE.startsWith("btn"));
24403
- }), K.value = !1, z.value = !1, ae.value = !1, Oe.value = !1, Ee.value = !1, q.value = !1, J.value = !1, X.value = !0, qt("gridView3,gridView4,gridView19", h), h = { ...h, CULTURE: we.value, QUERY_TYPE: "si0115_form", COMPANY_CODE: "BS" }) : h.NODE_TYPE === "SI0115_VIEW" ? (z.value = !1, q.value = !1, Oe.value = !1, Ee.value = !1, J.value = !1, X.value = !1, N.value = "Excute Result", K.value = !0, h.FUNC_TYPE === "T" ? (ke.value = "TreeColumns", De.value = "gridView1_TreeList", ae.value = !1) : h.FUNC_TYPE === "F" ? (ke.value = "LayoutItems", De.value = "gridView1_Layout", ae.value = !1) : (ke.value = "GridColumns", De.value = "gridView1_GridView", ae.value = !0, qt("gridView2", h)), qt(`${De.value},gridView11`, h), h = { ...h, CULTURE: we.value, QUERY_TYPE: "si0115_view", COMPANY_CODE: "BS" }) : h.NODE_TYPE === "SI0116_BASICCODE" ? (K.value = !1, z.value = !1, ae.value = !1, q.value = !1, Ee.value = !1, J.value = !1, X.value = !1, N.value = "Excute Result", Oe.value = !0, qt("gridView12", h), h = { ...h, CULTURE: we.value, QUERY_TYPE: "tsi00code01_detail", COMPANY_CODE: "BS" }) : h.NODE_TYPE === "SI0117_SEQUENCE" && (K.value = !1, z.value = !1, ae.value = !1, q.value = !1, Oe.value = !1, J.value = !1, X.value = !1, N.value = "Excute Result", Ee.value = !0, h = { ...h, CULTURE: we.value, QUERY_TYPE: "tsi00seq_detail", COMPANY_CODE: "BS" }), h != null && h.QUERY_TYPE && io(() => {
24404
- Et(h);
24475
+ return ne == null ? void 0 : ne.filter((oe) => m.FUNC_TYPE === "M" ? oe.CODE.startsWith("F") : oe.CODE.startsWith("btn"));
24476
+ }), K.value = !1, z.value = !1, ae.value = !1, Oe.value = !1, Ee.value = !1, q.value = !1, J.value = !1, X.value = !0, qt("gridView3,gridView4,gridView19", m), m = { ...m, CULTURE: we.value, QUERY_TYPE: "si0115_form", COMPANY_CODE: "BS" }) : m.NODE_TYPE === "SI0115_VIEW" ? (z.value = !1, q.value = !1, Oe.value = !1, Ee.value = !1, J.value = !1, X.value = !1, N.value = "Excute Result", K.value = !0, m.FUNC_TYPE === "T" ? (ke.value = "TreeColumns", De.value = "gridView1_TreeList", ae.value = !1) : m.FUNC_TYPE === "F" ? (ke.value = "LayoutItems", De.value = "gridView1_Layout", ae.value = !1) : (ke.value = "GridColumns", De.value = "gridView1_GridView", ae.value = !0, qt("gridView2", m)), qt(`${De.value},gridView11`, m), m = { ...m, CULTURE: we.value, QUERY_TYPE: "si0115_view", COMPANY_CODE: "BS" }) : m.NODE_TYPE === "SI0116_BASICCODE" ? (K.value = !1, z.value = !1, ae.value = !1, q.value = !1, Ee.value = !1, J.value = !1, X.value = !1, N.value = "Excute Result", Oe.value = !0, qt("gridView12", m), m = { ...m, CULTURE: we.value, QUERY_TYPE: "tsi00code01_detail", COMPANY_CODE: "BS" }) : m.NODE_TYPE === "SI0117_SEQUENCE" && (K.value = !1, z.value = !1, ae.value = !1, q.value = !1, Oe.value = !1, J.value = !1, X.value = !1, N.value = "Excute Result", Ee.value = !0, m = { ...m, CULTURE: we.value, QUERY_TYPE: "tsi00seq_detail", COMPANY_CODE: "BS" }), m != null && m.QUERY_TYPE && io(() => {
24477
+ Et(m);
24405
24478
  });
24406
24479
  }, yt = (y, M) => {
24407
- const h = async (W, Se) => {
24480
+ const m = async (W, Se) => {
24408
24481
  const ne = g.Core.buildEiInfo([{
24409
24482
  QUERY_TYPE: "tsi00datatable",
24410
24483
  DATASET_NAME: W,
@@ -24451,7 +24524,7 @@ const $d = Ot({
24451
24524
  }
24452
24525
  const Pe = ["RESERVE1", "RESERVE7"], Le = A.ErFormHelper.getControlValue(A.LayoutConfigId, "DATASET_NAME");
24453
24526
  Pe.forEach(async (re) => {
24454
- const ze = A.ErFormHelper.getControlValue(A.LayoutConfigId, re), Ke = await h(Le, ze);
24527
+ const ze = A.ErFormHelper.getControlValue(A.LayoutConfigId, re), Ke = await m(Le, ze);
24455
24528
  Ke && A.ErFormHelper.reloadDropDownDataSource(A.GridConfigId, re === "RESERVE1" ? "RESERVE2" : "RESERVE8", Ke.getMappedRows());
24456
24529
  });
24457
24530
  }
@@ -24485,7 +24558,7 @@ const $d = Ot({
24485
24558
  Se.rename(A.EditType === "Modify" ? "TSI00DATARELATION_MODIFY" : "TSI00DATARELATION_ADD"), oe.addBlock(Se), (await g.Core.callService(t, oe, void 0, { messageError: !0 })).getStatus() >= 0 && (A.EditType = "Modify", A.ErFormHelper.setControlReadOnly(A.LayoutConfigId, !0, "RESERVE1,RESERVE7"), A.doEvent("query"));
24486
24559
  }), A.setEvent("itemValueChanged", async (W) => {
24487
24560
  if (W.itemCode === "RESERVE1" || W.itemCode === "RESERVE7") {
24488
- const Se = A.ErFormHelper.getControlValue(A.LayoutConfigId, W.itemCode), ne = await h(y, Se);
24561
+ const Se = A.ErFormHelper.getControlValue(A.LayoutConfigId, W.itemCode), ne = await m(y, Se);
24489
24562
  ne && A.ErFormHelper.reloadDropDownDataSource(A.GridConfigId, W.itemCode === "RESERVE1" ? "RESERVE2" : "RESERVE8", ne.getMappedRows());
24490
24563
  const oe = A.ErFormHelper.getGridApi(A.GridConfigId);
24491
24564
  oe == null || oe.forEachLeafNode((Pe) => {
@@ -24495,52 +24568,52 @@ const $d = Ot({
24495
24568
  });
24496
24569
  }
24497
24570
  });
24498
- }, ht = async (y, M, h, W, Se = !1) => {
24571
+ }, ht = async (y, M, m, W, Se = !1) => {
24499
24572
  let ne = {}, oe = "";
24500
- const Pe = await pe(h == null ? void 0 : h.data.MODULE_TYPE);
24501
- if (m = new g.PopFreeHelper(mt, y, "LayoutGroupMain", He), m.setSavePartition(E()), m.EditType = M, m.OkButtonService = t, m.OkButtonCaption = g.Core.$t("ERX.Save") || "Save", m.CancelButtonCaption = g.Core.$t("ERX.Close") || "Close", m.CloseDialogWhenOkClick = Se, ne = (() => {
24573
+ const Pe = await pe(m == null ? void 0 : m.data.MODULE_TYPE);
24574
+ if (h = new g.PopFreeHelper(mt, y, "LayoutGroupMain", He), h.setSavePartition(E()), h.EditType = M, h.OkButtonService = t, h.OkButtonCaption = g.Core.$t("ERX.Save") || "Save", h.CancelButtonCaption = g.Core.$t("ERX.Close") || "Close", h.CloseDialogWhenOkClick = Se, ne = (() => {
24502
24575
  var ze, Ke;
24503
24576
  let re = {};
24504
24577
  switch (y) {
24505
24578
  case "SI00ModuleEdit":
24506
- re = M === "Modify" ? { QUERY_TYPE: "tsi00module", MODULE_TYPE: h.data.MODULE_TYPE, MODULE_ENAME: h.data.MODULE_ENAME } : {
24579
+ re = M === "Modify" ? { QUERY_TYPE: "tsi00module", MODULE_TYPE: m.data.MODULE_TYPE, MODULE_ENAME: m.data.MODULE_ENAME } : {
24507
24580
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24508
24581
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24509
- MODULE_TYPE: h == null ? void 0 : h.data.MODULE_TYPE,
24510
- PARENT_CODE: h == null ? void 0 : h.data.MODULE_ENAME,
24511
- MODULE_ENAME: (Ke = (ze = h == null ? void 0 : h.data) == null ? void 0 : ze.NODE_TYPE) != null && Ke.endsWith("_MODULE") ? h == null ? void 0 : h.data.MODULE_ENAME : ""
24582
+ MODULE_TYPE: m == null ? void 0 : m.data.MODULE_TYPE,
24583
+ PARENT_CODE: m == null ? void 0 : m.data.MODULE_ENAME,
24584
+ MODULE_ENAME: (Ke = (ze = m == null ? void 0 : m.data) == null ? void 0 : ze.NODE_TYPE) != null && Ke.endsWith("_MODULE") ? m == null ? void 0 : m.data.MODULE_ENAME : ""
24512
24585
  }, oe = "MODULE_ENAME";
24513
24586
  break;
24514
24587
  case "SI00DataSetEdit":
24515
- re = M === "Modify" ? { QUERY_TYPE: "tsi00dataset", DATASET_NAME: h.data.DATASET_NAME } : {
24588
+ re = M === "Modify" ? { QUERY_TYPE: "tsi00dataset", DATASET_NAME: m.data.DATASET_NAME } : {
24516
24589
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24517
24590
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24518
- MODULE_NAME: h == null ? void 0 : h.data.MODULE_ENAME,
24591
+ MODULE_NAME: m == null ? void 0 : m.data.MODULE_ENAME,
24519
24592
  TYPE: "DataSet",
24520
- DATASET_NAME: "DataSet_" + (h == null ? void 0 : h.data.MODULE_ENAME.substring(0, 2))
24593
+ DATASET_NAME: "DataSet_" + (m == null ? void 0 : m.data.MODULE_ENAME.substring(0, 2))
24521
24594
  }, oe = "DATASET_NAME";
24522
24595
  break;
24523
24596
  case "SI00DataTableEdit":
24524
- re = M === "Modify" ? { QUERY_TYPE: "tsi00dataset", DATASET_NAME: h.data.DATASET_NAME, TABLE_NAME: h.data.TABLE_NAME } : {
24597
+ re = M === "Modify" ? { QUERY_TYPE: "tsi00dataset", DATASET_NAME: m.data.DATASET_NAME, TABLE_NAME: m.data.TABLE_NAME } : {
24525
24598
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24526
24599
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24527
- MODULE_NAME: h == null ? void 0 : h.data.DATASET_NAME,
24600
+ MODULE_NAME: m == null ? void 0 : m.data.DATASET_NAME,
24528
24601
  TYPE: "DataTable"
24529
24602
  }, oe = "DATASET_NAME";
24530
24603
  break;
24531
24604
  case "SI00DataSourceEdit":
24532
- re = M === "Modify" ? { QUERY_TYPE: "tsi00datasource", FUNC_ID: h.data.FUNCTION_ID } : {
24605
+ re = M === "Modify" ? { QUERY_TYPE: "tsi00datasource", FUNC_ID: m.data.FUNCTION_ID } : {
24533
24606
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24534
24607
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24535
- MODULE_NAME: h == null ? void 0 : h.data.MODULE_ENAME,
24608
+ MODULE_NAME: m == null ? void 0 : m.data.MODULE_ENAME,
24536
24609
  ROW_GUID: g.Core.guid()
24537
24610
  }, oe = "FUNC_ID";
24538
24611
  break;
24539
24612
  case "SI00FormEdit":
24540
- re = M === "Modify" || W === "copyForm" ? { QUERY_TYPE: "tsi00form", FORM_NAME: h.data.FORM_NAME } : {
24613
+ re = M === "Modify" || W === "copyForm" ? { QUERY_TYPE: "tsi00form", FORM_NAME: m.data.FORM_NAME } : {
24541
24614
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24542
24615
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24543
- MODULE_NAME: h == null ? void 0 : h.data.MODULE_ENAME,
24616
+ MODULE_NAME: m == null ? void 0 : m.data.MODULE_ENAME,
24544
24617
  ROW_GUID: g.Core.guid()
24545
24618
  };
24546
24619
  break;
@@ -24548,43 +24621,43 @@ const $d = Ot({
24548
24621
  case "SI00PivotViewEdit":
24549
24622
  case "SI00LayoutEdit":
24550
24623
  case "SI00TreeListEdit":
24551
- re = M === "Modify" || W === "copyView" ? { QUERY_TYPE: "tsi00gridview", FORM_NAME: h.data.FORM_NAME, FUNCTION_ID: h.data.FUNCTION_ID } : {
24624
+ re = M === "Modify" || W === "copyView" ? { QUERY_TYPE: "tsi00gridview", FORM_NAME: m.data.FORM_NAME, FUNCTION_ID: m.data.FUNCTION_ID } : {
24552
24625
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24553
24626
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24554
- FORM_NAME: h == null ? void 0 : h.data.FORM_NAME,
24627
+ FORM_NAME: m == null ? void 0 : m.data.FORM_NAME,
24555
24628
  FUNCTION_TYPE: y === "SI00GridViewEdit" ? "G" : y === "SI00PivotViewEdit" ? "P" : y === "SI00TreeListEdit" ? "T" : "F"
24556
24629
  };
24557
24630
  break;
24558
24631
  case "SI00GridBandEdit":
24559
24632
  const ft = o.getGridDataCount("treeList1");
24560
- re = M === "Modify" ? { QUERY_TYPE: "tsi00gridband", FORM_NAME: h.data.FORM_NAME, FUNCTION_ID: h.data.FUNCTION_ID } : {
24633
+ re = M === "Modify" ? { QUERY_TYPE: "tsi00gridband", FORM_NAME: m.data.FORM_NAME, FUNCTION_ID: m.data.FUNCTION_ID } : {
24561
24634
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24562
24635
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24563
24636
  FORM_NAME: u.FORM_NAME,
24564
24637
  FUNCTION_ID: u.FUNCTION_ID,
24565
24638
  COL_WIDTH: 120,
24566
24639
  C_SEQ_ID: (ft + 1).toString().padStart(3, "0")
24567
- }, W === "addSubBand" && (re.FATHER_NODE_CODE = h.data.CURRENT_NODE_CODE);
24640
+ }, W === "addSubBand" && (re.FATHER_NODE_CODE = m.data.CURRENT_NODE_CODE);
24568
24641
  break;
24569
24642
  case "SI00CodeClassEdit":
24570
- re = M === "Modify" ? { QUERY_TYPE: "tsi00code01", FUNCTION_ID: h.data.FUNCTION_ID } : {
24643
+ re = M === "Modify" ? { QUERY_TYPE: "tsi00code01", FUNCTION_ID: m.data.FUNCTION_ID } : {
24571
24644
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24572
24645
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24573
- CODE_SOURCE: h == null ? void 0 : h.data.MODULE_ENAME
24646
+ CODE_SOURCE: m == null ? void 0 : m.data.MODULE_ENAME
24574
24647
  }, oe = "CODE_CLASS";
24575
24648
  break;
24576
24649
  case "SI00SequenceEdit":
24577
- re = M === "Modify" ? { QUERY_TYPE: "tsi00seq01_pivot", FUNCTION_ID: h.data.FUNCTION_ID } : {
24650
+ re = M === "Modify" ? { QUERY_TYPE: "tsi00seq01_pivot", FUNCTION_ID: m.data.FUNCTION_ID } : {
24578
24651
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24579
24652
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24580
- MODULE_NAME: h == null ? void 0 : h.data.MODULE_ENAME
24653
+ MODULE_NAME: m == null ? void 0 : m.data.MODULE_ENAME
24581
24654
  }, oe = "SEQ_CODE";
24582
24655
  break;
24583
24656
  case "SI00DataAuthEdit":
24584
- re = M === "Modify" ? { QUERY_TYPE: "tsi00recordauth01", FUNCTION_ID: h.data.FUNCTION_ID } : {
24657
+ re = M === "Modify" ? { QUERY_TYPE: "tsi00recordauth01", FUNCTION_ID: m.data.FUNCTION_ID } : {
24585
24658
  COMPANY_CODE: o.DefaultConfigCompanyCode,
24586
24659
  COMPANY_CNAME: o.DefaultConfigCompanyName,
24587
- MODULE_ENAME: h == null ? void 0 : h.data.MODULE_ENAME
24660
+ MODULE_ENAME: m == null ? void 0 : m.data.MODULE_ENAME
24588
24661
  }, oe = "ITEM_CODE";
24589
24662
  break;
24590
24663
  }
@@ -24604,14 +24677,14 @@ const $d = Ot({
24604
24677
  }
24605
24678
  ne = Ke.getMappedRows()[0];
24606
24679
  }
24607
- W === "copyForm" ? (ne.ROW_GUID = g.Core.guid(), m.ExtendJsonData = { FORM_NAME_COPYFROM: h.data.FORM_NAME }, m.ReceiveData(ne, { FUNC_TYPE: !0 })) : W === "copyView" ? (ne.ROW_GUID = g.Core.guid(), m.ExtendJsonData = { FORM_NAME_COPYFROM: h.data.FORM_NAME, FUNCTION_ID_COPYFROM: h.data.FUNCTION_ID }, m.ReceiveData(ne, { FUNC_TYPE: !0 })) : m.ReceiveData(ne), m.BeforeCallService = (re) => {
24680
+ W === "copyForm" ? (ne.ROW_GUID = g.Core.guid(), h.ExtendJsonData = { FORM_NAME_COPYFROM: m.data.FORM_NAME }, h.ReceiveData(ne, { FUNC_TYPE: !0 })) : W === "copyView" ? (ne.ROW_GUID = g.Core.guid(), h.ExtendJsonData = { FORM_NAME_COPYFROM: m.data.FORM_NAME, FUNCTION_ID_COPYFROM: m.data.FUNCTION_ID }, h.ReceiveData(ne, { FUNC_TYPE: !0 })) : h.ReceiveData(ne), h.BeforeCallService = (re) => {
24608
24681
  var ze, Ke;
24609
- return u = u || (h == null ? void 0 : h.data) || {}, y === "SI00SequenceEdit" ? (re.renBlock("TSI00SEQ01_MODIFY", M === "Modify" ? "TSI00SEQ01_MODIFY_PIVOT" : "TSI00SEQ01_ADD_PIVOT"), console.log(re, "BeforeCallService inInfo")) : y === "SI00FormEdit" && M === "Modify" && re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME !== ((ze = h == null ? void 0 : h.data) == null ? void 0 : ze.FORM_NAME) && (re.getBlockByIndex(0).addColumn("FORM_NAME_AS_NEW"), re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME_AS_NEW = re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME, re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME = h.data.FORM_NAME, u.CURRENT_NODE_CODE = `SI0115_${re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME_AS_NEW}`), ["SI00GridViewEdit", "SI00LayoutEdit", "SI00TreeListEdit"].includes(y) && M === "Modify" && re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID !== ((Ke = h == null ? void 0 : h.data) == null ? void 0 : Ke.FUNCTION_ID) && (re.getBlockByIndex(0).addColumn("FUNCTION_ID_AS_NEW"), re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID_AS_NEW = re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID, re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID = h.data.FUNCTION_ID, u.CURRENT_NODE_CODE = `SI0115_${u.FORM_NAME + re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID_AS_NEW}`), re;
24610
- }, m.setEvent("initial", () => {
24611
- m.FormHelper.reloadDropDownDataSource("LayoutGroupMain", "MODULE_NAME", Pe);
24612
- }), m.setEvent("open", () => {
24613
- var re, ze, Ke, ft, It;
24614
- y === "SI00DataSetEdit" && m.FormHelper.setLayoutItemValidateRules(
24682
+ return u = u || (m == null ? void 0 : m.data) || {}, y === "SI00SequenceEdit" ? (re.renBlock("TSI00SEQ01_MODIFY", M === "Modify" ? "TSI00SEQ01_MODIFY_PIVOT" : "TSI00SEQ01_ADD_PIVOT"), console.log(re, "BeforeCallService inInfo")) : y === "SI00FormEdit" && M === "Modify" && re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME !== ((ze = m == null ? void 0 : m.data) == null ? void 0 : ze.FORM_NAME) && (re.getBlockByIndex(0).addColumn("FORM_NAME_AS_NEW"), re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME_AS_NEW = re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME, re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME = m.data.FORM_NAME, u.CURRENT_NODE_CODE = `SI0115_${re.getBlockByIndex(0).getMappedRows()[0].FORM_NAME_AS_NEW}`), ["SI00GridViewEdit", "SI00LayoutEdit", "SI00TreeListEdit"].includes(y) && M === "Modify" && re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID !== ((Ke = m == null ? void 0 : m.data) == null ? void 0 : Ke.FUNCTION_ID) && (re.getBlockByIndex(0).addColumn("FUNCTION_ID_AS_NEW"), re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID_AS_NEW = re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID, re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID = m.data.FUNCTION_ID, u.CURRENT_NODE_CODE = `SI0115_${u.FORM_NAME + re.getBlockByIndex(0).getMappedRows()[0].FUNCTION_ID_AS_NEW}`), re;
24683
+ }, h.setEvent("initial", () => {
24684
+ h.FormHelper.reloadDropDownDataSource("LayoutGroupMain", "MODULE_NAME", Pe);
24685
+ }), h.setEvent("open", () => {
24686
+ var re, ze, Ke, ft, Ot;
24687
+ y === "SI00DataSetEdit" && h.FormHelper.setLayoutItemValidateRules(
24615
24688
  "LayoutGroupMain",
24616
24689
  "MODULE_NAME",
24617
24690
  [{
@@ -24622,7 +24695,7 @@ const $d = Ot({
24622
24695
  if (kt.trim().length === 0)
24623
24696
  return n.message = "Module Name is required!", Promise.reject();
24624
24697
  {
24625
- const Vt = m.FormHelper.getControlValue("LayoutGroupMain", "DATASET_NAME");
24698
+ const Vt = h.FormHelper.getControlValue("LayoutGroupMain", "DATASET_NAME");
24626
24699
  if (Vt.startsWith("DataSet_") && !kt.startsWith(Vt.substring(8, 10)))
24627
24700
  return n.message = `Module Name must start with '${Vt.substring(8, 10)}'!`, Promise.reject();
24628
24701
  }
@@ -24630,25 +24703,25 @@ const $d = Ot({
24630
24703
  }
24631
24704
  }],
24632
24705
  !0
24633
- ), (oe == null ? void 0 : oe.trim().length) > 0 && m.FormHelper.setControlReadOnly("LayoutGroupMain", M === "Modify", oe), M === "Add" && (y === "SI00DataSetEdit" ? m.FormHelper.setLayoutItemValidateRules(
24706
+ ), (oe == null ? void 0 : oe.trim().length) > 0 && h.FormHelper.setControlReadOnly("LayoutGroupMain", M === "Modify", oe), M === "Add" && (y === "SI00DataSetEdit" ? h.FormHelper.setLayoutItemValidateRules(
24634
24707
  "LayoutGroupMain",
24635
24708
  "DATASET_NAME",
24636
24709
  [{
24637
24710
  customType: "regex",
24638
- message: `Combinations Starting With 'DataSet_${h == null ? void 0 : h.data.MODULE_ENAME.substring(0, 2)}', And Combination Of Three Uppercase Letters Or Digits`,
24711
+ message: `Combinations Starting With 'DataSet_${m == null ? void 0 : m.data.MODULE_ENAME.substring(0, 2)}', And Combination Of Three Uppercase Letters Or Digits`,
24639
24712
  pattern: "^DataSet_[A-Z]{2}[A-Z0-9]{3}$"
24640
24713
  }],
24641
24714
  !0
24642
- ) : y === "SI00DataSourceEdit" ? m.FormHelper.setLayoutItemValidateRules(
24715
+ ) : y === "SI00DataSourceEdit" ? h.FormHelper.setLayoutItemValidateRules(
24643
24716
  "LayoutGroupMain",
24644
24717
  "FUNC_ID",
24645
24718
  [{
24646
24719
  customType: "regex",
24647
24720
  message: "Combinations Starting With First Module Name, And Combination Of Five Uppercase Letters Or Numbers.",
24648
- pattern: `^${(re = h == null ? void 0 : h.data) == null ? void 0 : re.MODULE_ENAME.substring(0, 2)}[A-Z0-9]{5}$`
24721
+ pattern: `^${(re = m == null ? void 0 : m.data) == null ? void 0 : re.MODULE_ENAME.substring(0, 2)}[A-Z0-9]{5}$`
24649
24722
  }],
24650
24723
  !0
24651
- ) : y === "SI00FormEdit" ? m.FormHelper.setLayoutItemValidateRules(
24724
+ ) : y === "SI00FormEdit" ? h.FormHelper.setLayoutItemValidateRules(
24652
24725
  "LayoutGroupMain",
24653
24726
  "FORM_NAME",
24654
24727
  [{
@@ -24657,26 +24730,26 @@ const $d = Ot({
24657
24730
  pattern: "^[A-Z][A-Za-z0-9_]*$"
24658
24731
  }],
24659
24732
  !0
24660
- ) : y === "SI00ModuleEdit" && m.FormHelper.setLayoutItemValidateRules(
24733
+ ) : y === "SI00ModuleEdit" && h.FormHelper.setLayoutItemValidateRules(
24661
24734
  "LayoutGroupMain",
24662
24735
  "MODULE_ENAME",
24663
24736
  [{
24664
24737
  customType: "regex",
24665
- message: (Ke = (ze = h == null ? void 0 : h.data) == null ? void 0 : ze.NODE_TYPE) != null && Ke.endsWith("_ROOT") ? "Two Uppercase Letters" : `Combinations Starting With '${h == null ? void 0 : h.data.MODULE_ENAME}'', And Combination Of Two Letters, Numbers And Underscores`,
24666
- pattern: (It = (ft = h == null ? void 0 : h.data) == null ? void 0 : ft.NODE_TYPE) != null && It.endsWith("_ROOT") ? "^[A-Z]{2}$" : `^${h == null ? void 0 : h.data.MODULE_ENAME}[a-zA-Z0-9]{2,10}$`
24738
+ message: (Ke = (ze = m == null ? void 0 : m.data) == null ? void 0 : ze.NODE_TYPE) != null && Ke.endsWith("_ROOT") ? "Two Uppercase Letters" : `Combinations Starting With '${m == null ? void 0 : m.data.MODULE_ENAME}'', And Combination Of Two Letters, Numbers And Underscores`,
24739
+ pattern: (Ot = (ft = m == null ? void 0 : m.data) == null ? void 0 : ft.NODE_TYPE) != null && Ot.endsWith("_ROOT") ? "^[A-Z]{2}$" : `^${m == null ? void 0 : m.data.MODULE_ENAME}[a-zA-Z0-9]{2,10}$`
24667
24740
  }],
24668
24741
  !0
24669
24742
  ));
24670
- }), m.setEvent("ok", (re) => {
24743
+ }), h.setEvent("ok", (re) => {
24671
24744
  re.isModified && (y === "SI00ModuleEdit" ? M === "Add" && (u = {
24672
- PARENT_NODE_CODE: h == null ? void 0 : h.data.CURRENT_NODE_CODE,
24745
+ PARENT_NODE_CODE: m == null ? void 0 : m.data.CURRENT_NODE_CODE,
24673
24746
  CURRENT_NODE_CODE: `SI0115_${re.dataModel.MODULE_ENAME}`,
24674
24747
  CURRENT_NODE_DESC: re.dataModel.MODULE_CNAME,
24675
24748
  MODULE_ENAME: re.dataModel.MODULE_ENAME,
24676
24749
  MODULE_CNAME: re.dataModel.MODULE_CNAME,
24677
- NODE_TYPE: h == null ? void 0 : h.data.NODE_TYPE.replace("_ROOT", "_MODULE")
24750
+ NODE_TYPE: m == null ? void 0 : m.data.NODE_TYPE.replace("_ROOT", "_MODULE")
24678
24751
  }) : y === "SI00DataSetEdit" ? M === "Add" && (u = {
24679
- PARENT_NODE_CODE: h == null ? void 0 : h.data.CURRENT_NODE_CODE,
24752
+ PARENT_NODE_CODE: m == null ? void 0 : m.data.CURRENT_NODE_CODE,
24680
24753
  CURRENT_NODE_CODE: `SI0114_${re.dataModel.DATASET_NAME}`,
24681
24754
  CURRENT_NODE_DESC: re.dataModel.DATASET_NAME,
24682
24755
  MODULE_ENAME: re.dataModel.MODULE_NAME,
@@ -24684,7 +24757,7 @@ const $d = Ot({
24684
24757
  DATASET_NAME: re.dataModel.DATASET_NAME,
24685
24758
  NODE_TYPE: "SI0114_DATASET"
24686
24759
  }) : y === "SI00DataTableEdit" ? M === "Add" && (u = {
24687
- PARENT_NODE_CODE: h == null ? void 0 : h.data.CURRENT_NODE_CODE,
24760
+ PARENT_NODE_CODE: m == null ? void 0 : m.data.CURRENT_NODE_CODE,
24688
24761
  CURRENT_NODE_CODE: `SI0114_${re.dataModel.MODULE_NAME + re.dataModel.DATASET_NAME}`,
24689
24762
  CURRENT_NODE_DESC: re.dataModel.CDESC,
24690
24763
  MODULE_ENAME: re.dataModel.MODULE_NAME,
@@ -24693,21 +24766,21 @@ const $d = Ot({
24693
24766
  MODULE_CNAME: "",
24694
24767
  NODE_TYPE: "SI0114_DATATABLE"
24695
24768
  }) : y === "SI00DataSourceEdit" ? M === "Add" && (u = {
24696
- PARENT_NODE_CODE: h == null ? void 0 : h.data.CURRENT_NODE_CODE,
24769
+ PARENT_NODE_CODE: m == null ? void 0 : m.data.CURRENT_NODE_CODE,
24697
24770
  CURRENT_NODE_CODE: `SI0112_${re.dataModel.FUNC_ID}`,
24698
24771
  CURRENT_NODE_DESC: `${re.dataModel.FUNC_ID}(${re.dataModel.FUNCNAME})`,
24699
24772
  MODULE_ENAME: re.dataModel.MODULE_NAME,
24700
24773
  FUNCTION_ID: re.dataModel.FUNC_ID,
24701
24774
  NODE_TYPE: "SI0112_DATASOURCE"
24702
24775
  }) : y === "SI00FormEdit" ? M === "Add" && (u = {
24703
- PARENT_NODE_CODE: h == null ? void 0 : h.data.CURRENT_NODE_CODE,
24776
+ PARENT_NODE_CODE: m == null ? void 0 : m.data.CURRENT_NODE_CODE,
24704
24777
  CURRENT_NODE_CODE: `SI0115_${re.dataModel.FORM_NAME}`,
24705
24778
  CURRENT_NODE_DESC: `${re.dataModel.FORM_NAME}`,
24706
24779
  MODULE_ENAME: re.dataModel.MODULE_NAME,
24707
24780
  FORM_NAME: re.dataModel.FORM_NAME,
24708
24781
  NODE_TYPE: "SI0115_FORM"
24709
24782
  }) : y === "SI00GridViewEdit" || y === "SI00PivotViewEdit" || y === "SI00LayoutEdit" || y === "SI00TreeListEdit" ? M === "Add" && (u = {
24710
- PARENT_NODE_CODE: h == null ? void 0 : h.data.CURRENT_NODE_CODE,
24783
+ PARENT_NODE_CODE: m == null ? void 0 : m.data.CURRENT_NODE_CODE,
24711
24784
  CURRENT_NODE_CODE: `SI0115_${re.dataModel.FORM_NAME + re.dataModel.FUNCTION_ID}`,
24712
24785
  CURRENT_NODE_DESC: `${re.dataModel.FUNCTION_ID}`,
24713
24786
  FORM_NAME: re.dataModel.FORM_NAME,
@@ -24717,22 +24790,22 @@ const $d = Ot({
24717
24790
  DATASET_NAME: re.dataModel.DATASET_NAME,
24718
24791
  TABLE_NAME: re.dataModel.TABLE_NAME
24719
24792
  }) : y === "SI00CodeClassEdit" ? M === "Add" && (u = {
24720
- PARENT_NODE_CODE: h == null ? void 0 : h.data.CURRENT_NODE_CODE,
24793
+ PARENT_NODE_CODE: m == null ? void 0 : m.data.CURRENT_NODE_CODE,
24721
24794
  CURRENT_NODE_CODE: `SI0116_${re.dataModel.CODE_CLASS}`,
24722
24795
  CURRENT_NODE_DESC: `${re.dataModel.CODE_CLASS}(${re.dataModel.CODE_NAME})`,
24723
24796
  FUNCTION_ID: re.dataModel.CODE_CLASS,
24724
24797
  NODE_TYPE: "SI0116_BASICCODE"
24725
24798
  }) : y === "SI00SequenceEdit" && M === "Add" && (u = {
24726
- PARENT_NODE_CODE: h == null ? void 0 : h.data.CURRENT_NODE_CODE,
24799
+ PARENT_NODE_CODE: m == null ? void 0 : m.data.CURRENT_NODE_CODE,
24727
24800
  CURRENT_NODE_CODE: `SI0117_${re.dataModel.SEQ_CODE}`,
24728
24801
  CURRENT_NODE_DESC: `${re.dataModel.SEQ_CODE}(${re.dataModel.SEQ_DESC})`,
24729
24802
  FUNCTION_ID: re.dataModel.SEQ_CODE,
24730
24803
  NODE_TYPE: "SI0117_SEQUENCE"
24731
24804
  }), L());
24732
- }), m.setEvent("itemButtonClick", async (re) => {
24805
+ }), h.setEvent("itemButtonClick", async (re) => {
24733
24806
  if (re.itemCode === "DATASET_NAME")
24734
24807
  if (re.type === "clear")
24735
- m.FormHelper.setControlEmptyValue("LayoutGroupMain", "DATASET_NAME,TABLE_NAME");
24808
+ h.FormHelper.setControlEmptyValue("LayoutGroupMain", "DATASET_NAME,TABLE_NAME");
24736
24809
  else {
24737
24810
  w.BordStyle = "Fixed";
24738
24811
  const ze = async () => {
@@ -24740,10 +24813,10 @@ const $d = Ot({
24740
24813
  return Ke.getStatus() < 0 ? (g.Core.messageError(Ke.getMsg()), []) : Ke.getBlockByIndex(0).getMappedRows();
24741
24814
  };
24742
24815
  w.receiveData(ze), w.BeforeOkButtonClick = (Ke) => (Ke == null ? void 0 : Ke.NODE_TYPE) !== "DataTable" ? !1 : Ke, w.show(null, (Ke) => {
24743
- Ke != null && Ke.data && (m.FormHelper.setControlValue("LayoutGroupMain", "DATASET_NAME", Ke.data.DATASET_NAME), m.FormHelper.setControlValue("LayoutGroupMain", "TABLE_NAME", Ke.data.DATATABLE_NAME));
24816
+ Ke != null && Ke.data && (h.FormHelper.setControlValue("LayoutGroupMain", "DATASET_NAME", Ke.data.DATASET_NAME), h.FormHelper.setControlValue("LayoutGroupMain", "TABLE_NAME", Ke.data.DATATABLE_NAME));
24744
24817
  });
24745
24818
  }
24746
- }), m.show(null);
24819
+ }), h.show(null);
24747
24820
  }, no = async (y) => {
24748
24821
  const M = {};
24749
24822
  switch (y.NODE_TYPE) {
@@ -24773,8 +24846,8 @@ const $d = Ot({
24773
24846
  break;
24774
24847
  }
24775
24848
  }
24776
- M.checkBlockName && g.Core.readFiles((h) => {
24777
- for (let W = 0; W < h.length; W++) {
24849
+ M.checkBlockName && g.Core.readFiles((m) => {
24850
+ for (let W = 0; W < m.length; W++) {
24778
24851
  const Se = new FileReader();
24779
24852
  Se.onload = async (ne) => {
24780
24853
  var Le, re;
@@ -24792,64 +24865,64 @@ const $d = Ot({
24792
24865
  const ze = new g.EIInfo();
24793
24866
  switch (M.popFormName) {
24794
24867
  case "SI00DataSetInfo": {
24795
- const ft = [], It = [], n = [];
24868
+ const ft = [], Ot = [], n = [];
24796
24869
  Pe.checkedItemArray.forEach((kt) => {
24797
24870
  const Vt = oe.blocks.TSI00DATASET_IMP.data.filter((uo) => uo.MODULE_NAME === kt.DATASET_NAME || uo.DATASET_NAME === kt.DATASET_NAME);
24798
24871
  ft.push(...Vt);
24799
24872
  const so = oe.blocks.TSI00DATATABLE_IMP.data.filter((uo) => uo.DATASET_NAME === kt.DATASET_NAME);
24800
- It.push(...so);
24873
+ Ot.push(...so);
24801
24874
  const ho = oe.blocks.TSI00DATARELATION_IMP.data.filter((uo) => uo.DATASET_NAME === kt.DATASET_NAME);
24802
24875
  n.push(...ho);
24803
- }), ze.addBlock(g.Core.buildEiBlock(ft, "TSI00DATASET_IMP")), ze.addBlock(g.Core.buildEiBlock(It, "TSI00DATATABLE_IMP")), ze.addBlock(g.Core.buildEiBlock(n, "TSI00DATARELATION_IMP"));
24876
+ }), ze.addBlock(g.Core.buildEiBlock(ft, "TSI00DATASET_IMP")), ze.addBlock(g.Core.buildEiBlock(Ot, "TSI00DATATABLE_IMP")), ze.addBlock(g.Core.buildEiBlock(n, "TSI00DATARELATION_IMP"));
24804
24877
  break;
24805
24878
  }
24806
24879
  case "SI00DataSourceInfo": {
24807
24880
  const ft = [];
24808
- Pe.checkedItemArray.forEach((It) => {
24809
- const n = oe.blocks.TSI00DATASOURCE_IMP.data.filter((kt) => kt.FUNC_ID === It.FUNC_ID);
24881
+ Pe.checkedItemArray.forEach((Ot) => {
24882
+ const n = oe.blocks.TSI00DATASOURCE_IMP.data.filter((kt) => kt.FUNC_ID === Ot.FUNC_ID);
24810
24883
  ft.push(...n);
24811
24884
  }), ze.addBlock(g.Core.buildEiBlock(ft, "TSI00DATASOURCE_IMP"));
24812
24885
  break;
24813
24886
  }
24814
24887
  case "SI00FormInfo": {
24815
- ["TSI00FORM", "TSI00GRIDVIEW", "TSI00GRIDCOLUMN", "TSI00GRIDCOLUMNURL", "TSI00GRIDSTYLE", "TSI00GRIDFORMAT", "TSI00GRIDBAND", "TSI00FORMBUTTON", "TSI00FORMCODECLASS", "TSI00FORMCODESETS", "TSI00GRIDCONDITION", "TSI00FORMRESOURCE", "TSI00GRIDVIEW_RES", "TSI00GRIDCOLUMN_RES", "TSI00GRIDBAND_RES", "TSI00FORMCODESETS_RES", "TSI00FORMRESOURCE_RES"].forEach((It) => {
24888
+ ["TSI00FORM", "TSI00GRIDVIEW", "TSI00GRIDCOLUMN", "TSI00GRIDCOLUMNURL", "TSI00GRIDSTYLE", "TSI00GRIDFORMAT", "TSI00GRIDBAND", "TSI00FORMBUTTON", "TSI00FORMCODECLASS", "TSI00FORMCODESETS", "TSI00GRIDCONDITION", "TSI00FORMRESOURCE", "TSI00GRIDVIEW_RES", "TSI00GRIDCOLUMN_RES", "TSI00GRIDBAND_RES", "TSI00FORMCODESETS_RES", "TSI00FORMRESOURCE_RES"].forEach((Ot) => {
24816
24889
  var kt;
24817
24890
  const n = [];
24818
24891
  (kt = Pe.checkedItemArray) == null || kt.forEach((Vt) => {
24819
24892
  var so;
24820
- if (oe.blocks[It + "_IMP"]) {
24821
- const ho = (so = oe.blocks[It + "_IMP"]) == null ? void 0 : so.data.filter((uo) => uo.FORM_NAME === Vt.FORM_NAME);
24893
+ if (oe.blocks[Ot + "_IMP"]) {
24894
+ const ho = (so = oe.blocks[Ot + "_IMP"]) == null ? void 0 : so.data.filter((uo) => uo.FORM_NAME === Vt.FORM_NAME);
24822
24895
  ho && n.push(...ho);
24823
24896
  }
24824
- }), n && ze.addBlock(g.Core.buildEiBlock(n, It + "_IMP"));
24897
+ }), n && ze.addBlock(g.Core.buildEiBlock(n, Ot + "_IMP"));
24825
24898
  });
24826
24899
  break;
24827
24900
  }
24828
24901
  case "SI00CodeClassInfo": {
24829
- ["TSI00CODE01", "TSI00CODE02", "TSI00CODE01_RES", "TSI00CODE02_RES"].forEach((It) => {
24902
+ ["TSI00CODE01", "TSI00CODE02", "TSI00CODE01_RES", "TSI00CODE02_RES"].forEach((Ot) => {
24830
24903
  var kt;
24831
24904
  const n = [];
24832
24905
  (kt = Pe.checkedItemArray) == null || kt.forEach((Vt) => {
24833
24906
  var so;
24834
- if (oe.blocks[It + "_IMP"]) {
24835
- const ho = (so = oe.blocks[It + "_IMP"]) == null ? void 0 : so.data.filter((uo) => uo.CODE_CLASS === Vt.CODE_CLASS);
24907
+ if (oe.blocks[Ot + "_IMP"]) {
24908
+ const ho = (so = oe.blocks[Ot + "_IMP"]) == null ? void 0 : so.data.filter((uo) => uo.CODE_CLASS === Vt.CODE_CLASS);
24836
24909
  ho && n.push(...ho);
24837
24910
  }
24838
- }), n && ze.addBlock(g.Core.buildEiBlock(n, It + "_IMP"));
24911
+ }), n && ze.addBlock(g.Core.buildEiBlock(n, Ot + "_IMP"));
24839
24912
  });
24840
24913
  break;
24841
24914
  }
24842
24915
  case "SI00SequenceInfo": {
24843
- ["TSI00SEQ01", "TSI00SEQ02"].forEach((It) => {
24916
+ ["TSI00SEQ01", "TSI00SEQ02"].forEach((Ot) => {
24844
24917
  var kt;
24845
24918
  const n = [];
24846
24919
  (kt = Pe.checkedItemArray) == null || kt.forEach((Vt) => {
24847
24920
  var so;
24848
- if (oe.blocks[It + "_IMP"]) {
24849
- const ho = (so = oe.blocks[It + "_IMP"]) == null ? void 0 : so.data.filter((uo) => uo.SEQ_CODE === Vt.SEQ_CODE);
24921
+ if (oe.blocks[Ot + "_IMP"]) {
24922
+ const ho = (so = oe.blocks[Ot + "_IMP"]) == null ? void 0 : so.data.filter((uo) => uo.SEQ_CODE === Vt.SEQ_CODE);
24850
24923
  ho && n.push(...ho);
24851
24924
  }
24852
- }), n && ze.addBlock(g.Core.buildEiBlock(n, It + "_IMP"));
24925
+ }), n && ze.addBlock(g.Core.buildEiBlock(n, Ot + "_IMP"));
24853
24926
  });
24854
24927
  break;
24855
24928
  }
@@ -24860,7 +24933,7 @@ const $d = Ot({
24860
24933
  const Ke = await g.Core.callService(t, ze);
24861
24934
  Ke.SysInfo && Ke.SysInfo.Flag < 0 ? g.Core.messageError(Ke.getMsg()) : g.Core.messageSuccess(M.successInfo);
24862
24935
  }
24863
- }, Se.readAsText(h[W]);
24936
+ }, Se.readAsText(m[W]);
24864
24937
  }
24865
24938
  });
24866
24939
  }, Jt = (y) => {
@@ -24905,11 +24978,11 @@ const $d = Ot({
24905
24978
  }
24906
24979
  return M;
24907
24980
  }, to = async (y) => {
24908
- var M, h, W;
24981
+ var M, m, W;
24909
24982
  if ((M = y.NODE_TYPE) != null && M.endsWith("_ROOT")) {
24910
24983
  if (!await o.messageConfirm("Are you sure to export all configuration data?"))
24911
24984
  return;
24912
- (h = y.children) == null || h.forEach((Se) => {
24985
+ (m = y.children) == null || m.forEach((Se) => {
24913
24986
  Lt(Jt(Se.data));
24914
24987
  });
24915
24988
  } else if ((W = y.NODE_TYPE) != null && W.startsWith("SI01")) {
@@ -24918,14 +24991,14 @@ const $d = Ot({
24918
24991
  Lt(Jt(y));
24919
24992
  }
24920
24993
  }, Lt = async (y) => {
24921
- var M, h, W, Se;
24994
+ var M, m, W, Se;
24922
24995
  if (y.QUERY_TYPE) {
24923
24996
  const ne = g.Core.buildEiInfo([y]), oe = await g.Core.callService(e, ne);
24924
- (M = oe.SysInfo) != null && M.Flag && ((h = oe.SysInfo) == null ? void 0 : h.Flag) < 0 ? g.Core.messageError(oe.getMsg()) : ((W = oe.getBlockByIndex(0).getMappedRows()) == null ? void 0 : W.length) > 0 && g.Core.saveAsJsonFile(oe, `ER_${y.CONFIG_TYPE}_${y.MODULE_NAME}_${((Se = y.FUNCTION_ID) == null ? void 0 : Se.trim()) || "All"}_${g.Core.getDateTimeFormatString("Now")}`);
24997
+ (M = oe.SysInfo) != null && M.Flag && ((m = oe.SysInfo) == null ? void 0 : m.Flag) < 0 ? g.Core.messageError(oe.getMsg()) : ((W = oe.getBlockByIndex(0).getMappedRows()) == null ? void 0 : W.length) > 0 && g.Core.saveAsJsonFile(oe, `ER_${y.CONFIG_TYPE}_${y.MODULE_NAME}_${((Se = y.FUNCTION_ID) == null ? void 0 : Se.trim()) || "All"}_${g.Core.getDateTimeFormatString("Now")}`);
24925
24998
  }
24926
24999
  }, qt = async (y, M) => {
24927
- const h = y.split(",");
24928
- await g.Core.sleep(250), h.forEach((W) => {
25000
+ const m = y.split(",");
25001
+ await g.Core.sleep(250), m.forEach((W) => {
24929
25002
  o.initialGridToolbar(W, {
24930
25003
  addrow: {
24931
25004
  visible: !(W === "gridView7" && M.NODE_TYPE !== "SI0114_DATATABLE"),
@@ -25003,7 +25076,7 @@ const $d = Ot({
25003
25076
  });
25004
25077
  });
25005
25078
  }, Wt = (y) => {
25006
- var M, h, W, Se, ne;
25079
+ var M, m, W, Se, ne;
25007
25080
  if (y.rowChanged) {
25008
25081
  if (y.data) {
25009
25082
  if (o.setGridColumnEditable("gridView4", y.data.isNew, "CODE_CLASS"), (p == null ? void 0 : p.length) > 0) {
@@ -25021,7 +25094,7 @@ const $d = Ot({
25021
25094
  preventDefault: !0
25022
25095
  },
25023
25096
  copyrow: {
25024
- visible: ((h = y.data) == null ? void 0 : h.isNew) === !1
25097
+ visible: ((m = y.data) == null ? void 0 : m.isNew) === !1
25025
25098
  },
25026
25099
  delete: {
25027
25100
  visible: ((W = y.data) == null ? void 0 : W.isNew) === !1
@@ -25043,18 +25116,18 @@ const $d = Ot({
25043
25116
  y.rowChanged && y.data && o.setGridColumnEditable("gridView19", y.data.isNew, "ITEM_CODE");
25044
25117
  }, Ao = (y) => {
25045
25118
  let M = 1;
25046
- y.api.forEachLeafNode((h) => {
25047
- h.setDataValue("C_SEQ_ID", String(M).padStart(3, "0")), M++;
25119
+ y.api.forEachLeafNode((m) => {
25120
+ m.setDataValue("C_SEQ_ID", String(M).padStart(3, "0")), M++;
25048
25121
  });
25049
- }, Qo = (y) => {
25122
+ }, Xo = (y) => {
25050
25123
  let M = 1;
25051
- y.api.forEachLeafNode((h) => {
25052
- h.setDataValue("C_SEQ_ID", String(M).padStart(3, "0")), M++;
25124
+ y.api.forEachLeafNode((m) => {
25125
+ m.setDataValue("C_SEQ_ID", String(M).padStart(3, "0")), M++;
25053
25126
  });
25054
25127
  }, E = () => {
25055
- var M, h;
25128
+ var M, m;
25056
25129
  const y = Ie.value.find((W) => W.CODE === xe.value);
25057
- return (M = y == null ? void 0 : y.PARTITION_SERVER) != null && M.trim().startsWith("http") ? (h = y == null ? void 0 : y.PARTITION_SERVER) == null ? void 0 : h.trim() : y == null ? void 0 : y.PARTITION_CODE;
25130
+ return (M = y == null ? void 0 : y.PARTITION_SERVER) != null && M.trim().startsWith("http") ? (m = y == null ? void 0 : y.PARTITION_SERVER) == null ? void 0 : m.trim() : y == null ? void 0 : y.PARTITION_CODE;
25058
25131
  }, L = async () => {
25059
25132
  const y = g.Core.buildEiInfo([{
25060
25133
  QUERY_TYPE: "alldevtree",
@@ -25069,8 +25142,8 @@ const $d = Ot({
25069
25142
  }]), M = await g.Core.callService(e, y, { show: !0, delay: 1e3 }, { messageError: !0 });
25070
25143
  M.getStatus() >= 0 ? (a = b == null ? void 0 : b.setTreeData(M.getBlockByIndex(0).getMappedRows(), u == null ? void 0 : u.CURRENT_NODE_CODE), g.Core.setLocalStorage("devTreeDefaultServer", xe.value)) : a = b == null ? void 0 : b.setTreeData([]);
25071
25144
  }, pe = async (y) => {
25072
- const M = g.Core.buildEiInfo([{ QUERY_TYPE: "TSI00MODULE", MODULE_TYPE: y }]), h = await g.Core.callService(e, M);
25073
- return h.SysInfo && h.SysInfo.Flag < 0 ? (g.Core.messageError(h.getMsg()), []) : h.getBlockByIndex(0).getMappedRows().map((W) => ({
25145
+ const M = g.Core.buildEiInfo([{ QUERY_TYPE: "TSI00MODULE", MODULE_TYPE: y }]), m = await g.Core.callService(e, M);
25146
+ return m.SysInfo && m.SysInfo.Flag < 0 ? (g.Core.messageError(m.getMsg()), []) : m.getBlockByIndex(0).getMappedRows().map((W) => ({
25074
25147
  CODE: W.MODULE_ENAME,
25075
25148
  CODE_DESC_1_CONTENT: W.MODULE_CNAME
25076
25149
  }));
@@ -25093,36 +25166,36 @@ const $d = Ot({
25093
25166
  else if (i.value === 1 && Ie.value.length > 0) {
25094
25167
  await g.Core.sleep(630);
25095
25168
  const M = g.Core.getLocalStorage("devTreeDefaultServer");
25096
- M && Ie.value.find((h) => h.CODE === M) ? xe.value = M : xe.value = Ie.value[0].CODE, ct(xe.value), L();
25169
+ M && Ie.value.find((m) => m.CODE === M) ? xe.value = M : xe.value = Ie.value[0].CODE, ct(xe.value), L();
25097
25170
  }
25098
25171
  }, Et = async (y) => {
25099
25172
  var W, Se, ne;
25100
25173
  o.FormDataSet.clear();
25101
- const M = g.Core.buildEiInfo([y]), h = await g.Core.callService(e, M);
25102
- if (h.getStatus() < 0) {
25103
- g.Core.messageError(h.getMsg());
25174
+ const M = g.Core.buildEiInfo([y]), m = await g.Core.callService(e, M);
25175
+ if (m.getStatus() < 0) {
25176
+ g.Core.messageError(m.getMsg());
25104
25177
  return;
25105
25178
  }
25106
25179
  switch (y == null ? void 0 : y.QUERY_TYPE) {
25107
25180
  case "tsi00trace": {
25108
- o.mergeDataToGrid(h, "gridView0");
25181
+ o.mergeDataToGrid(m, "gridView0");
25109
25182
  break;
25110
25183
  }
25111
25184
  case "si0114_details": {
25112
- o.mergeEiInfoToGrid(h, "gridView7,gridView8,gridView9"), (W = o.getGridApi("gridView7")) == null || W.expandAll(), (Se = o.getGridApi("gridView8")) == null || Se.expandAll();
25185
+ o.mergeEiInfoToGrid(m, "gridView7,gridView8,gridView9"), (W = o.getGridApi("gridView7")) == null || W.expandAll(), (Se = o.getGridApi("gridView8")) == null || Se.expandAll();
25113
25186
  break;
25114
25187
  }
25115
25188
  case "si0115_view": {
25116
- o.mergeEiInfoToGrid(h, y.FUNC_TYPE === "G" || y.FUNC_TYPE === "P" ? `${De.value},gridView2,treeList1,gridView11` : `${De.value},gridView11`), o.reloadDropDownDataSource(De.value, "FIELD_NAME", h.getBlock("BINDING_FIELDS"));
25189
+ o.mergeEiInfoToGrid(m, y.FUNC_TYPE === "G" || y.FUNC_TYPE === "P" ? `${De.value},gridView2,treeList1,gridView11` : `${De.value},gridView11`), o.reloadDropDownDataSource(De.value, "FIELD_NAME", m.getBlock("BINDING_FIELDS"));
25117
25190
  break;
25118
25191
  }
25119
25192
  case "tsi00code01_detail":
25120
- o.mergeDataToLayoutOrGrid(h, !0, "LayoutGroupCodeClass,gridView12");
25193
+ o.mergeDataToLayoutOrGrid(m, !0, "LayoutGroupCodeClass,gridView12");
25121
25194
  case "tsi00seq_detail":
25122
- o.mergeEiInfoToGrid(h, "gridView13,gridView14");
25195
+ o.mergeEiInfoToGrid(m, "gridView13,gridView14");
25123
25196
  case "si0112_details":
25124
- if (h.getBlock("TSI00GRIDVIEW_DATASOURCE") && o.mergeEiBlockToGrid(h.getBlock("TSI00GRIDVIEW_DATASOURCE"), "gridView10"), h.getBlock("TSI00DATASOURCE")) {
25125
- const oe = h.getBlock("TSI00DATASOURCE").getMappedRows();
25197
+ if (m.getBlock("TSI00GRIDVIEW_DATASOURCE") && o.mergeEiBlockToGrid(m.getBlock("TSI00GRIDVIEW_DATASOURCE"), "gridView10"), m.getBlock("TSI00DATASOURCE")) {
25198
+ const oe = m.getBlock("TSI00DATASOURCE").getMappedRows();
25126
25199
  if ((oe == null ? void 0 : oe.length) > 0) {
25127
25200
  let Pe = g.Core.toString(oe[0].SQL_CONTENT);
25128
25201
  g.Core.toString(oe[0].GROUP_KEY_VALUE).trim().length > 0 && (Pe += `
@@ -25131,21 +25204,21 @@ const $d = Ot({
25131
25204
  }
25132
25205
  }
25133
25206
  case "si0115_form":
25134
- h.getBlock("TSI00FORMBUTTON") && o.mergeEiBlockToGrid(h.getBlock("TSI00FORMBUTTON"), "gridView3"), h.getBlock("TSI00FORMCODECLASS") && (p = (ne = h.getBlock("TSI00FORMCODESETS")) == null ? void 0 : ne.getMappedRows(), o.mergeEiBlockToGrid(h.getBlock("TSI00FORMCODECLASS"), "gridView4")), h.getBlock("TSI00FORMRESOURCE") && o.mergeEiBlockToGrid(h.getBlock("TSI00FORMRESOURCE"), "gridView19");
25207
+ m.getBlock("TSI00FORMBUTTON") && o.mergeEiBlockToGrid(m.getBlock("TSI00FORMBUTTON"), "gridView3"), m.getBlock("TSI00FORMCODECLASS") && (p = (ne = m.getBlock("TSI00FORMCODESETS")) == null ? void 0 : ne.getMappedRows(), o.mergeEiBlockToGrid(m.getBlock("TSI00FORMCODECLASS"), "gridView4")), m.getBlock("TSI00FORMRESOURCE") && o.mergeEiBlockToGrid(m.getBlock("TSI00FORMRESOURCE"), "gridView19");
25135
25208
  }
25136
25209
  };
25137
25210
  Xt(async () => {
25138
25211
  var M;
25139
- if (Ft = "SI00AllDevConfig", He = "JAER01/getFormConfig", new ResizeObserver((h) => {
25212
+ if (Ft = "SI00AllDevConfig", He = "JAER01/getFormConfig", new ResizeObserver((m) => {
25140
25213
  var Se;
25141
- const W = h[0].contentRect.width;
25142
- U.value = h[0].contentRect.height - ((Se = r.options) != null && Se.isDevPlat ? 50 : 150), Mt(W, 350);
25214
+ const W = m[0].contentRect.width;
25215
+ U.value = m[0].contentRect.height - ((Se = r.options) != null && Se.isDevPlat ? 50 : 150), Mt(W, 350);
25143
25216
  }).observe(f.value.container), (M = r.options) != null && M.isDevPlat)
25144
25217
  xe.value = mt;
25145
25218
  else {
25146
- const h = g.Core.buildEiInfo([{
25219
+ const m = g.Core.buildEiInfo([{
25147
25220
  QUERY_TYPE: "system_auth_list"
25148
- }]), W = await g.Core.callService(e, h);
25221
+ }]), W = await g.Core.callService(e, m);
25149
25222
  if (W.getStatus() < 0) {
25150
25223
  g.Core.messageError(W.getMsg());
25151
25224
  return;
@@ -25196,9 +25269,9 @@ const $d = Ot({
25196
25269
  o.messageInfo({ message: g.Core.$t("ERX.NoChangeMessage"), culture: !0 });
25197
25270
  return;
25198
25271
  }
25199
- const h = M.split(",");
25200
- for (let Pe = 0; Pe < h.length; Pe++)
25201
- if (!o.checkGridInput(h[Pe]))
25272
+ const m = M.split(",");
25273
+ for (let Pe = 0; Pe < m.length; Pe++)
25274
+ if (!o.checkGridInput(m[Pe]))
25202
25275
  return;
25203
25276
  const W = o.getGridChangedRowsAsEiInfo(M);
25204
25277
  if (M.includes("LayoutGroupCodeClass") && o.hasDataChange("LayoutGroupCodeClass")) {
@@ -25221,7 +25294,7 @@ const $d = Ot({
25221
25294
  erFormHelper: o,
25222
25295
  queryInfo: Et
25223
25296
  }), (y, M) => {
25224
- const h = Ve("a-input"), W = Ve("a-button"), Se = Ve("a-tooltip"), ne = Ve("a-input-group"), oe = Ve("a-popover"), Pe = Ve("v-splitter-pane"), Le = Ve("a-tab-pane"), re = Ve("v-splitter"), ze = Ve("a-tabs"), Ke = Ve("a-config-providver");
25297
+ const m = Ve("a-input"), W = Ve("a-button"), Se = Ve("a-tooltip"), ne = Ve("a-input-group"), oe = Ve("a-popover"), Pe = Ve("v-splitter-pane"), Le = Ve("a-tab-pane"), re = Ve("v-splitter"), ze = Ve("a-tabs"), Ke = Ve("a-config-providver");
25225
25298
  return x(), de(Ke, {
25226
25299
  theme: Qe.value,
25227
25300
  locale: Me.value,
@@ -25237,7 +25310,7 @@ const $d = Ot({
25237
25310
  default: Y(() => [
25238
25311
  Fe(Pe, { size: G.value }, {
25239
25312
  default: Y(() => {
25240
- var ft, It;
25313
+ var ft, Ot;
25241
25314
  return [
25242
25315
  (ft = r.options) != null && ft.isDevPlat ? je("", !0) : (x(), de(So, {
25243
25316
  key: 0,
@@ -25270,7 +25343,7 @@ const $d = Ot({
25270
25343
  Fe(So, {
25271
25344
  "open-header-show": !1,
25272
25345
  title: "ER Dev Directory",
25273
- style: _t({ height: (It = r.options) != null && It.isDevPlat ? "100%" : "calc(100% - 100px)" })
25346
+ style: _t({ height: (Ot = r.options) != null && Ot.isDevPlat ? "100%" : "calc(100% - 100px)" })
25274
25347
  }, {
25275
25348
  contentSlot: Y(() => [
25276
25349
  Fe(oe, {
@@ -25283,7 +25356,7 @@ const $d = Ot({
25283
25356
  compact: ""
25284
25357
  }, {
25285
25358
  default: Y(() => [
25286
- Fe(h, {
25359
+ Fe(m, {
25287
25360
  value: lt.value,
25288
25361
  "onUpdate:value": M[2] || (M[2] = (n) => lt.value = n),
25289
25362
  ref_key: "refFindInput",
@@ -25380,7 +25453,7 @@ const $d = Ot({
25380
25453
  default: Y(() => [
25381
25454
  be("div", mu, [
25382
25455
  be("ul", Cu, [
25383
- (x(!0), Ze(Oo, null, xo(Ae(pu).glyphs, (ft, It) => (x(), Ze("li", Eu, [
25456
+ (x(!0), Ze(Oo, null, xo(Ae(pu).glyphs, (ft, Ot) => (x(), Ze("li", Eu, [
25384
25457
  (x(), Ze("svg", _u, [
25385
25458
  be("use", {
25386
25459
  "xlink:href": "#icon-" + ft.name
@@ -25446,7 +25519,7 @@ const $d = Ot({
25446
25519
  "config-id": "treeList1",
25447
25520
  options: { autoGuidField: "ROW_GUID", customContextMenu: et },
25448
25521
  groupDefaultExpanded: -1,
25449
- onRowDragEnd: Qo
25522
+ onRowDragEnd: Xo
25450
25523
  }, null, 8, ["er-form-helper-prop", "options"])) : je("", !0)
25451
25524
  ]),
25452
25525
  _: 1