MRD01300.js 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /**
  2. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  3. - 사망환자리스트 ( SMMRD01300_사망환자리스트.xrw - JScript )
  4. - Version :
  5. 1) : Ver.1.00.01
  6. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  7. **/
  8. /**
  9. * @ver : 2007-12-01
  10. * @desc : 화면초기화
  11. * @
  12. * @by : 이창록
  13. * @param :
  14. * @return :
  15. * @---------------------------------------------------
  16. */
  17. function finitialize()
  18. {
  19. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept","D");
  20. var vNowDD = getCurrentDate();
  21. model.setValue("/root/main/condition/dethfromdd", vNowDD.substr(0,6)+ "01");
  22. model.setValue("/root/main/condition/dethtodd" , vNowDD);
  23. model.removeNodeset("/root/main/deathptnlist");
  24. model.refresh();
  25. model.makeValue("/root/send/reqdata/deptcd", model.getValue("/root/main/condition/atdoctid"));
  26. submit("TRMRD00598");
  27. addComboItem("cmb_dethflagcd", "전체", "00", "above");
  28. cmb_dethflagcd.Value="00";
  29. addComboItem("cmb_dethresncd", "전체", "00", "above");
  30. cmb_dethresncd.Value="00";
  31. addComboItem("cmb_dethplcecd", "전체", "00", "above");
  32. cmb_dethplcecd.Value="00";
  33. addComboItem("cmb_orddept" , "전체", "00", "above");
  34. cmb_orddept.Value="00";
  35. addComboItem("cbo_doc" , "전체", "00", "above");
  36. cbo_doc.Value="00";
  37. }
  38. /**
  39. * @ver : 2007-12-01
  40. * @desc : 사망분석한 환자를 조회
  41. * @
  42. * @by : 이창록
  43. * @param :
  44. * @return :
  45. * @---------------------------------------------------
  46. */
  47. function fdethinfoseach()
  48. {
  49. if(submit("TRMRD01300")){
  50. }
  51. }
  52. function fSendDeathptnlist()
  53. {
  54. var datagrid1_PATH= "/root/main/deathptnlist";
  55. var pid="";
  56. var pname ="";
  57. var addr="";
  58. var jumin="";
  59. var sex="";
  60. var age="";
  61. var phone ="";
  62. var insukind="";
  63. var dept="";
  64. var doct="";
  65. var indt ="";
  66. var dethkind ="";
  67. var dethflag ="";
  68. var dethresncd ="";
  69. var dethplce="";
  70. var dethdd ="";
  71. var basedethcascd ="";
  72. var mdldethcascd ="";
  73. var direcdethcascd ="";
  74. var deinfo="";
  75. var iToRow = datagrid1.rows;
  76. for(var iRow = 1 ; iRow < iToRow ; iRow++){
  77. if(datagrid1.isSelected(iRow)){
  78. pid = model.getValue(datagrid1_PATH + "[" + iRow + "]/pid");
  79. pname = model.getValue(datagrid1_PATH + "[" + iRow + "]/pname");
  80. addr = model.getValue(datagrid1_PATH + "[" + iRow + "]/addr");
  81. jumin = model.getValue(datagrid1_PATH + "[" + iRow + "]/jumin");
  82. sex = model.getValue(datagrid1_PATH + "[" + iRow + "]/sex");
  83. age = model.getValue(datagrid1_PATH + "[" + iRow + "]/age");
  84. phone= model.getValue(datagrid1_PATH + "[" + iRow + "]/phone");
  85. insukind= model.getValue(datagrid1_PATH + "[" + iRow + "]/insukind");
  86. dept= model.getValue(datagrid1_PATH + "[" + iRow + "]/dept");
  87. doct= model.getValue(datagrid1_PATH + "[" + iRow + "]/doct");
  88. indt= model.getValue(datagrid1_PATH + "[" + iRow + "]/indt");
  89. dethkind = model.getValue(datagrid1_PATH + "[" + iRow + "]/dethkind");
  90. dethflag= model.getValue(datagrid1_PATH + "[" + iRow + "]/dethflag");
  91. dethresncd= model.getValue(datagrid1_PATH + "[" + iRow + "]/dethresncd");
  92. dethplce= model.getValue(datagrid1_PATH + "[" + iRow + "]/dethplce");
  93. dethdd= model.getValue(datagrid1_PATH + "[" + iRow + "]/dethdd");
  94. basedethcascd= model.getValue(datagrid1_PATH + "[" + iRow + "]/basedethcascd");
  95. mdldethcascd= model.getValue(datagrid1_PATH + "[" + iRow + "]/mdldethcascd");
  96. direcdethcascd = model.getValue(datagrid1_PATH + "[" + iRow + "]/direcdethcascd");
  97. }
  98. }
  99. setParameter("pid",pid);
  100. modal("SMMRD00500");
  101. model.refresh();
  102. }
  103. /**
  104. * @ver : 2007-12-01
  105. * @desc : 선행사인(진단팝업)
  106. * @
  107. * @by : 이창록
  108. * @param :
  109. * @return :
  110. * @---------------------------------------------------
  111. */
  112. function fFirstwhy()
  113. {
  114. model.removeNodeset("/root/temp");
  115. setParameter("SPMMO03200_DIAGONESELECT", "Y");
  116. var search = model.getValue("/root/main/condition/basedethcascd");
  117. setParameter("SPMMO03200_SEARCHDATA", search);
  118. modal("SPMMO03200");
  119. var dispdiagcd = model.getValue("/root/temp/selectdiaglist[1]/dispdiagcd");
  120. var diagcd = model.getValue("/root/temp/selectdiaglist[1]/diagcd");
  121. if (diagcd.length > 0)
  122. {
  123. model.setValue("/root/main/condition/basedethcascd", dispdiagcd);
  124. model.setValue("/root/main/condition/basedethdiagcd", diagcd);
  125. }
  126. model.refresh();
  127. }
  128. /**
  129. * @ver : 2007-12-01
  130. * @desc : 중간사인(진단팝업)
  131. * @
  132. * @by : 이창록
  133. * @param :
  134. * @return :
  135. * @---------------------------------------------------
  136. */
  137. function fSecondwhy()
  138. {
  139. model.removeNodeset("/root/temp");
  140. setParameter("SPMMO03200_DIAGONESELECT", "Y");
  141. var search = model.getValue("/root/main/condition/mdldethcascd");
  142. setParameter("SPMMO03200_SEARCHDATA", search);
  143. modal("SPMMO03200");
  144. var dispdiagcd = model.getValue("/root/temp/selectdiaglist[1]/dispdiagcd");
  145. var diagcd = model.getValue("/root/temp/selectdiaglist[1]/diagcd");
  146. if (diagcd.length > 0)
  147. {
  148. model.setValue("/root/main/condition/mdldethcascd", dispdiagcd);
  149. model.setValue("/root/main/condition/mdldethdiagcd", diagcd);
  150. }
  151. model.refresh();
  152. }
  153. /**
  154. * @ver : 2007-12-01
  155. * @desc : 직접사인(진단팝업)
  156. * @
  157. * @by : 이창록
  158. * @param :
  159. * @return :
  160. * @---------------------------------------------------
  161. */
  162. function fThirdwhy()
  163. {
  164. model.removeNodeset("/root/temp");
  165. setParameter("SPMMO03200_DIAGONESELECT", "Y");
  166. var search = model.getValue("/root/main/condition/direcdethcascd");
  167. setParameter("SPMMO03200_SEARCHDATA", search);
  168. modal("SPMMO03200");
  169. var dispdiagcd = model.getValue("/root/temp/selectdiaglist[1]/dispdiagcd");
  170. var diagcd = model.getValue("/root/temp/selectdiaglist[1]/diagcd");
  171. if (diagcd.length > 0)
  172. {
  173. model.setValue("/root/main/condition/direcdethcascd" , dispdiagcd);
  174. model.setValue("/root/main/condition/direcdethdiagcd" , diagcd);
  175. }
  176. model.refresh();
  177. }
  178. /**
  179. * @ver : 2007-12-01
  180. * @desc : 사망종류에서 전체 체크시 모두 선택
  181. * @
  182. * @by : 이창록
  183. * @param :
  184. * @return :
  185. * @---------------------------------------------------
  186. */
  187. function fSlectdethkindcd()
  188. {
  189. var check = model.getValue("/root/hidden/tmp");
  190. if(check=="00")
  191. model.setValue("/root/main/condition/dethkindcd", " 01 02 03 04 09");
  192. else
  193. model.setValue("/root/main/condition/dethkindcd", "");
  194. model.refresh();
  195. }
  196. /**
  197. * @ver : 2007-12-01
  198. * @desc : 진료과 선택시 주치의 명단 가져오기
  199. * @
  200. * @by : 이창록
  201. * @param :
  202. * @return :
  203. * @---------------------------------------------------
  204. */
  205. function fGetAdotid()
  206. {
  207. model.removeNodeset("/root/init/userlist");
  208. model.makeNode("/root/init/userlist/usercombo");
  209. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330");
  210. //addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  211. //model.setValue("/root/main/dethpat/atdocnm", "-");
  212. cbo_doc.select(0);
  213. model.refresh();
  214. }