SMMNS00700.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /*
  2. 전문간호 기준자료관리(SMMNS00700.xrw - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. var suppdeptcd = '';//메뉴그룹에 등록된 사용부서코드
  7. /**
  8. * @group :
  9. * @ver : 2007.05.28
  10. * @by : 정경화
  11. * @---------------------------------------------------
  12. * @type : function
  13. * @access : public
  14. * @desc : 기준자료관리 조회
  15. * @param :
  16. * @return :
  17. * @---------------------------------------------------
  18. */
  19. function select_spclstand(){
  20. model.removeNodeSet("/root/main/spclstand/spcllist");
  21. model.removeNode('/root/send');
  22. model.makeValue('/root/send/spclcareflag', model.getValue('/root/cond/spclcareflag'));
  23. submit("TRMNS00701");
  24. }
  25. //초기정보조회(전문분야, 공통코드)
  26. /***********************************************************************************************************************************************************
  27. * @author : dhkim
  28. * @desc : 전문분야 코드및 명칭을 조회한다.
  29. ***********************************************************************************************************************************************************/
  30. function fSpclCareSearch(suppdeptcd){
  31. //20090205 dhkim
  32. //전문간호/BMT전문간호 로 나눠지게 되면서 사용부서에 해당하는 분야로 각각 등록됨.
  33. model.removenode('/root/send');
  34. model.makeValue('/root/send/suppdeptcd', suppdeptcd);
  35. model.removenode('root/hidden/spclcarefildflaginfo');
  36. model.makenode('root/hidden/spclcarefildflaginfo');
  37. if(!submit('TRMNS00107')){
  38. messageBox('전문분야기준자료 조회를 실패하였습니다.', 'E999');
  39. return false;
  40. }
  41. cmb_spcl.select(0); //전문분야의 콤보 제일 첫번째로 선택된 상태
  42. }
  43. /**
  44. * @group :
  45. * @ver : 2007.05.28
  46. * @by : 정경화
  47. * @---------------------------------------------------
  48. * @type : function
  49. * @access : public
  50. * @desc : 전문간호 기준자료관리 수정시 상태값 변경
  51. * @param :
  52. * @return :
  53. * @---------------------------------------------------
  54. */
  55. function fstandstat(){
  56. iRow = grd_standlist.row;
  57. if ((grd_standlist.textmatrix(iRow,2) != "") || // 의뢰구분
  58. (grd_standlist.textmatrix(iRow,5) != "") || // 현장검사
  59. (grd_standlist.textmatrix(iRow,6) != "")){ // 시행체크방법
  60. grd_standlist.textMatrix(iRow, 1) = "수정"; //상태값 지정(update)
  61. }
  62. }
  63. /**
  64. * @group :
  65. * @ver : 2007.05.28
  66. * @by : 정경화
  67. * @---------------------------------------------------
  68. * @type : function
  69. * @access : public
  70. * @desc : grid 줄추가/줄삭제
  71. * @param :
  72. * @return :
  73. * @---------------------------------------------------
  74. */
  75. function fgriditem(flag){
  76. iRow = grd_standlist.row;
  77. if (flag == "I") { // 행추가
  78. grd_standlist.addItem();
  79. //alert(grd_standlist.row);
  80. grd_standlist.textMatrix(grd_standlist.row, 1) = "입력"; //상태값 지정(update)
  81. }
  82. else if (flag == "D") { // 행삭제
  83. if (grd_standlist.textmatrix(iRow,1) == "입력") {
  84. grd_standlist.deleteItem(iRow);
  85. }
  86. else {
  87. grd_standlist.textMatrix(iRow, 1) = "삭제"; //상태값 지정(update)
  88. }
  89. }
  90. }
  91. /**
  92. * @group :
  93. * @ver : 2007.05.28
  94. * @by : 정경화
  95. * @---------------------------------------------------
  96. * @type : function
  97. * @access : public
  98. * @desc : 전문간호 기준자료 관리(수정/삭제)
  99. * @param :
  100. * @return :
  101. * @---------------------------------------------------
  102. */
  103. function Savestand(){
  104. model.removenode("/root/send/standsave");
  105. model.makeValue("/root/send/standsave",grd_standlist.getupdatedataAll("i"));
  106. submit("TXMNS00701");
  107. model.refresh();
  108. }
  109. /**
  110. * @group :
  111. * @ver : 2007.05.29
  112. * @by : 정경화
  113. * @---------------------------------------------------
  114. * @type : function
  115. * @access : public
  116. * @desc : 기준자료관리 처방검색
  117. * @param :
  118. * @return :
  119. * @---------------------------------------------------
  120. */
  121. function select_spclprcp(){
  122. //model.removeNodeSet("/root/main/prcpinfo/prcplist");
  123. model.removeNode('/root/send');
  124. model.makeValue('/root/send/spclcareflag', model.getValue('/root/cond/spclcareflag'));
  125. model.makeValue('/root/send/prcpcode', model.getValue('/root/cond2/prcpcode'));
  126. model.makeValue('/root/send/prcpflag', model.getValue('/root/cond2/prcpflag'));
  127. submit("TRMNS00702");
  128. }
  129. /**
  130. * @group :
  131. * @ver : 2007.05.28
  132. * @by : 정경화
  133. * @---------------------------------------------------
  134. * @type : function
  135. * @access : public
  136. * @desc : 전문간호 기준자료 관리(입력)
  137. * @param :
  138. * @return :
  139. * @---------------------------------------------------
  140. */
  141. function Insstand(){
  142. model.removenode("/root/send/standins");
  143. model.makeValue("/root/send/standins",grd_prcplist.getupdatedataAll("i"));
  144. submit("TXMNS00702");
  145. model.refresh();
  146. }