SMMNP06100_수술실 전광판관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>수술 진행현황(전광판관리)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <oppatlist>
  11. <oppatinfo>
  12. <oproomcd/>
  13. <opfromtmcd/>
  14. <depthngnm/>
  15. <roomcd/>
  16. <patnm/>
  17. <sexage/>
  18. <pid/>
  19. <opstatcd/>
  20. <patposplcecd/>
  21. <opopenflag/>
  22. <instcd/>
  23. <oprsrvno/>
  24. <ophistno/>
  25. <updflag/>
  26. </oppatinfo>
  27. </oppatlist>
  28. <cond>
  29. <opdd/>
  30. <oproomcd/>
  31. <opflag/>
  32. <opopenflag>Y</opopenflag>
  33. <orddeptcd/>
  34. <pid/>
  35. <hngnm/>
  36. <gndrage/>
  37. <rrgstno/>
  38. </cond>
  39. <rghtref>
  40. <rghtreflist>
  41. <pid/>
  42. <hngnm/>
  43. <gndrage/>
  44. <rrgstno/>
  45. </rghtreflist>
  46. </rghtref>
  47. <patinfo>
  48. <patinfolist/>
  49. </patinfo>
  50. </main>
  51. <send>
  52. <reqdata/>
  53. <savedata>
  54. <oppatinfo/>
  55. </savedata>
  56. </send>
  57. <init>
  58. <opstatlist>
  59. <opstatinfo>
  60. <opstatcd/>
  61. <opstatnm/>
  62. </opstatinfo>
  63. </opstatlist>
  64. <patposplcecdlist>
  65. <patposplcecdinfo>
  66. <cd/>
  67. <nm/>
  68. </patposplcecdinfo>
  69. </patposplcecdlist>
  70. <M0021list>
  71. <M0021>
  72. <cdid/>
  73. <cdnm/>
  74. </M0021>
  75. </M0021list>
  76. <omcdlist>
  77. <omcd>
  78. <oproomnm/>
  79. <oproomcd/>
  80. </omcd>
  81. </omcdlist>
  82. </init>
  83. <hidden>
  84. <orddeptlist>
  85. <dept>
  86. <depthngnm/>
  87. <deptcd/>
  88. </dept>
  89. </orddeptlist>
  90. <tempM0021/>
  91. </hidden>
  92. </root>
  93. </instance>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. fInitialize();
  97. ]]>
  98. </script>
  99. <submission id="TRMNP01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/oppatlist"/>
  100. <submission id="TXMNP01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/oppatlist"/>
  101. <submission id="TRMNP01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/opstatlist"/>
  102. <!--
  103. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  104. -->
  105. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  106. <submission id="TRMNP06001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/omcdlist"/>
  107. <submission id="TRMNI00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rghtref"/>
  108. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  109. </model>
  110. <script type="javascript" src="../../../emr/opanstweb/js/SMMNP06100.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  114. <!--
  115. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  116. -->
  117. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  118. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  119. </xhtml:head>
  120. <xhtml:body guideline="1,1196;2,752;1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  121. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  122. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:191px; height:14px; ">수술 진행현황(전광판관리)</caption>
  123. </group>
  124. <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:1195px; height:735px; ">
  125. <group id="group1" style="left:0px; top:5px; width:1194px; height:60px; vertical-align:top; ">
  126. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  127. <caption id="caption1" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">수술일자 :</caption>
  128. <line id="line13" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:32px; "/>
  129. <input id="ipt_dlivdd" ref="/root/main/cond/opdd" class="output" navindex="2" inputtype="date" style="left:105px; top:9px; width:100px; height:19px; ">
  130. <script type="javascript" ev:event="xforms-value-changed">
  131. <![CDATA[
  132. fGetOpPatList();
  133. ]]>
  134. </script>
  135. </input>
  136. <button id="btn_select" class="btn1_letter2" navindex="13" style="left:1127px; top:10px; width:56px; height:22px; ">
  137. <caption>조회</caption>
  138. <script type="javascript" ev:event="onclick">
  139. <![CDATA[
  140. fGetOpPatList();
  141. ]]>
  142. </script>
  143. </button>
  144. <select1 id="cmb_opopenflag" ref="/root/main/cond/opopenflag" class="combo_default" appearance="minimal" itemcount="20" style="left:105px; top:35px; width:100px; height:19px; ">
  145. <choices>
  146. <item>
  147. <label>전체</label>
  148. <value>ALL</value>
  149. </item>
  150. <item>
  151. <label>공개</label>
  152. <value>Y</value>
  153. </item>
  154. <item>
  155. <label>비공개</label>
  156. <value>N</value>
  157. </item>
  158. </choices>
  159. <script type="javascript" ev:event="xforms-value-changed">
  160. <![CDATA[
  161. fGetOpPatList();
  162. ]]>
  163. </script>
  164. </select1>
  165. <caption id="caption2" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">공개여부 :</caption>
  166. <caption id="caption15" class="search_name" style="left:320px; top:35px; width:90px; height:17px; ">집 도 과 :</caption>
  167. <select1 id="combo5" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:410px; top:35px; width:80px; height:19px; ">
  168. <choices>
  169. <itemset nodeset="/root/hidden/orddeptlist/dept">
  170. <label ref="depthngnm"/>
  171. <value ref="deptcd"/>
  172. </itemset>
  173. </choices>
  174. <script type="javascript" ev:event="xforms-value-changed">
  175. <![CDATA[
  176. fGetOpPatList();
  177. // model.setValue("/root/main/cond/orddeptcd", model.getValue("/root/main/cond/orddept"));
  178. // fSelectPos();
  179. //
  180. // if( model.getValue("/root/main/cond/orddept") == "" ) {
  181. // model.resetInstanceNode("/root/init/drlist");
  182. // model.refresh();
  183. // }else {
  184. // model.copyNode("/root/send/reqdata", "/root/main/cond");
  185. // submit("TRMNP00101");
  186. //
  187. // addComboItem("cmb_drlist", "전 체", "", "above" );
  188. // }
  189. ]]>
  190. </script>
  191. </select1>
  192. <select1 id="cmb_oproomcd" ref="/root/main/cond/oproomcd" appearance="minimal" style="left:410px; top:10px; width:80px; height:19px; ">
  193. <choices>
  194. <itemset nodeset="root/init/omcdlist/">
  195. <label ref="oproomnm"/>
  196. <value ref="oproomcd"/>
  197. </itemset>
  198. </choices>
  199. <script type="javascript" ev:event="xforms-value-changed">
  200. <![CDATA[
  201. fGetOpPatList();
  202. ]]>
  203. </script>
  204. </select1>
  205. <caption id="caption14" class="search_name" style="left:320px; top:10px; width:90px; height:17px; ">수 술 방 :</caption>
  206. <caption id="caption11" class="search_name" style="left:580px; top:10px; width:81px; height:17px; ">수술진행:</caption>
  207. <select1 id="rdo_opflag" ref="/root/main/cond/opflag" class="radio_search" navindex="15" overflow="visible" appearance="full" cellspacing="4" cols="6" style="left:670px; top:10px; width:290px; height:19px; ">
  208. <choices>
  209. <item>
  210. <label>전체</label>
  211. <value/>
  212. </item>
  213. <item>
  214. <label>예정</label>
  215. <value>20</value>
  216. </item>
  217. <item>
  218. <label>대기</label>
  219. <value>30</value>
  220. </item>
  221. <item>
  222. <label>수술</label>
  223. <value>40</value>
  224. </item>
  225. <item>
  226. <label>회복</label>
  227. <value>60</value>
  228. </item>
  229. <item>
  230. <label>종료</label>
  231. <value>50</value>
  232. </item>
  233. </choices>
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. fGetOpPatList(); // 수술일자변경시 하단리스트 재조회
  237. ]]>
  238. </script>
  239. </select1>
  240. <button id="button16" class="icon_search" navindex="6" style="left:766px; top:37px; width:16px; height:16px; ">
  241. <caption/>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. fSearchPatInfo("1");
  245. ]]>
  246. </script>
  247. </button>
  248. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_default" style="left:670px; top:35px; width:91px; height:19px; ">
  249. <script type="javascript" ev:event="onkeyup">
  250. <![CDATA[
  251. if(event.keyCode == "13") {
  252. setInputNodeCurText();
  253. fpidref();
  254. }
  255. ]]>
  256. </script>
  257. </input>
  258. <output id="opt_rrgstno" ref="/root/main/cond/rrgstno" class="output_fix" style="left:933px; top:35px; width:100px; height:19px; "/>
  259. <output id="opt_hngnm" ref="/root/main/cond/hngnm" class="output_fix" style="left:787px; top:35px; width:95px; height:19px; "/>
  260. <output id="opt_gndrage" ref="/root/main/cond/gndrage" class="output_fix" style="left:885px; top:35px; width:45px; height:19px; "/>
  261. <caption id="caption7" class="search_name" style="left:580px; top:35px; width:81px; height:17px; ">등록번호:</caption>
  262. </group>
  263. <line id="line5" class="line_1" style="x1:1px; y1:95px; x2:1193px; y2:95px; "/>
  264. <caption id="caption3" class="tit_2" style="left:5px; top:75px; width:131px; height:13px; vertical-align:middle; ">수술환자 리스트</caption>
  265. <datagrid id="grd_partrtnlist" nodeset="/root/main/oppatlist/oppatinfo" visibility="visible" caption="수술방^예약시간^집도과^병실^환자명^성별^등록번호^진행상태^환자이동위치^공개^update" colsep="^" colwidth="93, 144, 124, 80, 165, 80, 138, 128, 122, 80, 100, 100, 100, 100" ellipsis="true" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:100px; width:1193px; height:620px; ">
  266. <col ref="oproomcd" style="text-align:center; "/>
  267. <col ref="opfromtmcd" style="text-align:center; "/>
  268. <col ref="depthngnm" style="text-align:center; "/>
  269. <col ref="roomcd" style="text-align:center; "/>
  270. <col ref="patnm" style="text-align:center; "/>
  271. <col ref="sexage" style="text-align:center; "/>
  272. <col ref="pid" style="text-align:center; "/>
  273. <col disabled="false" ref="opstatcd" type="combo" style="text-align:center; ">
  274. <choices>
  275. <item>
  276. <label>예정</label>
  277. <value>20</value>
  278. </item>
  279. <item>
  280. <label>대기</label>
  281. <value>30</value>
  282. </item>
  283. <item>
  284. <label>수술</label>
  285. <value>40</value>
  286. </item>
  287. <item>
  288. <label>종료</label>
  289. <value>50</value>
  290. </item>
  291. <item>
  292. <label>회복</label>
  293. <value>60</value>
  294. </item>
  295. </choices>
  296. </col>
  297. <col disabled="false" ref="patposplcecd" type="combo" style="left:972px; top:23px; width:122px; height:23px; ">
  298. <choices>
  299. <itemset nodeset="/root/code/codeinfo/codelist">
  300. <label ref="cdnm"/>
  301. <value ref="cdid"/>
  302. </itemset>
  303. </choices>
  304. </col>
  305. <col checkvalue="Y,N" ref="opopenflag" type="combo" style="text-align:center; ">
  306. <choices>
  307. <item>
  308. <label>공개</label>
  309. <value>Y</value>
  310. </item>
  311. <item>
  312. <label>비공개</label>
  313. <value>N</value>
  314. </item>
  315. </choices>
  316. </col>
  317. <col ref="instcd" visibility="hidden"/>
  318. <col ref="oprsrvno" visibility="hidden"/>
  319. <col ref="ophistno" visibility="hidden"/>
  320. <col ref="updflag" visibility="hidden"/>
  321. <script type="javascript" ev:event="xforms-value-changed">
  322. <![CDATA[
  323. model.setValue("/root/main/oppatlist/oppatinfo[" + grd_partrtnlist.row + "]/updflag", "1");
  324. //model.setValue("/root/main/oppatlist/oppatinfo[" + grd_partrtnlist.row + "]/opstatcd", model.getValue("/root/main/oppatlist/oppatinfo[" + grd_partrtnlist.row + "]/opstatcd") );
  325. //model.setValue("/root/main/oppatlist/oppatinfo[" + grd_partrtnlist.row + "]/opopenflag", model.getValue("/root/main/oppatlist/oppatinfo[" + grd_partrtnlist.row + "]/opopenflag") );
  326. fnColDisable();
  327. ]]>
  328. </script>
  329. <script type="javascript">
  330. <![CDATA[
  331. //-----------------------------------
  332. // col 변경시
  333. //-----------------------------------
  334. function fnColDisable() {
  335. var pGrd = grd_partrtnlist;
  336. if (pGrd.rows <= 1 || pGrd.row < 0) return;
  337. var colnm = pGrd.colAttribute(pGrd.col,"ref");
  338. // switch (colnm) {
  339. // case "patposplcecd":
  340. stemp = model.getValue("/root/main/oppatlist/oppatinfo[" + pGrd.row + "]/opstatcd");
  341. var stempidx = pGrd.colRef("patposplcecd");
  342. //2008.09.02 taebum 수술진행상태가 readonly 하는 부분 주석처리 함.
  343. pGrd.isReadOnly(pGrd.row,stempidx) = true;
  344. //pGrd.colDisabled(stempidx )= true;
  345. if (stemp >= "50") {
  346. //pGrd.colDisabled(stempidx )= false;
  347. pGrd.isReadOnly(pGrd.row,stempidx) = false;
  348. //pGrd.cellComboNodeset(pGrd.row, 9) = "/root/hidden/tempM0021/M0021";
  349. }else{
  350. if(stemp == "40"){
  351. model.setValue("/root/main/oppatlist/oppatinfo[" + pGrd.row + "]/patposplcecd", "26");
  352. }else if(stemp == "30"){
  353. model.setValue("/root/main/oppatlist/oppatinfo[" + pGrd.row + "]/patposplcecd", "42");
  354. }else if(stemp == "20"){
  355. model.setValue("/root/main/oppatlist/oppatinfo[" + pGrd.row + "]/patposplcecd", "41");
  356. }else{
  357. model.setValue("/root/main/oppatlist/oppatinfo[" + pGrd.row + "]/patposplcecd", "00");
  358. }
  359. //pGrd.cellComboNodeset(pGrd.row, 9) = "/root/init/M0021list/M0021";
  360. }
  361. pGrd.refresh();
  362. // break;
  363. // }
  364. }
  365. //-----------------------------------
  366. // 조회시
  367. //-----------------------------------
  368. function fnColDisableAll() {
  369. //2008.09.02 taebum 수술진행상태가 readonly 하는 부분 주석처리 함.
  370. /*
  371. var pGrd = grd_partrtnlist;
  372. if (pGrd.rows <= 1 ) return;
  373. for (var row= 1;row<pGrd.rows;row++) {
  374. var stemp = model.getValue("/root/main/oppatlist/oppatinfo[" + row + "]/opstatcd");
  375. var stempidx = pGrd.colRef("patposplcecd");
  376. pGrd.isReadOnly(row,stempidx) = true;
  377. //pGrd.colDisabled(stempidx )= true;
  378. if (stemp >= 50) {
  379. //pGrd.colDisabled(stempidx )= false;
  380. pGrd.isReadOnly(row,stempidx) = false;
  381. }
  382. }
  383. */
  384. }
  385. ]]>
  386. </script>
  387. <script type="javascript" ev:event="oncolchanged">
  388. <![CDATA[
  389. fnColDisable();
  390. ]]>
  391. </script>
  392. </datagrid>
  393. <button id="btn_update" class="btn2_letter2" style="left:1135px; top:70px; width:42px; height:19px; ">
  394. <caption>수정</caption>
  395. <script type="javascript" ev:event="onclick">
  396. <![CDATA[
  397. fClickUpdate();
  398. ]]>
  399. </script>
  400. </button>
  401. </group>
  402. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; "/>
  403. <caption id="caption4" style="left:1161px; top:760px; width:30px; height:20px; text-align:right; ">[표]</caption>
  404. </xhtml:body>
  405. </xhtml:html>