SMMNR04600.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /*
  2. (SMMNR04600_수혈현황조회.xrw - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. /**
  7. * @group :
  8. * @ver : 2007.06.18
  9. * @by : 정찬성
  10. * @---------------------------------------------------
  11. * @type : function
  12. * @access : public
  13. * @desc : 수혈현황조회
  14. * @param :
  15. * @return :
  16. * @---------------------------------------------------
  17. */
  18. function fGetTnsPresCondRef(){
  19. if(rdo_wardpatientflag.value == "patient") {
  20. if (ipt_pid.value == ""){
  21. messageBox("등록번호를 ","C001");
  22. model.setfocus("ipt_pid");
  23. return;
  24. }
  25. } else if(rdo_wardpatientflag.value == "dept") {
  26. if (rdo_recdeptflag.value == "" || cmb_recdeptcd.value == ""){
  27. messageBox("기록부서 구분 및 부서명은 ","I003");
  28. model.setfocus("cmb_recdeptcd");
  29. return;
  30. }
  31. }
  32. model.removenode("/root/send");
  33. model.makeValue("/root/send/prcpddfrom", ipt_prcpddfrom.value);
  34. model.makeValue("/root/send/prcpddto", ipt_prcdddto.value);
  35. model.makeValue("/root/send/wardcd", cmb_wardcd.value);
  36. model.makeValue("/root/send/roomcd", cmb_roomcd.value);
  37. model.makeValue("/root/send/hngnm", cmb_pid.value);
  38. model.makeValue("/root/send/pid", ipt_pid.value);
  39. model.makeValue("/root/send/dateflag", cmb_dateflag.value);
  40. model.makeValue("/root/send/wardpatientflag", rdo_wardpatientflag.value);
  41. model.makeValue("/root/send/recdeptflag", rdo_recdeptflag.value);
  42. model.makeValue("/root/send/recdeptcd", cmb_recdeptcd.value);
  43. if(submit("TRMNR04601")){
  44. return;
  45. }
  46. }
  47. /**
  48. * @group :
  49. * @ver : 2007.06.18
  50. * @by : 정찬성
  51. * @---------------------------------------------------
  52. * @type : function
  53. * @access : public
  54. * @desc : 환자 상세정보 조회 combo
  55. * @param :
  56. * @return :
  57. * @---------------------------------------------------
  58. */
  59. function fGetPatientInfo(pFlag){
  60. model.removenode("/root/send");
  61. if(pFlag == "entr"){
  62. cmb_wardcd.value = "";
  63. cmb_roomcd.value = "";
  64. cmb_pid.value = "";
  65. model.makeValue("/root/send/pid", ipt_pid.value);
  66. }else{
  67. model.makeValue("/root/send/wardcd", cmb_wardcd.value);
  68. model.makeValue("/root/send/roomcd", cmb_roomcd.value);
  69. if( model.makeValue("/root/send/pid", cmb_pid.value) != "" ){
  70. model.makeValue("/root/send/pid", cmb_pid.value);
  71. }
  72. }
  73. if(submit("TRMNR07605")){
  74. if(pFlag == "entr"){
  75. model.setValue("/root/main/cond/patientgrup/patientgruplist/patientnm", model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/patientnm"));
  76. model.setValue("/root/main/cond/patientgrup/patientgruplist/pid", model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid"));
  77. }
  78. }
  79. model.setfocus("btn_search");
  80. }
  81. /**
  82. * @group :
  83. * @ver : 2007.06.18
  84. * @by : 정찬성
  85. * @---------------------------------------------------
  86. * @type : function
  87. * @access : public
  88. * @desc : 환자 정보 조회 combo
  89. * @param :
  90. * @return :
  91. * @---------------------------------------------------
  92. */
  93. function fGetPatientList(){
  94. model.removenode("/root/send");
  95. model.makeValue("/root/send/wardcd", cmb_wardcd.value);
  96. model.makeValue("/root/send/roomcd", cmb_roomcd.value);
  97. if(submit("TRMNR07604")){
  98. }
  99. model.setfocus("cmb_pid");
  100. }
  101. /**
  102. * @group :
  103. * @ver : 2007.06.18
  104. * @by : 정찬성
  105. * @---------------------------------------------------
  106. * @type : function
  107. * @access : public
  108. * @desc : 병실 조회 combo
  109. * @param :
  110. * @return :
  111. * @---------------------------------------------------
  112. */
  113. function fGetRoomList(){
  114. model.removenode("/root/send");
  115. model.makeValue("/root/send/wardcd", cmb_wardcd.value);
  116. if(submit("TRMNR07603")){
  117. }
  118. model.setfocus("cmb_roomcd");
  119. }
  120. /**
  121. * @group :
  122. * @ver : 2007.06.18
  123. * @by : 정찬성
  124. * @---------------------------------------------------
  125. * @type : function
  126. * @access : public
  127. * @desc : 병동 조회
  128. * @param :
  129. * @return :
  130. * @---------------------------------------------------
  131. */
  132. function fGetWardList(){
  133. model.removenode("/root/send");
  134. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcdgrup/wardcdgruplist/wardcd"));
  135. model.makeValue("/root/send/deptsearchyn", "Y");
  136. if(submit("TRMNR07602")){
  137. if(model.getValue("/root/main/cond/wardpatientflag") == "ward" ){
  138. model.setfocus("cmb_wardcd");
  139. }else{
  140. model.setfocus("ipt_pid");
  141. }
  142. }
  143. }
  144. /**
  145. * @group :
  146. * @ver : 2007.12.07
  147. * @by : 양천덕
  148. * @---------------------------------------------------
  149. * @type : function
  150. * @access : public
  151. * @desc : 수혈현황조회 init
  152. * @param :
  153. * @return :
  154. * @---------------------------------------------------
  155. */
  156. function fInit(){
  157. fGetWardList();// 병동코드 리스트
  158. rdo_wardpatientflag.dispatch("xforms-value-changed");
  159. }
  160. /**
  161. * @group :
  162. * @ver : 2007.06.07
  163. * @by : 양천덕
  164. * @---------------------------------------------------
  165. * @type : function
  166. * @access : public
  167. * @desc : Exel 저장
  168. * @param :
  169. * @return :
  170. * @---------------------------------------------------
  171. */
  172. function fSaveExcel(){
  173. var fileName = window.fileDialog("save", ",", false, "수혈현황조회_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  174. if (fileName != "") {
  175. grd_execdetlgruplist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  176. }
  177. }