После проверки на ИБ

This commit is contained in:
2025-07-17 18:45:40 +05:00
parent 65fe6498cd
commit e7a712af02
11 changed files with 112 additions and 2908 deletions

View File

@ -1579,7 +1579,11 @@ class SRec
let erec = new EdtRec("");
erec.win.setParent(this.win);
erec.opener=this;
erec.eRecNo(this.nodeMetadata,id);
if(findNodeOnPath(this.nodeMetadata, 'type/properties')!=null)
erec.eRecNo(this.nodeMetadata,id);
else
erec.eRecNa(this.f_TypeName,id,null);
//e.win.setLeftTop(pageX-10,pageY-10);
if(this.onInsert!=null) this.onUpdate(erec);
@ -1601,7 +1605,11 @@ class SRec
let erec = new EdtRec("");
erec.win.setParent(this.win);
erec.opener=this;
erec.eRecNo(this.nodeMetadata,id);
//alert("2 "+findNodeOnPath(this.nodeMetadata, 'type/properties'));
if(findNodeOnPath(this.nodeMetadata, 'type/properties')!=null)
erec.eRecNo(this.nodeMetadata,id);
else
erec.eRecNa(this.f_TypeName,id,null);
//e.win.setLeftTop(pageX-10,pageY-10);
if(this.onInsert!=null) this.onUpdate(erec);
@ -1668,7 +1676,7 @@ class SRec
{
this.f_TypeName=typeName;
this.f_Settings=settings;
postXMLData(ScriptName,'<metadata fn="0"><type n="'+this.f_TypeName+'"></type></metadata>',(ok,data)=>{
postXMLData(ScriptDBMS+"metadata",'<metadata fn="0"><type n="'+this.f_TypeName+'"></type></metadata>',(ok,data)=>{
if(ok){
if(data.error_code=='0')
{