SMLLC00610_외래채혈실검체조회.xrw 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 외래채혈실핵의학검체조회.xrw
  4. * 설 명 : ㅇㅇ
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 : 2009.07.24
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <spclist>
  20. <bcno/>
  21. <orddeptnm/>
  22. <pid/>
  23. <hngnm/>
  24. <tclsnm/>
  25. <spcnm/>
  26. <spcstat/>
  27. <bcoll/>
  28. <spcpseuacpt/>
  29. <spcacpt/>
  30. <spccncl/>
  31. <tsectnm/>
  32. </spclist>
  33. </main>
  34. <send>
  35. <refflag>1</refflag>
  36. <reftext/>
  37. <fromdd/>
  38. <todd/>
  39. <spcflag>00</spcflag>
  40. <genrflag>2</genrflag>
  41. <codeflag/>
  42. <execdept/>
  43. </send>
  44. <init/>
  45. <hidden>
  46. <spcacpt>
  47. <testmdlcd>00</testmdlcd>
  48. <testlrgcd>00</testlrgcd>
  49. </spcacpt>
  50. </hidden>
  51. </root>
  52. </instance>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  57. <script type="javascript" ev:event="xforms-model-construct-done">
  58. <![CDATA[
  59. fSetInit();
  60. ]]>
  61. </script>
  62. <!-- 시행부서 조회-->
  63. <submission id="TRLLC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
  64. <!-- *사용* 시행부서 조회 -->
  65. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0102"/>
  66. </model>
  67. <script type="javascript">
  68. <![CDATA[
  69. // 초기화
  70. function fSetInit() {
  71. model.removeNodeset("/root/init");
  72. model.setValue("/root/send/codeflag", "0102|0106|0104|0111|0000|"); // 0102= 중분류 // 0106=시행부서(검사계) // 0104 대분류 // 0111 계(시행) // 0000 userdeptflag
  73. // 초기정보 조회
  74. submit("TRLZZ00101");
  75. model.removeNodeset("/root/main/spclist");
  76. var today = getCurrentDate();
  77. model.setValue("/root/send/fromdd", today);
  78. model.setValue("/root/send/todd", today);
  79. model.setFocus("ipt_text");
  80. model.refresh();
  81. }
  82. //조회
  83. function fGetNSpcList() {
  84. model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd"));
  85. submit("TRLLC00602");
  86. }
  87. function fSetTLrgCd() {
  88. var etc = model.getvalue("/root/hidden/spcacpt/testlrgcd");
  89. if(etc == "00"){
  90. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  91. model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
  92. }
  93. else{
  94. model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
  95. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
  96. }
  97. cmd_TMdlCd.refresh();
  98. }
  99. function fKeyEvent(){
  100. if(event.keyCode == "13"){
  101. if(event.target == "ipt_text"){
  102. if(ipt_text.currentText != "") {
  103. model.setValue("/root/send/reftext", (ipt_text.currentText).toUpperCase());
  104. fGetNSpcList();
  105. } else {
  106. messageBox("검색어를", "C001");
  107. }
  108. ipt_text.selBegin = 0;
  109. ipt_text.selEnd = ipt_text.currentText.length;
  110. }
  111. }
  112. }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  117. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  118. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">진단검사의학과 검체 조회</caption>
  119. </group>
  120. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  121. <group id="group2" style="left:0px; top:0px; width:1195px; height:70px; font-weight:bold; ">
  122. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  123. <line id="line3" class="line_4" style="x1:1050px; y1:5px; x2:1050px; y2:47px; "/>
  124. <button id="btn_Ref" class="btn1_letter2" style="left:1058px; top:12px; width:56px; height:22px; ">
  125. <caption>조회</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. fGetNSpcList();
  129. ]]>
  130. </script>
  131. </button>
  132. <caption id="caption4" class="search_name" style="left:6px; top:11px; width:90px; height:17px; ">조회기간 :</caption>
  133. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:92px; top:10px; width:106px; height:19px; "/>
  134. <caption id="caption5" class="search_no_b" style="left:200px; top:11px; width:15px; height:17px; ">~</caption>
  135. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:215px; top:10px; width:106px; height:19px; "/>
  136. <caption id="caption3" class="search_name" style="left:415px; top:15px; width:90px; height:17px; ">검체상태 :</caption>
  137. <select1 id="cmb_spcflag" ref="/root/send/spcflag" class="combo_search" navindex="11" appearance="minimal" style="left:505px; top:15px; width:75px; height:19px; ">
  138. <choices>
  139. <item>
  140. <label>-전체-</label>
  141. <value>00</value>
  142. </item>
  143. <item>
  144. <label>취소</label>
  145. <value>0</value>
  146. </item>
  147. <item>
  148. <label>채혈</label>
  149. <value>2</value>
  150. </item>
  151. <item>
  152. <label>가접수</label>
  153. <value>3</value>
  154. </item>
  155. <item>
  156. <label>접수</label>
  157. <value>4</value>
  158. </item>
  159. </choices>
  160. </select1>
  161. <select1 id="radio3" ref="/root/send/refflag" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:640px; top:15px; width:170px; height:20px; border-style:none; ">
  162. <choices>
  163. <item>
  164. <label>진검채혈자</label>
  165. <value>1</value>
  166. </item>
  167. <item>
  168. <label>진검외</label>
  169. <value>2</value>
  170. </item>
  171. </choices>
  172. </select1>
  173. <caption id="caption2" style="left:610px; top:15px; width:30px; height:20px; color:#ff0000; ">구분</caption>
  174. <select1 id="radio1" ref="/root/send/genrflag" class="radio_search" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:821px; top:15px; width:225px; height:20px; border-style:none; ">
  175. <choices>
  176. <item>
  177. <label>전체</label>
  178. <value>00</value>
  179. </item>
  180. <item>
  181. <label>입원</label>
  182. <value>1</value>
  183. </item>
  184. <item>
  185. <label>외래</label>
  186. <value>2</value>
  187. </item>
  188. <item>
  189. <label>건진</label>
  190. <value>3</value>
  191. </item>
  192. </choices>
  193. </select1>
  194. <caption id="caption7" class="search_name" style="left:5px; top:37px; width:86px; height:17px; ">시행부서 :</caption>
  195. <select1 id="cmd_TMdlCd" ref="/root/hidden/spcacpt/testmdlcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:255px; top:40px; width:150px; height:19px; text-align:left; ">
  196. <choices>
  197. <itemset nodeset="/root/init/LB0106">
  198. <label ref="nm"/>
  199. <value ref="cd"/>
  200. </itemset>
  201. </choices>
  202. </select1>
  203. <select1 id="cmb_TLrgCd" ref="/root/hidden/spcacpt/testlrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:91px; top:39px; width:154px; height:19px; text-align:left; ">
  204. <choices>
  205. <itemset nodeset="/root/init/LB0111">
  206. <label ref="nm"/>
  207. <value ref="cd"/>
  208. </itemset>
  209. </choices>
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. fSetTLrgCd();
  213. ]]>
  214. </script>
  215. </select1>
  216. <line id="line1" class="line_4" style="x1:815px; y1:5px; x2:815px; y2:47px; "/>
  217. </group>
  218. <line id="line2" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:80px; "/>
  219. <datagrid id="grd_nspclist" nodeset="/root/main/spclist" caption="시행부서^검체번호^진료과^등록번호^성명^검사명^검체명^검체상태^채취시각^채취자^접수정보^병동" colsep="^" colwidth="100,80,75, 70, 65, 250, 95, 60, 120,80,170, 80" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:85px; width:1194px; height:657px; text-align:center; ">
  220. <col ref="tsectnm"/>
  221. <col ref="bcno" type="input"/>
  222. <col ref="orddeptnm"/>
  223. <col ref="pid"/>
  224. <col ref="hngnm"/>
  225. <col ref="tclsnm"/>
  226. <col ref="spcnm"/>
  227. <col ref="spcstat"/>
  228. <col ref="bcoll"/>
  229. <col ref="spcpseuacpt"/>
  230. <col ref="spcacpt"/>
  231. <col ref="spccncl"/>
  232. <script type="javascript" ev:event="onaftersort">
  233. <![CDATA[
  234. grd_nspclist.gridToInstance();
  235. ]]>
  236. </script>
  237. </datagrid>
  238. <button id="btn_excel" class="btn2_letter4" style="left:1120px; top:25px; width:64px; height:19px; ">
  239. <caption>엑셀저장</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  243. if (fileName != ""){
  244. grd_nspclist.saveExcel(fileName);
  245. }
  246. ]]>
  247. </script>
  248. </button>
  249. </group>
  250. <button id="btn_reset" class="btn4_letter3" style="left:1120px; top:15px; width:68px; height:22px; ">
  251. <caption>초기화</caption>
  252. <script type="javascript" ev:event="onclick">
  253. <![CDATA[
  254. window.reload();
  255. ]]>
  256. </script>
  257. </button>
  258. </xhtml:body>
  259. </xhtml:html>