SMLQP00500_부하테스트.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 :
  4. * 설 명 :
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  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. <datalist>
  20. <datalist/>
  21. <bcno/>
  22. <instcd/>
  23. <userid/>
  24. </datalist>
  25. </main>
  26. <send>
  27. <pid/>
  28. <prcpdd/>
  29. <prcpcd/>
  30. <userid/>
  31. <bcno/>
  32. <instcd/>
  33. <maxcount/>
  34. </send>
  35. <init>
  36. <cnt/>
  37. </init>
  38. <hidden>
  39. <bcnolist/>
  40. <codeflag/>
  41. <scrnid/>
  42. <ddflag>True</ddflag>
  43. <data2>
  44. <refflag>1</refflag>
  45. <bcollflag>1</bcollflag>
  46. <bcollflag1>1</bcollflag1>
  47. <bizflag>In</bizflag>
  48. <xrwGBN>inbcoll</xrwGBN>
  49. <erflag/>
  50. <arvtime/>
  51. <hdisp/>
  52. <roundkind>1</roundkind>
  53. <roundyn/>
  54. <tesdeptcd/>
  55. <testdeptflagcd/>
  56. <atdoctid>20800122</atdoctid>
  57. <ibftest/>
  58. <ibftestp/>
  59. <prntkind/>
  60. </data2>
  61. <data1/>
  62. <refflag>1</refflag>
  63. <pid/>
  64. <prcpdd/>
  65. <prcpcd/>
  66. <userid/>
  67. <bcno/>
  68. <instcd/>
  69. <maxcount/>
  70. </hidden>
  71. </root>
  72. </instance>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  77. <script type="javascript" ev:event="xforms-model-construct-done">
  78. <![CDATA[
  79. model.setValue("/root/hidden/prcpdd", getCurrentDate());
  80. model.refresh();
  81. ]]>
  82. </script>
  83. <!-- 시행부서 조회-->
  84. <submission id="TRLQP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/datalist"/>
  85. <submission id="TRLQP00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/datalist"/>
  86. <submission id="TXLLC80101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/TestInfo"/>
  87. <submission id="TXLII00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/TestInfo"/>
  88. </model>
  89. <script type="javascript">
  90. <![CDATA[
  91. // 초기화
  92. function fSetInit() {
  93. window.reload();
  94. }
  95. function fGetBcollList(){
  96. model.setValue("/root/send/pid" , model.getValue("/root/hidden/pid"));
  97. model.setValue("/root/send/userid" , model.getValue("/root/hidden/userid"));
  98. model.setValue("/root/send/prcpdd" , model.getValue("/root/hidden/prcpdd"));
  99. model.setValue("/root/send/prcpcd" , model.getValue("/root/hidden/prcpcd"));
  100. model.setValue("/root/send/maxcount" , model.getValue("/root/hidden/maxcount"));
  101. if(radio1.value == 1){
  102. submit("TRLQP00501"); //채혈
  103. }else{
  104. submit("TRLQP00502"); //채취일시 등록 및 접수
  105. }
  106. }
  107. function fExec(){
  108. model.copyNode("/root/send", "/root/hidden");
  109. var tm = getCurrentTime(); //시작시간
  110. if(radio1.value == 1){
  111. for(i = 1; i < grd_btlist.rows; i++){
  112. model.setValue("/root/send/data1", model.getValue("/root/main/datalist["+i+"]/datalist"));
  113. submit("TXLLC80101", false); //채혈
  114. input5.value = i + " 건 완료";
  115. if(i == 1) continue;
  116. grd_btlist.rowHidden(i-1) = true;
  117. }
  118. }else{
  119. for(i = 1; i < grd_btlist.rows; i++){
  120. model.setValue("/root/send/userid" , model.getValue("/root/main/datalist["+i+"]/userid"));
  121. model.setValue("/root/send/bcno" , model.getValue("/root/main/datalist["+i+"]/bcno"));
  122. model.setValue("/root/send/instcd" , model.getValue("/root/main/datalist["+i+"]/instcd"));
  123. model.setValue("/root/send/prcpdd" , model.getValue("/root/main/datalist["+i+"]/prcpdd"));
  124. submit("TXLII00104", false); //접수
  125. input5.value = i + " 건 완료";
  126. if(i == 1) continue;
  127. grd_btlist.rowHidden(i-1) = true;
  128. }
  129. }
  130. model.resetInstanceNode("/root/main");
  131. var tm2 = getCurrentTime(); //종료시간
  132. alert(i-1 + "건 완료" + "\n" + "시작시간 : " + tm.substr(0,2) + ":" + tm.substr(2,2) + ":" + tm.substr(4, 2) + "\n" + "종료시간 : " + tm2.substr(0,2) + ":" + tm2.substr(2,2) + ":" + tm2.substr(4, 2));
  133. model.refresh();
  134. }
  135. ]]>
  136. </script>
  137. </xhtml:head>
  138. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  139. <group id="group1" style="left:0px; top:1px; width:1195px; height:16px; ">
  140. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부하 테스트 환자 채혈 및 접수</caption>
  141. </group>
  142. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  143. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">채혈대상 및 접수대상 리스트</caption>
  144. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1193px; y2:70px; "/>
  145. <datagrid id="grd_btlist" nodeset="/root/main/datalist" caption="입원환자 채혈대상자 리스트^^접수 대상자 리스트^접수 대상자 리스트^접수 대상자 리스트" colsep="^" colwidth="910, 5, 110, 60, 110" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1193px; height:667px; ">
  146. <col ref="datalist" type="input"/>
  147. <col ref="temp" type="input"/>
  148. <col ref="bcno" type="input"/>
  149. <col ref="instcd" type="input"/>
  150. <col ref="userid" type="input"/>
  151. <script type="javascript" ev:event="onaftersort">
  152. <![CDATA[
  153. grd_btlist.gridToInstance();
  154. ]]>
  155. </script>
  156. </datagrid>
  157. <button id="btn_excel" class="btn2_letter2" visibility="hidden" style="left:1149px; top:49px; width:42px; height:19px; ">
  158. <caption>엑셀</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. fExeExcel(grd_btlist);
  162. ]]>
  163. </script>
  164. </button>
  165. <group id="group2" style="left:0px; top:6px; width:1195px; height:35px; font-weight:bold; ">
  166. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  167. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  168. <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  169. <caption>조회</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. fGetBcollList();
  173. ]]>
  174. </script>
  175. </button>
  176. <caption id="caption3" class="search_name" style="left:657px; top:9px; width:90px; height:17px; ">처방코드 :</caption>
  177. <input id="input1" ref="/root/hidden/prcpcd" style="left:750px; top:8px; width:92px; height:19px; "/>
  178. <caption id="caption2" class="search_name" style="left:277px; top:9px; width:90px; height:17px; ">등록번호 :</caption>
  179. <input id="input2" ref="/root/hidden/pid" format="9999999999" style="left:370px; top:8px; width:92px; height:19px; "/>
  180. <caption id="caption4" class="search_name" style="left:472px; top:9px; width:90px; height:17px; ">처방일 :</caption>
  181. <input id="input3" ref="/root/hidden/prcpdd" class="input_search" inputtype="date" style="left:553px; top:8px; width:97px; height:19px; "/>
  182. <select1 id="radio1" ref="/root/hidden/refflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:985px; top:10px; width:125px; height:15px; border-style:none; ">
  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="caption5" class="search_name" style="left:112px; top:9px; width:90px; height:17px; ">사용자 :</caption>
  195. <input id="input4" ref="/root/hidden/userid" style="left:190px; top:8px; width:77px; height:19px; "/>
  196. <input id="input5" ref="/root/init/cnt" class="output_fix" style="left:10px; top:8px; width:92px; height:19px; text-align:center; "/>
  197. <caption id="caption8" class="search_name" style="left:853px; top:9px; width:90px; height:17px; ">Count :</caption>
  198. <input id="input6" ref="/root/hidden/maxcount" format="99999" style="left:928px; top:8px; width:42px; height:19px; "/>
  199. </group>
  200. <caption id="caption7" style="left:133px; top:43px; width:991px; height:30px; color:#3366ff; ">
  201. <![CDATA[사용자 : 검체접수시 접수자 ID, 등록번호 : 채혈 및 접수시 환자 등록번호, 처방일 : 채혈시 처방일 접수시 바코드발행일, 처방코드 : 해당 처방코드 및 검사코드, Count : 조회대상 건수
  202. Default : Session Default : null(필요시입력) Default : Current Date Default : null(필요시 입력)]]>
  203. </caption>
  204. </group>
  205. <group id="group4" scroll="auto" style="left:0px; top:19px; width:1193px; height:25px; ">
  206. <line id="line17" class="line_6" style="x1:0px; y1:23px; x2:1193px; y2:23px; "/>
  207. <button id="btn_reset" class="btn4_letter3" style="left:1121px; top:1px; width:68px; height:22px; ">
  208. <caption>초기화</caption>
  209. <script type="javascript" ev:event="onclick">
  210. <![CDATA[
  211. fSetInit();
  212. ]]>
  213. </script>
  214. </button>
  215. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:93px; top:1px; width:56px; height:22px; ">
  216. <caption>출력</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. //fPrint();
  220. if(grd_btlist.rows > 1) {
  221. grd_btlist.sort(1, 2, grd_btlist.rows - 1, 2) = "asc";
  222. exeReportPreview("RPLLC00100", "XMLSTR", "", "", "");
  223. fPrintLb();
  224. }
  225. ]]>
  226. </script>
  227. </button>
  228. <button id="btn_prntset" class="btn3_letter5" visibility="hidden" style="left:0px; top:1px; width:92px; height:22px; ">
  229. <caption>프린터설정</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. fSetPrint();
  233. ]]>
  234. </script>
  235. </button>
  236. <button id="button1" class="btn4_letter3" style="left:1052px; top:1px; width:68px; height:22px; ">
  237. <caption>실 행</caption>
  238. <script type="javascript" ev:event="onclick">
  239. <![CDATA[
  240. fExec();
  241. ]]>
  242. </script>
  243. </button>
  244. </group>
  245. </xhtml:body>
  246. </xhtml:html>