Мелочь
This commit is contained in:
@ -100,6 +100,11 @@ public class DBMSRecords implements ServletContextAware {
|
|||||||
return new User("none");
|
return new User("none");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setServletContext(ServletContext servletContext) {
|
||||||
|
this.context=servletContext;
|
||||||
|
}
|
||||||
|
|
||||||
public String sendError(int code, String message) {
|
public String sendError(int code, String message) {
|
||||||
JSONObject json = new JSONObject();
|
JSONObject json = new JSONObject();
|
||||||
json.put("error_code",code);
|
json.put("error_code",code);
|
||||||
@ -2317,8 +2322,4 @@ public class DBMSRecords implements ServletContextAware {
|
|||||||
return doc;
|
return doc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setServletContext(ServletContext servletContext) {
|
|
||||||
this.context=servletContext;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package kz.goodssales.GoodsSales.dbms;
|
package dbms;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -40,13 +40,13 @@ import org.w3c.dom.NodeList;
|
|||||||
|
|
||||||
import tctable.Tools;
|
import tctable.Tools;
|
||||||
import tools.User;
|
import tools.User;
|
||||||
import tools.XMLTools;
|
import tools.xml.XMLTools;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@SessionAttributes( { "user" }) //Сесионный объект!
|
@SessionAttributes( { "user" }) //Сесионный объект!
|
||||||
public class DBMSTree implements ServletContextAware {
|
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;
|
private ServletContext context;
|
||||||
|
|
||||||
//If not created object "user", create him.
|
//If not created object "user", create him.
|
||||||
|
|||||||
@ -1280,8 +1280,8 @@ class SRec
|
|||||||
if(node.data[i].row[j]!=null) textNode=document.createTextNode(node.data[i].row[j]);
|
if(node.data[i].row[j]!=null) textNode=document.createTextNode(node.data[i].row[j]);
|
||||||
else textNode=document.createTextNode("");
|
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].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].n); //so that you can identify each record when you update
|
||||||
td.appendChild(textNode);
|
td.appendChild(textNode);
|
||||||
//if in the metadata for this column there is a reference object then add a link
|
//if in the metadata for this column there is a reference object then add a link
|
||||||
if (this.masCT[colN]!=null)
|
if (this.masCT[colN]!=null)
|
||||||
|
|||||||
Reference in New Issue
Block a user