123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- <?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>
- <microculturersltinfo>
- </microculturersltinfo>
- <cond>
- <pid/>
- <refcond>O</refcond>
- <fromdd/>
- <todd/>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- <microculturersltinfo>
- <microculturersltlist/>
- </microculturersltinfo>
- </hidden>
- <init>
- <initdate>
- <today/>
- </initdate>
- <warddeptlist>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </warddeptlist>
- <deptlist>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </deptlist>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.removeNodeset("/root/main/microculturersltinfo");
- grd_microculturersltlist.mergecol(1) = true;
- grd_microculturersltlist.mergecol(12) = false;
- model.setValue("/root/main/cond/refcond", "O");
- model.refresh();
- ]]>
- </script>
- <submission id="TRASI00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/microculturersltinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </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="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- // 공통코드를 조회한다.
-
- // 진료과
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/deptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
-
- //병동
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "/root/init/warddeptlist";
- sort_field = "deptcd";
- sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- var today = getCurrentDate();
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "M");
- model.setValue("/root/init/initdate/today", today);
- model.makeValue("/root/send/cond/trgtmancnt", "I");
- model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
- model.makeValue("/root/send/cond/todd", today);
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1116" pageheight="617" guideline="2,-3;" style="margin-left:8; margin-right:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1100px; height:592px; ">
- <datagrid id="grd_microculturersltlist" nodeset="/root/main/microculturersltinfo/microculturersltlist" class="datagrid2" autoresize="true" caption="선택^접수일^보고일^채취일시^검체코드^검체^균코드^균^처방병동^처방병실^현병동^현병실^진료과^진료의^ 내성균코드^항생제 내성균 구분^bcno^tclscd^testcd^prcpdd^균" colsep="^" colwidth="39, 90, 90, 90, 100, 120, 120, 200, 70, 70, 70, 70, 100, 100, 100, 113, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:52px; width:1100px; height:538px; ">
- <col checkvalue="true,false" ref="check" type="checkbox"/>
- <col ref="spcacptdt" format="yyyy-mm-dd"/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; vertical-align:middle; "/>
- <col ref="bcoldt" format="yyyy-mm-dd hh:nn" style="text-align:center; vertical-align:middle; "/>
- <col ref="spccd" visibility="hidden"/>
- <col ref="spcnm"/>
- <col ref="baccd" visibility="hidden"/>
- <col ref="bacnm"/>
- <col ref="prcpwardcd">
- <!--
- choices>
- <itemset nodeset="/root/init/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- -->
- </col>
- <col ref="prcproomcd"/>
- <col ref="wardcd">
- <!--
- <choices>
- <itemset nodeset="/root/init/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- -->
- </col>
- <col ref="roomcd"/>
- <col ref="orddeptcd">
- <!--
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- -->
- </col>
- <col ref="atdoct"/>
- <col ref="antibtrstbtrflag" visibility="hidden"/>
- <col ref="antibtrstbtrflagnm"/>
- <col ref="bcno" visibility="hidden"/>
- <col ref="tclscd" visibility="hidden"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if(grd_microculturersltlist.col == 1)
- // {
- // var check_row = grd_microculturersltlist.row;
- //
- // var check = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/check");
- // var barcheck = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/baccheck");
- // var bcolldt = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/bcoldt");
- // var lastreptdt = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/lastreptdt");
- // var prcpwardcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/prcpwardcd");
- // var prcproomcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/prcproomcd");
- // var wardcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/wardcd");
- // var roomcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/roomcd");
- // var orddeptcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/orddeptcd");
- // var atdoct = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/atdoct");
- // var spcnm = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/spcnm");
- // var ibcolldt = "";
- // var ilastreptdt = "";
- // var iprcpwardcd = "";
- // var iprcproomcd = "";
- // var iwardcd = "";
- // var iroomcd = "";
- // var iorddeptcd = "";
- // var iatdoct = "";
- // var ispcnm = "";
- // for(var iRow=grd_microculturersltlist.fixedrows; iRow <= grd_microculturersltlist.rows-grd_microculturersltlist.fixedrows;iRow++){
- // ibcolldt = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/bcoldt");
- // ilastreptdt = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/lastreptdt");
- // iprcpwardcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/prcpwardcd");
- // iprcproomcd = model.getValue ("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/prcproomcd");
- // iwardcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/wardcd");
- // iroomcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/roomcd");
- // iorddeptcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/orddeptcd");
- // iatdoct = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/atdoct");
- // ispcnm = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/spcnm");
- // if(bcolldt == ibcolldt && lastreptdt == ilastreptdt && prcpwardcd == iprcpwardcd && prcproomcd == iprcproomcd &&
- // wardcd == iwardcd && roomcd == iroomcd && orddeptcd == iorddeptcd && atdoct == iatdoct && spcnm == ispcnm){
- // if(check == "true"){
- // model.makeValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/check", "true");
- // model.makeValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/baccheck", "true");
- // } else {
- // model.makeValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/check", "false");
- // model.makeValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/baccheck", "false");
- // }
- // }
- // }
- // model.refresh();
- // grd_microculturersltlist.mergecol(1) = true;
- // grd_microculturersltlist.mergecol(11) = false;
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_microculturersltlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if((grd_microculturersltlist.mouseRow > 0) && ( grd_microculturersltlist.mouseRow <= grd_microculturersltlist.rows )) {
- var iRow=grd_microculturersltlist.row;
- var rtnmsg_header = "lastreptdt▦spccd▦spcnm▦baccd▦bacnm▦antibtrstbtrflag▦bcno▦tclscd▦testcd▦prcpdd▦bcoldt▦antibtrstbtrflagnm▩";
- var rtnmsg_data = "";
- rtnmsg_data+= model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/lastreptdt")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/spccd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/spcnm")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/baccd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bacnm")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/antibtrstbtrflag")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bcno")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/tclscd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/testcd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/prcpdd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bcoldt")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/antibtrstbtrflagnm")+"▩";
- opener.javascript.setParameter("setVal", rtnmsg_header+rtnmsg_data);
- window.close();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line56" class="line_3" style="x1:0px; y1:50px; x2:1100px; y2:50px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:7px; width:175px; height:14px; ">미생물배양 결과정보조회</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:22px; x2:1100px; y2:22px; "/>
- <caption id="caption3" style="left:500px; top:30px; width:20px; height:20px; ">~</caption>
- <button id="btn_allchoi" class="btn2_letter4" style="left:882px; top:2px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=1; i < grd_microculturersltlist.rows; i++){
- model.setValue("/root/main/microculturersltinfo/microculturersltlist[" + i + "]/check", "true");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_allcncl" class="btn2_letter4" style="left:947px; top:2px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=1; i < grd_microculturersltlist.rows; i++){
- model.setValue("/root/main/microculturersltinfo/microculturersltlist[" + i + "]/check", "false");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" style="left:1042px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( !isRequiredControls("ipt_pid","cmb_refcond","ipt_fromdd","ipt_todd") ){
- return;
- }
-
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRASI00301");
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" style="left:1012px; top:2px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_microculturersltlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn2_letter2" style="left:1055px; top:2px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow=grd_microculturersltlist.row;
- var rtnmsg_header = "lastreptdt▦spccd▦spcnm▦baccd▦bacnm▦antibtrstbtrflag▦bcno▦tclscd▦testcd▦prcpdd▦bcoldt▦antibtrstbtrflagnm▩";
- var rtnmsg_data = "";
- for(var iRow=grd_microculturersltlist.fixedrows; iRow <= grd_microculturersltlist.rows-grd_microculturersltlist.fixedrows;iRow++){
- if(model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/check") == "true"){
- rtnmsg_data+= model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/lastreptdt")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/spccd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/spcnm")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/baccd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bacnm")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/antibtrstbtrflag")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bcno")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/tclscd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/testcd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/prcpdd")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bcoldt")+"▦"
- +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/antibtrstbtrflagnm")+"▩";
- }
- }
- opener.javascript.setParameter("setVal", rtnmsg_header+rtnmsg_data);
- window.close();
- ]]>
- </script>
- </button>
- <select1 id="cmb_refcond" ref="/root/main/cond/refcond" class="combo_s_essential" navindex="10" appearance="minimal" style="left:228px; top:29px; 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>
- <caption id="cap_pid" class="cell_1" style="left:0px; top:27px; width:55px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="cap_fromdd" class="cell_1" style="left:325px; top:27px; width:55px; height:23px; vertical-align:middle; ">조회기간</caption>
- <caption id="cap_todd" class="cell_1" visibility="hidden" style="left:325px; top:27px; width:55px; height:23px; vertical-align:middle; ">조회기간</caption>
- <caption id="cap_refcond" class="cell_1" style="left:170px; top:27px; width:55px; height:23px; vertical-align:middle; ">구분</caption>
- </group>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:382px; top:28px; width:113px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:515px; top:28px; width:113px; height:19px; "/>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_s_essential" disabled="true" style="left:58px; top:28px; width:103px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var pidlength = model.getValue("/root/main/cond/pid");
- if(pidlength.length < 8) {
- model.alert("등록번호는 8자리 이상입니다.");
- model.setFocus("ipt_pid");
- }
- ]]>
- </script>
- </input>
- <group id="grp_btn" style="left:0px; top:590px; width:1100px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1028px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/microculturersltinfo");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:3px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|