Подправил выбор при редактировании. А также переделал в класс окно выбора.
This commit is contained in:
@ -511,7 +511,7 @@ class EdtRec
|
|||||||
button.setAttribute("type","button");
|
button.setAttribute("type","button");
|
||||||
button.setAttribute("value","...");
|
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;margin:0px;padding:0px;height:100%;";
|
||||||
button.onclick=this.onSelObj(nodeProp.getAttribute("ot"),nodeProp.getAttribute("n"));
|
button.onclick=function(thiz,val1,val2){return function(){thiz.SelectObjects(val1,val2);};}(this,nodeProp.getAttribute("ot"),nodeProp.getAttribute("n"));
|
||||||
newCell2.appendChild(button);
|
newCell2.appendChild(button);
|
||||||
|
|
||||||
td2.appendChild( table );
|
td2.appendChild( table );
|
||||||
@ -578,7 +578,7 @@ class EdtRec
|
|||||||
button.setAttribute("type","button");
|
button.setAttribute("type","button");
|
||||||
button.setAttribute("value","...");
|
button.setAttribute("value","...");
|
||||||
button.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;";
|
button.style.cssText="width:30px;font-size:9pt;margin:0px;padding:0px;";
|
||||||
button.onclick=this.onSelObj(nodeProp.getAttribute("ot"),nodeProp.getAttribute("n"));
|
button.onclick=function(thiz,val1,val2){return function(){thiz.SelectObjects(val1,val2);};}(this,nodeProp.getAttribute("ot"),nodeProp.getAttribute("n"));
|
||||||
newCell2.appendChild(button);
|
newCell2.appendChild(button);
|
||||||
|
|
||||||
td2.appendChild( table );
|
td2.appendChild( table );
|
||||||
@ -883,26 +883,23 @@ class EdtRec
|
|||||||
win.setContent(str);
|
win.setContent(str);
|
||||||
};
|
};
|
||||||
|
|
||||||
onSelObj(val1,val2)
|
//request data to fill the Object Filter
|
||||||
|
//The result can fill the filter field with complete information or a window with a further choice of the value
|
||||||
|
SelectObjects(typeName,propname)
|
||||||
{
|
{
|
||||||
var obj=this;
|
let rec=new SRec();
|
||||||
return function()
|
rec.opener=this;
|
||||||
{
|
|
||||||
var rec=new SRec();
|
|
||||||
rec.create();
|
rec.create();
|
||||||
//rec.f_Settings=xmlString;
|
rec.f_State=1;
|
||||||
rec.f_State='0';
|
rec.f_PropName=propname;
|
||||||
rec.f_TypeName=val1;
|
rec.f_TypeName=typeName;
|
||||||
rec.f_PropName=val2;
|
|
||||||
rec.win.setLeftTop(pageX-250,pageY-10);
|
rec.win.setLeftTop(pageX-250,pageY-10);
|
||||||
rec.win.setParent(obj.win);
|
rec.win.setParent(this.win);
|
||||||
if(rec.request.callServer(ScriptName,'<?xml version="1.0" encoding="utf-8"?><metadata fn="0"><type n="'+rec.f_TypeName+'"></type></metadata>'))
|
if(rec.request.callServer(ScriptName,'<?xml version="1.0" encoding="utf-8"?><metadata fn="0"><type n="'+rec.f_TypeName+'"></type></metadata>'))
|
||||||
{
|
{
|
||||||
obj.showProgressBar();
|
rec.showProgressBar();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//win.selObj(val1,val2);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
//Call the ShowRecord.html window with the parameters for the filter (not just the object name).
|
//Call the ShowRecord.html window with the parameters for the filter (not just the object name).
|
||||||
callWindow(nodeProp)
|
callWindow(nodeProp)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -16,8 +16,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Отправить клиенту информацию о ошибке
|
* Отправить клиенту информацию о ошибке
|
||||||
* @param type $e - Наименование ошибки
|
* @param String $e - Наименование ошибки
|
||||||
* @param type $winid - Идентификатор окна
|
|
||||||
*/
|
*/
|
||||||
function sendError($e)
|
function sendError($e)
|
||||||
{
|
{
|
||||||
@ -29,8 +28,8 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Взять данные из базы данных в результсет
|
* Взять данные из базы данных в результсет
|
||||||
* @param unknown_type $treeNode - DOM узел переданной клиентом
|
* @param Node $treeNode - DOM узел переданной клиентом
|
||||||
* @param unknown_type $currNode - DOM узел из файла tree.xml параметрам фильтра которого будут присвоенны значения из treeNode (недостающие фильтры возтмуться из nodeMetadata)
|
* @param Node $currNode - DOM узел из файла tree.xml параметрам фильтра которого будут присвоенны значения из treeNode (недостающие фильтры возтмуться из nodeMetadata)
|
||||||
* @return PDOStatement|NULL Результ-сет
|
* @return PDOStatement|NULL Результ-сет
|
||||||
*/
|
*/
|
||||||
function fnGetData($treeNode,$currNode)
|
function fnGetData($treeNode,$currNode)
|
||||||
|
|||||||
Reference in New Issue
Block a user