SPLLF90700_검체정보설정.xrw 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLLF90700_검체정보설정.xrw
  4. * 설 명 : 검체정보설정
  5. * 설 계 자 : (주)에이씨케이 박정은
  6. * 작 성 자 : (주)에이씨케이 박정은
  7. * 작 성 일 : 2007.09.13
  8. * 수정이력 :
  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 xmlns="">
  18. <main>
  19. <spccdlist>
  20. <getAddSpccdList>
  21. <chk/>
  22. <spccd/>
  23. <spcnm/>
  24. <tubecd/>
  25. <tubevol/>
  26. <urinspcyn/>
  27. </getAddSpccdList>
  28. </spccdlist>
  29. </main>
  30. <send>
  31. <codeflag/>
  32. <tclscd/>
  33. <userdeptflagcd/>
  34. <searchgbn/>
  35. <searchtext/>
  36. </send>
  37. <init/>
  38. <hidden>
  39. <searchgbn/>
  40. <searchtext/>
  41. <addspccdinfo>
  42. <spccd/>
  43. <tubecd/>
  44. <saveYN/>
  45. </addspccdinfo>
  46. </hidden>
  47. </root>
  48. </instance>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. // 초기정보 조회
  54. fBaseInfoRef("0107|0000|"); //용기정보조회
  55. grd_spccdlist.fixedcellcheckbox(0,1) = true;
  56. fInit();
  57. ]]>
  58. </script>
  59. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0107"/>
  60. <submission id="TRLLF90701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spccdlist"/>
  61. </model>
  62. <script type="javascript">
  63. <![CDATA[
  64. //초기화
  65. function fInit(){
  66. model.makeValue("/root/send/searchgbn", "");
  67. model.makeValue("/root/send/searchtext", "");
  68. cmb_searchgbn.select(1);
  69. model.setValue("/root/hidden/searchtext", "");
  70. fGetSpccdList();
  71. }
  72. //검체목록조회
  73. function fGetSpccdList(){
  74. if(model.getValue("/root/send/tclscd") == ""){
  75. messageBox("검사코드를 선택하세요.", "I");
  76. return;
  77. }
  78. model.makeValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  79. model.makeValue("/root/send/searchgbn", model.getValue("/root/hidden/searchgbn"));
  80. model.makeValue("/root/send/searchtext", model.getValue("/root/hidden/searchtext"));
  81. submit("TRLLF90701");
  82. }
  83. // 확인 버튼 클릭
  84. function fSetSpcListSend(){
  85. var sSpccd = "";
  86. var sTubecd = "";
  87. var addCnt = 0;
  88. for(i=1; i<=grd_spccdlist.rows; i++){
  89. // 선택된 검체만
  90. if(model.getValue("/root/main/spccdlist/getAddSpccdList["+i+"]/chk")=="Y"){
  91. if(model.getValue("/root/main/spccdlist/getAddSpccdList["+i+"]/tubecd") == ""){
  92. messageBox("용기코드를 선택해주세요.", "I");
  93. return;
  94. }
  95. if(addCnt == 0){
  96. sSpccd = model.getValue("/root/main/spccdlist/getAddSpccdList["+i+"]/spccd");
  97. sTubecd = model.getValue("/root/main/spccdlist/getAddSpccdList["+i+"]/tubecd");
  98. }else{
  99. sSpccd += "▦" + model.getValue("/root/main/spccdlist/getAddSpccdList["+i+"]/spccd");
  100. sTubecd += "▦" + model.getValue("/root/main/spccdlist/getAddSpccdList["+i+"]/tubecd");
  101. }
  102. addCnt++;
  103. }
  104. }
  105. if(addCnt == 0) {
  106. messageBox("추가 할 검체를 선택해주세요.", "I");
  107. return;
  108. }
  109. model.setValue("/root/hidden/addspccdinfo/spccd", sSpccd);
  110. model.setValue("/root/hidden/addspccdinfo/tubecd", sTubecd);
  111. model.setValue("/root/hidden/addspccdinfo/saveYN", "Y");
  112. model.copyNode(opener.root.hidden.addspccdinfo, root.hidden.addspccdinfo);
  113. window.close();
  114. }
  115. ]]>
  116. </script>
  117. </xhtml:head>
  118. <xhtml:body pagewidth="565" pageheight="665" guideline="1,1194;" style="font-family:굴림체; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  119. <group id="group3" style="left:0px; top:0px; width:545px; height:645px; ">
  120. <line id="line3" class="line_1" style="x1:0px; y1:35px; x2:541px; y2:35px; "/>
  121. <caption id="caption2" class="tit_2" style="left:5px; top:21px; width:75px; height:13px; ">검체목록</caption>
  122. <datagrid id="grd_spccdlist" nodeset="/root/main/spccdlist/getAddSpccdList" visibility="visible" caption="^검체코드^검체명^용기코드^유린검체여부^용량" colsep="^" colwidth="30, 60, 160, 160, 80, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:40px; width:540px; height:578px; ">
  123. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  124. <col ref="spccd"/>
  125. <col ref="spcnm"/>
  126. <col ref="tubecd" type="combo">
  127. <choices>
  128. <itemset nodeset="/root/init/LB0107">
  129. <label ref="nm"/>
  130. <value ref="cd"/>
  131. </itemset>
  132. </choices>
  133. </col>
  134. <col ref="urinspcyn"/>
  135. <col ref="tubevol"/>
  136. <script type="javascript" ev:event="onaftersort">
  137. <![CDATA[
  138. grd_spccdlist.gridToInstance();
  139. ]]>
  140. </script>
  141. </datagrid>
  142. <button id="button4" class="btn4_letter2" style="left:359px; top:621px; width:56px; height:22px; ">
  143. <caption>확인</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. fSetSpcListSend();
  147. ]]>
  148. </script>
  149. </button>
  150. <button id="button9" class="btn4_letter3" style="left:416px; top:621px; width:68px; height:22px; ">
  151. <caption>초기화</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. fInit();
  155. ]]>
  156. </script>
  157. </button>
  158. <button id="button1" class="btn4_letter2" style="left:485px; top:621px; width:56px; height:22px; ">
  159. <caption>닫기</caption>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. window.close();
  163. ]]>
  164. </script>
  165. </button>
  166. <caption id="caption27" class="search_name" style="left:240px; top:14px; width:87px; height:17px; ">검색구분 :</caption>
  167. <input id="ipt_searchtext" ref="/root/hidden/searchtext" class="input_s_button" inputtype="button" style="left:420px; top:13px; width:120px; height:19px; ">
  168. <script type="javascript" ev:event="onbuttonclick">
  169. <![CDATA[
  170. fGetSpccdList();
  171. ]]>
  172. </script>
  173. <script type="javascript" ev:event="onkeypress">
  174. <![CDATA[
  175. if(event.keyCode == "13"){
  176. model.setValue("/root/hidden/searchtext", ipt_searchtext.currentText);
  177. fGetSpccdList();
  178. }
  179. ]]>
  180. </script>
  181. </input>
  182. <select1 id="cmb_searchgbn" ref="/root/hidden/searchgbn" class="combo_search" appearance="minimal" style="left:330px; top:13px; width:85px; height:19px; ">
  183. <choices>
  184. <item>
  185. <label>검체코드</label>
  186. <value>1</value>
  187. </item>
  188. <item>
  189. <label>검체명</label>
  190. <value>2</value>
  191. </item>
  192. </choices>
  193. </select1>
  194. <caption id="caption1" style="left:0px; top:620px; width:315px; height:25px; margin-left:10; ">※추가 된 검체는 조회되지 않습니다.</caption>
  195. </group>
  196. </xhtml:body>
  197. </xhtml:html>