1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLS00500_결과수정건수.xrw
- * 설 명 : 결과수정건수
- * 설 계 자 : (주)에이씨케이 - 송요셉
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2008.04.21
- * 수정이력 :
- * 기 타 :
- -->
- <?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>TAT조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <tattype1>
- <patnm/>
- <pid/>
- <bcno/>
- <tclsnm/>
- <prcprgstdt/>
- <barcdprntdt/>
- <bcolldt/>
- <spcpsueacptdt/>
- <spcacptdt/>
- <lastreptdt/>
- <spcpgaplast/>
- <barcdgaplast/>
- <prcpgaplast/>
- <bcollgaplast/>
- <acptgaplast/>
- <spcpgaplastday/>
- <barcdgaplastday/>
- <prcpgaplastday/>
- <bcollgaplastday/>
- <acptgaplastday/>
- </tattype1>
- <tattype2>
- <timeterm/>
- <tclscnt/>
- <avgtesttime/>
- <avgovertime/>
- <mintesttime/>
- <maxtesttime/>
- <avgtestday/>
- <avgoverday/>
- <mintestday/>
- <maxtestday/>
- <overtclscnt/>
- <tatrate/>
- </tattype2>
- <tattype3>
- <patnm/>
- <pid/>
- <spcnm/>
- <bcno/>
- <prcprgstdt/>
- <barcdprntdt/>
- <bcolldt/>
- <spcpsueacptdt/>
- <spcacptdt/>
- <lastreptdt/>
- <spcpgaplast/>
- <barcdgaplast/>
- <prcpgaplast/>
- <bcollgaplast/>
- <acptgaplast/>
- <spcpgaplastday/>
- <barcdgaplastday/>
- <prcpgaplastday/>
- <bcollgaplastday/>
- <acptgaplastday/>
- <resncdlist/>
- <testcmtcd/>
- </tattype3>
- <tattype4>
- <tclscd/>
- <tclsnm/>
- <tattestcnt/>
- <testcnt/>
- <spcpgaplast/>
- <barcdgaplast/>
- <prcpgaplast/>
- <bcollgaplast/>
- <acptgaplast/>
- <spcpgaplastday/>
- <barcdgaplastday/>
- <prcpgaplastday/>
- <bcollgaplastday/>
- <acptgaplastday/>
- <tatrate/>
- </tattype4>
- <tattype5>
- <patnm/>
- <pid/>
- <bcno/>
- <tclsnm/>
- <spcnm/>
- <prcprgstdt/>
- <barcdprntdt/>
- <bcolldt/>
- <spcpsueacptdt/>
- <spcacptdt/>
- <lastreptdt/>
- <spcpgaplast/>
- <barcdgaplast/>
- <prcpgaplast/>
- <bcollgaplast/>
- <acptgaplast/>
- <spcpgaplastday/>
- <barcdgaplastday/>
- <prcpgaplastday/>
- <bcollgaplastday/>
- <acptgaplastday/>
- <resncdlist/>
- <testcmtcd/>
- <testresncmtcd/>
- <testcd/>
- </tattype5>
- <testgrupdetl/>
- <searchtest/>
- <page>
- <lastpage/>
- <now/>
- <total/>
- </page>
- <spccd>
- <chk/>
- <spccd/>
- <spcnm/>
- </spccd>
- </main>
- <send>
- <data1/>
- <codeflag/>
- <tclscd/>
- <tclsnm/>
- <resn/>
- <spccdlist/>
- <go>
- <tclscdlist/>
- <code2/>
- <code/>
- </go>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <fromdd/>
- <todd/>
- <gbn>H1</gbn>
- <flag>1</flag>
- <yy/>
- <wcmb>1</wcmb>
- <ocmb>1</ocmb>
- <testcd/>
- <tclscdlist>
- <tclscdlist/>
- <tclsnmlist/>
- <tclscdlist2/>
- <testgrup/>
- </tclscdlist>
- <over/>
- <tattime>60</tattime>
- <tathour>0</tathour>
- <tatday>0</tatday>
- <fromtm/>
- <totm/>
- <cmtyn/>
- <serious/>
- <resnlist/>
- <page>1</page>
- <code>2</code>
- <code2/>
- <pid/>
- </ref>
- <spccd/>
- <waitmsg/>
- <calcchk/>
- <resnsavecnt/>
- <viewflag>1</viewflag>
- </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="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLLS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/tattype1"/>
- <submission id="TRLLS01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tattype2"/>
- <submission id="TRLLS01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/tattype3"/>
- <submission id="TRLLS01304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tattype4"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
- <submission id="TRLLF90102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/searchtest"/>
- <submission id="TRLLS01305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/tattype5"/>
- <submission id="TXLLS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/savecnt"/>
- <submission id="TRLMR91000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/go" replace="instance" resultref="/root/main/spccd"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetInit(gbn){
- if(gbn == "2"){
- }else{
- model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
- model.setValue("/root/hidden/ref/todd" , getCurrentDate());
- model.setValue("/root/hidden/ref/fromtm", "0000");
- model.setValue("/root/hidden/ref/totm" , "2359");
- //fBaseInfoRef("0000|0002|0106|0103");
- model.setValue("/root/send/codeflag", "0000|0106|0103|0404|0136|"); //0106 시행부서 // 0105 검체 // 0111 계 0404 TAT 지연사유 //0136 중증구분 0002|뺌
- submit("TRLZZ00101");
-
- model.removenode("/root/init/LB0106[1]");
- model.removenode("/root/init/LB0404[2]"); //[TAT지연사유] 제거
-
- model.removeNodeset("/root/main/tattype1");
- model.removeNodeset("/root/main/tattype2");
- model.removeNodeset("/root/main/tattype3");
- model.removeNodeset("/root/main/tattype4");
- model.removeNodeset("/root/main/tattype5");
-
- model.toggle("case1");
- pattype_btn.selected == true;
- fGridInit();
- //model.refresh();
- }
-
- }
-
- function fGetTatTypeList(){
- var tclscd = model.getValue("/root/hidden/ref/testcd");
- var tclsnmlist = model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist");
- var vTime = parseInt(model.getValue("/root/hidden/ref/tatday")) * 1440 //일 -> 분
- + parseInt(model.getValue("/root/hidden/ref/tathour")) * 60 //시간 -> 분
- + parseInt(model.getValue("/root/hidden/ref/tattime"));
- var vLastPage; //검사별, 검체별, 항목별 페이지 처리시 마지막 페이지
-
- if(model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist") == ""){
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist","");
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2","");
- model.setValue("/root/hidden/ref/tclscdlist/testgrup","");
- model.refresh();
- }
- model.copyNode("/root/send/data1", "/root/hidden/ref");
- model.setValue("/root/send/data1/tattime", vTime);
- model.setValue("/root/hidden/waitmsg", "조회중입니다");
- opt_msg.refresh();
- model.removeNodeset("/root/main/page");
-
- if(pattype_btn.selected == true){
- if(tclscd == ""){
- messageBox("검사항목을 선택하여 주십시오.", "E");
- return;
- }
-
- model.removeNodeset("/root/main/tattype1");
- grd_patlist.nodeset = "/root/main/tattype1";
-
- grp_wait.visible = true;
- model.refresh();
- submit("TRLLS01301", false);
-
- vLastPage = model.getValue("/root/main/page/lastpage");
-
- //페이지 처리 조회후 최종건수 계산해야 하기때문에
- for(page = 2 ; page <= vLastPage ; page++){
-
- model.setValue("/root/send/data1/page", page);
- model.setValue("/root/hidden/waitmsg"
- , (model.getValue("/root/main/page/total") > 10000 * page ? 10000 * page : model.getValue("/root/main/page/total")) + "/" + model.getValue("/root/main/page/total")
- + " 조회중...");
- opt_msg.refresh();
-
- submit("TRLLS01301", false);
- }
-
- //조회 후 통계정보
- fSetTatInfo("A", vTime, "A", "");
-
- }else if(codetype_btn.selected == true){
-
- model.removeNodeset("/root/main/tattype2");
- grp_wait.visible = true;
- model.refresh();
- submit("TRLLS01302", false);
- //fCalcnt("1");
-
- }else if(bcnotype_btn.selected == true){
- //if(tclsnmlist == ""){
- // alert("검사항목을 선택하여 주십시오.");
- // return;
- //}
-
- model.removeNodeset("/root/main/tattype3");
- grd_bcnolist.nodeset = "/root/main/tattype3";
- grp_wait.visible = true;
- model.refresh();
- submit("TRLLS01303", false);
-
- vLastPage = model.getValue("/root/main/page/lastpage");
-
- //페이지 처리 조회후 최종건수 계산해야 하기때문에
- for(page = 2 ; page <= vLastPage ; page++){
-
- model.setValue("/root/send/data1/page", page);
- model.setValue("/root/hidden/waitmsg"
- , (model.getValue("/root/main/page/total") > 10000 * page ? 10000 * page : model.getValue("/root/main/page/total")) + "/" + model.getValue("/root/main/page/total")
- + " 조회중...");
- opt_msg.refresh();
-
- submit("TRLLS01303", false);
- }
-
- //조회 후 통계정보
- fSetTatInfo("B", vTime, "A", "");
- }
- else if(depttype_btn.selected == true){
-
- model.removeNodeset("/root/main/tattype4");
- grp_wait.visible = true;
- model.refresh();
- submit("TRLLS01304", false);
-
- //fCalcnt("2");
- }
- else if(itemtype_btn.selected == true){
- //if(tclsnmlist == ""){
- // alert("검사항목을 선택하여 주십시오.");
- // return;
- //}
- model.removeNodeset("/root/main/tattype5");
- grd_itemlist.nodeset = "/root/main/tattype5";
- grp_wait.visible = true;
- model.refresh();
- submit("TRLLS01305", false);
-
- vLastPage = model.getValue("/root/main/page/lastpage");
-
- //페이지 처리 조회후 최종건수 계산해야 하기때문에
- for(page = 2 ; page <= vLastPage ; page++){
-
- model.setValue("/root/send/data1/page", page);
- model.setValue("/root/hidden/waitmsg"
- , (model.getValue("/root/main/page/total") > 10000 * page ? 10000 * page : model.getValue("/root/main/page/total")) + "/" + model.getValue("/root/main/page/total")
- + " 조회중...");
- opt_msg.refresh();
-
- submit("TRLLS01305", false);
- }
-
- //조회 후 통계정보
- fSetTatInfo("C", vTime, "A", "");
- }
- //model.refresh();
-
- grp_wait.visible = false;
-
- fSetGridColVisible(rdo_vewflag.value);
- //model.refresh();
- }
-
- //조회 후 통계 정보 계산
- //pRef : 통계구분
- //pTime : Over Time시간
- //pFlag : 목표 tat구분
- //pGrdObj : Nodeset구분(재조회버튼클릭시)
- function fSetTatInfo(pRef, pTime, pFlag, pGrdObj){
-
- //-------- 조회 후 계산되어질 변수들
- var vPsuTotal, vBarTotal, vBcoTotal, vAcpTotal, vPrcTotal; //Total 건수
- var vPsuOver, vBarOver, vBcoOver, vAcpOver, vPrcOver; //Over 건수
- var vPsuTat, vBarTat, vBcoTat, vAcpTat, vPrcTat; //TAT 충족률
- var vPsuAvg, vBarAvg, vBcoAvg, vAcpAvg, vPrcAvg; //평균검사시간
- var vTime = pTime;
- var xPath = "";
-
- if(pRef == "A"){ //검사별
- xPath = "/root/main/tattype1";
- }else if(pRef == "B"){ //검체별
- xPath = "/root/main/tattype3";
- }else if(pRef == "C"){ //항목별
- xPath = "/root/main/tattype5";
- }
-
- if(model.getXPathValue('count('+ xPath +'[pid = ""]/spcpgaplast)') < 4){
- return; // 조회된 내역이 없을것이므로 return;
- }
-
- //Total 건수//Over 건수//Tat 충족률//평균검사시간
- if(pFlag == "A" || pFlag == "3"){ //가접수-최종
-
- vPsuTotal = model.getXPathValue('count('+ xPath +'[pid != "" and spcpgaplast != "" ]/spcpgaplast)');
- vPsuOver = model.getXPathValue('count('+ xPath +'[pid != "" and spcpgaplast > "' + vTime + '" ]/spcpgaplast)');
- vPsuTat = vPsuTotal < 1 ? "" : Math.round((100 - vPsuOver / vPsuTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
- vPsuAvg = vPsuTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and spcpgaplast != "" ]/spcpgaplast)'));
-
- model.setValue(xPath + "[1]/spcpgaplast" , vPsuTotal);
- model.setValue(xPath + "[1]/spcpgaplastday" , vPsuTotal);
- model.setValue(xPath + "[2]/spcpgaplast" , vPsuOver);
- model.setValue(xPath + "[2]/spcpgaplastday" , vPsuOver);
- model.setValue(xPath + "[3]/spcpgaplast" , vPsuTat);
- model.setValue(xPath + "[3]/spcpgaplastday" , vPsuTat);
- //model.setValue(xPath + "[4]/spcpgaplast" , Math.floor(vPsuAvg/60) + "시간 " + vPsuAvg % 60 + "분");
- model.setValue(xPath + "[4]/spcpgaplast" , vPsuAvg);
- model.setValue(xPath + "[4]/spcpgaplastday" , Math.floor(vPsuAvg/1440) + "일 " + Math.floor((vPsuAvg % 1440) / 60 ) + "시간 " + vPsuAvg % 60 + "분");
-
- if(pFlag == "3" && pGrdObj == "Nodeset"){
- if(pRef == "A"){
- grd_patlist.nodeset = xPath + "[pid = '' or spcpgaplast > '" + vTime + "' ]";
- }else if(pRef == "B"){
- grd_bcnolist.nodeset = xPath + "[pid = '' or spcpgaplast > '" + vTime + "' ]";
- }else if(pRef == "C"){
- grd_itemlist.nodeset = xPath + "[pid = '' or spcpgaplast > '" + vTime + "' ]";
- }
- }
- }
-
- if(pFlag == "A" || pFlag == "5"){ //바코드-최종
-
- vBarTotal = model.getXPathValue('count('+ xPath +'[pid != "" and barcdgaplast != "" ]/barcdgaplast)');
- vBarOver = model.getXPathValue('count('+ xPath +'[pid != "" and barcdgaplast > "' + vTime + '" ]/barcdgaplast)');
- vBarTat = vBarTotal < 1 ? "" : Math.round((100 - vBarOver / vBarTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
- vBarAvg = vBarTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and barcdgaplast != "" ]/barcdgaplast)'));
-
- model.setValue(xPath + "[1]/barcdgaplast" , vBarTotal);
- model.setValue(xPath + "[1]/barcdgaplastday" , vBarTotal);
- model.setValue(xPath + "[2]/barcdgaplast" , vBarOver);
- model.setValue(xPath + "[2]/barcdgaplastday" , vBarOver);
- model.setValue(xPath + "[3]/barcdgaplast" , vBarTat);
- model.setValue(xPath + "[3]/barcdgaplastday" , vBarTat);
- //model.setValue(xPath + "[4]/barcdgaplast" , Math.floor(vBarAvg/60) + "시간 " + vBarAvg % 60 + "분");
- model.setValue(xPath + "[4]/barcdgaplast" , vBarAvg);
- model.setValue(xPath + "[4]/barcdgaplastday" , Math.floor(vBarAvg/1440) + "일 " + Math.floor((vBarAvg % 1440) / 60 ) + "시간 " + vBarAvg % 60 + "분");
-
- if(pFlag == "5" && pNode == "Nodeset"){
- if(pRef == "A"){
- grd_patlist.nodeset = xPath + "[pid = '' or barcdgaplast > '" + vTime + "' ]";
- }else if(pRef == "B"){
- grd_bcnolist.nodeset = xPath + "[pid = '' or barcdgaplast > '" + vTime + "' ]";
- }else if(pRef == "C"){
- grd_itemlist.nodeset = xPath + "[pid = '' or barcdgaplast > '" + vTime + "' ]";
- }
- }
- }
-
- if(pFlag == "A" || pFlag == "4"){ //처방-최종
-
- vPrcTotal = model.getXPathValue('count('+ xPath +'[pid != "" and prcpgaplast != "" ]/prcpgaplast)');
- vPrcOver = model.getXPathValue('count('+ xPath +'[pid != "" and prcpgaplast > "' + vTime + '" ]/prcpgaplast)');
- vPrcTat = vPrcTotal < 1 ? "" : Math.round((100 - vPrcOver / vPrcTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
- vPrcAvg = vPrcTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and prcpgaplast != "" ]/prcpgaplast)'));
-
- model.setValue(xPath + "[1]/prcpgaplast" , vPrcTotal);
- model.setValue(xPath + "[1]/prcpgaplastday" , vPrcTotal);
- model.setValue(xPath + "[2]/prcpgaplast" , vPrcOver);
- model.setValue(xPath + "[2]/prcpgaplastday" , vPrcOver);
- model.setValue(xPath + "[3]/prcpgaplast" , vPrcTat);
- model.setValue(xPath + "[3]/prcpgaplastday" , vPrcTat);
- //model.setValue(xPath + "[4]/prcpgaplast" , Math.floor(vPrcAvg/60) + "시간 " + vPrcAvg % 60 + "분");
- model.setValue(xPath + "[4]/prcpgaplast" , vPrcAvg);
- model.setValue(xPath + "[4]/prcpgaplastday" , Math.floor(vPrcAvg/1440) + "일 " + Math.floor((vPrcAvg % 1440) / 60 ) + "시간 " + vPrcAvg % 60 + "분");
-
- if(pFlag == "4" && pGrdObj == "Nodeset"){
- if(pRef == "A"){
- grd_patlist.nodeset = xPath + "[pid = '' or prcpgaplast > '" + vTime + "' ]";
- }else if(pRef == "B"){
- grd_bcnolist.nodeset = xPath + "[pid = '' or prcpgaplast > '" + vTime + "' ]";
- }else if(pRef == "C"){
- grd_itemlist.nodeset = xPath + "[pid = '' or prcpgaplast > '" + vTime + "' ]";
- }
- }
- }
-
- if(pFlag == "A" || pFlag == "2"){ //채혈-최종
-
- vBcoTotal = model.getXPathValue('count('+ xPath +'[pid != "" and bcollgaplast != "" ]/bcollgaplast)');
- vBcoOver = model.getXPathValue('count('+ xPath +'[pid != "" and bcollgaplast > "' + vTime + '" ]/bcollgaplast)');
- vBcoTat = vBcoTotal < 1 ? "" : Math.round((100 - vBcoOver / vBcoTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
- vBcoAvg = vBcoTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and bcollgaplast != "" ]/bcollgaplast)'));
-
- model.setValue(xPath + "[1]/bcollgaplast" , vBcoTotal);
- model.setValue(xPath + "[1]/bcollgaplastday" , vBcoTotal);
- model.setValue(xPath + "[2]/bcollgaplast" , vBcoOver);
- model.setValue(xPath + "[2]/bcollgaplastday" , vBcoOver);
- model.setValue(xPath + "[3]/bcollgaplast" , vBcoTat);
- model.setValue(xPath + "[3]/bcollgaplastday" , vBcoTat);
- //model.setValue(xPath + "[4]/bcollgaplast" , Math.floor(vBcoAvg/60) + "시간 " + vBcoAvg % 60 + "분");
- model.setValue(xPath + "[4]/bcollgaplast" , vBcoAvg);
- model.setValue(xPath + "[4]/bcollgaplastday" , Math.floor(vBcoAvg/1440) + "일 " + Math.floor((vBcoAvg % 1440) / 60 ) + "시간 " + vBcoAvg % 60 + "분");
-
- if(pFlag == "2" && pGrdObj == "Nodeset"){
- if(pRef == "A"){
- grd_patlist.nodeset = xPath + "[pid = '' or bcollgaplast > '" + vTime + "' ]";
- }else if(pRef == "B"){
- grd_bcnolist.nodeset = xPath + "[pid = '' or bcollgaplast > '" + vTime + "' ]";
- }else if(pRef == "C"){
- grd_itemlist.nodeset = xPath + "[pid = '' or bcollgaplast > '" + vTime + "' ]";
- }
- }
- }
-
- if(pFlag == "A" || pFlag == "1"){ //접수-최종
-
- vAcpTotal = model.getXPathValue('count('+ xPath +'[pid != "" and acptgaplast != "" ]/acptgaplast)');
- vAcpOver = model.getXPathValue('count('+ xPath +'[pid != "" and acptgaplast > "' + vTime + '" ]/acptgaplast)');
- vAcpTat = vAcpTotal < 1 ? "" : Math.round((100 - vAcpOver / vAcpTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
- vAcpAvg = vAcpTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and acptgaplast != "" ]/acptgaplast)'));
-
- model.setValue(xPath + "[1]/acptgaplast" , vAcpTotal);
- model.setValue(xPath + "[1]/acptgaplastday" , vAcpTotal);
- model.setValue(xPath + "[2]/acptgaplast" , vAcpOver);
- model.setValue(xPath + "[2]/acptgaplastday" , vAcpOver);
- model.setValue(xPath + "[3]/acptgaplast" , vAcpTat);
- model.setValue(xPath + "[3]/acptgaplastday" , vAcpTat);
- //model.setValue(xPath + "[4]/acptgaplast" , Math.floor(vAcpAvg/60) + "시간 " + vAcpAvg % 60 + "분");
- model.setValue(xPath + "[4]/acptgaplast" , vAcpAvg);
- model.setValue(xPath + "[4]/acptgaplastday" , Math.floor(vAcpAvg/1440) + "일 " + Math.floor((vAcpAvg % 1440) / 60 ) + "시간 " + vAcpAvg % 60 + "분");
-
- if(pGrdObj == "Nodeset"){ //전체 선택 후 재조회시 접수-최종 기준으로 nodeset 변경
- if(pRef == "A"){
- grd_patlist.nodeset = xPath + "[pid = '' or acptgaplast > '" + vTime + "' ]";
- }else if(pRef == "B"){
- grd_bcnolist.nodeset = xPath + "[pid = '' or acptgaplast > '" + vTime + "' ]";
- }else if(pRef == "C"){
- grd_itemlist.nodeset = xPath + "[pid = '' or acptgaplast > '" + vTime + "' ]";
- }
- }
- }
- }
-
-
- //사용안함
- function fCalcnt(gbn){
-
- if(gbn == "1"){
- for(i = 1; i < grd_codelist.rows ; i++){
-
- var tatrate = model.getValue("/root/main/tattype2["+i+"]/tatrate");
-
- var ext = Math.pow(10, 2);
- var caltatrate = Math.round(tatrate * ext) / ext;
-
- model.setValue("/root/main/tattype2["+i+"]/tatrate", caltatrate);
-
- }
- }else if(gbn == "2"){
- for(i = 1; i < grd_deptlist.rows ; i++){
-
- var tatcnt = model.getValue("/root/main/tattype4["+i+"]/tattestcnt");
- var tclscnt = model.getValue("/root/main/tattype4["+i+"]/testcnt");
- var tatrate = tatcnt/tclscnt * 100;
-
-
- var ext = Math.pow(10, 2);
- var caltatrate = Math.round(tatrate * ext) / ext;
-
- model.setValue("/root/main/tattype4["+i+"]/tatrate", caltatrate);
- }
- }
- model.refresh();
- }
-
-
- function fGridInit() {
-
- caption8.visible = false;
- caption10.visible = false;
- input1.visible = false;
- ipt_tclscd.visible = true;
- caption6.visible = true;
- combo3.visible = false;
- ipt_tclscdlist.visible = false;
- img1.visible = false;
- btn_saveresn.visible = false;
-
- if(pattype_btn.selected == true){
- model.toggle("case1");
- caption8.visible = true;
- caption10.visible = true;
- input1.visible = true;
- btn_saveresn.visible = false; //사유저장버튼
- checkbox2.visible = false; //사유여부
- grp_resn.visible = false; //사유일괄지정
- grp_reref.visible = true; //재계산
- btn_spc.visible = false;
- }
- else if(codetype_btn.selected == true){
- model.toggle("case2");
- caption8.visible = true;
- caption10.visible = true;
- input1.visible = true;
- btn_saveresn.visible = false; //사유저장버튼
- checkbox2.visible = false; //사유여부
- grp_resn.visible = false; //사유일괄지정
- grp_reref.visible = false; //재계산
- btn_spc.visible = false;
- }else if(bcnotype_btn.selected == true){
- ipt_tclscd.visible = false;
- caption6.visible = true;
- combo3.visible = true;
- ipt_tclscdlist.visible = true;
- img1.visible = true;
- caption8.visible = true;
- caption10.visible = true;
- input1.visible = true;
- btn_saveresn.visible = true; //사유저장버튼
- checkbox2.visible = true; //사유여부
- model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
- model.removeNodeset("/root/main/testgrupdetl");
- grp_resn.visible = true; //사유일괄지정
- grp_reref.visible = true; //재계산
- btn_spc.visible = true;
- fSetPopUpTclscdList();
-
-
- model.toggle("case3");
- }else if(depttype_btn.selected == true){
- model.toggle("case4");
- caption8.visible = true;
- caption10.visible = true;
- input1.visible = true;
- ipt_tclscd.visible = false;
- caption6.visible = false;
- btn_saveresn.visible = false; //사유저장버튼
- checkbox2.visible = false; //사유여부
- grp_resn.visible = false; //사유일괄지정
- grp_reref.visible = false; //재계산
- btn_spc.visible = false;
- }else if(itemtype_btn.selected == true){
- ipt_tclscd.visible = false;
- caption6.visible = true;
- combo3.visible = true;
- ipt_tclscdlist.visible = true;
- img1.visible = true;
- caption8.visible = true;
- caption10.visible = true;
- input1.visible = true;
- btn_saveresn.visible = true;
- checkbox2.visible = true; //사유여부
- model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
- model.removeNodeset("/root/main/testgrupdetl");
- grp_resn.visible = true; //사유일괄지정
- grp_reref.visible = true; //재계산
- btn_spc.visible = false;
- fSetPopUpTclscdList();
-
- model.toggle("case5");
- }
-
- fSetGridColVisible(rdo_vewflag.value);
- }
-
- 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 sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
- var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=2; i<= count; i++){
- sendtclsnm = sendtclsnm + ", " + 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.refresh();
- }else if(count == 0){
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
- model.refresh();
- }
- }
-
-
- function fGetTestCd(Flag) {
-
- if(Flag != "popup") { //다른화면에서 팝업으로 띄울때가 아니라면 검체코드를 삭제 시켜준다. 그래야 다른 검사 조회시 검체코드가 셋팅된다.
- model.resetInstanceNode("/root/hidden/spccd");
- }
- model.setvalue("/root/hidden/ref/testcd", ipt_tclscd.currentText);
-
- if((Flag == "tclscd") || (Flag == "popup")) { //검사코드(or 다른화면에서 팝업으로 띄울때) 검색
- model.setValue("/root/send/tclscd", model.getValue("/root/hidden/ref/testcd").toUpperCase());
- model.setValue("/root/send/tclsnm", "");
- } else if(Flag == "tclsnm") { //검색명 검색
- model.setValue("/root/send/tclscd", "");
- model.setValue("/root/send/tclsnm", model.getValue("/root/hidden/tclsnm"));
- }
- //alert(model.getValue("/root/send/tclscd"));
- submit("TRLLF90102");
-
- var count = getNodesetCount("/root/main/searchtest");
-
- if(count < 2) {
- fGetTcls("1");
- }else {
- if(Flag == "popup") { //팝업으로 띄웠을 경우 동일한 검사를 조회한다.
- var row = grd_searchtest.findRow(model.getValue("/root/hidden/ref/testcd").toUpperCase(), 1, 1, true, true);
- fGetTcls(row);
- } else { //검색된 검사가 많을 경우
- grd_searchtest.attribute("visibility") = "visible";
- }
- }
- }
-
-
- function fGetTcls(flag) {
- //if(flag != "") { //로우가 정해진 경우
- model.setValue("/root/hidden/ref/testcd", model.getValue("/root/main/searchtest["+ flag +"]/tclscd"));
- //model.setValue("/root/hidden/tclsnm", model.getValue("/root/main/searchtest["+ flag +"]/tclsnm"));
- //} else { //로우가 정해지지 않은 경우(그리드에서 선택시)
- // model.setValue("/root/hidden/tclscd", model.getValue("/root/main/searchtest["+ grd_searchtest.row +"]/tclscd"));
- // model.setValue("/root/hidden/tclsnm", model.getValue("/root/main/searchtest["+ grd_searchtest.row +"]/tclsnm"));
- //}
- grd_searchtest.attribute("visibility") = "hidden";
- model.refresh();
- }
-
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target == "ipt_tclscd"){
-
- fGetTestCd("tclscd");
-
- ipt_tclscd.selBegin = 0;
- ipt_tclscd.selEnd = ipt_tclscd.currentText.length;
-
- model.setFocus("ipt_tclsnm");
- } else if(event.target == "ipt_tclsnm"){
- model.setvalue("/root/hidden/tclsnm", ipt_tclsnm.currentText);
- fGetTestCd("tclsnm");
-
- ipt_tclsnm.selBegin = 0;
- ipt_tclsnm.selEnd = ipt_tclsnm.currentText.length;
- }
- }
- }
-
- function fExeSaveToExcel() {
- if(pattype_btn.selected == true) { //일별
- fSaveExcel("grd_patlist");
- } else if(codetype_btn.selected == true) { //월별
- fSaveExcel("grd_codelist");
- } else if(bcnotype_btn.selected == true) { //분기별
- fSaveExcel("grd_bcnolist");
- } else if(depttype_btn.selected == true) { //연별
- fSaveExcel("grd_deptlist");
- }
- else if(itemtype_btn.selected == true) { //항목별
- fSaveExcel("grd_itemlist");
- }
-
- }
-
-
- function fSetResnSave(){
- /*
- if(grd_bcnolist.rows > 1){
- grd_bcnolist.rowStatus(1) = 0;
- grd_bcnolist.rowStatus(2) = 0;
- grd_bcnolist.rowStatus(3) = 0;
- grd_bcnolist.rowStatus(4) = 0;
- }
- var grddata = getGridUpdateData(grd_bcnolist);
- model.setValue("/root/send/resn", grddata);
- submit("TXLLS01301");*/
-
- var nodeList, xPath;
-
- model.removeNodeset("/root/hidden/savecnt/cnt");
- if(bcnotype_btn.selected == true){
- xPath = "/root/main/tattype3";
- nodeList = instance1.selectNodes(xPath + "[pid != '' and testcmtcd != '' and testcmtcd != '-']");
- }else if(itemtype_btn.selected == true){
- xPath = "/root/main/tattype5";
- nodeList = instance1.selectNodes(xPath + "[pid != '' and testresncmtcd != '' and testresncmtcd != '-']");
- }
-
- var updataData = getNodeListCSV(nodeList);
- if(updataData == null){
- messageBox("저장할 내역이 없습니다.", "I");;
- return;
- }
- model.setValue("/root/send/resn", updataData);
- if(submit("TXLLS01301", false)){
- if(parseInt(model.getValue("/root/hidden/savecnt/cnt")) > 0){
- messageBox(model.getValue("/root/hidden/savecnt/cnt") + "건 정상처리 되었습니다.", "I");;
- }
- //messageBox(model.getValue("/root/hidden/savecnt/cnt") + "건 " +model.getValue("/root/properties/error/msg"), "I");
- fGetTatTypeList();
- }
- }
-
- //재계산
- function fReCalc(pGrdObj){
- var vTime = parseInt(model.getValue("/root/hidden/ref/tatday")) * 1440 //일 -> 분
- + parseInt(model.getValue("/root/hidden/ref/tathour")) * 60 //시간 -> 분
- + parseInt(model.getValue("/root/hidden/ref/tattime"));
- var vFlag = "";
- var vChk = model.getValue("/root/hidden/calcchk") == "Y" ? "A" : model.getValue("/root/hidden/ref/flag");
- if(pattype_btn.selected == true){
- vFlag = "A";
- }else if(bcnotype_btn.selected == true){
- vFlag = "B";
- }else if(itemtype_btn.selected == true){
- vFlag = "C";
- }
-
- fSetTatInfo(vFlag, vTime, vChk, pGrdObj);
- model.refresh();
- }
-
- //표시 구분에 따른 그리드 Col Visible 설정
- function fSetGridColVisible(pFlag){
- if(pFlag == 1){ //분
- if(pattype_btn.selected == true) { //검사별
- grd_patlist.colHidden(grd_patlist.colRef("spcpgaplastday")) = true;
- grd_patlist.colHidden(grd_patlist.colRef("barcdgaplastday")) = true;
- grd_patlist.colHidden(grd_patlist.colRef("prcpgaplastday")) = true;
- grd_patlist.colHidden(grd_patlist.colRef("bcollgaplastday")) = true;
- grd_patlist.colHidden(grd_patlist.colRef("acptgaplastday")) = true;
-
- grd_patlist.colHidden(grd_patlist.colRef("spcpgaplast")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("barcdgaplast")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("prcpgaplast")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("bcollgaplast")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("acptgaplast")) = false;
- }else if(codetype_btn.selected == true) { //시간대별
- grd_codelist.colHidden(grd_codelist.colRef("avgtestday")) = true;
- grd_codelist.colHidden(grd_codelist.colRef("avgoverday")) = true;
- grd_codelist.colHidden(grd_codelist.colRef("mintestday")) = true;
- grd_codelist.colHidden(grd_codelist.colRef("maxtestday")) = true;
-
- grd_codelist.colHidden(grd_codelist.colRef("avgtesttime")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("avgovertime")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("mintesttime")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("maxtesttime")) = false;
- }else if(bcnotype_btn.selected == true) { //검체별
- grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplastday")) = true;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplastday")) = true;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplastday")) = true;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplastday")) = true;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplastday")) = true;
-
- grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplast")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplast")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplast")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplast")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplast")) = false;
- }else if(depttype_btn.selected == true) { //부서별
- grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplastday")) = true;
- grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplastday")) = true;
- grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplastday")) = true;
- grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplastday")) = true;
- grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplastday")) = true;
-
- grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplast")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplast")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplast")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplast")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplast")) = false;
- }else if(itemtype_btn.selected == true) { //항목별
- grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplastday")) = true;
- grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplastday")) = true;
- grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplastday")) = true;
- grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplastday")) = true;
- grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplastday")) = true;
-
- grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplast")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplast")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplast")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplast")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplast")) = false;
-
- // debugger;
- // var term = model.getValue("root/hidden/ref/tattime");
- // //이재오 작업 20120515일
- // for(i = 1 ; i < grd_itemlist.rows ; i ++){
- // var tclsterm = model.getValue("/root/main/tattype5["+i+"]/spcpgaplastday");
- // if(parseInt(tclsterm) >= parseInt(term)){
- // grd_itemlist.rowStyle(i, "data", "background-color") = "#7BE6B7";
- // }
- // }
-
- }
- }else if(pFlag == 2){ //일시분
- if(pattype_btn.selected == true) { //검사별
- grd_patlist.colHidden(grd_patlist.colRef("spcpgaplastday")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("barcdgaplastday")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("prcpgaplastday")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("bcollgaplastday")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("acptgaplastday")) = false;
-
- grd_patlist.colHidden(grd_patlist.colRef("spcpgaplast")) = true;
- grd_patlist.colHidden(grd_patlist.colRef("barcdgaplast")) = true;
- grd_patlist.colHidden(grd_patlist.colRef("prcpgaplast")) = true;
- grd_patlist.colHidden(grd_patlist.colRef("bcollgaplast")) = true;
- grd_patlist.colHidden(grd_patlist.colRef("acptgaplast")) = true;
- }else if(codetype_btn.selected == true) { //시간대별
- grd_codelist.colHidden(grd_codelist.colRef("avgtestday")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("avgoverday")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("mintestday")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("maxtestday")) = false;
-
- grd_codelist.colHidden(grd_codelist.colRef("avgtesttime")) = true;
- grd_codelist.colHidden(grd_codelist.colRef("avgovertime")) = true;
- grd_codelist.colHidden(grd_codelist.colRef("mintesttime")) = true;
- grd_codelist.colHidden(grd_codelist.colRef("maxtesttime")) = true;
- }else if(bcnotype_btn.selected == true) { //검체별
- grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplastday")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplastday")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplastday")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplastday")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplastday")) = false;
-
- grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplast")) = true;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplast")) = true;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplast")) = true;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplast")) = true;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplast")) = true;
- }else if(depttype_btn.selected == true) { //부서별
- grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplastday")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplastday")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplastday")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplastday")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplastday")) = false;
-
- grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplast")) = true;
- grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplast")) = true;
- grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplast")) = true;
- grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplast")) = true;
- grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplast")) = true;
- }else if(itemtype_btn.selected == true) { //항목별
- grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplastday")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplastday")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplastday")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplastday")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplastday")) = false;
-
- grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplast")) = true;
- grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplast")) = true;
- grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplast")) = true;
- grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplast")) = true;
- grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplast")) = true;
- }
- }else if(pFlag == 0){ //전체
- if(pattype_btn.selected == true) { //검사별
- grd_patlist.colHidden(grd_patlist.colRef("spcpgaplastday")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("barcdgaplastday")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("prcpgaplastday")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("bcollgaplastday")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("acptgaplastday")) = false;
-
- grd_patlist.colHidden(grd_patlist.colRef("spcpgaplast")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("barcdgaplast")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("prcpgaplast")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("bcollgaplast")) = false;
- grd_patlist.colHidden(grd_patlist.colRef("acptgaplast")) = false;
- }else if(codetype_btn.selected == true) { //시간대별
- grd_codelist.colHidden(grd_codelist.colRef("avgtestday")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("avgoverday")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("mintestday")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("maxtestday")) = false;
-
- grd_codelist.colHidden(grd_codelist.colRef("avgtesttime")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("avgovertime")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("mintesttime")) = false;
- grd_codelist.colHidden(grd_codelist.colRef("maxtesttime")) = false;
- }else if(bcnotype_btn.selected == true) { //검체별
- grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplastday")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplastday")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplastday")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplastday")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplastday")) = false;
-
- grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplast")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplast")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplast")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplast")) = false;
- grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplast")) = false;
- }else if(depttype_btn.selected == true) { //부서별
- grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplastday")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplastday")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplastday")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplastday")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplastday")) = false;
-
- grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplast")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplast")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplast")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplast")) = false;
- grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplast")) = false;
- }else if(itemtype_btn.selected == true) { //항목별
- grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplastday")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplastday")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplastday")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplastday")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplastday")) = false;
-
- grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplast")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplast")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplast")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplast")) = false;
- grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplast")) = false;
- }
- }
- model.refresh();
- /*
- var term = model.getValue("root/hidden/ref/tattime");
- //이재오 작업 20120515일
- for(i = 1 ; i < grd_itemlist.rows ; i ++){
- var tclsterm = model.getValue("/root/main/tattype5["+i+"]/spcpgaplastday");
- var tclsterm1 = model.getValue("/root/main/tattype5["+i+"]/barcdgaplast");
- var tclsterm2 = model.getValue("/root/main/tattype5["+i+"]/prcpgaplast");
- var tclsterm3 = model.getValue("/root/main/tattype5["+i+"]/bcollgaplast");
- var tclsterm4 = model.getValue("/root/main/tattype5["+i+"]/acptgaplast");
-
- if(parseInt(tclsterm4) >= parseInt(term)){
- grd_itemlist.rowStyle(i, "data", "background-color") = "#7BE6B7";
- }
- }
- */
- //vLastPage = model.getValue("/root/main/page/lastpage");
- if(grd_itemlist.rows < 2000 ) { //검사별
- //debugger;
- var term = model.getValue("root/hidden/ref/tattime");
- //이재오 작업 20120515일
- for(i = 1 ; i < grd_itemlist.rows ; i ++){
- var tclsterm = model.getValue("/root/main/tattype5["+i+"]/spcpgaplastday");
- var tclsterm1 = model.getValue("/root/main/tattype5["+i+"]/barcdgaplast");
- var tclsterm2 = model.getValue("/root/main/tattype5["+i+"]/prcpgaplast");
- var tclsterm3 = model.getValue("/root/main/tattype5["+i+"]/bcollgaplast");
- var tclsterm4 = model.getValue("/root/main/tattype5["+i+"]/acptgaplast");
-
- if(parseInt(tclsterm4) >= parseInt(term)){
- grd_itemlist.rowStyle(i, "data", "background-color") = "#7BE6B7";
- }
- }
-
- }else
- {
- messageBox("검사내역이 너무 많아 오버된 시간의 색깔은 표시불가.", "I");;
- return;
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group1" style="left:0px; top:10px; width:1195px; height:70px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:70px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1130px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTatTypeList();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1129px; y1:8px; x2:1129px; y2:30px; "/>
- <caption id="caption5" class="search_name" style="left:615px; top:9px; width:86px; height:17px; ">처방구분 :</caption>
- <input id="ipt_workfromdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:90px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_workfromtm" ref="/root/hidden/ref/fromtm" class="input_search" format="hh:nn" style="left:180px; top:8px; width:50px; height:19px; "/>
- <input id="ipt_worktodd" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:247px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_worktotm" ref="/root/hidden/ref/totm" class="input_search" format="hh:nn" style="left:337px; top:8px; width:50px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:5px; top:9px; width:110px; height:17px; ">접수일자 :</caption>
- <caption id="caption9" class="search_no_b" style="left:232px; top:10px; width:13px; height:17px; ">~</caption>
- <select1 id="cmb_rtnabnflag" ref="/root/hidden/ref/wcmb" appearance="minimal" style="left:700px; top:8px; width:67px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>입원/DSC</label>
- <value>2</value>
- </item>
- <item>
- <label>응급실</label>
- <value>4</value>
- </item>
- <item>
- <label>외래</label>
- <value>3</value>
- </item>
- <item>
- <label>건진</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(cmb_rtnabnflag.value == "4" || cmb_rtnabnflag.value == "2"){
- cmb_serious.disabled = false;
- }else{
- cmb_serious.value = "";
- cmb_serious.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_serious" ref="/root/hidden/ref/serious" disabled="true" appearance="minimal" style="left:772px; top:8px; width:67px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0136">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/hidden/ref/ocmb" appearance="minimal" style="left:928px; top:8px; width:77px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>응급</label>
- <value>2</value>
- </item>
- <item>
- <label>비응급</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:842px; top:9px; width:86px; height:17px; ">응급구분 :</caption>
- <select1 id="combo2" ref="/root/hidden/ref/gbn" appearance="minimal" style="left:483px; top:8px; width:127px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:393px; top:9px; width:91px; height:17px; ">시행부서 :</caption>
- <caption id="caption6" class="search_name" style="left:250px; top:40px; width:90px; height:17px; ">검사항목 :</caption>
- <input id="ipt_tclscd" ref="/root/hidden/ref/testcd" class="input_essential" imemode="disabled" inputtype="button" _chartype="upper" style="left:348px; top:40px; width:127px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetTestCd("tclscd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:765px; top:38px; width:99px; height:17px; ">목표TAT :</caption>
- <select1 id="cmb_filterflag" ref="/root/hidden/ref/flag" appearance="minimal" style="left:849px; top:37px; width:84px; height:19px; ">
- <choices>
- <item>
- <label>접수-최종</label>
- <value>1</value>
- </item>
- <item>
- <label>채혈-최종</label>
- <value>2</value>
- </item>
- <item>
- <label>가접수-최종</label>
- <value>3</value>
- </item>
- <item>
- <label>처방-최종</label>
- <value>4</value>
- </item>
- <item>
- <label>바코드-최종</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_day" ref="/root/hidden/ref/tatday" format="999" maxbyte="3" style="left:936px; top:37px; width:33px; height:19px; text-align:right; "/>
- <input id="input2" ref="/root/hidden/ref/tathour" format="999" maxbyte="3" style="left:989px; top:37px; width:33px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(input2.value == "") input2.value = 0;
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/hidden/ref/tattime" format="999" maxbyte="4" style="left:1052px; top:37px; width:33px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(input1.value == "") input2.value = 0;
- ]]>
- </script>
- </input>
- <caption id="caption10" style="left:970px; top:39px; width:20px; height:20px; ">일</caption>
- <caption id="caption1" style="left:1087px; top:39px; width:20px; height:20px; ">분</caption>
- <caption id="caption13" style="left:1023px; top:39px; width:30px; height:20px; ">시간</caption>
- <img id="img1" class="icon_search" visibility="hidden" style="left:740px; top:41px; width:16px; height:16px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- open("SMLLF90400", 200, 300, 200, "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- ]]>
- </script>
- </img>
- <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" class="input_default" visibility="hidden" rclass="input_search" style="left:440px; top:40px; width:292px; height:19px; "/>
- <select1 id="combo3" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" visibility="hidden" appearance="minimal" style="left:348px; top:40px; width:71px; 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>
- <select id="checkbox1" ref="/root/hidden/ref/over" overflow="visible" appearance="full" style="left:1105px; top:37px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>over time</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/hidden/ref/cmtyn" visibility="hidden" overflow="visible" appearance="full" style="left:1105px; top:50px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>사유 여부</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="cap_view" class="search_name" style="left:5px; top:40px; width:90px; height:17px; ">표시구분 :</caption>
- <select1 id="rdo_vewflag" ref="/root/hidden/viewflag" appearance="full" cols="3" overflow="visible" style="left:105px; top:40px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>분</label>
- <value>1</value>
- </item>
- <item>
- <label>일 시 분</label>
- <value>2</value>
- </item>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetGridColVisible(rdo_vewflag.value);
- ]]>
- </script>
- </select1>
- <input id="input3" ref="/root/hidden/ref/pid" style="left:1045px; top:8px; width:80px; height:19px; "/>
- <caption id="caption16" style="left:1010px; top:10px; width:30px; height:17px; ">환자:</caption>
- </group>
- <switch id="switch1" style="left:0px; top:110px; width:1195px; height:633px; ">
- <case id="case1" style="left:0px; top:0px; width:1193px; height:640px; ">
- <caption id="caption32" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">검사별리스트</caption>
- <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
- <datagrid id="grd_patlist" nodeset="/root/main/tattype1" caption="성명^등록번호^바코드번호^검사명^처방등록일시^바코드발행일시^채혈일시^가접수일시^접수일시^보고일시^가접수-최종(분)^가접수-최종^바코드-최종(분)^바코드-최종^처방-최종(분)^처방-최종^채혈-최종(분)^채혈-최종^접수-최종(분)^접수-최종" colsep="^" colwidth="90, 90, 90, 180, 125, 125, 125, 125, 125, 125, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:25px; width:1183px; height:605px; ">
- <col ref="patnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="bcno" type="input" style="text-align:center; "/>
- <col ref="tclsnm" style="text-align:left; "/>
- <col ref="prcprgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="barcdprntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="bcolldt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="spcpseuacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- <col ref="spcpgaplast" style="text-align:right; "/>
- <col ref="spcpgaplastday" style="text-align:right; "/>
- <col ref="barcdgaplast" style="text-align:right; "/>
- <col ref="barcdgaplastday" style="text-align:right; "/>
- <col ref="prcpgaplast" style="text-align:right; "/>
- <col ref="prcpgaplastday" style="text-align:right; "/>
- <col ref="bcollgaplast" style="text-align:right; "/>
- <col ref="bcollgaplastday" style="text-align:right; "/>
- <col ref="acptgaplast" style="text-align:right; "/>
- <col ref="acptgaplastday" style="text-align:right; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_patlist.isCell(event.target) && grd_patlist.row >= grd_patlist.fixedRows ){
- if(grd_patlist.col == grd_patlist.colRef("bcno")){
- window.clipBoardData = grd_patlist.valueMatrix(grd_patlist.row, grd_patlist.colRef("bcno"));
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_codelist" nodeset="/root/main/tattype2" caption="시간대^검사건수^평균소요시간(분)^평균소요시간^평균초과시간(분)^평균초과시간^최소소요시간(분)^최소소요시간^최대소요시간(분)^최대소요시간^초과건수^TAT충족율(%)" colsep="^" colwidth="130, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:25px; width:1183px; height:605px; ">
- <col ref="timeterm" style="text-align:center; "/>
- <col ref="tclscnt" style="text-align:right; "/>
- <col ref="avgtesttime" style="text-align:right; "/>
- <col ref="avgtestday" style="text-align:right; "/>
- <col ref="avgovertime" style="text-align:right; "/>
- <col ref="avgoverday" style="text-align:right; "/>
- <col ref="mintesttime" style="text-align:right; "/>
- <col ref="mintestday" style="text-align:right; "/>
- <col ref="maxtesttime" style="text-align:right; "/>
- <col ref="maxtestday" style="text-align:right; "/>
- <col ref="overtclscnt" style="text-align:right; "/>
- <col ref="tatrate" style="text-align:right; "/>
- </datagrid>
- <caption id="caption7" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">시간대별리스트</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
- </case>
- <case id="case3">
- <datagrid id="grd_bcnolist" nodeset="/root/main/tattype3" caption="성명^등록번호^검체명^바코드번호^처방등록일시^바코드발행일시^채혈일시^가접수일시^접수일시^보고일시^가접수-최종(분)^가접수-최종^바코드-최종(분)^바코드-최종^처방-최종(분)^처방-최종^채혈-최종(분)^채혈-최종^접수-최종(분)^접수-최종^소견사유^지연사유" colsep="^" colwidth="90, 90, 110, 90, 125, 125, 125, 125, 125, 125, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 200, 135" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:5px; top:25px; width:1183px; height:605px; ">
- <col ref="patnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="spcnm" style="text-align:center; "/>
- <col ref="bcno" type="input" style="text-align:center; "/>
- <col ref="prcprgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="barcdprntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="bcolldt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="spcpseuacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="spcpgaplast" style="text-align:right; "/>
- <col ref="spcpgaplastday" style="text-align:right; "/>
- <col ref="barcdgaplast" style="text-align:right; "/>
- <col ref="barcdgaplastday" style="text-align:right; "/>
- <col ref="prcpgaplast" style="text-align:right; "/>
- <col ref="prcpgaplastday" style="text-align:right; "/>
- <col ref="bcollgaplast" style="text-align:right; "/>
- <col ref="bcollgaplastday" style="text-align:right; "/>
- <col ref="acptgaplast" style="text-align:right; "/>
- <col ref="acptgaplastday" style="text-align:right; "/>
- <col ref="resncdlist" style="text-align:left; "/>
- <col ref="testcmtcd" type="combo" style="text-align:right; ">
- <choices>
- <itemset nodeset="/root/init/LB0404">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_bcnolist.isCell(event.target) && grd_bcnolist.row >= grd_bcnolist.fixedRows ){
- if(grd_bcnolist.col == grd_bcnolist.colRef("bcno")){
- window.clipBoardData = grd_bcnolist.valueMatrix(grd_bcnolist.row, grd_bcnolist.colRef("bcno"));
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- //검체 사유 일괄지정 드래그
- if ( (grd_bcnolist.row >= grd_bcnolist.fixedRows) && (grd_bcnolist.isCell(event.target))) {
- if (grd_bcnolist.row >4 && grd_bcnolist.col == grd_bcnolist.colRef("testcmtcd")){
- var sCmtCd = model.getValue("/root/hidden/ref/resnlist");
- var sCmtNm = cmb_resn.label;
- var sBcno;
-
- if(sCmtCd == "" || sCmtNm == ""){
- messageBox("지정할 사유를 선택 후 사용하세요", "I");
- return;
- }
- for ( var i =0 ; i < grd_bcnolist.selectedRows;i++){
- sBcno = grd_bcnolist.valueMatrix(grd_bcnolist.selectedRow(i), grd_bcnolist.colRef("bcno"));
- model.setValue("/root/main/tattype3[bcno = '" + sBcno + "' ]/testcmtcd", sCmtCd);
-
- //xPath + "[pid = '' or acptgaplast > '" + vTime + "' ]";
- //model.setValue("/root/main/tattype3[" + grd_bcnolist.selectedRow(i) + "]/testcmtcd", sCmtCd);
- }
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
- <caption id="caption11" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">검체별리스트</caption>
- </case>
- <case id="case4">
- <datagrid id="grd_deptlist" nodeset="/root/main/tattype4" caption="검사코드^검사명^TAT충족건수^검사건수^가접수-최종(분)^가접수-최종^바코드-최종(분)^바코드-최종^처방-최종(분)^처방-최종^채혈-최종(분)^채혈-최종^접수-최종(분)^접수-최종^TAT충족율(%)" colsep="^" colwidth="100, 235, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:25px; width:1183px; height:605px; ">
- <col ref="tclscd" style="text-align:center; "/>
- <col ref="tclsnm" style="text-align:left; "/>
- <col ref="tattestcnt" style="text-align:center; "/>
- <col ref="testcnt" style="text-align:center; "/>
- <col ref="spcpgaplast" style="text-align:right; "/>
- <col ref="spcpgaplastday" style="text-align:right; "/>
- <col ref="barcdgaplast" style="text-align:right; "/>
- <col ref="barcdgaplastday" style="text-align:right; "/>
- <col ref="prcpgaplast" style="text-align:right; "/>
- <col ref="prcpgaplastday" style="text-align:right; "/>
- <col ref="bcollgaplast" style="text-align:right; "/>
- <col ref="bcollgaplastday" style="text-align:right; "/>
- <col ref="acptgaplast" style="text-align:right; "/>
- <col ref="acptgaplastday" style="text-align:right; "/>
- <col ref="tatrate" format="0.00" style="text-align:right; "/>
- </datagrid>
- <caption id="caption12" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">부서별리스트</caption>
- <line id="line5" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
- </case>
- <case id="case5" selected="true">
- <caption id="caption14" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">항목별리스트</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
- <datagrid id="grd_itemlist" nodeset="/root/main/tattype5" caption="성명^등록번호^바코드번호^검사명^검체명^처방일시^바코드발행일시^채혈일시^가접수일시^접수일시^보고일시^가접수-최종(분)^가접수-최종^바코드-최종(분)^바코드-최종^처방-최종(분)^처방-최종^채혈-최종(분)^채혈-최종^접수-최종(분)^접수-최종^소견사유^검체별지연사유^항목별지연사유^검사코드" colsep="^" colwidth="90, 90, 90, 180, 100, 125, 125, 125, 125, 125, 125, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 200, 135, 135, 80" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:5px; top:25px; width:1183px; height:605px; ">
- <col ref="patnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="bcno" type="input" style="text-align:center; "/>
- <col ref="tclsnm" style="text-align:left; "/>
- <col ref="spcnm" style="text-align:center; "/>
- <col ref="prcprgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="barcdprntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="bcolldt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="spcpseuacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- <col ref="spcpgaplast" style="text-align:right; "/>
- <col ref="spcpgaplastday" style="text-align:right; "/>
- <col ref="barcdgaplast" style="text-align:right; "/>
- <col ref="barcdgaplastday" style="text-align:right; "/>
- <col ref="prcpgaplast" style="text-align:right; "/>
- <col ref="prcpgaplastday" style="text-align:right; "/>
- <col ref="bcollgaplast" style="text-align:right; "/>
- <col ref="bcollgaplastday" style="text-align:right; "/>
- <col ref="acptgaplast" style="text-align:right; "/>
- <col ref="acptgaplastday" style="text-align:right; "/>
- <col ref="resncdlist" style="text-align:left; "/>
- <col disabled="true" ref="testcmtcd" type="combo" style="text-align:right; ">
- <choices>
- <itemset nodeset="/root/init/LB0404">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="testresncmtcd" type="combo" style="text-align:right; ">
- <choices>
- <itemset nodeset="/root/init/LB0404">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="testcd" visibility="hidden" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_itemlist.isCell(event.target) && grd_itemlist.row >= grd_itemlist.fixedRows ){
- if(grd_itemlist.col == grd_itemlist.colRef("bcno")){
- window.clipBoardData = grd_itemlist.valueMatrix(grd_itemlist.row, grd_itemlist.colRef("bcno"));
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- //검체 사유 일괄지정 드래그
- if ( (grd_itemlist.row >= grd_itemlist.fixedRows) && (grd_itemlist.isCell(event.target))) {
- if (grd_itemlist.row >4 && grd_itemlist.col == grd_itemlist.colRef("testresncmtcd")){ // (grd_itemlist.col == grd_itemlist.colRef("testcmtcd") ||)
- var sCmtCd = model.getValue("/root/hidden/ref/resnlist");
- var sCmtNm = cmb_resn.label;
- var sBcno, sTestcd;
- if(sCmtCd == "" || sCmtNm == ""){
- messageBox("지정할 사유를 선택 후 사용하세요", "I");
- return;
- }
- /*if(grd_itemlist.col == grd_itemlist.colRef("testcmtcd")){ //검체별
- messageBox("검체별 사유는 검채별탭에서 등록하세요", "I");
-
- for ( var i =0 ; i < grd_itemlist.selectedRows;i++){
- sBcno = grd_itemlist.valueMatrix(grd_itemlist.selectedRow(i), grd_itemlist.colRef("bcno"));
- sTestcd = grd_itemlist.valueMatrix(grd_itemlist.selectedRow(i), grd_itemlist.colRef("testcd"));
-
- //model.setValue("/root/main/tattype5[" + grd_itemlist.selectedRow(i) + "]/testcmtcd", sCmtCd);
- model.setValue("/root/main/tattype5[bcno = '" + sBcno + "' and testcd = '" + sTestcd + "' ]/testcmtcd", sCmtCd);
- }
- }else{*/
- for ( var i =0 ; i < grd_itemlist.selectedRows;i++){ //항목별
- sBcno = grd_itemlist.valueMatrix(grd_itemlist.selectedRow(i), grd_itemlist.colRef("bcno"));
- sTestcd = grd_itemlist.valueMatrix(grd_itemlist.selectedRow(i), grd_itemlist.colRef("testcd"));
-
- //model.setValue("/root/main/tattype5[" + grd_itemlist.selectedRow(i) + "]/testresncmtcd", sCmtCd);
- model.setValue("/root/main/tattype5[bcno = '" + sBcno + "' and testcd = '" + sTestcd + "' ]/testresncmtcd", sCmtCd);
- }
- //}
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <group id="grp_wait" visibility="hidden" style="left:465px; top:255px; width:313px; height:104px; ">
- <img id="img2" src="../../../com/commonweb/images/loadingBar.gif" style="left:1px; top:1px; width:311px; height:102px; "/>
- <output id="opt_msg" ref="/root/hidden/waitmsg" style="left:110px; top:30px; width:175px; height:19px; font-size:11pt; font-weight:bold; color:#33cccc; "/>
- </group>
- <button id="btn_excel" class="btn2_letter2" style="left:1147px; top:88px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- <group id="grp_reref" visibility="visible" scroll="auto" style="left:895px; top:111px; width:295px; height:20px; ">
- <button id="btn_recalc" class="btn2_letter3" style="left:185px; top:0px; width:53px; height:19px; ">
- <caption>재계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReCalc("");
- ]]>
- </script>
- </button>
- <button id="btn_re" class="btn2_letter3" visibility="visible" style="left:240px; top:0px; width:53px; height:19px; ">
- <caption>재조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grdObj = "Nodeset";
- fReCalc(grdObj);
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="chk_calcchk" ref="/root/hidden/calcchk" overflow="visible" appearance="full" style="left:140px; top:3px; width:45px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="cap_re" class="tit_2" style="left:41px; top:4px; width:97px; height:13px; ">결과 내 필터:</caption>
- </group>
- <button id="pattype_btn" class="btn_sw" group="tab" selected="true" style="left:0px; top:89px; width:70px; height:22px; ">
- <caption>검사별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </button>
- <button id="codetype_btn" class="btn_sw" group="tab" selected="false" style="left:70px; top:89px; width:70px; height:22px; ">
- <caption>시간대별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </button>
- <datagrid id="grd_searchtest" nodeset="/root/main/searchtest" visibility="hidden" caption="중분류^검사코드^검사명" colsep="^" colwidth="46, 85, 290" mergecellsfixedrows="bycolrec" rowsep="|" style="left:380px; top:195px; width:441px; height:150px; ">
- <col ref="mdlnm"/>
- <col ref="tclscd"/>
- <col ref="tclsnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_searchtest.isCell(event.target) && grd_searchtest.row >= grd_searchtest.fixedRows ){
- fGetTcls(grd_searchtest.row);
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="bcnotype_btn" class="btn_sw" group="tab" selected="false" style="left:140px; top:89px; width:70px; height:22px; ">
- <caption>검체별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </button>
- <button id="depttype_btn" class="btn_sw" group="tab" selected="false" style="left:210px; top:89px; width:70px; height:22px; ">
- <caption>부서별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </button>
- <button id="itemtype_btn" class="btn_sw" group="tab" selected="false" style="left:280px; top:89px; width:70px; height:22px; ">
- <caption>항목별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridInit();
- ]]>
- </script>
- </button>
- <button id="btn_spc" class="btn2_letter5" visibility="hidden" style="left:372px; top:90px; width:75px; height:19px; ">
- <caption>검체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group6.visible = true;
- model.setValue("/root/send/go/tclscdlist" , model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist"));
- submit("TRLMR91000");
- model.refresh();
- ]]>
- </script>
- </button>
- <group id="group6" visibility="hidden" style="left:370px; top:110px; width:385px; height:345px; border-color:#000000; border-width:1px; border-style:solid; ">
- <caption id="caption20" class="search_name" style="left:5px; top:10px; width:115px; height:17px; ">검체 선택</caption>
- <select1 id="radio2" ref="/root/hidden/ref/code" appearance="full" cols="2" overflow="visible" style="left:95px; top:10px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드</label>
- <value>1</value>
- </item>
- <item>
- <label>명칭</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="input4" ref="/root/hidden/ref/code2" style="left:190px; top:10px; width:135px; height:19px; "/>
- <button id="button3" class="btn2_letter2" style="left:335px; top:10px; width:42px; height:19px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/go/code", model.getValue("/root/hidden/ref/code"));
- model.setValue("/root/send/go/code2", model.getValue("/root/hidden/ref/code2"));
- submit("TRLMR91000");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="datagrid5" nodeset="/root/main/spccd" caption="^검체코드^검체명" colsep="^" colwidth="25, 55, 217" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:34px; width:375px; height:275px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- </datagrid>
- <button id="button4" class="btn4_letter2" style="left:259px; top:314px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var spccdlist = "";
- for (i = 1; i < datagrid5.rows; i++){
- if(model.getValue("/root/main/spccd[" + i + "]/chk" ) == "true"){
- spccdlist = spccdlist + "," + model.getValue("/root/main/spccd[" + i + "]/spccd");
- }
- }
- model.setValue("/root/send/spccdlist", spccdlist);
- //alert(model.getValue("/root/send/spccdlist"));
- group6.visible = false;
- fGetTatTypeList();
- model.setValue("/root/send/go/code", "");
- model.setValue("/root/send/go/code2", "");
- model.setValue("/root/send/go/tclscdlist", "");
- model.setValue("/root/send/spccdlist", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:319px; top:314px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group6.visible = false;
- model.setValue("/root/send/go/code", "");
- model.setValue("/root/send/go/code2", "");
- model.setValue("/root/send/go/tclscdlist", "");
- model.setValue("/root/send/spccdlist", "");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="grp_resn" visibility="hidden" scroll="auto" style="left:897px; top:128px; width:240px; height:20px; ">
- <caption id="cap_resn" class="tit_2" style="left:1px; top:4px; width:110px; height:14px; ">사유일괄지정 :</caption>
- <select1 id="cmb_resn" ref="/root/hidden/ref/resnlist" appearance="minimal" style="left:110px; top:0px; width:127px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0404">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <line id="line6" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_saveresn" class="btn4_letter4" visibility="hidden" style="left:1044px; top:3px; width:80px; height:22px; ">
- <caption>사유저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetResnSave();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption15" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">TAT 조회</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|