SPMRC03300.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /**
  2. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  3. 의료정보 - 사본유의환자관리 ( SPMRC03300_사본유의환자관리.xrw - JScript )
  4. - Version :
  5. 1) : Ver.1.00.01
  6. - Author : 이창록
  7. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  8. **/
  9. /**
  10. * @ver :
  11. * @desc : 화면초기화
  12. * @ : 2008-12-29
  13. * @by : 이창록
  14. * @ :
  15. * @param :
  16. * @return :
  17. * @---------------------------------------------------
  18. */
  19. function fInit()
  20. {
  21. model.removeNodeset("/root/main/limresinfo/limreslist");
  22. model.refresh();
  23. fLimResSearch();
  24. }
  25. /**
  26. * @ver :
  27. * @desc : 유의 환자 등록
  28. * @ : 2008-12-29
  29. * @by : 이창록
  30. * @param :
  31. * @return :
  32. * @---------------------------------------------------
  33. */
  34. function fLimSave(flag)
  35. {
  36. if(flag =="i"){
  37. model.makeValue("/root/send/savedata/status" ,"i");
  38. model.makeValue("/root/send/savedata/pid" ,model.getValue("/root/cond/pid"));
  39. model.makeValue("/root/send/savedata/limrem" ,model.getValue("/root/cond/limrem"));
  40. model.makeValue("/root/send/savedata/limdeptcd" ,getUserInfo("dutplcecd"));
  41. if(submit("TXMRC03300")){
  42. messageBox("저장이", "I002");
  43. fLimResSearch();
  44. }else{
  45. messageBox("저장을", "E009");
  46. }
  47. model.resetInstanceNode("/root/send");
  48. var oprnerId = opener.window.javascript.getScreenID();
  49. if(oprnerId == "SMMRC02200")// 제한 환자 등록시 사본 발급 리스트 강제 조회
  50. {
  51. opener.window.javascript.fDisPatchHistSearch();
  52. }
  53. }else if(flag =="d"){
  54. model.makeValue("/root/send/savedata/status" ,"d");
  55. model.makeValue("/root/send/savedata/pid" ,model.getValue("/root/cond/pid"));
  56. var msg = messageBox("사본 유의환자 정보를","Q001");
  57. if(msg=="6"){
  58. if(submit("TXMRC03300")){
  59. messageBox("삭제가", "I001");
  60. }else
  61. messageBox("삭제를", "E009");
  62. }else{
  63. return;
  64. }
  65. model.resetInstanceNode("/root/cond");
  66. var oprnerId = opener.window.javascript.getScreenID();
  67. if(oprnerId == "SMMRC02200") // 제한 환자 삭제시 사본 발급 리스트 강제 조회
  68. {
  69. opener.window.javascript.fDisPatchHistSearch();
  70. }
  71. }
  72. model.refresh();
  73. }
  74. /**
  75. * @ver :
  76. * @desc : 환자 찾기 팝업
  77. * @
  78. * @by : 이창록
  79. * @param :
  80. * @return : 2008-12-29
  81. * @---------------------------------------------------
  82. */
  83. function fPatPopUp(pFlag)
  84. {
  85. if(pFlag == "1"){
  86. model.makeValue("/root/temp/pid", model.getValue("/root/cond/pid"));
  87. }else if(pFlag == "2"){
  88. model.makeValue("/root/temp/hngnm", model.getValue("/root/cond/hngnm"));
  89. }else if(pFlag == "3"){
  90. model.makeValue("/root/temp/rrgstno1", model.getValue("/root/cond/rrgstno1"));
  91. model.makeValue("/root/temp/rrgstno2", model.getValue("/root/cond/rrgstno2"));
  92. }
  93. model.makeValue("/root/temp/srchcond",pFlag);
  94. model.makeValue("/root/temp/autoflag","Y");
  95. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  96. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
  97. model.setValue("/root/cond/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
  98. model.setValue("/root/cond/hngnm" , model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  99. model.setValue("/root/cond/rrgstno1" , model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  100. model.setValue("/root/cond/rrgstno2" , model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  101. fLimResSearch();
  102. model.refresh();
  103. }
  104. /**
  105. * @ver :
  106. * @desc : 제한 환자 조회
  107. * @
  108. * @by : 이창록
  109. * @param :
  110. * @return : 2008-12-29
  111. * @---------------------------------------------------
  112. */
  113. function fLimResSearch()
  114. {
  115. model.makeValue("/root/send/reqdata/pid",model.getValue("root/cond/pid"));
  116. if(submit("TRMRC03300")){
  117. model.setValue("/root/cond/limrem",model.getValue("/root/main/limresinfo/limreslist["+1+"]/limrem"));
  118. }
  119. }
  120. /**
  121. * @ver :
  122. * @desc : 제한 환자 조회
  123. * @
  124. * @by : 이창록
  125. * @param :
  126. * @return : 2008-12-29
  127. * @---------------------------------------------------
  128. */
  129. function fCopyLimResInfo(iRow)
  130. {
  131. model.setValue("/root/cond/pid" ,model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/pid"));
  132. model.setValue("/root/cond/hngnm" ,model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/hngnm"));
  133. model.setValue("/root/cond/rrgstno1",model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/rrgstno").substring(0,6));
  134. model.setValue("/root/cond/rrgstno2",model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/rrgstno").substring(7,14));
  135. model.setValue("/root/cond/limrem" ,model.getValue("/root/main/limresinfo/limreslist["+iRow+"]/limrem"));
  136. model.refresh();
  137. }