if (! window.TOBEHTML) {
window.TOBEHTML = {};
}
window.TOBEHTML.FireUserNotify = function(userdata) {
var parent = window.TOBEWEBBROWSER;
if (parent) {
parent.$fire_onusernotify(parent, userdata);
} else {
window.document.title = userdata;
}
}
function xxf_xpSetStatusMessage(msg){
xxf_xpCallInternal("1|"+ msg);
}
function xxf_xpCall(fnStr){
xxf_xpCallInternal("2|" + fnStr);
}
function xxf_xpSetOpendWindows(fnStr){
xxf_xpCallInternal("3|^" + fnStr);
}
function xxf_xpSetInitPatientInfo(param){
xxf_xpCallInternal("4|" + param);
}
function xxf_xpCallInternal(msg) {
window.TOBEHTML.FireUserNotify(msg);
}
function xxf_tfCall(fnStr, callbackFn){
var status = parent.getViewerObject("sysMessage");
status.window.javascript.xxf_tfCall(fnStr, callbackFn);
}
function xxf_tfSetGlobalVariable() {
var callFuncKey = window.document.getElementById("callFuncKey");
var callFuncVal = window.document.getElementById("callFuncVal");
var callFuncBiz = window.document.getElementById("callFuncBiz");
var status = parent.getViewerObject("sysMessage");
status.window.javascript.callFuncKey = callFuncKey.value;
status.window.javascript.callFuncVal = callFuncVal.value;
status.window.javascript.callFuncBiz = callFuncBiz.value;
status.window.javascript.xxf_tfSetGlobalVariable();
callFuncKey.value = "";
callFuncVal.value = "";
callFuncBiz.value = "";
}
function xxf_tfSetParameter() {
var callFuncKey = window.document.getElementById("callFuncKey");
var callFuncVal = window.document.getElementById("callFuncVal");
var status = parent.getViewerObject("sysMessage");
status.window.javascript.callFuncKey = callFuncKey.value;
status.window.javascript.callFuncVal = callFuncVal.value;
status.window.javascript.xxf_tfSetParameter();
callFuncKey.value = "";
callFuncVal.value = "";
}
function xxf_tfSetModelProperty() {
var callFuncKey = window.document.getElementById("callFuncKey");
var callFuncVal = window.document.getElementById("callFuncVal");
var status = parent.getViewerObject("sysMessage");
status.window.javascript.callFuncKey = callFuncKey.value;
status.window.javascript.callFuncVal = callFuncVal.value;
status.window.javascript.xxf_tfSetModelProperty();
callFuncKey.value = "";
callFuncVal.value = "";
}
function xxf_tfSetModelAttribute() {
var callFuncKey = window.document.getElementById("callFuncKey");
var callFuncVal = window.document.getElementById("callFuncVal");
var status = parent.getViewerObject("sysMessage");
status.window.javascript.callFuncKey = callFuncKey.value;
status.window.javascript.callFuncVal = callFuncVal.value;
status.window.javascript.xxf_tfSetModelAttribute();
callFuncKey.value = "";
callFuncVal.value = "";
}
/*
function xxf_tfModal(id,monNo,xPos,yPos,wid,refcsv,resultref,resultid,userProp,prevPos, authCode, resizeType){
var status = parent.getViewerObject("sysMessage");
//var ref = "/root/hidden/dataset/"+refid;
//status.window.javascript.model.makeNode(ref);
//status.window.javascript.setCSVToNode(ref, refcsv);
//status.window.javascript.modal(id,monNo,xPos,yPos,wid,ref,resultref,userProp,prevPos, authCode, resizeType);
status.window.javascript.xxf_tfModal(id,monNo,xPos,yPos,wid,refcsv,resultref,resultid,userProp,prevPos, authCode, resizeType);
}
function xxf_tfSetGlobalVariable(key, value, bizCode){
var status = parent.getViewerObject("sysMessage");
status.window.javascript.setGlobalVariable(key, value, bizCode);
}
function xxf_tfSetParameter(key, value){
var status = parent.getViewerObject("sysMessage");
status.window.javascript.setParameter(key, value);
}
//¼±ÅÃÇÑ È¸é ¿±â
function xxf_tfOpenMenuItem(idx){
var status = parent.getViewerObject("sysmessage");//message Object
if(status == null) status = getViewerObject("sysmessage");
status.window.javascript.fOpenMenuItem(idx);
}
*/