123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511 |
- <?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>
- <erprcplist>
- <chk/>
- <bcno/>
- <pid/>
- <patnm/>
- <tclsnmlist/>
- <bcolldt/>
- <spcacptdt/>
- <term/>
- <dpflag/>
- <orddeptcd/>
- </erprcplist>
- <testgrupdetl>
- <chk/>
- <tclsnm/>
- <tclscd/>
- </testgrupdetl>
- </main>
- <send>
- <codeflag/>
- <data/>
- <bcdgbn/>
- <scrnid/>
- </send>
- <hidden>
- <ref>
- <sdd/>
- <edd/>
- <term>60</term>
- <execdeptcd>A1</execdeptcd>
- <getgbn>2</getgbn>
- <erflag>1</erflag>
- <tclscdlist>
- <tclsnmlist/>
- <tclscdlist/>
- <tclscdlist2/>
- <testgrup/>
- <tclsnmlist2/>
- </tclscdlist>
- </ref>
- <termlist/>
- <barcode>
- <barcodeinfo/>
- </barcode>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
- <submission id="TRLLP01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/erprcplist"/>
- <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
- <submission id="TRLZZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/LB01032"/>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <submission id="TRLLJ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcode"/>
- </model>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript">
- <![CDATA[
-
- var iCnt;
- var gTimerID;
-
- function fSetInit(){
-
- var today = getCurrentDate();
- var mDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-1);
-
- erprcplist.fixedcellcheckbox(0, 1) = true;
- erprcplist.fixedcellischeck(0, 1) = false;
- btn_barcdreprnt.disabled = true; //바코드 재출력 버튼 disable 자동조회 off상태일때만 재출력가능
-
- model.setValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101");
- lzzfMakeBrcdPrntObjHanDo("CommAX");
-
- model.setValue("/root/hidden/ref/sdd", mDay.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/edd", today);
- fBaseInfoRef("0103|0106|");
- model.removenode("/root/init/LB0106[1]");
- model.removeNodeset("/root/main/erprcplist");
- model.refresh();
- fGetErPrcpList();
- fGetRefresh();
-
- }
-
- function fGetRefresh(){
-
- window.clearInterval(gTimerID);
-
- if(model.getValue("/root/hidden/ref/execdeptcd") != "A1"){
- if(model.getValue("/root/hidden/ref/erflag") == "2"){
- iCnt = 1;
- }
- else{
- iCnt = 2;
- }
- }else{
- iCnt = 2;
- }
- if(iCnt%2 == 0){
- gTimerID = window.setInterval( "fGetErPrcpList()", 60000 );
- }
- else{
- window.clearInterval(gTimerID);
- }
-
- }
-
- // 조회일자 3일 이전으로 못가게 막기
- function fSetRefFromdd() {
- var todd = model.getValue("/root/hidden/ref/edd");
-
-
- var mDate = todd.toDate("YYYYMMDD").getAddDate(-4);
- var fromdd = model.getValue("/root/hidden/ref/sdd");
-
- if(mDate.getDateFormat("YYYYMMDD") > fromdd) {
- messageBox("5일 이내의 기간만 검색","I006");
-
-
- return false;
- //return true;
- }else if(todd < fromdd) {
- messageBox("기간설정이 잘못", "E005");
-
- return false;
- }else {
- return true;
- }
- }
-
- //자동조회 on / off
- function fTimer(){
-
- if(button89.attribute("text") == "자동조회 On"){ //Off시킬때
- window.clearInterval(gTimerID);
- iCnt = 1;
- button89.attribute("text") = "자동조회 Off";
- btn_barcdreprnt.disabled = false;
- }else{ //Off에서 On시킬때
- if(model.getValue("/root/hidden/ref/execdeptcd") != "A1"){
- if(model.getValue("/root/hidden/ref/erflag") == "2"){
- iCnt = 1;
- }
- else{
- iCnt = 2;
- }
- }else{
- iCnt = 2;
- }
- button89.attribute("text") = "자동조회 On";
- btn_barcdreprnt.disabled = true;
- }
-
- if(iCnt%2 == 0){
- gTimerID = window.setInterval( "fGetErPrcpList()", 60000 );
- }
- else{
- window.clearInterval(gTimerID);
- }
- }
-
- function fGetErPrcpList(){
-
- erprcplist.fixedcellischeck(0, 1) = false; //전체체크 초기화
-
- var today = getCurrentDate();
- var mDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-1);
-
- if (fSetRefFromdd() == false ){
- return;
- };
-
- //model.setValue("/root/hidden/ref/sdd", mDay.getDateFormat("YYYYMMDD"));
- //model.setValue("/root/hidden/ref/edd", today);
- //messageBox( model.getValue("/root/hidden/ref/sdd"),"알림1");
- //messageBox( model.getValue("/root/hidden/ref/edd"),"알림2");
- //model.setValue("/root/hidden/ref/sdd"
-
- model.copyNode("/root/send/data", "/root/hidden/ref");
-
-
- model.removeNodeset("/root/main/erprcplist");
- submit("TRLLP01801");
-
- fSetErTextList();
- }
-
-
- function fSetErTextList(){
- var String = "";
- for(i = 1 ; i < erprcplist.rows ; i ++){
- var tclsterm = model.getValue("/root/main/erprcplist["+i+"]/term");
- var term = model.getValue("/root/hidden/ref/term");
- if(parseInt(tclsterm) >= parseInt(term)){
- if(model.getValue("/root/main/erprcplist["+i+"]/erprcpflag") != "N"){ //응급일 경우
- String += model.getValue("/root/main/erprcplist["+i+"]/bcno") + " " + model.getValue("/root/main/erprcplist["+i+"]/orddeptcd") + " " + model.getValue("/root/main/erprcplist["+i+"]/pid")
- + " " + model.getValue("/root/main/erprcplist["+i+"]/patnm") + " " + model.getValue("/root/main/erprcplist["+i+"]/term") + "분 \n";
- }
- }
- if(model.getValue("/root/main/erprcplist["+i+"]/erprcpflag") != "N"){ //응급일 경우
- if(model.getValue("/root/hidden/ref/erflag") == "3"){
- erprcplist.rowhidden(i) = true;
- }
- if(model.getValue("/root/main/erprcplist["+i+"]/dpflag") == "1"){ //Delta
- //erprcplist.cellStyle ("background-color", i, erprcplist.colRef("tclsnmlist"), i, erprcplist.colRef("tclsnmlist")) = "#dec6a4";
- erprcplist.rowStyle(i, "data", "background-color") = "#dec6a4";
- }else if(model.getValue("/root/main/erprcplist["+i+"]/dpflag") == "2"){ //panic
- //erprcplist.cellStyle ("background-color", i, erprcplist.colRef("tclsnmlist"), i, erprcplist.colRef("tclsnmlist")) = "#7BE6B7";
- erprcplist.rowStyle(i, "data", "background-color") = "#7BE6B7";
- }else{
- //erprcplist.cellStyle ("background-color", i, erprcplist.colRef("tclsnmlist"), i, erprcplist.colRef("tclsnmlist")) = "#fffff";
- erprcplist.rowStyle(i, "data", "background-color") = "#f7a08b";
- }
- }else {
- if(model.getValue("/root/main/erprcplist["+i+"]/dpflag") == "1"){ //Delta
- erprcplist.rowStyle(i, "data", "background-color") = "#dec6a4";
- }else if(model.getValue("/root/main/erprcplist["+i+"]/dpflag") == "2"){ //panic
- erprcplist.rowStyle(i, "data", "background-color") = "#7BE6B7";
- }else{
- erprcplist.rowStyle(i, "data", "background-color") = "#ffffff";
- }
- }
-
- }
- model.setValue("/root/hidden/termlist", String);
- model.refresh();
- }
-
-
- function fSelectTestGrup(){
-
- model.makeValue("/root/send/testgrupnm", combo3.label);
- submit("TRLLF90401" ,false);
- fSetPopUpTclscdList();
- }
-
- function fSetPopUpTclscdList(){
- var count = getNodesetCount("/root/main/testgrupdetl")
- if(count > 0){
-
- var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclsnm2 = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
- var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=2; i<= count; i++){
- sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- sendtclsnm2 = sendtclsnm2 + "▦ " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- }
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist2", sendtclsnm2);
- }
- model.refresh();
- }
- }
-
- // 바코드 재출력_바코드 재출력 화면에 있는 모듈 사용
- function fExeBarcdReprnt(){
-
- var bcno = "";
- var bcollTF = false;
- for(i=1; i< erprcplist.rows; i++){
- if(model.getValue("/root/main/erprcplist["+i+"]/chk")=="1"){
- bcno = bcno + "'" + model.getvalue("/root/main/erprcplist["+i+"]/bcno") + "'" + ",";
- bcollTF = true;
- }
- }
-
- if(bcollTF == false){
- alert("재출력할 검체를 선택하십시오. ");
- }
-
- if(bcollTF) {
- bcno = bcno.substring( 0 ,bcno.length - 1);
- model.makeValue("/root/send/bcnolist" , bcno);
-
- var bcdgbn = "1"; //바코드 재출력 화면 모듈에서 1: 채혈바코드, 2:분주, 3:분자배지
-
- model.setValue("/root/send/bcdgbn", bcdgbn);
- submit("TRLLJ00402");
-
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
-
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
-
- //if(model.getValue("/root/hidden/ref/bcdgbn")=="1"){
- if( prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisSpcBarcodePrint2("/root/hidden/barcode/barcodeinfo");
- }else{
- fLisSpcBarcodePrint("/root/hidden/barcode/barcodeinfo");
- }
- /*}else if(model.getValue("/root/hidden/ref/bcdgbn")=="2"){
- if( prtkind == "2" || prtkind == "6"){
- fLisSpcBarcodePrintB2("/root/hidden/barcode/barcodeinfo"); // 분주 바뀐거
- }else{
- fLisSpcBarcodePrintB("/root/hidden/barcode/barcodeinfo"); // 분주 바뀐거
- }
- }else if(model.getValue("/root/hidden/ref/bcdgbn")=="3"){
- if( prtkind == "2" || prtkind == "6"){
- fLisSpcBarcodePrintD2("/root/hidden/barcode/barcodeinfo");
- }else{
- fLisSpcBarcodePrintD("/root/hidden/barcode/barcodeinfo");
- }
- }*/
- }
- }
-
- //프린터 설정
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1300" pageheight="800" guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:1170px; height:760px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:165px; width:108px; height:14px; ">응급검사리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:180px; x2:1165px; y2:180px; "/>
- <datagrid id="erprcplist" nodeset="/root/main/erprcplist" caption="^바코드번호^처방부서^등록번호^환자명^검사항목명^채혈일시^접수일시^경과(분)^상태^재검^Rack Position" colsep="^" colwidth="25, 80, 80, 70, 75, 315, 105, 140, 55, 60, 35, 85, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:185px; width:1165px; height:545px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="bcno" type="input" style="text-align:center; "/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="pid" type="input" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="tclsnmlist" style="text-align:left; "/>
- <col ref="bcolldt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="spcacptdt" style="text-align:center; "/>
- <col ref="term" style="text-align:right; vertical-align:middle; "/>
- <col ref="rsltstat" style="text-align:center; "/>
- <col ref="retestyn" style="text-align:center; "/>
- <col ref="rackposition" style="text-align:center; "/>
- <col ref="erprcpflag" visibility="hidden" style="text-align:center; "/>
- <col ref="dpflag" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- erprcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_prntset" class="btn3_letter5" style="left:970px; top:157px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- <button id="btn_barcdreprnt" class="btn4_letter6" style="left:1063px; top:157px; width:104px; height:22px; ">
- <caption>바코드재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBarcdReprnt();
- ]]>
- </script>
- </button>
- <button id="button89" class="btn5_letter7" style="left:871px; top:158px; width:97px; height:19px; ">
- <caption>자동조회 On</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTimer();
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:20px; width:1165px; height:135px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1165px; height:135px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:39px; width:94px; height:17px; ">조회일시 :</caption>
- <caption id="caption3" class="search_no_b" style="left:205px; top:40px; width:15px; height:17px; ">~</caption>
- <input id="input26" ref="/root/hidden/ref/sdd" class="input_s_essential" disabled="false" inputtype="date" style="left:105px; top:38px; width:90px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="input1" ref="/root/hidden/ref/edd" class="input_s_essential" disabled="false" inputtype="date" style="left:226px; top:38px; width:90px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="iptSearch" ref="/root/hidden/ref/term" class="input_search" format="999999" style="left:725px; top:8px; width:45px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13"){
- model.setvalue("/root/hidden/ref/term", iptSearch.currentText);
- fSetErTextList();
- }
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_no_b" style="left:775px; top:9px; width:100px; height:17px; color:#ff0000; ">분 이상 경과</caption>
- <caption id="caption4" class="search_no_b" style="left:655px; top:9px; width:70px; height:17px; color:#ff0000; ">응급접수후</caption>
- <caption id="caption5" class="search_name" style="left:16px; top:69px; width:94px; height:17px; ">시행부서 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/execdeptcd" appearance="minimal" style="left:105px; top:68px; width:211px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetRefresh();
- ]]>
- </script>
- </select1>
- <textarea id="textarea1" ref="/root/hidden/termlist" style="left:655px; top:30px; width:485px; height:100px; "/>
- <select1 id="combo2" ref="/root/hidden/ref/getgbn" appearance="minimal" style="left:105px; top:10px; width:211px; height:19px; ">
- <choices>
- <item>
- <label>채혈일시</label>
- <value>1</value>
- </item>
- <item>
- <label>접수일시</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:16px; top:10px; width:94px; height:17px; ">조회구분 :</caption>
- <caption id="caption9" class="search_name" style="left:336px; top:10px; width:94px; height:17px; ">응급구분 :</caption>
- <select1 id="radio1" ref="/root/hidden/ref/erflag" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:430px; top:10px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>응급</label>
- <value>1</value>
- </item>
- <item>
- <label>비응급</label>
- <value>3</value>
- </item>
- <item>
- <label>전체</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetRefresh();
- fGetErPrcpList();
- ]]>
- </script>
- </select1>
- <button id="button61" class="icon_search" style="left:322px; top:99px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- model.removeNodeset("/root/init/LB01032");
- fBaseInfoRef2("01032|");
- ]]>
- </script>
- </button>
- <select1 id="combo3" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:105px; top:98px; width:211px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0103">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSelectTestGrup();
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:16px; top:99px; width:100px; height:17px; ">검사그룹 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1085px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetErPrcpList();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:-11px; top:0px; width:961px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:179px; height:14px; ">응급검사모니터링 화면</caption>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|