SMMNW13700.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /*
  2. (SMMNW13700.xrm - JScript )
  3. - Version : Ver.1.00.01
  4. - Desc : 2010.05.18
  5. */
  6. var erdeptcd;
  7. /**
  8. * @group :
  9. * @ver : 2010.05.18
  10. * @by : byday
  11. * @type : function
  12. * @access : public
  13. * @desc : 화면 최초 로딩시 처리 함수
  14. * @param :
  15. * @return :
  16. */
  17. function fInit(){
  18. //날짜 세팅
  19. var currentDate = getCurrentDate();
  20. model.setValue("/root/main/cond/careinrmdd", currentDate);
  21. fSetDt();
  22. ipt_tm1.value = "0700";
  23. ipt_tm2.value = "0659";
  24. submit("TRMNW04705");
  25. // cmb_wardcd.select(0);
  26. addComboItem("cmb_roomcd", "전체", "");
  27. cmb_wardcd.value = getUserInfo("dutplcecd");
  28. fGetNursHardCdInfo("'002'", getCurrentDate());
  29. // model.getValue("/root/code/codeinfo/codelist/cdgrupid");
  30. erdeptcd = model.getValue("/root/code/codeinfo/codelist/cdid");
  31. }
  32. /**
  33. * @group :
  34. * @ver : 2010.05.18
  35. * @by : byday
  36. * @type : function
  37. * @access : public
  38. * @desc : 조회일자 수정시 처리
  39. * @param :
  40. * @return :
  41. */
  42. function fSetDt() {
  43. ipt_dd1.value = ipt_careinrmdd.value.toDate().getAddDate(-1).getDateFormat("YYYYMMDD");
  44. ipt_dd2.value = ipt_careinrmdd.value;
  45. }
  46. /**
  47. * @group :
  48. * @ver : 2010.05.18
  49. * @by : byday
  50. * @type : function
  51. * @access : public
  52. * @desc : 검색 버튼
  53. * @param :
  54. * @return :
  55. */
  56. function fSearch(){
  57. if ( erdeptcd == model.getValue("/root/main/cond/wardcd") )
  58. model.setValue("/root/main/cond/ordtype", "E");
  59. else
  60. model.setValue("/root/main/cond/ordtype", "I");
  61. if ( submit("TRMNW13701") ) {
  62. for ( var nCnt = grd_list.fixedRows; nCnt <= grd_list.rows; nCnt++ ) {
  63. if ( grd_list.valueMatrix(nCnt, grd_list.colRef("pinkyn")) == "Y" ){
  64. grd_list.rowStyle(nCnt, "data", "background-color") = "#FFB6C1";
  65. } else {
  66. grd_list.rowStyle(nCnt, "data", "background-color") = "#ffffff";
  67. }
  68. }
  69. }
  70. }
  71. /**
  72. * @group :
  73. * @ver : 2010.05.18
  74. * @by : byday
  75. * @type : function
  76. * @access : public
  77. * @desc : 병동코드에 해당되는 병실정보 조회
  78. * @param :
  79. * @return :
  80. */
  81. function fSearchRoomcd(){
  82. //병실정보 clear
  83. model.removenode('/root/init/roomcdgrup');
  84. //선택한 병동에 해당되는 병실 조회
  85. submit("TRMNR01003");
  86. addComboItem("cmb_roomcd", "전체", "");
  87. }
  88. /**
  89. * @group :
  90. * @ver : 2010.05.19
  91. * @by : byday
  92. * @type : function
  93. * @access : public
  94. * @desc : 간호정보조사기록 팝업
  95. * @param :
  96. * @return :
  97. */
  98. function fCarePopup() {
  99. var pinkyn = model.getValue("/root/main/list/list["+grd_list.row+"]/pinkyn");
  100. var indschacptstat = model.getValue("/root/main/list/list["+grd_list.row+"]/indschacptstat");
  101. if ( isNull(pinkyn) || isNull(model.getValue("/root/main/list/list["+grd_list.row+"]/pagecd"))) {
  102. } else if ( indschacptstat != "A" ) {
  103. messageBox("재원환자가 아니므로 기록확인을 위해서는 통합기록조회를 이용하시기 바랍니다.", "E");
  104. } else {
  105. //--------------------------상단올리기 flag --------------------------
  106. // 01 O:외래, I:입원구분, T:수술예약 , E:응급
  107. // 02 등록번호
  108. // 03 수술시작일자
  109. // 04 cretno(없는 경우 ""로 처리)
  110. // 05 기관코드
  111. // 06 집도과부서
  112. // 07 집도의ID
  113. // 08 환자구분
  114. // 09 F -처리구분 무조건 F로 설정
  115. // 10 수술예약번호
  116. // 11 수술이력번호
  117. // 12 조회일자 2007-09-13 오지훈 추가...
  118. //--------------------------------------------------------------------
  119. var ordtype = model.getValue("/root/main/cond/ordtype");//"I";
  120. var ioflag = model.getValue("/root/main/cond/ordtype") ;
  121. if ( ioflag == "D" ) ioflag == "I";
  122. ordtype = ioflag;
  123. // 상단 세팅을 위한 파라미터
  124. setParameter("condparam", ordtype + "▦"
  125. + model.getValue("/root/main/list/list["+grd_list.row+"]/pid") + "▦"
  126. + model.getValue("/root/main/list/list["+grd_list.row+"]/indd") + "▦"
  127. + model.getValue("/root/main/list/list["+grd_list.row+"]/cretno") + "▦"
  128. + model.getValue("/root/main/list/list["+grd_list.row+"]/instcd") + "▦"
  129. + model.getValue("/root/main/list/list["+grd_list.row+"]/recdd")
  130. );
  131. modal("SPMMO08900", 1, "", "", "", "SPMMO08900", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  132. //상단 세팅 화면 사이즈 작게 띄움 (id,monNo,xPos,yPos,wid,ref,resultref,userProp,prevPos)
  133. modal(model.getValue("/root/main/list/list["+grd_list.row+"]/pagecd"));
  134. }
  135. }