123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 :
- * 설 명 :
- * 설 계 자 :
- * 작 성 자 :
- * 작 성 일 :
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>부하테스트</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <datalist>
- <datalist/>
- <bcno/>
- <instcd/>
- <userid/>
- </datalist>
- </main>
- <send>
- <pid/>
- <prcpdd/>
- <prcpcd/>
- <userid/>
- <bcno/>
- <instcd/>
- <maxcount/>
- </send>
- <init>
- <cnt/>
- </init>
- <hidden>
- <bcnolist/>
- <codeflag/>
- <scrnid/>
- <ddflag>True</ddflag>
- <data2>
- <refflag>1</refflag>
- <bcollflag>1</bcollflag>
- <bcollflag1>1</bcollflag1>
- <bizflag>In</bizflag>
- <xrwGBN>inbcoll</xrwGBN>
- <erflag/>
- <arvtime/>
- <hdisp/>
- <roundkind>1</roundkind>
- <roundyn/>
- <tesdeptcd/>
- <testdeptflagcd/>
- <atdoctid>20800122</atdoctid>
- <ibftest/>
- <ibftestp/>
- <prntkind/>
- </data2>
- <data1/>
- <refflag>1</refflag>
- <pid/>
- <prcpdd/>
- <prcpcd/>
- <userid/>
- <bcno/>
- <instcd/>
- <maxcount/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- model.setValue("/root/hidden/prcpdd", getCurrentDate());
- model.refresh();
- ]]>
- </script>
- <!-- 시행부서 조회-->
- <submission id="TRLQP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/datalist"/>
- <submission id="TRLQP00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/datalist"/>
- <submission id="TXLLC80101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/TestInfo"/>
- <submission id="TXLII00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/TestInfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 초기화
- function fSetInit() {
- window.reload();
- }
-
- function fGetBcollList(){
- model.setValue("/root/send/pid" , model.getValue("/root/hidden/pid"));
- model.setValue("/root/send/userid" , model.getValue("/root/hidden/userid"));
- model.setValue("/root/send/prcpdd" , model.getValue("/root/hidden/prcpdd"));
- model.setValue("/root/send/prcpcd" , model.getValue("/root/hidden/prcpcd"));
- model.setValue("/root/send/maxcount" , model.getValue("/root/hidden/maxcount"));
- if(radio1.value == 1){
- submit("TRLQP00501"); //채혈
- }else{
- submit("TRLQP00502"); //채취일시 등록 및 접수
- }
- }
-
- function fExec(){
-
- model.copyNode("/root/send", "/root/hidden");
-
- var tm = getCurrentTime(); //시작시간
-
- if(radio1.value == 1){
- for(i = 1; i < grd_btlist.rows; i++){
- model.setValue("/root/send/data1", model.getValue("/root/main/datalist["+i+"]/datalist"));
- submit("TXLLC80101", false); //채혈
- input5.value = i + " 건 완료";
- if(i == 1) continue;
- grd_btlist.rowHidden(i-1) = true;
- }
- }else{
- for(i = 1; i < grd_btlist.rows; i++){
- model.setValue("/root/send/userid" , model.getValue("/root/main/datalist["+i+"]/userid"));
- model.setValue("/root/send/bcno" , model.getValue("/root/main/datalist["+i+"]/bcno"));
- model.setValue("/root/send/instcd" , model.getValue("/root/main/datalist["+i+"]/instcd"));
- model.setValue("/root/send/prcpdd" , model.getValue("/root/main/datalist["+i+"]/prcpdd"));
- submit("TXLII00104", false); //접수
-
- input5.value = i + " 건 완료";
- if(i == 1) continue;
- grd_btlist.rowHidden(i-1) = true;
- }
- }
- model.resetInstanceNode("/root/main");
- var tm2 = getCurrentTime(); //종료시간
- 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));
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:1px; width:1195px; height:16px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부하 테스트 환자 채혈 및 접수</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">채혈대상 및 접수대상 리스트</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1193px; y2:70px; "/>
- <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; ">
- <col ref="datalist" type="input"/>
- <col ref="temp" type="input"/>
- <col ref="bcno" type="input"/>
- <col ref="instcd" type="input"/>
- <col ref="userid" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_btlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter2" visibility="hidden" style="left:1149px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_btlist);
- ]]>
- </script>
- </button>
- <group id="group2" style="left:0px; top:6px; width:1195px; height:35px; font-weight:bold; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetBcollList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:657px; top:9px; width:90px; height:17px; ">처방코드 :</caption>
- <input id="input1" ref="/root/hidden/prcpcd" style="left:750px; top:8px; width:92px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:277px; top:9px; width:90px; height:17px; ">등록번호 :</caption>
- <input id="input2" ref="/root/hidden/pid" format="9999999999" style="left:370px; top:8px; width:92px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:472px; top:9px; width:90px; height:17px; ">처방일 :</caption>
- <input id="input3" ref="/root/hidden/prcpdd" class="input_search" inputtype="date" style="left:553px; top:8px; width:97px; height:19px; "/>
- <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; ">
- <choices>
- <item>
- <label>채혈</label>
- <value>1</value>
- </item>
- <item>
- <label>접수</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:112px; top:9px; width:90px; height:17px; ">사용자 :</caption>
- <input id="input4" ref="/root/hidden/userid" style="left:190px; top:8px; width:77px; height:19px; "/>
- <input id="input5" ref="/root/init/cnt" class="output_fix" style="left:10px; top:8px; width:92px; height:19px; text-align:center; "/>
- <caption id="caption8" class="search_name" style="left:853px; top:9px; width:90px; height:17px; ">Count :</caption>
- <input id="input6" ref="/root/hidden/maxcount" format="99999" style="left:928px; top:8px; width:42px; height:19px; "/>
- </group>
- <caption id="caption7" style="left:133px; top:43px; width:991px; height:30px; color:#3366ff; ">
- <![CDATA[사용자 : 검체접수시 접수자 ID, 등록번호 : 채혈 및 접수시 환자 등록번호, 처방일 : 채혈시 처방일 접수시 바코드발행일, 처방코드 : 해당 처방코드 및 검사코드, Count : 조회대상 건수
- Default : Session Default : null(필요시입력) Default : Current Date Default : null(필요시 입력)]]>
- </caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:19px; width:1193px; height:25px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:23px; x2:1193px; y2:23px; "/>
- <button id="btn_reset" class="btn4_letter3" style="left:1121px; top:1px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:93px; top:1px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fPrint();
- if(grd_btlist.rows > 1) {
- grd_btlist.sort(1, 2, grd_btlist.rows - 1, 2) = "asc";
- exeReportPreview("RPLLC00100", "XMLSTR", "", "", "");
- fPrintLb();
- }
- ]]>
- </script>
- </button>
- <button id="btn_prntset" class="btn3_letter5" visibility="hidden" style="left:0px; top:1px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter3" style="left:1052px; top:1px; width:68px; height:22px; ">
- <caption>실 행</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExec();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|