Мелочь

This commit is contained in:
Igor I
2024-07-25 21:38:14 +05:00
parent 5a6b47e788
commit ec85845d9e
3 changed files with 10 additions and 9 deletions

View File

@ -100,6 +100,11 @@ public class DBMSRecords implements ServletContextAware {
return new User("none");
}
@Override
public void setServletContext(ServletContext servletContext) {
this.context=servletContext;
}
public String sendError(int code, String message) {
JSONObject json = new JSONObject();
json.put("error_code",code);
@ -2317,8 +2322,4 @@ public class DBMSRecords implements ServletContextAware {
return doc;
}
@Override
public void setServletContext(ServletContext servletContext) {
this.context=servletContext;
}
}

View File

@ -1,4 +1,4 @@
package kz.goodssales.GoodsSales.dbms;
package dbms;
import java.io.ByteArrayInputStream;
import java.io.File;
@ -40,13 +40,13 @@ import org.w3c.dom.NodeList;
import tctable.Tools;
import tools.User;
import tools.XMLTools;
import tools.xml.XMLTools;
@Controller
@SessionAttributes( { "user" }) //Сесионный объект!
public class DBMSTree implements ServletContextAware {
private static final Logger logger = LoggerFactory.getLogger(kz.goodssales.GoodsSales.dbms.DBMSTree.class);
private static final Logger logger = LoggerFactory.getLogger(DBMSTree.class);
private ServletContext context;
//If not created object "user", create him.

View File

@ -1280,8 +1280,8 @@ class SRec
if(node.data[i].row[j]!=null) textNode=document.createTextNode(node.data[i].row[j]);
else textNode=document.createTextNode("");
//td.setAttribute("id",id+this.masCL[colN].getAttribute("n")); //so that you can identify each record when you update
td.setAttribute("id",id+this.masCL[colN].n); //so that you can identify each record when you update
td.setAttribute("id",id+this.masCL[colN].getAttribute("n")); //so that you can identify each record when you update
//td.setAttribute("id",id+this.masCL[colN].n); //so that you can identify each record when you update
td.appendChild(textNode);
//if in the metadata for this column there is a reference object then add a link
if (this.masCT[colN]!=null)