SPPMI02001_병상정보POPUP.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPPMI02001_병상정보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. <orddeptcd/>
  21. <wardcd/>
  22. <rmspecref/>
  23. <otherdeptyn/>
  24. <orduseyn/>
  25. <search/>
  26. <budogubunyn/>
  27. <updateData>
  28. <datalist/>
  29. </updateData>
  30. </send>
  31. <main>
  32. <bedlist>
  33. <grdbedspec/>
  34. </bedlist>
  35. </main>
  36. <hidden>
  37. <rcv>
  38. </rcv>
  39. <original>
  40. </original>
  41. <flag>
  42. <rcv_flag>
  43. </rcv_flag>
  44. </flag>
  45. <target>
  46. <srchcond/>
  47. <wardcd/>
  48. </target>
  49. <init>
  50. <disccd>
  51. <cd/>
  52. <nm/>
  53. </disccd>
  54. <insukind>
  55. <cd/>
  56. <nm/>
  57. </insukind>
  58. <suppkind>
  59. <cd/>
  60. <nm/>
  61. <up/>
  62. <io/>
  63. </suppkind>
  64. <orddeptcd>
  65. <cd/>
  66. <nm/>
  67. </orddeptcd>
  68. <orddrid>
  69. <cd/>
  70. <nm/>
  71. <dp/>
  72. <sp/>
  73. </orddrid>
  74. <wardcd>
  75. <cd/>
  76. <nm/>
  77. <of/>
  78. </wardcd>
  79. <roomcd>
  80. <cd/>
  81. <nm/>
  82. <wd/>
  83. </roomcd>
  84. <flag>
  85. <prestdd/>
  86. <mskindflag/>
  87. </flag>
  88. <bedcd>
  89. <wd/>
  90. <rm/>
  91. <cd/>
  92. <nm/>
  93. </bedcd>
  94. <roomgrdecd>
  95. <cd/>
  96. <nm/>
  97. <typecd/>
  98. <cdamt/>
  99. </roomgrdecd>
  100. </init>
  101. </hidden>
  102. <init>
  103. <P0025list>
  104. <P0025>
  105. <cdid/>
  106. <cdnm/>
  107. </P0025>
  108. </P0025list>
  109. <P0026list>
  110. <P0026>
  111. <cdid/>
  112. <cdnm/>
  113. </P0026>
  114. </P0026list>
  115. <P0391list>
  116. <P0391>
  117. <cdid/>
  118. <cdnm/>
  119. </P0391>
  120. </P0391list>
  121. <P0325list>
  122. <P0325>
  123. <cdnm/>
  124. <cdid/>
  125. </P0325>
  126. </P0325list>
  127. <PAM>
  128. <PK116list/>
  129. </PAM>
  130. </init>
  131. <tmp>
  132. <orddeptcd>
  133. <cd>-</cd>
  134. <nm>-</nm>
  135. </orddeptcd>
  136. <orddeptcd>
  137. <cd>0000000000</cd>
  138. <nm>공용병상</nm>
  139. </orddeptcd>
  140. </tmp>
  141. </root>
  142. </instance>
  143. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  144. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  145. <submission id="TRPMI02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bedlist"/>
  146. <submission id="TXPMB00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updateData" resultref="/root/send/updateData/griddata"/>
  147. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  148. </model>
  149. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  153. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  154. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  155. <script type="javascript" ev:event="xforms-ready">
  156. <![CDATA[
  157. zbcfGetCodeList(new Array("P0026","P0391","P0325"), new Array("/root/init/P0026list","/root/init/P0391list","/root/init/P0325list"));
  158. submit("TRPMI00106");
  159. // 원무공통코드 조회
  160. pamfGetCodeList(new Array("PK116"), new Array("/root/init/PAM/PK116list"));
  161. //진료과 콤보에 디폴트값 추가
  162. model.makeNode("/root/tmp/orddeptcd");
  163. copyNodesetType("/root/tmp/orddeptcd","/root/hidden/init/orddeptcd","after");
  164. copyNodesetType("/root/hidden/init/orddeptcd","/root/tmp/orddeptcd","replace");
  165. model.setValue("/root/send/rmspecref", "1");
  166. cmb_rmsrch.dispatch("xforms-value-changed");
  167. // 진료의뢰서 테스트용
  168. if (getUserInfo("userid") == "PAM") {
  169. checkbox2.visible = true;
  170. } else {
  171. checkbox2.visible = false;
  172. }
  173. //진료과에 맞게 병상 조회
  174. if (isPopup()) {
  175. // 메뉴를 통해 표시되는 경우
  176. var sMenuParam = model.getValue("/root/properties/menu/menuparam");
  177. // 진료대기자 리스트 팝업메뉴를 통해 표시되는 경우
  178. if (isNull(sMenuParam) || sMenuParam == '') {
  179. sMenuParam = opener.javascript.getParameter("SMPMI00100_MENUPARAM");
  180. }
  181. //부모창에서 파마리터로 전달 받아 해당 진료과의 병상만 조회한다.
  182. var sParam1 = opener.javascript.getParameter("SMPMI00100_Param1");
  183. opener.javascript.clearParameter("SMPMI00100_Param1");
  184. //부모창에서 파마리터로 전달 받아 해당 병동의 병상만 조회한다.
  185. var sParam2 = opener.javascript.getParameter("SMPMI00100_Param2");
  186. opener.javascript.clearParameter("SMPMI00100_Param2");
  187. //진료에서 호출 여부
  188. //Y : 결정서화면 호출, H: 전실신청에서 호출
  189. var sOrdUserYn = opener.javascript.getParameter("SMPMI00100_orduseyn");
  190. opener.javascript.clearParameter("SMPMI00100_orduseyn");
  191. model.setValue("/root/send/orduseyn", sOrdUserYn);
  192. // 부도병상 표시여부
  193. if(sOrdUserYn == "Y"){
  194. model.setValue("/root/send/budogubunyn", "Y"); // 결정서화면에서 호출된 경우만 적용
  195. }
  196. // 결정서화면에서 호출 + 진료과 전달된 경우
  197. if(sOrdUserYn == 'Y' && !isNull(sParam1)){
  198. checkbox1.visible = true;
  199. cmb_rmsrch.disabled = true;
  200. // 병동코드가 전달된 경우(소아청소년과 분과)
  201. if (!isNull(sParam2)) {
  202. // 세부조건 콤보 표시제어용
  203. cmb_orddept.visible = false;
  204. cmb_ward.visible = true; // 병동
  205. cmb_ward.disabled = true;
  206. model.setValue("/root/send/wardcd", sParam2);
  207. cmb_ward.refresh();
  208. model.setValue("/root/send/rmspecref", "2");
  209. cmb_rmsrch.refresh();
  210. // 진료과만 전달된 경우
  211. } else {
  212. cmb_orddept.disabled = true;
  213. model.setValue("/root/send/orddeptcd", sParam1);
  214. cmb_orddept.refresh();
  215. }
  216. fQueryBedRef();
  217. // 메뉴화면에서 호출한 경우
  218. }else if (sMenuParam == 'A'){
  219. checkbox1.visible = true;
  220. cmb_rmsrch.disabled = false;
  221. cmb_orddept.disabled = false;
  222. // 세부조건 콤보 표시제어용
  223. cmb_orddept.visible = false;
  224. cmb_ward.visible = false;
  225. cmb_search.visible = true; // 빈병상
  226. model.setValue("/root/send/otherdeptyn", "Y"); // Y:타과병상신청
  227. checkbox1.refresh();
  228. model.setValue("/root/send/search", "E"); // E:응급의료센터, 임상시험센터 제외
  229. cmb_search.refresh();
  230. model.setValue("/root/send/rmspecref", 0); // 0:빈병상
  231. cmb_rmsrch.refresh();
  232. fQueryBedRef();
  233. // 기타
  234. }else{
  235. checkbox1.visible = false;
  236. cmb_rmsrch.disabled = false;
  237. cmb_orddept.disabled = false;
  238. }
  239. }
  240. model.refresh();
  241. ]]>
  242. </script>
  243. <script type="javascript">
  244. <![CDATA[
  245. //병상 조회
  246. function fQueryBedRef()
  247. {
  248. // var mainViewer = getMainViewer();
  249. // var mainScrnId = mainViewer.javascript.getScreenID(); //메인화면 ID
  250. // var winId = "SMPMI00100"; // 입원등록 화면 ID
  251. // if (mainScrnId == winId) {
  252. // //가동병실 조회 체크 조건 추가
  253. // // Y : 입원등록, 병실배정, N : 재원변경관리, 전과전실승인
  254. // model.setValue("/root/send/data1/bedflag", "Y");
  255. // } else {
  256. // model.setValue("/root/send/data1/bedflag", "N");
  257. // }
  258. //
  259. // model.setValue("/root/send/data1/sendflag", "R");//병실검색 조회 구분자
  260. // model.setValue("/root/send/data1/prestdd", getCurrentDate());
  261. submit("TRPMI02001");
  262. model.refresh();
  263. fSetRowStyle();
  264. }
  265. // 빈병상이 있는 Row의 색상을 노랑색으로 변경한다.
  266. function fSetRowStyle(){
  267. grd_bedspec.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  268. // 빈병상 처리
  269. setRowStyle("grd_bedspec", "1","N","emptycheck","equal");
  270. // 입원결정서 화면 연동 시 부도병상 처리
  271. if (model.getValue("/root/send/budogubunyn") == "Y") {
  272. // 부도병상 처리(N:부도)
  273. setRowStyle("grd_bedspec", "5","N","budogubun","equal");
  274. }
  275. }
  276. //확인버트 클릭 모화면으로 데이터 넘김
  277. function fConfirm(){
  278. var scurrentrow = grd_bedspec.row;
  279. // 메뉴를 통해 표시되는 경우
  280. var sMenuParam = model.getValue("/root/properties/menu/menuparam");
  281. // 진료대기자 리스트 팝업메뉴를 통해 표시되는 경우
  282. if (isNull(sMenuParam) || sMenuParam == '') {
  283. sMenuParam = opener.javascript.getParameter("SMPMI00100_MENUPARAM");
  284. }
  285. // 메뉴에서 호출되는 경우, 부모창이 없으므로 설정로직 스킵하도록 수정추가 by 조중래 20131021
  286. if ( scurrentrow > 0 && isDataCell() && sMenuParam != 'A') {
  287. var emptycheck = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/emptycheck"); // 빈병상여부
  288. var sRoomTypeCd = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/roomtypecd"); // 병실형태
  289. var sRoomCd = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/roomcd"); // 호수
  290. var sOverBedYn = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/overbedyn"); // overbed여부
  291. var sRoomGrdecd = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/roomgrdecd"); // 병실등급
  292. var sBudoGubun = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/budogubun"); // 부도여부(N:부도)
  293. // 부도병상 체크
  294. if (model.getValue("/root/send/budogubunyn") == "Y" && sBudoGubun == "N") {
  295. messageBox("해당병상은 2일이상 연속으로 부도처리되어 병실배정 불가능합니다.\r\n해당병상의 사용은 공용병상 담당자에게 문의하시기 바랍니다.\r\n(일과중 : 원무과 공용병상 담당자 / 일과후 : 응급수납)", "E000");
  296. return;
  297. // 빈병상(N)인 경우
  298. } else if (emptycheck != 'Y' ) {
  299. //부모창에 선택한 병실데이터 전송
  300. var nodeList = instance1.selectNodes("/root/main/bedlist/grdbedspec["+ scurrentrow +"]");
  301. var node;
  302. while( node = nodeList.nextNode() ) {
  303. model.duplicate(opener.root.hidden.target , node);
  304. model.property("certyn") = "Y";
  305. }
  306. window.close();
  307. // 특수병동(S01:신생아, S02:집중치료, S09:분만)으 ㅣ경우 오버베드 가능
  308. } else if (sRoomTypeCd == "S01" || sRoomTypeCd == "S02" || sRoomTypeCd == "S09" ) {
  309. //부모창에 선택한 병실데이터 전송
  310. var nodeList = instance1.selectNodes("/root/main/bedlist/grdbedspec["+ scurrentrow +"]");
  311. var node;
  312. while( node = nodeList.nextNode() ) {
  313. model.duplicate(opener.root.hidden.target , node);
  314. model.property("certyn") = "Y";
  315. }
  316. window.close();
  317. // 오버베드 가능한 경우
  318. } else if (sOverBedYn == "Y" ) {
  319. //부모창에 선택한 병실데이터 전송
  320. var nodeList = instance1.selectNodes("/root/main/bedlist/grdbedspec["+ scurrentrow +"]");
  321. var node;
  322. while( node = nodeList.nextNode() ) {
  323. model.duplicate(opener.root.hidden.target , node);
  324. model.property("certyn") = "Y";
  325. }
  326. window.close();
  327. // 재원병상인 경우
  328. } else {
  329. messageBox("빈병상이 있는 병실을","C002");
  330. }
  331. }
  332. }
  333. ]]>
  334. </script>
  335. </xhtml:head>
  336. <xhtml:body pagewidth="1100" pageheight="690" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  337. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1070px; height:655px; ">
  338. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">병상정보</caption>
  339. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:1050px; y2:60px; "/>
  340. <group id="group4" style="left:0px; top:0px; width:1050px; height:35px; ">
  341. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1050px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  342. <line id="line32" class="line_4" style="x1:963px; y1:7px; x2:963px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  343. <select1 id="cmb_orddept" ref="/root/send/orddeptcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:228px; top:8px; width:165px; height:19px; ">
  344. <choices>
  345. <itemset nodeset="/root/hidden/init/orddeptcd">
  346. <label ref="nm"/>
  347. <value ref="cd"/>
  348. </itemset>
  349. </choices>
  350. <script type="javascript" ev:event="xforms-select">
  351. <![CDATA[
  352. fQueryBedRef();
  353. ]]>
  354. </script>
  355. </select1>
  356. <button id="btn_search1" class="btn1_letter2" style="left:978px; top:7px; width:56px; height:22px; ">
  357. <caption>조회</caption>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. fQueryBedRef();
  361. ]]>
  362. </script>
  363. </button>
  364. <caption id="caption2" class="search_name" style="left:10px; top:9px; width:112px; height:17px; ">병실검색조건 :</caption>
  365. <select1 id="cmb_rmsrch" ref="/root/send/rmspecref" class="combo_search" appearance="minimal" style="left:125px; top:8px; width:100px; height:19px; ">
  366. <choices>
  367. <item>
  368. <label>진료과</label>
  369. <value>1</value>
  370. </item>
  371. <item>
  372. <label>병동</label>
  373. <value>2</value>
  374. </item>
  375. <item>
  376. <label>빈병상</label>
  377. <value>0</value>
  378. </item>
  379. </choices>
  380. <script type="javascript" ev:event="xforms-value-changed">
  381. <![CDATA[
  382. var rmchoi = model.getValue("/root/send/rmspecref");
  383. if( rmchoi == '1' ){ //진료과
  384. cmb_orddept.visible = true;
  385. cmb_ward.visible = false;
  386. cmb_search.visible = false;
  387. }else if( rmchoi == '2' ){ //병동
  388. cmb_orddept.visible = false;
  389. cmb_ward.visible = true;
  390. cmb_search.visible = false;
  391. }else if( rmchoi == '0' ) { // 빈병상
  392. cmb_orddept.visible = false;
  393. cmb_ward.visible = false;
  394. cmb_search.visible = true;
  395. }
  396. model.refresh();
  397. ]]>
  398. </script>
  399. </select1>
  400. <select1 id="cmb_ward" ref="/root/send/wardcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:228px; top:8px; width:165px; height:19px; ">
  401. <choices>
  402. <itemset nodeset="/root/hidden/init/wardcd">
  403. <label ref="nm"/>
  404. <value ref="cd"/>
  405. </itemset>
  406. </choices>
  407. <script type="javascript" ev:event="xforms-select">
  408. <![CDATA[
  409. fQueryBedRef();
  410. ]]>
  411. </script>
  412. </select1>
  413. <select id="checkbox1" ref="/root/send/otherdeptyn" overflow="visible" appearance="full" style="left:860px; top:9px; width:100px; height:20px; border-style:none; ">
  414. <choices>
  415. <item>
  416. <label>타과병상신청</label>
  417. <value>Y</value>
  418. </item>
  419. </choices>
  420. <script type="javascript" ev:event="xforms-value-changed">
  421. <![CDATA[
  422. var checkyn = model.getValue("/root/send/otherdeptyn");
  423. if( checkyn == 'Y' ){
  424. cmb_rmsrch.disabled = false;
  425. cmb_orddept.disabled = false;
  426. cmb_ward.disabled = false;
  427. }else{
  428. cmb_rmsrch.disabled = true;
  429. cmb_orddept.disabled = true;
  430. cmb_ward.disabled = true;
  431. }
  432. cmb_rmsrch.refresh();
  433. cmb_orddept.refresh();
  434. cmb_ward.refresh();
  435. ]]>
  436. </script>
  437. </select>
  438. <select1 id="cmb_search" ref="/root/send/search" class="combo_search" visibility="hidden" appearance="minimal" style="left:228px; top:8px; width:222px; height:19px; ">
  439. <choices>
  440. <item>
  441. <label>-</label>
  442. <value>A</value>
  443. </item>
  444. <item>
  445. <label>응급의료센터,임상시험센터 제외</label>
  446. <value>E</value>
  447. </item>
  448. </choices>
  449. <script type="javascript" ev:event="xforms-select">
  450. <![CDATA[
  451. fQueryBedRef();
  452. ]]>
  453. </script>
  454. </select1>
  455. <select id="checkbox2" ref="/root/send/budogubunyn" visibility="hidden" overflow="visible" appearance="full" style="left:735px; top:9px; width:120px; height:20px; border-style:none; ">
  456. <choices>
  457. <item>
  458. <label>부도구분표시여부</label>
  459. <value>Y</value>
  460. </item>
  461. </choices>
  462. </select>
  463. </group>
  464. <datagrid id="grd_bedspec" nodeset="/root/main/bedlist/grdbedspec" class="datagrid2" caption="건물^병동^병실(인실)^병실(인실)^병상^병상2^성별^등급^병실차액^형태^빈병상^상태^환자정보(표시명/나이/성별)^HOLD^재원진료과^진료과^부진료과1^부진료과2^부진료과3^부진료과4^부진료과5^O2^Suction^부도여부^참고사항^시작일자^종료일자" colsep="^" colwidth="55, 110, 45, 26, 77, 77, 40, 145, 66, 90, 54, 70, 170, 150, 140, 140, 100, 100, 100, 100, 100, 100, 100, 60, 170, 90, 90" dataheight="32" explorerbar="sort" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" selectionmode="listbox" tooltip="true" navindex="1" style="left:0px; top:64px; width:1050px; height:586px; ">
  465. <col disabled="true" ref="building" type="combo" visibility="hidden" style="text-align:center; ">
  466. <choices>
  467. <item>
  468. <label>본관</label>
  469. <value>M</value>
  470. </item>
  471. <item>
  472. <label>별관</label>
  473. <value>S</value>
  474. </item>
  475. <item>
  476. <label>1동</label>
  477. <value>A</value>
  478. </item>
  479. <item>
  480. <label>2동</label>
  481. <value>B</value>
  482. </item>
  483. <item>
  484. <label>3동</label>
  485. <value>C</value>
  486. </item>
  487. </choices>
  488. </col>
  489. <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
  490. <!-- JHP, 20090306, 다시 병동 조회해오는걸로 수정 -->
  491. <choices>
  492. <itemset nodeset="/root/hidden/init/wardcd">
  493. <label ref="nm"/>
  494. <value ref="cd"/>
  495. </itemset>
  496. </choices>
  497. <!--
  498. <choices>
  499. <itemset nodeset="/root/hidden/init/wardcd">
  500. <label ref="nm"/>
  501. <value ref="cd"/>
  502. </itemset>
  503. </choices>-->
  504. </col>
  505. <col disabled="true" ref="roomcd" style="text-align:center; "/>
  506. <col disabled="true" ref="bedcnt" style="text-align:center; "/>
  507. <col ref="bednm" style="text-align:center; "/>
  508. <col disabled="true" ref="bedcd" type="combo" visibility="hidden">
  509. <choices>
  510. <itemset nodeset="/root/hidden/init/bedcd">
  511. <label ref="nm"/>
  512. <value ref="cd"/>
  513. </itemset>
  514. </choices>
  515. </col>
  516. <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
  517. <choices>
  518. <itemset nodeset="/root/init/P0391list/P0391">
  519. <label ref="cdnm"/>
  520. <value ref="cdid"/>
  521. </itemset>
  522. </choices>
  523. </col>
  524. <col disabled="true" ref="roomgrdecd" type="combo" style="text-align:left; padding-left:5; ">
  525. <choices>
  526. <itemset nodeset="/root/hidden/init/roomgrdecd">
  527. <label ref="nm"/>
  528. <value ref="cd"/>
  529. </itemset>
  530. </choices>
  531. </col>
  532. <col disabled="true" ref="roomgrdecd" type="combo" format="#,###" style="text-align:right; padding-right:5; ">
  533. <choices>
  534. <itemset nodeset="/root/hidden/init/roomgrdecd">
  535. <label ref="cdamt"/>
  536. <value ref="cd"/>
  537. </itemset>
  538. </choices>
  539. </col>
  540. <col disabled="true" ref="roomtypecd" type="combo" style="text-align:center; ">
  541. <choices>
  542. <itemset nodeset="/root/init/P0026list/P0026">
  543. <label ref="cdnm"/>
  544. <value ref="cdid"/>
  545. </itemset>
  546. </choices>
  547. </col>
  548. <col ref="emptycheck" visibility="hidden"/>
  549. <col ref="emptykind" style="text-align:center; "/>
  550. <col ref="patinfo" style="text-align:left; padding-left:5; "/>
  551. <col ref="holdmsg" type="input" style="text-align:center; "/>
  552. <col ref="patorddeptnm" style="padding-left:5; "/>
  553. <col disabled="true" ref="orddeptcd" style="padding-left:5; "/>
  554. <col disabled="true" ref="suborddeptcd1" visibility="visible"/>
  555. <col disabled="true" ref="suborddeptcd2" visibility="visible"/>
  556. <col disabled="true" ref="suborddeptcd3" visibility="visible"/>
  557. <col disabled="true" ref="suborddeptcd4" visibility="visible"/>
  558. <col disabled="true" ref="suborddeptcd5" visibility="visible"/>
  559. <col disabled="true" ref="oxyyn" type="combo" visibility="hidden">
  560. <choices>
  561. <itemset nodeset="/root/init/P0325list/P0325">
  562. <label ref="cdnm"/>
  563. <value ref="cdid"/>
  564. </itemset>
  565. </choices>
  566. </col>
  567. <col disabled="true" ref="suctyn" type="combo" visibility="hidden">
  568. <choices>
  569. <itemset nodeset="/root/init/P0325list/P0325">
  570. <label ref="cdnm"/>
  571. <value ref="cdid"/>
  572. </itemset>
  573. </choices>
  574. </col>
  575. <col disabled="true" ref="budogubun" type="combo" style="text-align:center; ">
  576. <choices>
  577. <item>
  578. <label>부도</label>
  579. <value>N</value>
  580. </item>
  581. <item>
  582. <label>정상</label>
  583. <value>Y</value>
  584. </item>
  585. </choices>
  586. </col>
  587. <col disabled="true" ref="bedrem" type="input"/>
  588. <col autonext="false" disabled="true" ref="fromdd" type="inputdate" visibility="hidden"/>
  589. <col autonext="false" disabled="true" ref="todd" type="inputdate" visibility="hidden"/>
  590. <script type="javascript" ev:event="ondblclick">
  591. <![CDATA[
  592. fConfirm();
  593. ]]>
  594. </script>
  595. <script type="javascript" ev:event="onaftersort">
  596. <![CDATA[
  597. grd_bedspec.gridToInstance();
  598. ]]>
  599. </script>
  600. <script type="javascript" ev:event="xforms-value-changed">
  601. <![CDATA[
  602. // 원무공통코드에 등록되어있는 부서인지 조회
  603. var cnt = getNodesetCount("/root/init/PAM/PK116list/PK116[cdid='" + getUserInfo("dutplcecd") + "']");
  604. // 존재하지 않으면 false를 리턴
  605. if (cnt < 1) {
  606. messageBox("HOLD 메세지 저장권한이 없습니다. ", "E");
  607. } else {
  608. // HOLD 메세지 수정 시 pam.pmbmbedm.holdmsg 반영
  609. if (grd_bedspec.row > 0 && grd_bedspec.col == grd_bedspec.colRef("holdmsg")) {
  610. model.removeNodeset("/root/send/updateData/datalist");
  611. model.makeNode("/root/send/updateData/datalist");
  612. model.setValue("/root/send/updateData/datalist", grd_bedspec.getUpdateData());
  613. if (submit("TXPMB00303")) {
  614. grd_bedspec.clearStatus();
  615. alert("저장되었습니다.");
  616. } else {
  617. alert("저장 시 오류가 발생되었습니다.");
  618. }
  619. }
  620. }
  621. ]]>
  622. </script>
  623. <script type="javascript" ev:event="onclick">
  624. <![CDATA[
  625. if (grd_bedspec.row > 0 && grd_bedspec.col == grd_bedspec.colRef("holdmsg")) {
  626. grd_bedspec.editCell();
  627. }
  628. ]]>
  629. </script>
  630. </datagrid>
  631. <shape id="rectangle1" appearance="rectangle" style="left:165px; top:40px; width:15px; height:15px; background-color:#f7a08b; "/>
  632. <shape id="rectangle2" appearance="rectangle" style="left:90px; top:40px; width:15px; height:15px; background-color:#ffe79d; "/>
  633. <caption id="caption3" style="left:110px; top:40px; width:45px; height:20px; ">빈병상</caption>
  634. <caption id="caption4" style="left:185px; top:40px; width:414px; height:20px; ">부도처리병상 (2일이상 연속으로 입원결정 후 실제 입원처리 되지않은 경우)</caption>
  635. <button id="button1" class="btn2_letter4" style="left:980px; top:40px; width:64px; height:19px; ">
  636. <caption>엑셀저장</caption>
  637. <script type="javascript" ev:event="DOMActivate">
  638. <![CDATA[
  639. if (grd_bedspec.rows == 1) return;
  640. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  641. if (fileName != ""){
  642. grd_bedspec.saveExcel(fileName, "빈병상현황", true, true, "", "", true);
  643. }
  644. ]]>
  645. </script>
  646. </button>
  647. </group>
  648. <group id="group1" scroll="auto" style="left:0px; top:660px; width:1070px; height:30px; ">
  649. <button id="btn_confirm" class="btn4_letter2" style="left:935px; top:5px; width:56px; height:22px; ">
  650. <caption>확인</caption>
  651. <script type="javascript" ev:event="DOMActivate">
  652. <![CDATA[
  653. fConfirm();
  654. ]]>
  655. </script>
  656. </button>
  657. <button id="btn_cancel" class="btn4_letter2" style="left:994px; top:5px; width:56px; height:22px; ">
  658. <caption>취소</caption>
  659. <script type="javascript" ev:event="DOMActivate">
  660. <![CDATA[
  661. window.close();
  662. ]]>
  663. </script>
  664. </button>
  665. </group>
  666. </xhtml:body>
  667. </xhtml:html>