После проверки на ИБ
This commit is contained in:
@ -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')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user