Редактор панелей: применение P8PDialog, переименование серверного пакета

This commit is contained in:
Mikhail Chechnev 2025-07-21 11:52:08 +03:00
parent a3fd089452
commit d792187ff9
3 changed files with 9 additions and 17 deletions

View File

@ -59,7 +59,7 @@ const useUserProcDesc = ({ code, refresh }) => {
try {
setLoading(true);
const data = await executeStored({
stored: "PKG_P8PANELS_EDITOR.USERPROCS_DESC",
stored: "PKG_P8PANELS_PE.USERPROCS_DESC",
args: { SCODE: code },
respArg: "COUT",
isArray: name => name === "arguments",

View File

@ -17,10 +17,6 @@ import {
Typography,
Divider,
Chip,
Dialog,
DialogTitle,
DialogContent,
DialogActions,
Button,
TextField,
InputAdornment,
@ -34,6 +30,7 @@ import {
import client from "../../../core/client"; //Клиент БД
import { ApplicationСtx } from "../../../context/application"; //Контекст приложения
import { BUTTONS } from "../../../../app.text"; //Общие текстовые ресурсы
import { P8PDialog } from "../../../components/p8p_dialog"; //Типовой диалог
import { useUserProcDesc } from "./components_hooks"; //Общие хуки компонентов
import "../panels_editor.css"; //Стили редактора
@ -168,14 +165,9 @@ EditorSubHeader.propTypes = {
const ConfigDialog = ({ title, children, onOk, onCancel }) => {
//Формирование представления
return (
<Dialog onClose={onCancel} open>
<DialogTitle>{title}</DialogTitle>
<DialogContent>{children}</DialogContent>
<DialogActions>
<Button onClick={() => onOk && onOk()}>{BUTTONS.OK}</Button>
<Button onClick={() => onCancel && onCancel()}>{BUTTONS.CANCEL}</Button>
</DialogActions>
</Dialog>
<P8PDialog title={title} onOk={onOk} onCancel={onCancel}>
{children}
</P8PDialog>
);
};

View File

@ -1,4 +1,4 @@
create or replace package PKG_P8PANELS_EDITOR as
create or replace package PKG_P8PANELS_PE as
/* Список аргументов пользовательской процедуры */
procedure USERPROCS_DESC
@ -7,9 +7,9 @@ create or replace package PKG_P8PANELS_EDITOR as
COUT out clob -- Сериализованный список аргументов
);
end PKG_P8PANELS_EDITOR;
end PKG_P8PANELS_PE;
/
create or replace package body PKG_P8PANELS_EDITOR as
create or replace package body PKG_P8PANELS_PE as
/* Описание пользовательской процедуры */
procedure USERPROCS_DESC
@ -123,5 +123,5 @@ create or replace package body PKG_P8PANELS_EDITOR as
end if;
end USERPROCS_DESC;
end PKG_P8PANELS_EDITOR;
end PKG_P8PANELS_PE;
/