SPLLF10500_통합검체코드조회.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF00100_계검사계코드관리.xrw
  4. * 설 명 : 검사시행부서코드관리 조회 및 등록
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2007.04.10
  8. * 수정이력 : 2007.07.27 박정은 lastupdtdt 수정함
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>검사시행부서코드관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <spclist>
  20. <spccd/>
  21. <spcnm/>
  22. <spcscrnnm/>
  23. <spcabbrnm/>
  24. <spcprntnm/>
  25. <spclblnm/>
  26. <spckind/>
  27. </spclist>
  28. </main>
  29. <send>
  30. <refgbn/>
  31. <spcdata/>
  32. <searchgbn/>
  33. <searchtext/>
  34. <deptflag/>
  35. <codeflag/>
  36. </send>
  37. <init>
  38. </init>
  39. <hidden>
  40. <ref>
  41. <refgbn>1</refgbn>
  42. <searchgbn>2</searchgbn>
  43. <searchtext/>
  44. </ref>
  45. <deptflagcd/>
  46. <addlist>
  47. <addstring/>
  48. </addlist>
  49. </hidden>
  50. </root>
  51. </instance>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <submission id="TRLLF10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
  56. <submission id="TXLLF10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
  57. <submission id="TRLLF10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
  58. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. // 권한 설정
  62. //var auth = model.getValue("/root/properties/auth");
  63. //checkAuth(auth);
  64. //btn_save.disabled = !checkAuth("X") ;
  65. // 초기정보 조회
  66. model.setValue("/root/send/codeflag", "0000|"); // 0000= 유저과플래그
  67. submit("TRLZZ00101");
  68. fSetInit();
  69. fGetSpcList();
  70. ]]>
  71. </script>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. // 초기화 버튼
  76. function fSetInit() {
  77. //model.reset();
  78. model.removeNodeset("/root/main/testmdllist");
  79. model.refresh();
  80. }
  81. // 계리스트 조회
  82. function fGetSpcList(){
  83. grd_spc.rebuildstyle();
  84. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  85. model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  86. submit("TRLLF10301");
  87. }
  88. function fAddRow(){
  89. var AddRowString = "";
  90. for(i = 1 ; i < grd_spc.rows ; i++ ){
  91. if(model.getValue("/root/main/spclist["+i+"]/chk") == "true"){
  92. model.makeValue("/root/main/spclist["+i+"]/spcbasetubecd", "-");
  93. model.makeValue("/root/main/spclist["+i+"]/urinspcyn", "N");
  94. AddRowString = AddRowString + model.getValue("/root/main/spclist["+i+"]/spccd") + "▦"
  95. + model.getValue("/root/main/spclist["+i+"]/spcnm") + "▦"
  96. + model.getValue("/root/main/spclist["+i+"]/spcscrnnm") + "▦"
  97. + model.getValue("/root/main/spclist["+i+"]/spcabbrnm") + "▦"
  98. + model.getValue("/root/main/spclist["+i+"]/spcprntnm") + "▦"
  99. + model.getValue("/root/main/spclist["+i+"]/spclblnm") + "▦"
  100. + model.getValue("/root/main/spclist["+i+"]/spcbasetubecd") + "▦"
  101. + model.getValue("/root/main/spclist["+i+"]/urinspcyn") + "▦"
  102. + model.getValue("/root/main/spclist["+i+"]/spckind") + "▩" ;
  103. }
  104. }
  105. model.setValue("/root/hidden/addlist/addstring" , AddRowString);
  106. model.copyNode(opener.root.temp.addlist,root.hidden.addlist);
  107. window.close();
  108. }
  109. // 검체코드 검색
  110. function fGetSpcSearch(){
  111. model.setValue("/root/send/searchgbn", model.getValue("/root/hidden/ref/searchgbn"));
  112. model.setValue("/root/send/searchtext", model.getValue("/root/hidden/ref/searchtext"));
  113. model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  114. if(model.getValue("/root/hidden/ref/searchtext") == ""){
  115. fGetSpcList();
  116. }else{
  117. submit("TRLLF10302");
  118. }
  119. }
  120. ]]>
  121. </script>
  122. </xhtml:head>
  123. <xhtml:body pagewidth="810" pageheight="750" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  124. <group id="group3" scroll="auto" style="left:0px; top:0px; width:790px; height:745px; ">
  125. <caption id="caption1" class="tit_2" style="left:0px; top:0px; width:160px; height:14px; ">통합검체코드목록</caption>
  126. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:775px; y2:70px; "/>
  127. <datagrid id="grd_spc" nodeset="/root/main/spclist" caption="^검체코드^검체명^검체명(화면)^검체명(약어)^검체명(출력)^검체명(라벨)^검체유형" colwidth="20, 85, 100, 100, 100, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:75px; width:775px; height:655px; ">
  128. <col ref="chk" type="checkbox"/>
  129. <col ref="spccd" type="output"/>
  130. <col ref="spcnm" type="output"/>
  131. <col ref="spcscrnnm" type="output"/>
  132. <col ref="spcabbrnm" type="output"/>
  133. <col ref="spcprntnm" type="output"/>
  134. <col ref="spclblnm" type="output"/>
  135. <col disabled="true" ref="spckind" type="combo">
  136. <choices>
  137. <item>
  138. <label>기타검체</label>
  139. <value>0</value>
  140. </item>
  141. <item>
  142. <label>일반검체</label>
  143. <value>1</value>
  144. </item>
  145. <item>
  146. <label>미생물검체</label>
  147. <value>2</value>
  148. </item>
  149. <item>
  150. <label>혈액용량</label>
  151. <value>3</value>
  152. </item>
  153. <item>
  154. <label>핵의학검체</label>
  155. <value>4</value>
  156. </item>
  157. </choices>
  158. </col>
  159. <script type="javascript" ev:event="onaftersort">
  160. <![CDATA[
  161. grd_spc.gridToInstance();
  162. ]]>
  163. </script>
  164. </datagrid>
  165. <button id="button1" class="btn4_letter2" style="left:656px; top:5px; width:56px; height:22px; ">
  166. <caption>추가</caption>
  167. <script type="javascript" ev:event="onclick">
  168. <![CDATA[
  169. fAddRow();
  170. ]]>
  171. </script>
  172. </button>
  173. <button id="btn_cfm" class="btn4_letter2" style="left:715px; top:5px; width:56px; height:22px; ">
  174. <caption>닫기</caption>
  175. <script type="javascript" ev:event="onclick">
  176. <![CDATA[
  177. window.close();
  178. ]]>
  179. </script>
  180. </button>
  181. <group id="group1" style="left:0px; top:30px; width:775px; height:35px; ">
  182. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:775px; height:35px; "/>
  183. <button id="btn_search" class="btn1_letter2" style="left:408px; top:7px; width:56px; height:22px; ">
  184. <caption>검색</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. fGetSpcSearch();
  188. ]]>
  189. </script>
  190. </button>
  191. <line id="line11" class="line_4" style="x1:393px; y1:6px; x2:393px; y2:28px; "/>
  192. <select1 id="cmb_srchflag" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:115px; top:8px; width:150px; height:19px; ">
  193. <choices>
  194. <item>
  195. <label>검체코드</label>
  196. <value>1</value>
  197. </item>
  198. <item>
  199. <label>검체명</label>
  200. <value>2</value>
  201. </item>
  202. </choices>
  203. </select1>
  204. <caption id="caption4" class="search_name" style="left:22px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  205. <input id="ipt_refflag" ref="/root/hidden/ref/searchtext" class="input_search" style="left:268px; top:8px; width:110px; height:19px; ">
  206. <script type="javascript" ev:event="onkeypress">
  207. <![CDATA[
  208. if(event.keyCode == "13"){
  209. model.setvalue("/root/hidden/ref/searchtext",ipt_refflag.currentText);
  210. model.refresh();
  211. fGetSpcSearch();
  212. ipt_refflag.selBegin = 0;
  213. ipt_refflag.selEnd = ipt_refflag.currentText.length;
  214. }
  215. ]]>
  216. </script>
  217. </input>
  218. </group>
  219. </group>
  220. </xhtml:body>
  221. </xhtml:html>