123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <examrmlst>
- <item>
- <sel/>
- <pid/>
- <pidnm/>
- <tagno/>
- <regroomdate/>
- <rtime/>
- <examid/>
- <examroomid/>
- <hoscode/>
- </item>
- </examrmlst>
- <pidexamlst>
- <item>
- <sel/>
- <examroomid/>
- <examnm/>
- <examorddd/>
- <finyn/>
- <findate/>
- <rtime/>
- <pid/>
- <examid/>
- </item>
- </pidexamlst>
- <taglst>
- <item>
- <sel/>
- <pid/>
- <pidnm/>
- <tagno/>
- <suppstat/>
- <supptime/>
- <retutime/>
- </item>
- </taglst>
- <waitlst>
- <item>
- <examroomid/>
- <examroomnm/>
- <waitpsnno/>
- </item>
- </waitlst>
- </main>
- <send>
- <rfid/>
- <save>
- <room/>
- <exam/>
- </save>
- </send>
- <init>
- <room>
- <roomlst>
- <itemroom/>
- </roomlst>
- </room>
- <send>
- <srchorddd/>
- <srchexamroom/>
- <srchpid/>
- <srchpnm/>
- <srchtagno/>
- <srchinstcd/>
- </send>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /***********************************************************************************************************************
- *초기화
- ************************************************************************************************************************/
- function fInit() {
- // 진료일자
- model.setValue("/root/init/send/srchorddd",getCurrentDate());
-
- //검사실 코드
- model.setValue("/root/init/send/srchinstcd",getUserInfo("dutplceinstcd"));
- var ret = submit("TRAHR00101");
- if(ret) cmb_examroom.select(0);
-
- // 대기자 인원정보
- fGetWaitList();
-
- //case 선택
- model.toggle("case_examroom");
- btn_exam.selected = true;
-
- model.refresh();
-
- }
-
- /***********************************************************************************************************************
- *RFID 진행정보를 조회한다.
- ************************************************************************************************************************/
- function fGetRfidList() {
- var ret = false;
- var sel = sw_rfid.selectedIndex;
- switch(sel) {
- case 0: ret = fGetExamRooList(); break;
- case 1: ret = fGetPidExamList(); break;
- case 2: ret = fGetTagList(); break;
- default: break;
- }
-
- if(ret) fGetWaitList();
- }
-
- /***********************************************************************************************************************
- *검사실별 대기자 정보를 조회
- ************************************************************************************************************************/
- function fGetExamRooList() {
- var ret = submit("TRAHR00102");
- return ret;
- }
-
- /***********************************************************************************************************************
- *환자별 검사정보를 조회
- ************************************************************************************************************************/
- function fGetPidExamList() {
-
- var pid = model.getValue("/root/send/rfid/srchpid");
- if(pid == "") {
- messageBox("환자번호를","C001");
- }else {
- var ret = submit("TRAHR00103");
- }
- return ret;
- }
-
- /***********************************************************************************************************************
- *태그지급 정보를 조회
- ************************************************************************************************************************/
- function fGetTagList() {
- var ret = submit("TRAHR00104");
- return ret;
- }
-
- /***********************************************************************************************************************
- *검사실별 대기인원 정보 조회
- ************************************************************************************************************************/
- function fGetWaitList() {
- submit("TRAHR00105");
- }
-
- /***********************************************************************************************************************
- *검사실별 대기인원 정보 조회
- ************************************************************************************************************************/
- function fSetExamEnd() {
- var sel = sw_rfid.selectedIndex;
- var ret = false;
-
- if(sel == 0) {
- var nodeList = instance1.selectNodes(grd_roomlst.nodeset + "[sel='Y']");
- var rCSV = getNodeListCSV(nodeList);
- model.setValue("/root/send/save/room",rCSV);
- model.setValue("/root/send/save/exam","");
- ret = submit("TXAHR00101");
-
- }else if(sel == 1) {
- var nodeList = instance1.selectNodes(grd_examlst.nodeset + "[sel='Y']");
- var rCSV = getNodeListCSV(nodeList);
- model.setValue("/root/send/save/room","");
- model.setValue("/root/send/save/exam",rCSV);
- ret = submit("TXAHR00101");
- }
- if(ret) {
- fGetRfidList();
- fSaveInit();
- }
- }
- /***********************************************************************************************************************
- *검사완료 목록 초기화
- ************************************************************************************************************************/
- function fSaveInit() {
- model.resetInstanceNode("/root/send/save");
- }
-
- ]]>
- </script>
- <submission id="TRAHR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send" resultref="/root/init/room/roomlst"/>
- <submission id="TRAHR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfid" resultref="/root/main/pidexamlst"/>
- <submission id="TRAHR00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfid" resultref="/root/main/examrmlst"/>
- <submission id="TRAHR00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfid" resultref="/root/main/taglst"/>
- <submission id="TRAHR00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send" resultref="/root/main/waitlst"/>
- <submission id="TXAHR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">검사진행관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- copyNodesetType("/root/send/rfid","/root/init/send","replace");
- fGetRfidList();
- fSaveInit();
- ]]>
- </script>
- </button>
- <line id="line18" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-left-style:solid; "/>
- <caption id="caption59" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">건진일자 :</caption>
- <caption id="caption21" class="search_name" style="left:250px; top:8px; width:86px; height:17px; ">검사실명 :</caption>
- <caption id="caption1" class="search_name" style="left:505px; top:8px; width:89px; height:17px; ">등록번호 :</caption>
- <caption id="caption2" class="search_name" style="left:855px; top:8px; width:89px; height:17px; ">태그번호 :</caption>
- <input id="ipt_ordddate" ref="/root/init/send/srchorddd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:115px; height:19px; "/>
- <select1 id="cmb_examroom" ref="/root/init/send/srchexamroom" class="combo_default" appearance="minimal" style="left:343px; top:8px; width:136px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/room/roomlst/itemroom">
- <label ref="examroomnm"/>
- <value ref="examroomid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="/root/init/send/srchtagno" style="left:950px; top:8px; width:105px; height:19px; "/>
- <input id="ipt_srchpid" ref="/root/init/send/srchpid" class="input_search" imemode="hangul" style="left:595px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- inputEnterKey("btn_srchpat", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_srchpat" class="icon_search" style="left:700px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHA00100", "pid", ipt_srchpid.currentText , "N", "/root/send" ,ipt_srchpid.attribute("ref"), opt_srchpnm.attribute("ref") );
- ]]>
- </script>
- </button>
- <output id="opt_srchpnm" ref="/root/init/send/srchpnm" class="output_fix" style="left:720px; top:8px; width:115px; height:19px; "/>
- </group>
- <line id="line20" class="line_1" style="x1:0px; y1:70px; x2:330px; y2:70px; "/>
- <caption id="caption4" class="tit_2" style="left:0px; top:55px; width:144px; height:14px; ">검사실대기인원</caption>
- <datagrid id="datagrid1" nodeset="/root/main/waitlst/item" caption="검사실코드^검사실명^대기인원" colsep="^" colwidth="90, 150, 88" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:330px; height:663px; ">
- <col ref="examroomid"/>
- <col ref="examroomnm"/>
- <col ref="waitpsnno"/>
- </datagrid>
- <switch id="sw_rfid" style="left:335px; top:71px; width:854px; height:667px; ">
- <case id="case_examroom" selected="true">
- <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:846px; y2:25px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; ">검사실대기리스트</caption>
- <datagrid id="grd_roomlst" nodeset="/root/main/examrmlst/item" caption="선택^고객번호^고객명^태그번호^등록시간^접수시간^검사번호^방번호^기관코드" colsep="^" colwidth="100, 170, 170, 170, 206, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:841px; height:630px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="pid"/>
- <col ref="pidnm" style="left:200px; top:23px; width:100px; height:23px; "/>
- <col ref="tagno"/>
- <col ref="regroomdate" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="rtime" visibility="hidden" style="left:566px; top:23px; width:105px; height:23px; "/>
- <col ref="examid" visibility="hidden"/>
- <col ref="examroomid" visibility="hidden"/>
- <col ref="hoscode" visibility="hidden"/>
- </datagrid>
- <button id="btn_choisel" class="btn2_letter4" style="left:782px; top:5px; width:841px; height:0px; ">
- <caption>검사완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetExamEnd();
- ]]>
- </script>
- </button>
- </case>
- <case id="case_pid">
- <datagrid id="grd_examlst" nodeset="/root/main/pidexamlst/item" caption="선택^방번호^검사명^검사일^완료여부^완료시간^접수시간^등록번호^검사번호" colsep="^" colwidth="100, 130, 150, 150, 100, 186, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:841px; height:630px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="examroomid"/>
- <col ref="examnm"/>
- <col ref="examorddd"/>
- <col disabled="true" ref="finyn" type="combo">
- <choices>
- <item>
- <label>검사종료</label>
- <value>Y</value>
- </item>
- <item>
- <label>검사중</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="findate" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="rtime" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="examid" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_examlst.row;
- var col = grd_examlst.col;
-
- if(col == grd_examlst.colRef("sel")) {
- var chk = grd_examlst.valueMatrix(row,grd_examlst.colRef("sel"));
- var finyn = grd_examlst.valueMatrix(row,grd_examlst.colRef("finyn"));
- if(chk == "Y" && finyn == "Y") {
- messageBox("검사종료 된 검사가" ,"E005");
- grd_examlst.valueMatrix(row,grd_examlst.colRef("sel")) = "N";
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption7" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; ">고객별검사항목</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:846px; y2:25px; "/>
- <button id="button1" class="btn2_letter4" style="left:782px; top:5px; width:841px; height:0px; ">
- <caption>검사완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetExamEnd();
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:5px; y1:25px; x2:846px; y2:25px; "/>
- </case>
- <case id="case_tag">
- <datagrid id="datagrid4" nodeset="/root/main/taglst/item" caption="선택^고객번호^고객명^태그번호^지급상태^지급시간^반납시간" colsep="^" colwidth="100, 100, 118, 100, 100, 150, 150" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:841px; height:630px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="pid"/>
- <col ref="pidnm" style="left:200px; top:23px; width:100px; height:23px; "/>
- <col ref="tagno"/>
- <col disabled="true" ref="suppstat" type="combo">
- <choices>
- <item>
- <label>지급</label>
- <value>0</value>
- </item>
- <item>
- <label>반납</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="supptime" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="retutime" format="yyyy-mm-dd hh:nn:ss"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:5px; y1:25px; x2:846px; y2:25px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; ">태그지급정보</caption>
- </case>
- </switch>
- <button id="btn_tag" class="btn_sw" group="tab" selected="true" style="left:503px; top:50px; width:72px; height:22px; ">
- <caption>태그지급</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_tag");
- btn_tag.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_exam" class="btn_sw" group="tab" selected="true" style="left:335px; top:50px; width:96px; height:22px; ">
- <caption>검사대기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_examroom");
- btn_exam.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_pid" class="btn_sw" group="tab" selected="true" style="left:431px; top:50px; width:72px; height:22px; ">
- <caption>고객별검사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_pid");
- btn_pid.selected = true;
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter5" style="left:255px; top:50px; width:75px; height:19px; ">
- <caption>대기자조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetWaitList();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|