ZEP001.xjs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[var KYOUNGBUK_PACS_VIEWER_PATH = zepfGetIE32Path();
  3. /**
  4. * @group :
  5. * @ver : 2007.05.15
  6. * @by : 이상준
  7. * @---------------------------------------------------
  8. * @type : function
  9. * @Param : bool useCommonID
  10. * @access : public
  11. * @desc : PatientID 방식으로 카디악 PACS Viewer 를 호출하는 함수
  12. * @return : void
  13. * @---------------------------------------------------
  14. */
  15. function zepfCadiacPacsPatientID(PatientID) {
  16. //강남
  17. //alert("환자아이디" + CADIAC_PACS_VIEWER_PATH);
  18. //var param = " -P"+ PatientID +" -AWorkServer -Wnexus -Dnexus";
  19. //window.exec(CADIAC_PACS_VIEWER_PATH, param);
  20. //경북 pacs
  21. //칠곡
  22. //alert("환자아이디 : 999999 테스트중");
  23. if (sysf_getUserInfo("dutplceinstcd") == "032") {
  24. //1)http://192.168.100.161/ami/html/webviewer.html?showlist&un=openapi&pw=OpenAP1@&wlname=radstore-study&pid=[PatientID]
  25. //2)http://192.168.100.160/TestPage.asp?PID=[PatientID]&Server1=on
  26. var param = " http://192.168.100.161/ami/html/webviewer.html?showlist&un=openapi&pw=OpenAP1@&wlname=radstore-study&pid="
  27. + PatientID;
  28. //본원
  29. } else {
  30. var param = " http://192.168.100.161/ami/html/webviewer.html?showlist&un=openapi&pw=OpenAP1@&wlname=radstore-study&pid="
  31. + PatientID;
  32. }
  33. //var param = " http://192.168.100.161/ami/html/webviewer.html?showlist&un=openapi&pw=OpenAP1@&wlname=radstore-study&pid=999999"
  34. //window.exec(KYOUNGBUK_PACS_VIEWER_PATH, param);
  35. system.execBrowser(param);
  36. }
  37. /**
  38. * @group :
  39. * @ver : 2012.03.28
  40. * @by : 최병진
  41. * @---------------------------------------------------
  42. * @type : function
  43. * @Param :
  44. * @access : public
  45. * @desc : Internet Explorer 경로를 반환하는 함수(32bit, 64bit 차이)
  46. * @return : String
  47. * @---------------------------------------------------
  48. */
  49. function zepfGetIE32Path() {
  50. var defaultPath = "C:\\Program Files\\Internet Explorer\\iexplore.exe";
  51. var x86Path = "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe";
  52. // 64bit OS check
  53. // if (htmlwindow.navigator.userAgent.indexOf("WOW64") != -1
  54. // || htmlwindow.navigator.userAgent.indexOf("Win64") != -1) {
  55. //
  56. // return x86Path;
  57. // }
  58. return defaultPath;
  59. }
  60. /**
  61. * @group :
  62. * @---------------------------------------------------
  63. * @type : function
  64. * @Param : bool useCommonID
  65. * @access : public
  66. * @desc : PatientID 방식으로 카디악 PACS Viewer 를 호출하는 함수
  67. * @return : void
  68. * @---------------------------------------------------
  69. */
  70. function zepfCadiacPacsRptPatientID(PatientID) {
  71. //칠곡
  72. //alert("환자아이디 : 999999 테스트중");
  73. if (sysf_getUserInfo("dutplceinstcd") == "032") {
  74. var param = " http://192.168.100.160/TestPage.asp?PID="
  75. + PatientID + "&Server1=on";
  76. //본원
  77. } else {
  78. var param = " http://192.168.100.160/TestPage.asp?PID="
  79. + PatientID + "&Server1=on";
  80. }
  81. //var param = " http://192.168.100.161/ami/html/webviewer.html?showlist&un=openapi&pw=OpenAP1@&wlname=radstore-study&pid=999999"
  82. system.execBrowser(param);
  83. }
  84. ]]></Script>