В xyz
This commit is contained in:
@ -8,11 +8,10 @@ function setPropVal(uid,id,c,p){
|
||||
|
||||
var ERec_mas = new Array(); //List of all ERec objects (TODO then you better come up with something).
|
||||
|
||||
class EdtRec extends TWin
|
||||
class EdtRec
|
||||
{
|
||||
constructor(caption,dialog,path)
|
||||
constructor(caption)
|
||||
{
|
||||
super(dialog,path);
|
||||
this.uid=getUID();
|
||||
this.record_id=null;
|
||||
|
||||
@ -20,7 +19,6 @@ class EdtRec extends TWin
|
||||
this.win.BuildGUI(pageX-10,pageY-10);
|
||||
this.win.setSize("500px","150px");
|
||||
this.win.setContent('<div id="eDiv'+this.uid+'" style="width: 100%; /*height: 100%;*/ position: relative;"></div>');
|
||||
this.win.obj=this;
|
||||
|
||||
let eDiv=document.getElementById('eDiv'+this.uid);
|
||||
eDiv.innerHTML = '<table style="width:100%;height:100%"><tr><td style="vertical-align:middle;background-color:#F1F1F1"><center><IMG src="../resources/metadata/dbms/images/loading.gif"></center></td></tr></table>'
|
||||
@ -28,6 +26,7 @@ class EdtRec extends TWin
|
||||
this.caption=caption;
|
||||
if(this.caption!='')
|
||||
this.win.setCaption(this.caption);
|
||||
this.win.obj=this;
|
||||
this.win.hide(false);
|
||||
|
||||
this.name="name"+this.uid;
|
||||
@ -831,7 +830,7 @@ class EdtRec extends TWin
|
||||
button.setAttribute("value",trt('Apply'));
|
||||
button.onclick=()=>this.sendData();
|
||||
td.appendChild( button );
|
||||
|
||||
|
||||
button = document.createElement('input'); //Button cancel
|
||||
button.classList.add('button-secondary');
|
||||
button.setAttribute("type","button");
|
||||
@ -1038,7 +1037,7 @@ class EdtRec extends TWin
|
||||
}else
|
||||
{
|
||||
let xml='<?xml version="1.0" encoding="utf-8"?><metadata fn="6"><type n="'+nodeProp.getAttribute("ot")+'" c="'+nodeProp.getAttribute("FieldCaption")+'" pn="'+nodeProp.getAttribute("n")+'" fn="'+nodeProp.getAttribute("fn")+'"></type></metadata>';
|
||||
if(this.request.callServer(ScriptName,xml,true));
|
||||
if(this.request.callServer(ScriptName,xml,true))
|
||||
{
|
||||
this.showProgressBar();
|
||||
}
|
||||
@ -1204,8 +1203,8 @@ class EdtRec extends TWin
|
||||
{
|
||||
this.hideProgressBar();
|
||||
|
||||
if(node.errorCode>0) {
|
||||
alert2(trt('Alert'), node.errorMessage);
|
||||
if(node.error_code>0) {
|
||||
alert2(trt('Alert'), node.error_message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user