SMLMP00700_미생물누적결과조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP00900_결과조회.xrw
  4. * 설 명 : 결과조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2007.06.15
  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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <MicroRsltList>
  20. <prcpdd/>
  21. <prcpdr/>
  22. <ioflag/>
  23. <tclskind/>
  24. <testdd/>
  25. <testnm/>
  26. <spcnm/>
  27. <testrslt/>
  28. <bcno/>
  29. <pid/>
  30. <hngnm/>
  31. </MicroRsltList>
  32. <testgrupdetl>
  33. <chk/>
  34. <tclsnm/>
  35. <tclscd/>
  36. </testgrupdetl>
  37. </main>
  38. <send>
  39. <data1/>
  40. </send>
  41. <init>
  42. </init>
  43. <hidden>
  44. <ref>
  45. <startdd/>
  46. <enddd/>
  47. <searchtext/>
  48. <refflag>1</refflag>
  49. <testmdlcd>00</testmdlcd>
  50. <workgroup>00</workgroup>
  51. <tclscdlist>
  52. <tclscdlist/>
  53. <tclsnmlist/>
  54. <tclscdlist2/>
  55. <testgrup/>
  56. </tclscdlist>
  57. <ioflag>0</ioflag>
  58. <tclscd/>
  59. <pinfo/>
  60. </ref>
  61. </hidden>
  62. </root>
  63. </instance>
  64. <script type="javascript" ev:event="xforms-model-construct-done">
  65. <![CDATA[
  66. fSetInit();
  67. ]]>
  68. </script>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  71. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  74. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  75. <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
  76. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  77. <submission id="TRLZZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
  78. <submission id="TRLMP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/MicroRsltList"/>
  79. </model>
  80. <script type="javascript">
  81. <![CDATA[
  82. function fSetInit() {
  83. var Today = getCurrentDate();
  84. var BfDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-365)
  85. model.removeNodeset("/root/main/MicroRsltList");
  86. model.setvalue("/root/hidden/ref/startdd",BfDay.getDateFormat("YYYYMMDD"));
  87. model.setvalue("/root/hidden/ref/enddd",Today);
  88. fBaseInfoRef("0103|0002|0112|0113|");
  89. }
  90. function fGetResultListRef(){
  91. model.removeNodeset("/root/main/MicroRsltList");
  92. var textbox = model.getValue("/root/hidden/ref/searchtext");
  93. if(textbox == ""){
  94. alert("검색 할 대상이 없습니다.");
  95. return;
  96. }
  97. model.setValue("/root/hidden/ref/tclscd", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
  98. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  99. submit("TRLMP00701");
  100. if(model.getValue("/root/hidden/ref/refflag") == "1"){
  101. //alert (model.getValue("/root/main/MicroRsltList/hngnm"));
  102. model.setValue("/root/hidden/ref/pinfo",model.getValue("/root/main/MicroRsltList/hngnm"));
  103. }else if(model.getValue("/root/hidden/ref/refflag") == "2"){
  104. model.setValue("/root/hidden/ref/pinfo",model.getValue("/root/main/MicroRsltList/pid"));
  105. }
  106. model.refresh();
  107. }
  108. function fPidRef(){
  109. if(event.keyCode == "13"){
  110. if(event.target == "iptSearch"){
  111. model.setvalue("/root/hidden/ref/searchtext",iptSearch.currentText);
  112. model.refresh();
  113. fGetResultListRef();
  114. iptSearch.selBegin = 0;
  115. iptSearch.selEnd = iptSearch.currentText.length;
  116. }
  117. }
  118. }
  119. function fSetTestMdlcd() {
  120. var etc = model.getvalue("/root/hidden/ref/testmdlcd");
  121. var etc2 = model.getvalue("/root/hidden/ref/workgroup");
  122. if(etc == "00") {
  123. cmb_workgroup.attribute("visibility") = "visible";
  124. ma_combo.attribute("visibility") = "hidden";
  125. cmb_workgroup.disabled = true;
  126. }else if(etc == "MR"){
  127. cmb_workgroup.attribute("visibility") = "visible";
  128. ma_combo.attribute("visibility") = "hidden";
  129. cmb_workgroup.disabled = false;
  130. }else if(etc == "MA"){
  131. cmb_workgroup.attribute("visibility") = "hidden";
  132. ma_combo.attribute("visibility") = "visible";
  133. cmb_workgroup.disabled = false;
  134. }else {
  135. cmb_workgroup.attribute("visibility") = "hidden";
  136. ma_combo.attribute("visibility") = "hidden";
  137. }
  138. model.setvalue("/root/hidden/ref/workgroup", "00");
  139. model.refresh();
  140. }
  141. function fClickResultList(){
  142. var row = MicroRsltList.row;
  143. modal("SPLMP90200","", "", "","", "/root/main/MicroRsltList["+row+"]", "/root/hidden/ref/list");
  144. }
  145. function fSelectTestGrup(){
  146. model.makeValue("/root/send/testgrupnm", cmb_testitem.label);
  147. submit("TRLLF90401" ,false);
  148. fSetPopUpTclscdList();
  149. }
  150. function fSetPopUpTclscdList(){
  151. var count = getNodesetCount("/root/main/testgrupdetl");
  152. if(count > 0){
  153. var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  154. var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  155. var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  156. // 검사그룹 상세 목록 없을때
  157. if(sendtclsnm == ""){
  158. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
  159. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
  160. }else{ // 검사그룹 상세 목록 있을때
  161. for(i=2; i<= count; i++){
  162. sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  163. //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  164. sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  165. sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  166. }
  167. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
  168. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
  169. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
  170. }
  171. model.refresh();
  172. }
  173. }
  174. ]]>
  175. </script>
  176. </xhtml:head>
  177. <xhtml:body guideline="1,1057;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  178. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  179. <group id="group1" style="left:0px; top:10px; width:1195px; height:65px; ">
  180. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  181. <line id="line3" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; "/>
  182. <button id="button1" class="btn1_letter2" style="left:1123px; top:6px; width:56px; height:22px; ">
  183. <caption>조회</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. fGetResultListRef();
  187. ]]>
  188. </script>
  189. </button>
  190. <caption id="caption2" class="search_name" style="left:15px; top:10px; width:87px; height:17px; ">조회일자 :</caption>
  191. <caption id="caption3" class="search_no_b" style="left:214px; top:11px; width:13px; height:17px; ">~</caption>
  192. <input id="input1" ref="/root/hidden/ref/startdd" class="input_search" inputtype="date" style="left:105px; top:9px; width:100px; height:19px; "/>
  193. <input id="input2" ref="/root/hidden/ref/enddd" class="input_search" inputtype="date" style="left:236px; top:9px; width:100px; height:19px; "/>
  194. <input id="iptSearch" ref="/root/hidden/ref/searchtext" class="input_s_button" navindex="1" inputtype="button" style="left:867px; top:9px; width:125px; height:19px; ">
  195. <script type="javascript" ev:event="onbuttonclick">
  196. <![CDATA[
  197. fGetResultListRef();
  198. ]]>
  199. </script>
  200. <script type="javascript" ev:event="onkeypress">
  201. <![CDATA[
  202. fPidRef();
  203. ]]>
  204. </script>
  205. </input>
  206. <select1 id="combo2" ref="/root/hidden/ref/refflag" class="combo_search" appearance="minimal" style="left:778px; top:9px; width:87px; height:19px; ">
  207. <choices>
  208. <item>
  209. <label>등록번호</label>
  210. <value>1</value>
  211. </item>
  212. <item>
  213. <label>환자성명</label>
  214. <value>2</value>
  215. </item>
  216. </choices>
  217. <script type="javascript" ev:event="xforms-value-changed">
  218. <![CDATA[
  219. model.setValue("/root/hidden/ref/searchtext", "");
  220. model.refresh();
  221. ]]>
  222. </script>
  223. </select1>
  224. <caption id="caption5" class="search_name" style="left:680px; top:10px; width:88px; height:17px; ">검색구분 :</caption>
  225. <button id="button6" class="icon_search" style="left:710px; top:39px; width:16px; height:16px; ">
  226. <caption/>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
  230. ]]>
  231. </script>
  232. </button>
  233. <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" style="left:205px; top:38px; width:500px; height:19px; color:#ff0000; "/>
  234. <caption id="caption8" class="search_name" style="left:15px; top:39px; width:94px; height:17px; ">검사항목 :</caption>
  235. <select1 id="cmb_testitem" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:105px; top:38px; width:96px; height:19px; ">
  236. <choices>
  237. <itemset nodeset="/root/init/LB0103">
  238. <label ref="nm"/>
  239. <value ref="cd"/>
  240. </itemset>
  241. </choices>
  242. <script type="javascript" ev:event="xforms-value-changed">
  243. <![CDATA[
  244. fSelectTestGrup();
  245. ]]>
  246. </script>
  247. </select1>
  248. <select1 id="radio2" ref="/root/hidden/ref/ioflag" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:487px; top:10px; width:153px; height:20px; border-style:none; ">
  249. <choices>
  250. <item>
  251. <label>전체</label>
  252. <value>0</value>
  253. </item>
  254. <item>
  255. <label>외래</label>
  256. <value>1</value>
  257. </item>
  258. <item>
  259. <label>입원</label>
  260. <value>2</value>
  261. </item>
  262. </choices>
  263. </select1>
  264. <caption id="caption9" class="search_name" style="left:385px; top:10px; width:93px; height:17px; ">외래/입원 :</caption>
  265. <select1 id="cmb_mdlcd" ref="/root/hidden/ref/testmdlcd" class="combo_search" appearance="minimal" itemcount="10" style="left:850px; top:38px; width:155px; height:19px; ">
  266. <choices>
  267. <itemset nodeset="/root/init/LB0112">
  268. <label ref="nm"/>
  269. <value ref="cd"/>
  270. </itemset>
  271. </choices>
  272. <script type="javascript" ev:event="xforms-value-changed">
  273. <![CDATA[
  274. fSetTestMdlcd();
  275. ]]>
  276. </script>
  277. </select1>
  278. <select1 id="cmb_workgroup" ref="/root/hidden/ref/workgroup" class="combo_search" disabled="true" appearance="minimal" itemcount="10" style="left:1007px; top:38px; width:157px; height:19px; ">
  279. <choices>
  280. <itemset nodeset="/root/init/LB0113">
  281. <label ref="nm"/>
  282. <value ref="cd"/>
  283. </itemset>
  284. </choices>
  285. </select1>
  286. <caption id="caption12" class="search_name" style="left:760px; top:39px; width:89px; height:17px; ">작업그룹 :</caption>
  287. <select1 id="ma_combo" ref="/root/hidden/ref/workgroup" class="combo_search" visibility="hidden" appearance="minimal" itemcount="10" style="left:1007px; top:38px; width:157px; height:19px; ">
  288. <choices>
  289. <item>
  290. <label>- 전체 -</label>
  291. <value>00</value>
  292. </item>
  293. <item>
  294. <label>[CU]culture</label>
  295. <value>CU</value>
  296. </item>
  297. </choices>
  298. </select1>
  299. <output id="output1" ref="/root/hidden/ref/pinfo" style="left:1010px; top:7px; width:95px; height:19px; font-size:14pt; font-weight:bold; text-align:center; "/>
  300. <caption id="caption4" style="left:995px; top:5px; width:15px; height:25px; ">▶</caption>
  301. </group>
  302. <caption id="caption1" class="tit_2" style="left:0px; top:85px; width:100px; height:13px; ">검사리스트</caption>
  303. <datagrid id="MicroRsltList" nodeset="/root/main/MicroRsltList" caption="처방일자^처방의사^입/외^검사구분^접수일시^결과일시^검사명^검체명^검사결과" colwidth="80, 70, 50, 70, 125, 125,200, 100, 400" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:105px; width:1194px; height:630px; font-family:굴림체; ">
  304. <col ref="prcpdd" format="yyyy-mm-dd"/>
  305. <col ref="prcpdr"/>
  306. <col ref="ioflag"/>
  307. <col ref="tclskind"/>
  308. <col ref="workdd" format="yyyy-mm-dd hh:nn:ss"/>
  309. <col ref="reptdt" format="yyyy-mm-dd hh:nn:ss"/>
  310. <col ref="testnm"/>
  311. <col ref="spcnm"/>
  312. <col ref="testrslt"/>
  313. <col ref="bcno" visibility="hidden"/>
  314. <col ref="pid" visibility="hidden"/>
  315. <col ref="hngnm" visibility="hidden"/>
  316. <script type="javascript" ev:event="ondblclick">
  317. <![CDATA[
  318. if(MicroRsltList.isCell(event.target) && MicroRsltList.row >= MicroRsltList.fixedRows ){
  319. fClickResultList();
  320. }
  321. ]]>
  322. </script>
  323. <script type="javascript" ev:event="onaftersort">
  324. <![CDATA[
  325. MicroRsltList.gridToInstance();
  326. ]]>
  327. </script>
  328. </datagrid>
  329. <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
  330. </group>
  331. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  332. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  333. <caption>초기화</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. fSetInit();
  337. ]]>
  338. </script>
  339. </button>
  340. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  341. </group>
  342. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  343. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">결과조회</caption>
  344. </group>
  345. </xhtml:body>
  346. </xhtml:html>