SPPMI02000_병실정보POPUP.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPPMI02000_병실정보Popup.xrw
  4. * 설 명 : 병실정보Popup
  5. * 설 계 자 : 홍영표
  6. * 작 성 자 : 홍영표
  7. * 작 성 일 : 2007.06.05
  8. * 수정이력 : 2008.11.16 최병진 - 입원등록 화면에 파라미터를 설정해서 입원등록 시 가동병실,병상만 조회되도록 기능 추가
  9. * 기 타 :
  10. * 구현예정 :
  11. -->
  12. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  13. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  14. <xhtml:head>
  15. <xhtml:title>병실정보Popup</xhtml:title>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root xmlns="">
  19. <send>
  20. <data1>
  21. <rmspecref>8</rmspecref>
  22. <rmspecrefnm>-</rmspecrefnm>
  23. <sendflag/>
  24. <prestdd/>
  25. <bedflag/>
  26. <room_sex/>
  27. <room_type/>
  28. <room_grdefrom/>
  29. <room_grdeto/>
  30. <room_wardcd/>
  31. <building/>
  32. </data1>
  33. <sess_posinstcd>012</sess_posinstcd>
  34. </send>
  35. <main>
  36. <wdrmlist>
  37. <grdroomspec/>
  38. </wdrmlist>
  39. </main>
  40. <hidden>
  41. <rcv>
  42. </rcv>
  43. <original>
  44. </original>
  45. <flag>
  46. <rcv_flag>
  47. </rcv_flag>
  48. </flag>
  49. <target>
  50. <srchcond/>
  51. <wardcd/>
  52. </target>
  53. <init>
  54. <disccd>
  55. <cd/>
  56. <nm/>
  57. </disccd>
  58. <insukind>
  59. <cd/>
  60. <nm/>
  61. </insukind>
  62. <suppkind>
  63. <cd/>
  64. <nm/>
  65. <up/>
  66. <io/>
  67. </suppkind>
  68. <orddeptcd>
  69. <cd/>
  70. <nm/>
  71. </orddeptcd>
  72. <orddrid>
  73. <cd/>
  74. <nm/>
  75. <dp/>
  76. <sp/>
  77. </orddrid>
  78. <wardcd>
  79. <cd/>
  80. <nm/>
  81. <of/>
  82. </wardcd>
  83. <roomcd>
  84. <cd/>
  85. <nm/>
  86. <wd/>
  87. </roomcd>
  88. <flag>
  89. <prestdd/>
  90. <mskindflag/>
  91. </flag>
  92. </init>
  93. </hidden>
  94. <init>
  95. <P0025list>
  96. <P0025>
  97. <cdid/>
  98. <cdnm/>
  99. </P0025>
  100. </P0025list>
  101. <P0026list>
  102. <P0026>
  103. <cdid/>
  104. <cdnm/>
  105. </P0026>
  106. </P0026list>
  107. <P0391list>
  108. <P0391>
  109. <cdid/>
  110. <cdnm/>
  111. </P0391>
  112. </P0391list>
  113. <P0325list>
  114. <P0325>
  115. <cdnm/>
  116. <cdid/>
  117. </P0325>
  118. </P0325list>
  119. </init>
  120. </root>
  121. </instance>
  122. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  123. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  124. <submission id="TRPMI00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/wdrmlist"/>
  125. </model>
  126. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  130. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  131. <script type="javascript" ev:event="xforms-ready">
  132. <![CDATA[
  133. zbcfGetCodeList(new Array("P0025","P0026","P0391","P0325"), new Array("/root/init/P0025list","/root/init/P0026list","/root/init/P0391list","/root/init/P0325list"));
  134. submit("TRPMI00106");
  135. // 2008.12.12 - 우선은 무조건 빈병상으로 조회되도록 수정
  136. if (isPopup()) {
  137. // 2008.12.05 환자에 적합한 병실을 우선 조회하기 위한 로직 추가
  138. // 성병, 병실형태는 쿼리에서 조건으로 처리하고, 병실등급에 따른 정렬은 mgr에서 처리한다.
  139. var sParam = opener.javascript.getParameter("SMPMI00100_Param1");
  140. opener.javascript.clearParameter("SMPMI00100_Param1");
  141. //var sParam = "M" + "▦" + "S08" + "▦" + "" + "▦" + "" + "▦" + "";
  142. if (!isNull(sParam)) {
  143. var aRoomArray = sParam.split("▦");
  144. var sSex = aRoomArray[0].replace('-', '');
  145. var sRoomTypeCd = aRoomArray[1].replace('-', '');
  146. var sRoomGrdeCdFrom = aRoomArray[2].replace('-', '');
  147. var sRoomGrdeCdTo = aRoomArray[3].replace('-', '');
  148. var sWardCd = aRoomArray[4].replace('-', '');
  149. model.setValue("/root/send/data1/room_sex", sSex);
  150. model.setValue("/root/send/data1/room_type", sRoomTypeCd);
  151. model.setValue("/root/send/data1/room_grdefrom", sRoomGrdeCdFrom);
  152. model.setValue("/root/send/data1/room_grdeto", sRoomGrdeCdTo);
  153. model.setValue("/root/send/data1/room_wardcd", sWardCd);
  154. if (!isNull(sSex) || !isNull(sRoomTypeCd) || !isNull(sRoomGrdeCdFrom) || !isNull(sRoomGrdeCdTo) || !isNull(sWardCd)) {
  155. //model.setValue("/root/send/data1/rmspecref","0");
  156. //fChoice("0");
  157. } else {
  158. var swardcd = model.getValue("/root/hidden/target/wardcd");
  159. if (swardcd != "" && swardcd != "-") {
  160. model.setValue("/root/send/data1/rmspecrefnm",swardcd);
  161. //model.setValue("/root/send/data1/rmspecref","2");
  162. //fChoice("2");
  163. //fQueryRoomRef();
  164. } else {
  165. //model.setValue("/root/send/data1/rmspecref","8");
  166. //fChoice("8");
  167. }
  168. }
  169. //fQueryRoomRef();
  170. } else { // 기존 조회 로직
  171. var swardcd = model.getValue("/root/hidden/target/wardcd");
  172. if (swardcd != "" && swardcd != "-") {
  173. model.setValue("/root/send/data1/rmspecrefnm",swardcd);
  174. model.setValue("/root/send/data1/rmspecref","2");
  175. fChoice("2");
  176. fQueryRoomRef();
  177. } else {
  178. model.setValue("/root/send/data1/rmspecref","8");
  179. fChoice("8");
  180. }
  181. }
  182. var swardcd = model.getValue("/root/hidden/target/wardcd");
  183. if (swardcd != "" && swardcd != "-") {
  184. model.setValue("/root/send/data1/rmspecrefnm",swardcd);
  185. model.setValue("/root/send/data1/rmspecref","2");
  186. fChoice("2");
  187. fQueryRoomRef();
  188. } else {
  189. model.setValue("/root/send/data1/rmspecref","8");
  190. fChoice("8");
  191. }
  192. }
  193. model.refresh();
  194. ]]>
  195. </script>
  196. <script type="javascript">
  197. <![CDATA[
  198. // 조회조건에 따른 조회문장
  199. function fQueryRoomRef()//병동병실 조회
  200. {
  201. // 2008.11.16 메인화면 체크
  202. var mainViewer = getMainViewer();
  203. var mainScrnId = mainViewer.javascript.getScreenID(); //메인화면 ID
  204. var winId = "SMPMI00100"; // 입원등록 화면 ID
  205. if (mainScrnId == winId) {
  206. //가동병실 조회 체크 조건 추가
  207. // Y : 입원등록, 병실배정, N : 재원변경관리, 전과전실승인
  208. model.setValue("/root/send/data1/bedflag", "Y");
  209. } else {
  210. model.setValue("/root/send/data1/bedflag", "N");
  211. }
  212. model.setValue("/root/send/data1/sendflag", "R");//병실검색 조회 구분자
  213. model.setValue("/root/send/data1/prestdd", getCurrentDate());
  214. submit("TRPMI00301");
  215. model.refresh();
  216. fSetRowStyle();
  217. }
  218. // 빈병상이 있는 Row의 색상을 노랑색으로 변경한다.
  219. function fSetRowStyle(){
  220. grd_roomspec.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  221. setRowStyle("grd_roomspec", "1","0","emptybedcnt","bigger"); // 병실정보row의 색상을 변경한다.
  222. }
  223. function fChoice(rmchoi)
  224. {
  225. //1.전체 2.병동 3.병실 4.병실등급 5.병실형태 6.성별 7.진료과 8.빈병상 0.환자맞춤
  226. switch(rmchoi) {
  227. case "0" :
  228. ipt_room.visible = false;
  229. cmb_ward.visible = false;
  230. cmb_building.visible = false;
  231. cmb_grde.visible = false;
  232. cmb_type.visible = false;
  233. cmb_sex.visible = false;
  234. cmb_orddept.visible = false;
  235. fQueryRoomRef();
  236. break;
  237. case "1" :
  238. ipt_room.visible = false;
  239. cmb_ward.visible = false;
  240. cmb_grde.visible = false;
  241. cmb_type.visible = false;
  242. cmb_sex.visible = false;
  243. cmb_orddept.visible = false;
  244. fQueryRoomRef();
  245. break;
  246. case "2" :
  247. cmb_building.attribute("top") = "8px";
  248. cmb_building.attribute("left") = "228px";
  249. cmb_ward.attribute("top") = "8px";
  250. cmb_ward.attribute("left") = "280px";
  251. model.setFocus("cmb_ward");
  252. ipt_room.visible = false;
  253. cmb_ward.visible = true;
  254. cmb_building.visible = true;
  255. cmb_grde.visible = false;
  256. cmb_type.visible = false;
  257. cmb_sex.visible = false;
  258. cmb_orddept.visible = false;
  259. break;
  260. case "3" :
  261. ipt_room.attribute("top") = "8px";
  262. ipt_room.attribute("left") = "228px";
  263. model.setFocus("ipt_room");
  264. ipt_room.visible = true;
  265. cmb_ward.visible = false;
  266. cmb_building.visible = false;
  267. cmb_grde.visible = false;
  268. cmb_type.visible = false;
  269. cmb_sex.visible = false;
  270. cmb_orddept.visible = false;
  271. ipt_room.value ="";
  272. break;
  273. case "4" :
  274. cmb_grde.attribute("top") = "8px";
  275. cmb_grde.attribute("left") = "228px";
  276. ipt_room.visible = false;
  277. cmb_ward.visible = false;
  278. cmb_building.visible = false;
  279. cmb_grde.visible = true;
  280. cmb_type.visible = false;
  281. cmb_sex.visible = false;
  282. cmb_orddept.visible = false;
  283. break;
  284. case "5" :
  285. cmb_type.attribute("top") = "8px";
  286. cmb_type.attribute("left") = "228px";
  287. ipt_room.visible = false;
  288. cmb_ward.visible = false;
  289. cmb_building.visible = false;
  290. cmb_grde.visible = false;
  291. cmb_type.visible = true;
  292. cmb_sex.visible = false;
  293. cmb_orddept.visible = false;
  294. break;
  295. case "6" :
  296. cmb_sex.attribute("top") = "8px";
  297. cmb_sex.attribute("left") = "228px";
  298. model.setFocus("cmb_sex");
  299. ipt_room.visible = false;
  300. cmb_ward.visible = false;
  301. cmb_building.visible = false;
  302. cmb_grde.visible = false;
  303. cmb_type.visible = false;
  304. cmb_sex.visible = true;
  305. cmb_orddept.visible = false;
  306. break;
  307. case "7" :
  308. cmb_orddept.attribute("top") = "8px";
  309. cmb_orddept.attribute("left") = "228px";
  310. ipt_room.visible = false;
  311. cmb_ward.visible = false;
  312. cmb_building.visible = false;
  313. cmb_grde.visible = false;
  314. cmb_type.visible = false;
  315. cmb_sex.visible = false;
  316. cmb_orddept.visible = true;
  317. break;
  318. case "8" :
  319. cmb_orddept.attribute("top") = "8px";
  320. cmb_orddept.attribute("left") = "228px";
  321. ipt_room.visible = false;
  322. cmb_ward.visible = false;
  323. cmb_building.visible = false;
  324. cmb_grde.visible = false;
  325. cmb_type.visible = false;
  326. cmb_sex.visible = false;
  327. cmb_orddept.visible = false;
  328. fQueryRoomRef();
  329. break;
  330. }
  331. }
  332. ]]>
  333. </script>
  334. </xhtml:head>
  335. <xhtml:body pagewidth="930" pageheight="500" guideline="1,924;2,500;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  336. <group id="group3" scroll="auto" style="left:0px; top:0px; width:914px; height:445px; ">
  337. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">병실정보</caption>
  338. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:908px; y2:60px; "/>
  339. <datagrid id="grd_roomspec" nodeset="/root/main/wdrmlist/grdroomspec" class="datagrid2" caption="^병동^병실^성별^등급^병상수^재원병상^기준병상^빈병상^추가병상^퇴원예고^전실&#xA;OUT^전실&#xA;IN^형태^진료과^참고사항^폐쇄병상^퇴원통보^O2^Suction^오버&#xA;베드" colsep="^" colwidth="6, 68, 54, 38, 134, 33, 33, 33, 33, 33, 33, 33, 33, 78, 80, 80, 35, 31, 40, 40, 33" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:64px; width:908px; height:378px; ">
  340. <col type="inputbutton" visibility="hidden" style="text-align:center; "/>
  341. <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
  342. <choices>
  343. <itemset nodeset="/root/hidden/init/wardcd">
  344. <label ref="nm"/>
  345. <value ref="cd"/>
  346. </itemset>
  347. </choices>
  348. </col>
  349. <col ref="roomcd" style="text-align:center; "/>
  350. <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
  351. <choices>
  352. <itemset nodeset="/root/init/P0391list/P0391">
  353. <label ref="cdnm"/>
  354. <value ref="cdid"/>
  355. </itemset>
  356. </choices>
  357. </col>
  358. <col disabled="true" ref="roomgrdecd" type="combo">
  359. <choices>
  360. <itemset nodeset="/root/init/P0025list/P0025">
  361. <label ref="cdnm"/>
  362. <value ref="cdid"/>
  363. </itemset>
  364. </choices>
  365. </col>
  366. <col ref="bedcnt" style="text-align:center; "/>
  367. <col ref="inpatcnt" style="text-align:center; "/>
  368. <col ref="basbedcnt" style="text-align:center; "/>
  369. <col ref="emptybedcnt" style="text-align:center; "/>
  370. <col ref="tempaddbedcnt" style="text-align:center; "/>
  371. <col ref="dschdclrtcnt" style="text-align:center; "/>
  372. <col ref="outchngroomcnt" style="text-align:center; "/>
  373. <col ref="inchngroomcnt" style="text-align:center; "/>
  374. <col disabled="true" ref="roomtypecd" type="combo">
  375. <choices>
  376. <itemset nodeset="/root/init/P0026list/P0026">
  377. <label ref="cdnm"/>
  378. <value ref="cdid"/>
  379. </itemset>
  380. </choices>
  381. </col>
  382. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  383. <choices>
  384. <itemset nodeset="/root/hidden/init/orddeptcd">
  385. <label ref="nm"/>
  386. <value ref="cd"/>
  387. </itemset>
  388. </choices>
  389. </col>
  390. <col ref="bedroomrem"/>
  391. <col ref="tempclosbedcnt" style="text-align:center; "/>
  392. <col ref="dschnoticnt" style="text-align:center; "/>
  393. <col ref="oxyyn" type="combo">
  394. <choices>
  395. <itemset nodeset="/root/init/P0325list/P0325">
  396. <label ref="cdnm"/>
  397. <value ref="cdid"/>
  398. </itemset>
  399. </choices>
  400. </col>
  401. <col ref="suctyn" type="combo">
  402. <choices>
  403. <itemset nodeset="/root/init/P0325list/P0325">
  404. <label ref="cdnm"/>
  405. <value ref="cdid"/>
  406. </itemset>
  407. </choices>
  408. </col>
  409. <col ref="overbedyn" style="text-align:center; "/>
  410. <script type="javascript" ev:event="ondblclick">
  411. <![CDATA[
  412. if (isDataCell()) {
  413. var scurrentrow = grd_roomspec.row;
  414. var semptybedcnt = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/emptybedcnt");
  415. var sRoomTypeCd = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/roomtypecd"); // 병실형태
  416. var sRoomCd = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/roomcd"); // 병실형태
  417. var sOverBedYn = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/overbedyn"); // overbed여부
  418. //alert("scurrentrow:"+scurrentrow+", semptybedcnt:"+semptybedcnt+", fixedRows:"+grd_roomspec.fixedRows);
  419. if (semptybedcnt > 0 && scurrentrow >= grd_roomspec.fixedRows ) {
  420. //부모창에 선택한 병실데이터 전송
  421. var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
  422. var node;
  423. while( node = nodeList.nextNode() ) {
  424. model.duplicate(opener.root.hidden.target , node);
  425. }
  426. window.close();
  427. } else if (sRoomTypeCd == "S01" || sRoomTypeCd == "S02" || sRoomTypeCd == "S09" ) { // 중환자실(집중치료)실은 오버베드 가능하도록 조건 추가
  428. //부모창에 선택한 병실데이터 전송
  429. var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
  430. var node;
  431. while( node = nodeList.nextNode() ) {
  432. model.duplicate(opener.root.hidden.target , node);
  433. }
  434. window.close();
  435. } else if (sOverBedYn == "Y" ) { // 오버베드 가능하도록 조건 추가
  436. //부모창에 선택한 병실데이터 전송
  437. var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
  438. var node;
  439. while( node = nodeList.nextNode() ) {
  440. model.duplicate(opener.root.hidden.target , node);
  441. }
  442. window.close();
  443. } else {
  444. messageBox("빈병상이 있는 병실을","C002");
  445. }
  446. }
  447. ]]>
  448. </script>
  449. </datagrid>
  450. <group id="group4" style="left:0px; top:0px; width:907px; height:35px; ">
  451. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:905px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  452. <caption id="caption43" class="search_name" style="left:10px; top:9px; width:112px; height:17px; ">병실검색조건 :</caption>
  453. <line id="line32" class="line_4" style="x1:818px; y1:7px; x2:818px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  454. <select1 id="cmb_rmsrch" ref="/root/send/data1/rmspecref" class="combo_search" appearance="minimal" style="left:125px; top:8px; width:100px; height:19px; ">
  455. <choices>
  456. <item>
  457. <label>전체</label>
  458. <value>1</value>
  459. </item>
  460. <item>
  461. <label>빈병상</label>
  462. <value>8</value>
  463. </item>
  464. <item>
  465. <label>성별</label>
  466. <value>6</value>
  467. </item>
  468. <item>
  469. <label>병동</label>
  470. <value>2</value>
  471. </item>
  472. <item>
  473. <label>병실</label>
  474. <value>3</value>
  475. </item>
  476. <item>
  477. <label>병실등급</label>
  478. <value>4</value>
  479. </item>
  480. <item>
  481. <label>병실형태</label>
  482. <value>5</value>
  483. </item>
  484. <item>
  485. <label>진료과</label>
  486. <value>7</value>
  487. </item>
  488. <item>
  489. <label>환자맞춤</label>
  490. <value>0</value>
  491. </item>
  492. </choices>
  493. <script type="javascript" ev:event="xforms-select">
  494. <![CDATA[
  495. var rmchoi = model.getValue("/root/send/data1/rmspecref");
  496. fChoice(rmchoi);
  497. ]]>
  498. </script>
  499. </select1>
  500. <input id="ipt_room" ref="/root/send/data1/rmspecrefnm" class="input_search" visibility="hidden" style="left:228px; top:8px; width:125px; height:19px; ">
  501. <script type="javascript" ev:event="onkeypress">
  502. <![CDATA[
  503. inputEnterKey("btn_search1", "DOMActivate");
  504. ]]>
  505. </script>
  506. </input>
  507. <select1 id="cmb_grde" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:238px; top:8px; width:125px; height:19px; ">
  508. <choices>
  509. <itemset nodeset="/root/init/P0025list/P0025">
  510. <label ref="cdnm"/>
  511. <value ref="cdid"/>
  512. </itemset>
  513. </choices>
  514. <script type="javascript" ev:event="xforms-select">
  515. <![CDATA[
  516. fQueryRoomRef();
  517. ]]>
  518. </script>
  519. </select1>
  520. <select1 id="cmb_type" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:278px; top:8px; width:125px; height:19px; ">
  521. <choices>
  522. <itemset nodeset="/root/init/P0026list/P0026">
  523. <label ref="cdnm"/>
  524. <value ref="cdid"/>
  525. </itemset>
  526. </choices>
  527. <script type="javascript" ev:event="xforms-select">
  528. <![CDATA[
  529. fQueryRoomRef();
  530. ]]>
  531. </script>
  532. </select1>
  533. <select1 id="cmb_sex" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:248px; top:8px; width:125px; height:19px; ">
  534. <choices>
  535. <itemset nodeset="/root/init/P0391list/P0391">
  536. <label ref="cdnm"/>
  537. <value ref="cdid"/>
  538. </itemset>
  539. </choices>
  540. <script type="javascript" ev:event="xforms-select">
  541. <![CDATA[
  542. fQueryRoomRef();
  543. ]]>
  544. </script>
  545. </select1>
  546. <select1 id="cmb_orddept" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:258px; top:8px; width:125px; height:19px; ">
  547. <choices>
  548. <itemset nodeset="/root/hidden/init/orddeptcd">
  549. <label ref="nm"/>
  550. <value ref="cd"/>
  551. </itemset>
  552. </choices>
  553. <script type="javascript" ev:event="xforms-select">
  554. <![CDATA[
  555. fQueryRoomRef();
  556. ]]>
  557. </script>
  558. </select1>
  559. <select1 id="cmb_ward" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:268px; top:8px; width:125px; height:19px; ">
  560. <choices>
  561. <itemset nodeset="/root/hidden/init/wardcd">
  562. <label ref="nm"/>
  563. <value ref="cd"/>
  564. </itemset>
  565. </choices>
  566. <script type="javascript" ev:event="xforms-select">
  567. <![CDATA[
  568. fQueryRoomRef();
  569. ]]>
  570. </script>
  571. </select1>
  572. <button id="btn_search1" class="btn1_letter2" style="left:833px; top:7px; width:56px; height:22px; ">
  573. <caption>조회</caption>
  574. <script type="javascript" ev:event="DOMActivate">
  575. <![CDATA[
  576. fQueryRoomRef();
  577. ]]>
  578. </script>
  579. </button>
  580. <select1 id="cmb_building" ref="/root/send/data1/building" class="combo_search" visibility="hidden" appearance="minimal" style="left:405px; top:8px; width:50px; height:19px; ">
  581. <choices>
  582. <item>
  583. <label>-</label>
  584. <value>-</value>
  585. </item>
  586. <item>
  587. <label>본관</label>
  588. <value>M</value>
  589. </item>
  590. <item>
  591. <label>별관</label>
  592. <value>S</value>
  593. </item>
  594. </choices>
  595. <script type="javascript" ev:event="xforms-select">
  596. <![CDATA[
  597. var sBuilding = model.getValue("/root/send/data1/building");
  598. if (sBuilding != null) {
  599. cmb_ward.choices.itemset.attribute("nodeset") = "/root/hidden/init/wardcd[build = '" + sBuilding + "' ]";
  600. cmb_ward.refresh();
  601. }
  602. ]]>
  603. </script>
  604. </select1>
  605. </group>
  606. </group>
  607. <group id="group1" scroll="auto" style="left:0px; top:450px; width:910px; height:35px; ">
  608. <button id="btn_confirm" class="btn4_letter2" style="left:790px; top:5px; width:56px; height:22px; ">
  609. <caption>확인</caption>
  610. <script type="javascript" ev:event="DOMActivate">
  611. <![CDATA[
  612. var scurrentrow = grd_roomspec.row;
  613. var semptybedcnt = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/emptybedcnt");
  614. var sRoomTypeCd = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/roomtypecd"); // 병실형태
  615. var sOverBedYn = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/overbedyn"); // overbed여부
  616. if (semptybedcnt > 0 && scurrentrow > grd_roomspec.fixedRows ) {
  617. //부모창에 선택한 병실데이터 전송
  618. var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
  619. var node;
  620. while( node = nodeList.nextNode() ) {
  621. model.duplicate(opener.root.hidden.target , node);
  622. }
  623. window.close();
  624. } else if (sRoomTypeCd == "S01" || sRoomTypeCd == "S02" || sRoomTypeCd == "S09" ) { // 중환자실(집중치료)실은 오버베드 가능하더록 조건 추가
  625. //부모창에 선택한 병실데이터 전송
  626. var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
  627. var node;
  628. while( node = nodeList.nextNode() ) {
  629. model.duplicate(opener.root.hidden.target , node);
  630. }
  631. window.close();
  632. } else if (sOverBedYn == "Y") { // 오버베드 가능하더록 조건 추가
  633. //부모창에 선택한 병실데이터 전송
  634. var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
  635. var node;
  636. while( node = nodeList.nextNode() ) {
  637. model.duplicate(opener.root.hidden.target , node);
  638. }
  639. window.close();
  640. } else {
  641. messageBox("빈병상이 있는 병실을","C002");
  642. }
  643. ]]>
  644. </script>
  645. </button>
  646. <button id="btn_cancel" class="btn4_letter2" style="left:849px; top:5px; width:56px; height:22px; ">
  647. <caption>취소</caption>
  648. <script type="javascript" ev:event="DOMActivate">
  649. <![CDATA[
  650. window.close();
  651. ]]>
  652. </script>
  653. </button>
  654. </group>
  655. </xhtml:body>
  656. </xhtml:html>