|
|
|
|
@ -689,24 +689,28 @@ function insertContent(content, id) {
|
|
|
|
|
clearContent(id);
|
|
|
|
|
setLocation(id);
|
|
|
|
|
var json = JSON.parse(content);
|
|
|
|
|
debugger
|
|
|
|
|
for (key in json) {
|
|
|
|
|
console.log(key)
|
|
|
|
|
console.log(json[key])
|
|
|
|
|
var tr = document.createElement("tr");
|
|
|
|
|
var td2 = document.createElement("td");
|
|
|
|
|
var td4 = document.createElement("td");
|
|
|
|
|
tr.setAttribute("bgcolor", "#FFFAFA");
|
|
|
|
|
tr.setAttribute("border", "0");
|
|
|
|
|
if (id == 'inpatient_no' || id == 'diag_code' || id == 'operate_code') {
|
|
|
|
|
td2.innerHTML = key;
|
|
|
|
|
td4.innerHTML = json[key];
|
|
|
|
|
} else {
|
|
|
|
|
td2.innerHTML = json[key];
|
|
|
|
|
td4.innerHTML = key;
|
|
|
|
|
}
|
|
|
|
|
tr.appendChild(td2);
|
|
|
|
|
tr.appendChild(td4);
|
|
|
|
|
document.getElementById(id + "Content").appendChild(tr);
|
|
|
|
|
tr.onmouseover = function () {
|
|
|
|
|
this.className = 'mouseOver';
|
|
|
|
|
if (id == 'inpatient_no' || id == 'diag_code' || id == 'operate_code') {
|
|
|
|
|
document.getElementById(id).value = $(this).children("td").eq(0).html();
|
|
|
|
|
} else {
|
|
|
|
|
document.getElementById(id).value = $(this).children("td").eq(1).html();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
tr.onmouseout = function () {
|
|
|
|
|
this.className = 'mouseOut';
|
|
|
|
|
|