SMMNP03200_수술기준자료관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <init/>
  10. <main>
  11. <cond>
  12. <tabflag>O</tabflag>
  13. </cond>
  14. <opstandlist>
  15. <opsortseq/>
  16. <opoutplcecd/>
  17. <opoutplcenm/>
  18. <opdisplaynm/>
  19. <opuseflag/>
  20. <oprecflag/>
  21. <opdisflag/>
  22. <maxseqno/>
  23. <tmpopoutplcecd/>
  24. </opstandlist>
  25. <recstandlist>
  26. <recsortseq/>
  27. <recoutplcecd/>
  28. <recoutplcenm/>
  29. <recdisplaynm/>
  30. <recuseflag/>
  31. <recrecflag/>
  32. <maxseqno/>
  33. <tmprecoutplcecd/>
  34. </recstandlist>
  35. </main>
  36. <send/>
  37. <hidden/>
  38. <temp>
  39. <maxseqno/>
  40. </temp>
  41. </root>
  42. </instance>
  43. <submission id="TRMNP03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/opstandlist"/>
  44. <submission id="TRMNP03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recstandlist"/>
  45. <submission id="TXMNP03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/opstandlist"/>
  46. <submission id="TXMNP03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recstandlist"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. fInit();
  50. ]]>
  51. </script>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  57. <script type="javascript" src="../../../emr/opanstweb/js/SMMNP03200.js"/>
  58. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  59. </xhtml:head>
  60. <xhtml:body pagewidth="570" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  61. <group id="group1" style="left:0px; top:0px; width:535px; height:13px; ">
  62. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">퇴실장소 기준자료 관리</caption>
  63. </group>
  64. <button id="btn_opstand" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:0px; top:19px; width:100px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  65. <caption>수술간호기록</caption>
  66. <toggle case="opstand" ev:event="onclick"/>
  67. <script type="javascript" ev:event="DOMActivate">
  68. <![CDATA[
  69. model.setValue("/root/main/cond/tabflag", "O");
  70. model.setValue("/root/temp/maxseqno", "");
  71. fSearch();
  72. ]]>
  73. </script>
  74. </button>
  75. <button id="btn_recstand" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:100px; top:19px; width:100px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  76. <caption>회복간호기록</caption>
  77. <toggle case="recstand" ev:event="onclick"/>
  78. <script type="javascript" ev:event="DOMActivate">
  79. <![CDATA[
  80. model.setValue("/root/main/cond/tabflag", "R");
  81. model.setValue("/root/temp/maxseqno", "");
  82. fSearch();
  83. ]]>
  84. </script>
  85. </button>
  86. <switch id="switch1" style="left:0px; top:40px; width:537px; height:422px; ">
  87. <case id="opstand" selected="true">
  88. <button id="button3" class="btn5_letter2" style="left:489px; top:5px; width:42px; height:19px; ">
  89. <caption>저장</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. fSave("O");
  93. ]]>
  94. </script>
  95. </button>
  96. <button id="button5" class="btn2_letter3" style="left:433px; top:5px; width:53px; height:19px; ">
  97. <caption>행추가</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. grd_opstandlist.addrow();
  101. var maxseqno = model.getValue("/root/temp/maxseqno");
  102. var opmaxseq = model.getValue("/root/main/opstandlist[" + (grd_opstandlist.rows-2) + "]/maxseqno");
  103. if( maxseqno == "" ) {
  104. model.setValue("/root/temp/maxseqno", parseInt(opmaxseq)+1);
  105. maxseqno =parseInt(opmaxseq)+1;
  106. }else {
  107. model.setValue("/root/temp/maxseqno", parseInt(maxseqno)+1);
  108. maxseqno = parseInt(maxseqno)+1;
  109. }
  110. model.setValue("/root/main/opstandlist[" + (grd_opstandlist.rows-1) + "]/opuseflag", "Y");
  111. model.setValue("/root/main/opstandlist[" + (grd_opstandlist.rows-1) + "]/oprecflag", "U");
  112. model.setValue("/root/main/opstandlist[" + (grd_opstandlist.rows-1) + "]/opsortseq", maxseqno);
  113. model.refresh();
  114. ]]>
  115. </script>
  116. </button>
  117. <datagrid id="grd_opstandlist" nodeset="/root/main/opstandlist" caption="순번^코드^퇴실장소명^전광판명^사용여부^등록여부^전광판등록여부^maxseq^백업코드" colsep="^" colwidth="50, 50, 162, 162, 60, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:535px; height:395px; ">
  118. <col ref="opsortseq" type="input" style="text-align:center; "/>
  119. <col ref="opoutplcecd" type="input" style="text-align:center; "/>
  120. <col imemode="hangul" ref="opoutplcenm" type="input" style="text-align:left; "/>
  121. <col imemode="hangul" ref="opdisplaynm" type="input" style="text-align:left; "/>
  122. <col ref="opuseflag" type="combo" style="text-align:center; ">
  123. <choices>
  124. <item>
  125. <label>사용</label>
  126. <value>Y</value>
  127. </item>
  128. <item>
  129. <label>미사용</label>
  130. <value>N</value>
  131. </item>
  132. </choices>
  133. </col>
  134. <col ref="oprecflag"/>
  135. <col ref="opdisflag"/>
  136. <col ref="maxseqno"/>
  137. <col ref="tmpopoutplcecd"/>
  138. <script type="javascript" ev:event="onaftersort">
  139. <![CDATA[
  140. grd_opstandlist.gridToInstance();
  141. ]]>
  142. </script>
  143. <script type="javascript" ev:event="onendedit">
  144. <![CDATA[
  145. var tmpcdid = model.getValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/tmpopoutplcecd");
  146. var cdid = model.getValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/opoutplcecd");
  147. var row = grd_opstandlist.findRow(cdid, 1, 2, false, false);
  148. if( row != grd_opstandlist.row ) {
  149. messageBox("이미 등록된 코드입니다.", "E000");
  150. model.setValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/opoutplcecd", "");
  151. model.refresh();
  152. return;
  153. }
  154. if( (cdid == "32")||(cdid == "41")|| (cdid == "42")|| (cdid == "43")|| (cdid == "44") ) {
  155. messageBox("사용할 수 없는 코드입니다.!", "E000");
  156. model.setValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/opoutplcecd", "");
  157. return;
  158. }
  159. if( tmpcdid != "" ) {
  160. if( cdid != tmpcdid ) {
  161. messageBox("이미 등록된 코드는 변경하실수 없습니다.", "E000");
  162. model.setValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/opoutplcecd", tmpcdid);
  163. model.refresh();
  164. return;
  165. }
  166. }
  167. ]]>
  168. </script>
  169. </datagrid>
  170. <button id="button6" class="btn2_letter2" style="left:388px; top:5px; width:42px; height:19px; ">
  171. <caption>조회</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. fSearch() ;
  175. ]]>
  176. </script>
  177. </button>
  178. <caption id="caption3" style="left:5px; top:5px; width:280px; height:20px; font-weight:bold; color:#ff0000; vertical-align:middle; ">※ 32, 41, 42, 43, 44번은 등록할 수 없습니다.</caption>
  179. </case>
  180. <case id="recstand">
  181. <datagrid id="grd_recstandlist" nodeset="/root/main/recstandlist" caption="순번^코드^퇴실장소명^전광판명^진행상태^사용여부^등록여부^maxseq^백업코드" colsep="^" colwidth="55, 55, 311, 0, 0, 60, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:535px; height:395px; ">
  182. <col ref="recsortseq" type="input" style="text-align:center; "/>
  183. <col ref="recoutplcecd" type="input" style="text-align:center; "/>
  184. <col imemode="hangul" ref="recoutplcenm" type="input" style="text-align:left; "/>
  185. <col ref="recdisplaynm" type="input" style="text-align:left; "/>
  186. <col ref="recstatcd" type="combo" style="text-align:center; ">
  187. <choices>
  188. <item>
  189. <label>종료</label>
  190. <value>50</value>
  191. </item>
  192. <item>
  193. <label>회복</label>
  194. <value>60</value>
  195. </item>
  196. </choices>
  197. </col>
  198. <col ref="recuseflag" type="combo" style="text-align:center; ">
  199. <choices>
  200. <item>
  201. <label>사용</label>
  202. <value>Y</value>
  203. </item>
  204. <item>
  205. <label>미사용</label>
  206. <value>N</value>
  207. </item>
  208. </choices>
  209. </col>
  210. <col ref="recrecflag"/>
  211. <col ref="maxseqno"/>
  212. <col ref="tmprecoutplcecd"/>
  213. <script type="javascript" ev:event="onaftersort">
  214. <![CDATA[
  215. grd_recstandlist.gridToInstance();
  216. ]]>
  217. </script>
  218. <script type="javascript" ev:event="onendedit">
  219. <![CDATA[
  220. var tmpcdid = model.getValue("/root/main/recstandlist[" + grd_recstandlist.row + "]/tmprecoutplcecd");
  221. var cdid = model.getValue("/root/main/recstandlist[" + grd_recstandlist.row + "]/recoutplcecd");
  222. var row = grd_recstandlist.findRow(cdid, 1, 2, false, false);
  223. if( row != grd_recstandlist.row ) {
  224. messageBox("이미 등록된 코드입니다.", "E000");
  225. model.setValue("/root/main/recstandlist[" + grd_recstandlist.row + "]/recoutplcecd", "");
  226. model.refresh();
  227. return;
  228. }
  229. if( tmpcdid != "" ) {
  230. if( cdid != tmpcdid ) {
  231. messageBox("이미 등록된 코드는 변경하실수 없습니다.", "E000");
  232. model.setValue("/root/main/recstandlist[" + grd_recstandlist.row + "]/recoutplcecd", tmpcdid);
  233. model.refresh();
  234. return;
  235. }
  236. }
  237. ]]>
  238. </script>
  239. </datagrid>
  240. <button id="button4" class="btn2_letter3" style="left:433px; top:5px; width:53px; height:19px; ">
  241. <caption>행추가</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. grd_recstandlist.addrow();
  245. var maxseqno = model.getValue("/root/temp/maxseqno");
  246. var recmaxseq = model.getValue("/root/main/recstandlist[" + (grd_recstandlist.rows-2) + "]/maxseqno");
  247. if( maxseqno == "" ) {
  248. model.setValue("/root/temp/maxseqno", parseInt(recmaxseq)+1);
  249. maxseqno = parseInt(recmaxseq)+1;
  250. }else {
  251. model.setValue("/root/temp/maxseqno", parseInt(maxseqno)+1);
  252. maxseqno = parseInt(maxseqno)+1;
  253. }
  254. model.setValue("/root/main/recstandlist[" + (grd_recstandlist.rows-1) + "]/recsortseq", maxseqno);
  255. model.setValue("/root/main/recstandlist[" + (grd_recstandlist.rows-1) + "]/recuseflag", "Y");
  256. ]]>
  257. </script>
  258. </button>
  259. <button id="button2" class="btn5_letter2" style="left:489px; top:5px; width:42px; height:19px; ">
  260. <caption>저장</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. fSave("R"); // 저장
  264. ]]>
  265. </script>
  266. </button>
  267. <button id="button7" class="btn2_letter2" style="left:388px; top:5px; width:42px; height:19px; ">
  268. <caption>조회</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. fSearch();
  272. ]]>
  273. </script>
  274. </button>
  275. </case>
  276. </switch>
  277. </xhtml:body>
  278. </xhtml:html>