SMMNR02400_중증도및위험사정분류도구관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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. <main>
  10. <cond>
  11. <clsflag/>
  12. <recflag>1</recflag>
  13. <prestdt/>
  14. </cond>
  15. <detlgrup>
  16. <detlgruplist>
  17. <stat/>
  18. <clstlcd/>
  19. <hngnm/>
  20. <cnfmyn/>
  21. <timsinptyn/>
  22. <cmtinptyn/>
  23. <inptchkflag/>
  24. <engnm/>
  25. <desccnts/>
  26. <deptcd/>
  27. <refseq/>
  28. <supcd/>
  29. <todd/>
  30. <depth/>
  31. <grupflag/>
  32. <clsflag/>
  33. <recflag/>
  34. <sortseq/>
  35. <desccnts/>
  36. <basepnt/>
  37. </detlgruplist>
  38. </detlgrup>
  39. <lrggrup>
  40. <lrggruplist>
  41. <hngnm/>
  42. <clstlcd/>
  43. <grupflag/>
  44. </lrggruplist>
  45. </lrggrup>
  46. </main>
  47. <send/>
  48. <hidden>
  49. <detlgrup_sameinflevl_popmenu>
  50. <menu>
  51. <name>1차분류추가</name>
  52. <func>fAddRowLevelOne</func>
  53. </menu>
  54. <menu>
  55. <name>2차분류추가</name>
  56. <func>fAddRowLevelTwo</func>
  57. </menu>
  58. </detlgrup_sameinflevl_popmenu>
  59. <main/>
  60. </hidden>
  61. <asd/>
  62. </root>
  63. </instance>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. rdo_recflag.value="1";
  67. fShowSearchCombo(rdo_recflag.value, 'caption3', 'cmb_clsflag1', 'cmb_clsflag2');
  68. fSearch();
  69. ]]>
  70. </script>
  71. <!-- 중증도분류도구조회 -->
  72. <submission id="TRMNR02404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detlgrup"/>
  73. <!-- 중증도분류도구저장 -->
  74. <submission id="TXMNR02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detlgrup"/>
  75. </model>
  76. <!-- 중증도공통스크립트 -->
  77. <script type="javascript" src="../../../emr/carerecweb/js/SerDiag.js"/>
  78. <!-- 중증도분류도구에서사용되는스크립트 -->
  79. <script type="javascript" src="../../../emr/carerecweb/js/SMMNR024.js"/>
  80. <!-- 개발공통스크립트 -->
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. </xhtml:head>
  85. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  86. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  87. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:320px; height:13px; ">중증도 및 위험사정 분류도구 관리</caption>
  88. </group>
  89. <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:752px; ">
  90. <!-- 조회영역시작 -->
  91. <group id="grp_sea" style="left:1px; top:0px; width:1194px; height:35px; vertical-align:top; ">
  92. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; ">3</shape>
  93. <caption id="caption2" class="search_name" style="left:11px; top:9px; width:71px; height:17px; ">종 류 :</caption>
  94. <select1 id="rdo_recflag" ref="/root/main/cond/recflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:85px; top:9px; width:250px; height:19px; border-style:none; ">
  95. <choices>
  96. <item>
  97. <label>중증도</label>
  98. <value>1</value>
  99. </item>
  100. <item>
  101. <label>낙상 위험사정</label>
  102. <value>2</value>
  103. </item>
  104. <item>
  105. <label>욕창 위험사정</label>
  106. <value>3</value>
  107. </item>
  108. </choices>
  109. <script type="javascript" ev:event="xforms-value-changed">
  110. <![CDATA[
  111. fShowSearchCombo(rdo_recflag.value, 'caption3', 'cmb_clsflag1', 'cmb_clsflag2');
  112. fSearch();
  113. ]]>
  114. </script>
  115. </select1>
  116. <caption id="caption3" class="search_name" style="left:361px; top:9px; width:72px; height:17px; ">분 류 :</caption>
  117. <!-- 종류라디오버튼에서 중증도선택했을 때 보여줄 분류콤보 -->
  118. <select1 id="cmb_clsflag1" ref="/root/main/cond/clsflag" class="combo_search" appearance="minimal" style="left:436px; top:8px; width:109px; height:19px; ">
  119. <choices>
  120. <item>
  121. <label>일반병동</label>
  122. <value>1</value>
  123. </item>
  124. <item>
  125. <label>신생아 ICU</label>
  126. <value>2</value>
  127. </item>
  128. <item>
  129. <label>혈액투석</label>
  130. <value>3</value>
  131. </item>
  132. <item>
  133. <label>중환자실</label>
  134. <value>4</value>
  135. </item>
  136. <item>
  137. <label>정신과병동</label>
  138. <value>5</value>
  139. </item>
  140. </choices>
  141. <script type="javascript" ev:event="xforms-value-changed">
  142. <![CDATA[
  143. fSearch();
  144. ]]>
  145. </script>
  146. </select1>
  147. <!-- 종류라디오버튼에서 낙상선택했을 때 보여줄 분류콤보 -->
  148. <select1 id="cmb_clsflag2" ref="/root/main/cond/clsflag" class="combo_search" appearance="minimal" style="left:436px; top:8px; width:109px; height:19px; ">
  149. <choices>
  150. <item>
  151. <!-- 낙상-아동 -> Humpty Dumpty Scale 변경 (2014.11.10)-->
  152. <label>Humpty Dumpty Scale</label>
  153. <value>1</value>
  154. </item>
  155. <item>
  156. <!-- 낙상-성인 -> Morse Scale 변경 (2011.03.17 ahn)-->
  157. <label>Morse Scale</label>
  158. <value>2</value>
  159. </item>
  160. </choices>
  161. <script type="javascript" ev:event="xforms-value-changed">
  162. <![CDATA[
  163. fSearch();
  164. ]]>
  165. </script>
  166. </select1>
  167. <caption id="caption4" class="search_name" style="left:559px; top:9px; width:86px; height:17px; ">기 준 일 :</caption>
  168. <input id="input5" ref="/root/main/cond/prestdt" class="input_search" inputtype="date" style="left:645px; top:8px; width:85px; height:19px; ">
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. fSearch();
  172. ]]>
  173. </script>
  174. </input>
  175. <line id="line13" class="line_4" style="x1:735px; y1:7px; x2:735px; y2:29px; "/>
  176. <button id="button1" class="btn1_letter2" style="left:740px; top:7px; width:56px; height:22px; ">
  177. <caption>조회</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. fSearch();
  181. ]]>
  182. </script>
  183. </button>
  184. <button id="button2" class="btn1_letter6" style="left:799px; top:7px; width:104px; height:22px; ">
  185. <caption>1차분류추가</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. fAddRowLevelOne();
  189. //fAddSameLevlItemButton();
  190. ]]>
  191. </script>
  192. </button>
  193. <button id="button7" class="btn1_letter6" style="left:906px; top:7px; width:104px; height:22px; ">
  194. <caption>2차분류추가</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. fAddRowLevelTwo();
  198. //fAddInfLevlItem();
  199. ]]>
  200. </script>
  201. </button>
  202. <button id="button8" class="btn1_letter2" style="left:1013px; top:7px; width:56px; height:22px; ">
  203. <caption>펼침</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. fOpenGroup();
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="button9" class="btn1_letter2" style="left:1072px; top:7px; width:56px; height:22px; ">
  211. <caption>닫침</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. fCloseGroup();
  215. ]]>
  216. </script>
  217. </button>
  218. <button id="button10" class="btn1_letter2" style="left:1131px; top:7px; width:56px; height:22px; ">
  219. <caption>저장</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. fSave();
  223. ]]>
  224. </script>
  225. </button>
  226. </group>
  227. <!-- 조회영역종료 -->
  228. <!-- 그리드시작 -->
  229. <line id="line1" class="line_1" style="x1:1px; y1:37px; x2:1194px; y2:37px; "/>
  230. <datagrid id="grd_detlgrup" nodeset="/root/main/detlgrup/detlgruplist" visibility="visible" autoresize="true" caption="상태^분류코드^분류도구명^설명^점수^확인Y/N^횟수Y/N^서술Y/N^필수입력^정렬순서^시작일자^종료일자^영문이름^용도설명^부서코드^정렬^상위코드^종료일자^depth^grupflag^분류구분^기록구분" colsep="^" colwidth="40, 67, 232, 292, 42, 55, 55, 55, 55, 62, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:42px; width:1195px; height:708px; ">
  231. <col disabled="true" ref="stat" visibility="hidden"/>
  232. <col disabled="true" ref="clstlcd" style="text-align:center; "/>
  233. <col disabled="true" imemode="hangul" ref="hngnm" type="input" style="text-align:left; "/>
  234. <col imemode="hangul" ref="desccnts" type="input" style="text-align:left; "/>
  235. <col disabled="true" imemode="hangul" ref="basepnt" type="input" maxlength="3" style="text-align:center; "/>
  236. <col disabled="true" ref="cnfmyn" type="combo" style="text-align:center; ">
  237. <choices>
  238. <item>
  239. <label>Y</label>
  240. <value>Y</value>
  241. </item>
  242. <item>
  243. <label>N</label>
  244. <value>N</value>
  245. </item>
  246. </choices>
  247. </col>
  248. <col ref="timsinptyn" type="combo" style="text-align:center; ">
  249. <choices>
  250. <item>
  251. <label>Y</label>
  252. <value>Y</value>
  253. </item>
  254. <item>
  255. <label>N</label>
  256. <value>N</value>
  257. </item>
  258. </choices>
  259. </col>
  260. <col ref="cmtinptyn" type="combo" style="text-align:center; ">
  261. <choices>
  262. <item>
  263. <label>Y</label>
  264. <value>Y</value>
  265. </item>
  266. <item>
  267. <label>N</label>
  268. <value>N</value>
  269. </item>
  270. </choices>
  271. </col>
  272. <col ref="inptchkflag" type="combo" style="text-align:center; ">
  273. <choices>
  274. <item>
  275. <label>Y</label>
  276. <value>Y</value>
  277. </item>
  278. <item>
  279. <label>N</label>
  280. <value>N</value>
  281. </item>
  282. </choices>
  283. </col>
  284. <col ref="sortseq" type="input" maxlength="2" style="text-align:center; "/>
  285. <col disabled="true" ref="fromdd" type="inputdate" style="text-align:center; "/>
  286. <col ref="todd" type="inputdate" style="text-align:center; "/>
  287. <col ref="engnm" visibility="hidden"/>
  288. <col ref="desccnts" visibility="hidden"/>
  289. <col ref="deptcd" visibility="hidden"/>
  290. <col ref="refseq" visibility="hidden"/>
  291. <col ref="supcd" visibility="hidden"/>
  292. <col ref="depth" visibility="hidden"/>
  293. <col ref="grupflag" visibility="hidden"/>
  294. <col ref="clsflag" visibility="hidden"/>
  295. <col ref="recflag" visibility="hidden"/>
  296. <script type="javascript" ev:event="DOMFocusIn">
  297. <![CDATA[
  298. if(event.button == 3){ // RButton
  299. window.setPopupMenu(true, "/root/hidden/detlgrup_samelevl_popmenu/menu", "name", "func", false);
  300. }
  301. ]]>
  302. </script>
  303. <script type="javascript" ev:event="DOMFocusOut">
  304. <![CDATA[
  305. window.setPopupMenu(false);
  306. ]]>
  307. </script>
  308. <script type="javascript" ev:event="xforms-value-changed">
  309. <![CDATA[
  310. //그리드 변경되면 상태값을 변경한다.
  311. var curRow = grd_detlgrup.row;
  312. if(model.getValue('/root/main/detlgrup/detlgruplist[' + curRow + ']/stat') != 'i'){
  313. model.setValue('/root/main/detlgrup/detlgruplist[' + curRow + ']/stat', 'u');
  314. }
  315. ]]>
  316. </script>
  317. <script type="javascript" ev:event="onclick">
  318. <![CDATA[
  319. //상위분류를 선택하면 트리를 닫는다.
  320. var iRow = grd_detlgrup.row;
  321. if(model.getValue("/root/main/detlgrup/detlgruplist["+ iRow +"]/depth") == '1') {
  322. for(var i = iRow+1; i < grd_detlgrup.rows; i++){
  323. if(model.getValue("/root/main/detlgrup/detlgruplist["+ iRow +"]/depth") != model.getValue("/root/main/detlgrup/detlgruplist["+ i +"]/depth")) {
  324. if(grd_detlgrup.rowhidden(i)==true){
  325. grd_detlgrup.rowhidden(i)=false;
  326. }else {
  327. grd_detlgrup.rowhidden(i)=true;
  328. }
  329. } else {
  330. break;
  331. }
  332. }
  333. } else {
  334. return;
  335. }
  336. ]]>
  337. </script>
  338. </datagrid>
  339. <!-- 그리드종료 -->
  340. </group>
  341. </xhtml:body>
  342. </xhtml:html>