SMMRC03000.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /**
  2. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  3. 진료 - 사본발행( SMMRC03000_사본발행.xrw - JScript )
  4. - Version :
  5. 1) : Ver.1.00.01
  6. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  7. /**
  8. * @group :
  9. * @ver :
  10. * @by : 이창록 2008-08-29
  11. * @---------------------------------------------------
  12. * @type : function
  13. * @access : public
  14. * @desc : 화면 초기화
  15. * @param :
  16. * @return :
  17. * @---------------------------------------------------
  18. */
  19. function fInit_SMMRC03000()
  20. {
  21. //test
  22. //var userinfo ="0330";
  23. //var userid ="98015255";
  24. // getUserInfo("dutplcecd")="2060000000"
  25. model.removeNodeset("/root/main/apphist/applist");
  26. zbcfGetCodeList(new Array("P0001","M0332"),new Array("/root/init/common/ioflaglist","/root/init/common/issgoalcd"),true)
  27. if(checkOpener()){
  28. var copy_paramid = opener.javascript.getParameter("SMMRC03000_param_pid");
  29. model.setValue("/root/main/appinfo/patinfo/pid",copy_paramid);
  30. var userinfo = getUserInfo("dutplcecd");
  31. var userid = getUserId();
  32. userid = userid.getTrim();
  33. if(userinfo == "3230000000"){
  34. zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/deptlist","depthngnm","asc");//전체 진료과
  35. cmb_dept.refresh();
  36. model.setValue("/root/main/appinfo/patinfo/appdeptcd",getUserInfo("dutplcecd"));
  37. zsufGetOrdDeptDoctorList("none", getUserInfo("dutplceinstcd"), cmb_dept.value, "/root/init/userinfo/userlist", "usernm", "asc")//해당 주치의
  38. model.setValue("/root/main/appinfo/patinfo/appmanid",userid);
  39. cmd_appmanid.refresh();
  40. }else{
  41. cmb_dept.disabled = false;
  42. cmd_appmanid.disabled = false;
  43. zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/deptlist","depthngnm","asc");//전체 진료과
  44. cmb_dept.refresh();
  45. }
  46. }
  47. }else{
  48. var userinfo = getUserInfo("dutplcecd");
  49. var userid = getUserId();
  50. userid = userid.getTrim();
  51. if(userinfo == "3230000000"){
  52. zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/deptlist","depthngnm","asc");//전체 진료과
  53. cmb_dept.refresh();
  54. model.setValue("/root/main/appinfo/patinfo/appdeptcd",getUserInfo("dutplcecd"));
  55. zsufGetOrdDeptDoctorList("none", getUserInfo("dutplceinstcd"), cmb_dept.value, "/root/init/userinfo/userlist", "usernm", "asc")//해당 주치의
  56. model.setValue("/root/main/appinfo/patinfo/appmanid",userid);
  57. cmd_appmanid.refresh();
  58. }else{
  59. cmb_dept.disabled = false;
  60. cmd_appmanid.disabled = false;
  61. zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/deptlist","depthngnm","asc");//전체 진료과
  62. cmb_dept.refresh();
  63. }
  64. }
  65. fHistSearch();
  66. //model.refresh();
  67. }
  68. /**
  69. * @group :
  70. * @ver :
  71. * @by : 이창록 2008-08-29
  72. * @---------------------------------------------------
  73. * @type : function
  74. * @access : public
  75. * @desc : 이전사본발행 내역 조회
  76. * @param :
  77. * @return :
  78. * @---------------------------------------------------
  79. */
  80. function fHistSearch()
  81. {
  82. //test pid ="74"
  83. //model.makeValue("/root/send/cond/pid",model.getValue("/root/main/appinfo/patinfo/pid"));
  84. model.makeValue("/root/send/cond/pid","74");
  85. if(submit("TRMRC01201")){
  86. }
  87. }
  88. /**
  89. * @group :
  90. * @ver :
  91. * @by : 이창록 2008-08-29
  92. * @---------------------------------------------------
  93. * @type : function
  94. * @access : public
  95. * @desc : 사본발행 목적 팝업 호출(사본발행신청 화면과 동일)
  96. * @param :
  97. * @return :
  98. * @---------------------------------------------------
  99. */
  100. function fIssGoalPopUp(){
  101. var sIssUsge = "";
  102. var sIssUsgeCnt = 0;
  103. var sIssGoalEtcYN = false;
  104. var sIssGoalEtc = "";
  105. var sIssGoalEtcCd = "";
  106. var sIssGoalCd = "";
  107. var sStndRow = 0;
  108. setParameter("SPMMR02200_multichkyn", "Y");
  109. modal("SPMMR02200");
  110. sIssUsge = model.getValue("/root/main/issusge");
  111. sIssUsgeCnt = model.getValue("/root/main/issusge").split("▩").length;
  112. if(sIssUsge != ""){
  113. for(var i=1; i<sIssUsgeCnt; i++){
  114. if(i != sIssUsgeCnt-1){
  115. if(sIssGoalEtc != "") sIssGoalEtc += ",";
  116. if(sIssGoalEtcCd != "") sIssGoalEtcCd += ",";
  117. }
  118. sIssGoalEtc += getArrayData(sIssUsge, i, 1);
  119. sIssGoalCd = getArrayData(sIssUsge, i, 0);
  120. /*sStndRow = grd_apphist.findRow(sIssGoalCd, 0, 3);
  121. if(sStndRow > 0){
  122. messageBox("선택하신 사본발행목적은 이미 신청되었습니다. 다시","C002");
  123. return;
  124. }*/
  125. if(sIssGoalCd == "99"){
  126. sIssGoalEtcYN = true;
  127. }
  128. sIssGoalEtcCd += sIssGoalCd;
  129. }
  130. if(sIssGoalEtcYN == true){
  131. ipt_issgoaletc.disabled = false;
  132. }else{
  133. model.setValue("/root/main/appinfo/copyinfo/issgoaletcnm","");
  134. ipt_issgoaletc.disabled = true;
  135. }
  136. if(sIssGoalEtcCd.indexOf("06") > -1){
  137. messageBox("직할병원용 : 주치의가 8개 직할 병원으로 이동하여 환자도 함께 전원 가기를 희망하는 경우 선택","E008");
  138. }
  139. model.setValue("/root/main/appinfo/copyinfo/issgoaletc", sIssGoalEtc);
  140. model.setValue("/root/main/appinfo/copyinfo/issgoaletccd", sIssGoalEtcCd);
  141. }
  142. model.refresh();
  143. }