ZUM007.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. if (! window.TOBEHTML) {
  2. window.TOBEHTML = {};
  3. }
  4. window.TOBEHTML.FireUserNotify = function(userdata) {
  5. var parent = window.TOBEWEBBROWSER;
  6. if (parent) {
  7. parent.$fire_onusernotify(parent, userdata);
  8. } else {
  9. window.document.title = userdata;
  10. }
  11. }
  12. function xxf_xpSetStatusMessage(msg){
  13. xxf_xpCallInternal("1|"+ msg);
  14. }
  15. function xxf_xpCall(fnStr){
  16. xxf_xpCallInternal("2|" + fnStr);
  17. }
  18. function xxf_xpSetOpendWindows(fnStr){
  19. xxf_xpCallInternal("3|^" + fnStr);
  20. }
  21. function xxf_xpSetInitPatientInfo(param){
  22. xxf_xpCallInternal("4|" + param);
  23. }
  24. function xxf_xpCallInternal(msg) {
  25. window.TOBEHTML.FireUserNotify(msg);
  26. }
  27. function xxf_tfCall(fnStr, callbackFn){
  28. var status = parent.getViewerObject("sysMessage");
  29. status.window.javascript.xxf_tfCall(fnStr, callbackFn);
  30. }
  31. function xxf_tfSetGlobalVariable() {
  32. var callFuncKey = window.document.getElementById("callFuncKey");
  33. var callFuncVal = window.document.getElementById("callFuncVal");
  34. var callFuncBiz = window.document.getElementById("callFuncBiz");
  35. var status = parent.getViewerObject("sysMessage");
  36. status.window.javascript.callFuncKey = callFuncKey.value;
  37. status.window.javascript.callFuncVal = callFuncVal.value;
  38. status.window.javascript.callFuncBiz = callFuncBiz.value;
  39. status.window.javascript.xxf_tfSetGlobalVariable();
  40. callFuncKey.value = "";
  41. callFuncVal.value = "";
  42. callFuncBiz.value = "";
  43. }
  44. function xxf_tfSetParameter() {
  45. var callFuncKey = window.document.getElementById("callFuncKey");
  46. var callFuncVal = window.document.getElementById("callFuncVal");
  47. var status = parent.getViewerObject("sysMessage");
  48. status.window.javascript.callFuncKey = callFuncKey.value;
  49. status.window.javascript.callFuncVal = callFuncVal.value;
  50. status.window.javascript.xxf_tfSetParameter();
  51. callFuncKey.value = "";
  52. callFuncVal.value = "";
  53. }
  54. function xxf_tfSetModelProperty() {
  55. var callFuncKey = window.document.getElementById("callFuncKey");
  56. var callFuncVal = window.document.getElementById("callFuncVal");
  57. var status = parent.getViewerObject("sysMessage");
  58. status.window.javascript.callFuncKey = callFuncKey.value;
  59. status.window.javascript.callFuncVal = callFuncVal.value;
  60. status.window.javascript.xxf_tfSetModelProperty();
  61. callFuncKey.value = "";
  62. callFuncVal.value = "";
  63. }
  64. function xxf_tfSetModelAttribute() {
  65. var callFuncKey = window.document.getElementById("callFuncKey");
  66. var callFuncVal = window.document.getElementById("callFuncVal");
  67. var status = parent.getViewerObject("sysMessage");
  68. status.window.javascript.callFuncKey = callFuncKey.value;
  69. status.window.javascript.callFuncVal = callFuncVal.value;
  70. status.window.javascript.xxf_tfSetModelAttribute();
  71. callFuncKey.value = "";
  72. callFuncVal.value = "";
  73. }
  74. /*
  75. function xxf_tfModal(id,monNo,xPos,yPos,wid,refcsv,resultref,resultid,userProp,prevPos, authCode, resizeType){
  76. var status = parent.getViewerObject("sysMessage");
  77. //var ref = "/root/hidden/dataset/"+refid;
  78. //status.window.javascript.model.makeNode(ref);
  79. //status.window.javascript.setCSVToNode(ref, refcsv);
  80. //status.window.javascript.modal(id,monNo,xPos,yPos,wid,ref,resultref,userProp,prevPos, authCode, resizeType);
  81. status.window.javascript.xxf_tfModal(id,monNo,xPos,yPos,wid,refcsv,resultref,resultid,userProp,prevPos, authCode, resizeType);
  82. }
  83. function xxf_tfSetGlobalVariable(key, value, bizCode){
  84. var status = parent.getViewerObject("sysMessage");
  85. status.window.javascript.setGlobalVariable(key, value, bizCode);
  86. }
  87. function xxf_tfSetParameter(key, value){
  88. var status = parent.getViewerObject("sysMessage");
  89. status.window.javascript.setParameter(key, value);
  90. }
  91. //¼±ÅÃÇÑ È­¸é ¿­±â
  92. function xxf_tfOpenMenuItem(idx){
  93. var status = parent.getViewerObject("sysmessage");//message Object
  94. if(status == null) status = getViewerObject("sysmessage");
  95. status.window.javascript.fOpenMenuItem(idx);
  96. }
  97. */