SMMNR07600.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /*
  2. (SMMNR07600_혈액미불출리스트조회.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 fGetBlodNoDeliveList(){
  19. if(radio1.value == "patient") {
  20. if (input3.value == ""){
  21. messageBox("등록번호를 ","C001");
  22. model.setfocus("input3");
  23. return;
  24. }
  25. }
  26. model.removenode("/root/send");
  27. model.makeValue("/root/send/prcpddfrom", input2.value);
  28. model.makeValue("/root/send/prcpddto", input11.value);
  29. model.makeValue("/root/send/wardcd", combo7.value);
  30. model.makeValue("/root/send/roomcd", combo2.value);
  31. model.makeValue("/root/send/hngnm", combo8.value);
  32. model.makeValue("/root/send/pid", input3.value);
  33. model.makeValue("/root/send/dateflag", combo1.value);
  34. model.makeValue("/root/send/wardpatientflag", radio1.value);
  35. model.makeValue("/root/send/deliveflag", radio2.value);
  36. if(submit("TRMNR07606")){
  37. }
  38. }
  39. /**
  40. * @group :
  41. * @ver : 2007.06.18
  42. * @by : 정찬성
  43. * @---------------------------------------------------
  44. * @type : function
  45. * @access : public
  46. * @desc : 환자 상세정보 조회 combo
  47. * @param :
  48. * @return :
  49. * @---------------------------------------------------
  50. */
  51. function fGetPatientInfo(pFlag){
  52. model.removenode("/root/send");
  53. if(pFlag == "entr"){
  54. combo7.value = "";
  55. combo2.value = "";
  56. combo8.value = "";
  57. model.makeValue("/root/send/pid", input3.value);
  58. }else{
  59. model.makeValue("/root/send/wardcd", combo7.value);
  60. model.makeValue("/root/send/roomcd", combo2.value);
  61. if( model.makeValue("/root/send/pid", combo8.value) != "" ){
  62. model.makeValue("/root/send/pid", combo8.value);
  63. }
  64. }
  65. if(submit("TRMNR07605")){
  66. if(pFlag == "entr"){
  67. model.setValue("/root/main/cond/patientgrup/patientgruplist/patientnm", model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/patientnm"));
  68. model.setValue("/root/main/cond/patientgrup/patientgruplist/pid", model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid"));
  69. }
  70. }
  71. model.setfocus("button3");
  72. }
  73. /**
  74. * @group :
  75. * @ver : 2007.06.18
  76. * @by : 정찬성
  77. * @---------------------------------------------------
  78. * @type : function
  79. * @access : public
  80. * @desc : 환자 정보 조회 combo
  81. * @param :
  82. * @return :
  83. * @---------------------------------------------------
  84. */
  85. function fGetPatientList(){
  86. model.removenode("/root/send");
  87. model.makeValue("/root/send/wardcd", combo7.value);
  88. model.makeValue("/root/send/roomcd", combo2.value);
  89. if(submit("TRMNR07604")){
  90. }
  91. model.setfocus("combo8");
  92. }
  93. /**
  94. * @group :
  95. * @ver : 2007.06.18
  96. * @by : 정찬성
  97. * @---------------------------------------------------
  98. * @type : function
  99. * @access : public
  100. * @desc : 병실 조회 combo
  101. * @param :
  102. * @return :
  103. * @---------------------------------------------------
  104. */
  105. function fGetRoomList(){
  106. model.removenode("/root/send");
  107. model.makeValue("/root/send/wardcd", combo7.value);
  108. if(submit("TRMNR07603")){
  109. }
  110. model.setfocus("combo2");
  111. }
  112. /**
  113. * @group :
  114. * @ver : 2007.06.18
  115. * @by : 정찬성
  116. * @---------------------------------------------------
  117. * @type : function
  118. * @access : public
  119. * @desc : 병동 조회
  120. * @param :
  121. * @return :
  122. * @---------------------------------------------------
  123. */
  124. function fGetWardList(){
  125. model.removenode("/root/send");
  126. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcdgrup/wardcdgruplist/wardcd"));
  127. if(submit("TRMNR07602")){
  128. if(model.getValue("/root/main/cond/wardpatientflag") == "ward" ){
  129. model.setfocus("combo7");
  130. }else{
  131. model.setfocus("input3");
  132. }
  133. }
  134. }
  135. /**
  136. * @group :
  137. * @ver : 2007.07.20
  138. * @by : 정찬성
  139. * @---------------------------------------------------
  140. * @type : function
  141. * @access : public
  142. * @desc : 혈액미불출리스트조회 init
  143. * @param :
  144. * @return :
  145. * @---------------------------------------------------
  146. */
  147. function fInit(){
  148. fGetWardList();// 병동코드 리스트
  149. model.setfocus("input3");
  150. }
  151. /**
  152. * @group :
  153. * @ver : 2007.06.07
  154. * @by : 양천덕
  155. * @---------------------------------------------------
  156. * @type : function
  157. * @access : public
  158. * @desc : Exel 저장
  159. * @param :
  160. * @return :
  161. * @---------------------------------------------------
  162. */
  163. function fSaveExcel(){
  164. var fileName = window.fileDialog("save", ",", false, "혈액미불출리스트_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  165. if (fileName != "") {
  166. datagrid5.saveExcel(fileName, "SheetName", true, true, "", "", false);
  167. }
  168. }