+ Подробные коменты в не [[]]
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
//Copyright (C) Ivanov I.M. irigm@mail.ru +77051809750 file created in 2008
|
||||
//Copyright (C) Ivanov I.M. file created in 2008
|
||||
//For find non english chars: [^\x00-\x7F]+
|
||||
|
||||
//Заглушки
|
||||
@ -1182,51 +1182,53 @@ class EdtRec
|
||||
};
|
||||
|
||||
applyReq(req,fn,node,xmldoc,win)
|
||||
{ //alert2(trt('Alert'),"erec XML=\n"+getXMLNodeSerialisation(node));
|
||||
if (fn==-1)
|
||||
{
|
||||
alert2(trt('Alert'),findFirstNode(node,'#cdata-section').nodeValue);
|
||||
//this.pBarCnt=0;
|
||||
this.hideProgressBar();
|
||||
}else
|
||||
if (fn==0)
|
||||
{
|
||||
this.hideProgressBar();
|
||||
{
|
||||
this.hideProgressBar();
|
||||
if (fn==-1) {
|
||||
let fullText = findFirstNode(node,'#cdata-section').nodeValue;
|
||||
let smallText = '';
|
||||
let pos1=fullText.indexOf('[[');
|
||||
let pos2=fullText.indexOf(']]');
|
||||
if(pos1>0 && pos2>0 && pos1<pos2) smallText=fullText.substring(pos1+2, pos2);
|
||||
|
||||
if(fullText.indexOf("id456[[")>=0){ //Если есть идентификатор того что это перезапись
|
||||
let okFunc=()=>{
|
||||
this.setValue('seq',0);
|
||||
this.sendData(); //Применить ещё раз
|
||||
};
|
||||
if (smallText != '')
|
||||
confirm2(trt('Warning'),smallText, fullText, okFunc, null);
|
||||
else
|
||||
confirm2(trt('Warning'),smallText, '', okFunc, null);
|
||||
}else {
|
||||
if (smallText != '')
|
||||
alert2(trt('Alert'), smallText, fullText);
|
||||
else
|
||||
alert2(trt('Alert'), fullText);
|
||||
}
|
||||
} else
|
||||
if (fn==0) {
|
||||
this.eRecNo(node,this.record_id);
|
||||
}else
|
||||
if (fn==1) //returned id
|
||||
{
|
||||
this.hideProgressBar();
|
||||
} else
|
||||
if (fn==1) { //returned id
|
||||
this.insertRows(node);
|
||||
}else
|
||||
if (fn==2) //Returned id and type of updated record
|
||||
{
|
||||
this.hideProgressBar();
|
||||
} else
|
||||
if (fn==2) { //Returned id and type of updated record
|
||||
this.updateRows(node);
|
||||
}else
|
||||
if (fn==3) //Returned id of deleted record
|
||||
{
|
||||
this.hideProgressBar();
|
||||
} else
|
||||
if (fn==3) { //Returned id of deleted record
|
||||
this.deleteRows(node);
|
||||
}else
|
||||
if (fn==5)
|
||||
{
|
||||
this.hideProgressBar();
|
||||
} else
|
||||
if (fn==5) {
|
||||
this.setData(node);
|
||||
}else
|
||||
if (fn==6) //Fill in the drop-down lists.
|
||||
{
|
||||
this.hideProgressBar();
|
||||
} else
|
||||
if (fn==6) { //Fill in the drop-down lists.
|
||||
this.setDataSelect(node);
|
||||
}else
|
||||
if (fn==7) //
|
||||
{
|
||||
this.hideProgressBar();
|
||||
} else
|
||||
if (fn==7) {
|
||||
this.setData(node);
|
||||
}else
|
||||
{
|
||||
} else {
|
||||
alert2(trt('Alert'),"Unknown function! fn=\""+fn+"\"" );
|
||||
this.hideProgressBar();
|
||||
}
|
||||
};
|
||||
/**
|
||||
@ -1359,8 +1361,6 @@ class EdtRec
|
||||
{
|
||||
if(nodeProp.getAttribute("selector")=="combo")
|
||||
{
|
||||
//console.log("++++++++++field.options.length = "+field.options.length);
|
||||
|
||||
//We sort out the elements of the list (options) and set it to the desired value (the snake is not automatically exposed by the automaton).
|
||||
for(let i=0;i<field.options.length;i++)
|
||||
{
|
||||
@ -1518,7 +1518,7 @@ class EdtRec
|
||||
|
||||
let readd=document.getElementById("readd_"+this.uid);
|
||||
if(readd!==null && readd.checked){
|
||||
confirm2(trt('Warning'),trt("Successfully_added_data")+"<br>"+trt("Add_more")+"?",null,()=>this.win.Close());
|
||||
confirm2(trt('Warning'),trt("Successfully_added_data")+"<br>"+trt("Add_more")+"?",'',null,()=>this.win.Close());
|
||||
}else
|
||||
{
|
||||
this.win.Close();
|
||||
|
||||
Reference in New Issue
Block a user