MNS001.xjs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[/**
  3. * spclcareweb/js/MNS001.js
  4. * 전문간호에서 공통으로 사용하는 스크립트
  5. * injspecialroomweb/xrw/에서도 사용하고 있음
  6. * dhkim 생성
  7. */
  8. /***********************************************************************************************************************************************************
  9. * @group :
  10. * @ver : 2007.02.28
  11. * : 2008.04.14
  12. * @by : dhkim
  13. * @---------------------------------------------------------------------------------------------------------------------------------------------------------
  14. * @type : function
  15. * @access : public
  16. * @desc : 환자 등록번호 조회를 위한 팝업화면 호출
  17. * @param : flg - (1 : 원무 환자정보 조회, 2: 신규등록환자조회, 3: sms전송환자 조회)
  18. * @param : xPath - return할 xPath
  19. * @return :
  20. ************************************************************************************************************************************************************/
  21. //------------(20130403)
  22. //autoflag : 조회후 row가 1건이면 자동 닫기
  23. function fPopPatient(flg, xpath, pNRow, pid, fromdd, enddd,autoflag ){
  24. //------------(20130403)
  25. if(utlf_isNull(xpath)){
  26. xpath = "";
  27. }
  28. if(utlf_isNull(flg)){
  29. flg = "1";
  30. }
  31. if(utlf_isNull(pid)){
  32. pid = "";
  33. }
  34. //조회조건의 등록번호 팝업 호출 이벤트 발생시
  35. frmf_setParameter("flg", flg);
  36. frmf_setParameter("xpath", xpath);
  37. frmf_setParameter("pNRow", pNRow);
  38. if(!utlf_isNull(pid))
  39. frmf_setParameter("pid", pid);
  40. if(!utlf_isNull(fromdd))
  41. frmf_setParameter("fromdd", fromdd);
  42. if(!utlf_isNull(enddd))
  43. frmf_setParameter("enddd", enddd);
  44. if (!utlf_isNull(autoflag)) {
  45. frmf_setParameter("autoflag", autoflag);
  46. }
  47. var rtn =frmf_modal("SMMNS03100","SMMNS03100","","",1,1,1,"","","","","","M");
  48. if(flg =="1"){
  49. //받는 데이터셋 카피
  50. } else if(flg =="2"){
  51. //받는 데이터셋 카피
  52. }else if(flg =="3") {
  53. var rrr = frmf_getParameter("SMMNS02000_return");
  54. if(rrr == "N"){
  55. fsetting(rtn,"N");
  56. }
  57. else{
  58. ds_data_rtn.copyData(rtn);
  59. fsetting(rtn,"Y");
  60. }
  61. }
  62. }
  63. /**
  64. * 세션 GET
  65. */
  66. function lf_aezfSetSuppDeptcd(){
  67. //var dutplcecd = getUserInfo("dutplcecd");
  68. var dutplcecd =sysf_getUserInfo("dutplcecd");
  69. // var selectplcecd = getScreenPrestDeptCd();
  70. var selectplcecd=frmf_getPrestDeptCd();
  71. if(utlf_isNull(selectplcecd)){
  72. selectplcecd = dutplcecd;
  73. }
  74. return selectplcecd;
  75. }
  76. /**
  77. * 해당부서코드의 명칭을 조회
  78. */
  79. function getMenuDeptnm(sendnode, sendcol, deptcd, submitnm, resultnode, resultcol) {
  80. dsf_makeValue(sendnode, sendcol, "string", deptcd, 0);
  81. if( submitnm == "TRMNI02031" ){
  82. var oParam = {};
  83. oParam.id = "TRMNI02031";
  84. oParam.service = "injspecialroomapp.InjSpecialRoomPatMngt";
  85. oParam.method = "reqGetDeptInfo";
  86. oParam.inds = "req=ds_send";
  87. oParam.outds = "ds_temp_menudeptinfo=menudeptinfo";
  88. oParam.async = false;
  89. oParam.callback = "cf_SubmitCallBack";
  90. tranf_submit(oParam);
  91. }
  92. if(arErrorCode.pop("TRMNI02031") > -1){
  93. selectplcenm = resultnode.getColumn(0, resultcol);
  94. }else{
  95. sysf_messageBox('메뉴사용처명 조회를 실패했습니다.', 'E999');
  96. }
  97. return selectplcenm;
  98. //model.makeValue("/root/send/globalinstance/instance1nm", selectplcenm);
  99. }
  100. function cf_SubmitCallBack(sSvcId, nErrorCode, sErrorMsg) {
  101. arErrorCode.push(sSvcId, nErrorCode);
  102. }
  103. /**
  104. * 20090217 dhkim 추가
  105. * 간호부서테이블 조회
  106. * cdgrupid : 간호부서그룹코드
  107. */
  108. function fGetNursDept(cdgrupid, sendnode, recivenode, submitid, errmessage){
  109. /*
  110. model.removenode('/root/send');
  111. model.makeValue('/root/send/cdgrupid', '022');
  112. model.removenode('/root/hidden/nursdeptinfo');
  113. model.makenode('/root/hidden/nursdeptinfo');
  114. if(!submit('TRMNS00108')){
  115. messageBox('간호에 등록된 전문분야정보를 조회를 실패하였습니다.', 'E999');
  116. return false;
  117. }
  118. */
  119. model.removenode(sendnode);
  120. model.makeValue(sendnode, cdgrupid);
  121. model.removenode(recivenode);
  122. model.makenode(recivenode);
  123. if(!submit(submitid)){
  124. messageBox(errmessage, 'E999');
  125. return false;
  126. }
  127. }
  128. ]]></Script>