С рабочего компа

This commit is contained in:
2020-02-27 09:40:17 +06:00
parent 925cac4752
commit 3d93536189
8 changed files with 60 additions and 69 deletions

View File

@ -23,7 +23,7 @@ class EdtRec
this.win=new TWin();
this.win.TWin(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.setContent('<div id="eDiv'+this.uid+'" style="width: 100%; height: 100%; position: relative;"></div>');
let eDiv=document.getElementById('eDiv'+this.uid);
eDiv.innerHTML = '<table width="100%" height="100%" border="0px" cellspacing="0" cellpadding="0"><tr><td style="vertical-align:middle;" bgcolor="#F1F1F1"><center><IMG src="../resources/metadata/dbms/images/loading.gif"></center></td></tr></table>'
@ -140,7 +140,7 @@ class EdtRec
//Записываю record_id в соответствующее XML поле
this.setPropCdata(nodeType.getAttribute("ObjectID"),record_id);
var str='';
let str='';
str+=' <table id="eTable'+this.uid+'" border="0px" cellspacing="1" cellpadding="1" style="width: 100%; height: 100%; background-color: #afafaf;">';
str+=' <caption><b id="caption'+this.uid+'"></b></caption>';
str+=' <thead>';
@ -346,7 +346,7 @@ class EdtRec
var button = document.createElement('input');
button.setAttribute("type","button");
button.setAttribute("value","...");
button.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;";
button.style.cssText="width:30px; font-size: 9pt;";
button.onclick=function(thiz,nodeProp){ return function(){
thiz.callWindow(nodeProp);
};}(this,nodeProp);
@ -399,7 +399,6 @@ class EdtRec
}else
if(vt=="i4")
{
//alert("prop name = "+nodeProp.getAttribute("n"));
//If there is a node "list" with the elements "CheckBox" then create them.
@ -423,7 +422,6 @@ class EdtRec
opt=opt.nextSibling;
}
td2.appendChild( select );
}else
{
var table=document.createElement('table');
@ -434,9 +432,9 @@ class EdtRec
var newCell1 = newRow.insertCell(0); //in the created line we add a column
newCell1.style.cssText="padding:0px; padding-right:1px; width: 100%;";
var newCell2 = newRow.insertCell(1); //in the created line we add a column
newCell2.style.cssText="padding:0px; padding-right:1px;height:100%;";
newCell2.style.cssText="padding:0px; padding-right:1px;";
var newCell3 = newRow.insertCell(2); //in the created line we add a column
newCell3.style.cssText="padding:0px;height:100%;";
newCell3.style.cssText="padding:0px;";
input = document.createElement('input');
input.style.cssText="width: 100%; height:22px;";
@ -450,7 +448,7 @@ class EdtRec
button.setAttribute("type","button");
button.setAttribute("value","+");
button.setAttribute("title",_("Increase_by_1"));
button.style.cssText="height:100%;width:22px;margin:0px;padding:0px;";
button.style.cssText="height:22px;width:22px;";
button.onclick=function(inp){return function(){inp.value=getIntVal(inp.value)+1;}}(input);
newCell2.appendChild( button );
@ -459,7 +457,7 @@ class EdtRec
button.setAttribute("type","button");
button.setAttribute("value","-");
button.setAttribute("title",_("Decrease_by_1"));
button.style.cssText="height:100%;width:22px;margin:0px;padding:0px;";
button.style.cssText="height:22px;width:22px;";
button.onclick=function(inp){return function(){inp.value=getIntVal(inp.value)-1;}}(input);
newCell3.appendChild( button );
@ -488,9 +486,9 @@ class EdtRec
table.border=0;
let newRow=table.insertRow(0); //add a row to the created table
var newCell1 = newRow.insertCell(0); //in the created line we add a column
newCell1.style.cssText="padding:0px;padding-right:1px;width:100%;";
newCell1.style.cssText="padding:0px; width: 100%;";
var newCell2 = newRow.insertCell(1); //in the created line we add a column
newCell2.style.cssText="padding:0px;height:100%;";
newCell2.style.cssText="padding:0px;";
select = document.createElement('select');
select.style.cssText="width: 100%; height:22px; line-height: 22px;";
@ -510,7 +508,7 @@ class EdtRec
var button = document.createElement('input');
button.setAttribute("type","button");
button.setAttribute("value","...");
button.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;height:100%;";
button.style.cssText="width:30px; font-size: 9pt;";
button.onclick=this.onSelObj(nodeProp.getAttribute("ot"),nodeProp.getAttribute("n"));
newCell2.appendChild(button);
@ -577,7 +575,7 @@ class EdtRec
var button = document.createElement('input');
button.setAttribute("type","button");
button.setAttribute("value","...");
button.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;";
button.style.cssText="width:30px; font-size: 9pt;";
button.onclick=this.onSelObj(nodeProp.getAttribute("ot"),nodeProp.getAttribute("n"));
newCell2.appendChild(button);
@ -648,14 +646,14 @@ class EdtRec
btnSel.setAttribute("value","...");
btnSel.setAttribute("title",_('Upload'));
btnSel.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;";
btnSel.style.cssText="width:30px; font-size: 9pt;";
newCell2.appendChild(btnSel);
var button2 = document.createElement('input');
button2.setAttribute("type","button");
button2.setAttribute("value","X");
button2.setAttribute("title",_('Delete'));
button2.style.cssText="height:22px;width:22px;margin:0px;padding:0px;";
button2.style.cssText="height:22px;width:22px;";
button2.onclick=function(inp,ifr){return function(){ inp.value=''; getIframeDocument(ifr).forms["form"].reset(); }}(input,ifr);
newCell3.appendChild(button2);
@ -690,7 +688,7 @@ class EdtRec
table.style.cssText="width:100%;border-spacing:0;border-collapse:collapse;";
//table.setAttribute("bgColor","#0000FF");
table.border=0;
let newRow=table.insertRow(0);
newRow=table.insertRow(0);
var newCell1 = newRow.insertCell(0);
newCell1.style.cssText="padding:0px;width: 100%;";
var newCell2 = newRow.insertCell(1);
@ -705,7 +703,7 @@ class EdtRec
newCell1.appendChild( input );
var img = document.createElement('img');
img.src='../resources/metadata/dbms/images/datepicker.jpg';
img.src='../resources/engine/images/datepicker.jpg';
img.style.cssText="cursor: pointer;";
newCell2.appendChild(img);
@ -762,7 +760,7 @@ class EdtRec
td.setAttribute("align","right");
button = document.createElement('input');
button.setAttribute("type","button");
button.style.cssText="margin:0px;margin-right:1px;padding:0px;";
button.style.cssText="width: 90px;";
button.setAttribute("value",_('Apply'));
button.onclick=function(thiz){
return function(){
@ -770,10 +768,9 @@ class EdtRec
};
}(this);
td.appendChild( button );
button = document.createElement('input'); //Button cancel
button.setAttribute("type","button");
button.style.cssText="margin:0px;padding:0px;";
button.style.cssText="width: 90px;";
button.setAttribute("value",_('Cancel'));
//button.onclick=function f_exit(this) { alert(this.win.div); }
button.onclick=function(thiz){ return function(){thiz.win.Close();};}(this);