SMABC01800_조혈모세포처리실기준정보관리.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. <lrglist>
  11. <item>
  12. <hsctlrgcd/>
  13. <hsctlrgnm/>
  14. <icd10/>
  15. <testflag/>
  16. </item>
  17. </lrglist>
  18. <mdllist>
  19. <item>
  20. <hsctmdlcd/>
  21. <hsctmdlnm/>
  22. </item>
  23. </mdllist>
  24. </main>
  25. <send>
  26. <data>
  27. <mdldata/>
  28. <lrgdata/>
  29. </data>
  30. <hsctlrgcd/>
  31. <lrggrupcd/>
  32. </send>
  33. <init>
  34. <testflag>
  35. <item>
  36. <cdnm>조혈모세포처리실</cdnm>
  37. <cdid>SC</cdid>
  38. </item>
  39. </testflag>
  40. </init>
  41. <hidden>
  42. <count/>
  43. </hidden>
  44. </root>
  45. </instance>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  50. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  51. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. grd_exptdeptlist.colDisabled(1) = true;
  55. grd_exptdeptlist.colDisabled(2) = true;
  56. grd_voldivlist.colDisabled(1) = true;
  57. grd_voldivlist.colDisabled(2) = true;
  58. cmb_lrggrupcd.select(0); //화면 로딩 시 대분류가 자동으로 진단명이 되도록...
  59. submit("TRABO02101"); //진단명 대분류 조회
  60. //타부서에서는 버튼 비활성화
  61. btn_save.disabled = !checkAuth("X");
  62. model.refresh();
  63. ]]>
  64. </script>
  65. <script type="javascript">
  66. <![CDATA[
  67. /* @group : BMT 진단관리
  68. * @ver : 2009.08.13
  69. * @by : 박상환
  70. * @type : function
  71. * @access : public
  72. * @desc :
  73. * @param : 코드 변경 사항을 저장(추가, 수정 삭제)
  74. */
  75. function fSaveData(){
  76. //대분류, 중분류 코드 변경 사항
  77. model.setValue("/root/send/data/lrgdata", grd_exptdeptlist.getUpdateData());
  78. model.setValue("/root/send/data/mdldata",grd_voldivlist.getUpdateData());
  79. submit("TXABO02101"); //대분류 저장
  80. submit("TXABO02102"); //소분류 저장
  81. submit("TRABO02101"); //대분류 재조회
  82. submit("TRABO02102"); //소분류 재조회
  83. }
  84. ]]>
  85. </script>
  86. <submission id="TRABO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/lrglist"/>
  87. <submission id="TRABO02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mdllist"/>
  88. <submission id="TXABO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/count"/>
  89. <submission id="TXABO02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/count"/>
  90. </model>
  91. </xhtml:head>
  92. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  94. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:335px; height:13px; ">조혈모세포처리실 기준자료관리</caption>
  95. </group>
  96. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1194px; height:744px; ">
  97. <caption id="caption2" class="tit_2" style="left:575px; top:10px; width:144px; height:14px; ">중분류</caption>
  98. <caption id="caption4" class="tit_2" style="left:10px; top:10px; width:144px; height:14px; ">대분류</caption>
  99. <caption id="caption5" class="cell_1" style="left:635px; top:275px; width:85px; height:23px; vertical-align:middle; ">분할코드내역</caption>
  100. <line id="line1" class="line_1" style="x1:570px; y1:25px; x2:1185px; y2:25px; "/>
  101. <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:565px; y2:25px; "/>
  102. <line id="line4" class="line_3" style="x1:5px; y1:742px; x2:1185px; y2:742px; "/>
  103. <datagrid id="grd_exptdeptlist" nodeset="/root/main/lrglist/item" visibility="visible" caption="대분류코드^대분류명" colsep="^" colwidth="110, 428" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:30px; width:560px; height:710px; ">
  104. <col ref="hsctlrgcd" type="input" _key="true"/>
  105. <col ref="hsctlrgnm" type="input"/>
  106. <script type="javascript" ev:event="onclick">
  107. <![CDATA[
  108. if(grd_exptdeptlist.row > 0 && grd_exptdeptlist.col < 3){ //그리드 헤더 제외
  109. model.setValue("/root/send/hsctlrgcd",model.getValue("/root/main/lrglist/item["+ grd_exptdeptlist.row+"]/hsctlrgcd"));
  110. submit("TRABO02102"); //해당 대분류 코드 그룹에 대한 소분류를 조회
  111. }
  112. if(grd_exptdeptlist.col >= 3 && grd_exptdeptlist.col < 4 ){
  113. grd_exptdeptlist.editCell();
  114. model.removeNodeset("/root/main/mdllist/item");
  115. model.refresh();
  116. }
  117. ]]>
  118. </script>
  119. <script type="javascript" ev:event="onaftersort">
  120. <![CDATA[
  121. grd_exptdeptlist.gridToInstance(); //정렬 후 인스턴스 재구성
  122. ]]>
  123. </script>
  124. <script type="javascript" ev:event="onbuttonclick">
  125. <![CDATA[
  126. fExeDiagPopup();
  127. model.refresh();
  128. ; ]]>
  129. </script>
  130. </datagrid>
  131. <datagrid id="grd_voldivlist" nodeset="/root/main/mdllist/item" visibility="visible" caption="중분류코드^중분류명" colsep="^" colwidth="100, 467" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:570px; top:30px; width:615px; height:710px; ">
  132. <col ref="hsctmdlcd" type="input"/>
  133. <col ref="hsctmdlnm" type="input"/>
  134. <script type="javascript" ev:event="onaftersort">
  135. <![CDATA[
  136. grd_exptdeptlist.gridToInstance();
  137. ]]>
  138. </script>
  139. </datagrid>
  140. <button id="btn_grdadd1" class="btn2_letter3" style="left:455px; top:5px; width:53px; height:19px; ">
  141. <caption>행추가</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. grd_exptdeptlist.addItem();
  145. ]]>
  146. </script>
  147. </button>
  148. <button id="btn_grddel1" class="btn2_letter3" style="left:511px; top:5px; width:53px; height:19px; ">
  149. <caption>행삭제</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. if ( messageBox("코드가 삭제 됩니다.", "Q003") != 6 ) {
  153. return false;
  154. }
  155. grd_exptdeptlist.addStatus(grd_exptdeptlist.row,"delete");
  156. ]]>
  157. </script>
  158. </button>
  159. <button id="btn_grdadd2" class="btn2_letter3" style="left:1075px; top:5px; width:53px; height:19px; ">
  160. <caption>행추가</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. grd_voldivlist.addItem();
  164. ]]>
  165. </script>
  166. </button>
  167. <button id="btn_grddel2" class="btn2_letter3" style="left:1131px; top:5px; width:53px; height:19px; ">
  168. <caption>행삭제</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. if ( messageBox("코드가 삭제 됩니다.", "Q003") != 6 ) {
  172. return false;
  173. }
  174. grd_voldivlist.addStatus(grd_voldivlist.row,"delete");
  175. ]]>
  176. </script>
  177. </button>
  178. <select1 id="cmb_lrggrupcd" ref="/root/send/lrggrupcd" class="combo_essential" appearance="minimal" style="left:75px; top:5px; width:125px; height:19px; ">
  179. <choices>
  180. <itemset nodeset="/root/init/testflag/item">
  181. <label ref="cdnm"/>
  182. <value ref="cdid"/>
  183. </itemset>
  184. </choices>
  185. <script type="javascript" ev:event="xforms-value-changed">
  186. <![CDATA[
  187. submit("TRABO02101"); //대분류 조회
  188. model.resetInstanceNode("/root/main/mdllist/item");
  189. grd_voldivlist.refresh();
  190. ]]>
  191. </script>
  192. </select1>
  193. </group>
  194. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1194px; height:27px; ">
  195. <button id="btn_save" class="btn4_letter2" style="left:1129px; top:5px; width:56px; height:22px; ">
  196. <caption>저장</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. fSaveData();
  200. ]]>
  201. </script>
  202. </button>
  203. </group>
  204. </xhtml:body>
  205. </xhtml:html>