ZMI001.xjs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[// 사용자 메시지 전송용 팝업창을 띄운다.
  3. // 첫번째 파라메터로 전달되는 ref 하위에 다음과 같이 인스턴스가 구성되어야 한다.
  4. // - calltype : msg(메시지), call(호출), msgcall(메시지+호출)
  5. // - recvrid : 수신자 사번(필수)
  6. // - recvrnm : 수신자 명(필수)
  7. // - deptnm : 수신자 근무부서명(필수)
  8. // - deptcd : 수신자 근무부서코드(필수)
  9. // - mpphonno : 호출번호 (옵션)
  10. // 두번째,세번째 파라메터로 전달되는 scnX, scnY 변수는 창을 띄울 절대 좌표를 의미하며
  11. // 값을 주지 않으면 화면 중앙에 띄어줌
  12. // 호출 예제)
  13. // zmifOpenUserMessagePopup("/root/temp",event.ScreenX,event.ScreenY);
  14. function zmifOpenUserMessagePopup(ref,scnX,scnY) {
  15. if ( !utlf_isNull(scnX) && !utlf_isNull(scnY) ){
  16. var coord = sysf_getCurrentMonitorNumber()();//getRelativeCoordinate(scnX,scnY);
  17. var objArg = new Object();
  18. objArg.arg_ds_main = ref;
  19. frmf_modal("SPZMI00301","SPZMI00301",objArg,false,coord,scnX,scnY,"","","","","","M");
  20. } else {
  21. var objArg = new Object();
  22. objArg.arg_ds_main = ref;
  23. frmf_modal("SPZMI00301","SPZMI00301",objArg,null,"","","","","","","","","M");
  24. }
  25. }
  26. // 메시지 팝업창을 띄운다.
  27. // 첫번째 파라메터로 전달되는 ref 하위에 다음과 같이 인스턴스가 구성되어야 한다.
  28. // - opentab : 화면을 띄울 때 어느 화면으로 띄울지를 지정한다. 지정하지 않으면 받은메시지 함 화면으로 뜬다.
  29. // > pmsg(환자메시지 작성창)
  30. // > umsg(사용자 메시지 작성창)
  31. // > bookmark(즐겨찾기 창)
  32. // > setting(환경 설정창)
  33. // > receivemsg(받은메시지함)
  34. // > sentmsg(보낸메시지함)
  35. // > trash(휴지통)
  36. // > calllist(호출내역 조회)
  37. // 두번째,세번째 파라메터로 전달되는 scnX, scnY 변수는 창을 띄울 절대 좌표를 의미하며
  38. // 값을 주지 않으면 화면 중앙에 띄어줌
  39. // 호출 예제)
  40. // zmifOpenMessagePopup("/root/temp",event.ScreenX,event.ScreenY);
  41. function zmifOpenMessagePopup(ref,scnX,scnY) {
  42. if (scnX != null && scnY != null) {
  43. var coord = getRelativeCoordinate(scnX,scnY);
  44. modal("SPZMI00101",coord[0],coord[1],coord[2],null,ref,"/root/init/param","width:340px;height:320px;",false);
  45. } else {
  46. modal("SPZMI00101",null,null,null,null,ref,"/root/init/param","width:340px;height:320px;");
  47. }
  48. }
  49. ]]></Script>