Наследование 2
This commit is contained in:
@ -8,10 +8,11 @@ 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
|
||||
class EdtRec extends TWin
|
||||
{
|
||||
constructor(caption)
|
||||
constructor(caption,dialog,path)
|
||||
{
|
||||
super(dialog,path);
|
||||
this.uid=getUID();
|
||||
this.record_id=null;
|
||||
|
||||
@ -19,6 +20,7 @@ class EdtRec
|
||||
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>'
|
||||
@ -26,7 +28,6 @@ class EdtRec
|
||||
this.caption=caption;
|
||||
if(this.caption!='')
|
||||
this.win.setCaption(this.caption);
|
||||
this.win.obj=this;
|
||||
this.win.hide(false);
|
||||
|
||||
this.name="name"+this.uid;
|
||||
|
||||
Reference in New Issue
Block a user