1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>미생물배양양성자조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <condition>
- <termflag>R</termflag>
- <termfromdd/>
- <termtodd/>
- <srchpid/>
- <srchorddeptcd/>
- <srchwardcd/>
- <srchspccd/>
- <srchspcnm/>
- <srchbaccd/>
- <srchbacnm/>
- <groupflag>A</groupflag>
- <viewflag>V</viewflag>
- <srchioflag>-</srchioflag>
- </condition>
- <microtestprotonlist>
- <vprotonlist>
- <info>
- <prcpdd/>
- <lastreptdt/>
- <prcpwardcd/>
- <prcproomcd/>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <orddept/>
- <atdrnm/>
- <indd/>
- <dschdd/>
- <acptdt/>
- <wardcd/>
- <roomcd/>
- <inhospdayno/>
- <spcnm/>
- <bacnm/>
- <antibioref/>
- <antibionm/>
- <antibiorslt/>
- <spccd/>
- <baccd/>
- <tclscd/>
- <testcd/>
- <bcno/>
- <cretno/>
- <seqno/>
- <bcolldt/>
- <rsltseq/>
- <bacseqno/>
- <bacnm2/>
- </info>
- <header/>
- </vprotonlist>
- <hprotonlist>
- <info>
- <prcpdd/>
- <lastreptdt/>
- <prcpwardcd/>
- <prcproomcd/>
- <pid/>
- <hngnm/>
- <sex/>
- <brthdd/>
- <age/>
- <orddept/>
- <atdoctid/>
- <atdrnm/>
- <indd/>
- <dschdd/>
- <wardcd/>
- <roomcd/>
- <inhospdayno/>
- <bcno/>
- <tclscd/>
- <testcd/>
- <spccd/>
- <rsltseq/>
- <baccd/>
- <bacnm/>
- <bacseqno/>
- <antibiocd/>
- <antibiorslt/>
- <spcnm/>
- <bacnm2/>
- <antibionm/>
- <antibioref/>
- </info>
- </hprotonlist>
- </microtestprotonlist>
- <sortdata>
- <sort1>1</sort1>
- <cond1>0</cond1>
- <cond2>-</cond2>
- <sort2>2</sort2>
- <cond3>0</cond3>
- <cond4>-</cond4>
- <sort3>3</sort3>
- <cond5>0</cond5>
- <cond6>-</cond6>
- <sort4>4</sort4>
- <cond7>0</cond7>
- <cond8>-</cond8>
- <sort5>5</sort5>
- <cond9>0</cond9>
- <cond10>-</cond10>
- </sortdata>
- <codedata>
- <popupmenu>
- <grid>
- <item>
- <name>병원감염보고서 등록</name>
- <func>fReportSearch</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>Order 조회</name>
- <func>fOrderSearch</func>
- </item>
- </grid>
- </popupmenu>
- </codedata>
- </main>
- <hidden>
- <selecteddata>
- <selectedpid/>
- <selectedindd/>
- <selectedrgstdt/>
- </selecteddata>
- <orddeptlist>
- </orddeptlist>
- <warddeptlist>
- </warddeptlist>
- <getdata>
- <cd/>
- <nm/>
- </getdata>
- </hidden>
- <send>
- </send>
- <init>
- <currentdt>
- <currentdate/>
- <currenttime/>
- </currentdt>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.setValue("/root/init/currentdt/currentdate", getCurrentDate());
- model.setValue("/root/init/currentdt/currenttime", getCurrentTime());
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "D");
-
- //기본 조회는 한달 전 ~ 현재일자 까지 감염된 환자의 리스트
- model.setValue("/root/main/condition/termfromdd", peveDate.getDateFormat());
- model.setValue("/root/main/condition/termtodd", model.getValue("/root/init/currentdt/currentdate"));
- model.refresh();
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
- //submit("TRASI00601");
-
- //grd_vertically.frozencols = 18;
- //grd_vertically.mergecol(18) = false;
- //for(var i=19; i< grd_vertically.rows;i++ ) {grd_vertically.mergecol(i) = false;}
- grd_vertically.mergecells = "never";
- /*
- var xmlDoc = document.models(0).instances(0);
- var root = xmlDoc.documentElement;
- model.alert(root.xml);
- */
- ]]>
- </script>
- <submission id="TRASI00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/microtestprotonlist/vprotonlist"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- model.removeNodeset("/root/main/microtestprotonlist/vprotonlist");
- // 공통코드를 조회한다.
- /*
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/hidden/orddeptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- addComboItem("cmb_orddept","","","above");
-
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "/root/hidden/warddeptlist";
- sort_field = "deptcd";
- sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- addComboItem("cmb_wardcd","","","above");
- */
-
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/hidden/orddeptlist", "A"); //부서코드 콤보
- addComboItem("cmb_orddept","","","above");
-
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/hidden/warddeptlist", "W"); //부서코드 콤보
- addComboItem("cmb_wardcd","","","above");
-
- model.refresh();
- }
-
- function fReqOpPatPamInfo(){
- var iRow = grd_horizontally.row;
- var sPATLIST_PATH = "/root/main/microtestprotonlist/vprotonlist/info";
- var hngioflag = model.getValue(sPATLIST_PATH + "[" + iRow + "]/ioflag");
-
-
- //var ioflag = "I";
- var pid = model.getValue(sPATLIST_PATH + "[" + iRow + "]/pid");
- var orddd = model.getValue(sPATLIST_PATH + "[" + iRow + "]/indd");
- var cretno = model.getValue(sPATLIST_PATH + "[" + iRow + "]/cretno");
- var seqno = model.getValue(sPATLIST_PATH + "[" + iRow + "]/seqno");
- var instcd = getUserInfo("dutplceinstcd");
- var srchdd = model.getValue(sPATLIST_PATH + "[" + iRow + "]/dschdd");
- var ioflag = ioflag = model.getValue(sPATLIST_PATH + "[" + iRow + "]/ioflag");
-
- if (srchdd=="" || isNull(srchdd)){
- srchdd=getCurrentDate();
- }
-
- // var currdd = getCurrentDate();
- //
- // if (dschdd = ''){
- // var srchdd = currdd;
- // } else {
- // var srchdd = dschdd;
- // }
-
- var param = ioflag + "▦"
- + pid + "▦"
- + orddd + "▦"
- + cretno + "▦"
- + instcd+ "▦"
- + srchdd+"▦";
-
- setParameter("condparam", param);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- /* 검체팝업 호출 (2009.07. JJE) */
- function fSrchSpc(){
- //modal("SPASI02800",0,0,0,"SPASI02800");
- model.makeValue("/root/hidden/send/srchnm", model.getValue("/root/main/condition/srchspcnm"));
- model.makeValue("/root/hidden/send/srchflag", "N");
- modal("SPASI02800",0,0,0,"SPASI02800", "/root/hidden/send", "/root/main/condition");
- if(model.getValue("/root/hidden/getdata/cd") != ""){
- model.setValue("/root/main/condition/srchspccd", model.getValue("/root/hidden/getdata/cd"));
- model.setValue("/root/main/condition/srchspcnm", model.getValue("/root/hidden/getdata/nm"));
- model.resetInstanceNode("/root/hidden/getdata");
- model.refresh();
- }
- }
-
- /* 균팝업 호출 (2009.07. JJE) */
- function fSrchBac(){
- //modal("SPASB00400",0,0,0,"SPASB00400");
- model.makeValue("/root/hidden/send/srchnm", model.getValue("/root/main/condition/srchbacnm"));
- model.makeValue("/root/hidden/send/srchflag", "N");
- modal("SPASB00400",0,0,0,"SPASB00400", "/root/hidden/send", "/root/main/condition");
- if(model.getValue("/root/hidden/getdata/cd") != ""){
- model.setValue("/root/main/condition/srchbaccd", model.getValue("/root/hidden/getdata/cd"));
- model.setValue("/root/main/condition/srchbacnm", model.getValue("/root/hidden/getdata/nm"));
- model.resetInstanceNode("/root/hidden/getdata");
- model.refresh();
- }
- }
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fReportSearch() {
- var sessionPID = getPatientId();
- //var iRow=grd_vertically.row;
- var iRow=grd_horizontally.row;
- if(sessionPID != model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/pid")){
- fReqOpPatPamInfo();
- }
-
- //검사보고일, 검체코드, 검체명, 균코드, 균명, 항생제내성균코드, 항생제내성균명, 처방일, 채혈일, 검사분류코드, 검사코드, 바코드, 검사실시일시
- var rtnmsg_header="lastreptdt▦spccd▦spcnm▦baccd▦bacnm▦nsgbrcd▦nsgbrnm▦prcpdd▦bcolldt▦tclscd▦testcd▦bcno▦spcacptdt▩";
- var rtnmsg_data="";
- rtnmsg_data+=model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/lastreptdt") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/spccd") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/spcnm") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/baccd") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/bacnm") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/nsgbrcd") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/nsgbrnm") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/prcpdd") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/bcolldt") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/tclscd") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/testcd") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/bcno") +"▦"
- + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/bcolldt") +"▩";
- setParameter("setVal13", rtnmsg_header+rtnmsg_data);
- open("SMASI00100", 1,10,10, "SMASI00100");
- //model.close();
- }
-
- function fOrderSearch() {
- var sessionPID = getPatientId();
- var iRow=grd_vertically.row;
- //var iRow=grd_horizontally.row;
- if(sessionPID != model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/pid")){
- fReqOpPatPamInfo();
- }
- open("SMMMO02500", 1,10,10, "SMMMO02500");
- //model.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
- <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
- <group id="grp_tle" style="left:0px; top:0px; width:1194; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">미생물배양 양성자조회</caption>
- </group>
- </group>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button38" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/microtestprotonlist/vprotonlist");
- model.removeNodeset("/root/main/microtestprotonlist/hprotonlist");
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:2px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195; height:742px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:68px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:68px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*var gridCaptionArray=0;
-
- for( var i = grd_vertically.rightCol; i < gridCaptionArray.length; i-- ) {
- grd_vertically.removeColumn(false);
- }*/
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
-
- openLoadingBar("미생물배양양성자조회 ") ;//처리중 화면을 오픈한다.
- submit("TRASI00601", false);
- closeLoadingBar() ;//처리중 화면을 close한다.
-
-
-
- //가로모드일때 복사
- model.makeNode("/root/hidden/templist/info");
- model.copyNode("/root/hidden/templist", "/root/main/microtestprotonlist/vprotonlist");
-
- //동적caption (균명)
- var gridCaption = model.getValue("/root/main/microtestprotonlist/vprotonlist/header/caption");
- var gridCaptionArray=gridCaption.split("^");
-
-
-
- //동적ref (균코드)
- var gridColRef = model.getValue("/root/main/microtestprotonlist/vprotonlist/header/colref");
- var gridColRefArray=gridColRef.split("^");
-
- //grd_vertically.colwidth(18) = 0; // 균 column 숨기기
- grd_vertically.colwidth(30) = 0; // 균 column 숨기기
-
- /*for(var i=1; i < gridCaptionArray.length; i++ ) {
- grd_vertically.addColumn("ref:" + gridColRefArray[i] + "; type:output ;", false);
- }
- grd_vertically.caption= grd_vertically.caption.concat(gridCaption);*/
-
- for(var i=1; i < gridCaptionArray.length; i++ ) {
- grd_vertically.addColumn("ref:" + gridColRefArray[i] + "; type:output ;", false);
- }
- grd_vertically.caption= grd_vertically.caption.concat(gridCaption);
-
- //Grid에 Y/N 설정하기
- /*for(var i=1; i < grd_vertically.rows; i++ ) {
- var bacnm=model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/bacnm");
- for(var j=1; j < gridColRefArray.length; j++) {
- if(bacnm == gridCaptionArray[j]) {
- model.setValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/" + gridColRefArray[j], "Y");
- }
- else {
- model.setValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/" + gridColRefArray[j], "N");
- }
- }
- }*/
-
- //grid에 감수성결과 설정하기
- for(var i=1; i < grd_vertically.rows; i++ ) {
- var bacnm=model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/bacnm");
- for(var j=1; j < gridColRefArray.length; j++) {
- if(bacnm == gridCaptionArray[j]) {
- model.setValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/" + gridColRefArray[j], model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/antibioref"));
- }
- else {
- model.setValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/" + gridColRefArray[j], "");
- }
- }
- }
-
-
- /*model.toggle("horizontally");
- model.copyNode("/root/main/microtestprotonlist/hprotonlist", "/root/hidden/templist");
- model.refresh();*/
- /*model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
- submit("TRASI00601", false);
-
- var vRowCnt = grd_vertically.rows;
- //grd_horizontally : 가로모드 그리드
-
- if(model.getValue("/root/main/condition/viewflag") == "H"){
- model.toggle("horizontally");
-
- var vRowCnt = grd_vertically.rows;
- var hColCnt = grd_horizontally.cols;
- //grd_horizontally : 가로모드 그리드
- //인스턴스와 그리드를 초기화한다.
- for(var i=hColCnt; i>=18; i--){
- grd_horizontally.deleteColumn(i);
- }
- model.removeNodeset("/root/main/microtestprotonlist/hprotonlist/info");
-
- //기본으로 첫번째줄은 copy한다.
- model.makeNode("/root/main/microtestprotonlist/hprotonlist/info");
- model.copyNode("/root/main/microtestprotonlist/hprotonlist/info", "/root/main/microtestprotonlist/vprotonlist/info[" + 1 + "]");
-
- var pid = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + 1 + "]/pid"); //default : 첫번째사람의 등록번호
- var antibiocdCnt = 1;
- var antibiocdStr = "";
- var boolFlag = "false";
- var cap = "";
- var grd_horizontallyCaption = "처방일^결과보고일^처방병동^처방병실^등록번호^성명^성별^나이^진료과^담당의^입원일^퇴원일^현병동^현병실^재원기간^검체^균";
- for(var i=1; i<vRowCnt; i++){
- var antibiocd = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibiocd");
- boolFlag = "false";
- for(var j = 1; j <=antibiocdCnt; j++){
- if(antibiocd == antibiocdStr.split("▦")[i]){
- boolFlag = "false";
- } else {
- boolFlag = "true";
- }
- }
- if(boolFlag == "true") {
- antibiocdStr = antibiocdStr + antibiocd + "▦";
-
- grd_horizontally.addColumn("ref:" + antibiocd + "; type=output;");
- grd_horizontally.colwidth(col) = 40;
- antibiocdCnt = antibiocdCnt + 1;
- var col = 16 + antibiocdCnt; //추가되는 그리드의 캡션순서
-
- grd_horizontallyCaption= grd_horizontallyCaption + "^" + antibiocd;
- }
-
- }
- grd_horizontally.caption= grd_horizontallyCaption;
- var holRowCnt = 1;
- col = grd_horizontally.cols+1; //마지막 컬럼 인덱스
- for(var i=1; i<vRowCnt; i++){
- if(i != 1 && pid != model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid")) {
- holRowCnt++;
- model.alert( pid );
- model.makeNode("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]");
- model.copyNode("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]", "/root/main/microtestprotonlist/vprotonlist/info[" + i + "]");
- pid = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid");
-
- }else if(pid == model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid")) {
- for(j=17; j<=col; j++){
- cap = grd_horizontallyCaption.split("^")[j];
- if(cap == model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibiocd")) {
- model.setValue("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]/"+cap, model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibioref"));
- }
- }
- }
- }
- grd_horizontally.refresh();
- }*/
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1109px; y1:9px; x2:1109px; y2:57px; "/>
- <caption id="caption2" class="search_name" style="left:370px; top:40px; width:61px; height:17px; ">균 :</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기간 :</caption>
- <caption id="caption5" class="search_no_b" style="left:262px; top:11px; width:12px; height:17px; ">~</caption>
- <select1 id="cmb_termflag" ref="/root/main/condition/termflag" class="combo_default" appearance="minimal" style="left:81px; top:11px; width:87px; height:19px; ">
- <choices>
- <item>
- <label>처방일</label>
- <value>O</value>
- </item>
- <item>
- <label>접수일</label>
- <value>A</value>
- </item>
- <item>
- <label>결과보고일</label>
- <value>R</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_srchbacnm" ref="/root/main/condition/srchbacnm" class="input_search" disabled="false" style="left:435px; top:40px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keycode == 13 ) {
- model.setValue("/root/main/condition/srchbacnm", ipt_srchbacnm.currentText);
-
- fSrchBac();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( isNull(model.getValue("/root/main/condition/srchbacnm")) ){
- model.setValue("/root/main/condition/srchbaccd", "");
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:15px; top:41px; width:91px; height:17px; ">검체 :</caption>
- <caption id="caption12" class="search_name" style="left:910px; top:10px; width:91px; height:17px; ">등록번호 :</caption>
- <caption id="caption17" class="search_name" style="left:495px; top:10px; width:86px; height:17px; ">진료과 :</caption>
- <caption id="caption20" class="search_name" style="left:718px; top:10px; width:66px; height:17px; ">병동 :</caption>
- <input id="ipt_pid" ref="/root/main/condition/srchpid" class="input_search" style="left:1000px; top:9px; width:70px; height:19px; "/>
- <input id="ipt_srchspcnm" ref="/root/main/condition/srchspcnm" class="input_search" style="left:81px; top:41px; width:179px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keycode == 13 ) {
- model.setValue("/root/main/condition/srchspcnm", ipt_srchspcnm.currentText);
-
- fSrchSpc();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( isNull(model.getValue("/root/main/condition/srchspcnm")) ){
- model.setValue("/root/main/condition/srchspccd", "");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_orddept" ref="/root/main/condition/srchorddeptcd" class="combo_default" appearance="minimal" style="left:572px; top:10px; width:139px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_wardcd" ref="/root/main/condition/srchwardcd" class="combo_default" appearance="minimal" style="left:783px; top:10px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_termfromdd" ref="/root/main/condition/termfromdd" class="input_default" inputtype="date" style="left:176px; top:11px; width:85px; height:19px; "/>
- <input id="ipt_termtodd" ref="/root/main/condition/termtodd" class="input_default" inputtype="date" style="left:276px; top:11px; width:85px; height:19px; "/>
- <select id="chk_groupflag1" visibility="hidden" overflow="visible" appearance="full" style="left:1025px; top:45px; width:110px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>환자/검체/균주</label>
- <value>SB</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* if(model.getValue("/root/main/condition/groupflag") == "SB") {
- chk_groupflag1.refresh();
- chk_groupflag2.refresh();
- }*/
- model.setValue("/root/main/condition/groupflag", "SB");
- ]]>
- </script>
- </select>
- <select id="chk_groupflag2" visibility="hidden" overflow="visible" appearance="full" style="left:1025px; top:30px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>환자/균주</label>
- <value>B</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* if(model.getValue("/root/main/condition/groupflag") == "B") {
- chk_groupflag1.refresh();
- chk_groupflag2.refresh();
- }*/
- model.setValue("/root/main/condition/groupflag", "B");
- ]]>
- </script>
- </select>
- <select1 id="rdo_groupflag1" ref="/root/main/condition/groupflag" navindex="1" appearance="full" cols="1" overflow="visible" style="left:721px; top:40px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>ALL Dates</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/condition/groupflag") == "A") {
- rdo_groupflag2.selected = false;
- rdo_groupflag3.selected = false;
- }
- ]]>
- </script>
- </select1>
- <select1 id="rdo_groupflag2" ref="/root/main/condition/groupflag" appearance="full" overflow="visible" style="left:806px; top:40px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>First isolate only</label>
- <value>F</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/condition/groupflag") == "F") {
- rdo_groupflag1.selected = false;
- rdo_groupflag3.selected = false;
- }
- ]]>
- </script>
- </select1>
- <select1 id="rdo_groupflag3" ref="/root/main/condition/groupflag" appearance="full" overflow="visible" style="left:926px; top:40px; width:120px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>First isolate only 2</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/condition/groupflag") == "O") {
- rdo_groupflag1.selected = false;
- rdo_groupflag2.selected = false;
- }
- ]]>
- </script>
- </select1>
- <button id="importbutton1" class="icon_search" style="left:265px; top:43px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchSpc();
- ]]>
- </script>
- </button>
- <button id="importbutton2" class="icon_search" style="left:624px; top:41px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchBac();
- ]]>
- </script>
- </button>
- <input id="ipt_srchspccd" ref="/root/main/condition/srchspccd" visibility="hidden" style="left:83px; top:40px; width:65px; height:19px; "/>
- <input id="ipt_srchbaccd" ref="/root/main/condition/srchbaccd" visibility="hidden" style="left:435px; top:36px; width:65px; height:19px; "/>
- <button id="btn_patInfo" class="icon_search" style="left:1075px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( (model.getValue("/root/main/condition/srchpid") != "") || (model.getValue("/root/main/condition/srchpid") != "")) {
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/condition/srchpid"));
- model.makeValue("/root/send/reqdata/srchcond", "1");
- }
-
- model.makeNode("/root/main/patinfo/patinfolist");
- modal("SPPMC02500",0,0,0,"SPPMC02500", "/root/send/reqdata", "/root/send");
- if(model.getValue("/root/main/patinfo/patinfolist/pid") != ""){
- model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="importcaption1" class="search_name" style="left:370px; top:10px; width:66px; height:17px; ">구분 :</caption>
- <select1 id="importcombo1" ref="/root/main/condition/srchioflag" class="combo_default" appearance="minimal" style="left:433px; top:10px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/main/condition/srchioflag") == "O" ){
- cmb_wardcd.disabled = true;
- }else{
- cmb_wardcd.disabled = false;
- }
- ]]>
- </script>
- </select1>
- </group>
- <line id="line6" class="line_3" style="x1:0px; y1:133px; x2:1194px; y2:133px; "/>
- <output id="opt_sort4" ref="/root/main/sortdata/sort4" class="output_fix" visibility="hidden" style="left:681px; top:111px; width:30px; height:19px; text-align:center; "/>
- <output id="opt_sort5" ref="/root/main/sortdata/sort5" class="output_fix" visibility="hidden" style="left:880px; top:111px; width:30px; height:19px; text-align:center; "/>
- <select1 id="cmb_cond8" ref="/root/main/sortdata/cond8" class="combo_search" visibility="hidden" appearance="minimal" style="left:797px; top:111px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>올림</label>
- <value>asc</value>
- </item>
- <item>
- <label>내림</label>
- <value>desc</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cond4" ref="/root/main/sortdata/cond4" class="combo_search" visibility="hidden" appearance="minimal" style="left:399px; top:111px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>올림</label>
- <value>asc</value>
- </item>
- <item>
- <label>내림</label>
- <value>desc</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cond6" ref="/root/main/sortdata/cond6" class="combo_search" visibility="hidden" appearance="minimal" style="left:598px; top:111px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>올림</label>
- <value>asc</value>
- </item>
- <item>
- <label>내림</label>
- <value>desc</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cond1" ref="/root/main/sortdata/cond1" class="combo_search" visibility="hidden" appearance="minimal" style="left:116px; top:111px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>0</value>
- </item>
- <item>
- <label>검체</label>
- <value>17</value>
- </item>
- <item>
- <label>균</label>
- <value>18</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>5</value>
- </item>
- <item>
- <label>병동</label>
- <value>14</value>
- </item>
- <item>
- <label>병실</label>
- <value>15</value>
- </item>
- <item>
- <label>보고일</label>
- <value>2</value>
- </item>
- <item>
- <label>성명</label>
- <value>6</value>
- </item>
- <item>
- <label>성별</label>
- <value>7</value>
- </item>
- <item>
- <label>입원일</label>
- <value>11</value>
- </item>
- <item>
- <label>진료과</label>
- <value>9</value>
- </item>
- <item>
- <label>채혈일</label>
- <value>13</value>
- </item>
- <item>
- <label>퇴원일</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <output id="opt_sort2" ref="/root/main/sortdata/sort2" class="output_fix" visibility="hidden" style="left:282px; top:111px; width:30px; height:19px; text-align:center; "/>
- <select1 id="cmb_cond2" ref="/root/main/sortdata/cond2" class="combo_search" visibility="hidden" appearance="minimal" style="left:199px; top:111px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>올림</label>
- <value>asc</value>
- </item>
- <item>
- <label>내림</label>
- <value>desc</value>
- </item>
- </choices>
- </select1>
- <output id="opt_sort3" ref="/root/main/sortdata/sort3" class="output_fix" visibility="hidden" style="left:482px; top:111px; width:30px; height:19px; text-align:center; "/>
- <select1 id="cmb_cond10" ref="/root/main/sortdata/cond10" class="combo_search" visibility="hidden" appearance="minimal" style="left:997px; top:111px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>올림</label>
- <value>asc</value>
- </item>
- <item>
- <label>내림</label>
- <value>desc</value>
- </item>
- </choices>
- </select1>
- <output id="opt_sort1" ref="/root/main/sortdata/sort1" class="output_fix" visibility="hidden" style="left:83px; top:111px; width:30px; height:19px; text-align:center; "/>
- <button id="btn_sort" class="btn2_letter2" visibility="hidden" style="left:1017px; top:84px; width:42px; height:19px; ">
- <caption>정렬</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mode = model.getValue("/root/main/condition/viewflag");
- if(mode == "V") {
-
- var tmpCol = model.getValue("/root/main/sortdata/cond1");
- var tmpsort = model.getValue("/root/main/sortdata/cond2");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_vertically.colsort(tmpCol) = "asc";
- } else{
- grd_vertically.colsort(tmpCol) = "desc";
- }
- var tmpCol = model.getValue("/root/main/sortdata/cond3");
- var tmpsort = model.getValue("/root/main/sortdata/cond4");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_vertically.colsort(tmpCol) = "asc";
- } else{
- grd_vertically.colsort(tmpCol) = "desc";
- }
- var tmpCol = model.getValue("/root/main/sortdata/cond5");
- var tmpsort = model.getValue("/root/main/sortdata/cond6");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_vertically.colsort(tmpCol) = "asc";
- } else{
- grd_vertically.colsort(tmpCol) = "desc";
- }
- var tmpCol = model.getValue("/root/main/sortdata/cond7");
- var tmpsort = model.getValue("/root/main/sortdata/cond8");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_vertically.colsort(tmpCol) = "asc";
- } else{
- grd_vertically.colsort(tmpCol) = "desc";
- }
- var tmpCol = model.getValue("/root/main/sortdata/cond9");
- var tmpsort = model.getValue("/root/main/sortdata/cond10");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_vertically.colsort(tmpCol) = "asc";
- } else{
- grd_vertically.colsort(tmpCol) = "desc";
- }
- grd_vertically.sort(1, 1, grd_vertically.bottomRow, grd_vertically.rightcol)="usersort";
- } else if(mode == "H") {
-
- var tmpCol = model.getValue("/root/main/sortdata/cond1");
- var tmpsort = model.getValue("/root/main/sortdata/cond2");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_horizontally.colsort(tmpCol) = "asc";
- } else{
- grd_horizontally.colsort(tmpCol) = "desc";
- }
- var tmpCol = model.getValue("/root/main/sortdata/cond3");
- var tmpsort = model.getValue("/root/main/sortdata/cond4");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_horizontally.colsort(tmpCol) = "asc";
- } else{
- grd_horizontally.colsort(tmpCol) = "desc";
- }
- var tmpCol = model.getValue("/root/main/sortdata/cond5");
- var tmpsort = model.getValue("/root/main/sortdata/cond6");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_horizontally.colsort(tmpCol) = "asc";
- } else{
- grd_horizontally.colsort(tmpCol) = "desc";
- }
- var tmpCol = model.getValue("/root/main/sortdata/cond7");
- var tmpsort = model.getValue("/root/main/sortdata/cond8");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_horizontally.colsort(tmpCol) = "asc";
- } else{
- grd_horizontally.colsort(tmpCol) = "desc";
- }
- var tmpCol = model.getValue("/root/main/sortdata/cond9");
- var tmpsort = model.getValue("/root/main/sortdata/cond10");
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- grd_horizontally.colsort(tmpCol) = "asc";
- } else{
- grd_horizontally.colsort(tmpCol) = "desc";
- }
- grd_horizontally.sort(1, 1, grd_horizontally.bottomRow, grd_horizontally.rightcol)="usersort"
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:84px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mode = model.getValue("/root/main/condition/viewflag");
- if(mode == "V") {
- // var fileName = window.fileDialog("save", ",", false, "c", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- // if (fileName != "") grd_horizontally.saveExcel(fileName, "미생물배양양성자_세로모드", false, false, "", "", false);
- var fileName = window.fileDialog("save", ",", false, "미생물배양양성자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_horizontally.saveExcel(fileName, "미생물배양양성자_세로모드", true, true, "", "", false);
- var s = fileName.lastIndexOf("\\");
- var fileName=fileName.substring(s+1);
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 ){
- window.exec("excel.exe", fileName);
- }
- }
- } else if(mode == "H") {
- // var fileName = window.fileDialog("save", ",", false, "미생물배양양성자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- // if (fileName != "") grd_horizontally.saveExcel(fileName, "미생물배양양성자_가로모드", false, false, "", "", false);
- var fileName = window.fileDialog("save", ",", false, "미생물배양양성자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_horizontally.saveExcel(fileName, "미생물배양양성자_가로모드", true, true, "", "", false);
- var s = fileName.lastIndexOf("\\");
- var fileName=fileName.substring(s+1);
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 ){
- window.exec("excel.exe", fileName);
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <line id="line5" class="line_1" style="x1:0px; y1:105px; x2:1194px; y2:105px; "/>
- <caption id="caption8" class="cell_1" visibility="hidden" style="left:0px; top:110px; width:79px; height:23px; vertical-align:middle; ">정렬선택</caption>
- <select1 id="cmb_cond3" ref="/root/main/sortdata/cond3" class="combo_search" visibility="hidden" appearance="minimal" style="left:315px; top:111px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>0</value>
- </item>
- <item>
- <label>검체</label>
- <value>17</value>
- </item>
- <item>
- <label>균</label>
- <value>18</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>5</value>
- </item>
- <item>
- <label>병동</label>
- <value>14</value>
- </item>
- <item>
- <label>병실</label>
- <value>15</value>
- </item>
- <item>
- <label>보고일</label>
- <value>2</value>
- </item>
- <item>
- <label>성명</label>
- <value>6</value>
- </item>
- <item>
- <label>성별</label>
- <value>7</value>
- </item>
- <item>
- <label>입원일</label>
- <value>11</value>
- </item>
- <item>
- <label>진료과</label>
- <value>9</value>
- </item>
- <item>
- <label>채혈일</label>
- <value>13</value>
- </item>
- <item>
- <label>퇴원일</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cond5" ref="/root/main/sortdata/cond5" class="combo_search" visibility="hidden" appearance="minimal" style="left:516px; top:111px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>0</value>
- </item>
- <item>
- <label>검체</label>
- <value>17</value>
- </item>
- <item>
- <label>균</label>
- <value>18</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>5</value>
- </item>
- <item>
- <label>병동</label>
- <value>14</value>
- </item>
- <item>
- <label>병실</label>
- <value>15</value>
- </item>
- <item>
- <label>보고일</label>
- <value>2</value>
- </item>
- <item>
- <label>성명</label>
- <value>6</value>
- </item>
- <item>
- <label>성별</label>
- <value>7</value>
- </item>
- <item>
- <label>입원일</label>
- <value>11</value>
- </item>
- <item>
- <label>진료과</label>
- <value>9</value>
- </item>
- <item>
- <label>채혈일</label>
- <value>13</value>
- </item>
- <item>
- <label>퇴원일</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cond7" ref="/root/main/sortdata/cond7" class="combo_search" visibility="hidden" appearance="minimal" style="left:714px; top:111px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>0</value>
- </item>
- <item>
- <label>검체</label>
- <value>17</value>
- </item>
- <item>
- <label>균</label>
- <value>18</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>5</value>
- </item>
- <item>
- <label>병동</label>
- <value>14</value>
- </item>
- <item>
- <label>병실</label>
- <value>15</value>
- </item>
- <item>
- <label>보고일</label>
- <value>2</value>
- </item>
- <item>
- <label>성명</label>
- <value>6</value>
- </item>
- <item>
- <label>성별</label>
- <value>7</value>
- </item>
- <item>
- <label>입원일</label>
- <value>11</value>
- </item>
- <item>
- <label>진료과</label>
- <value>9</value>
- </item>
- <item>
- <label>채혈일</label>
- <value>13</value>
- </item>
- <item>
- <label>퇴원일</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cond9" ref="/root/main/sortdata/cond9" class="combo_search" visibility="hidden" appearance="minimal" style="left:913px; top:111px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>0</value>
- </item>
- <item>
- <label>검체</label>
- <value>17</value>
- </item>
- <item>
- <label>균</label>
- <value>18</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>5</value>
- </item>
- <item>
- <label>병동</label>
- <value>14</value>
- </item>
- <item>
- <label>병실</label>
- <value>15</value>
- </item>
- <item>
- <label>보고일</label>
- <value>2</value>
- </item>
- <item>
- <label>성명</label>
- <value>6</value>
- </item>
- <item>
- <label>성별</label>
- <value>7</value>
- </item>
- <item>
- <label>입원일</label>
- <value>11</value>
- </item>
- <item>
- <label>진료과</label>
- <value>9</value>
- </item>
- <item>
- <label>채혈일</label>
- <value>13</value>
- </item>
- <item>
- <label>퇴원일</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <button id="button3" class="btn2_letter7" visibility="hidden" style="left:815px; top:80px; width:97px; height:19px; ">
- <caption>방사선검사결과</caption>
- </button>
- <button id="button4" class="btn2_letter4" visibility="hidden" style="left:745px; top:80px; width:64px; height:19px; ">
- <caption>Lab결과</caption>
- </button>
- <button id="btc_prcpsearch" class="btn2_letter5" visibility="hidden" style="left:660px; top:80px; width:75px; height:19px; ">
- <caption>처방조회</caption>
- </button>
- <select1 id="radio2" ref="/root/main/condition/viewflag" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:1101px; top:112px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>가로</label>
- <value>H</value>
- </item>
- <item>
- <label>세로</label>
- <value>V</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/condition/viewflag") == "H"){
- model.toggle("horizontally");
-
- model.copyNode("/root/main/microtestprotonlist/hprotonlist", "/root/hidden/templist");
- model.refresh();
-
- /*var vRowCnt = grd_vertically.rows;
- var hColCnt = grd_horizontally.cols;
- //grd_horizontally : 가로모드 그리드
- //인스턴스와 그리드를 초기화한다.
- //그리드 반영이 작업이 모두 이루어진 후 한꺼번에 반영되어야 함..
- for(var i=hColCnt; i>=18; i--){
- grd_horizontally.deleteColumn(i);
- }
- model.removeNodeset("/root/main/microtestprotonlist/hprotonlist/info");
-
- //기본으로 첫번째줄은 copy한다.
- model.makeNode("/root/main/microtestprotonlist/hprotonlist/info");
- model.copyNode("/root/main/microtestprotonlist/hprotonlist/info", "/root/main/microtestprotonlist/vprotonlist/info[" + 1 + "]");
-
- var pid = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + 1 + "]/pid"); //default : 첫번째사람의 등록번호
- var antibiocdCnt = 1;
- var antibiocdStr = "";
- var boolFlag = "false";
- var cap = "";
- var grd_horizontallyCaption = "처방일^결과보고일^처방병동^처방병실^등록번호^성명^성별^나이^진료과^담당의^입원일^퇴원일^현병동^현병실^재원기간^검체^균";
- for(var i=1; i<vRowCnt; i++){
- var antibiocd = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibiocd");
- boolFlag = "false";
- for(var j = 1; j <=antibiocdCnt; j++){
- if(antibiocd == antibiocdStr.split("▦")[i]){
- boolFlag = "false";
- } else {
- boolFlag = "true";
- }
- }
- if(boolFlag == "true") {
- antibiocdStr = antibiocdStr + antibiocd + "▦";
-
- grd_horizontally.addColumn("ref:" + antibiocd + "; type=output;");
- grd_horizontally.colwidth(col) = 40;
- antibiocdCnt = antibiocdCnt + 1;
- var col = 16 + antibiocdCnt; //추가되는 그리드의 캡션순서
-
- grd_horizontallyCaption= grd_horizontallyCaption + "^" + antibiocd;
- }
-
- }
- //grd_horizontally.rebuild();
- grd_horizontally.caption= grd_horizontallyCaption;
- var holRowCnt = 1;
- col = grd_horizontally.cols+1; //마지막 컬럼 인덱스
- for(var i=1; i<vRowCnt; i++){
- if(i != 1 && pid != model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid")) {
- holRowCnt++;
- model.alert( pid );
- model.makeNode("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]");
- model.copyNode("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]", "/root/main/microtestprotonlist/vprotonlist/info[" + i + "]");
- pid = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid");
-
- }else if(pid == model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid")) {
- for(j=17; j<=col; j++){
- cap = grd_horizontallyCaption.split("^")[j];
- if(cap == model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibiocd")) {
- model.setValue("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]/"+cap, model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibioref"));
- }
- }
- }
- }
-
- model.copyNode("/root/main/microtestprotonlist/hprotonlist", "/root/hidden/templist");
- grd_horizontally.refresh();*/
-
- } else if(model.getValue("/root/main/condition/viewflag") == "V"){
- model.toggle("vertically");
- }
- ]]>
- </script>
- </select1>
- <switch id="switch1" style="left:0px; top:110px; width:1194px; height:625px; ">
- <case id="horizontally" selected="true">
- <datagrid id="grd_horizontally" nodeset="/root/main/microtestprotonlist/vprotonlist/info" caption="외래입원구분^균코드순번^결과순번^균이름2^채혈일^항생제판독결과^항균제^결과^spccd^baccd^nsgbrcd^nsgbrnm^tclscd^testcd^bcno^spcacptdt^cretno^seqno^구분^접수일^결과보고일^처방병동^등록번호^성명^나이^성별^작업번호^검체^균^ESBL^ETP^IPM^MEM^OX^VA^AN^AMX^AMC^CAZ^AMB^AM^SAM^ATM^CZ^FEP^CTX^CTT^FOX^OSXF^CPO^CRO^CXM^ROXA^CF^C^CIP^CC^CL^E^FLU^FCT^FOS^FA^GAT^GM^HLG^Gms^HAB^ISP^HLK^LEV^LVX^LNZ^MI^MXF^NET^FD^NOR^OFX^PFX^P^PIP^TZP^PRI^QDA^RA^SPX^HLS^StS^SUL^SYN^TEC^TE^TIC^TIM^TOB^TM^SXT^VRC^VAS^CB^GM500^처방일^진료과^담당의^입원일^퇴원일^처방병동^처방병실^현병동^현병실^재원기간" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 75, 75, 80, 65, 60, 35, 35, 72, 130, 230, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 45, 90, 90, 60, 75, 75, 81, 83, 70, 55, 55" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sort" extendlastcol="scroll" frozencols="22" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1192px; height:620px; ">
- <col ref="ioflag" visibility="hidden"/>
- <col ref="bacseqno" visibility="hidden"/>
- <col ref="rsltseq" visibility="hidden"/>
- <col ref="bacnm2" visibility="hidden"/>
- <col ref="bcolldt" visibility="hidden"/>
- <col ref="antibiorslt" visibility="hidden"/>
- <col ref="antibionm" visibility="hidden"/>
- <col ref="antibioref" visibility="hidden"/>
- <col ref="spccd" visibility="hidden"/>
- <col ref="baccd" visibility="hidden"/>
- <col ref="nsgbrcd" visibility="hidden"/>
- <col ref="nsgbrnm" visibility="hidden"/>
- <col ref="tclscd" visibility="hidden"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="bcno" visibility="hidden"/>
- <col ref="spcacptdt" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="ordtype" style="text-align:center; "/>
- <col ref="spcacptdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastreptdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpwardcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="workno" style="text-align:center; "/>
- <col ref="spcnm"/>
- <col ref="bacnm"/>
- <col ref="esbl" style="text-align:center; "/>
- <col ref="etp"/>
- <col ref="ipm" style="text-align:center; "/>
- <col ref="mem" style="text-align:center; "/>
- <col ref="ox" style="text-align:center; "/>
- <col ref="va" style="text-align:center; "/>
- <col ref="an" style="text-align:center; "/>
- <col ref="amx" style="text-align:center; "/>
- <col ref="amc" style="text-align:center; "/>
- <col ref="caz" style="text-align:center; "/>
- <col ref="amb" style="text-align:center; "/>
- <col ref="am" style="text-align:center; "/>
- <col ref="sam" style="text-align:center; "/>
- <col ref="atm" style="text-align:center; "/>
- <col ref="cz" style="text-align:center; "/>
- <col ref="fep" style="text-align:center; "/>
- <col ref="ctx" style="text-align:center; "/>
- <col ref="ctt" style="text-align:center; "/>
- <col ref="fox" style="text-align:center; "/>
- <col ref="osxf" style="text-align:center; "/>
- <col ref="cpo" style="text-align:center; "/>
- <col ref="cro" style="text-align:center; "/>
- <col ref="cxm" style="text-align:center; "/>
- <col ref="roxa" style="text-align:center; "/>
- <col ref="cf" style="text-align:center; "/>
- <col ref="c" style="text-align:center; "/>
- <col ref="cip" style="text-align:center; "/>
- <col ref="cc" style="text-align:center; "/>
- <col ref="cl" style="text-align:center; "/>
- <col ref="e" style="text-align:center; "/>
- <col ref="flu" style="text-align:center; "/>
- <col ref="fct" style="text-align:center; "/>
- <col ref="fos" style="text-align:center; "/>
- <col ref="fa" style="text-align:center; "/>
- <col ref="gat" style="text-align:center; "/>
- <col ref="gm" style="text-align:center; "/>
- <col ref="hlg" style="text-align:center; "/>
- <col ref="gms" style="text-align:center; "/>
- <col ref="hab" style="text-align:center; "/>
- <col ref="isp" style="text-align:center; "/>
- <col ref="hlk" style="text-align:center; "/>
- <col ref="lev" style="text-align:center; "/>
- <col ref="lvx" style="text-align:center; "/>
- <col ref="lnz" style="text-align:center; "/>
- <col ref="mi" style="text-align:center; "/>
- <col ref="mxf" style="text-align:center; "/>
- <col ref="net" style="text-align:center; "/>
- <col ref="fd" style="text-align:center; "/>
- <col ref="nor" style="text-align:center; "/>
- <col ref="ofx" style="text-align:center; "/>
- <col ref="pfx" style="text-align:center; "/>
- <col ref="p" style="text-align:center; "/>
- <col ref="pip" style="text-align:center; "/>
- <col ref="tzp" style="text-align:center; "/>
- <col ref="pri" style="text-align:center; "/>
- <col ref="qda" style="text-align:center; "/>
- <col ref="ra" style="text-align:center; "/>
- <col ref="spx" style="text-align:center; "/>
- <col ref="hls" style="text-align:center; "/>
- <col ref="sts" style="text-align:center; "/>
- <col ref="sul" style="text-align:center; "/>
- <col ref="syn" style="text-align:center; "/>
- <col ref="tec" style="text-align:center; "/>
- <col ref="te" style="text-align:center; "/>
- <col ref="tic" style="text-align:center; "/>
- <col ref="tim" style="text-align:center; "/>
- <col ref="tob" style="text-align:center; "/>
- <col ref="tm" style="text-align:center; "/>
- <col ref="sxt" style="text-align:center; "/>
- <col ref="vrc" style="text-align:center; "/>
- <col ref="vas" style="text-align:center; "/>
- <col ref="cb" style="text-align:center; "/>
- <col ref="gm500" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddept" style="text-align:center; "/>
- <col ref="atdrnm" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpwardcd" style="text-align:center; "/>
- <col ref="prcproomcd" style="text-align:center; "/>
- <col ref="wardcd" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="inhospdayno" style="text-align:right; padding-right:5; "/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_horizontally", false, "/root/main/codedata/popupmenu/grid/item", "name", "func");
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow = grd_vertically.row;
- model.resetInstanceNode("/root/hidden/selecteddata");
- model.setValue("/root/hidden/selecteddata/selectedpid", model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" +iRow + "]/pid"));
- model.setValue("/root/hidden/selecteddata/selectedindd", model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" +iRow + "]/indd"));
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_horizontally.isCell(event.target) && grd_horizontally.mouseRow > 0 && grd_horizontally.mouseRow <= grd_horizontally.rows ) {
- fReqOpPatPamInfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_horizontally.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="vertically">
- <datagrid id="grd_vertically" nodeset="/root/main/microtestprotonlist/vprotonlist/info" caption="항균제^결과^spccd^baccd^nsgbrcd^nsgbrnm^tclscd^testcd^bcno^spcacptdt^cretno^seqno^처방일^결과보고일^처방병동^처방병실^등록번호^성명^검체^균^감수성결과^성별^나이^진료과^담당의^입원일^퇴원일^접수일^현병동^현병실^재원기간" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 77, 74, 72, 70, 70, 63, 140, 250, 70, 40, 80, 60, 64, 83, 83, 82, 72, 57, 56" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecells="byrow" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1192px; height:600px; ">
- <col ref="antibionm" visibility="hidden"/>
- <col ref="antibioref" visibility="hidden"/>
- <col ref="spccd" visibility="hidden"/>
- <col ref="baccd" visibility="hidden"/>
- <col ref="nsgbrcd" visibility="hidden"/>
- <col ref="nsgbrnm" visibility="hidden"/>
- <col ref="tclscd" visibility="hidden"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="bcno" visibility="hidden"/>
- <col ref="spcacptdt" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="lastreptdt" format="yyyy-mm-dd"/>
- <col ref="prcpwardcd" visibility="hidden"/>
- <col ref="prcproomcd" visibility="hidden"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="spcnm"/>
- <col ref="bacnm"/>
- <col ref="antibioref"/>
- <col ref="sex"/>
- <col ref="age"/>
- <col ref="orddeptcd"/>
- <col ref="atdrnm"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="acptdt" format="yyyy-mm-dd"/>
- <col ref="wardcd"/>
- <col ref="roomcd"/>
- <col ref="inhospdayno"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_vertically.isCell(event.target) && grd_vertically.mouseRow >= grd_vertically.fixedrows){
- setPopupMenu("grd_vertically", true, "/root/main/codedata/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow = grd_vertically.row;
- model.resetInstanceNode("/root/hidden/selecteddata");
- model.setValue("/root/hidden/selecteddata/selectedpid", model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" +iRow + "]/pid"));
- model.setValue("/root/hidden/selecteddata/selectedindd", model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" +iRow + "]/indd"));
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(( grd_vertically.mouseRow > 0) && ( grd_vertically.mouseRow <= grd_vertically.rows )) {
- fReqOpPatPamInfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_vertically.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <caption id="caption25" class="tit_2" style="left:5px; top:90px; width:173px; height:14px; ">미생물배양 양성자 리스트</caption>
- <button id="btc_totrslt" class="btn2_letter6" style="left:1063px; top:84px; width:86px; height:19px; ">
- <caption>통합검사결과</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAER00800", 0, 0, 0, "SMAER00800", "/root/source/pid", "/root/paminfo/list/pid" );
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter4" visibility="hidden" style="left:951px; top:84px; width:64px; height:19px; ">
- <caption>처방조회</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|